@luizleon/sf.prefeiturasp.vuecomponents 6.0.13 → 6.0.15
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.
- package/dist/sf.prefeiturasp.vuecomponents.css +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +1975 -1880
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +14 -14
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/types/components/layout/Account.vue.d.ts.map +1 -1
- package/dist/types/components/tabs/Tabs.vue.d.ts +21 -0
- package/dist/types/components/tabs/Tabs.vue.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(A,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):(A=typeof globalThis<"u"?globalThis:A||self,r(A.SfPrefeituraSPVueComponents={},A.Vue,A.SfPrefeituraSPVueAuth,A.VueRouter))})(this,(function(A,r,ft,zi){"use strict";class Nt{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 hn(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 a=getComputedStyle(o).zIndex;return+a==+a?+a:0}));return n>=100?n:100}const tr=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=`${hn()??1}`,this.wrapper.addEventListener("mouseup",function(){this.classList.remove("visible"),Array.from(this.children).forEach(i=>i.remove()),this.remove()}),this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.showTimeout&&clearTimeout(this.showTimeout),this.target=i.currentTarget,this.showTimeout=setTimeout(()=>{this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position()},100)}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 i=this.target.getBoundingClientRect();this.FixWidth();const c=this.wrapper,l=5;c.style.top=`${i.top+i.height-l}px`,c.style.left=`${i.left+i.width-l}px`,this.OutOfBottom()&&(c.style.top=`${i.top-c.clientHeight+l}px`),this.OutOfRight()&&(c.style.left=`${i.left-c.clientWidth+l}px`)}FixWidth(){const i=this.wrapper;if(!i)return;i.style.width="fit-content",i.style.wordBreak="normal",i.style.whiteSpace="nowrap";const c=window.innerWidth/2;i.clientWidth>c&&(i.style.width=`${c}px`,i.style.wordBreak="break-word",i.style.whiteSpace="normal")}OutOfBottom(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),l=window.innerHeight||document.documentElement.clientHeight;return c.bottom+10>l}OutOfRight(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),l=window.innerWidth||document.documentElement.clientWidth;return c.right+10>l}}const o=new n;return r.onBeforeUnmount(()=>{o.Hide()}),(a,i)=>(r.openBlock(),r.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...c)=>r.unref(o).Show&&r.unref(o).Show(...c)),onMousedown:i[1]||(i[1]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c)),onMouseleave:i[2]||(i[2]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c))},[r.renderSlot(a.$slots,"default")],32))}}),Ae=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},Fi={},Ui={class:"sf-loading-circle"};function Wi(t,e){return r.openBlock(),r.createElementBlock("div",Ui,[...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 nr=Ae(Fi,[["render",Wi]]),Ki=["data-size"],Gi=["disabled","data-p-loading","tabindex"],qi=["data-color"],we=Ae(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?tr:"div"),a=r.computed(()=>new Nt(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),i=r.computed(()=>new Nt(`${n.class} sf-icon`).AddClass("select-none").AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),c=s=>{n.disabled||n.loading||l("click",s)},l=e;return(s,d)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value),{text:n.tooltip,class:r.normalizeClass(a.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(i.value)},[n.loading?(r.openBlock(),r.createBlock(nr,{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,Gi),n.dot&&!n.disabled&&!n.loading?(r.openBlock(),r.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,qi)):r.createCommentVNode("",!0)],64))],6)):r.createCommentVNode("",!0)],10,Ki)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-75c3c2ce"]]),Yi={class:"sf-tab-navigation"},Xi=["data-active"],Zi=["href","onClick"],Ji=r.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=r.ref(null),o=new ResizeObserver(s=>{l()}),a=r.ref(!1),i=r.ref(!1);function c(s=!1){const d=n.value.clientWidth;n.value.scrollLeft+=s?-d:d}function l(){const s=n.value.scrollWidth-n.value.clientWidth;a.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<s-10}return r.onMounted(()=>{n.value.addEventListener("scroll",l),o.observe(n.value)}),r.onBeforeUnmount(()=>{try{n.value?.removeEventListener("scroll",l),o.unobserve(n.value),o.disconnect()}catch{}}),(s,d)=>{const m=r.resolveComponent("RouterLink");return r.openBlock(),r.createElementBlock("div",Yi,[r.createElementVNode("div",{class:r.normalizeClass(["left-arrow",{active:a.value}]),onClick:d[0]||(d[0]=u=>c(!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,u=>(r.openBlock(),r.createBlock(m,{to:u.route,custom:!0},{default:r.withCtx(({navigate:p,isActive:h})=>[r.createElementVNode("li",{"data-active":h},[r.renderSlot(s.$slots,"item",{item:u,navigate:p,isActive:h},()=>[r.createElementVNode("a",{href:u.route,class:r.normalizeClass({active:h}),onClick:p},r.toDisplayString(u.text),11,Zi)])],8,Xi)]),_:2},1032,["to"]))),256))],512),r.createElementVNode("div",{class:r.normalizeClass(["right-arrow",{active:i.value}]),onClick:d[1]||(d[1]=u=>c())},[...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)])}}}),or=Ae(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,a)=>n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["loading-circle",{dense:e.dense}])},[...a[0]||(a[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"]]),Qi=["id","name","disabled","data-color","form","type","data-p-loading"],pt=Ae(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 Nt(`${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 a=c=>{n.disabled||n.loading||i("click",c)},i=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:a},[n.loading?(r.openBlock(),r.createBlock(or,{key:0,dense:!0,delay:0,class:r.normalizeClass("icon-loading")})):r.createCommentVNode("",!0),n.icon?(r.openBlock(),r.createBlock(we,{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,Qi)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-162a5381"]]),es={class:"sf-drawer-title"},ts={class:"sf-drawer-action"},rr=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","before-open","open","before-close","close"],setup(t,{emit:e}){const n=t,o=e,a=r.useSlots(),i=r.ref(n.visible),c=r.ref(!1),l=r.ref(0),s="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function d(){i.value=!1}function m(b){if(!n.dismissableMask)return;const S=b.target;S&&S.id===s&&(i.value=!1)}function u(b){(b.key==="Escape"||b.code==="Escape")&&d()}function p(){o("open"),window.document.addEventListener("keydown",u,!0)}function h(b){o("before-open"),l.value=hn()+1,b.style.zIndex=`${l.value}`}function y(b){o("before-close"),b?.parentElement?.classList.add("sf-mask-overlay-leave")}function k(){o("close"),window.document.removeEventListener("keydown",u,!0),c.value=!1}function C(){return new Nt("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,b=>{i.value=b}),r.watch(()=>i.value,b=>{o("update:visible",b),b&&(c.value=!0)}),(b,S)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[c.value?(r.openBlock(),r.createElementBlock("div",{key:0,id:s,class:r.normalizeClass(C()),style:r.normalizeStyle({zIndex:l.value-1}),onClick:m},[r.createVNode(r.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:h,onEnter:p,onBeforeLeave:y,onAfterLeave:k},{default:r.withCtx(()=>[i.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer"]),style:r.normalizeStyle(n.style),role:"dialog"},[r.renderSlot(b.$slots,"header",r.normalizeProps(r.guardReactiveProps({Close:d})),()=>[r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[r.renderSlot(b.$slots,"title",{},()=>[r.createElementVNode("div",es,r.toDisplayString(n.title),1)]),S[0]||(S[0]=r.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),r.createElementVNode("div",ts,[r.renderSlot(b.$slots,"action",r.normalizeProps(r.guardReactiveProps({Close:d})),()=>[r.createVNode(we,{button:!0,icon:"close",onClick:d})])])],2)]),r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[r.renderSlot(b.$slots,"default")],2),r.unref(a).footer?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[r.renderSlot(b.$slots,"footer",r.normalizeProps(r.guardReactiveProps({Close:d})))],2)):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0)]),_:3})],6)):r.createCommentVNode("",!0)]))}}),ns=["data-icon"],os=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 Nt("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(a,i)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.value),"data-icon":n.value},[r.renderSlot(a.$slots,"default")],10,ns))}});function rs(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function as(t,e){if(t&&e){let n=o=>{rs(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Qn(t,e){if(t&&e){let n=o=>{t.classList?t.classList.remove(o):t.className=t.className.replace(new RegExp("(^|\\b)"+o.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function ar(t){return t?Math.abs(t.scrollLeft):0}function is(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function ss(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function ls(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&ss(t))}function Mt(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function gn(t,e={}){if(Mt(t)){let n=(o,a)=>{var i,c;let l=(i=t?.$attrs)!=null&&i[o]?[(c=t?.$attrs)==null?void 0:c[o]]:[];return[a].flat().reduce((s,d)=>{if(d!=null){let m=typeof d;if(m==="string"||m==="number")s.push(d);else if(m==="object"){let u=Array.isArray(d)?n(o,d):Object.entries(d).map(([p,h])=>o==="style"&&(h||h===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?p:void 0);s=u.length?s.concat(u.filter(p=>!!p)):s}}return s},l)};Object.entries(e).forEach(([o,a])=>{if(a!=null){let i=o.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),a):o==="p-bind"||o==="pBind"?gn(t,a):(a=o==="class"?[...new Set(n("class",a))].join(" ").trim():o==="style"?n("style",a).join(";").trim():a,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=a),t.setAttribute(o,a))}})}}function cs(t,e={},...n){{let o=document.createElement(t);return gn(o,e),o.append(...n),o}}function _e(t,e){return Mt(t)?t.matches(e)?t:t.querySelector(e):null}function Dt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Rt(t,e){if(Mt(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function ir(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 ds(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||ar(document.documentElement)||ar(document.body)||0)}}return{top:"auto",left:"auto"}}function us(t,e){return t?t.offsetHeight:0}function sr(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 ms(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function fs(t,e="",n){Mt(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Ke(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function eo(t,e,n=new WeakSet){if(t===e)return!0;if(!t||!e||typeof t!="object"||typeof e!="object"||n.has(t)||n.has(e))return!1;n.add(t).add(e);let o=Array.isArray(t),a=Array.isArray(e),i,c,l;if(o&&a){if(c=t.length,c!=e.length)return!1;for(i=c;i--!==0;)if(!eo(t[i],e[i],n))return!1;return!0}if(o!=a)return!1;let s=t instanceof Date,d=e instanceof Date;if(s!=d)return!1;if(s&&d)return t.getTime()==e.getTime();let m=t instanceof RegExp,u=e instanceof RegExp;if(m!=u)return!1;if(m&&u)return t.toString()==e.toString();let p=Object.keys(t);if(c=p.length,c!==Object.keys(e).length)return!1;for(i=c;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[i]))return!1;for(i=c;i--!==0;)if(l=p[i],!eo(t[l],e[l],n))return!1;return!0}function ps(t,e){return eo(t,e)}function to(t){return typeof t=="function"&&"call"in t&&"apply"in t}function $(t){return!Ke(t)}function lr(t,e){return null}function ht(t,e,n){return n?lr()===lr():ps(t,e)}function Ge(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function cr(t,e){let n;if($(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function ee(t,...e){return to(t)?t(...e):t}function me(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Pe(t){return me(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function no(t,e="",n={}){let o=Pe(e).split("."),a=o.shift();if(a){if(Ge(t)){let i=Object.keys(t).find(c=>Pe(c)===a)||"";return no(ee(t[i],n),o.join("."),n)}return}return ee(t,n)}function dr(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function hs(t){return $(t)&&!isNaN(t)}function gs(t=""){return $(t)&&t.length===1&&!!t.match(/\S| /)}function nt(t,e){if(e){let n=e.test(t);return e.lastIndex=0,n}return!1}function Vt(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 bs(t){return me(t,!1)?t[0].toUpperCase()+t.slice(1):t}function ur(t){return me(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function mr(){let t=new Map;return{on(e,n){let o=t.get(e);return o?o.push(n):o=[n],t.set(e,o),this},off(e,n){let o=t.get(e);return o&&o.splice(o.indexOf(n)>>>0,1),this},emit(e,n){let o=t.get(e);o&&o.forEach(a=>{a(n)})},clear(){t.clear()}}}var bn={};function ws(t="pui_id_"){return Object.hasOwn(bn,t)||(bn[t]=0),bn[t]++,`${t}${bn[t]}`}var vs=Object.defineProperty,ys=Object.defineProperties,ks=Object.getOwnPropertyDescriptors,wn=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable,hr=(t,e,n)=>e in t?vs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ee=(t,e)=>{for(var n in e||(e={}))fr.call(e,n)&&hr(t,n,e[n]);if(wn)for(var n of wn(e))pr.call(e,n)&&hr(t,n,e[n]);return t},oo=(t,e)=>ys(t,ks(e)),Me=(t,e)=>{var n={};for(var o in t)fr.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&wn)for(var o of wn(t))e.indexOf(o)<0&&pr.call(t,o)&&(n[o]=t[o]);return n},Cs=mr(),ae=Cs,jt=/{([^}]*)}/g,gr=/(\d+\s+[\+\-\*\/]\s+\d+)/g,br=/var\([^)]+\)/g;function wr(t){return me(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function Ss(t){return Ge(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function _s(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function ro(t="",e=""){return _s(`${me(t,!1)&&me(e,!1)?`${t}-`:t}${e}`)}function vr(t="",e=""){return`--${ro(t,e)}`}function Es(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function yr(t,e="",n="",o=[],a){if(me(t)){let i=t.trim();if(Es(i))return;if(nt(i,jt)){let c=i.replaceAll(jt,l=>{let s=l.replace(/{|}/g,"").split(".").filter(d=>!o.some(m=>nt(d,m)));return`var(${vr(n,ur(s.join("-")))}${$(a)?`, ${a}`:""})`});return nt(c.replace(br,"0"),gr)?`calc(${c})`:c}return i}else if(hs(t))return t}function xs(t,e,n){me(e,!1)&&t.push(`${e}:${n};`)}function gt(t,e){return t?`${t}{${e}}`:""}function kr(t,e){if(t.indexOf("dt(")===-1)return t;function n(c,l){let s=[],d=0,m="",u=null,p=0;for(;d<=c.length;){let h=c[d];if((h==='"'||h==="'"||h==="`")&&c[d-1]!=="\\"&&(u=u===h?null:h),!u&&(h==="("&&p++,h===")"&&p--,(h===","||d===c.length)&&p===0)){let y=m.trim();y.startsWith("dt(")?s.push(kr(y,l)):s.push(o(y)),m="",d++;continue}h!==void 0&&(m+=h),d++}return s}function o(c){let l=c[0];if((l==='"'||l==="'"||l==="`")&&c[c.length-1]===l)return c.slice(1,-1);let s=Number(c);return isNaN(s)?c:s}let a=[],i=[];for(let c=0;c<t.length;c++)if(t[c]==="d"&&t.slice(c,c+3)==="dt(")i.push(c),c+=2;else if(t[c]===")"&&i.length>0){let l=i.pop();i.length===0&&a.push([l,c])}if(!a.length)return t;for(let c=a.length-1;c>=0;c--){let[l,s]=a[c],d=t.slice(l+3,s),m=n(d,e),u=e(...m);t=t.slice(0,l)+u+t.slice(s+1)}return t}var ot=(...t)=>Ts(H.getTheme(),...t),Ts=(t={},e,n,o)=>{if(e){let{variable:a,options:i}=H.defaults||{},{prefix:c,transform:l}=t?.options||i||{},s=nt(e,jt)?e:`{${e}}`;return o==="value"||Ke(o)&&l==="strict"?H.getTokenValue(e):yr(s,void 0,c,[a.excludedKeyRegex],n)}return""};function vn(t,...e){if(t instanceof Array){let n=t.reduce((o,a,i)=>{var c;return o+a+((c=ee(e[i],{dt:ot}))!=null?c:"")},"");return kr(n,ot)}return ee(t,{dt:ot})}function Is(t,e={}){let n=H.defaults.variable,{prefix:o=n.prefix,selector:a=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,c=[],l=[],s=[{node:t,path:o}];for(;s.length;){let{node:m,path:u}=s.pop();for(let p in m){let h=m[p],y=Ss(h),k=nt(p,i)?ro(u):ro(u,ur(p));if(Ge(y))s.push({node:y,path:k});else{let C=vr(k),b=yr(y,k,o,[i]);xs(l,C,b);let S=k;o&&S.startsWith(o+"-")&&(S=S.slice(o.length+1)),c.push(S.replace(/-/g,"."))}}}let d=l.join("");return{value:l,tokens:c,declarations:d,css:gt(a,d)}}var xe={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,:host${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:t,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var o;return(o=e.map(a=>a.resolve(n)).find(a=>a.matched))!=null?o:this.rules.custom.resolve(n)})}},_toVariables(t,e){return Is(t,{prefix:e?.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:a}){var i,c,l,s,d,m,u;let{preset:p,options:h}=e,y,k,C,b,S,B,w;if($(p)&&h.transform!=="strict"){let{primitive:E,semantic:U,extend:J}=p,ke=U||{},{colorScheme:ne}=ke,Ce=Me(ke,["colorScheme"]),I=J||{},{colorScheme:V}=I,oe=Me(I,["colorScheme"]),ue=ne||{},{dark:Ie}=ue,Ze=Me(ue,["dark"]),Ve=V||{},{dark:je}=Ve,Je=Me(Ve,["dark"]),Se=$(E)?this._toVariables({primitive:E},h):{},R=$(Ce)?this._toVariables({semantic:Ce},h):{},Oe=$(Ze)?this._toVariables({light:Ze},h):{},W=$(Ie)?this._toVariables({dark:Ie},h):{},He=$(oe)?this._toVariables({semantic:oe},h):{},z=$(Je)?this._toVariables({light:Je},h):{},Qe=$(je)?this._toVariables({dark:je},h):{},[cn,Un]=[(i=Se.declarations)!=null?i:"",Se.tokens],[dn,Wn]=[(c=R.declarations)!=null?c:"",R.tokens||[]],[Kn,et]=[(l=Oe.declarations)!=null?l:"",Oe.tokens||[]],[Tt,ze]=[(s=W.declarations)!=null?s:"",W.tokens||[]],[un,mn]=[(d=He.declarations)!=null?d:"",He.tokens||[]],[tt,It]=[(m=z.declarations)!=null?m:"",z.tokens||[]],[At,Gn]=[(u=Qe.declarations)!=null?u:"",Qe.tokens||[]];y=this.transformCSS(t,cn,"light","variable",h,o,a),k=Un;let qn=this.transformCSS(t,`${dn}${Kn}`,"light","variable",h,o,a),qo=this.transformCSS(t,`${Tt}`,"dark","variable",h,o,a);C=`${qn}${qo}`,b=[...new Set([...Wn,...et,...ze])];let fn=this.transformCSS(t,`${un}${tt}color-scheme:light`,"light","variable",h,o,a),ut=this.transformCSS(t,`${At}color-scheme:dark`,"dark","variable",h,o,a);S=`${fn}${ut}`,B=[...new Set([...mn,...It,...Gn])],w=ee(p.css,{dt:ot})}return{primitive:{css:y,tokens:k},semantic:{css:C,tokens:b},global:{css:S,tokens:B},style:w}},getPreset({name:t="",preset:e={},options:n,params:o,set:a,defaults:i,selector:c}){var l,s,d;let m,u,p;if($(e)&&n.transform!=="strict"){let h=t.replace("-directive",""),y=e,{colorScheme:k,extend:C,css:b}=y,S=Me(y,["colorScheme","extend","css"]),B=C||{},{colorScheme:w}=B,E=Me(B,["colorScheme"]),U=k||{},{dark:J}=U,ke=Me(U,["dark"]),ne=w||{},{dark:Ce}=ne,I=Me(ne,["dark"]),V=$(S)?this._toVariables({[h]:Ee(Ee({},S),E)},n):{},oe=$(ke)?this._toVariables({[h]:Ee(Ee({},ke),I)},n):{},ue=$(J)?this._toVariables({[h]:Ee(Ee({},J),Ce)},n):{},[Ie,Ze]=[(l=V.declarations)!=null?l:"",V.tokens||[]],[Ve,je]=[(s=oe.declarations)!=null?s:"",oe.tokens||[]],[Je,Se]=[(d=ue.declarations)!=null?d:"",ue.tokens||[]],R=this.transformCSS(h,`${Ie}${Ve}`,"light","variable",n,a,i,c),Oe=this.transformCSS(h,Je,"dark","variable",n,a,i,c);m=`${R}${Oe}`,u=[...new Set([...Ze,...je,...Se])],p=ee(b,{dt:ot})}return{css:m,tokens:u,style:p}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:a}){var i;let{preset:c,options:l}=e,s=(i=c?.components)==null?void 0:i[t];return this.getPreset({name:t,preset:s,options:l,params:n,set:o,defaults:a})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:a}){var i,c;let l=t.replace("-directive",""),{preset:s,options:d}=e,m=((i=s?.components)==null?void 0:i[l])||((c=s?.directives)==null?void 0:c[l]);return this.getPreset({name:l,preset:m,options:d,params:n,set:o,defaults:a})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,o){let{cssLayer:a}=e;return a?`@layer ${ee(a.order||a.name||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:a,defaults:i}){let c=this.getCommon({name:t,theme:e,params:n,set:a,defaults:i}),l=Object.entries(o).reduce((s,[d,m])=>s.push(`${d}="${m}"`)&&s,[]).join(" ");return Object.entries(c||{}).reduce((s,[d,m])=>{if(Ge(m)&&Object.hasOwn(m,"css")){let u=Vt(m.css),p=`${d}-variables`;s.push(`<style type="text/css" data-primevue-style-id="${p}" ${l}>${u}</style>`)}return s},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:a,defaults:i}){var c;let l={name:t,theme:e,params:n,set:a,defaults:i},s=(c=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:c.css,d=Object.entries(o).reduce((m,[u,p])=>m.push(`${u}="${p}"`)&&m,[]).join(" ");return s?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Vt(s)}</style>`:""},createTokens(t={},e,n="",o="",a={}){let i=function(l,s={},d=[]){if(d.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:l,path:this.path,paths:s,value:void 0};d.push(this.path),s.name=this.path,s.binding||(s.binding={});let m=this.value;if(typeof this.value=="string"&&jt.test(this.value)){let u=this.value.trim().replace(jt,p=>{var h;let y=p.slice(1,-1),k=this.tokens[y];if(!k)return console.warn(`Token not found for path: ${y}`),"__UNRESOLVED__";let C=k.computed(l,s,d);return Array.isArray(C)&&C.length===2?`light-dark(${C[0].value},${C[1].value})`:(h=C?.value)!=null?h:"__UNRESOLVED__"});m=gr.test(u.replace(br,"0"))?`calc(${u})`:u}return Ke(s.binding)&&delete s.binding,d.pop(),{colorScheme:l,path:this.path,paths:s,value:m.includes("__UNRESOLVED__")?void 0:m}},c=(l,s,d)=>{Object.entries(l).forEach(([m,u])=>{let p=nt(m,e.variable.excludedKeyRegex)?s:s?`${s}.${wr(m)}`:wr(m),h=d?`${d}.${m}`:m;Ge(u)?c(u,p,h):(a[p]||(a[p]={paths:[],computed:(y,k={},C=[])=>{if(a[p].paths.length===1)return a[p].paths[0].computed(a[p].paths[0].scheme,k.binding,C);if(y&&y!=="none")for(let b=0;b<a[p].paths.length;b++){let S=a[p].paths[b];if(S.scheme===y)return S.computed(y,k.binding,C)}return a[p].paths.map(b=>b.computed(b.scheme,k[b.scheme],C))}}),a[p].paths.push({path:h,value:u,scheme:h.includes("colorScheme.light")?"light":h.includes("colorScheme.dark")?"dark":"none",computed:i,tokens:a}))})};return c(t,n,o),a},getTokenValue(t,e,n){var o;let a=(l=>l.split(".").filter(s=>!nt(s.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),i=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,c=[(o=t[a])==null?void 0:o.computed(i)].flat().filter(l=>l);return c.length===1?c[0].value:c.reduce((l={},s)=>{let d=s,{colorScheme:m}=d,u=Me(d,["colorScheme"]);return l[m]=u,l},void 0)},getSelectorRule(t,e,n,o){return n==="class"||n==="attr"?gt($(e)?`${t}${e},${t} ${e}`:t,o):gt(t,gt(e??":root,:host",o))},transformCSS(t,e,n,o,a={},i,c,l){if($(e)){let{cssLayer:s}=a;if(o!=="style"){let d=this.getColorSchemeOption(a,c);e=n==="dark"?d.reduce((m,{type:u,selector:p})=>($(p)&&(m+=p.includes("[CSS]")?p.replace("[CSS]",e):this.getSelectorRule(p,l,u,e)),m),""):gt(l??":root,:host",e)}if(s){let d={name:"primeui"};Ge(s)&&(d.name=ee(s.name,{name:t,type:o})),$(d.name)&&(e=gt(`@layer ${d.name}`,e),i?.layerNames(d.name))}return e}return""}},H={defaults:{variable:{prefix:"p",selector:":root,:host",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:e}=t;e&&(this._theme=oo(Ee({},e),{options:Ee(Ee({},this.defaults.options),e.options)}),this._tokens=xe.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}),ae.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=oo(Ee({},this.theme),{preset:t}),this._tokens=xe.createTokens(t,this.defaults),this.clearLoadedStyleNames(),ae.emit("preset:change",t),ae.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=oo(Ee({},this.theme),{options:t}),this.clearLoadedStyleNames(),ae.emit("options:change",t),ae.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 xe.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return xe.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xe.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xe.getPresetD(n)},getCustomPreset(t="",e,n,o){let a={name:t,preset:e,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xe.getPreset(a)},getLayerOrderCSS(t=""){return xe.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return xe.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return xe.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return xe.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),ae.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&ae.emit("theme:load"))}},qe={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}},As=`
|
|
1
|
+
(function(A,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):(A=typeof globalThis<"u"?globalThis:A||self,r(A.SfPrefeituraSPVueComponents={},A.Vue,A.SfPrefeituraSPVueAuth,A.VueRouter))})(this,(function(A,r,ft,zi){"use strict";class Nt{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 hn(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 a=getComputedStyle(o).zIndex;return+a==+a?+a:0}));return n>=100?n:100}const tr=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=`${hn()??1}`,this.wrapper.addEventListener("mouseup",function(){this.classList.remove("visible"),Array.from(this.children).forEach(i=>i.remove()),this.remove()}),this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.showTimeout&&clearTimeout(this.showTimeout),this.target=i.currentTarget,this.showTimeout=setTimeout(()=>{this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position()},100)}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 i=this.target.getBoundingClientRect();this.FixWidth();const c=this.wrapper,l=5;c.style.top=`${i.top+i.height-l}px`,c.style.left=`${i.left+i.width-l}px`,this.OutOfBottom()&&(c.style.top=`${i.top-c.clientHeight+l}px`),this.OutOfRight()&&(c.style.left=`${i.left-c.clientWidth+l}px`)}FixWidth(){const i=this.wrapper;if(!i)return;i.style.width="fit-content",i.style.wordBreak="normal",i.style.whiteSpace="nowrap";const c=window.innerWidth/2;i.clientWidth>c&&(i.style.width=`${c}px`,i.style.wordBreak="break-word",i.style.whiteSpace="normal")}OutOfBottom(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),l=window.innerHeight||document.documentElement.clientHeight;return c.bottom+10>l}OutOfRight(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),l=window.innerWidth||document.documentElement.clientWidth;return c.right+10>l}}const o=new n;return r.onBeforeUnmount(()=>{o.Hide()}),(a,i)=>(r.openBlock(),r.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...c)=>r.unref(o).Show&&r.unref(o).Show(...c)),onMousedown:i[1]||(i[1]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c)),onMouseleave:i[2]||(i[2]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c))},[r.renderSlot(a.$slots,"default")],32))}}),Ae=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},Fi={},Ui={class:"sf-loading-circle"};function Wi(t,e){return r.openBlock(),r.createElementBlock("div",Ui,[...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 nr=Ae(Fi,[["render",Wi]]),Ki=["data-size"],Gi=["disabled","data-p-loading","tabindex"],qi=["data-color"],we=Ae(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?tr:"div"),a=r.computed(()=>new Nt(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),i=r.computed(()=>new Nt(`${n.class} sf-icon`).AddClass("select-none").AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),c=s=>{n.disabled||n.loading||l("click",s)},l=e;return(s,d)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value),{text:n.tooltip,class:r.normalizeClass(a.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(i.value)},[n.loading?(r.openBlock(),r.createBlock(nr,{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,Gi),n.dot&&!n.disabled&&!n.loading?(r.openBlock(),r.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,qi)):r.createCommentVNode("",!0)],64))],6)):r.createCommentVNode("",!0)],10,Ki)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-75c3c2ce"]]),Yi={class:"sf-tab-navigation"},Xi=["data-active"],Zi=["href","onClick"],Ji=r.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=r.ref(null),o=new ResizeObserver(s=>{l()}),a=r.ref(!1),i=r.ref(!1);function c(s=!1){const d=n.value.clientWidth;n.value.scrollLeft+=s?-d:d}function l(){const s=n.value.scrollWidth-n.value.clientWidth;a.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<s-10}return r.onMounted(()=>{n.value.addEventListener("scroll",l),o.observe(n.value)}),r.onBeforeUnmount(()=>{try{n.value?.removeEventListener("scroll",l),o.unobserve(n.value),o.disconnect()}catch{}}),(s,d)=>{const m=r.resolveComponent("RouterLink");return r.openBlock(),r.createElementBlock("div",Yi,[r.createElementVNode("div",{class:r.normalizeClass(["left-arrow",{active:a.value}]),onClick:d[0]||(d[0]=u=>c(!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,u=>(r.openBlock(),r.createBlock(m,{to:u.route,custom:!0},{default:r.withCtx(({navigate:p,isActive:h})=>[r.createElementVNode("li",{"data-active":h},[r.renderSlot(s.$slots,"item",{item:u,navigate:p,isActive:h},()=>[r.createElementVNode("a",{href:u.route,class:r.normalizeClass({active:h}),onClick:p},r.toDisplayString(u.text),11,Zi)])],8,Xi)]),_:2},1032,["to"]))),256))],512),r.createElementVNode("div",{class:r.normalizeClass(["right-arrow",{active:i.value}]),onClick:d[1]||(d[1]=u=>c())},[...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)])}}}),or=Ae(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,a)=>n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["loading-circle",{dense:e.dense}])},[...a[0]||(a[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"]]),Qi=["id","name","disabled","data-color","form","type","data-p-loading"],pt=Ae(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 Nt(`${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 a=c=>{n.disabled||n.loading||i("click",c)},i=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:a},[n.loading?(r.openBlock(),r.createBlock(or,{key:0,dense:!0,delay:0,class:r.normalizeClass("icon-loading")})):r.createCommentVNode("",!0),n.icon?(r.openBlock(),r.createBlock(we,{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,Qi)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-162a5381"]]),es={class:"sf-drawer-title"},ts={class:"sf-drawer-action"},rr=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","before-open","open","before-close","close"],setup(t,{emit:e}){const n=t,o=e,a=r.useSlots(),i=r.ref(n.visible),c=r.ref(!1),l=r.ref(0),s="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function d(){i.value=!1}function m(b){if(!n.dismissableMask)return;const S=b.target;S&&S.id===s&&(i.value=!1)}function u(b){(b.key==="Escape"||b.code==="Escape")&&d()}function p(){o("open"),window.document.addEventListener("keydown",u,!0)}function h(b){o("before-open"),l.value=hn()+1,b.style.zIndex=`${l.value}`}function w(b){o("before-close"),b?.parentElement?.classList.add("sf-mask-overlay-leave")}function v(){o("close"),window.document.removeEventListener("keydown",u,!0),c.value=!1}function C(){return new Nt("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,b=>{i.value=b}),r.watch(()=>i.value,b=>{o("update:visible",b),b&&(c.value=!0)}),(b,S)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[c.value?(r.openBlock(),r.createElementBlock("div",{key:0,id:s,class:r.normalizeClass(C()),style:r.normalizeStyle({zIndex:l.value-1}),onClick:m},[r.createVNode(r.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:h,onEnter:p,onBeforeLeave:w,onAfterLeave:v},{default:r.withCtx(()=>[i.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer"]),style:r.normalizeStyle(n.style),role:"dialog"},[r.renderSlot(b.$slots,"header",r.normalizeProps(r.guardReactiveProps({Close:d})),()=>[r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[r.renderSlot(b.$slots,"title",{},()=>[r.createElementVNode("div",es,r.toDisplayString(n.title),1)]),S[0]||(S[0]=r.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),r.createElementVNode("div",ts,[r.renderSlot(b.$slots,"action",r.normalizeProps(r.guardReactiveProps({Close:d})),()=>[r.createVNode(we,{button:!0,icon:"close",onClick:d})])])],2)]),r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[r.renderSlot(b.$slots,"default")],2),r.unref(a).footer?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[r.renderSlot(b.$slots,"footer",r.normalizeProps(r.guardReactiveProps({Close:d})))],2)):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0)]),_:3})],6)):r.createCommentVNode("",!0)]))}}),ns=["data-icon"],os=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 Nt("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(a,i)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.value),"data-icon":n.value},[r.renderSlot(a.$slots,"default")],10,ns))}});function rs(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function as(t,e){if(t&&e){let n=o=>{rs(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Qn(t,e){if(t&&e){let n=o=>{t.classList?t.classList.remove(o):t.className=t.className.replace(new RegExp("(^|\\b)"+o.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function ar(t){return t?Math.abs(t.scrollLeft):0}function is(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function ss(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function ls(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&ss(t))}function Mt(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function gn(t,e={}){if(Mt(t)){let n=(o,a)=>{var i,c;let l=(i=t?.$attrs)!=null&&i[o]?[(c=t?.$attrs)==null?void 0:c[o]]:[];return[a].flat().reduce((s,d)=>{if(d!=null){let m=typeof d;if(m==="string"||m==="number")s.push(d);else if(m==="object"){let u=Array.isArray(d)?n(o,d):Object.entries(d).map(([p,h])=>o==="style"&&(h||h===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?p:void 0);s=u.length?s.concat(u.filter(p=>!!p)):s}}return s},l)};Object.entries(e).forEach(([o,a])=>{if(a!=null){let i=o.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),a):o==="p-bind"||o==="pBind"?gn(t,a):(a=o==="class"?[...new Set(n("class",a))].join(" ").trim():o==="style"?n("style",a).join(";").trim():a,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=a),t.setAttribute(o,a))}})}}function cs(t,e={},...n){{let o=document.createElement(t);return gn(o,e),o.append(...n),o}}function _e(t,e){return Mt(t)?t.matches(e)?t:t.querySelector(e):null}function Dt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Rt(t,e){if(Mt(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function ir(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 ds(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||ar(document.documentElement)||ar(document.body)||0)}}return{top:"auto",left:"auto"}}function us(t,e){return t?t.offsetHeight:0}function sr(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 ms(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function fs(t,e="",n){Mt(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Ke(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function eo(t,e,n=new WeakSet){if(t===e)return!0;if(!t||!e||typeof t!="object"||typeof e!="object"||n.has(t)||n.has(e))return!1;n.add(t).add(e);let o=Array.isArray(t),a=Array.isArray(e),i,c,l;if(o&&a){if(c=t.length,c!=e.length)return!1;for(i=c;i--!==0;)if(!eo(t[i],e[i],n))return!1;return!0}if(o!=a)return!1;let s=t instanceof Date,d=e instanceof Date;if(s!=d)return!1;if(s&&d)return t.getTime()==e.getTime();let m=t instanceof RegExp,u=e instanceof RegExp;if(m!=u)return!1;if(m&&u)return t.toString()==e.toString();let p=Object.keys(t);if(c=p.length,c!==Object.keys(e).length)return!1;for(i=c;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[i]))return!1;for(i=c;i--!==0;)if(l=p[i],!eo(t[l],e[l],n))return!1;return!0}function ps(t,e){return eo(t,e)}function to(t){return typeof t=="function"&&"call"in t&&"apply"in t}function $(t){return!Ke(t)}function lr(t,e){return null}function ht(t,e,n){return n?lr()===lr():ps(t,e)}function Ge(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function cr(t,e){let n;if($(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function ee(t,...e){return to(t)?t(...e):t}function me(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Pe(t){return me(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function no(t,e="",n={}){let o=Pe(e).split("."),a=o.shift();if(a){if(Ge(t)){let i=Object.keys(t).find(c=>Pe(c)===a)||"";return no(ee(t[i],n),o.join("."),n)}return}return ee(t,n)}function dr(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function hs(t){return $(t)&&!isNaN(t)}function gs(t=""){return $(t)&&t.length===1&&!!t.match(/\S| /)}function nt(t,e){if(e){let n=e.test(t);return e.lastIndex=0,n}return!1}function Vt(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 bs(t){return me(t,!1)?t[0].toUpperCase()+t.slice(1):t}function ur(t){return me(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function mr(){let t=new Map;return{on(e,n){let o=t.get(e);return o?o.push(n):o=[n],t.set(e,o),this},off(e,n){let o=t.get(e);return o&&o.splice(o.indexOf(n)>>>0,1),this},emit(e,n){let o=t.get(e);o&&o.forEach(a=>{a(n)})},clear(){t.clear()}}}var bn={};function ws(t="pui_id_"){return Object.hasOwn(bn,t)||(bn[t]=0),bn[t]++,`${t}${bn[t]}`}var vs=Object.defineProperty,ys=Object.defineProperties,ks=Object.getOwnPropertyDescriptors,wn=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable,hr=(t,e,n)=>e in t?vs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ee=(t,e)=>{for(var n in e||(e={}))fr.call(e,n)&&hr(t,n,e[n]);if(wn)for(var n of wn(e))pr.call(e,n)&&hr(t,n,e[n]);return t},oo=(t,e)=>ys(t,ks(e)),Me=(t,e)=>{var n={};for(var o in t)fr.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&wn)for(var o of wn(t))e.indexOf(o)<0&&pr.call(t,o)&&(n[o]=t[o]);return n},Cs=mr(),ae=Cs,jt=/{([^}]*)}/g,gr=/(\d+\s+[\+\-\*\/]\s+\d+)/g,br=/var\([^)]+\)/g;function wr(t){return me(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function Ss(t){return Ge(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function _s(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function ro(t="",e=""){return _s(`${me(t,!1)&&me(e,!1)?`${t}-`:t}${e}`)}function vr(t="",e=""){return`--${ro(t,e)}`}function Es(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function yr(t,e="",n="",o=[],a){if(me(t)){let i=t.trim();if(Es(i))return;if(nt(i,jt)){let c=i.replaceAll(jt,l=>{let s=l.replace(/{|}/g,"").split(".").filter(d=>!o.some(m=>nt(d,m)));return`var(${vr(n,ur(s.join("-")))}${$(a)?`, ${a}`:""})`});return nt(c.replace(br,"0"),gr)?`calc(${c})`:c}return i}else if(hs(t))return t}function xs(t,e,n){me(e,!1)&&t.push(`${e}:${n};`)}function gt(t,e){return t?`${t}{${e}}`:""}function kr(t,e){if(t.indexOf("dt(")===-1)return t;function n(c,l){let s=[],d=0,m="",u=null,p=0;for(;d<=c.length;){let h=c[d];if((h==='"'||h==="'"||h==="`")&&c[d-1]!=="\\"&&(u=u===h?null:h),!u&&(h==="("&&p++,h===")"&&p--,(h===","||d===c.length)&&p===0)){let w=m.trim();w.startsWith("dt(")?s.push(kr(w,l)):s.push(o(w)),m="",d++;continue}h!==void 0&&(m+=h),d++}return s}function o(c){let l=c[0];if((l==='"'||l==="'"||l==="`")&&c[c.length-1]===l)return c.slice(1,-1);let s=Number(c);return isNaN(s)?c:s}let a=[],i=[];for(let c=0;c<t.length;c++)if(t[c]==="d"&&t.slice(c,c+3)==="dt(")i.push(c),c+=2;else if(t[c]===")"&&i.length>0){let l=i.pop();i.length===0&&a.push([l,c])}if(!a.length)return t;for(let c=a.length-1;c>=0;c--){let[l,s]=a[c],d=t.slice(l+3,s),m=n(d,e),u=e(...m);t=t.slice(0,l)+u+t.slice(s+1)}return t}var ot=(...t)=>Ts(H.getTheme(),...t),Ts=(t={},e,n,o)=>{if(e){let{variable:a,options:i}=H.defaults||{},{prefix:c,transform:l}=t?.options||i||{},s=nt(e,jt)?e:`{${e}}`;return o==="value"||Ke(o)&&l==="strict"?H.getTokenValue(e):yr(s,void 0,c,[a.excludedKeyRegex],n)}return""};function vn(t,...e){if(t instanceof Array){let n=t.reduce((o,a,i)=>{var c;return o+a+((c=ee(e[i],{dt:ot}))!=null?c:"")},"");return kr(n,ot)}return ee(t,{dt:ot})}function Is(t,e={}){let n=H.defaults.variable,{prefix:o=n.prefix,selector:a=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,c=[],l=[],s=[{node:t,path:o}];for(;s.length;){let{node:m,path:u}=s.pop();for(let p in m){let h=m[p],w=Ss(h),v=nt(p,i)?ro(u):ro(u,ur(p));if(Ge(w))s.push({node:w,path:v});else{let C=vr(v),b=yr(w,v,o,[i]);xs(l,C,b);let S=v;o&&S.startsWith(o+"-")&&(S=S.slice(o.length+1)),c.push(S.replace(/-/g,"."))}}}let d=l.join("");return{value:l,tokens:c,declarations:d,css:gt(a,d)}}var xe={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,:host${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:t,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var o;return(o=e.map(a=>a.resolve(n)).find(a=>a.matched))!=null?o:this.rules.custom.resolve(n)})}},_toVariables(t,e){return Is(t,{prefix:e?.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:a}){var i,c,l,s,d,m,u;let{preset:p,options:h}=e,w,v,C,b,S,B,y;if($(p)&&h.transform!=="strict"){let{primitive:E,semantic:U,extend:J}=p,ke=U||{},{colorScheme:ne}=ke,Ce=Me(ke,["colorScheme"]),I=J||{},{colorScheme:V}=I,oe=Me(I,["colorScheme"]),ue=ne||{},{dark:Ie}=ue,Ze=Me(ue,["dark"]),Ve=V||{},{dark:je}=Ve,Je=Me(Ve,["dark"]),Se=$(E)?this._toVariables({primitive:E},h):{},R=$(Ce)?this._toVariables({semantic:Ce},h):{},Oe=$(Ze)?this._toVariables({light:Ze},h):{},W=$(Ie)?this._toVariables({dark:Ie},h):{},He=$(oe)?this._toVariables({semantic:oe},h):{},z=$(Je)?this._toVariables({light:Je},h):{},Qe=$(je)?this._toVariables({dark:je},h):{},[cn,Un]=[(i=Se.declarations)!=null?i:"",Se.tokens],[dn,Wn]=[(c=R.declarations)!=null?c:"",R.tokens||[]],[Kn,et]=[(l=Oe.declarations)!=null?l:"",Oe.tokens||[]],[Tt,ze]=[(s=W.declarations)!=null?s:"",W.tokens||[]],[un,mn]=[(d=He.declarations)!=null?d:"",He.tokens||[]],[tt,It]=[(m=z.declarations)!=null?m:"",z.tokens||[]],[At,Gn]=[(u=Qe.declarations)!=null?u:"",Qe.tokens||[]];w=this.transformCSS(t,cn,"light","variable",h,o,a),v=Un;let qn=this.transformCSS(t,`${dn}${Kn}`,"light","variable",h,o,a),qo=this.transformCSS(t,`${Tt}`,"dark","variable",h,o,a);C=`${qn}${qo}`,b=[...new Set([...Wn,...et,...ze])];let fn=this.transformCSS(t,`${un}${tt}color-scheme:light`,"light","variable",h,o,a),ut=this.transformCSS(t,`${At}color-scheme:dark`,"dark","variable",h,o,a);S=`${fn}${ut}`,B=[...new Set([...mn,...It,...Gn])],y=ee(p.css,{dt:ot})}return{primitive:{css:w,tokens:v},semantic:{css:C,tokens:b},global:{css:S,tokens:B},style:y}},getPreset({name:t="",preset:e={},options:n,params:o,set:a,defaults:i,selector:c}){var l,s,d;let m,u,p;if($(e)&&n.transform!=="strict"){let h=t.replace("-directive",""),w=e,{colorScheme:v,extend:C,css:b}=w,S=Me(w,["colorScheme","extend","css"]),B=C||{},{colorScheme:y}=B,E=Me(B,["colorScheme"]),U=v||{},{dark:J}=U,ke=Me(U,["dark"]),ne=y||{},{dark:Ce}=ne,I=Me(ne,["dark"]),V=$(S)?this._toVariables({[h]:Ee(Ee({},S),E)},n):{},oe=$(ke)?this._toVariables({[h]:Ee(Ee({},ke),I)},n):{},ue=$(J)?this._toVariables({[h]:Ee(Ee({},J),Ce)},n):{},[Ie,Ze]=[(l=V.declarations)!=null?l:"",V.tokens||[]],[Ve,je]=[(s=oe.declarations)!=null?s:"",oe.tokens||[]],[Je,Se]=[(d=ue.declarations)!=null?d:"",ue.tokens||[]],R=this.transformCSS(h,`${Ie}${Ve}`,"light","variable",n,a,i,c),Oe=this.transformCSS(h,Je,"dark","variable",n,a,i,c);m=`${R}${Oe}`,u=[...new Set([...Ze,...je,...Se])],p=ee(b,{dt:ot})}return{css:m,tokens:u,style:p}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:a}){var i;let{preset:c,options:l}=e,s=(i=c?.components)==null?void 0:i[t];return this.getPreset({name:t,preset:s,options:l,params:n,set:o,defaults:a})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:a}){var i,c;let l=t.replace("-directive",""),{preset:s,options:d}=e,m=((i=s?.components)==null?void 0:i[l])||((c=s?.directives)==null?void 0:c[l]);return this.getPreset({name:l,preset:m,options:d,params:n,set:o,defaults:a})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,o){let{cssLayer:a}=e;return a?`@layer ${ee(a.order||a.name||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:a,defaults:i}){let c=this.getCommon({name:t,theme:e,params:n,set:a,defaults:i}),l=Object.entries(o).reduce((s,[d,m])=>s.push(`${d}="${m}"`)&&s,[]).join(" ");return Object.entries(c||{}).reduce((s,[d,m])=>{if(Ge(m)&&Object.hasOwn(m,"css")){let u=Vt(m.css),p=`${d}-variables`;s.push(`<style type="text/css" data-primevue-style-id="${p}" ${l}>${u}</style>`)}return s},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:a,defaults:i}){var c;let l={name:t,theme:e,params:n,set:a,defaults:i},s=(c=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:c.css,d=Object.entries(o).reduce((m,[u,p])=>m.push(`${u}="${p}"`)&&m,[]).join(" ");return s?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Vt(s)}</style>`:""},createTokens(t={},e,n="",o="",a={}){let i=function(l,s={},d=[]){if(d.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:l,path:this.path,paths:s,value:void 0};d.push(this.path),s.name=this.path,s.binding||(s.binding={});let m=this.value;if(typeof this.value=="string"&&jt.test(this.value)){let u=this.value.trim().replace(jt,p=>{var h;let w=p.slice(1,-1),v=this.tokens[w];if(!v)return console.warn(`Token not found for path: ${w}`),"__UNRESOLVED__";let C=v.computed(l,s,d);return Array.isArray(C)&&C.length===2?`light-dark(${C[0].value},${C[1].value})`:(h=C?.value)!=null?h:"__UNRESOLVED__"});m=gr.test(u.replace(br,"0"))?`calc(${u})`:u}return Ke(s.binding)&&delete s.binding,d.pop(),{colorScheme:l,path:this.path,paths:s,value:m.includes("__UNRESOLVED__")?void 0:m}},c=(l,s,d)=>{Object.entries(l).forEach(([m,u])=>{let p=nt(m,e.variable.excludedKeyRegex)?s:s?`${s}.${wr(m)}`:wr(m),h=d?`${d}.${m}`:m;Ge(u)?c(u,p,h):(a[p]||(a[p]={paths:[],computed:(w,v={},C=[])=>{if(a[p].paths.length===1)return a[p].paths[0].computed(a[p].paths[0].scheme,v.binding,C);if(w&&w!=="none")for(let b=0;b<a[p].paths.length;b++){let S=a[p].paths[b];if(S.scheme===w)return S.computed(w,v.binding,C)}return a[p].paths.map(b=>b.computed(b.scheme,v[b.scheme],C))}}),a[p].paths.push({path:h,value:u,scheme:h.includes("colorScheme.light")?"light":h.includes("colorScheme.dark")?"dark":"none",computed:i,tokens:a}))})};return c(t,n,o),a},getTokenValue(t,e,n){var o;let a=(l=>l.split(".").filter(s=>!nt(s.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),i=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,c=[(o=t[a])==null?void 0:o.computed(i)].flat().filter(l=>l);return c.length===1?c[0].value:c.reduce((l={},s)=>{let d=s,{colorScheme:m}=d,u=Me(d,["colorScheme"]);return l[m]=u,l},void 0)},getSelectorRule(t,e,n,o){return n==="class"||n==="attr"?gt($(e)?`${t}${e},${t} ${e}`:t,o):gt(t,gt(e??":root,:host",o))},transformCSS(t,e,n,o,a={},i,c,l){if($(e)){let{cssLayer:s}=a;if(o!=="style"){let d=this.getColorSchemeOption(a,c);e=n==="dark"?d.reduce((m,{type:u,selector:p})=>($(p)&&(m+=p.includes("[CSS]")?p.replace("[CSS]",e):this.getSelectorRule(p,l,u,e)),m),""):gt(l??":root,:host",e)}if(s){let d={name:"primeui"};Ge(s)&&(d.name=ee(s.name,{name:t,type:o})),$(d.name)&&(e=gt(`@layer ${d.name}`,e),i?.layerNames(d.name))}return e}return""}},H={defaults:{variable:{prefix:"p",selector:":root,:host",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:e}=t;e&&(this._theme=oo(Ee({},e),{options:Ee(Ee({},this.defaults.options),e.options)}),this._tokens=xe.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}),ae.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=oo(Ee({},this.theme),{preset:t}),this._tokens=xe.createTokens(t,this.defaults),this.clearLoadedStyleNames(),ae.emit("preset:change",t),ae.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=oo(Ee({},this.theme),{options:t}),this.clearLoadedStyleNames(),ae.emit("options:change",t),ae.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 xe.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return xe.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xe.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xe.getPresetD(n)},getCustomPreset(t="",e,n,o){let a={name:t,preset:e,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xe.getPreset(a)},getLayerOrderCSS(t=""){return xe.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return xe.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return xe.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return xe.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),ae.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&ae.emit("theme:load"))}},qe={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}},As=`
|
|
2
2
|
*,
|
|
3
3
|
::before,
|
|
4
4
|
::after {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
background: transparent;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
`;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 Cr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function Sr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Cr(Object(n),!0).forEach(function(o){Ps(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Ps(t,e,n){return(e=$s(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $s(t){var e=Bs(t,"string");return Ht(e)=="symbol"?e:e+""}function Bs(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)}function Ls(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 Os=0;function Ns(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.ref(!1),o=r.ref(t),a=r.ref(null),i=ms()?window.document:void 0,c=e.document,l=c===void 0?i:c,s=e.immediate,d=s===void 0?!0:s,m=e.manual,u=m===void 0?!1:m,p=e.name,h=p===void 0?"style_".concat(++Os):p,
|
|
124
|
+
`;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 Cr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function Sr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Cr(Object(n),!0).forEach(function(o){Ps(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Ps(t,e,n){return(e=$s(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $s(t){var e=Bs(t,"string");return Ht(e)=="symbol"?e:e+""}function Bs(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)}function Ls(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 Os=0;function Ns(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.ref(!1),o=r.ref(t),a=r.ref(null),i=ms()?window.document:void 0,c=e.document,l=c===void 0?i:c,s=e.immediate,d=s===void 0?!0:s,m=e.manual,u=m===void 0?!1:m,p=e.name,h=p===void 0?"style_".concat(++Os):p,w=e.id,v=w===void 0?void 0:w,C=e.media,b=C===void 0?void 0:C,S=e.nonce,B=S===void 0?void 0:S,y=e.first,E=y===void 0?!1:y,U=e.onMounted,J=U===void 0?void 0:U,ke=e.onUpdated,ne=ke===void 0?void 0:ke,Ce=e.onLoad,I=Ce===void 0?void 0:Ce,V=e.props,oe=V===void 0?{}:V,ue=function(){},Ie=function(je){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var Se=Sr(Sr({},oe),Je),R=Se.name||h,Oe=Se.id||v,W=Se.nonce||B;a.value=l.querySelector('style[data-primevue-style-id="'.concat(R,'"]'))||l.getElementById(Oe)||l.createElement("style"),a.value.isConnected||(o.value=je||t,gn(a.value,{type:"text/css",id:Oe,media:b,nonce:W}),E?l.head.prepend(a.value):l.head.appendChild(a.value),fs(a.value,"data-primevue-style-id",R),gn(a.value,Se),a.value.onload=function(He){return I?.(He,{name:R})},J?.(R)),!n.value&&(ue=r.watch(o,function(He){a.value.textContent=He,ne?.(R)},{immediate:!0}),n.value=!0)}},Ze=function(){!l||!n.value||(ue(),ls(a.value)&&l.head.removeChild(a.value),n.value=!1,a.value=null)};return d&&!u&&Ls(Ie),{id:v,name:h,el:a,css:o,unload:Ze,load:Ie,isLoaded:r.readonly(n)}}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)}var _r,Er,xr,Tr;function Ir(t,e){return Vs(t)||Rs(t,e)||Ds(t,e)||Ms()}function Ms(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
125
125
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ds(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 Rs(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,a,i,c,l=[],s=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(m){d=!0,a=m}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function Vs(t){if(Array.isArray(t))return t}function Pr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function ao(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Pr(Object(n),!0).forEach(function(o){js(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function js(t,e,n){return(e=Hs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hs(t){var e=zs(t,"string");return zt(e)=="symbol"?e:e+""}function zs(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)}function yn(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Fs=function(e){var n=e.dt;return`
|
|
126
126
|
.p-hidden-accessible {
|
|
127
127
|
border: 0;
|
|
@@ -142,7 +142,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
142
142
|
padding-right: `.concat(n("scrollbar.width"),`;
|
|
143
143
|
}
|
|
144
144
|
`)},Us={},Ws={},Z={name:"base",css:Fs,style:As,classes:Us,inlineStyles:Ws,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i},a=o(vn(_r||(_r=yn(["",""])),e));return $(a)?Ns(Vt(a),ao({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 a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return H.transformCSS(n.name||e.name,"".concat(a).concat(vn(Er||(Er=yn(["",""])),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=ee(this.css,{dt:ot})||"",a=Vt(vn(xr||(xr=yn(["","",""])),o,e)),i=Object.entries(n).reduce(function(c,l){var s=Ir(l,2),d=s[0],m=s[1];return c.push("".concat(d,'="').concat(m,'"'))&&c},[]).join(" ");return $(a)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(a,"</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 a=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=vn(Tr||(Tr=yn(["",""])),ee(this.style,{dt:ot})),c=Vt(H.transformCSS(a,i)),l=Object.entries(n).reduce(function(s,d){var m=Ir(d,2),u=m[0],p=m[1];return s.push("".concat(u,'="').concat(p,'"'))&&s},[]).join(" ");$(c)&&o.push('<style type="text/css" data-primevue-style-id="'.concat(a,'" ').concat(l,">").concat(c,"</style>"))}return o.join("")},extend:function(e){return ao(ao({},this),{},{css:void 0,style:void 0},e)}};function Ks(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=r.useId();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var $r=Z.extend({name:"common"});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 Gs(t){return Nr(t)||qs(t)||Lr(t)||Br()}function qs(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ut(t,e){return Nr(t)||Ys(t,e)||Lr(t,e)||Br()}function Br(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
145
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lr(t,e){if(t){if(typeof t=="string")return Or(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)?Or(t,e):void 0}}function Or(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 Ys(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,a,i,c,l=[],s=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(m){d=!0,a=m}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function Nr(t){if(Array.isArray(t))return t}function Mr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mr(Object(n),!0).forEach(function(o){Wt(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Wt(t,e,n){return(e=Xs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xs(t){var e=Zs(t,"string");return Ft(e)=="symbol"?e:e+""}function Zs(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 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){ae.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var o=this;ae.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,a,i,c,l,s,d,m,u,p=(e=this.pt)===null||e===void 0?void 0:e._usept,h=p?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,y=p?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(a=y||h)===null||a===void 0||(a=a.hooks)===null||a===void 0||(i=a.onBeforeCreate)===null||i===void 0||i.call(a);var k=(c=this.$primevueConfig)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c._usept,C=k?(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,b=k?(s=this.$primevue)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(m=b||C)===null||m===void 0||(m=m[this.$.type.name])===null||m===void 0||(m=m.hooks)===null||m===void 0||(u=m.onBeforeCreate)===null||u===void 0||u.call(m),this.$attrSelector=Ks(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=_e(Mt(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=O({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),a=1;a<n;a++)o[a-1]=arguments[a];return to(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_load:function(){qe.isStyleNameLoaded("base")||(Z.loadCSS(this.$styleOptions),this._loadGlobalStyles(),qe.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!qe.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&($r.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),qe.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);$(e)&&Z.load(e,O({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!H.isStyleNameLoaded("common")){var o,a,i=((o=this.$style)===null||o===void 0||(a=o.getCommonTheme)===null||a===void 0?void 0:a.call(o))||{},c=i.primitive,l=i.semantic,s=i.global,d=i.style;Z.load(c?.css,O({name:"primitive-variables"},this.$styleOptions)),Z.load(l?.css,O({name:"semantic-variables"},this.$styleOptions)),Z.load(s?.css,O({name:"global-variables"},this.$styleOptions)),Z.loadStyle(O({name:"global-style"},this.$styleOptions),d),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 m,u,p,h,y=((m=this.$style)===null||m===void 0||(u=m.getComponentTheme)===null||u===void 0?void 0:u.call(m))||{},k=y.css,C=y.style;(p=this.$style)===null||p===void 0||p.load(k,O({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(h=this.$style)===null||h===void 0||h.loadStyle(O({name:"".concat(this.$style.name,"-style")},this.$styleOptions),C),H.setLoadedStyleName(this.$style.name)}if(!H.isStyleNameLoaded("layer-order")){var b,S,B=(b=this.$style)===null||b===void 0||(S=b.getLayerOrderThemeCSS)===null||S===void 0?void 0:S.call(b);Z.load(B,O({name:"layer-order",first:!0},this.$styleOptions)),H.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,o,a,i=((n=this.$style)===null||n===void 0||(o=n.getPresetTheme)===null||o===void 0?void 0:o.call(n,e,"[".concat(this.$attrSelector,"]")))||{},c=i.css,l=(a=this.$style)===null||a===void 0?void 0:a.load(c,O({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(){};qe.clearLoadedStyleNames(),ae.on("theme:change",e)},_removeThemeListeners:function(){ae.off("theme:change",this._loadCoreStyles),ae.off("theme:change",this._load),ae.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 no(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]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,c=/./g.test(o)&&!!a[o.split(".")[0]],l=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},s=l.mergeSections,d=s===void 0?!0:s,m=l.mergeProps,u=m===void 0?!1:m,p=i?c?this._useGlobalPT(this._getPTClassValue,o,a):this._useDefaultPT(this._getPTClassValue,o,a):void 0,h=c?void 0:this._getPTSelf(n,this._getPTClassValue,o,O(O({},a),{},{global:p||{}})),y=this._getPTDatasets(o);return d||!d&&h?u?this._mergeProps(u,p,h,y):O(O(O({},p),h),y):O(O({},h),y)},_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),a=1;a<n;a++)o[a-1]=arguments[a];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]:"",a="data-pc-",i=o==="root"&&$((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&O(O({},o==="root"&&O(O(Wt({},"".concat(a,"name"),Pe(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&Wt({},"".concat(a,"extend"),Pe(this.$.type.name))),{},Wt({},"".concat(this.$attrSelector),""))),{},Wt({},"".concat(a,"section"),Pe(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return me(e)||dr(e)?{class:e}:e},_getPT:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,i=function(l){var s,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=a?a(l):l,u=Pe(o),p=Pe(n.$name);return(s=d?u!==p?m?.[u]:void 0:m?.[u])!==null&&s!==void 0?s:m};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,o,a){var i=function(k){return n(k,o,a)};if(e!=null&&e.hasOwnProperty("_usept")){var c,l=e._usept||((c=this.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},s=l.mergeSections,d=s===void 0?!0:s,m=l.mergeProps,u=m===void 0?!1:m,p=i(e.originalValue),h=i(e.value);return p===void 0&&h===void 0?void 0:me(h)?h:me(p)?p:d||!d&&h?u?this._mergeProps(u,p,h):O(O({},p),h):h}return i(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,O(O({},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]:{},a=r.mergeProps(this.$_attrsWithoutPT,this.ptm(n,o));return a?.hasOwnProperty("id")&&((e=a.id)!==null&&e!==void 0||(a.id=this.$id)),a},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,O({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,O(O({},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 a=this._getOptionValue(this.$style.inlineStyles,e,O(O({},this.$params),o)),i=this._getOptionValue($r.inlineStyles,e,O(O({},this.$params),o));return[i,a]}}},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 ee(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,O({},n.$params))||ee(o,O({},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 a=Ut(o,1),i=a[0];return n?.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return O(O({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=Ut(e,1),o=n[0];return o?.startsWith("pt:")}).reduce(function(e,n){var o=Ut(n,2),a=o[0],i=o[1],c=a.split(":"),l=Gs(c),s=l.slice(1);return s?.reduce(function(d,m,u,p){return!d[m]&&(d[m]=u===p.length-1?i:{}),d[m]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Ut(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=Ut(n,2),a=o[0],i=o[1];return e[a]=i,e},{})}}},Js=`
|
|
145
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lr(t,e){if(t){if(typeof t=="string")return Or(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)?Or(t,e):void 0}}function Or(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 Ys(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,a,i,c,l=[],s=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(m){d=!0,a=m}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function Nr(t){if(Array.isArray(t))return t}function Mr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mr(Object(n),!0).forEach(function(o){Wt(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Wt(t,e,n){return(e=Xs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xs(t){var e=Zs(t,"string");return Ft(e)=="symbol"?e:e+""}function Zs(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 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){ae.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var o=this;ae.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,a,i,c,l,s,d,m,u,p=(e=this.pt)===null||e===void 0?void 0:e._usept,h=p?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,w=p?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(a=w||h)===null||a===void 0||(a=a.hooks)===null||a===void 0||(i=a.onBeforeCreate)===null||i===void 0||i.call(a);var v=(c=this.$primevueConfig)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c._usept,C=v?(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,b=v?(s=this.$primevue)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(m=b||C)===null||m===void 0||(m=m[this.$.type.name])===null||m===void 0||(m=m.hooks)===null||m===void 0||(u=m.onBeforeCreate)===null||u===void 0||u.call(m),this.$attrSelector=Ks(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=_e(Mt(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=O({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),a=1;a<n;a++)o[a-1]=arguments[a];return to(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_load:function(){qe.isStyleNameLoaded("base")||(Z.loadCSS(this.$styleOptions),this._loadGlobalStyles(),qe.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!qe.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&($r.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),qe.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);$(e)&&Z.load(e,O({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!H.isStyleNameLoaded("common")){var o,a,i=((o=this.$style)===null||o===void 0||(a=o.getCommonTheme)===null||a===void 0?void 0:a.call(o))||{},c=i.primitive,l=i.semantic,s=i.global,d=i.style;Z.load(c?.css,O({name:"primitive-variables"},this.$styleOptions)),Z.load(l?.css,O({name:"semantic-variables"},this.$styleOptions)),Z.load(s?.css,O({name:"global-variables"},this.$styleOptions)),Z.loadStyle(O({name:"global-style"},this.$styleOptions),d),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 m,u,p,h,w=((m=this.$style)===null||m===void 0||(u=m.getComponentTheme)===null||u===void 0?void 0:u.call(m))||{},v=w.css,C=w.style;(p=this.$style)===null||p===void 0||p.load(v,O({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(h=this.$style)===null||h===void 0||h.loadStyle(O({name:"".concat(this.$style.name,"-style")},this.$styleOptions),C),H.setLoadedStyleName(this.$style.name)}if(!H.isStyleNameLoaded("layer-order")){var b,S,B=(b=this.$style)===null||b===void 0||(S=b.getLayerOrderThemeCSS)===null||S===void 0?void 0:S.call(b);Z.load(B,O({name:"layer-order",first:!0},this.$styleOptions)),H.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,o,a,i=((n=this.$style)===null||n===void 0||(o=n.getPresetTheme)===null||o===void 0?void 0:o.call(n,e,"[".concat(this.$attrSelector,"]")))||{},c=i.css,l=(a=this.$style)===null||a===void 0?void 0:a.load(c,O({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(){};qe.clearLoadedStyleNames(),ae.on("theme:change",e)},_removeThemeListeners:function(){ae.off("theme:change",this._loadCoreStyles),ae.off("theme:change",this._load),ae.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 no(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]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,c=/./g.test(o)&&!!a[o.split(".")[0]],l=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},s=l.mergeSections,d=s===void 0?!0:s,m=l.mergeProps,u=m===void 0?!1:m,p=i?c?this._useGlobalPT(this._getPTClassValue,o,a):this._useDefaultPT(this._getPTClassValue,o,a):void 0,h=c?void 0:this._getPTSelf(n,this._getPTClassValue,o,O(O({},a),{},{global:p||{}})),w=this._getPTDatasets(o);return d||!d&&h?u?this._mergeProps(u,p,h,w):O(O(O({},p),h),w):O(O({},h),w)},_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),a=1;a<n;a++)o[a-1]=arguments[a];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]:"",a="data-pc-",i=o==="root"&&$((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&O(O({},o==="root"&&O(O(Wt({},"".concat(a,"name"),Pe(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&Wt({},"".concat(a,"extend"),Pe(this.$.type.name))),{},Wt({},"".concat(this.$attrSelector),""))),{},Wt({},"".concat(a,"section"),Pe(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return me(e)||dr(e)?{class:e}:e},_getPT:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,i=function(l){var s,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=a?a(l):l,u=Pe(o),p=Pe(n.$name);return(s=d?u!==p?m?.[u]:void 0:m?.[u])!==null&&s!==void 0?s:m};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,o,a){var i=function(v){return n(v,o,a)};if(e!=null&&e.hasOwnProperty("_usept")){var c,l=e._usept||((c=this.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},s=l.mergeSections,d=s===void 0?!0:s,m=l.mergeProps,u=m===void 0?!1:m,p=i(e.originalValue),h=i(e.value);return p===void 0&&h===void 0?void 0:me(h)?h:me(p)?p:d||!d&&h?u?this._mergeProps(u,p,h):O(O({},p),h):h}return i(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,O(O({},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]:{},a=r.mergeProps(this.$_attrsWithoutPT,this.ptm(n,o));return a?.hasOwnProperty("id")&&((e=a.id)!==null&&e!==void 0||(a.id=this.$id)),a},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,O({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,O(O({},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 a=this._getOptionValue(this.$style.inlineStyles,e,O(O({},this.$params),o)),i=this._getOptionValue($r.inlineStyles,e,O(O({},this.$params),o));return[i,a]}}},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 ee(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,O({},n.$params))||ee(o,O({},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 a=Ut(o,1),i=a[0];return n?.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return O(O({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=Ut(e,1),o=n[0];return o?.startsWith("pt:")}).reduce(function(e,n){var o=Ut(n,2),a=o[0],i=o[1],c=a.split(":"),l=Gs(c),s=l.slice(1);return s?.reduce(function(d,m,u,p){return!d[m]&&(d[m]=u===p.length-1?i:{}),d[m]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Ut(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=Ut(n,2),a=o[0],i=o[1];return e[a]=i,e},{})}}},Js=`
|
|
146
146
|
.p-icon {
|
|
147
147
|
display: inline-block;
|
|
148
148
|
vertical-align: baseline;
|
|
@@ -336,7 +336,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
336
336
|
color: dt('panelmenu.submenu.icon.focus.color');
|
|
337
337
|
}
|
|
338
338
|
`,gl={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"},bl=Z.extend({name:"panelmenu",style:hl,classes:gl}),Cn=mr();function Gt(t){"@babel/helpers - typeof";return Gt=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},Gt(t)}function jr(t,e){return kl(t)||yl(t,e)||vl(t,e)||wl()}function wl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
339
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vl(t,e){if(t){if(typeof t=="string")return Hr(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)?Hr(t,e):void 0}}function Hr(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 yl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,a,i,c,l=[],s=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(m){d=!0,a=m}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function kl(t){if(Array.isArray(t))return t}function zr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).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?zr(Object(n),!0).forEach(function(o){uo(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function uo(t,e,n){return(e=Cl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cl(t){var e=Sl(t,"string");return Gt(e)=="symbol"?e:e+""}function Sl(t,e){if(Gt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Gt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var P={_getMeta:function(){return[Ge(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],ee(Ge(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,a,i;return(o=(e==null||(a=e.instance)===null||a===void 0?void 0:a.$primevue)||(n==null||(i=n.ctx)===null||i===void 0||(i=i.appContext)===null||i===void 0||(i=i.config)===null||i===void 0||(i=i.globalProperties)===null||i===void 0?void 0:i.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:no,_getPTValue:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=function(){var S=P._getOptionValue.apply(P,arguments);return me(S)||dr(S)?{class:S}:S},d=((e=o.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=o.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},m=d.mergeSections,u=m===void 0?!0:m,p=d.mergeProps,h=p===void 0?!1:p,y=l?P._useDefaultPT(o,o.defaultPT(),s,i,c):void 0,k=P._usePT(o,P._getPT(a,o.$name),s,i,N(N({},c),{},{global:y||{}})),C=P._getPTDatasets(o,i);return u||!u&&k?h?P._mergeProps(o,h,y,k,C):N(N(N({},y),k),C):N(N({},k),C)},_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 N(N({},n==="root"&&uo({},"".concat(o,"name"),Pe(e.$name))),{},uo({},"".concat(o,"section"),Pe(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,a=function(c){var l,s=o?o(c):c,d=Pe(n);return(l=s?.[d])!==null&&l!==void 0?l:s};return e&&Object.hasOwn(e,"_usept")?{_usept:e._usept,originalValue:a(e.originalValue),value:a(e.value)}:a(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,a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,c=function(C){return o(C,a,i)};if(n&&Object.hasOwn(n,"_usept")){var l,s=n._usept||((l=e.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},d=s.mergeSections,m=d===void 0?!0:d,u=s.mergeProps,p=u===void 0?!1:u,h=c(n.originalValue),y=c(n.value);return h===void 0&&y===void 0?void 0:me(y)?y:me(h)?h:m||!m&&y?p?P._mergeProps(e,p,h,y):N(N({},h),y):y}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,a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return P._usePT(e,n,o,a,i)},_loadStyles:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,i=P._getConfig(o,a),c={nonce:i==null||(e=i.csp)===null||e===void 0?void 0:e.nonce};P._loadCoreStyles(n,c),P._loadThemeStyles(n,c),P._loadScopedThemeStyles(n,c),P._removeThemeListeners(n),n.$loadStyles=function(){return P._loadThemeStyles(n,c)},P._themeChangeListener(n.$loadStyles)},_loadCoreStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(!qe.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var i;Z.loadCSS(a),(i=o.$style)===null||i===void 0||i.loadCSS(a),qe.setLoadedStyleName(o.$style.name)}},_loadThemeStyles:function(){var e,n,o,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(!(a!=null&&a.isUnstyled()||(a==null||(e=a.theme)===null||e===void 0?void 0:e.call(a))==="none")){if(!H.isStyleNameLoaded("common")){var c,l,s=((c=a.$style)===null||c===void 0||(l=c.getCommonTheme)===null||l===void 0?void 0:l.call(c))||{},d=s.primitive,m=s.semantic,u=s.global,p=s.style;Z.load(d?.css,N({name:"primitive-variables"},i)),Z.load(m?.css,N({name:"semantic-variables"},i)),Z.load(u?.css,N({name:"global-variables"},i)),Z.loadStyle(N({name:"global-style"},i),p),H.setLoadedStyleName("common")}if(!H.isStyleNameLoaded((n=a.$style)===null||n===void 0?void 0:n.name)&&(o=a.$style)!==null&&o!==void 0&&o.name){var h,y,k,C,b=((h=a.$style)===null||h===void 0||(y=h.getDirectiveTheme)===null||y===void 0?void 0:y.call(h))||{},S=b.css,B=b.style;(k=a.$style)===null||k===void 0||k.load(S,N({name:"".concat(a.$style.name,"-variables")},i)),(C=a.$style)===null||C===void 0||C.loadStyle(N({name:"".concat(a.$style.name,"-style")},i),B),H.setLoadedStyleName(a.$style.name)}if(!H.isStyleNameLoaded("layer-order")){var w,E,U=(w=a.$style)===null||w===void 0||(E=w.getLayerOrderThemeCSS)===null||E===void 0?void 0:E.call(w);Z.load(U,N({name:"layer-order",first:!0},i)),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 a,i,c,l=((a=e.$style)===null||a===void 0||(i=a.getPresetTheme)===null||i===void 0?void 0:i.call(a,o,"[".concat(e.$attrSelector,"]")))||{},s=l.css,d=(c=e.$style)===null||c===void 0?void 0:c.load(s,N({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(){};qe.clearLoadedStyleNames(),ae.on("theme:change",e)},_removeThemeListeners:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ae.off("theme:change",e.$loadStyles),e.$loadStyles=void 0},_hook:function(e,n,o,a,i,c){var l,s,d="on".concat(bs(n)),m=P._getConfig(a,i),u=o?.$instance,p=P._usePT(u,P._getPT(a==null||(l=a.value)===null||l===void 0?void 0:l.pt,e),P._getOptionValue,"hooks.".concat(d)),h=P._useDefaultPT(u,m==null||(s=m.pt)===null||s===void 0||(s=s.directives)===null||s===void 0?void 0:s[e],P._getOptionValue,"hooks.".concat(d)),y={el:o,binding:a,vnode:i,prevVnode:c};p?.(u,y),h?.(u,y)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];return to(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=function(l,s,d,m,u){var p,h,y,k;s._$instances=s._$instances||{};var C=P._getConfig(d,m),b=s._$instances[e]||{},S=Ke(b)?N(N({},n),n?.methods):{};s._$instances[e]=N(N({},b),{},{$name:e,$host:s,$binding:d,$modifiers:d?.modifiers,$value:d?.value,$el:b.$el||s||void 0,$style:N({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n?.style),$primevueConfig:C,$attrSelector:(p=s.$pd)===null||p===void 0||(p=p[e])===null||p===void 0?void 0:p.attrSelector,defaultPT:function(){return P._getPT(C?.pt,void 0,function(w){var E;return w==null||(E=w.directives)===null||E===void 0?void 0:E[e]})},isUnstyled:function(){var w,E;return((w=s._$instances[e])===null||w===void 0||(w=w.$binding)===null||w===void 0||(w=w.value)===null||w===void 0?void 0:w.unstyled)!==void 0?(E=s._$instances[e])===null||E===void 0||(E=E.$binding)===null||E===void 0||(E=E.value)===null||E===void 0?void 0:E.unstyled:C?.unstyled},theme:function(){var w;return(w=s._$instances[e])===null||w===void 0||(w=w.$primevueConfig)===null||w===void 0?void 0:w.theme},preset:function(){var w;return(w=s._$instances[e])===null||w===void 0||(w=w.$binding)===null||w===void 0||(w=w.value)===null||w===void 0?void 0:w.dt},ptm:function(){var w,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return P._getPTValue(s._$instances[e],(w=s._$instances[e])===null||w===void 0||(w=w.$binding)===null||w===void 0||(w=w.value)===null||w===void 0?void 0:w.pt,E,N({},U))},ptmo:function(){var w=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 P._getPTValue(s._$instances[e],w,E,U,!1)},cx:function(){var w,E,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(w=s._$instances[e])!==null&&w!==void 0&&w.isUnstyled()?void 0:P._getOptionValue((E=s._$instances[e])===null||E===void 0||(E=E.$style)===null||E===void 0?void 0:E.classes,U,N({},J))},sx:function(){var w,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return U?P._getOptionValue((w=s._$instances[e])===null||w===void 0||(w=w.$style)===null||w===void 0?void 0:w.inlineStyles,E,N({},J)):void 0}},S),s.$instance=s._$instances[e],(h=(y=s.$instance)[l])===null||h===void 0||h.call(y,s,d,m,u),s["$".concat(e)]=s.$instance,P._hook(e,l,s,d,m,u),s.$pd||(s.$pd={}),s.$pd[e]=N(N({},(k=s.$pd)===null||k===void 0?void 0:k[e]),{},{name:e,instance:s._$instances[e]})},a=function(l){var s,d,m,u=l._$instances[e],p=u?.watch,h=function(C){var b,S=C.newValue,B=C.oldValue;return p==null||(b=p.config)===null||b===void 0?void 0:b.call(u,S,B)},y=function(C){var b,S=C.newValue,B=C.oldValue;return p==null||(b=p["config.ripple"])===null||b===void 0?void 0:b.call(u,S,B)};u.$watchersCallback={config:h,"config.ripple":y},p==null||(s=p.config)===null||s===void 0||s.call(u,u?.$primevueConfig),Cn.on("config:change",h),p==null||(d=p["config.ripple"])===null||d===void 0||d.call(u,u==null||(m=u.$primevueConfig)===null||m===void 0?void 0:m.ripple),Cn.on("config:ripple:change",y)},i=function(l){var s=l._$instances[e].$watchersCallback;s&&(Cn.off("config:change",s.config),Cn.off("config:ripple:change",s["config.ripple"]),l._$instances[e].$watchersCallback=void 0)};return{created:function(l,s,d,m){l.$pd||(l.$pd={}),l.$pd[e]={name:e,attrSelector:ws("pd")},o("created",l,s,d,m)},beforeMount:function(l,s,d,m){var u;P._loadStyles((u=l.$pd[e])===null||u===void 0?void 0:u.instance,s,d),o("beforeMount",l,s,d,m),a(l)},mounted:function(l,s,d,m){var u;P._loadStyles((u=l.$pd[e])===null||u===void 0?void 0:u.instance,s,d),o("mounted",l,s,d,m)},beforeUpdate:function(l,s,d,m){o("beforeUpdate",l,s,d,m)},updated:function(l,s,d,m){var u;P._loadStyles((u=l.$pd[e])===null||u===void 0?void 0:u.instance,s,d),o("updated",l,s,d,m)},beforeUnmount:function(l,s,d,m){var u;i(l),P._removeThemeListeners((u=l.$pd[e])===null||u===void 0?void 0:u.instance),o("beforeUnmount",l,s,d,m)},unmounted:function(l,s,d,m){var u;(u=l.$pd[e])===null||u===void 0||(u=u.instance)===null||u===void 0||(u=u.scopedStyleEl)===null||u===void 0||(u=u.value)===null||u===void 0||u.remove(),o("unmounted",l,s,d,m)}}},extend:function(){var e=P._getMeta.apply(P,arguments),n=jr(e,2),o=n[0],a=n[1];return N({extend:function(){var c=P._getMeta.apply(P,arguments),l=jr(c,2),s=l[0],d=l[1];return P.extend(s,N(N(N({},a),a?.methods),d))}},P._extend(o,a))}},_l=`
|
|
339
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vl(t,e){if(t){if(typeof t=="string")return Hr(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)?Hr(t,e):void 0}}function Hr(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 yl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,a,i,c,l=[],s=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(m){d=!0,a=m}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function kl(t){if(Array.isArray(t))return t}function zr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).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?zr(Object(n),!0).forEach(function(o){uo(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function uo(t,e,n){return(e=Cl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cl(t){var e=Sl(t,"string");return Gt(e)=="symbol"?e:e+""}function Sl(t,e){if(Gt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Gt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var P={_getMeta:function(){return[Ge(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],ee(Ge(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,a,i;return(o=(e==null||(a=e.instance)===null||a===void 0?void 0:a.$primevue)||(n==null||(i=n.ctx)===null||i===void 0||(i=i.appContext)===null||i===void 0||(i=i.config)===null||i===void 0||(i=i.globalProperties)===null||i===void 0?void 0:i.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:no,_getPTValue:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=function(){var S=P._getOptionValue.apply(P,arguments);return me(S)||dr(S)?{class:S}:S},d=((e=o.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=o.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},m=d.mergeSections,u=m===void 0?!0:m,p=d.mergeProps,h=p===void 0?!1:p,w=l?P._useDefaultPT(o,o.defaultPT(),s,i,c):void 0,v=P._usePT(o,P._getPT(a,o.$name),s,i,N(N({},c),{},{global:w||{}})),C=P._getPTDatasets(o,i);return u||!u&&v?h?P._mergeProps(o,h,w,v,C):N(N(N({},w),v),C):N(N({},v),C)},_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 N(N({},n==="root"&&uo({},"".concat(o,"name"),Pe(e.$name))),{},uo({},"".concat(o,"section"),Pe(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,a=function(c){var l,s=o?o(c):c,d=Pe(n);return(l=s?.[d])!==null&&l!==void 0?l:s};return e&&Object.hasOwn(e,"_usept")?{_usept:e._usept,originalValue:a(e.originalValue),value:a(e.value)}:a(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,a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,c=function(C){return o(C,a,i)};if(n&&Object.hasOwn(n,"_usept")){var l,s=n._usept||((l=e.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},d=s.mergeSections,m=d===void 0?!0:d,u=s.mergeProps,p=u===void 0?!1:u,h=c(n.originalValue),w=c(n.value);return h===void 0&&w===void 0?void 0:me(w)?w:me(h)?h:m||!m&&w?p?P._mergeProps(e,p,h,w):N(N({},h),w):w}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,a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return P._usePT(e,n,o,a,i)},_loadStyles:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,i=P._getConfig(o,a),c={nonce:i==null||(e=i.csp)===null||e===void 0?void 0:e.nonce};P._loadCoreStyles(n,c),P._loadThemeStyles(n,c),P._loadScopedThemeStyles(n,c),P._removeThemeListeners(n),n.$loadStyles=function(){return P._loadThemeStyles(n,c)},P._themeChangeListener(n.$loadStyles)},_loadCoreStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(!qe.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var i;Z.loadCSS(a),(i=o.$style)===null||i===void 0||i.loadCSS(a),qe.setLoadedStyleName(o.$style.name)}},_loadThemeStyles:function(){var e,n,o,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(!(a!=null&&a.isUnstyled()||(a==null||(e=a.theme)===null||e===void 0?void 0:e.call(a))==="none")){if(!H.isStyleNameLoaded("common")){var c,l,s=((c=a.$style)===null||c===void 0||(l=c.getCommonTheme)===null||l===void 0?void 0:l.call(c))||{},d=s.primitive,m=s.semantic,u=s.global,p=s.style;Z.load(d?.css,N({name:"primitive-variables"},i)),Z.load(m?.css,N({name:"semantic-variables"},i)),Z.load(u?.css,N({name:"global-variables"},i)),Z.loadStyle(N({name:"global-style"},i),p),H.setLoadedStyleName("common")}if(!H.isStyleNameLoaded((n=a.$style)===null||n===void 0?void 0:n.name)&&(o=a.$style)!==null&&o!==void 0&&o.name){var h,w,v,C,b=((h=a.$style)===null||h===void 0||(w=h.getDirectiveTheme)===null||w===void 0?void 0:w.call(h))||{},S=b.css,B=b.style;(v=a.$style)===null||v===void 0||v.load(S,N({name:"".concat(a.$style.name,"-variables")},i)),(C=a.$style)===null||C===void 0||C.loadStyle(N({name:"".concat(a.$style.name,"-style")},i),B),H.setLoadedStyleName(a.$style.name)}if(!H.isStyleNameLoaded("layer-order")){var y,E,U=(y=a.$style)===null||y===void 0||(E=y.getLayerOrderThemeCSS)===null||E===void 0?void 0:E.call(y);Z.load(U,N({name:"layer-order",first:!0},i)),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 a,i,c,l=((a=e.$style)===null||a===void 0||(i=a.getPresetTheme)===null||i===void 0?void 0:i.call(a,o,"[".concat(e.$attrSelector,"]")))||{},s=l.css,d=(c=e.$style)===null||c===void 0?void 0:c.load(s,N({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(){};qe.clearLoadedStyleNames(),ae.on("theme:change",e)},_removeThemeListeners:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ae.off("theme:change",e.$loadStyles),e.$loadStyles=void 0},_hook:function(e,n,o,a,i,c){var l,s,d="on".concat(bs(n)),m=P._getConfig(a,i),u=o?.$instance,p=P._usePT(u,P._getPT(a==null||(l=a.value)===null||l===void 0?void 0:l.pt,e),P._getOptionValue,"hooks.".concat(d)),h=P._useDefaultPT(u,m==null||(s=m.pt)===null||s===void 0||(s=s.directives)===null||s===void 0?void 0:s[e],P._getOptionValue,"hooks.".concat(d)),w={el:o,binding:a,vnode:i,prevVnode:c};p?.(u,w),h?.(u,w)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];return to(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=function(l,s,d,m,u){var p,h,w,v;s._$instances=s._$instances||{};var C=P._getConfig(d,m),b=s._$instances[e]||{},S=Ke(b)?N(N({},n),n?.methods):{};s._$instances[e]=N(N({},b),{},{$name:e,$host:s,$binding:d,$modifiers:d?.modifiers,$value:d?.value,$el:b.$el||s||void 0,$style:N({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n?.style),$primevueConfig:C,$attrSelector:(p=s.$pd)===null||p===void 0||(p=p[e])===null||p===void 0?void 0:p.attrSelector,defaultPT:function(){return P._getPT(C?.pt,void 0,function(y){var E;return y==null||(E=y.directives)===null||E===void 0?void 0:E[e]})},isUnstyled:function(){var y,E;return((y=s._$instances[e])===null||y===void 0||(y=y.$binding)===null||y===void 0||(y=y.value)===null||y===void 0?void 0:y.unstyled)!==void 0?(E=s._$instances[e])===null||E===void 0||(E=E.$binding)===null||E===void 0||(E=E.value)===null||E===void 0?void 0:E.unstyled:C?.unstyled},theme:function(){var y;return(y=s._$instances[e])===null||y===void 0||(y=y.$primevueConfig)===null||y===void 0?void 0:y.theme},preset:function(){var y;return(y=s._$instances[e])===null||y===void 0||(y=y.$binding)===null||y===void 0||(y=y.value)===null||y===void 0?void 0:y.dt},ptm:function(){var y,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return P._getPTValue(s._$instances[e],(y=s._$instances[e])===null||y===void 0||(y=y.$binding)===null||y===void 0||(y=y.value)===null||y===void 0?void 0:y.pt,E,N({},U))},ptmo:function(){var y=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 P._getPTValue(s._$instances[e],y,E,U,!1)},cx:function(){var y,E,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(y=s._$instances[e])!==null&&y!==void 0&&y.isUnstyled()?void 0:P._getOptionValue((E=s._$instances[e])===null||E===void 0||(E=E.$style)===null||E===void 0?void 0:E.classes,U,N({},J))},sx:function(){var y,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return U?P._getOptionValue((y=s._$instances[e])===null||y===void 0||(y=y.$style)===null||y===void 0?void 0:y.inlineStyles,E,N({},J)):void 0}},S),s.$instance=s._$instances[e],(h=(w=s.$instance)[l])===null||h===void 0||h.call(w,s,d,m,u),s["$".concat(e)]=s.$instance,P._hook(e,l,s,d,m,u),s.$pd||(s.$pd={}),s.$pd[e]=N(N({},(v=s.$pd)===null||v===void 0?void 0:v[e]),{},{name:e,instance:s._$instances[e]})},a=function(l){var s,d,m,u=l._$instances[e],p=u?.watch,h=function(C){var b,S=C.newValue,B=C.oldValue;return p==null||(b=p.config)===null||b===void 0?void 0:b.call(u,S,B)},w=function(C){var b,S=C.newValue,B=C.oldValue;return p==null||(b=p["config.ripple"])===null||b===void 0?void 0:b.call(u,S,B)};u.$watchersCallback={config:h,"config.ripple":w},p==null||(s=p.config)===null||s===void 0||s.call(u,u?.$primevueConfig),Cn.on("config:change",h),p==null||(d=p["config.ripple"])===null||d===void 0||d.call(u,u==null||(m=u.$primevueConfig)===null||m===void 0?void 0:m.ripple),Cn.on("config:ripple:change",w)},i=function(l){var s=l._$instances[e].$watchersCallback;s&&(Cn.off("config:change",s.config),Cn.off("config:ripple:change",s["config.ripple"]),l._$instances[e].$watchersCallback=void 0)};return{created:function(l,s,d,m){l.$pd||(l.$pd={}),l.$pd[e]={name:e,attrSelector:ws("pd")},o("created",l,s,d,m)},beforeMount:function(l,s,d,m){var u;P._loadStyles((u=l.$pd[e])===null||u===void 0?void 0:u.instance,s,d),o("beforeMount",l,s,d,m),a(l)},mounted:function(l,s,d,m){var u;P._loadStyles((u=l.$pd[e])===null||u===void 0?void 0:u.instance,s,d),o("mounted",l,s,d,m)},beforeUpdate:function(l,s,d,m){o("beforeUpdate",l,s,d,m)},updated:function(l,s,d,m){var u;P._loadStyles((u=l.$pd[e])===null||u===void 0?void 0:u.instance,s,d),o("updated",l,s,d,m)},beforeUnmount:function(l,s,d,m){var u;i(l),P._removeThemeListeners((u=l.$pd[e])===null||u===void 0?void 0:u.instance),o("beforeUnmount",l,s,d,m)},unmounted:function(l,s,d,m){var u;(u=l.$pd[e])===null||u===void 0||(u=u.instance)===null||u===void 0||(u=u.scopedStyleEl)===null||u===void 0||(u=u.value)===null||u===void 0||u.remove(),o("unmounted",l,s,d,m)}}},extend:function(){var e=P._getMeta.apply(P,arguments),n=jr(e,2),o=n[0],a=n[1];return N({extend:function(){var c=P._getMeta.apply(P,arguments),l=jr(c,2),s=l[0],d=l[1];return P.extend(s,N(N(N({},a),a?.methods),d))}},P._extend(o,a))}},_l=`
|
|
340
340
|
.p-ink {
|
|
341
341
|
display: block;
|
|
342
342
|
position: absolute;
|
|
@@ -358,10 +358,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
358
358
|
}
|
|
359
359
|
`,El={root:"p-ink"},xl=Z.extend({name:"ripple-directive",style:_l,classes:El}),Tl=P.extend({style:xl});function qt(t){"@babel/helpers - typeof";return qt=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},qt(t)}function Il(t){return Bl(t)||$l(t)||Pl(t)||Al()}function Al(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
360
360
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pl(t,e){if(t){if(typeof t=="string")return mo(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)?mo(t,e):void 0}}function $l(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Bl(t){if(Array.isArray(t))return mo(t)}function mo(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 Fr(t,e,n){return(e=Ll(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ll(t){var e=Ol(t,"string");return qt(e)=="symbol"?e:e+""}function Ol(t,e){if(qt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(qt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Nl=Tl.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=cs("span",Fr(Fr({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,a=this.getInk(o);if(!(!a||getComputedStyle(a,null).display==="none")){if(!this.isUnstyled()&&Qn(a,"p-ink-active"),a.setAttribute("data-p-ink-active","false"),!ir(a)&&!sr(a)){var i=Math.max(is(o),us(o));a.style.height=i+"px",a.style.width=i+"px"}var c=ds(o),l=e.pageX-c.left+document.body.scrollTop-sr(a)/2,s=e.pageY-c.top+document.body.scrollLeft-ir(a)/2;a.style.top=s+"px",a.style.left=l+"px",!this.isUnstyled()&&as(a,"p-ink-active"),a.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){a&&(!n.isUnstyled()&&Qn(a,"p-ink-active"),a.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&Qn(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Il(e.children).find(function(n){return Rt(n,"data-pc-name")==="ripple"}):void 0}}}),Ml={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:bl,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},Ur={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?ee(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 $(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:lo,ChevronDownIcon:io},directives:{ripple:Nl}},Dl=["tabindex"],Rl=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],Vl=["onClick","onMousemove"],jl=["href","target"];function Hl(t,e,n,o,a,i){var c=r.resolveComponent("PanelMenuSub",!0),l=r.resolveDirective("ripple");return r.openBlock(),r.createElementBlock("ul",{class:r.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.items,function(s,d){return r.openBlock(),r.createElementBlock(r.Fragment,{key:i.getItemKey(s)},[i.isItemVisible(s)&&!i.getItemProp(s,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:0,id:i.getItemId(s),class:[t.cx("item",{processedItem:s}),i.getItemProp(s,"class")],style:i.getItemProp(s,"style"),role:"treeitem","aria-label":i.getItemLabel(s),"aria-expanded":i.isItemGroup(s)?i.isItemActive(s):void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(d)},{ref_for:!0},i.getPTOptions("item",s,d),{"data-p-focused":i.isItemFocused(s),"data-p-disabled":i.isItemDisabled(s)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("itemContent"),onClick:function(u){return i.onItemClick(u,s)},onMousemove:function(u){return i.onItemMouseMove(u,s)}},{ref_for:!0},i.getPTOptions("itemContent",s,d)),[n.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.item),{key:1,item:s.item,root:!1,active:i.isItemActive(s),hasSubmenu:i.isItemGroup(s),label:i.getItemLabel(s),props:i.getMenuItemProps(s,d)},null,8,["item","active","hasSubmenu","label","props"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:i.getItemProp(s,"url"),class:t.cx("itemLink"),target:i.getItemProp(s,"target"),tabindex:"-1"},{ref_for:!0},i.getPTOptions("itemLink",s,d)),[i.isItemGroup(s)?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n.templates.submenuicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.submenuicon),r.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(s)},{ref_for:!0},i.getPTOptions("submenuIcon",s,d)),null,16,["class","active"])):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.isItemActive(s)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({key:1,class:t.cx("submenuIcon")},{ref_for:!0},i.getPTOptions("submenuIcon",s,d)),null,16,["class"]))],64)):r.createCommentVNode("",!0),n.templates.itemicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.itemicon),{key:1,item:s.item,class:r.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.getItemProp(s,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("itemIcon"),i.getItemProp(s,"icon")]},{ref_for:!0},i.getPTOptions("itemIcon",s,d)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("itemLabel")},{ref_for:!0},i.getPTOptions("itemLabel",s,d)),r.toDisplayString(i.getItemLabel(s)),17)],16,jl)),[[l]])],16,Vl),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")),[i.isItemVisible(s)&&i.isItemGroup(s)?(r.openBlock(),r.createBlock(c,r.mergeProps({key:0,id:i.getItemId(s)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:s.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:i.onItemToggle,onItemMousemove:e[0]||(e[0]=function(m){return t.$emit("item-mousemove",m)}),pt:t.pt,unstyled:t.unstyled},{ref_for:!0},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):r.createCommentVNode("",!0)],16),[[r.vShow,i.isItemActive(s)]])]}),_:2},1040)],16,Rl)):r.createCommentVNode("",!0),i.isItemVisible(s)&&i.getItemProp(s,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:1,style:i.getItemProp(s,"style"),class:[t.cx("separator"),i.getItemProp(s,"class")],role:"separator"},{ref_for:!0},t.ptm("separator")),null,16)):r.createCommentVNode("",!0)],64)}),128))],10,Dl)}Ur.render=Hl;function zl(t,e){return Kl(t)||Wl(t,e)||Ul(t,e)||Fl()}function Fl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
361
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ul(t,e){if(t){if(typeof t=="string")return 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 Wl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,a,i,c,l=[],s=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(m){d=!0,a=m}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function Kl(t){if(Array.isArray(t))return t}var Kr={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)}},created:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?ee(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 $(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&&gs(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=$(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=$(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($(this.focusedItem)){var o=this.activeItemPath.some(function(a){return a.key===n.focusedItem.key});o?this.activeItemPath=this.activeItemPath.filter(function(a){return a.key!==n.focusedItem.key}):this.focusedItem=$(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if($(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var a=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});a?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if($(this.focusedItem)){var n=_e(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(_e(n,'[data-pc-section="itemlink"]')||_e(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(a){return a.parentKey!==n.parentKey}),o&&this.activeItemPath.push(n)),this.focusedItem=n,Dt(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 cr(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),a=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(i){return n.isValidItem(i)}):void 0;return a||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),a=o>0?cr(this.visibleItems.slice(0,o),function(i){return n.isValidItem(i)}):void 0;return a||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var a=null,i=!1;if($(this.focusedItem)){var c=this.visibleItems.findIndex(function(l){return l.key===o.focusedItem.key});a=this.visibleItems.slice(c).find(function(l){return o.isItemMatched(l)}),a=Ke(a)?this.visibleItems.slice(0,c).find(function(l){return o.isItemMatched(l)}):a}else a=this.visibleItems.find(function(l){return o.isItemMatched(l)});return $(a)&&(i=!0),Ke(a)&&Ke(this.focusedItem)&&(a=this.findFirstItem()),$(a)&&this.changeFocusedItem({originalEvent:e,processedItem:a,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,a=e.focusOnNext,i=e.selfCheck,c=e.allowHeaderFocus,l=c===void 0?!0:c;$(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):l&&this.$emit("header-focus",{originalEvent:n,focusOnNext:a,selfCheck:i})},scrollInView:function(){var e=_e(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,a){var i=zl(a,2),c=i[0],l=i[1];if(l){var s=n.findProcessedItemByItemKey(c);s&&o.push(s)}return o},[])},findProcessedItemByItemKey:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||o===0&&this.processedItems,!n)return null;for(var a=0;a<n.length;a++){var i=n[a];if(this.getItemProp(i,"key")===e)return i;var c=this.findProcessedItemByItemKey(e,i.items,o+1);if(c)return c}},createProcessedItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(l,s){var d=(i!==""?i+"_":"")+s,m={item:l,index:s,level:o,key:d,parent:a,parentKey:i};m.items=n.createProcessedItems(l.items,o+1,m,d),c.push(m)}),c},flatItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(a){n.isVisibleItem(a)&&(o.push(a),n.flatItems(a.items,o))}),o}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return $(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Ur}};function Gl(t,e,n,o,a,i){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":a.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:a.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:a.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}Kr.render=Gl;function Yt(t){"@babel/helpers - typeof";return Yt=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},Yt(t)}function Gr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function ql(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){Yl(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 Yl(t,e,n){return(e=Xl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xl(t){var e=Zl(t,"string");return Yt(e)=="symbol"?e:e+""}function Zl(t,e){if(Yt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Yt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var qr={name:"PanelMenu",extends:Ml,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{activeItem:null,activeItems:[]}},methods:{getItemProp:function(e,n){return e?ee(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,o){return this.ptm(e,{context:{index:o,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.expandedKeys?this.expandedKeys[this.getItemProp(e,"key")]:this.multiple?this.activeItems.some(function(n){return ht(e,n)}):ht(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return ht(e,this.activeItem)},isItemGroup:function(e){return $(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),Dt(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=Rt(e.currentTarget,"data-p-active")===!0?_e(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Dt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=Rt(n,"data-p-active")===!0?_e(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?Dt(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=_e(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,a=_e(o,'[data-pc-section="header"]');return a?Rt(a,"data-p-disabled")?this.findNextHeader(a.parentElement):a:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.previousElementSibling,a=_e(o,'[data-pc-section="header"]');return a?Rt(a,"data-p-disabled")?this.findPrevHeader(a.parentElement):a: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,a=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),c=a?_e(i,'[data-pc-section="header"]'):o?this.findNextHeader(i):this.findPrevHeader(i);c?this.changeFocusedHeader(n,c):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var a=this.isItemActive(n),i=a?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&ht(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return ht(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!ht(n,c)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!a}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,a=o===void 0?!1:o;if(this.expandedKeys){var i=ql({},this.expandedKeys);a?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Dt(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:Kr,ChevronRightIcon:lo,ChevronDownIcon:io}},Jl=["id"],Ql=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],ec=["href"],tc=["id","aria-labelledby"];function nc(t,e,n,o,a,i){var c=r.resolveComponent("PanelMenuList");return r.openBlock(),r.createElementBlock("div",r.mergeProps({id:t.$id,class:t.cx("root")},t.ptmi("root")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.model,function(l,s){return r.openBlock(),r.createElementBlock(r.Fragment,{key:i.getPanelKey(s)},[i.isItemVisible(l)?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,style:i.getItemProp(l,"style"),class:[t.cx("panel"),i.getItemProp(l,"class")]},{ref_for:!0},t.ptm("panel")),[r.createElementVNode("div",r.mergeProps({id:i.getHeaderId(s),class:[t.cx("header",{item:l}),i.getItemProp(l,"headerClass")],tabindex:i.isItemDisabled(l)?-1:t.tabindex,role:"button","aria-label":i.getItemLabel(l),"aria-expanded":i.isItemActive(l),"aria-controls":i.getContentId(s),"aria-disabled":i.isItemDisabled(l),onClick:function(m){return i.onHeaderClick(m,l)},onKeydown:function(m){return i.onHeaderKeyDown(m,l)}},{ref_for:!0},i.getPTOptions("header",l,s),{"data-p-active":i.isItemActive(l),"data-p-disabled":i.isItemDisabled(l)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("headerContent")},{ref_for:!0},i.getPTOptions("headerContent",l,s)),[t.$slots.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.item),{key:1,item:l,root:!0,active:i.isItemActive(l),hasSubmenu:i.isItemGroup(l),label:i.getItemLabel(l),props:i.getMenuItemProps(l,s)},null,8,["item","active","hasSubmenu","label","props"])):(r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:i.getItemProp(l,"url"),class:t.cx("headerLink"),tabindex:-1},{ref_for:!0},i.getPTOptions("headerLink",l,s)),[i.getItemProp(l,"items")?r.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(l)},function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({class:t.cx("submenuIcon")},{ref_for:!0},i.getPTOptions("submenuIcon",l,s)),null,16,["class"]))]}):r.createCommentVNode("",!0),t.$slots.headericon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.headericon),{key:1,item:l,class:r.normalizeClass([t.cx("headerIcon"),i.getItemProp(l,"icon")])},null,8,["item","class"])):i.getItemProp(l,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(l,"icon")]},{ref_for:!0},i.getPTOptions("headerIcon",l,s)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("headerLabel")},{ref_for:!0},i.getPTOptions("headerLabel",l,s)),r.toDisplayString(i.getItemLabel(l)),17)],16,ec))],16)],16,Ql),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:i.getContentId(s),class:t.cx("contentContainer"),role:"region","aria-labelledby":i.getHeaderId(s)},{ref_for:!0},t.ptm("contentContainer")),[i.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:i.getPanelId(s),items:i.getItemProp(l,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:i.changeExpandedKeys,onHeaderFocus:i.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):r.createCommentVNode("",!0)],16,tc),[[r.vShow,i.isItemActive(l)]])]}),_:2},1040)],16)):r.createCommentVNode("",!0)],64)}),128))],16,Jl)}qr.render=nc;const oc={class:"panel-menu-wrapper select-none"},rc=["data-active","onClick"],ac={key:0,class:"material-symbols-outlined item-menu-icon-left"},ic=["textContent"],sc=["onClick"],lc={key:0,class:"material-symbols-outlined item-menu-icon-left"},cc=["textContent"],dc={key:2,class:r.normalizeClass(["item-menu"])},uc={key:0,class:"material-symbols-outlined item-menu-icon-left"},mc=["textContent"],fc=Ae(r.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(l,s)=>{l.disabled||l.command&&typeof l.command=="function"||s()},o=(l,s)=>{s.disabled||typeof s.command=="function"&&s.command(l)},a=l=>typeof l.label=="function"?l.label():l.label??"Item",i=(l,s,d)=>l.to?(l.exact=l.exact??!1,l.exact?d:s):!1,c=r.computed(()=>e.items.filter(l=>l.visible===!1?!1:typeof l.visible=="function"?l.visible()===!0:!0));return(l,s)=>{const d=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",oc,[r.createVNode(r.unref(qr),{model:c.value,unstyled:!0},{item:r.withCtx(({item:m,active:u})=>[m.to?(r.openBlock(),r.createBlock(d,{key:0,to:m.to,custom:""},{default:r.withCtx(({navigate:p,isExactActive:h,isActive:y})=>[r.createElementVNode("a",{class:r.normalizeClass(["item-menu",{disabled:m.disabled}]),"data-active":i(m,y,h),onClick:r.withModifiers(k=>n(m,p),["prevent"])},[m.icon?(r.openBlock(),r.createElementBlock("span",ac,r.toDisplayString(m.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(a(m))},null,8,ic)],10,rc)]),_:2},1032,["to"])):typeof m.command=="function"?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["item-menu",{disabled:m.disabled}]),onClick:r.withModifiers(p=>o(p,m),["stop"])},[m.icon?(r.openBlock(),r.createElementBlock("span",lc,r.toDisplayString(m.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(a(m))},null,8,cc)],10,sc)):(r.openBlock(),r.createElementBlock("a",dc,[m.icon?(r.openBlock(),r.createElementBlock("span",uc,r.toDisplayString(m.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(a(m))},null,8,mc),s[0]||(s[0]=r.createElementVNode("div",{class:"sep"},null,-1)),r.createElementVNode("span",{class:r.normalizeClass(["material-symbols-outlined arrow",{"--expand":u}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-17765f50"]]);function fo(t){let e=t instanceof HTMLElement?t:null;for(;e&&e.getBoundingClientRect;){const n=e.getBoundingClientRect();if(n.width>0&&n.height>0)return n;const o=e.children[0];if(!o||!(o instanceof HTMLElement))return null;e=o}return null}function pc(t){const e=r.ref(!1),n=r.ref(null),o=r.ref({top:"0px",left:"0px",zIndex:"0"}),a=r.ref(!1),i=r.ref(!1),c=u=>{!u||!(u instanceof HTMLElement)||(n.value=fo(u),n.value&&(o.value.top=`${n.value.bottom+window.scrollY}px`,o.value.left=`${n.value.left+window.scrollX}px`,o.value.zIndex=`${hn()+1}`))},l=()=>{a.value=!1,i.value=!1,r.nextTick(()=>{const u=fo(t.value);u&&(window.innerWidth<u.right&&(o.value.left=`${(n.value?.right??0)+window.scrollX}px`,a.value=!0),window.innerHeight<u.bottom&&(o.value.top=`${(n.value?.top??0)+window.scrollY}px`,i.value=!0))})},s=u=>{const p=u instanceof CustomEvent?u.detail.target:u.currentTarget??u.target;!p||!(p instanceof HTMLElement)||(n.value=fo(p),n.value&&(c(p),e.value=!0,l()))},d=()=>{e.value&&(e.value=!1)},m=u=>{e.value&&t.value&&(u.target&&t.value.contains(u.target)||d())};return r.onMounted(()=>{document.addEventListener("click",m,!0),window.addEventListener("resize",d,!0)}),r.onBeforeUnmount(()=>{document.removeEventListener("click",m,!0),window.removeEventListener("resize",d,!0)}),{Show:s,Hide:d,visible:e,style:o,translateX:a,translateY:i}}const po=r.defineComponent({__name:"Popover",emits:["onShow","onHide"],setup(t,{expose:e,emit:n}){const o=r.ref(null),{Show:a,Hide:i,visible:c,style:l,translateX:s,translateY:d}=pc(o),m=h=>{a(h)},u=()=>{i()},p=n;return e({Show:m,Hide:u}),r.watch(()=>c.value,h=>{p(h?"onShow":"onHide")}),(h,y)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.unref(c)?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"popoverRef",ref:o,class:r.normalizeClass({"sf-popover":!0,translateX:r.unref(s),translateY:r.unref(d)}),style:r.normalizeStyle({...r.unref(l),zIndex:+r.unref(l).zIndex+1}),role:"dialog","aria-modal":!0,"aria-label":"Janela de ajuda"},[r.createElementVNode("div",null,[r.renderSlot(h.$slots,"default")])],6)):r.createCommentVNode("",!0)]))}}),Yr=r.defineComponent({__name:"HelpButton",props:{title:{},tooltip:{},size:{},color:{},filled:{type:Boolean},icon:{}},emits:["onOpen"],setup(t,{emit:e}){const n=t,o=c=>{i.value?.Show(c)},a=e,i=r.ref();return(c,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(c.$slots,"anchor",r.normalizeProps(r.guardReactiveProps({Show:o})),()=>[r.createVNode(we,{button:!0,icon:n.icon??"help",size:n.size??"sm",filled:n.filled,color:n.color??"text",tooltip:n.tooltip,onClick:o},null,8,["icon","size","filled","color","tooltip"])]),r.createVNode(po,{ref_key:"popover",ref:i,onOnShow:l[0]||(l[0]=s=>a("onOpen"))},{default:r.withCtx(()=>[r.renderSlot(c.$slots,"default")]),_:3},512)],64))}}),hc=Ae(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 gc(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}const bc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function wc(t){return Array.isArray(t)?t:[t]}function vc(t){return r.getCurrentInstance()}function yc(t,e=!0,n){vc()?r.onMounted(t,n):e?t():r.nextTick(t)}const Xr=bc?window:void 0;function bt(t){var e;const n=r.toValue(t);return(e=n?.$el)!=null?e:n}function kc(){const t=r.shallowRef(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function Cc(t){const e=kc();return r.computed(()=>(e.value,!!t()))}function Zr(t,e,n={}){const{window:o=Xr,...a}=n;let i;const c=Cc(()=>o&&"ResizeObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},s=r.computed(()=>{const u=r.toValue(t);return Array.isArray(u)?u.map(p=>bt(p)):[bt(u)]}),d=r.watch(s,u=>{if(l(),c.value&&o){i=new ResizeObserver(e);for(const p of u)p&&i.observe(p,a)}},{immediate:!0,flush:"post"}),m=()=>{l(),d()};return gc(m),{isSupported:c,stop:m}}function Sc(t,e={width:0,height:0},n={}){const{window:o=Xr,box:a="content-box"}=n,i=r.computed(()=>{var u,p;return(p=(u=bt(t))==null?void 0:u.namespaceURI)==null?void 0:p.includes("svg")}),c=r.shallowRef(e.width),l=r.shallowRef(e.height),{stop:s}=Zr(t,([u])=>{const p=a==="border-box"?u.borderBoxSize:a==="content-box"?u.contentBoxSize:u.devicePixelContentBoxSize;if(o&&i.value){const h=bt(t);if(h){const y=h.getBoundingClientRect();c.value=y.width,l.value=y.height}}else if(p){const h=wc(p);c.value=h.reduce((y,{inlineSize:k})=>y+k,0),l.value=h.reduce((y,{blockSize:k})=>y+k,0)}else c.value=u.contentRect.width,l.value=u.contentRect.height},n);yc(()=>{const u=bt(t);u&&(c.value="offsetWidth"in u?u.offsetWidth:e.width,l.value="offsetHeight"in u?u.offsetHeight:e.height)});const d=r.watch(()=>bt(t),u=>{c.value=u?e.width:0,l.value=u?e.height:0});function m(){s(),d()}return{width:c,height:l,stop:m}}const Jr=Symbol();function _c(){return r.inject(Jr)}const rt=()=>_c(),Ec={class:"body"},xc={class:"my-3 name"},Tc={class:"login-buttons py-3 mx-auto"},Ic={class:"my-3 footer"},Ac=Ae(r.defineComponent({__name:"Login",props:{enableAdlogin:{type:Boolean}},setup(t){const e=t,n=r.ref(null),{width:o}=Sc(n),a=r.computed(()=>o.value>300?"md":"sm"),i=ft.UseAuth(),{ClearStoredTheme:c,EnableLightMode:l}=rt(),s=r.computed(()=>e.enableAdlogin===!0),d=r.ref(!1),m=r.ref(null);async function u(p){d.value||(d.value=!0,m.value=p,await new Promise(h=>setTimeout(h,400)),p==="govbr"?i.LoginGovBr():s&&p==="sf"&&i.oidc.login())}return r.onBeforeMount(()=>{l()}),r.onUnmounted(()=>{c(),d.value=!1,m.value=null}),(p,h)=>(r.openBlock(),r.createElementBlock("div",Ec,[h[6]||(h[6]=r.createElementVNode("div",{class:"bg"},null,-1)),r.createElementVNode("div",{class:"card",ref_key:"cardRef",ref:n},[h[5]||(h[5]=r.createElementVNode("div",{class:"my-3 logo"},null,-1)),r.createElementVNode("div",xc,[r.renderSlot(p.$slots,"name",{},()=>[h[2]||(h[2]=r.createTextVNode("Nome do sistema",-1))],!0)]),r.createElementVNode("div",Tc,[r.renderSlot(p.$slots,"buttons",r.normalizeProps(r.guardReactiveProps({Login:u})),()=>[r.createVNode(r.unref(pt),{size:a.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:d.value&&m.value==="govbr",onClick:h[0]||(h[0]=y=>u("govbr"))},{default:r.withCtx(()=>[...h[3]||(h[3]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"Gov.br",-1)])]),_:1},8,["size","loading"]),s.value?(r.openBlock(),r.createBlock(r.unref(pt),{key:0,size:a.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:d.value&&m.value==="sf",onClick:h[1]||(h[1]=y=>u("sf"))},{default:r.withCtx(()=>[...h[4]||(h[4]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"SF",-1)])]),_:1},8,["size","loading"])):r.createCommentVNode("",!0),r.renderSlot(p.$slots,"extra-button",{},void 0,!0)],!0)]),r.createElementVNode("div",Ic,[r.renderSlot(p.$slots,"footer",{},void 0,!0)])],512)]))}}),[["__scopeId","data-v-ff672b03"]]);class $e{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const a of e)n+=`, ${a}`;const o=Math.max(...Array.from(document.querySelectorAll(n)).map(a=>{const i=getComputedStyle(a).zIndex;return+i==+i?+i:0}));return o>=100?o:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let o=0,a=e.toString();return n.replace(/#/g,()=>a[o++]||"")}static MaskCpf(e){return e?$e.Mask(e.padStart(11,"0"),"###.###.###-##"):""}static MaskCnpj(e){return e?$e.Mask(e.padStart(14,"0"),"##.###.###/####-##"):""}static MaskCcm(e){return $e.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e=400){return new Promise(n=>setTimeout(n,e))}static FormatNumber(e,n=0,o="pt-BR"){return e.toLocaleString(o,{minimumFractionDigits:n,maximumFractionDigits:n})}static FormatCurrency(e,n="pt-BR"){return e.toLocaleString(n,{style:"currency",currency:"BRL"})}static HasKey(e,n){return e&&n in e}static GetFilenameFromContentDisposition(e){if(!e)return null;const n=e.match(/filename\*\s*=\s*(?:UTF-8'')?([^;\r\n]+)/i);if(n)try{return decodeURIComponent(n[1].trim().replace(/^"|"$/g,""))}catch{return n[1].trim().replace(/^"|"$/g,"")}const o=e.match(/filename\s*=\s*("(.*?)"|([^;,\r\n]+))/i);return o?(o[2]||o[3]).trim().replace(/^"|"$/g,""):null}}const Pc={key:0},$c={class:"logout"},Bc={class:"email"},Lc=["data-idp"],Oc={class:"userinfo"},Nc={class:"userinfo"},Mc={key:0,class:"userinfo"},Dc={class:"cnpj-vinculado"},Rc={class:"userinfo"},Vc={key:1,class:"userinfo"},jc={key:2,class:"userinfo"},Hc={class:"userinfo"},zc={key:0},Fc={key:1,class:"roles"},Qr=Ae(r.defineComponent({__name:"Account",setup(t){const{LogoutWithoutConfirmation:e}=rt(),n=r.ref(!1),o=ft.UseAuth(),a=r.ref(null),i=r.ref(!1),c=async()=>{try{const m=await o.oidc.loadUserInfo().TrackStateWith(i);a.value=m}catch(m){console.warn("[SfVueComponents]",`Erro ao obter informações do usuário: ${m}`)}},l=r.computed(()=>Array.isArray(a.value?.role)?a.value.role:typeof a.value?.role=="string"?[a.value.role]:[]),s=()=>a.value?.identity_provider==="GOV.BR"?"Gov.Br":"SF",d=r.computed(()=>s()==="Gov.Br");return r.watch(()=>o.oidc.authenticated,m=>{if(!m){a.value=null;return}c()},{immediate:!0}),(m,u)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(we,{size:"sm",icon:"account_circle",button:!0,tooltip:"Minha conta",loading:i.value,onClick:u[0]||(u[0]=p=>n.value=!0)},null,8,["loading"]),r.createVNode(rr,{visible:n.value,"onUpdate:visible":u[1]||(u[1]=p=>n.value=p),position:"right",title:"Minha conta"},{default:r.withCtx(()=>[r.renderSlot(m.$slots,"content",r.normalizeProps(r.guardReactiveProps({userinfo:a.value})),()=>[a.value?(r.openBlock(),r.createElementBlock("div",Pc,[r.createElementVNode("div",$c,[r.createElementVNode("div",Bc,[r.createVNode(we,{icon:"email",size:"sm",color:"primary"}),r.createTextVNode(" "+r.toDisplayString(a.value.email),1)]),r.createVNode(pt,{size:"sm",color:"error",onClick:r.unref(e)},{default:r.withCtx(()=>[...u[2]||(u[2]=[r.createTextVNode(" sair ",-1)])]),_:1},8,["onClick"])]),r.createElementVNode("div",{class:"idp-info","data-idp":s()},"Logado com",8,Lc),r.createElementVNode("div",Oc,[u[3]||(u[3]=r.createElementVNode("div",null,"Nome de usuário",-1)),r.createElementVNode("div",null,r.toDisplayString(a.value.preferred_username),1)]),r.createElementVNode("div",Nc,[u[4]||(u[4]=r.createElementVNode("div",null,"CPF",-1)),r.createElementVNode("div",null,r.toDisplayString(r.unref($e).MaskCpf(a.value.cpf)),1)]),d.value&&a.value.cnpj?(r.openBlock(),r.createElementBlock("div",Mc,[r.createElementVNode("div",Dc,[u[6]||(u[6]=r.createElementVNode("div",null,"CNPJ vinculado",-1)),r.createVNode(Yr,null,{default:r.withCtx(()=>[...u[5]||(u[5]=[r.createTextVNode(" Atributo recebido pelo login com certificado digital de pessoa jurídica. ",-1)])]),_:1})]),r.createElementVNode("div",null,r.toDisplayString(r.unref($e).MaskCnpj(a.value.cnpj)),1)])):r.createCommentVNode("",!0),r.createElementVNode("div",Rc,[u[7]||(u[7]=r.createElementVNode("div",null,"Nome",-1)),r.createElementVNode("div",null,r.toDisplayString(a.value.name),1)]),a.value.jobTitle?(r.openBlock(),r.createElementBlock("div",Vc,[u[8]||(u[8]=r.createElementVNode("div",null,"Cargo",-1)),r.createElementVNode("div",null,r.toDisplayString(a.value.jobTitle),1)])):r.createCommentVNode("",!0),a.value.department?(r.openBlock(),r.createElementBlock("div",jc,[u[9]||(u[9]=r.createElementVNode("div",null,"Departamento",-1)),r.createElementVNode("div",null,r.toDisplayString(a.value.department),1)])):r.createCommentVNode("",!0),r.createElementVNode("div",Hc,[u[10]||(u[10]=r.createElementVNode("div",null,"Perfis nesta aplicação",-1)),l.value.length===0?(r.openBlock(),r.createElementBlock("div",zc,"Nenhum perfil atribuído.")):(r.openBlock(),r.createElementBlock("div",Fc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,p=>(r.openBlock(),r.createElementBlock("span",{key:p},r.toDisplayString(p),1))),128))]))])])):r.createCommentVNode("",!0)],!0)]),_:3},8,["visible"])],64))}}),[["__scopeId","data-v-c7a5ef79"]]),Uc={class:"font-percentage"},ea="--font-size-increment",Wc="tamanho-fonte",Kc=Ae(r.defineComponent({__name:"FontSize",setup(t){const e=r.ref(!1),n=r.ref(0),o=()=>{n.value=hn(),e.value=!0},a=()=>{e.value=!1},i=()=>document.documentElement,c=()=>parseInt(getComputedStyle(i()).getPropertyValue(ea)||"1"),l=p=>{p<.5||p>1.6||(i().style.setProperty(ea,p.toString()),u.value=p)},s=()=>{l(u.value+.1)},d=()=>{l(u.value-.1)},m=()=>{l(1)},u=r.ref(1);return r.onBeforeMount(()=>{localStorage.removeItem(Wc)}),r.onMounted(()=>{u.value=c()}),(p,h)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(we,{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",Uc,r.toDisplayString(u.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),r.createElementVNode("div",{class:"icon add",onClick:s}),r.createElementVNode("span",{class:"redefinir",onClick:m}," Redefinir ")],4),r.createElementVNode("div",{class:"font-size-mask",style:r.normalizeStyle({zIndex:n.value}),onClick:a},null,4)],64)):r.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d17f4a5f"]]),Gc=r.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=rt(),n=r.computed(()=>e.value>800);function o(){document.documentElement.scrollTo(0,0)}return(a,i)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:o},null,2))}}),qc={key:0,class:"mb-3"},Yc={class:"flex align-items-center flex-wrap gap-3"},Xc=["innerHTML"],Zc={class:"flex flex-grow-1 gap-2 justify-content-end"},Jc=r.defineComponent({__name:"ConfirmPopover",emits:["onOpen"],setup(t,{emit:e}){const n=r.ref(),o=()=>{i?.detail.resolve(!0),i=null,n.value?.Hide()},a=()=>{i?.detail.resolve(!1),i=null,n.value?.Hide()};let i=null;document.addEventListener("sfconfirm:popup",s=>{i=s,n.value?.Show(s)});const c=()=>{i?.detail.resolve(!1)},l=e;return(s,d)=>(r.openBlock(),r.createBlock(po,{ref_key:"popover",ref:n,onOnShow:d[0]||(d[0]=m=>l("onOpen")),onOnHide:c},{default:r.withCtx(()=>[r.renderSlot(s.$slots,"content",r.normalizeProps(r.guardReactiveProps({resolve:o,reject:a})),()=>[r.unref(i)?.detail.options?.title?(r.openBlock(),r.createElementBlock("div",qc,[r.createElementVNode("b",null,r.toDisplayString(r.unref(i)?.detail.options.title),1)])):r.createCommentVNode("",!0),r.createElementVNode("div",Yc,[r.createElementVNode("div",{innerHTML:r.unref(i)?.detail.options?.text},null,8,Xc),r.createElementVNode("div",Zc,[r.createVNode(r.unref(pt),{name:"botao-confirmar",size:"sm",color:r.unref(i)?.detail.options?.confirmColor,onClick:o},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(i)?.detail.options?.confirmLabel),1)]),_:1},8,["color"]),r.createVNode(r.unref(pt),{size:"sm",name:"botao-cancelar",color:r.unref(i)?.detail.options?.rejectColor,onClick:a},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(i)?.detail.options?.rejectLabel),1)]),_:1},8,["color"])])])])]),_:3},512))}}),Qc=r.defineComponent({__name:"LoginLogout",emits:["login"],setup(t,{emit:e}){const n=ft.UseAuth(),{LogoutAsync:o}=rt(),a=e;return(i,c)=>r.unref(n).isAuthenticated?(r.openBlock(),r.createBlock(we,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:r.unref(o)},null,8,["onClick"])):(r.openBlock(),r.createBlock(we,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:c[0]||(c[0]=l=>a("login"))}))}}),ed={class:"nav-menu-header"},td={class:"nav-menu-inner-close"},nd={class:"main-content"},od={class:"page-title"},rd={class:"action"},ad={id:"content"},id={key:0,id:"logging-out"},sd={class:"info-fazenda"},ld={class:"font-bold"},cd={class:"info-endereco text-muted"},dd={class:"footer-right"},ud=Ae(r.defineComponent({__name:"Main",props:{auth:{},public:{type:Boolean}},emits:["login"],setup(t,{emit:e}){const n=t,{navMenuWidth:o,isMenuOpened:a,pageTitle:i,scrollY:c,ToggleMenu:l,isDarkMode:s,ToggleTheme:d,CloseMenu:m,isLoggingOut:u,mainRef:p,mainWidth:h}=rt(),y=r.ref(null),k=()=>{if(!y.value||!a.value)return!1;y.value.offsetWidth!==o&&m()};r.onMounted(()=>{if(zi.useRouter().afterEach(()=>{k()}),p.value){let S=null;Zr(p,B=>{r.nextTick(()=>{S&&clearTimeout(S),S=setTimeout(()=>{h.value=B[0].contentRect.width},10)}),h.value=B[0].contentRect.width}),h.value=p.value.clientWidth}});const C=e;return(b,S)=>(r.openBlock(),r.createElementBlock("main",{ref_key:"mainRef",ref:p,class:r.normalizeClass({disabled:r.unref(u),"nav-menu-visible":r.unref(a)})},[r.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:y,class:r.normalizeClass({"nav-menu-hidden":!r.unref(a)})},[r.createElementVNode("div",ed,[S[1]||(S[1]=r.createElementVNode("span",null,"Menu",-1)),r.createElementVNode("div",td,[r.createVNode(we,{button:!0,icon:"close",onClick:r.unref(l)},null,8,["onClick"])])]),r.renderSlot(b.$slots,"nav-menu",{},void 0,!0)],2),r.createElementVNode("div",nd,[r.createElementVNode("div",{id:"top-bar",class:r.normalizeClass({"shadow-bottom":r.unref(c)>72})},[r.createVNode(we,{button:!0,icon:r.unref(a)?"menu_open":"menu",tooltip:"Menu",onClick:r.unref(l)},null,8,["icon","onClick"]),r.createElementVNode("div",od,r.toDisplayString(r.unref(u)?"Saindo...":r.unref(i)),1),S[2]||(S[2]=r.createElementVNode("span",{class:"sep"},null,-1)),r.createElementVNode("div",rd,[r.createVNode(we,{button:!0,size:"sm",icon:r.unref(s)?"light_mode":"dark_mode",tooltip:r.unref(s)?"Modo claro":"Modo escuro",onClick:r.unref(d)},null,8,["icon","tooltip","onClick"]),r.createVNode(Kc),r.renderSlot(b.$slots,"top-bar-account",{},()=>[r.createVNode(Qr)],!0),n.public?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(Qc,{key:0,onLogin:S[0]||(S[0]=B=>C("login"))}))])],2),r.createElementVNode("div",ad,[r.unref(u)?(r.openBlock(),r.createElementBlock("div",id,[r.createVNode(nr)])):r.renderSlot(b.$slots,"content",{key:1},void 0,!0)])]),r.createElementVNode("footer",null,[r.renderSlot(b.$slots,"footer",{},()=>[S[5]||(S[5]=r.createElementVNode("div",{class:"logo-fazenda"},null,-1)),r.createElementVNode("div",sd,[r.createElementVNode("span",ld,[r.renderSlot(b.$slots,"footer-nome-fazenda",{},()=>[S[3]||(S[3]=r.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA ",-1))],!0)]),r.createElementVNode("span",cd,[r.renderSlot(b.$slots,"footer-endereco-fazenda",{},()=>[S[4]||(S[4]=r.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 ",-1))],!0)])]),r.createElementVNode("div",dd,[r.renderSlot(b.$slots,"footer-right",{},void 0,!0)])],!0)]),r.createVNode(Gc),r.createVNode(Jc)],2))}}),[["__scopeId","data-v-d77d1546"]]),md=r.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=rt(),n=t;return r.watchEffect(()=>{document.title=n.title,e.value=n.title}),(o,a)=>null}});class fd{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 Xt=new fd;/*!
|
|
361
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ul(t,e){if(t){if(typeof t=="string")return 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 Wl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,a,i,c,l=[],s=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(m){d=!0,a=m}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function Kl(t){if(Array.isArray(t))return t}var Kr={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)}},created:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?ee(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 $(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&&gs(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=$(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=$(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($(this.focusedItem)){var o=this.activeItemPath.some(function(a){return a.key===n.focusedItem.key});o?this.activeItemPath=this.activeItemPath.filter(function(a){return a.key!==n.focusedItem.key}):this.focusedItem=$(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if($(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var a=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});a?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if($(this.focusedItem)){var n=_e(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(_e(n,'[data-pc-section="itemlink"]')||_e(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(a){return a.parentKey!==n.parentKey}),o&&this.activeItemPath.push(n)),this.focusedItem=n,Dt(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 cr(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),a=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(i){return n.isValidItem(i)}):void 0;return a||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),a=o>0?cr(this.visibleItems.slice(0,o),function(i){return n.isValidItem(i)}):void 0;return a||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var a=null,i=!1;if($(this.focusedItem)){var c=this.visibleItems.findIndex(function(l){return l.key===o.focusedItem.key});a=this.visibleItems.slice(c).find(function(l){return o.isItemMatched(l)}),a=Ke(a)?this.visibleItems.slice(0,c).find(function(l){return o.isItemMatched(l)}):a}else a=this.visibleItems.find(function(l){return o.isItemMatched(l)});return $(a)&&(i=!0),Ke(a)&&Ke(this.focusedItem)&&(a=this.findFirstItem()),$(a)&&this.changeFocusedItem({originalEvent:e,processedItem:a,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,a=e.focusOnNext,i=e.selfCheck,c=e.allowHeaderFocus,l=c===void 0?!0:c;$(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):l&&this.$emit("header-focus",{originalEvent:n,focusOnNext:a,selfCheck:i})},scrollInView:function(){var e=_e(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,a){var i=zl(a,2),c=i[0],l=i[1];if(l){var s=n.findProcessedItemByItemKey(c);s&&o.push(s)}return o},[])},findProcessedItemByItemKey:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||o===0&&this.processedItems,!n)return null;for(var a=0;a<n.length;a++){var i=n[a];if(this.getItemProp(i,"key")===e)return i;var c=this.findProcessedItemByItemKey(e,i.items,o+1);if(c)return c}},createProcessedItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(l,s){var d=(i!==""?i+"_":"")+s,m={item:l,index:s,level:o,key:d,parent:a,parentKey:i};m.items=n.createProcessedItems(l.items,o+1,m,d),c.push(m)}),c},flatItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(a){n.isVisibleItem(a)&&(o.push(a),n.flatItems(a.items,o))}),o}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return $(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Ur}};function Gl(t,e,n,o,a,i){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":a.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:a.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:a.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}Kr.render=Gl;function Yt(t){"@babel/helpers - typeof";return Yt=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},Yt(t)}function Gr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function ql(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){Yl(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 Yl(t,e,n){return(e=Xl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xl(t){var e=Zl(t,"string");return Yt(e)=="symbol"?e:e+""}function Zl(t,e){if(Yt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Yt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var qr={name:"PanelMenu",extends:Ml,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{activeItem:null,activeItems:[]}},methods:{getItemProp:function(e,n){return e?ee(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,o){return this.ptm(e,{context:{index:o,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.expandedKeys?this.expandedKeys[this.getItemProp(e,"key")]:this.multiple?this.activeItems.some(function(n){return ht(e,n)}):ht(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return ht(e,this.activeItem)},isItemGroup:function(e){return $(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),Dt(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=Rt(e.currentTarget,"data-p-active")===!0?_e(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Dt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=Rt(n,"data-p-active")===!0?_e(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?Dt(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=_e(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,a=_e(o,'[data-pc-section="header"]');return a?Rt(a,"data-p-disabled")?this.findNextHeader(a.parentElement):a:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.previousElementSibling,a=_e(o,'[data-pc-section="header"]');return a?Rt(a,"data-p-disabled")?this.findPrevHeader(a.parentElement):a: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,a=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),c=a?_e(i,'[data-pc-section="header"]'):o?this.findNextHeader(i):this.findPrevHeader(i);c?this.changeFocusedHeader(n,c):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var a=this.isItemActive(n),i=a?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&ht(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return ht(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!ht(n,c)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!a}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,a=o===void 0?!1:o;if(this.expandedKeys){var i=ql({},this.expandedKeys);a?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Dt(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:Kr,ChevronRightIcon:lo,ChevronDownIcon:io}},Jl=["id"],Ql=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],ec=["href"],tc=["id","aria-labelledby"];function nc(t,e,n,o,a,i){var c=r.resolveComponent("PanelMenuList");return r.openBlock(),r.createElementBlock("div",r.mergeProps({id:t.$id,class:t.cx("root")},t.ptmi("root")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.model,function(l,s){return r.openBlock(),r.createElementBlock(r.Fragment,{key:i.getPanelKey(s)},[i.isItemVisible(l)?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,style:i.getItemProp(l,"style"),class:[t.cx("panel"),i.getItemProp(l,"class")]},{ref_for:!0},t.ptm("panel")),[r.createElementVNode("div",r.mergeProps({id:i.getHeaderId(s),class:[t.cx("header",{item:l}),i.getItemProp(l,"headerClass")],tabindex:i.isItemDisabled(l)?-1:t.tabindex,role:"button","aria-label":i.getItemLabel(l),"aria-expanded":i.isItemActive(l),"aria-controls":i.getContentId(s),"aria-disabled":i.isItemDisabled(l),onClick:function(m){return i.onHeaderClick(m,l)},onKeydown:function(m){return i.onHeaderKeyDown(m,l)}},{ref_for:!0},i.getPTOptions("header",l,s),{"data-p-active":i.isItemActive(l),"data-p-disabled":i.isItemDisabled(l)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("headerContent")},{ref_for:!0},i.getPTOptions("headerContent",l,s)),[t.$slots.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.item),{key:1,item:l,root:!0,active:i.isItemActive(l),hasSubmenu:i.isItemGroup(l),label:i.getItemLabel(l),props:i.getMenuItemProps(l,s)},null,8,["item","active","hasSubmenu","label","props"])):(r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:i.getItemProp(l,"url"),class:t.cx("headerLink"),tabindex:-1},{ref_for:!0},i.getPTOptions("headerLink",l,s)),[i.getItemProp(l,"items")?r.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(l)},function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({class:t.cx("submenuIcon")},{ref_for:!0},i.getPTOptions("submenuIcon",l,s)),null,16,["class"]))]}):r.createCommentVNode("",!0),t.$slots.headericon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.headericon),{key:1,item:l,class:r.normalizeClass([t.cx("headerIcon"),i.getItemProp(l,"icon")])},null,8,["item","class"])):i.getItemProp(l,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(l,"icon")]},{ref_for:!0},i.getPTOptions("headerIcon",l,s)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("headerLabel")},{ref_for:!0},i.getPTOptions("headerLabel",l,s)),r.toDisplayString(i.getItemLabel(l)),17)],16,ec))],16)],16,Ql),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:i.getContentId(s),class:t.cx("contentContainer"),role:"region","aria-labelledby":i.getHeaderId(s)},{ref_for:!0},t.ptm("contentContainer")),[i.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:i.getPanelId(s),items:i.getItemProp(l,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:i.changeExpandedKeys,onHeaderFocus:i.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):r.createCommentVNode("",!0)],16,tc),[[r.vShow,i.isItemActive(l)]])]}),_:2},1040)],16)):r.createCommentVNode("",!0)],64)}),128))],16,Jl)}qr.render=nc;const oc={class:"panel-menu-wrapper select-none"},rc=["data-active","onClick"],ac={key:0,class:"material-symbols-outlined item-menu-icon-left"},ic=["textContent"],sc=["onClick"],lc={key:0,class:"material-symbols-outlined item-menu-icon-left"},cc=["textContent"],dc={key:2,class:r.normalizeClass(["item-menu"])},uc={key:0,class:"material-symbols-outlined item-menu-icon-left"},mc=["textContent"],fc=Ae(r.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(l,s)=>{l.disabled||l.command&&typeof l.command=="function"||s()},o=(l,s)=>{s.disabled||typeof s.command=="function"&&s.command(l)},a=l=>typeof l.label=="function"?l.label():l.label??"Item",i=(l,s,d)=>l.to?(l.exact=l.exact??!1,l.exact?d:s):!1,c=r.computed(()=>e.items.filter(l=>l.visible===!1?!1:typeof l.visible=="function"?l.visible()===!0:!0));return(l,s)=>{const d=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",oc,[r.createVNode(r.unref(qr),{model:c.value,unstyled:!0},{item:r.withCtx(({item:m,active:u})=>[m.to?(r.openBlock(),r.createBlock(d,{key:0,to:m.to,custom:""},{default:r.withCtx(({navigate:p,isExactActive:h,isActive:w})=>[r.createElementVNode("a",{class:r.normalizeClass(["item-menu",{disabled:m.disabled}]),"data-active":i(m,w,h),onClick:r.withModifiers(v=>n(m,p),["prevent"])},[m.icon?(r.openBlock(),r.createElementBlock("span",ac,r.toDisplayString(m.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(a(m))},null,8,ic)],10,rc)]),_:2},1032,["to"])):typeof m.command=="function"?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["item-menu",{disabled:m.disabled}]),onClick:r.withModifiers(p=>o(p,m),["stop"])},[m.icon?(r.openBlock(),r.createElementBlock("span",lc,r.toDisplayString(m.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(a(m))},null,8,cc)],10,sc)):(r.openBlock(),r.createElementBlock("a",dc,[m.icon?(r.openBlock(),r.createElementBlock("span",uc,r.toDisplayString(m.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(a(m))},null,8,mc),s[0]||(s[0]=r.createElementVNode("div",{class:"sep"},null,-1)),r.createElementVNode("span",{class:r.normalizeClass(["material-symbols-outlined arrow",{"--expand":u}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-17765f50"]]);function fo(t){let e=t instanceof HTMLElement?t:null;for(;e&&e.getBoundingClientRect;){const n=e.getBoundingClientRect();if(n.width>0&&n.height>0)return n;const o=e.children[0];if(!o||!(o instanceof HTMLElement))return null;e=o}return null}function pc(t){const e=r.ref(!1),n=r.ref(null),o=r.ref({top:"0px",left:"0px",zIndex:"0"}),a=r.ref(!1),i=r.ref(!1),c=u=>{!u||!(u instanceof HTMLElement)||(n.value=fo(u),n.value&&(o.value.top=`${n.value.bottom+window.scrollY}px`,o.value.left=`${n.value.left+window.scrollX}px`,o.value.zIndex=`${hn()+1}`))},l=()=>{a.value=!1,i.value=!1,r.nextTick(()=>{const u=fo(t.value);u&&(window.innerWidth<u.right&&(o.value.left=`${(n.value?.right??0)+window.scrollX}px`,a.value=!0),window.innerHeight<u.bottom&&(o.value.top=`${(n.value?.top??0)+window.scrollY}px`,i.value=!0))})},s=u=>{const p=u instanceof CustomEvent?u.detail.target:u.currentTarget??u.target;!p||!(p instanceof HTMLElement)||(n.value=fo(p),n.value&&(c(p),e.value=!0,l()))},d=()=>{e.value&&(e.value=!1)},m=u=>{e.value&&t.value&&(u.target&&t.value.contains(u.target)||d())};return r.onMounted(()=>{document.addEventListener("click",m,!0),window.addEventListener("resize",d,!0)}),r.onBeforeUnmount(()=>{document.removeEventListener("click",m,!0),window.removeEventListener("resize",d,!0)}),{Show:s,Hide:d,visible:e,style:o,translateX:a,translateY:i}}const po=r.defineComponent({__name:"Popover",emits:["onShow","onHide"],setup(t,{expose:e,emit:n}){const o=r.ref(null),{Show:a,Hide:i,visible:c,style:l,translateX:s,translateY:d}=pc(o),m=h=>{a(h)},u=()=>{i()},p=n;return e({Show:m,Hide:u}),r.watch(()=>c.value,h=>{p(h?"onShow":"onHide")}),(h,w)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.unref(c)?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"popoverRef",ref:o,class:r.normalizeClass({"sf-popover":!0,translateX:r.unref(s),translateY:r.unref(d)}),style:r.normalizeStyle({...r.unref(l),zIndex:+r.unref(l).zIndex+1}),role:"dialog","aria-modal":!0,"aria-label":"Janela de ajuda"},[r.createElementVNode("div",null,[r.renderSlot(h.$slots,"default")])],6)):r.createCommentVNode("",!0)]))}}),Yr=r.defineComponent({__name:"HelpButton",props:{title:{},tooltip:{},size:{},color:{},filled:{type:Boolean},icon:{}},emits:["onOpen"],setup(t,{emit:e}){const n=t,o=c=>{i.value?.Show(c)},a=e,i=r.ref();return(c,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(c.$slots,"anchor",r.normalizeProps(r.guardReactiveProps({Show:o})),()=>[r.createVNode(we,{button:!0,icon:n.icon??"help",size:n.size??"sm",filled:n.filled,color:n.color??"text",tooltip:n.tooltip,onClick:o},null,8,["icon","size","filled","color","tooltip"])]),r.createVNode(po,{ref_key:"popover",ref:i,onOnShow:l[0]||(l[0]=s=>a("onOpen"))},{default:r.withCtx(()=>[r.renderSlot(c.$slots,"default")]),_:3},512)],64))}}),hc=Ae(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 gc(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}const bc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function wc(t){return Array.isArray(t)?t:[t]}function vc(t){return r.getCurrentInstance()}function yc(t,e=!0,n){vc()?r.onMounted(t,n):e?t():r.nextTick(t)}const Xr=bc?window:void 0;function bt(t){var e;const n=r.toValue(t);return(e=n?.$el)!=null?e:n}function kc(){const t=r.shallowRef(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function Cc(t){const e=kc();return r.computed(()=>(e.value,!!t()))}function Zr(t,e,n={}){const{window:o=Xr,...a}=n;let i;const c=Cc(()=>o&&"ResizeObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},s=r.computed(()=>{const u=r.toValue(t);return Array.isArray(u)?u.map(p=>bt(p)):[bt(u)]}),d=r.watch(s,u=>{if(l(),c.value&&o){i=new ResizeObserver(e);for(const p of u)p&&i.observe(p,a)}},{immediate:!0,flush:"post"}),m=()=>{l(),d()};return gc(m),{isSupported:c,stop:m}}function Sc(t,e={width:0,height:0},n={}){const{window:o=Xr,box:a="content-box"}=n,i=r.computed(()=>{var u,p;return(p=(u=bt(t))==null?void 0:u.namespaceURI)==null?void 0:p.includes("svg")}),c=r.shallowRef(e.width),l=r.shallowRef(e.height),{stop:s}=Zr(t,([u])=>{const p=a==="border-box"?u.borderBoxSize:a==="content-box"?u.contentBoxSize:u.devicePixelContentBoxSize;if(o&&i.value){const h=bt(t);if(h){const w=h.getBoundingClientRect();c.value=w.width,l.value=w.height}}else if(p){const h=wc(p);c.value=h.reduce((w,{inlineSize:v})=>w+v,0),l.value=h.reduce((w,{blockSize:v})=>w+v,0)}else c.value=u.contentRect.width,l.value=u.contentRect.height},n);yc(()=>{const u=bt(t);u&&(c.value="offsetWidth"in u?u.offsetWidth:e.width,l.value="offsetHeight"in u?u.offsetHeight:e.height)});const d=r.watch(()=>bt(t),u=>{c.value=u?e.width:0,l.value=u?e.height:0});function m(){s(),d()}return{width:c,height:l,stop:m}}const Jr=Symbol();function _c(){return r.inject(Jr)}const rt=()=>_c(),Ec={class:"body"},xc={class:"my-3 name"},Tc={class:"login-buttons py-3 mx-auto"},Ic={class:"my-3 footer"},Ac=Ae(r.defineComponent({__name:"Login",props:{enableAdlogin:{type:Boolean}},setup(t){const e=t,n=r.ref(null),{width:o}=Sc(n),a=r.computed(()=>o.value>300?"md":"sm"),i=ft.UseAuth(),{ClearStoredTheme:c,EnableLightMode:l}=rt(),s=r.computed(()=>e.enableAdlogin===!0),d=r.ref(!1),m=r.ref(null);async function u(p){d.value||(d.value=!0,m.value=p,await new Promise(h=>setTimeout(h,400)),p==="govbr"?i.LoginGovBr():s&&p==="sf"&&i.oidc.login())}return r.onBeforeMount(()=>{l()}),r.onUnmounted(()=>{c(),d.value=!1,m.value=null}),(p,h)=>(r.openBlock(),r.createElementBlock("div",Ec,[h[6]||(h[6]=r.createElementVNode("div",{class:"bg"},null,-1)),r.createElementVNode("div",{class:"card",ref_key:"cardRef",ref:n},[h[5]||(h[5]=r.createElementVNode("div",{class:"my-3 logo"},null,-1)),r.createElementVNode("div",xc,[r.renderSlot(p.$slots,"name",{},()=>[h[2]||(h[2]=r.createTextVNode("Nome do sistema",-1))],!0)]),r.createElementVNode("div",Tc,[r.renderSlot(p.$slots,"buttons",r.normalizeProps(r.guardReactiveProps({Login:u})),()=>[r.createVNode(r.unref(pt),{size:a.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:d.value&&m.value==="govbr",onClick:h[0]||(h[0]=w=>u("govbr"))},{default:r.withCtx(()=>[...h[3]||(h[3]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"Gov.br",-1)])]),_:1},8,["size","loading"]),s.value?(r.openBlock(),r.createBlock(r.unref(pt),{key:0,size:a.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:d.value&&m.value==="sf",onClick:h[1]||(h[1]=w=>u("sf"))},{default:r.withCtx(()=>[...h[4]||(h[4]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"SF",-1)])]),_:1},8,["size","loading"])):r.createCommentVNode("",!0),r.renderSlot(p.$slots,"extra-button",{},void 0,!0)],!0)]),r.createElementVNode("div",Ic,[r.renderSlot(p.$slots,"footer",{},void 0,!0)])],512)]))}}),[["__scopeId","data-v-ff672b03"]]);class $e{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const a of e)n+=`, ${a}`;const o=Math.max(...Array.from(document.querySelectorAll(n)).map(a=>{const i=getComputedStyle(a).zIndex;return+i==+i?+i:0}));return o>=100?o:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let o=0,a=e.toString();return n.replace(/#/g,()=>a[o++]||"")}static MaskCpf(e){return e?$e.Mask(e.padStart(11,"0"),"###.###.###-##"):""}static MaskCnpj(e){return e?$e.Mask(e.padStart(14,"0"),"##.###.###/####-##"):""}static MaskCcm(e){return $e.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e=400){return new Promise(n=>setTimeout(n,e))}static FormatNumber(e,n=0,o="pt-BR"){return e.toLocaleString(o,{minimumFractionDigits:n,maximumFractionDigits:n})}static FormatCurrency(e,n="pt-BR"){return e.toLocaleString(n,{style:"currency",currency:"BRL"})}static HasKey(e,n){return e&&n in e}static GetFilenameFromContentDisposition(e){if(!e)return null;const n=e.match(/filename\*\s*=\s*(?:UTF-8'')?([^;\r\n]+)/i);if(n)try{return decodeURIComponent(n[1].trim().replace(/^"|"$/g,""))}catch{return n[1].trim().replace(/^"|"$/g,"")}const o=e.match(/filename\s*=\s*("(.*?)"|([^;,\r\n]+))/i);return o?(o[2]||o[3]).trim().replace(/^"|"$/g,""):null}}const Pc={key:0},$c={class:"logout"},Bc={class:"email"},Lc=["data-idp"],Oc={class:"userinfo"},Nc={class:"userinfo"},Mc={key:0,class:"userinfo"},Dc={class:"cnpj-vinculado"},Rc={class:"userinfo"},Vc={key:1,class:"userinfo"},jc={key:2,class:"userinfo"},Hc={class:"userinfo"},zc={key:0},Fc={key:1,class:"roles"},Qr=Ae(r.defineComponent({__name:"Account",setup(t){const{LogoutWithoutConfirmation:e}=rt(),n=r.ref(!1),o=ft.UseAuth(),a=r.ref(null),i=r.ref(!1),c=async()=>{try{const u=await o.oidc.loadUserInfo().TrackStateWith(i);a.value=u}catch(u){console.warn("[SfVueComponents]",`Erro ao obter informações do usuário: ${u}`)}},l=r.computed(()=>Array.isArray(a.value?.role)?a.value.role:typeof a.value?.role=="string"?[a.value.role]:[]),s=()=>a.value?.identity_provider==="GOV.BR"?"Gov.Br":"SF",d=r.computed(()=>s()==="Gov.Br"),m=()=>a.value?.cpf||a.value?.employeeID||"";return r.watch(()=>o.oidc.authenticated,u=>{if(!u){a.value=null;return}c()},{immediate:!0}),(u,p)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(we,{size:"sm",icon:"account_circle",button:!0,tooltip:"Minha conta",loading:i.value,onClick:p[0]||(p[0]=h=>n.value=!0)},null,8,["loading"]),r.createVNode(rr,{visible:n.value,"onUpdate:visible":p[1]||(p[1]=h=>n.value=h),position:"right",title:"Minha conta"},{default:r.withCtx(()=>[r.renderSlot(u.$slots,"content",r.normalizeProps(r.guardReactiveProps({userinfo:a.value})),()=>[a.value?(r.openBlock(),r.createElementBlock("div",Pc,[r.createElementVNode("div",$c,[r.createElementVNode("div",Bc,[r.createVNode(we,{icon:"email",size:"sm",color:"primary"}),r.createTextVNode(" "+r.toDisplayString(a.value.email),1)]),r.createVNode(pt,{size:"sm",color:"error",onClick:r.unref(e)},{default:r.withCtx(()=>[...p[2]||(p[2]=[r.createTextVNode(" sair ",-1)])]),_:1},8,["onClick"])]),r.createElementVNode("div",{class:"idp-info","data-idp":s()},"Logado com",8,Lc),r.createElementVNode("div",Oc,[p[3]||(p[3]=r.createElementVNode("div",null,"Nome de usuário",-1)),r.createElementVNode("div",null,r.toDisplayString(a.value.preferred_username),1)]),r.createElementVNode("div",Nc,[p[4]||(p[4]=r.createElementVNode("div",null,"CPF",-1)),r.createElementVNode("div",null,r.toDisplayString(r.unref($e).MaskCpf(m())),1)]),d.value&&a.value.cnpj?(r.openBlock(),r.createElementBlock("div",Mc,[r.createElementVNode("div",Dc,[p[6]||(p[6]=r.createElementVNode("div",null,"CNPJ vinculado",-1)),r.createVNode(Yr,null,{default:r.withCtx(()=>[...p[5]||(p[5]=[r.createTextVNode(" Atributo recebido pelo login com certificado digital de pessoa jurídica. ",-1)])]),_:1})]),r.createElementVNode("div",null,r.toDisplayString(r.unref($e).MaskCnpj(a.value.cnpj)),1)])):r.createCommentVNode("",!0),r.createElementVNode("div",Rc,[p[7]||(p[7]=r.createElementVNode("div",null,"Nome",-1)),r.createElementVNode("div",null,r.toDisplayString(a.value.name),1)]),a.value.jobTitle?(r.openBlock(),r.createElementBlock("div",Vc,[p[8]||(p[8]=r.createElementVNode("div",null,"Cargo",-1)),r.createElementVNode("div",null,r.toDisplayString(a.value.jobTitle),1)])):r.createCommentVNode("",!0),a.value.department?(r.openBlock(),r.createElementBlock("div",jc,[p[9]||(p[9]=r.createElementVNode("div",null,"Departamento",-1)),r.createElementVNode("div",null,r.toDisplayString(a.value.department),1)])):r.createCommentVNode("",!0),r.createElementVNode("div",Hc,[p[10]||(p[10]=r.createElementVNode("div",null,"Perfis nesta aplicação",-1)),l.value.length===0?(r.openBlock(),r.createElementBlock("div",zc,"Nenhum perfil atribuído.")):(r.openBlock(),r.createElementBlock("div",Fc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,h=>(r.openBlock(),r.createElementBlock("span",{key:h},r.toDisplayString(h),1))),128))]))])])):r.createCommentVNode("",!0)],!0)]),_:3},8,["visible"])],64))}}),[["__scopeId","data-v-42f432db"]]),Uc={class:"font-percentage"},ea="--font-size-increment",Wc="tamanho-fonte",Kc=Ae(r.defineComponent({__name:"FontSize",setup(t){const e=r.ref(!1),n=r.ref(0),o=()=>{n.value=hn(),e.value=!0},a=()=>{e.value=!1},i=()=>document.documentElement,c=()=>parseInt(getComputedStyle(i()).getPropertyValue(ea)||"1"),l=p=>{p<.5||p>1.6||(i().style.setProperty(ea,p.toString()),u.value=p)},s=()=>{l(u.value+.1)},d=()=>{l(u.value-.1)},m=()=>{l(1)},u=r.ref(1);return r.onBeforeMount(()=>{localStorage.removeItem(Wc)}),r.onMounted(()=>{u.value=c()}),(p,h)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(we,{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",Uc,r.toDisplayString(u.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),r.createElementVNode("div",{class:"icon add",onClick:s}),r.createElementVNode("span",{class:"redefinir",onClick:m}," Redefinir ")],4),r.createElementVNode("div",{class:"font-size-mask",style:r.normalizeStyle({zIndex:n.value}),onClick:a},null,4)],64)):r.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d17f4a5f"]]),Gc=r.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=rt(),n=r.computed(()=>e.value>800);function o(){document.documentElement.scrollTo(0,0)}return(a,i)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:o},null,2))}}),qc={key:0,class:"mb-3"},Yc={class:"flex align-items-center flex-wrap gap-3"},Xc=["innerHTML"],Zc={class:"flex flex-grow-1 gap-2 justify-content-end"},Jc=r.defineComponent({__name:"ConfirmPopover",emits:["onOpen"],setup(t,{emit:e}){const n=r.ref(),o=()=>{i?.detail.resolve(!0),i=null,n.value?.Hide()},a=()=>{i?.detail.resolve(!1),i=null,n.value?.Hide()};let i=null;document.addEventListener("sfconfirm:popup",s=>{i=s,n.value?.Show(s)});const c=()=>{i?.detail.resolve(!1)},l=e;return(s,d)=>(r.openBlock(),r.createBlock(po,{ref_key:"popover",ref:n,onOnShow:d[0]||(d[0]=m=>l("onOpen")),onOnHide:c},{default:r.withCtx(()=>[r.renderSlot(s.$slots,"content",r.normalizeProps(r.guardReactiveProps({resolve:o,reject:a})),()=>[r.unref(i)?.detail.options?.title?(r.openBlock(),r.createElementBlock("div",qc,[r.createElementVNode("b",null,r.toDisplayString(r.unref(i)?.detail.options.title),1)])):r.createCommentVNode("",!0),r.createElementVNode("div",Yc,[r.createElementVNode("div",{innerHTML:r.unref(i)?.detail.options?.text},null,8,Xc),r.createElementVNode("div",Zc,[r.createVNode(r.unref(pt),{name:"botao-confirmar",size:"sm",color:r.unref(i)?.detail.options?.confirmColor,onClick:o},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(i)?.detail.options?.confirmLabel),1)]),_:1},8,["color"]),r.createVNode(r.unref(pt),{size:"sm",name:"botao-cancelar",color:r.unref(i)?.detail.options?.rejectColor,onClick:a},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(i)?.detail.options?.rejectLabel),1)]),_:1},8,["color"])])])])]),_:3},512))}}),Qc=r.defineComponent({__name:"LoginLogout",emits:["login"],setup(t,{emit:e}){const n=ft.UseAuth(),{LogoutAsync:o}=rt(),a=e;return(i,c)=>r.unref(n).isAuthenticated?(r.openBlock(),r.createBlock(we,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:r.unref(o)},null,8,["onClick"])):(r.openBlock(),r.createBlock(we,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:c[0]||(c[0]=l=>a("login"))}))}}),ed={class:"nav-menu-header"},td={class:"nav-menu-inner-close"},nd={class:"main-content"},od={class:"page-title"},rd={class:"action"},ad={id:"content"},id={key:0,id:"logging-out"},sd={class:"info-fazenda"},ld={class:"font-bold"},cd={class:"info-endereco text-muted"},dd={class:"footer-right"},ud=Ae(r.defineComponent({__name:"Main",props:{auth:{},public:{type:Boolean}},emits:["login"],setup(t,{emit:e}){const n=t,{navMenuWidth:o,isMenuOpened:a,pageTitle:i,scrollY:c,ToggleMenu:l,isDarkMode:s,ToggleTheme:d,CloseMenu:m,isLoggingOut:u,mainRef:p,mainWidth:h}=rt(),w=r.ref(null),v=()=>{if(!w.value||!a.value)return!1;w.value.offsetWidth!==o&&m()};r.onMounted(()=>{if(zi.useRouter().afterEach(()=>{v()}),p.value){let S=null;Zr(p,B=>{r.nextTick(()=>{S&&clearTimeout(S),S=setTimeout(()=>{h.value=B[0].contentRect.width},10)}),h.value=B[0].contentRect.width}),h.value=p.value.clientWidth}});const C=e;return(b,S)=>(r.openBlock(),r.createElementBlock("main",{ref_key:"mainRef",ref:p,class:r.normalizeClass({disabled:r.unref(u),"nav-menu-visible":r.unref(a)})},[r.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:w,class:r.normalizeClass({"nav-menu-hidden":!r.unref(a)})},[r.createElementVNode("div",ed,[S[1]||(S[1]=r.createElementVNode("span",null,"Menu",-1)),r.createElementVNode("div",td,[r.createVNode(we,{button:!0,icon:"close",onClick:r.unref(l)},null,8,["onClick"])])]),r.renderSlot(b.$slots,"nav-menu",{},void 0,!0)],2),r.createElementVNode("div",nd,[r.createElementVNode("div",{id:"top-bar",class:r.normalizeClass({"shadow-bottom":r.unref(c)>72})},[r.createVNode(we,{button:!0,icon:r.unref(a)?"menu_open":"menu",tooltip:"Menu",onClick:r.unref(l)},null,8,["icon","onClick"]),r.createElementVNode("div",od,r.toDisplayString(r.unref(u)?"Saindo...":r.unref(i)),1),S[2]||(S[2]=r.createElementVNode("span",{class:"sep"},null,-1)),r.createElementVNode("div",rd,[r.createVNode(we,{button:!0,size:"sm",icon:r.unref(s)?"light_mode":"dark_mode",tooltip:r.unref(s)?"Modo claro":"Modo escuro",onClick:r.unref(d)},null,8,["icon","tooltip","onClick"]),r.createVNode(Kc),r.renderSlot(b.$slots,"top-bar-account",{},()=>[r.createVNode(Qr)],!0),n.public?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(Qc,{key:0,onLogin:S[0]||(S[0]=B=>C("login"))}))])],2),r.createElementVNode("div",ad,[r.unref(u)?(r.openBlock(),r.createElementBlock("div",id,[r.createVNode(nr)])):r.renderSlot(b.$slots,"content",{key:1},void 0,!0)])]),r.createElementVNode("footer",null,[r.renderSlot(b.$slots,"footer",{},()=>[S[5]||(S[5]=r.createElementVNode("div",{class:"logo-fazenda"},null,-1)),r.createElementVNode("div",sd,[r.createElementVNode("span",ld,[r.renderSlot(b.$slots,"footer-nome-fazenda",{},()=>[S[3]||(S[3]=r.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA ",-1))],!0)]),r.createElementVNode("span",cd,[r.renderSlot(b.$slots,"footer-endereco-fazenda",{},()=>[S[4]||(S[4]=r.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 ",-1))],!0)])]),r.createElementVNode("div",dd,[r.renderSlot(b.$slots,"footer-right",{},void 0,!0)])],!0)]),r.createVNode(Gc),r.createVNode(Jc)],2))}}),[["__scopeId","data-v-d77d1546"]]),md=r.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=rt(),n=t;return r.watchEffect(()=>{document.title=n.title,e.value=n.title}),(o,a)=>null}}),fd={class:"sf-tabs"},pd={role:"tablist","aria-orientation":"horizontal"},hd=["onClick","onKeydown"],gd=["id","aria-selected","tabindex","aria-controls","disabled"],bd=["id","aria-labelledby","aria-hidden"],wd=r.defineComponent({__name:"Tabs",props:{tabs:{},default:{},dense:{type:Boolean}},setup(t){const e=t,n=r.ref(e.default??0),o=r.computed(()=>e.tabs.length-1);let a=null;const i=u=>{e.tabs[u].disabled||(a&&clearTimeout(a),a=window.setTimeout(()=>{a=null,n.value=u,c(u)},100))},c=u=>{const p=document.getElementById(s(u));p&&(p.focus(),p.scrollIntoView({inline:"center"}))},l=(u,p)=>{if(u.repeat)return;const h=o.value,w=(v,C)=>{let b=v;for(let S=0;S<=h;S++)if(b=(b+C+e.tabs.length)%e.tabs.length,!e.tabs[b].disabled)return b;return-1};if(u.key==="ArrowRight"){u.preventDefault();const v=w(p,1);i(v);return}if(u.key==="ArrowLeft"){u.preventDefault();const v=w(p,-1);i(v);return}if(u.key==="Home"){u.preventDefault();const v=w(-1,1);i(v);return}if(u.key==="End"){u.preventDefault();const v=w(h,-1);i(v);return}},s=u=>`sf-tab-${u}`,d=u=>`sf-tabpanel-${u}`,m=()=>{if(e.tabs[n.value]?.disabled){const u=e.tabs.findIndex(p=>!p.disabled);n.value=u!==-1?u:-1}};return r.onMounted(()=>{m()}),(u,p)=>(r.openBlock(),r.createElementBlock("div",fd,[r.createElementVNode("ul",pd,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.tabs,(h,w)=>(r.openBlock(),r.createElementBlock("li",{key:s(w),onClick:v=>i(w),onKeydown:v=>l(v,w)},[r.createElementVNode("button",{role:"tab",id:s(w),"aria-selected":!h.disabled&&w===n.value,tabindex:w===n.value?0:-1,"aria-controls":d(w),disabled:h.disabled},r.toDisplayString(h.text),9,gd)],40,hd))),128))]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.tabs,(h,w)=>(r.openBlock(),r.createElementBlock("div",{key:d(w),id:d(w),role:"tabpanel","aria-labelledby":s(w),"aria-hidden":!h.disabled&&w!==n.value,class:r.normalizeClass(["tab-content",{dense:e.dense,hidden:w!==n.value}])},[!h.disabled&&w===n.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(h.component),{key:0})):r.createCommentVNode("",!0)],10,bd))),128))]))}});class vd{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 Xt=new vd;/*!
|
|
362
362
|
* sweetalert2 v11.23.0
|
|
363
363
|
* Released under the MIT License.
|
|
364
|
-
*/function ta(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function
|
|
364
|
+
*/function ta(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function yd(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function na(t,e){return t.get(ta(t,e))}function kd(t,e,n){yd(t,e),e.set(t,n)}function Cd(t,e,n){return t.set(ta(t,e),n),n}const Sd=100,T={},_d=()=>{T.previousActiveElement instanceof HTMLElement?(T.previousActiveElement.focus(),T.previousActiveElement=null):document.body&&document.body.focus()},Ed=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;T.restoreFocusTimeout=setTimeout(()=>{_d(),e()},Sd),window.scrollTo(n,o)}),oa="swal2-",g=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","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","draggable","dragging"].reduce((t,e)=>(t[e]=oa+e,t),{}),Sn=["success","warning","info","question","error"].reduce((t,e)=>(t[e]=oa+e,t),{}),ra="SweetAlert2:",ho=t=>t.charAt(0).toUpperCase()+t.slice(1),ie=t=>{console.warn(`${ra} ${typeof t=="object"?t.join(" "):t}`)},at=t=>{console.error(`${ra} ${t}`)},aa=[],xd=t=>{aa.includes(t)||(aa.push(t),ie(t))},ia=(t,e=null)=>{xd(`"${t}" is deprecated and will be removed in the next major release.${e?` Use "${e}" instead.`:""}`)},_n=t=>typeof t=="function"?t():t,go=t=>t&&typeof t.toPromise=="function",Zt=t=>go(t)?t.toPromise():Promise.resolve(t),bo=t=>t&&Promise.resolve(t)===t,se=()=>document.body.querySelector(`.${g.container}`),Jt=t=>{const e=se();return e?e.querySelector(t):null},he=t=>Jt(`.${t}`),M=()=>he(g.popup),wt=()=>he(g.icon),Td=()=>he(g["icon-content"]),sa=()=>he(g.title),wo=()=>he(g["html-container"]),la=()=>he(g.image),vo=()=>he(g["progress-steps"]),En=()=>he(g["validation-message"]),Be=()=>Jt(`.${g.actions} .${g.confirm}`),vt=()=>Jt(`.${g.actions} .${g.cancel}`),it=()=>Jt(`.${g.actions} .${g.deny}`),Id=()=>he(g["input-label"]),yt=()=>Jt(`.${g.loader}`),Qt=()=>he(g.actions),ca=()=>he(g.footer),xn=()=>he(g["timer-progress-bar"]),yo=()=>he(g.close),Ad=`
|
|
365
365
|
a[href],
|
|
366
366
|
area[href],
|
|
367
367
|
input:not([disabled]),
|
|
@@ -376,7 +376,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
376
376
|
audio[controls],
|
|
377
377
|
video[controls],
|
|
378
378
|
summary
|
|
379
|
-
`,ko=()=>{const t=M();if(!t)return[];const e=t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(e).sort((i,c)=>{const l=parseInt(i.getAttribute("tabindex")||"0"),s=parseInt(c.getAttribute("tabindex")||"0");return l>s?1:l<s?-1:0}),o=t.querySelectorAll(
|
|
379
|
+
`,ko=()=>{const t=M();if(!t)return[];const e=t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(e).sort((i,c)=>{const l=parseInt(i.getAttribute("tabindex")||"0"),s=parseInt(c.getAttribute("tabindex")||"0");return l>s?1:l<s?-1:0}),o=t.querySelectorAll(Ad),a=Array.from(o).filter(i=>i.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(a))].filter(i=>fe(i))},Co=()=>De(document.body,g.shown)&&!De(document.body,g["toast-shown"])&&!De(document.body,g["no-backdrop"]),Tn=()=>{const t=M();return t?De(t,g.toast):!1},Pd=()=>{const t=M();return t?t.hasAttribute("data-loading"):!1},ge=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html"),a=o.querySelector("head");a&&Array.from(a.childNodes).forEach(c=>{t.appendChild(c)});const i=o.querySelector("body");i&&Array.from(i.childNodes).forEach(c=>{c instanceof HTMLVideoElement||c instanceof HTMLAudioElement?t.appendChild(c.cloneNode(!0)):t.appendChild(c)})}},De=(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},$d=(t,e)=>{Array.from(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(Sn).includes(n)&&!Object.values(e.showClass||{}).includes(n)&&t.classList.remove(n)})},be=(t,e,n)=>{if($d(t,e),!e.customClass)return;const o=e.customClass[n];if(o){if(typeof o!="string"&&!o.forEach){ie(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof o}"`);return}D(t,o)}},In=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${g.popup} > .${g[e]}`);case"checkbox":return t.querySelector(`.${g.popup} > .${g.checkbox} input`);case"radio":return t.querySelector(`.${g.popup} > .${g.radio} input:checked`)||t.querySelector(`.${g.popup} > .${g.radio} input:first-child`);case"range":return t.querySelector(`.${g.popup} > .${g.range} input`);default:return t.querySelector(`.${g.popup} > .${g.input}`)}},da=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},ua=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(o=>{Array.isArray(t)?t.forEach(a=>{n?a.classList.add(o):a.classList.remove(o)}):n?t.classList.add(o):t.classList.remove(o)}))},D=(t,e)=>{ua(t,e,!0)},ve=(t,e)=>{ua(t,e,!1)},Ye=(t,e)=>{const n=Array.from(t.children);for(let o=0;o<n.length;o++){const a=n[o];if(a instanceof HTMLElement&&De(a,e))return a}},st=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?t.style.setProperty(e,typeof n=="number"?`${n}px`:n):t.style.removeProperty(e)},Y=(t,e="flex")=>{t&&(t.style.display=e)},te=t=>{t&&(t.style.display="none")},So=(t,e="block")=>{t&&new MutationObserver(()=>{en(t,t.innerHTML,e)}).observe(t,{childList:!0,subtree:!0})},ma=(t,e,n,o)=>{const a=t.querySelector(e);a&&a.style.setProperty(n,o)},en=(t,e,n="flex")=>{e?Y(t,n):te(t)},fe=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Bd=()=>!fe(Be())&&!fe(it())&&!fe(vt()),_o=t=>t.scrollHeight>t.clientHeight,Ld=(t,e)=>{let n=t;for(;n&&n!==e;){if(_o(n))return!0;n=n.parentElement}return!1},fa=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},Eo=(t,e=!1)=>{const n=xn();n&&fe(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},Od=()=>{const t=xn();if(!t)return;const 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.width=`${o}%`},Nd=()=>typeof window>"u"||typeof document>"u",Md=`
|
|
380
380
|
<div aria-labelledby="${g.title}" aria-describedby="${g["html-container"]}" class="${g.popup}" tabindex="-1">
|
|
381
381
|
<button type="button" class="${g.close}"></button>
|
|
382
382
|
<ul class="${g["progress-steps"]}"></ul>
|
|
@@ -409,21 +409,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
409
409
|
<div class="${g["timer-progress-bar"]}"></div>
|
|
410
410
|
</div>
|
|
411
411
|
</div>
|
|
412
|
-
`.replace(/(^|\n)\s*/g,"")
|
|
412
|
+
`.replace(/(^|\n)\s*/g,""),Dd=()=>{const t=se();return t?(t.remove(),ve([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},lt=()=>{T.currentInstance.resetValidationMessage()},Rd=()=>{const t=M(),e=Ye(t,g.input),n=Ye(t,g.file),o=t.querySelector(`.${g.range} input`),a=t.querySelector(`.${g.range} output`),i=Ye(t,g.select),c=t.querySelector(`.${g.checkbox} input`),l=Ye(t,g.textarea);e.oninput=lt,n.onchange=lt,i.onchange=lt,c.onchange=lt,l.oninput=lt,o.oninput=()=>{lt(),a.value=o.value},o.onchange=()=>{lt(),a.value=o.value}},Vd=t=>typeof t=="string"?document.querySelector(t):t,jd=t=>{const e=M();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Hd=t=>{window.getComputedStyle(t).direction==="rtl"&&D(se(),g.rtl)},zd=t=>{const e=Dd();if(Nd()){at("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&D(n,g["no-transition"]),ge(n,Md),n.dataset.swal2Theme=t.theme;const o=Vd(t.target);o.appendChild(n),t.topLayer&&(n.setAttribute("popover",""),n.showPopover()),jd(t),Hd(o),Rd()},xo=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?Fd(t,e):t&&ge(e,t)},Fd=(t,e)=>{t.jquery?Ud(e,t):ge(e,t.toString())},Ud=(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))},Wd=(t,e)=>{const n=Qt(),o=yt();!n||!o||(!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?te(n):Y(n),be(n,e,"actions"),Kd(n,o,e),ge(o,e.loaderHtml||""),be(o,e,"loader"))};function Kd(t,e,n){const o=Be(),a=it(),i=vt();!o||!a||!i||(Io(o,"confirm",n),Io(a,"deny",n),Io(i,"cancel",n),Gd(o,a,i,n),n.reverseButtons&&(n.toast?(t.insertBefore(i,o),t.insertBefore(a,o)):(t.insertBefore(i,e),t.insertBefore(a,e),t.insertBefore(o,e))))}function Gd(t,e,n,o){if(!o.buttonsStyling){ve([t,e,n],g.styled);return}D([t,e,n],g.styled),o.confirmButtonColor&&t.style.setProperty("--swal2-confirm-button-background-color",o.confirmButtonColor),o.denyButtonColor&&e.style.setProperty("--swal2-deny-button-background-color",o.denyButtonColor),o.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",o.cancelButtonColor),To(t),To(e),To(n)}function To(t){const e=window.getComputedStyle(t);if(e.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const n=e.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");t.style.setProperty("--swal2-action-button-focus-box-shadow",e.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function Io(t,e,n){const o=ho(e);en(t,n[`show${o}Button`],"inline-block"),ge(t,n[`${e}ButtonText`]||""),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]||""),t.className=g[e],be(t,n,`${e}Button`)}const qd=(t,e)=>{const n=yo();n&&(ge(n,e.closeButtonHtml||""),be(n,e,"closeButton"),en(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel||""))},Yd=(t,e)=>{const n=se();n&&(Xd(n,e.backdrop),Zd(n,e.position),Jd(n,e.grow),be(n,e,"container"))};function Xd(t,e){typeof e=="string"?t.style.background=e:e||D([document.documentElement,document.body],g["no-backdrop"])}function Zd(t,e){e&&(e in g?D(t,g[e]):(ie('The "position" parameter is not valid, defaulting to "center"'),D(t,g.center)))}function Jd(t,e){e&&D(t,g[`grow-${e}`])}var j={innerParams:new WeakMap,domCache:new WeakMap};const Qd=["input","file","range","select","radio","checkbox","textarea"],eu=(t,e)=>{const n=M();if(!n)return;const o=j.innerParams.get(t),a=!o||e.input!==o.input;Qd.forEach(i=>{const c=Ye(n,g[i]);c&&(ou(i,e.inputAttributes),c.className=g[i],a&&te(c))}),e.input&&(a&&tu(e),ru(e))},tu=t=>{if(!t.input)return;if(!K[t.input]){at(`Unexpected type of input! Expected ${Object.keys(K).join(" | ")}, got "${t.input}"`);return}const e=pa(t.input);if(!e)return;const n=K[t.input](e,t);Y(e),t.inputAutoFocus&&setTimeout(()=>{da(n)})},nu=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["id","type","value","style"].includes(n)||t.removeAttribute(n)}},ou=(t,e)=>{const n=M();if(!n)return;const o=In(n,t);if(o){nu(o);for(const a in e)o.setAttribute(a,e[a])}},ru=t=>{if(!t.input)return;const e=pa(t.input);e&&be(e,t,"input")},Ao=(t,e)=>{!t.placeholder&&e.inputPlaceholder&&(t.placeholder=e.inputPlaceholder)},tn=(t,e,n)=>{if(n.inputLabel){const o=document.createElement("label"),a=g["input-label"];o.setAttribute("for",t.id),o.className=a,typeof n.customClass=="object"&&D(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},pa=t=>{const e=M();if(e)return Ye(e,g[t]||g.input)},An=(t,e)=>{["string","number"].includes(typeof e)?t.value=`${e}`:bo(e)||ie(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`)},K={};K.text=K.email=K.password=K.number=K.tel=K.url=K.search=K.date=K["datetime-local"]=K.time=K.week=K.month=(t,e)=>(An(t,e.inputValue),tn(t,t,e),Ao(t,e),t.type=e.input,t),K.file=(t,e)=>(tn(t,t,e),Ao(t,e),t),K.range=(t,e)=>{const n=t.querySelector("input"),o=t.querySelector("output");return An(n,e.inputValue),n.type=e.input,An(o,e.inputValue),tn(n,t,e),t},K.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");ge(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return tn(t,t,e),t},K.radio=t=>(t.textContent="",t),K.checkbox=(t,e)=>{const n=In(M(),"checkbox");n.value="1",n.checked=!!e.inputValue;const o=t.querySelector("span");return ge(o,e.inputPlaceholder||e.inputLabel),n},K.textarea=(t,e)=>{An(t,e.inputValue),Ao(t,e),tn(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(M()).width),a=()=>{if(!document.body.contains(t))return;const i=t.offsetWidth+n(t);i>o?M().style.width=`${i}px`:st(M(),"width",e.width)};new MutationObserver(a).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const au=(t,e)=>{const n=wo();n&&(So(n),be(n,e,"htmlContainer"),e.html?(xo(e.html,n),Y(n,"block")):e.text?(n.textContent=e.text,Y(n,"block")):te(n),eu(t,e))},iu=(t,e)=>{const n=ca();n&&(So(n),en(n,e.footer,"block"),e.footer&&xo(e.footer,n),be(n,e,"footer"))},su=(t,e)=>{const n=j.innerParams.get(t),o=wt();if(!o)return;if(n&&e.icon===n.icon){ba(o,e),ha(o,e);return}if(!e.icon&&!e.iconHtml){te(o);return}if(e.icon&&Object.keys(Sn).indexOf(e.icon)===-1){at(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),te(o);return}Y(o),ba(o,e),ha(o,e),D(o,e.showClass&&e.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",ga)},ha=(t,e)=>{for(const[n,o]of Object.entries(Sn))e.icon!==n&&ve(t,o);D(t,e.icon&&Sn[e.icon]),du(t,e),ga(),be(t,e,"icon")},ga=()=>{const t=M();if(!t)return;const 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},lu=t=>`
|
|
413
413
|
${t.animation?'<div class="swal2-success-circular-line-left"></div>':""}
|
|
414
414
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
415
415
|
<div class="swal2-success-ring"></div>
|
|
416
416
|
${t.animation?'<div class="swal2-success-fix"></div>':""}
|
|
417
417
|
${t.animation?'<div class="swal2-success-circular-line-right"></div>':""}
|
|
418
|
-
`,
|
|
418
|
+
`,cu=`
|
|
419
419
|
<span class="swal2-x-mark">
|
|
420
420
|
<span class="swal2-x-mark-line-left"></span>
|
|
421
421
|
<span class="swal2-x-mark-line-right"></span>
|
|
422
422
|
</span>
|
|
423
|
-
`,ba=(t,e)=>{if(!e.icon&&!e.iconHtml)return;let n=t.innerHTML,o="";e.iconHtml?o=wa(e.iconHtml):e.icon==="success"?(o=nu(e),n=n.replace(/ style=".*?"/g,"")):e.icon==="error"?o=ou:e.icon&&(o=wa({question:"?",warning:"!",info:"i"}[e.icon])),n.trim()!==o.trim()&&ge(t,o)},ru=(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"])ma(t,n,"background-color",e.iconColor);ma(t,".swal2-success-ring","border-color",e.iconColor)}},wa=t=>`<div class="${g["icon-content"]}">${t}</div>`,au=(t,e)=>{const n=la();if(n){if(!e.imageUrl){te(n);return}Y(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt||""),st(n,"width",e.imageWidth),st(n,"height",e.imageHeight),n.className=g.image,be(n,e,"image")}};let Po=!1,va=0,ya=0,ka=0,Ca=0;const iu=t=>{t.addEventListener("mousedown",Pn),document.body.addEventListener("mousemove",$n),t.addEventListener("mouseup",Bn),t.addEventListener("touchstart",Pn),document.body.addEventListener("touchmove",$n),t.addEventListener("touchend",Bn)},su=t=>{t.removeEventListener("mousedown",Pn),document.body.removeEventListener("mousemove",$n),t.removeEventListener("mouseup",Bn),t.removeEventListener("touchstart",Pn),document.body.removeEventListener("touchmove",$n),t.removeEventListener("touchend",Bn)},Pn=t=>{const e=M();if(t.target===e||wt().contains(t.target)){Po=!0;const n=Sa(t);va=n.clientX,ya=n.clientY,ka=parseInt(e.style.insetInlineStart)||0,Ca=parseInt(e.style.insetBlockStart)||0,D(e,"swal2-dragging")}},$n=t=>{const e=M();if(Po){let{clientX:n,clientY:o}=Sa(t);e.style.insetInlineStart=`${ka+(n-va)}px`,e.style.insetBlockStart=`${Ca+(o-ya)}px`}},Bn=()=>{const t=M();Po=!1,ve(t,"swal2-dragging")},Sa=t=>{let e=0,n=0;return t.type.startsWith("mouse")?(e=t.clientX,n=t.clientY):t.type.startsWith("touch")&&(e=t.touches[0].clientX,n=t.touches[0].clientY),{clientX:e,clientY:n}},lu=(t,e)=>{const n=se(),o=M();if(!(!n||!o)){if(e.toast){st(n,"width",e.width),o.style.width="100%";const a=yt();a&&o.insertBefore(a,wt())}else st(o,"width",e.width);st(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),te(En()),cu(o,e),e.draggable&&!e.toast?(D(o,g.draggable),iu(o)):(ve(o,g.draggable),su(o))}},cu=(t,e)=>{const n=e.showClass||{};t.className=`${g.popup} ${fe(t)?n.popup:""}`,e.toast?(D([document.documentElement,document.body],g["toast-shown"]),D(t,g.toast)):D(t,g.modal),be(t,e,"popup"),typeof e.customClass=="string"&&D(t,e.customClass),e.icon&&D(t,g[`icon-${e.icon}`])},du=(t,e)=>{const n=vo();if(!n)return;const{progressSteps:o,currentProgressStep:a}=e;if(!o||o.length===0||a===void 0){te(n);return}Y(n),n.textContent="",a>=o.length&&ie("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((i,c)=>{const l=uu(i);if(n.appendChild(l),c===a&&D(l,g["active-progress-step"]),c!==o.length-1){const s=mu(e);n.appendChild(s)}})},uu=t=>{const e=document.createElement("li");return D(e,g["progress-step"]),ge(e,t),e},mu=t=>{const e=document.createElement("li");return D(e,g["progress-step-line"]),t.progressStepsDistance&&st(e,"width",t.progressStepsDistance),e},fu=(t,e)=>{const n=sa();n&&(So(n),en(n,e.title||e.titleText,"block"),e.title&&xo(e.title,n),e.titleText&&(n.innerText=e.titleText),be(n,e,"title"))},_a=(t,e)=>{lu(t,e),Fd(t,e),du(t,e),tu(t,e),au(t,e),fu(t,e),zd(t,e),Qd(t,e),Vd(t,e),eu(t,e);const n=M();typeof e.didRender=="function"&&n&&e.didRender(n),T.eventEmitter.emit("didRender",n)},pu=()=>fe(M()),Ea=()=>{var t;return(t=Be())===null||t===void 0?void 0:t.click()},hu=()=>{var t;return(t=it())===null||t===void 0?void 0:t.click()},gu=()=>{var t;return(t=vt())===null||t===void 0?void 0:t.click()},kt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),xa=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},bu=(t,e,n)=>{xa(t),e.toast||(t.keydownHandler=o=>vu(e,o,n),t.keydownTarget=e.keydownListenerCapture?window:M(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},$o=(t,e)=>{var n;const o=ko();if(o.length){t=t+e,t===-2&&(t=o.length-1),t===o.length?t=0:t===-1&&(t=o.length-1),o[t].focus();return}(n=M())===null||n===void 0||n.focus()},Ta=["ArrowRight","ArrowDown"],wu=["ArrowLeft","ArrowUp"],vu=(t,e,n)=>{t&&(e.isComposing||e.keyCode===229||(t.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?yu(e,t):e.key==="Tab"?ku(e):[...Ta,...wu].includes(e.key)?Cu(e.key):e.key==="Escape"&&Su(e,t,n)))},yu=(t,e)=>{if(!_n(e.allowEnterKey))return;const n=In(M(),e.input);if(t.target&&n&&t.target instanceof HTMLElement&&t.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(e.input))return;Ea(),t.preventDefault()}},ku=t=>{const e=t.target,n=ko();let o=-1;for(let a=0;a<n.length;a++)if(e===n[a]){o=a;break}t.shiftKey?$o(o,-1):$o(o,1),t.stopPropagation(),t.preventDefault()},Cu=t=>{const e=Qt(),n=Be(),o=it(),a=vt();if(!e||!n||!o||!a)return;const i=[n,o,a];if(document.activeElement instanceof HTMLElement&&!i.includes(document.activeElement))return;const c=Ta.includes(t)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let s=0;s<e.children.length;s++){if(l=l[c],!l)return;if(l instanceof HTMLButtonElement&&fe(l))break}l instanceof HTMLButtonElement&&l.focus()}},Su=(t,e,n)=>{t.preventDefault(),_n(e.allowEscapeKey)&&n(kt.esc)};var Ct={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const _u=()=>{const t=se();Array.from(document.body.children).forEach(n=>{n.contains(t)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},Ia=()=>{Array.from(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")})},Aa=typeof window<"u"&&!!window.GestureEvent,Eu=()=>{if(Aa&&!De(document.body,g.iosfix)){const t=document.body.scrollTop;document.body.style.top=`${t*-1}px`,D(document.body,g.iosfix),xu()}},xu=()=>{const t=se();if(!t)return;let e;t.ontouchstart=n=>{e=Tu(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Tu=t=>{const e=t.target,n=se(),o=wo();return!n||!o||Iu(t)||Au(t)?!1:e===n||!_o(n)&&e instanceof HTMLElement&&!Td(e,o)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(_o(o)&&o.contains(e))},Iu=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",Au=t=>t.touches&&t.touches.length>1,Pu=()=>{if(De(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);ve(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},$u=()=>{const t=document.createElement("div");t.className=g["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e};let St=null;const Bu=t=>{St===null&&(document.body.scrollHeight>window.innerHeight||t==="scroll")&&(St=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${St+$u()}px`)},Lu=()=>{St!==null&&(document.body.style.paddingRight=`${St}px`,St=null)};function Pa(t,e,n,o){Tn()?Ba(t,o):(vd(n).then(()=>Ba(t,o)),xa(T)),Aa?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),Co()&&(Lu(),Pu(),Ia()),Ou()}function Ou(){ve([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function Xe(t){t=Mu(t);const e=Ct.swalPromiseResolve.get(this),n=Nu(this);this.isAwaitingPromise?t.isDismissed||(nn(this),e(t)):n&&e(t)}const Nu=t=>{const e=M();if(!e)return!1;const n=j.innerParams.get(t);if(!n||De(e,n.hideClass.popup))return!1;ve(e,n.showClass.popup),D(e,n.hideClass.popup);const o=se();return ve(o,n.showClass.backdrop),D(o,n.hideClass.backdrop),Du(t,e,n),!0};function $a(t){const e=Ct.swalPromiseReject.get(this);nn(this),e&&e(t)}const nn=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,j.innerParams.get(t)||t._destroy())},Mu=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Du=(t,e,n)=>{var o;const a=se(),i=fa(e);typeof n.willClose=="function"&&n.willClose(e),(o=T.eventEmitter)===null||o===void 0||o.emit("willClose",e),i?Ru(t,e,a,n.returnFocus,n.didClose):Pa(t,a,n.returnFocus,n.didClose)},Ru=(t,e,n,o,a)=>{T.swalCloseEventFinishedCallback=Pa.bind(null,t,n,o,a);const i=function(c){if(c.target===e){var l;(l=T.swalCloseEventFinishedCallback)===null||l===void 0||l.call(T),delete T.swalCloseEventFinishedCallback,e.removeEventListener("animationend",i),e.removeEventListener("transitionend",i)}};e.addEventListener("animationend",i),e.addEventListener("transitionend",i)},Ba=(t,e)=>{setTimeout(()=>{var n;typeof e=="function"&&e.bind(t.params)(),(n=T.eventEmitter)===null||n===void 0||n.emit("didClose"),t._destroy&&t._destroy()})},_t=t=>{let e=M();if(e||new dt,e=M(),!e)return;const n=yt();Tn()?te(wt()):Vu(e,t),Y(n),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},Vu=(t,e)=>{const n=Qt(),o=yt();!n||!o||(!e&&fe(Be())&&(e=Be()),Y(n),e&&(te(e),o.setAttribute("data-button-to-replace",e.className),n.insertBefore(o,e)),D([t,n],g.loading))},ju=(t,e)=>{e.input==="select"||e.input==="radio"?Wu(t,e):["text","email","number","tel","textarea"].some(n=>n===e.input)&&(go(e.inputValue)||bo(e.inputValue))&&(_t(Be()),Ku(t,e))},Hu=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return zu(n);case"radio":return Fu(n);case"file":return Uu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},zu=t=>t.checked?1:0,Fu=t=>t.checked?t.value:null,Uu=t=>t.files&&t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Wu=(t,e)=>{const n=M();if(!n)return;const o=a=>{e.input==="select"?Gu(n,Ln(a),e):e.input==="radio"&&qu(n,Ln(a),e)};go(e.inputOptions)||bo(e.inputOptions)?(_t(Be()),Zt(e.inputOptions).then(a=>{t.hideLoading(),o(a)})):typeof e.inputOptions=="object"?o(e.inputOptions):at(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Ku=(t,e)=>{const n=t.getInput();n&&(te(n),Zt(e.inputValue).then(o=>{n.value=e.input==="number"?`${parseFloat(o)||0}`:`${o}`,Y(n),n.focus(),t.hideLoading()}).catch(o=>{at(`Error in inputValue promise: ${o}`),n.value="",Y(n),n.focus(),t.hideLoading()}))};function Gu(t,e,n){const o=Ye(t,g.select);if(!o)return;const a=(i,c,l)=>{const s=document.createElement("option");s.value=l,ge(s,c),s.selected=La(l,n.inputValue),i.appendChild(s)};e.forEach(i=>{const c=i[0],l=i[1];if(Array.isArray(l)){const s=document.createElement("optgroup");s.label=c,s.disabled=!1,o.appendChild(s),l.forEach(d=>a(s,d[1],d[0]))}else a(o,l,c)}),o.focus()}function qu(t,e,n){const o=Ye(t,g.radio);if(!o)return;e.forEach(i=>{const c=i[0],l=i[1],s=document.createElement("input"),d=document.createElement("label");s.type="radio",s.name=g.radio,s.value=c,La(c,n.inputValue)&&(s.checked=!0);const m=document.createElement("span");ge(m,l),m.className=g.label,d.appendChild(s),d.appendChild(m),o.appendChild(d)});const a=o.querySelectorAll("input");a.length&&a[0].focus()}const Ln=t=>{const e=[];return t instanceof Map?t.forEach((n,o)=>{let a=n;typeof a=="object"&&(a=Ln(a)),e.push([o,a])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=Ln(o)),e.push([n,o])}),e},La=(t,e)=>!!e&&e.toString()===t.toString(),Yu=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.input?Oa(t,"confirm"):Lo(t,!0)},Xu=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Oa(t,"deny"):Bo(t,!1)},Zu=(t,e)=>{t.disableButtons(),e(kt.cancel)},Oa=(t,e)=>{const n=j.innerParams.get(t);if(!n.input){at(`The "input" parameter is needed to be set when using returnInputValueOn${ho(e)}`);return}const o=t.getInput(),a=Hu(t,n);n.inputValidator?Ju(t,a,e):o&&!o.checkValidity()?(t.enableButtons(),t.showValidationMessage(n.validationMessage||o.validationMessage)):e==="deny"?Bo(t,a):Lo(t,a)},Ju=(t,e,n)=>{const o=j.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Zt(o.inputValidator(e,o.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?Bo(t,e):Lo(t,e)})},Bo=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnDeny&&_t(it()),n.preDeny?(t.isAwaitingPromise=!0,Promise.resolve().then(()=>Zt(n.preDeny(e,n.validationMessage))).then(a=>{a===!1?(t.hideLoading(),nn(t)):t.close({isDenied:!0,value:typeof a>"u"?e:a})}).catch(a=>Ma(t||void 0,a))):t.close({isDenied:!0,value:e})},Na=(t,e)=>{t.close({isConfirmed:!0,value:e})},Ma=(t,e)=>{t.rejectPromise(e)},Lo=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnConfirm&&_t(),n.preConfirm?(t.resetValidationMessage(),t.isAwaitingPromise=!0,Promise.resolve().then(()=>Zt(n.preConfirm(e,n.validationMessage))).then(a=>{fe(En())||a===!1?(t.hideLoading(),nn(t)):Na(t,typeof a>"u"?e:a)}).catch(a=>Ma(t||void 0,a))):Na(t,e)};function On(){const t=j.innerParams.get(this);if(!t)return;const e=j.domCache.get(this);te(e.loader),Tn()?t.icon&&Y(wt()):Qu(e),ve([e.popup,e.actions],g.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Qu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?Y(e[0],"inline-block"):xd()&&te(t.actions)};function Da(){const t=j.innerParams.get(this),e=j.domCache.get(this);return e?In(e.popup,t.input):null}function Ra(t,e,n){const o=j.domCache.get(t);e.forEach(a=>{o[a].disabled=n})}function Va(t,e){const n=M();if(!(!n||!t))if(t.type==="radio"){const o=n.querySelectorAll(`[name="${g.radio}"]`);for(let a=0;a<o.length;a++)o[a].disabled=e}else t.disabled=e}function ja(){Ra(this,["confirmButton","denyButton","cancelButton"],!1)}function Ha(){Ra(this,["confirmButton","denyButton","cancelButton"],!0)}function za(){Va(this.getInput(),!1)}function Fa(){Va(this.getInput(),!0)}function Ua(t){const e=j.domCache.get(this),n=j.innerParams.get(this);ge(e.validationMessage,t),e.validationMessage.className=g["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","true"),o.setAttribute("aria-describedby",g["validation-message"]),da(o),D(o,g.inputerror))}function Wa(){const t=j.domCache.get(this);t.validationMessage&&te(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),ve(e,g.inputerror))}const Et={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",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:"×",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:{},inputAutoFocus:!0,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,topLayer:!1},em=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],tm={allowEnterKey:void 0},nm=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Ka=t=>Object.prototype.hasOwnProperty.call(Et,t),Ga=t=>em.indexOf(t)!==-1,qa=t=>tm[t],om=t=>{Ka(t)||ie(`Unknown parameter "${t}"`)},rm=t=>{nm.includes(t)&&ie(`The parameter "${t}" is incompatible with toasts`)},am=t=>{const e=qa(t);e&&ia(t,e)},Ya=t=>{t.backdrop===!1&&t.allowOutsideClick&&ie('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.theme&&!["light","dark","auto","minimal","borderless","embed-iframe","bulma","bulma-light","bulma-dark"].includes(t.theme)&&ie(`Invalid theme "${t.theme}"`);for(const e in t)om(e),t.toast&&rm(e),am(e)};function Xa(t){const e=se(),n=M(),o=j.innerParams.get(this);if(!n||De(n,o.hideClass.popup)){ie("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.");return}const a=im(t),i=Object.assign({},o,a);Ya(i),e.dataset.swal2Theme=i.theme,_a(this,i),j.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const im=t=>{const e={};return Object.keys(t).forEach(n=>{Ga(n)?e[n]=t[n]:ie(`Invalid parameter to update: ${n}`)}),e};function Za(){const t=j.domCache.get(this),e=j.innerParams.get(this);if(!e){Ja(this);return}t.popup&&T.swalCloseEventFinishedCallback&&(T.swalCloseEventFinishedCallback(),delete T.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),T.eventEmitter.emit("didDestroy"),sm(this)}const sm=t=>{Ja(t),delete t.params,delete T.keydownHandler,delete T.keydownTarget,delete T.currentInstance},Ja=t=>{t.isAwaitingPromise?(Oo(j,t),t.isAwaitingPromise=!0):(Oo(Ct,t),Oo(j,t),delete t.isAwaitingPromise,delete t.disableButtons,delete t.enableButtons,delete t.getInput,delete t.disableInput,delete t.enableInput,delete t.hideLoading,delete t.disableLoading,delete t.showValidationMessage,delete t.resetValidationMessage,delete t.close,delete t.closePopup,delete t.closeModal,delete t.closeToast,delete t.rejectPromise,delete t.update,delete t._destroy)},Oo=(t,e)=>{for(const n in t)t[n].delete(e)};var lm=Object.freeze({__proto__:null,_destroy:Za,close:Xe,closeModal:Xe,closePopup:Xe,closeToast:Xe,disableButtons:Ha,disableInput:Fa,disableLoading:On,enableButtons:ja,enableInput:za,getInput:Da,handleAwaitingPromise:nn,hideLoading:On,rejectPromise:$a,resetValidationMessage:Wa,showValidationMessage:Ua,update:Xa});const cm=(t,e,n)=>{t.toast?dm(t,e,n):(mm(e),fm(e),pm(t,e,n))},dm=(t,e,n)=>{e.popup.onclick=()=>{t&&(um(t)||t.timer||t.input)||n(kt.close)}},um=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let Nn=!1;const mm=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=()=>{},e.target===t.container&&(Nn=!0)}}},fm=t=>{t.container.onmousedown=e=>{e.target===t.container&&e.preventDefault(),t.popup.onmouseup=function(n){t.popup.onmouseup=()=>{},(n.target===t.popup||n.target instanceof HTMLElement&&t.popup.contains(n.target))&&(Nn=!0)}}},pm=(t,e,n)=>{e.container.onclick=o=>{if(Nn){Nn=!1;return}o.target===e.container&&_n(t.allowOutsideClick)&&n(kt.backdrop)}},hm=t=>typeof t=="object"&&t.jquery,Qa=t=>t instanceof Element||hm(t),gm=t=>{const e={};return typeof t[0]=="object"&&!Qa(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const a=t[o];typeof a=="string"||Qa(a)?e[n]=a:a!==void 0&&at(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof a}`)}),e};function bm(...t){return new this(...t)}function wm(t){class e extends this{_main(o,a){return super._main(o,Object.assign({},t,a))}}return e}const vm=()=>T.timeout&&T.timeout.getTimerLeft(),ei=()=>{if(T.timeout)return Id(),T.timeout.stop()},ti=()=>{if(T.timeout){const t=T.timeout.start();return Eo(t),t}},ym=()=>{const t=T.timeout;return t&&(t.running?ei():ti())},km=t=>{if(T.timeout){const e=T.timeout.increase(t);return Eo(e,!0),e}},Cm=()=>!!(T.timeout&&T.timeout.isRunning());let ni=!1;const No={};function Sm(t="data-swal-template"){No[t]=this,ni||(document.body.addEventListener("click",_m),ni=!0)}const _m=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in No){const o=e.getAttribute(n);if(o){No[n].fire({template:o});return}}};class Em{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,n){const o=this._getHandlersByEventName(e);o.includes(n)||o.push(n)}once(e,n){const o=(...a)=>{this.removeListener(e,o),n.apply(this,a)};this.on(e,o)}emit(e,...n){this._getHandlersByEventName(e).forEach(o=>{try{o.apply(this,n)}catch(a){console.error(a)}})}removeListener(e,n){const o=this._getHandlersByEventName(e),a=o.indexOf(n);a>-1&&o.splice(a,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}T.eventEmitter=new Em;var xm=Object.freeze({__proto__:null,argsToParams:gm,bindClickHandler:Sm,clickCancel:gu,clickConfirm:Ea,clickDeny:hu,enableLoading:_t,fire:bm,getActions:Qt,getCancelButton:vt,getCloseButton:yo,getConfirmButton:Be,getContainer:se,getDenyButton:it,getFocusableElements:ko,getFooter:ca,getHtmlContainer:wo,getIcon:wt,getIconContent:kd,getImage:la,getInputLabel:Cd,getLoader:yt,getPopup:M,getProgressSteps:vo,getTimerLeft:vm,getTimerProgressBar:xn,getTitle:sa,getValidationMessage:En,increaseTimer:km,isDeprecatedParameter:qa,isLoading:_d,isTimerRunning:Cm,isUpdatableParameter:Ga,isValidParameter:Ka,isVisible:pu,mixin:wm,off:(t,e)=>{if(!t){T.eventEmitter.reset();return}e?T.eventEmitter.removeListener(t,e):T.eventEmitter.removeAllListeners(t)},on:(t,e)=>{T.eventEmitter.on(t,e)},once:(t,e)=>{T.eventEmitter.once(t,e)},resumeTimer:ti,showLoading:_t,stopTimer:ei,toggleTimer:ym});class Tm{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.started&&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 oi=["swal-title","swal-html","swal-footer"],Im=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Mm(n),Object.assign(Am(n),Pm(n),$m(n),Bm(n),Lm(n),Om(n),Nm(n,oi))},Am=t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach(o=>{ct(o,["name","value"]);const a=o.getAttribute("name"),i=o.getAttribute("value");!a||!i||(typeof Et[a]=="boolean"?e[a]=i!=="false":typeof Et[a]=="object"?e[a]=JSON.parse(i):e[a]=i)}),e},Pm=t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach(o=>{const a=o.getAttribute("name"),i=o.getAttribute("value");!a||!i||(e[a]=new Function(`return ${i}`)())}),e},$m=t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach(o=>{ct(o,["type","color","aria-label"]);const a=o.getAttribute("type");!a||!["confirm","cancel","deny"].includes(a)||(e[`${a}ButtonText`]=o.innerHTML,e[`show${ho(a)}Button`]=!0,o.hasAttribute("color")&&(e[`${a}ButtonColor`]=o.getAttribute("color")),o.hasAttribute("aria-label")&&(e[`${a}ButtonAriaLabel`]=o.getAttribute("aria-label")))}),e},Bm=t=>{const e={},n=t.querySelector("swal-image");return n&&(ct(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt")||void 0)),e},Lm=t=>{const e={},n=t.querySelector("swal-icon");return n&&(ct(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Om=t=>{const e={},n=t.querySelector("swal-input");n&&(ct(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=Array.from(t.querySelectorAll("swal-input-option"));return o.length&&(e.inputOptions={},o.forEach(a=>{ct(a,["value"]);const i=a.getAttribute("value");if(!i)return;const c=a.innerHTML;e.inputOptions[i]=c})),e},Nm=(t,e)=>{const n={};for(const o in e){const a=e[o],i=t.querySelector(a);i&&(ct(i,[]),n[a.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Mm=t=>{const e=oi.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.includes(o)||ie(`Unrecognized element <${o}>`)})},ct=(t,e)=>{Array.from(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&ie([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},ri=10,Dm=t=>{const e=se(),n=M();typeof t.willOpen=="function"&&t.willOpen(n),T.eventEmitter.emit("willOpen",n);const a=window.getComputedStyle(document.body).overflowY;jm(e,n,t),setTimeout(()=>{Rm(e,n)},ri),Co()&&(Vm(e,t.scrollbarPadding,a),_u()),!Tn()&&!T.previousActiveElement&&(T.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),T.eventEmitter.emit("didOpen",n),ve(e,g["no-transition"])},Mn=t=>{const e=M();if(t.target!==e)return;const n=se();e.removeEventListener("animationend",Mn),e.removeEventListener("transitionend",Mn),n.style.overflowY="auto"},Rm=(t,e)=>{fa(e)?(t.style.overflowY="hidden",e.addEventListener("animationend",Mn),e.addEventListener("transitionend",Mn)):t.style.overflowY="auto"},Vm=(t,e,n)=>{Eu(),e&&n!=="hidden"&&Bu(n),setTimeout(()=>{t.scrollTop=0})},jm=(t,e,n)=>{D(t,n.showClass.backdrop),n.animation?(e.style.setProperty("opacity","0","important"),Y(e,"grid"),setTimeout(()=>{D(e,n.showClass.popup),e.style.removeProperty("opacity")},ri)):Y(e,"grid"),D([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&D([document.documentElement,document.body],g["height-auto"])};var ai={email:(t,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.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 Hm(t){t.inputValidator||(t.input==="email"&&(t.inputValidator=ai.email),t.input==="url"&&(t.inputValidator=ai.url))}function zm(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(ie('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Fm(t){Hm(t),t.showLoaderOnConfirm&&!t.preConfirm&&ie(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
423
|
+
`,ba=(t,e)=>{if(!e.icon&&!e.iconHtml)return;let n=t.innerHTML,o="";e.iconHtml?o=wa(e.iconHtml):e.icon==="success"?(o=lu(e),n=n.replace(/ style=".*?"/g,"")):e.icon==="error"?o=cu:e.icon&&(o=wa({question:"?",warning:"!",info:"i"}[e.icon])),n.trim()!==o.trim()&&ge(t,o)},du=(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"])ma(t,n,"background-color",e.iconColor);ma(t,".swal2-success-ring","border-color",e.iconColor)}},wa=t=>`<div class="${g["icon-content"]}">${t}</div>`,uu=(t,e)=>{const n=la();if(n){if(!e.imageUrl){te(n);return}Y(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt||""),st(n,"width",e.imageWidth),st(n,"height",e.imageHeight),n.className=g.image,be(n,e,"image")}};let Po=!1,va=0,ya=0,ka=0,Ca=0;const mu=t=>{t.addEventListener("mousedown",Pn),document.body.addEventListener("mousemove",$n),t.addEventListener("mouseup",Bn),t.addEventListener("touchstart",Pn),document.body.addEventListener("touchmove",$n),t.addEventListener("touchend",Bn)},fu=t=>{t.removeEventListener("mousedown",Pn),document.body.removeEventListener("mousemove",$n),t.removeEventListener("mouseup",Bn),t.removeEventListener("touchstart",Pn),document.body.removeEventListener("touchmove",$n),t.removeEventListener("touchend",Bn)},Pn=t=>{const e=M();if(t.target===e||wt().contains(t.target)){Po=!0;const n=Sa(t);va=n.clientX,ya=n.clientY,ka=parseInt(e.style.insetInlineStart)||0,Ca=parseInt(e.style.insetBlockStart)||0,D(e,"swal2-dragging")}},$n=t=>{const e=M();if(Po){let{clientX:n,clientY:o}=Sa(t);e.style.insetInlineStart=`${ka+(n-va)}px`,e.style.insetBlockStart=`${Ca+(o-ya)}px`}},Bn=()=>{const t=M();Po=!1,ve(t,"swal2-dragging")},Sa=t=>{let e=0,n=0;return t.type.startsWith("mouse")?(e=t.clientX,n=t.clientY):t.type.startsWith("touch")&&(e=t.touches[0].clientX,n=t.touches[0].clientY),{clientX:e,clientY:n}},pu=(t,e)=>{const n=se(),o=M();if(!(!n||!o)){if(e.toast){st(n,"width",e.width),o.style.width="100%";const a=yt();a&&o.insertBefore(a,wt())}else st(o,"width",e.width);st(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),te(En()),hu(o,e),e.draggable&&!e.toast?(D(o,g.draggable),mu(o)):(ve(o,g.draggable),fu(o))}},hu=(t,e)=>{const n=e.showClass||{};t.className=`${g.popup} ${fe(t)?n.popup:""}`,e.toast?(D([document.documentElement,document.body],g["toast-shown"]),D(t,g.toast)):D(t,g.modal),be(t,e,"popup"),typeof e.customClass=="string"&&D(t,e.customClass),e.icon&&D(t,g[`icon-${e.icon}`])},gu=(t,e)=>{const n=vo();if(!n)return;const{progressSteps:o,currentProgressStep:a}=e;if(!o||o.length===0||a===void 0){te(n);return}Y(n),n.textContent="",a>=o.length&&ie("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((i,c)=>{const l=bu(i);if(n.appendChild(l),c===a&&D(l,g["active-progress-step"]),c!==o.length-1){const s=wu(e);n.appendChild(s)}})},bu=t=>{const e=document.createElement("li");return D(e,g["progress-step"]),ge(e,t),e},wu=t=>{const e=document.createElement("li");return D(e,g["progress-step-line"]),t.progressStepsDistance&&st(e,"width",t.progressStepsDistance),e},vu=(t,e)=>{const n=sa();n&&(So(n),en(n,e.title||e.titleText,"block"),e.title&&xo(e.title,n),e.titleText&&(n.innerText=e.titleText),be(n,e,"title"))},_a=(t,e)=>{pu(t,e),Yd(t,e),gu(t,e),su(t,e),uu(t,e),vu(t,e),qd(t,e),au(t,e),Wd(t,e),iu(t,e);const n=M();typeof e.didRender=="function"&&n&&e.didRender(n),T.eventEmitter.emit("didRender",n)},yu=()=>fe(M()),Ea=()=>{var t;return(t=Be())===null||t===void 0?void 0:t.click()},ku=()=>{var t;return(t=it())===null||t===void 0?void 0:t.click()},Cu=()=>{var t;return(t=vt())===null||t===void 0?void 0:t.click()},kt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),xa=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Su=(t,e,n)=>{xa(t),e.toast||(t.keydownHandler=o=>Eu(e,o,n),t.keydownTarget=e.keydownListenerCapture?window:M(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},$o=(t,e)=>{var n;const o=ko();if(o.length){t=t+e,t===-2&&(t=o.length-1),t===o.length?t=0:t===-1&&(t=o.length-1),o[t].focus();return}(n=M())===null||n===void 0||n.focus()},Ta=["ArrowRight","ArrowDown"],_u=["ArrowLeft","ArrowUp"],Eu=(t,e,n)=>{t&&(e.isComposing||e.keyCode===229||(t.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?xu(e,t):e.key==="Tab"?Tu(e):[...Ta,..._u].includes(e.key)?Iu(e.key):e.key==="Escape"&&Au(e,t,n)))},xu=(t,e)=>{if(!_n(e.allowEnterKey))return;const n=In(M(),e.input);if(t.target&&n&&t.target instanceof HTMLElement&&t.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(e.input))return;Ea(),t.preventDefault()}},Tu=t=>{const e=t.target,n=ko();let o=-1;for(let a=0;a<n.length;a++)if(e===n[a]){o=a;break}t.shiftKey?$o(o,-1):$o(o,1),t.stopPropagation(),t.preventDefault()},Iu=t=>{const e=Qt(),n=Be(),o=it(),a=vt();if(!e||!n||!o||!a)return;const i=[n,o,a];if(document.activeElement instanceof HTMLElement&&!i.includes(document.activeElement))return;const c=Ta.includes(t)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let s=0;s<e.children.length;s++){if(l=l[c],!l)return;if(l instanceof HTMLButtonElement&&fe(l))break}l instanceof HTMLButtonElement&&l.focus()}},Au=(t,e,n)=>{t.preventDefault(),_n(e.allowEscapeKey)&&n(kt.esc)};var Ct={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Pu=()=>{const t=se();Array.from(document.body.children).forEach(n=>{n.contains(t)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},Ia=()=>{Array.from(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")})},Aa=typeof window<"u"&&!!window.GestureEvent,$u=()=>{if(Aa&&!De(document.body,g.iosfix)){const t=document.body.scrollTop;document.body.style.top=`${t*-1}px`,D(document.body,g.iosfix),Bu()}},Bu=()=>{const t=se();if(!t)return;let e;t.ontouchstart=n=>{e=Lu(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Lu=t=>{const e=t.target,n=se(),o=wo();return!n||!o||Ou(t)||Nu(t)?!1:e===n||!_o(n)&&e instanceof HTMLElement&&!Ld(e,o)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(_o(o)&&o.contains(e))},Ou=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",Nu=t=>t.touches&&t.touches.length>1,Mu=()=>{if(De(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);ve(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},Du=()=>{const t=document.createElement("div");t.className=g["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e};let St=null;const Ru=t=>{St===null&&(document.body.scrollHeight>window.innerHeight||t==="scroll")&&(St=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${St+Du()}px`)},Vu=()=>{St!==null&&(document.body.style.paddingRight=`${St}px`,St=null)};function Pa(t,e,n,o){Tn()?Ba(t,o):(Ed(n).then(()=>Ba(t,o)),xa(T)),Aa?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),Co()&&(Vu(),Mu(),Ia()),ju()}function ju(){ve([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function Xe(t){t=zu(t);const e=Ct.swalPromiseResolve.get(this),n=Hu(this);this.isAwaitingPromise?t.isDismissed||(nn(this),e(t)):n&&e(t)}const Hu=t=>{const e=M();if(!e)return!1;const n=j.innerParams.get(t);if(!n||De(e,n.hideClass.popup))return!1;ve(e,n.showClass.popup),D(e,n.hideClass.popup);const o=se();return ve(o,n.showClass.backdrop),D(o,n.hideClass.backdrop),Fu(t,e,n),!0};function $a(t){const e=Ct.swalPromiseReject.get(this);nn(this),e&&e(t)}const nn=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,j.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),Fu=(t,e,n)=>{var o;const a=se(),i=fa(e);typeof n.willClose=="function"&&n.willClose(e),(o=T.eventEmitter)===null||o===void 0||o.emit("willClose",e),i?Uu(t,e,a,n.returnFocus,n.didClose):Pa(t,a,n.returnFocus,n.didClose)},Uu=(t,e,n,o,a)=>{T.swalCloseEventFinishedCallback=Pa.bind(null,t,n,o,a);const i=function(c){if(c.target===e){var l;(l=T.swalCloseEventFinishedCallback)===null||l===void 0||l.call(T),delete T.swalCloseEventFinishedCallback,e.removeEventListener("animationend",i),e.removeEventListener("transitionend",i)}};e.addEventListener("animationend",i),e.addEventListener("transitionend",i)},Ba=(t,e)=>{setTimeout(()=>{var n;typeof e=="function"&&e.bind(t.params)(),(n=T.eventEmitter)===null||n===void 0||n.emit("didClose"),t._destroy&&t._destroy()})},_t=t=>{let e=M();if(e||new dt,e=M(),!e)return;const n=yt();Tn()?te(wt()):Wu(e,t),Y(n),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},Wu=(t,e)=>{const n=Qt(),o=yt();!n||!o||(!e&&fe(Be())&&(e=Be()),Y(n),e&&(te(e),o.setAttribute("data-button-to-replace",e.className),n.insertBefore(o,e)),D([t,n],g.loading))},Ku=(t,e)=>{e.input==="select"||e.input==="radio"?Zu(t,e):["text","email","number","tel","textarea"].some(n=>n===e.input)&&(go(e.inputValue)||bo(e.inputValue))&&(_t(Be()),Ju(t,e))},Gu=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return qu(n);case"radio":return Yu(n);case"file":return Xu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},qu=t=>t.checked?1:0,Yu=t=>t.checked?t.value:null,Xu=t=>t.files&&t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Zu=(t,e)=>{const n=M();if(!n)return;const o=a=>{e.input==="select"?Qu(n,Ln(a),e):e.input==="radio"&&em(n,Ln(a),e)};go(e.inputOptions)||bo(e.inputOptions)?(_t(Be()),Zt(e.inputOptions).then(a=>{t.hideLoading(),o(a)})):typeof e.inputOptions=="object"?o(e.inputOptions):at(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Ju=(t,e)=>{const n=t.getInput();n&&(te(n),Zt(e.inputValue).then(o=>{n.value=e.input==="number"?`${parseFloat(o)||0}`:`${o}`,Y(n),n.focus(),t.hideLoading()}).catch(o=>{at(`Error in inputValue promise: ${o}`),n.value="",Y(n),n.focus(),t.hideLoading()}))};function Qu(t,e,n){const o=Ye(t,g.select);if(!o)return;const a=(i,c,l)=>{const s=document.createElement("option");s.value=l,ge(s,c),s.selected=La(l,n.inputValue),i.appendChild(s)};e.forEach(i=>{const c=i[0],l=i[1];if(Array.isArray(l)){const s=document.createElement("optgroup");s.label=c,s.disabled=!1,o.appendChild(s),l.forEach(d=>a(s,d[1],d[0]))}else a(o,l,c)}),o.focus()}function em(t,e,n){const o=Ye(t,g.radio);if(!o)return;e.forEach(i=>{const c=i[0],l=i[1],s=document.createElement("input"),d=document.createElement("label");s.type="radio",s.name=g.radio,s.value=c,La(c,n.inputValue)&&(s.checked=!0);const m=document.createElement("span");ge(m,l),m.className=g.label,d.appendChild(s),d.appendChild(m),o.appendChild(d)});const a=o.querySelectorAll("input");a.length&&a[0].focus()}const Ln=t=>{const e=[];return t instanceof Map?t.forEach((n,o)=>{let a=n;typeof a=="object"&&(a=Ln(a)),e.push([o,a])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=Ln(o)),e.push([n,o])}),e},La=(t,e)=>!!e&&e.toString()===t.toString(),tm=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.input?Oa(t,"confirm"):Lo(t,!0)},nm=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Oa(t,"deny"):Bo(t,!1)},om=(t,e)=>{t.disableButtons(),e(kt.cancel)},Oa=(t,e)=>{const n=j.innerParams.get(t);if(!n.input){at(`The "input" parameter is needed to be set when using returnInputValueOn${ho(e)}`);return}const o=t.getInput(),a=Gu(t,n);n.inputValidator?rm(t,a,e):o&&!o.checkValidity()?(t.enableButtons(),t.showValidationMessage(n.validationMessage||o.validationMessage)):e==="deny"?Bo(t,a):Lo(t,a)},rm=(t,e,n)=>{const o=j.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Zt(o.inputValidator(e,o.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?Bo(t,e):Lo(t,e)})},Bo=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnDeny&&_t(it()),n.preDeny?(t.isAwaitingPromise=!0,Promise.resolve().then(()=>Zt(n.preDeny(e,n.validationMessage))).then(a=>{a===!1?(t.hideLoading(),nn(t)):t.close({isDenied:!0,value:typeof a>"u"?e:a})}).catch(a=>Ma(t||void 0,a))):t.close({isDenied:!0,value:e})},Na=(t,e)=>{t.close({isConfirmed:!0,value:e})},Ma=(t,e)=>{t.rejectPromise(e)},Lo=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnConfirm&&_t(),n.preConfirm?(t.resetValidationMessage(),t.isAwaitingPromise=!0,Promise.resolve().then(()=>Zt(n.preConfirm(e,n.validationMessage))).then(a=>{fe(En())||a===!1?(t.hideLoading(),nn(t)):Na(t,typeof a>"u"?e:a)}).catch(a=>Ma(t||void 0,a))):Na(t,e)};function On(){const t=j.innerParams.get(this);if(!t)return;const e=j.domCache.get(this);te(e.loader),Tn()?t.icon&&Y(wt()):am(e),ve([e.popup,e.actions],g.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const am=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?Y(e[0],"inline-block"):Bd()&&te(t.actions)};function Da(){const t=j.innerParams.get(this),e=j.domCache.get(this);return e?In(e.popup,t.input):null}function Ra(t,e,n){const o=j.domCache.get(t);e.forEach(a=>{o[a].disabled=n})}function Va(t,e){const n=M();if(!(!n||!t))if(t.type==="radio"){const o=n.querySelectorAll(`[name="${g.radio}"]`);for(let a=0;a<o.length;a++)o[a].disabled=e}else t.disabled=e}function ja(){Ra(this,["confirmButton","denyButton","cancelButton"],!1)}function Ha(){Ra(this,["confirmButton","denyButton","cancelButton"],!0)}function za(){Va(this.getInput(),!1)}function Fa(){Va(this.getInput(),!0)}function Ua(t){const e=j.domCache.get(this),n=j.innerParams.get(this);ge(e.validationMessage,t),e.validationMessage.className=g["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","true"),o.setAttribute("aria-describedby",g["validation-message"]),da(o),D(o,g.inputerror))}function Wa(){const t=j.domCache.get(this);t.validationMessage&&te(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),ve(e,g.inputerror))}const Et={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",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:"×",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:{},inputAutoFocus:!0,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,topLayer:!1},im=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],sm={allowEnterKey:void 0},lm=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Ka=t=>Object.prototype.hasOwnProperty.call(Et,t),Ga=t=>im.indexOf(t)!==-1,qa=t=>sm[t],cm=t=>{Ka(t)||ie(`Unknown parameter "${t}"`)},dm=t=>{lm.includes(t)&&ie(`The parameter "${t}" is incompatible with toasts`)},um=t=>{const e=qa(t);e&&ia(t,e)},Ya=t=>{t.backdrop===!1&&t.allowOutsideClick&&ie('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.theme&&!["light","dark","auto","minimal","borderless","embed-iframe","bulma","bulma-light","bulma-dark"].includes(t.theme)&&ie(`Invalid theme "${t.theme}"`);for(const e in t)cm(e),t.toast&&dm(e),um(e)};function Xa(t){const e=se(),n=M(),o=j.innerParams.get(this);if(!n||De(n,o.hideClass.popup)){ie("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.");return}const a=mm(t),i=Object.assign({},o,a);Ya(i),e.dataset.swal2Theme=i.theme,_a(this,i),j.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const mm=t=>{const e={};return Object.keys(t).forEach(n=>{Ga(n)?e[n]=t[n]:ie(`Invalid parameter to update: ${n}`)}),e};function Za(){const t=j.domCache.get(this),e=j.innerParams.get(this);if(!e){Ja(this);return}t.popup&&T.swalCloseEventFinishedCallback&&(T.swalCloseEventFinishedCallback(),delete T.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),T.eventEmitter.emit("didDestroy"),fm(this)}const fm=t=>{Ja(t),delete t.params,delete T.keydownHandler,delete T.keydownTarget,delete T.currentInstance},Ja=t=>{t.isAwaitingPromise?(Oo(j,t),t.isAwaitingPromise=!0):(Oo(Ct,t),Oo(j,t),delete t.isAwaitingPromise,delete t.disableButtons,delete t.enableButtons,delete t.getInput,delete t.disableInput,delete t.enableInput,delete t.hideLoading,delete t.disableLoading,delete t.showValidationMessage,delete t.resetValidationMessage,delete t.close,delete t.closePopup,delete t.closeModal,delete t.closeToast,delete t.rejectPromise,delete t.update,delete t._destroy)},Oo=(t,e)=>{for(const n in t)t[n].delete(e)};var pm=Object.freeze({__proto__:null,_destroy:Za,close:Xe,closeModal:Xe,closePopup:Xe,closeToast:Xe,disableButtons:Ha,disableInput:Fa,disableLoading:On,enableButtons:ja,enableInput:za,getInput:Da,handleAwaitingPromise:nn,hideLoading:On,rejectPromise:$a,resetValidationMessage:Wa,showValidationMessage:Ua,update:Xa});const hm=(t,e,n)=>{t.toast?gm(t,e,n):(wm(e),vm(e),ym(t,e,n))},gm=(t,e,n)=>{e.popup.onclick=()=>{t&&(bm(t)||t.timer||t.input)||n(kt.close)}},bm=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let Nn=!1;const wm=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=()=>{},e.target===t.container&&(Nn=!0)}}},vm=t=>{t.container.onmousedown=e=>{e.target===t.container&&e.preventDefault(),t.popup.onmouseup=function(n){t.popup.onmouseup=()=>{},(n.target===t.popup||n.target instanceof HTMLElement&&t.popup.contains(n.target))&&(Nn=!0)}}},ym=(t,e,n)=>{e.container.onclick=o=>{if(Nn){Nn=!1;return}o.target===e.container&&_n(t.allowOutsideClick)&&n(kt.backdrop)}},km=t=>typeof t=="object"&&t.jquery,Qa=t=>t instanceof Element||km(t),Cm=t=>{const e={};return typeof t[0]=="object"&&!Qa(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const a=t[o];typeof a=="string"||Qa(a)?e[n]=a:a!==void 0&&at(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof a}`)}),e};function Sm(...t){return new this(...t)}function _m(t){class e extends this{_main(o,a){return super._main(o,Object.assign({},t,a))}}return e}const Em=()=>T.timeout&&T.timeout.getTimerLeft(),ei=()=>{if(T.timeout)return Od(),T.timeout.stop()},ti=()=>{if(T.timeout){const t=T.timeout.start();return Eo(t),t}},xm=()=>{const t=T.timeout;return t&&(t.running?ei():ti())},Tm=t=>{if(T.timeout){const e=T.timeout.increase(t);return Eo(e,!0),e}},Im=()=>!!(T.timeout&&T.timeout.isRunning());let ni=!1;const No={};function Am(t="data-swal-template"){No[t]=this,ni||(document.body.addEventListener("click",Pm),ni=!0)}const Pm=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in No){const o=e.getAttribute(n);if(o){No[n].fire({template:o});return}}};class $m{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,n){const o=this._getHandlersByEventName(e);o.includes(n)||o.push(n)}once(e,n){const o=(...a)=>{this.removeListener(e,o),n.apply(this,a)};this.on(e,o)}emit(e,...n){this._getHandlersByEventName(e).forEach(o=>{try{o.apply(this,n)}catch(a){console.error(a)}})}removeListener(e,n){const o=this._getHandlersByEventName(e),a=o.indexOf(n);a>-1&&o.splice(a,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}T.eventEmitter=new $m;var Bm=Object.freeze({__proto__:null,argsToParams:Cm,bindClickHandler:Am,clickCancel:Cu,clickConfirm:Ea,clickDeny:ku,enableLoading:_t,fire:Sm,getActions:Qt,getCancelButton:vt,getCloseButton:yo,getConfirmButton:Be,getContainer:se,getDenyButton:it,getFocusableElements:ko,getFooter:ca,getHtmlContainer:wo,getIcon:wt,getIconContent:Td,getImage:la,getInputLabel:Id,getLoader:yt,getPopup:M,getProgressSteps:vo,getTimerLeft:Em,getTimerProgressBar:xn,getTitle:sa,getValidationMessage:En,increaseTimer:Tm,isDeprecatedParameter:qa,isLoading:Pd,isTimerRunning:Im,isUpdatableParameter:Ga,isValidParameter:Ka,isVisible:yu,mixin:_m,off:(t,e)=>{if(!t){T.eventEmitter.reset();return}e?T.eventEmitter.removeListener(t,e):T.eventEmitter.removeAllListeners(t)},on:(t,e)=>{T.eventEmitter.on(t,e)},once:(t,e)=>{T.eventEmitter.once(t,e)},resumeTimer:ti,showLoading:_t,stopTimer:ei,toggleTimer:xm});class Lm{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.started&&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 oi=["swal-title","swal-html","swal-footer"],Om=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return zm(n),Object.assign(Nm(n),Mm(n),Dm(n),Rm(n),Vm(n),jm(n),Hm(n,oi))},Nm=t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach(o=>{ct(o,["name","value"]);const a=o.getAttribute("name"),i=o.getAttribute("value");!a||!i||(typeof Et[a]=="boolean"?e[a]=i!=="false":typeof Et[a]=="object"?e[a]=JSON.parse(i):e[a]=i)}),e},Mm=t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach(o=>{const a=o.getAttribute("name"),i=o.getAttribute("value");!a||!i||(e[a]=new Function(`return ${i}`)())}),e},Dm=t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach(o=>{ct(o,["type","color","aria-label"]);const a=o.getAttribute("type");!a||!["confirm","cancel","deny"].includes(a)||(e[`${a}ButtonText`]=o.innerHTML,e[`show${ho(a)}Button`]=!0,o.hasAttribute("color")&&(e[`${a}ButtonColor`]=o.getAttribute("color")),o.hasAttribute("aria-label")&&(e[`${a}ButtonAriaLabel`]=o.getAttribute("aria-label")))}),e},Rm=t=>{const e={},n=t.querySelector("swal-image");return n&&(ct(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt")||void 0)),e},Vm=t=>{const e={},n=t.querySelector("swal-icon");return n&&(ct(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},jm=t=>{const e={},n=t.querySelector("swal-input");n&&(ct(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=Array.from(t.querySelectorAll("swal-input-option"));return o.length&&(e.inputOptions={},o.forEach(a=>{ct(a,["value"]);const i=a.getAttribute("value");if(!i)return;const c=a.innerHTML;e.inputOptions[i]=c})),e},Hm=(t,e)=>{const n={};for(const o in e){const a=e[o],i=t.querySelector(a);i&&(ct(i,[]),n[a.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},zm=t=>{const e=oi.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.includes(o)||ie(`Unrecognized element <${o}>`)})},ct=(t,e)=>{Array.from(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&ie([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},ri=10,Fm=t=>{const e=se(),n=M();typeof t.willOpen=="function"&&t.willOpen(n),T.eventEmitter.emit("willOpen",n);const a=window.getComputedStyle(document.body).overflowY;Km(e,n,t),setTimeout(()=>{Um(e,n)},ri),Co()&&(Wm(e,t.scrollbarPadding,a),Pu()),!Tn()&&!T.previousActiveElement&&(T.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),T.eventEmitter.emit("didOpen",n),ve(e,g["no-transition"])},Mn=t=>{const e=M();if(t.target!==e)return;const n=se();e.removeEventListener("animationend",Mn),e.removeEventListener("transitionend",Mn),n.style.overflowY="auto"},Um=(t,e)=>{fa(e)?(t.style.overflowY="hidden",e.addEventListener("animationend",Mn),e.addEventListener("transitionend",Mn)):t.style.overflowY="auto"},Wm=(t,e,n)=>{$u(),e&&n!=="hidden"&&Ru(n),setTimeout(()=>{t.scrollTop=0})},Km=(t,e,n)=>{D(t,n.showClass.backdrop),n.animation?(e.style.setProperty("opacity","0","important"),Y(e,"grid"),setTimeout(()=>{D(e,n.showClass.popup),e.style.removeProperty("opacity")},ri)):Y(e,"grid"),D([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&D([document.documentElement,document.body],g["height-auto"])};var ai={email:(t,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.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 Gm(t){t.inputValidator||(t.input==="email"&&(t.inputValidator=ai.email),t.input==="url"&&(t.inputValidator=ai.url))}function qm(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(ie('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Ym(t){Gm(t),t.showLoaderOnConfirm&&!t.preConfirm&&ie(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
424
424
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
425
|
-
https://sweetalert2.github.io/#ajax-request`),
|
|
426
|
-
`).join("<br />")),Md(t)}let Le;var Dn=new WeakMap;class G{constructor(...e){if(hd(this,Dn,void 0),typeof window>"u")return;Le=this;const n=Object.freeze(this.constructor.argsToParams(e));this.params=n,this.isAwaitingPromise=!1,gd(Dn,this,this._main(Le.params))}_main(e,n={}){if(Ya(Object.assign({},n,e)),T.currentInstance){const i=Ct.swalPromiseResolve.get(T.currentInstance),{isAwaitingPromise:c}=T.currentInstance;T.currentInstance._destroy(),c||i({isDismissed:!0}),Co()&&Ia()}T.currentInstance=Le;const o=Wm(e,n);Fm(o),Object.freeze(o),T.timeout&&(T.timeout.stop(),delete T.timeout),clearTimeout(T.restoreFocusTimeout);const a=Km(Le);return _a(Le,o),j.innerParams.set(Le,o),Um(Le,a,o)}then(e){return na(Dn,this).then(e)}finally(e){return na(Dn,this).finally(e)}}const Um=(t,e,n)=>new Promise((o,a)=>{const i=c=>{t.close({isDismissed:!0,dismiss:c})};Ct.swalPromiseResolve.set(t,o),Ct.swalPromiseReject.set(t,a),e.confirmButton.onclick=()=>{Yu(t)},e.denyButton.onclick=()=>{Xu(t)},e.cancelButton.onclick=()=>{Zu(t,i)},e.closeButton.onclick=()=>{i(kt.close)},cm(n,e,i),bu(T,n,i),ju(t,n),Dm(n),Gm(T,n,i),qm(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Wm=(t,e)=>{const n=Im(t),o=Object.assign({},Et,e,n,t);return o.showClass=Object.assign({},Et.showClass,o.showClass),o.hideClass=Object.assign({},Et.hideClass,o.hideClass),o.animation===!1&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},Km=t=>{const e={popup:M(),container:se(),actions:Qt(),confirmButton:Be(),denyButton:it(),cancelButton:vt(),loader:yt(),closeButton:yo(),validationMessage:En(),progressSteps:vo()};return j.domCache.set(t,e),e},Gm=(t,e,n)=>{const o=xn();te(o),e.timer&&(t.timeout=new Tm(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(Y(o),be(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&Eo(e.timer)})))},qm=(t,e)=>{if(!e.toast){if(!_n(e.allowEnterKey)){ia("allowEnterKey"),Zm();return}Ym(t)||Xm(t,e)||$o(-1,1)}},Ym=t=>{const e=Array.from(t.popup.querySelectorAll("[autofocus]"));for(const n of e)if(n instanceof HTMLElement&&fe(n))return n.focus(),!0;return!1},Xm=(t,e)=>e.focusDeny&&fe(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&fe(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&fe(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Zm=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};G.prototype.disableButtons=Ha,G.prototype.enableButtons=ja,G.prototype.getInput=Da,G.prototype.disableInput=Fa,G.prototype.enableInput=za,G.prototype.hideLoading=On,G.prototype.disableLoading=On,G.prototype.showValidationMessage=Ua,G.prototype.resetValidationMessage=Wa,G.prototype.close=Xe,G.prototype.closePopup=Xe,G.prototype.closeModal=Xe,G.prototype.closeToast=Xe,G.prototype.rejectPromise=$a,G.prototype.update=Xa,G.prototype._destroy=Za,Object.assign(G,xm),Object.keys(lm).forEach(t=>{G[t]=function(...e){return Le&&Le[t]?Le[t](...e):null}}),G.DismissReason=kt,G.version="11.23.0";const dt=G;dt.default=dt,typeof document<"u"&&(function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch{n.innerText=e}})(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px $swal2-outline-color;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');/*! @license DOMPurify 3.2.7 | (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.7/LICENSE */const{entries:ii,setPrototypeOf:si,isFrozen:Jm,getPrototypeOf:Qm,getOwnPropertyDescriptor:ef}=Object;let{freeze:le,seal:ye,create:li}=Object,{apply:Mo,construct:Do}=typeof Reflect<"u"&&Reflect;le||(le=function(e){return e}),ye||(ye=function(e){return e}),Mo||(Mo=function(e,n){for(var o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];return e.apply(n,a)}),Do||(Do=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return new e(...o)});const Rn=de(Array.prototype.forEach),tf=de(Array.prototype.lastIndexOf),ci=de(Array.prototype.pop),on=de(Array.prototype.push),nf=de(Array.prototype.splice),Vn=de(String.prototype.toLowerCase),Ro=de(String.prototype.toString),Vo=de(String.prototype.match),rn=de(String.prototype.replace),of=de(String.prototype.indexOf),rf=de(String.prototype.trim),Te=de(Object.prototype.hasOwnProperty),ce=de(RegExp.prototype.test),an=af(TypeError);function de(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return Mo(t,e,o)}}function af(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Do(t,n)}}function L(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vn;si&&si(t,null);let o=e.length;for(;o--;){let a=e[o];if(typeof a=="string"){const i=n(a);i!==a&&(Jm(e)||(e[o]=i),a=i)}t[a]=!0}return t}function sf(t){for(let e=0;e<t.length;e++)Te(t,e)||(t[e]=null);return t}function Re(t){const e=li(null);for(const[n,o]of ii(t))Te(t,n)&&(Array.isArray(o)?e[n]=sf(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=Re(o):e[n]=o);return e}function sn(t,e){for(;t!==null;){const o=ef(t,e);if(o){if(o.get)return de(o.get);if(typeof o.value=="function")return de(o.value)}t=Qm(t)}function n(){return null}return n}const di=le(["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","search","section","select","shadow","slot","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"]),jo=le(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ho=le(["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"]),lf=le(["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"]),zo=le(["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"]),cf=le(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ui=le(["#text"]),mi=le(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Fo=le(["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"]),fi=le(["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"]),jn=le(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),df=ye(/\{\{[\w\W]*|[\w\W]*\}\}/gm),uf=ye(/<%[\w\W]*|[\w\W]*%>/gm),mf=ye(/\$\{[\w\W]*/gm),ff=ye(/^data-[\-\w.\u00B7-\uFFFF]+$/),pf=ye(/^aria-[\-\w]+$/),pi=ye(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hf=ye(/^(?:\w+script|data):/i),gf=ye(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),hi=ye(/^html$/i),bf=ye(/^[a-z][.\w]*(-[.\w]+)+$/i);var gi=Object.freeze({__proto__:null,ARIA_ATTR:pf,ATTR_WHITESPACE:gf,CUSTOM_ELEMENT:bf,DATA_ATTR:ff,DOCTYPE_NAME:hi,ERB_EXPR:uf,IS_ALLOWED_URI:pi,IS_SCRIPT_OR_DATA:hf,MUSTACHE_EXPR:df,TMPLIT_EXPR:mf});const ln={element:1,text:3,progressingInstruction:7,comment:8,document:9},wf=function(){return typeof window>"u"?null:window},vf=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const a="data-tt-policy-suffix";n&&n.hasAttribute(a)&&(o=n.getAttribute(a));const i="dompurify"+(o?"#"+o:"");try{return e.createPolicy(i,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},bi=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function wi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wf();const e=x=>wi(x);if(e.version="3.2.7",e.removed=[],!t||!t.document||t.document.nodeType!==ln.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,a=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:c,Node:l,Element:s,NodeFilter:d,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:u,DOMParser:p,trustedTypes:h}=t,y=s.prototype,k=sn(y,"cloneNode"),C=sn(y,"remove"),b=sn(y,"nextSibling"),S=sn(y,"childNodes"),B=sn(y,"parentNode");if(typeof c=="function"){const x=n.createElement("template");x.content&&x.content.ownerDocument&&(n=x.content.ownerDocument)}let w,E="";const{implementation:U,createNodeIterator:J,createDocumentFragment:ke,getElementsByTagName:ne}=n,{importNode:Ce}=o;let I=bi();e.isSupported=typeof ii=="function"&&typeof B=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:V,ERB_EXPR:oe,TMPLIT_EXPR:ue,DATA_ATTR:Ie,ARIA_ATTR:Ze,IS_SCRIPT_OR_DATA:Ve,ATTR_WHITESPACE:je,CUSTOM_ELEMENT:Je}=gi;let{IS_ALLOWED_URI:Se}=gi,R=null;const Oe=L({},[...di,...jo,...Ho,...zo,...ui]);let W=null;const He=L({},[...mi,...Fo,...fi,...jn]);let z=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}})),Qe=null,cn=null,Un=!0,dn=!0,Wn=!1,Kn=!0,et=!1,Tt=!0,ze=!1,un=!1,mn=!1,tt=!1,It=!1,At=!1,Gn=!0,qn=!1;const qo="user-content-";let fn=!0,ut=!1,Pt={},$t=null;const xi=L({},["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 Ti=null;const Ii=L({},["audio","video","img","source","image","track"]);let Yo=null;const Ai=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yn="http://www.w3.org/1998/Math/MathML",Xn="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let Bt=Fe,Xo=!1,Zo=null;const Rf=L({},[Yn,Xn,Fe],Ro);let Zn=L({},["mi","mo","mn","ms","mtext"]),Jn=L({},["annotation-xml"]);const Vf=L({},["title","style","font","a","script"]);let pn=null;const jf=["application/xhtml+xml","text/html"],Hf="text/html";let X=null,Lt=null;const zf=n.createElement("form"),Pi=function(f){return f instanceof RegExp||f instanceof Function},Jo=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Lt&&Lt===f)){if((!f||typeof f!="object")&&(f={}),f=Re(f),pn=jf.indexOf(f.PARSER_MEDIA_TYPE)===-1?Hf:f.PARSER_MEDIA_TYPE,X=pn==="application/xhtml+xml"?Ro:Vn,R=Te(f,"ALLOWED_TAGS")?L({},f.ALLOWED_TAGS,X):Oe,W=Te(f,"ALLOWED_ATTR")?L({},f.ALLOWED_ATTR,X):He,Zo=Te(f,"ALLOWED_NAMESPACES")?L({},f.ALLOWED_NAMESPACES,Ro):Rf,Yo=Te(f,"ADD_URI_SAFE_ATTR")?L(Re(Ai),f.ADD_URI_SAFE_ATTR,X):Ai,Ti=Te(f,"ADD_DATA_URI_TAGS")?L(Re(Ii),f.ADD_DATA_URI_TAGS,X):Ii,$t=Te(f,"FORBID_CONTENTS")?L({},f.FORBID_CONTENTS,X):xi,Qe=Te(f,"FORBID_TAGS")?L({},f.FORBID_TAGS,X):Re({}),cn=Te(f,"FORBID_ATTR")?L({},f.FORBID_ATTR,X):Re({}),Pt=Te(f,"USE_PROFILES")?f.USE_PROFILES:!1,Un=f.ALLOW_ARIA_ATTR!==!1,dn=f.ALLOW_DATA_ATTR!==!1,Wn=f.ALLOW_UNKNOWN_PROTOCOLS||!1,Kn=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,et=f.SAFE_FOR_TEMPLATES||!1,Tt=f.SAFE_FOR_XML!==!1,ze=f.WHOLE_DOCUMENT||!1,tt=f.RETURN_DOM||!1,It=f.RETURN_DOM_FRAGMENT||!1,At=f.RETURN_TRUSTED_TYPE||!1,mn=f.FORCE_BODY||!1,Gn=f.SANITIZE_DOM!==!1,qn=f.SANITIZE_NAMED_PROPS||!1,fn=f.KEEP_CONTENT!==!1,ut=f.IN_PLACE||!1,Se=f.ALLOWED_URI_REGEXP||pi,Bt=f.NAMESPACE||Fe,Zn=f.MATHML_TEXT_INTEGRATION_POINTS||Zn,Jn=f.HTML_INTEGRATION_POINTS||Jn,z=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&Pi(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&Pi(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(z.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),et&&(dn=!1),It&&(tt=!0),Pt&&(R=L({},ui),W=[],Pt.html===!0&&(L(R,di),L(W,mi)),Pt.svg===!0&&(L(R,jo),L(W,Fo),L(W,jn)),Pt.svgFilters===!0&&(L(R,Ho),L(W,Fo),L(W,jn)),Pt.mathMl===!0&&(L(R,zo),L(W,fi),L(W,jn))),f.ADD_TAGS&&(R===Oe&&(R=Re(R)),L(R,f.ADD_TAGS,X)),f.ADD_ATTR&&(W===He&&(W=Re(W)),L(W,f.ADD_ATTR,X)),f.ADD_URI_SAFE_ATTR&&L(Yo,f.ADD_URI_SAFE_ATTR,X),f.FORBID_CONTENTS&&($t===xi&&($t=Re($t)),L($t,f.FORBID_CONTENTS,X)),fn&&(R["#text"]=!0),ze&&L(R,["html","head","body"]),R.table&&(L(R,["tbody"]),delete Qe.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw an('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw an('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=f.TRUSTED_TYPES_POLICY,E=w.createHTML("")}else w===void 0&&(w=vf(h,a)),w!==null&&typeof E=="string"&&(E=w.createHTML(""));le&&le(f),Lt=f}},$i=L({},[...jo,...Ho,...lf]),Bi=L({},[...zo,...cf]),Ff=function(f){let v=B(f);(!v||!v.tagName)&&(v={namespaceURI:Bt,tagName:"template"});const _=Vn(f.tagName),F=Vn(v.tagName);return Zo[f.namespaceURI]?f.namespaceURI===Xn?v.namespaceURI===Fe?_==="svg":v.namespaceURI===Yn?_==="svg"&&(F==="annotation-xml"||Zn[F]):!!$i[_]:f.namespaceURI===Yn?v.namespaceURI===Fe?_==="math":v.namespaceURI===Xn?_==="math"&&Jn[F]:!!Bi[_]:f.namespaceURI===Fe?v.namespaceURI===Xn&&!Jn[F]||v.namespaceURI===Yn&&!Zn[F]?!1:!Bi[_]&&(Vf[_]||!$i[_]):!!(pn==="application/xhtml+xml"&&Zo[f.namespaceURI]):!1},Ne=function(f){on(e.removed,{element:f});try{B(f).removeChild(f)}catch{C(f)}},mt=function(f,v){try{on(e.removed,{attribute:v.getAttributeNode(f),from:v})}catch{on(e.removed,{attribute:null,from:v})}if(v.removeAttribute(f),f==="is")if(tt||It)try{Ne(v)}catch{}else try{v.setAttribute(f,"")}catch{}},Li=function(f){let v=null,_=null;if(mn)f="<remove></remove>"+f;else{const q=Vo(f,/^[\r\n\t ]+/);_=q&&q[0]}pn==="application/xhtml+xml"&&Bt===Fe&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const F=w?w.createHTML(f):f;if(Bt===Fe)try{v=new p().parseFromString(F,pn)}catch{}if(!v||!v.documentElement){v=U.createDocument(Bt,"template",null);try{v.documentElement.innerHTML=Xo?E:F}catch{}}const re=v.body||v.documentElement;return f&&_&&re.insertBefore(n.createTextNode(_),re.childNodes[0]||null),Bt===Fe?ne.call(v,ze?"html":"body")[0]:ze?v.documentElement:re},Oi=function(f){return J.call(f.ownerDocument||f,f,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Qo=function(f){return f instanceof u&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof m)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},Ni=function(f){return typeof l=="function"&&f instanceof l};function Ue(x,f,v){Rn(x,_=>{_.call(e,f,v,Lt)})}const Mi=function(f){let v=null;if(Ue(I.beforeSanitizeElements,f,null),Qo(f))return Ne(f),!0;const _=X(f.nodeName);if(Ue(I.uponSanitizeElement,f,{tagName:_,allowedTags:R}),Tt&&f.hasChildNodes()&&!Ni(f.firstElementChild)&&ce(/<[/\w!]/g,f.innerHTML)&&ce(/<[/\w!]/g,f.textContent)||f.nodeType===ln.progressingInstruction||Tt&&f.nodeType===ln.comment&&ce(/<[/\w]/g,f.data))return Ne(f),!0;if(!R[_]||Qe[_]){if(!Qe[_]&&Ri(_)&&(z.tagNameCheck instanceof RegExp&&ce(z.tagNameCheck,_)||z.tagNameCheck instanceof Function&&z.tagNameCheck(_)))return!1;if(fn&&!$t[_]){const F=B(f)||f.parentNode,re=S(f)||f.childNodes;if(re&&F){const q=re.length;for(let pe=q-1;pe>=0;--pe){const We=k(re[pe],!0);We.__removalCount=(f.__removalCount||0)+1,F.insertBefore(We,b(f))}}}return Ne(f),!0}return f instanceof s&&!Ff(f)||(_==="noscript"||_==="noembed"||_==="noframes")&&ce(/<\/no(script|embed|frames)/i,f.innerHTML)?(Ne(f),!0):(et&&f.nodeType===ln.text&&(v=f.textContent,Rn([V,oe,ue],F=>{v=rn(v,F," ")}),f.textContent!==v&&(on(e.removed,{element:f.cloneNode()}),f.textContent=v)),Ue(I.afterSanitizeElements,f,null),!1)},Di=function(f,v,_){if(Gn&&(v==="id"||v==="name")&&(_ in n||_ in zf))return!1;if(!(dn&&!cn[v]&&ce(Ie,v))){if(!(Un&&ce(Ze,v))){if(!W[v]||cn[v]){if(!(Ri(f)&&(z.tagNameCheck instanceof RegExp&&ce(z.tagNameCheck,f)||z.tagNameCheck instanceof Function&&z.tagNameCheck(f))&&(z.attributeNameCheck instanceof RegExp&&ce(z.attributeNameCheck,v)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(v,f))||v==="is"&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&ce(z.tagNameCheck,_)||z.tagNameCheck instanceof Function&&z.tagNameCheck(_))))return!1}else if(!Yo[v]){if(!ce(Se,rn(_,je,""))){if(!((v==="src"||v==="xlink:href"||v==="href")&&f!=="script"&&of(_,"data:")===0&&Ti[f])){if(!(Wn&&!ce(Ve,rn(_,je,"")))){if(_)return!1}}}}}}return!0},Ri=function(f){return f!=="annotation-xml"&&Vo(f,Je)},Vi=function(f){Ue(I.beforeSanitizeAttributes,f,null);const{attributes:v}=f;if(!v||Qo(f))return;const _={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let F=v.length;for(;F--;){const re=v[F],{name:q,namespaceURI:pe,value:We}=re,Ot=X(q),er=We;let Q=q==="value"?er:rf(er);if(_.attrName=Ot,_.attrValue=Q,_.keepAttr=!0,_.forceKeepAttr=void 0,Ue(I.uponSanitizeAttribute,f,_),Q=_.attrValue,qn&&(Ot==="id"||Ot==="name")&&(mt(q,f),Q=qo+Q),Tt&&ce(/((--!?|])>)|<\/(style|title|textarea)/i,Q)){mt(q,f);continue}if(Ot==="attributename"&&Vo(Q,"href")){mt(q,f);continue}if(_.forceKeepAttr)continue;if(!_.keepAttr){mt(q,f);continue}if(!Kn&&ce(/\/>/i,Q)){mt(q,f);continue}et&&Rn([V,oe,ue],Hi=>{Q=rn(Q,Hi," ")});const ji=X(f.nodeName);if(!Di(ji,Ot,Q)){mt(q,f);continue}if(w&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!pe)switch(h.getAttributeType(ji,Ot)){case"TrustedHTML":{Q=w.createHTML(Q);break}case"TrustedScriptURL":{Q=w.createScriptURL(Q);break}}if(Q!==er)try{pe?f.setAttributeNS(pe,q,Q):f.setAttribute(q,Q),Qo(f)?Ne(f):ci(e.removed)}catch{mt(q,f)}}Ue(I.afterSanitizeAttributes,f,null)},Uf=function x(f){let v=null;const _=Oi(f);for(Ue(I.beforeSanitizeShadowDOM,f,null);v=_.nextNode();)Ue(I.uponSanitizeShadowNode,v,null),Mi(v),Vi(v),v.content instanceof i&&x(v.content);Ue(I.afterSanitizeShadowDOM,f,null)};return e.sanitize=function(x){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=null,_=null,F=null,re=null;if(Xo=!x,Xo&&(x="<!-->"),typeof x!="string"&&!Ni(x))if(typeof x.toString=="function"){if(x=x.toString(),typeof x!="string")throw an("dirty is not a string, aborting")}else throw an("toString is not a function");if(!e.isSupported)return x;if(un||Jo(f),e.removed=[],typeof x=="string"&&(ut=!1),ut){if(x.nodeName){const We=X(x.nodeName);if(!R[We]||Qe[We])throw an("root node is forbidden and cannot be sanitized in-place")}}else if(x instanceof l)v=Li("<!---->"),_=v.ownerDocument.importNode(x,!0),_.nodeType===ln.element&&_.nodeName==="BODY"||_.nodeName==="HTML"?v=_:v.appendChild(_);else{if(!tt&&!et&&!ze&&x.indexOf("<")===-1)return w&&At?w.createHTML(x):x;if(v=Li(x),!v)return tt?null:At?E:""}v&&mn&&Ne(v.firstChild);const q=Oi(ut?x:v);for(;F=q.nextNode();)Mi(F),Vi(F),F.content instanceof i&&Uf(F.content);if(ut)return x;if(tt){if(It)for(re=ke.call(v.ownerDocument);v.firstChild;)re.appendChild(v.firstChild);else re=v;return(W.shadowroot||W.shadowrootmode)&&(re=Ce.call(o,re,!0)),re}let pe=ze?v.outerHTML:v.innerHTML;return ze&&R["!doctype"]&&v.ownerDocument&&v.ownerDocument.doctype&&v.ownerDocument.doctype.name&&ce(hi,v.ownerDocument.doctype.name)&&(pe="<!DOCTYPE "+v.ownerDocument.doctype.name+`>
|
|
427
|
-
`+pe),et&&Rn([V,oe,ue],We=>{pe=rn(pe,We," ")}),w&&At?w.createHTML(pe):pe},e.setConfig=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Jo(x),un=!0},e.clearConfig=function(){Lt=null,un=!1},e.isValidAttribute=function(x,f,v){Lt||Jo({});const _=X(x),F=X(f);return Di(_,F,v)},e.addHook=function(x,f){typeof f=="function"&&on(I[x],f)},e.removeHook=function(x,f){if(f!==void 0){const v=tf(I[x],f);return v===-1?void 0:nf(I[x],v,1)[0]}return ci(I[x])},e.removeHooks=function(x){I[x]=[]},e.removeAllHooks=function(){I=bi()},e}var Uo=wi();const yf=t=>!(!t||!(t instanceof HTMLElement));class vi{get IsVisible(){return dt.isVisible()}async CreateConfirmAsync(e){return this.ConfirmWithOptionsAsync(e)}async ConfirmWithOptionsAsync(e){return e.confirmLabel??="sim",e.rejectLabel??="não",e.confirmColor??="primary",e.rejectColor??="primary",yf(e.target)?this.CreatePopoverAsync(e).then(n=>n===!0):new Promise(n=>{dt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Uo.sanitize(e.text),confirmButtonText:e.confirmLabel,cancelButtonText:e.rejectLabel,confirmButtonColor:`var(--${e.confirmColor}-color)`,cancelButtonColor:`var(--${e.rejectColor}-color)`}).then(o=>{n(o.isConfirmed===!0)})})}async ConfirmAsync(e,n){return this.ConfirmWithOptionsAsync({text:e,target:n})}async CreatePopoverAsync(e){let n;const o=new Promise(i=>{n=i}),a=new CustomEvent("sfconfirm:popup",{detail:{target:e.target??document.body,options:e,resolve:n},bubbles:!0,cancelable:!0,composed:!0});return document.dispatchEvent(a),o}}const yi=()=>new vi,kf=()=>new vi;function Cf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hn={exports:{}},Sf=Hn.exports,ki;function _f(){return ki||(ki=1,(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(Sf,function(){var e=function(){},n="undefined",o=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"],i={},c=null;function l(k,C){var b=k[C];if(typeof b.bind=="function")return b.bind(k);try{return Function.prototype.bind.call(b,k)}catch{return function(){return Function.prototype.apply.apply(b,[k,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function d(k){return k==="debug"&&(k="log"),typeof console===n?!1:k==="trace"&&o?s:console[k]!==void 0?l(console,k):console.log!==void 0?l(console,"log"):e}function m(){for(var k=this.getLevel(),C=0;C<a.length;C++){var b=a[C];this[b]=C<k?e:this.methodFactory(b,k,this.name)}if(this.log=this.debug,typeof console===n&&k<this.levels.SILENT)return"No console available for logging"}function u(k){return function(){typeof console!==n&&(m.call(this),this[k].apply(this,arguments))}}function p(k,C,b){return d(k)||u.apply(this,arguments)}function h(k,C){var b=this,S,B,w,E="loglevel";typeof k=="string"?E+=":"+k:typeof k=="symbol"&&(E=void 0);function U(I){var V=(a[I]||"silent").toUpperCase();if(!(typeof window===n||!E)){try{window.localStorage[E]=V;return}catch{}try{window.document.cookie=encodeURIComponent(E)+"="+V+";"}catch{}}}function J(){var I;if(!(typeof window===n||!E)){try{I=window.localStorage[E]}catch{}if(typeof I===n)try{var V=window.document.cookie,oe=encodeURIComponent(E),ue=V.indexOf(oe+"=");ue!==-1&&(I=/^([^;]+)/.exec(V.slice(ue+oe.length+1))[1])}catch{}return b.levels[I]===void 0&&(I=void 0),I}}function ke(){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 ne(I){var V=I;if(typeof V=="string"&&b.levels[V.toUpperCase()]!==void 0&&(V=b.levels[V.toUpperCase()]),typeof V=="number"&&V>=0&&V<=b.levels.SILENT)return V;throw new TypeError("log.setLevel() called with invalid level: "+I)}b.name=k,b.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},b.methodFactory=C||p,b.getLevel=function(){return w??B??S},b.setLevel=function(I,V){return w=ne(I),V!==!1&&U(w),m.call(b)},b.setDefaultLevel=function(I){B=ne(I),J()||b.setLevel(I,!1)},b.resetLevel=function(){w=null,ke(),m.call(b)},b.enableAll=function(I){b.setLevel(b.levels.TRACE,I)},b.disableAll=function(I){b.setLevel(b.levels.SILENT,I)},b.rebuild=function(){if(c!==b&&(S=ne(c.getLevel())),m.call(b),c===b)for(var I in i)i[I].rebuild()},S=ne(c?c.getLevel():"WARN");var Ce=J();Ce!=null&&(w=ne(Ce)),m.call(b)}c=new h,c.getLogger=function(C){if(typeof C!="symbol"&&typeof C!="string"||C==="")throw new TypeError("You must supply a name when creating a logger.");var b=i[C];return b||(b=i[C]=new h(C,c.methodFactory)),b};var y=typeof window!==n?window.log:void 0;return c.noConflict=function(){return typeof window!==n&&window.log===c&&(window.log=y),c},c.getLoggers=function(){return i},c.default=c,c})})(Hn)),Hn.exports}var Ef=_f();const zn=Cf(Ef),xf=(t,e={})=>{zn.setDefaultLevel(e.enableLogging?zn.levels.DEBUG:zn.levels.SILENT);const n=240;document.documentElement.style.setProperty("--nav-menu-width",`${n}px`);const o=r.ref(!0),a=r.ref(0),i=r.ref(!1),c=r.ref(!1),l=r.ref(""),s=r.ref(null),d=r.ref(0);t.provide(Jr,{navMenuWidth:n,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:a,pageTitle:l,isDarkMode:i,ToggleTheme:()=>Xt.Toggle(),EnableDarkMode:()=>Xt.EnableDarkMode(),EnableLightMode:()=>Xt.EnableLightMode(),ClearStoredTheme:()=>Xt.ClearStoredTheme(),LogoutAsync:async u=>{const p=yi(),{oidc:h}=ft.UseAuth();await p.ConfirmWithOptionsAsync({text:"Deseja sair da sua conta?",target:u.currentTarget,confirmColor:"error"})&&(Fn("Saindo..."),c.value=!0,await new Promise(k=>setTimeout(k,1e3)),h.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,Go()}))},LogoutWithoutConfirmation:async()=>{const{oidc:u}=ft.UseAuth();Fn("Saindo..."),c.value=!0,await new Promise(p=>setTimeout(p,1e3)),u.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,Go()})},Login:()=>{const{oidc:u}=ft.UseAuth();u.login()},isLoggingOut:c,mainRef:s,mainWidth:d,isMainXs:r.computed(()=>d.value<=384),isMainSm:r.computed(()=>d.value>384),isMainMd:r.computed(()=>d.value>768),isMainLg:r.computed(()=>d.value>992),isMainXl:r.computed(()=>d.value>1280),isMain2Xl:r.computed(()=>d.value>1536),isMain3Xl:r.computed(()=>d.value>1920)}),new MutationObserver(()=>{i.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{a.value=document.documentElement.scrollTop}),Xt.SetInitialTheme()},Tf=zn;class Wo extends Error{constructor(e=[]){const n=Array.isArray(e)?e:[e];super(n[0]),this.errors=n}errors=[]}class Ci{constructor(e=null){this._value=e,this._httpStatusCode=200}errors=[];_value=null;_httpStatusCode;get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return this.isSuccessfulHttpStatusCode&&this.errors.length===0}get hasError(){return!this.hasSuccess}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){if(Array.isArray(e)){e.forEach(n=>this.WithError(n));return}this.errors.push(e),this.isSuccessfulHttpStatusCode||(this._httpStatusCode=400)}get isSuccessfulHttpStatusCode(){return this._httpStatusCode>=200&&this._httpStatusCode<300}[Symbol.toPrimitive](e){if(e==="throw")throw new Wo(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Si{get IsVisible(){return dt.isVisible()}async CreateAlertAsync(e){let n="info",o,a;return typeof e=="string"||Array.isArray(e)?o=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",a=e.title??"",o=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{dt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:a,html:`<div style="max-height: 50vh; overflow: auto">${Uo.sanitize(o)}</div>`}).then(()=>i(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}const _i=()=>new Si,If=()=>new Si;window.addEventListener("error",function(t){return Ko(t.error)||console.error(t.error||t.message),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return Ko(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const Af=t=>{t.config.errorHandler=(e,n,o)=>{Ko(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:o})}},Ko=t=>{if(!t)return!0;try{if(t.httpStatusCode===401)return!0}catch{}return t instanceof Wo||t instanceof Ci?(_i().AlertErrorAsync(t.errors),!0):!1},xt=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);`},Ei={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)"}}},Pf={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"color-mix(in srgb, currentColor 5%, transparent)",100:"color-mix(in srgb, currentColor 10%, transparent)",200:"color-mix(in srgb, currentColor 20%, transparent)",300:"color-mix(in srgb, currentColor 30%, transparent)",400:"color-mix(in srgb, currentColor 40%, transparent)",500:"color-mix(in srgb, currentColor 50%, transparent)",600:"color-mix(in srgb, currentColor 60%, transparent)",700:"color-mix(in srgb, currentColor 70%, transparent)",800:"color-mix(in srgb, currentColor 80%, transparent)",900:"color-mix(in srgb, currentColor 90%, transparent)",950:"color-mix(in srgb, currentColor 95%, transparent)"},colorScheme:{light:{...Ei},dark:{...Ei}}},components:{accordion:{header:{background:"transparent",activeBackground:"transparent",hoverBackground:"transparent",activeHoverBackground:"transparent"},content:{background:"transparent"}},blockui:{root:{borderRadius:"0px"}},button:{colorScheme:{light:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, black 20%)",activeBorderColor:"var(--primary-color)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, black 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, black 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, black 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, black 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, black 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, black 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, black 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"}}},dark:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, white 20%)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, white 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, white 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, white 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, white 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, white 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, white 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, white 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"}}}}},card:{root:{borderRadius:"var(--border-radius)"},title:{fontWeight:"700",fontSize:"var(--text-md)"},body:{padding:"var(--content-gutter)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:xt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:xt("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:xt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:xt("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:xt("light")}},dark:{root:{background:"var(--surface-200-color)",shadow:xt("dark")}}}},popover:{root:{background:"var(--bg-color)",color:"var(--text-color)",borderColor:"var(--border-color)",borderRadius:"var(--border-radius)",shadow:"none",gutter:"8px",arrowOffset:"0.75rem"},content:{padding:"0"}},select:{root:{background:"var(--bg-color)",color:"var(--text-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)",disabledColor:"var(--disabled-color)"},option:{focusBackground:"var(--surface-200-color)",focusColor:"var(--primary-color)",selectedFocusColor:"var(--bg-color)",selectedFocusBackground:"var(--primary-color)"},overlay:{borderColor:"var(--border-color)"},dropdown:{color:"var(--primary-color)"},colorScheme:{light:{overlay:{background:"var(--bg-color)"}},dark:{overlay:{background:"var(--surface-100-color)"}}}},skeleton:{root:{background:"var(--surface-700-color)",animationBackground:"var(--surface-100-color)"}},textarea:{root:{background:"var(--surface-100-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)"}},toast:{root:{width:"min(90vw, 320px)"},colorScheme:{light:{contrast:{background:"var(--text-color)",color:"var(--bg-color)",detailColor:"var(--bg-color)"}},dark:{contrast:{background:"var(--bg-color)",color:"var(--text-color)",detailColor:"var(--text-color)"}}},info:{background:"var(--info-color)",color:"var(--info-hover-color)",detailColor:"var(--text-color)"},success:{background:"var(--success-color)",color:"var(--success-hover-color)",detailColor:"var(--text-color)"},warn:{background:"var(--warn-color)",color:"var(--warn-hover-color)",detailColor:"var(--text-color)"},error:{background:"var(--error-color)",color:"var(--error-hover-color)",detailColor:"var(--text-color)"},secondary:{background:"var(--secondary-color)",color:"var(--secondary-hover-color)",detailColor:"var(--text-color)"}},toggleswitch:{colorScheme:{light:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}},dark:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}}}}}};class $f{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?$e.MaskCpf(this.username):this.username.length===14?$e.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 Bf(){const t=r.ref("development");function e(s){t.value=s.toLocaleLowerCase()}const n=r.computed(()=>t.value==="development"),o=r.computed(()=>t.value==="pack"),a=r.computed(()=>t.value==="hml"),i=r.computed(()=>t.value==="production"),c=r.ref(null);function l(){c.value=null}return{environment:t,SetEnvironment:e,isDev:n,isPack:o,isHml:a,isProd:i,user:c,$reset:l}}const Lf=t=>{const e=new Set;function n(o){const{name:a,children:i}=o;if(a){if(e.has(a))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${a}`].join(`
|
|
428
|
-
`));e.add(a)}if(i&&Array.isArray(i))for(const c of i)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
|
|
425
|
+
https://sweetalert2.github.io/#ajax-request`),qm(t),typeof t.title=="string"&&(t.title=t.title.split(`
|
|
426
|
+
`).join("<br />")),zd(t)}let Le;var Dn=new WeakMap;class G{constructor(...e){if(kd(this,Dn,void 0),typeof window>"u")return;Le=this;const n=Object.freeze(this.constructor.argsToParams(e));this.params=n,this.isAwaitingPromise=!1,Cd(Dn,this,this._main(Le.params))}_main(e,n={}){if(Ya(Object.assign({},n,e)),T.currentInstance){const i=Ct.swalPromiseResolve.get(T.currentInstance),{isAwaitingPromise:c}=T.currentInstance;T.currentInstance._destroy(),c||i({isDismissed:!0}),Co()&&Ia()}T.currentInstance=Le;const o=Zm(e,n);Ym(o),Object.freeze(o),T.timeout&&(T.timeout.stop(),delete T.timeout),clearTimeout(T.restoreFocusTimeout);const a=Jm(Le);return _a(Le,o),j.innerParams.set(Le,o),Xm(Le,a,o)}then(e){return na(Dn,this).then(e)}finally(e){return na(Dn,this).finally(e)}}const Xm=(t,e,n)=>new Promise((o,a)=>{const i=c=>{t.close({isDismissed:!0,dismiss:c})};Ct.swalPromiseResolve.set(t,o),Ct.swalPromiseReject.set(t,a),e.confirmButton.onclick=()=>{tm(t)},e.denyButton.onclick=()=>{nm(t)},e.cancelButton.onclick=()=>{om(t,i)},e.closeButton.onclick=()=>{i(kt.close)},hm(n,e,i),Su(T,n,i),Ku(t,n),Fm(n),Qm(T,n,i),ef(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Zm=(t,e)=>{const n=Om(t),o=Object.assign({},Et,e,n,t);return o.showClass=Object.assign({},Et.showClass,o.showClass),o.hideClass=Object.assign({},Et.hideClass,o.hideClass),o.animation===!1&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},Jm=t=>{const e={popup:M(),container:se(),actions:Qt(),confirmButton:Be(),denyButton:it(),cancelButton:vt(),loader:yt(),closeButton:yo(),validationMessage:En(),progressSteps:vo()};return j.domCache.set(t,e),e},Qm=(t,e,n)=>{const o=xn();te(o),e.timer&&(t.timeout=new Lm(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(Y(o),be(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&Eo(e.timer)})))},ef=(t,e)=>{if(!e.toast){if(!_n(e.allowEnterKey)){ia("allowEnterKey"),of();return}tf(t)||nf(t,e)||$o(-1,1)}},tf=t=>{const e=Array.from(t.popup.querySelectorAll("[autofocus]"));for(const n of e)if(n instanceof HTMLElement&&fe(n))return n.focus(),!0;return!1},nf=(t,e)=>e.focusDeny&&fe(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&fe(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&fe(t.confirmButton)?(t.confirmButton.focus(),!0):!1,of=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};G.prototype.disableButtons=Ha,G.prototype.enableButtons=ja,G.prototype.getInput=Da,G.prototype.disableInput=Fa,G.prototype.enableInput=za,G.prototype.hideLoading=On,G.prototype.disableLoading=On,G.prototype.showValidationMessage=Ua,G.prototype.resetValidationMessage=Wa,G.prototype.close=Xe,G.prototype.closePopup=Xe,G.prototype.closeModal=Xe,G.prototype.closeToast=Xe,G.prototype.rejectPromise=$a,G.prototype.update=Xa,G.prototype._destroy=Za,Object.assign(G,Bm),Object.keys(pm).forEach(t=>{G[t]=function(...e){return Le&&Le[t]?Le[t](...e):null}}),G.DismissReason=kt,G.version="11.23.0";const dt=G;dt.default=dt,typeof document<"u"&&(function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch{n.innerText=e}})(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px $swal2-outline-color;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');/*! @license DOMPurify 3.2.7 | (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.7/LICENSE */const{entries:ii,setPrototypeOf:si,isFrozen:rf,getPrototypeOf:af,getOwnPropertyDescriptor:sf}=Object;let{freeze:le,seal:ye,create:li}=Object,{apply:Mo,construct:Do}=typeof Reflect<"u"&&Reflect;le||(le=function(e){return e}),ye||(ye=function(e){return e}),Mo||(Mo=function(e,n){for(var o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];return e.apply(n,a)}),Do||(Do=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return new e(...o)});const Rn=de(Array.prototype.forEach),lf=de(Array.prototype.lastIndexOf),ci=de(Array.prototype.pop),on=de(Array.prototype.push),cf=de(Array.prototype.splice),Vn=de(String.prototype.toLowerCase),Ro=de(String.prototype.toString),Vo=de(String.prototype.match),rn=de(String.prototype.replace),df=de(String.prototype.indexOf),uf=de(String.prototype.trim),Te=de(Object.prototype.hasOwnProperty),ce=de(RegExp.prototype.test),an=mf(TypeError);function de(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return Mo(t,e,o)}}function mf(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Do(t,n)}}function L(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vn;si&&si(t,null);let o=e.length;for(;o--;){let a=e[o];if(typeof a=="string"){const i=n(a);i!==a&&(rf(e)||(e[o]=i),a=i)}t[a]=!0}return t}function ff(t){for(let e=0;e<t.length;e++)Te(t,e)||(t[e]=null);return t}function Re(t){const e=li(null);for(const[n,o]of ii(t))Te(t,n)&&(Array.isArray(o)?e[n]=ff(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=Re(o):e[n]=o);return e}function sn(t,e){for(;t!==null;){const o=sf(t,e);if(o){if(o.get)return de(o.get);if(typeof o.value=="function")return de(o.value)}t=af(t)}function n(){return null}return n}const di=le(["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","search","section","select","shadow","slot","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"]),jo=le(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ho=le(["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"]),pf=le(["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"]),zo=le(["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"]),hf=le(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ui=le(["#text"]),mi=le(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Fo=le(["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"]),fi=le(["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"]),jn=le(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),gf=ye(/\{\{[\w\W]*|[\w\W]*\}\}/gm),bf=ye(/<%[\w\W]*|[\w\W]*%>/gm),wf=ye(/\$\{[\w\W]*/gm),vf=ye(/^data-[\-\w.\u00B7-\uFFFF]+$/),yf=ye(/^aria-[\-\w]+$/),pi=ye(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kf=ye(/^(?:\w+script|data):/i),Cf=ye(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),hi=ye(/^html$/i),Sf=ye(/^[a-z][.\w]*(-[.\w]+)+$/i);var gi=Object.freeze({__proto__:null,ARIA_ATTR:yf,ATTR_WHITESPACE:Cf,CUSTOM_ELEMENT:Sf,DATA_ATTR:vf,DOCTYPE_NAME:hi,ERB_EXPR:bf,IS_ALLOWED_URI:pi,IS_SCRIPT_OR_DATA:kf,MUSTACHE_EXPR:gf,TMPLIT_EXPR:wf});const ln={element:1,text:3,progressingInstruction:7,comment:8,document:9},_f=function(){return typeof window>"u"?null:window},Ef=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const a="data-tt-policy-suffix";n&&n.hasAttribute(a)&&(o=n.getAttribute(a));const i="dompurify"+(o?"#"+o:"");try{return e.createPolicy(i,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},bi=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function wi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_f();const e=x=>wi(x);if(e.version="3.2.7",e.removed=[],!t||!t.document||t.document.nodeType!==ln.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,a=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:c,Node:l,Element:s,NodeFilter:d,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:u,DOMParser:p,trustedTypes:h}=t,w=s.prototype,v=sn(w,"cloneNode"),C=sn(w,"remove"),b=sn(w,"nextSibling"),S=sn(w,"childNodes"),B=sn(w,"parentNode");if(typeof c=="function"){const x=n.createElement("template");x.content&&x.content.ownerDocument&&(n=x.content.ownerDocument)}let y,E="";const{implementation:U,createNodeIterator:J,createDocumentFragment:ke,getElementsByTagName:ne}=n,{importNode:Ce}=o;let I=bi();e.isSupported=typeof ii=="function"&&typeof B=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:V,ERB_EXPR:oe,TMPLIT_EXPR:ue,DATA_ATTR:Ie,ARIA_ATTR:Ze,IS_SCRIPT_OR_DATA:Ve,ATTR_WHITESPACE:je,CUSTOM_ELEMENT:Je}=gi;let{IS_ALLOWED_URI:Se}=gi,R=null;const Oe=L({},[...di,...jo,...Ho,...zo,...ui]);let W=null;const He=L({},[...mi,...Fo,...fi,...jn]);let z=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}})),Qe=null,cn=null,Un=!0,dn=!0,Wn=!1,Kn=!0,et=!1,Tt=!0,ze=!1,un=!1,mn=!1,tt=!1,It=!1,At=!1,Gn=!0,qn=!1;const qo="user-content-";let fn=!0,ut=!1,Pt={},$t=null;const xi=L({},["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 Ti=null;const Ii=L({},["audio","video","img","source","image","track"]);let Yo=null;const Ai=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yn="http://www.w3.org/1998/Math/MathML",Xn="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let Bt=Fe,Xo=!1,Zo=null;const Uf=L({},[Yn,Xn,Fe],Ro);let Zn=L({},["mi","mo","mn","ms","mtext"]),Jn=L({},["annotation-xml"]);const Wf=L({},["title","style","font","a","script"]);let pn=null;const Kf=["application/xhtml+xml","text/html"],Gf="text/html";let X=null,Lt=null;const qf=n.createElement("form"),Pi=function(f){return f instanceof RegExp||f instanceof Function},Jo=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Lt&&Lt===f)){if((!f||typeof f!="object")&&(f={}),f=Re(f),pn=Kf.indexOf(f.PARSER_MEDIA_TYPE)===-1?Gf:f.PARSER_MEDIA_TYPE,X=pn==="application/xhtml+xml"?Ro:Vn,R=Te(f,"ALLOWED_TAGS")?L({},f.ALLOWED_TAGS,X):Oe,W=Te(f,"ALLOWED_ATTR")?L({},f.ALLOWED_ATTR,X):He,Zo=Te(f,"ALLOWED_NAMESPACES")?L({},f.ALLOWED_NAMESPACES,Ro):Uf,Yo=Te(f,"ADD_URI_SAFE_ATTR")?L(Re(Ai),f.ADD_URI_SAFE_ATTR,X):Ai,Ti=Te(f,"ADD_DATA_URI_TAGS")?L(Re(Ii),f.ADD_DATA_URI_TAGS,X):Ii,$t=Te(f,"FORBID_CONTENTS")?L({},f.FORBID_CONTENTS,X):xi,Qe=Te(f,"FORBID_TAGS")?L({},f.FORBID_TAGS,X):Re({}),cn=Te(f,"FORBID_ATTR")?L({},f.FORBID_ATTR,X):Re({}),Pt=Te(f,"USE_PROFILES")?f.USE_PROFILES:!1,Un=f.ALLOW_ARIA_ATTR!==!1,dn=f.ALLOW_DATA_ATTR!==!1,Wn=f.ALLOW_UNKNOWN_PROTOCOLS||!1,Kn=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,et=f.SAFE_FOR_TEMPLATES||!1,Tt=f.SAFE_FOR_XML!==!1,ze=f.WHOLE_DOCUMENT||!1,tt=f.RETURN_DOM||!1,It=f.RETURN_DOM_FRAGMENT||!1,At=f.RETURN_TRUSTED_TYPE||!1,mn=f.FORCE_BODY||!1,Gn=f.SANITIZE_DOM!==!1,qn=f.SANITIZE_NAMED_PROPS||!1,fn=f.KEEP_CONTENT!==!1,ut=f.IN_PLACE||!1,Se=f.ALLOWED_URI_REGEXP||pi,Bt=f.NAMESPACE||Fe,Zn=f.MATHML_TEXT_INTEGRATION_POINTS||Zn,Jn=f.HTML_INTEGRATION_POINTS||Jn,z=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&Pi(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&Pi(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(z.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),et&&(dn=!1),It&&(tt=!0),Pt&&(R=L({},ui),W=[],Pt.html===!0&&(L(R,di),L(W,mi)),Pt.svg===!0&&(L(R,jo),L(W,Fo),L(W,jn)),Pt.svgFilters===!0&&(L(R,Ho),L(W,Fo),L(W,jn)),Pt.mathMl===!0&&(L(R,zo),L(W,fi),L(W,jn))),f.ADD_TAGS&&(R===Oe&&(R=Re(R)),L(R,f.ADD_TAGS,X)),f.ADD_ATTR&&(W===He&&(W=Re(W)),L(W,f.ADD_ATTR,X)),f.ADD_URI_SAFE_ATTR&&L(Yo,f.ADD_URI_SAFE_ATTR,X),f.FORBID_CONTENTS&&($t===xi&&($t=Re($t)),L($t,f.FORBID_CONTENTS,X)),fn&&(R["#text"]=!0),ze&&L(R,["html","head","body"]),R.table&&(L(R,["tbody"]),delete Qe.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw an('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw an('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=f.TRUSTED_TYPES_POLICY,E=y.createHTML("")}else y===void 0&&(y=Ef(h,a)),y!==null&&typeof E=="string"&&(E=y.createHTML(""));le&&le(f),Lt=f}},$i=L({},[...jo,...Ho,...pf]),Bi=L({},[...zo,...hf]),Yf=function(f){let k=B(f);(!k||!k.tagName)&&(k={namespaceURI:Bt,tagName:"template"});const _=Vn(f.tagName),F=Vn(k.tagName);return Zo[f.namespaceURI]?f.namespaceURI===Xn?k.namespaceURI===Fe?_==="svg":k.namespaceURI===Yn?_==="svg"&&(F==="annotation-xml"||Zn[F]):!!$i[_]:f.namespaceURI===Yn?k.namespaceURI===Fe?_==="math":k.namespaceURI===Xn?_==="math"&&Jn[F]:!!Bi[_]:f.namespaceURI===Fe?k.namespaceURI===Xn&&!Jn[F]||k.namespaceURI===Yn&&!Zn[F]?!1:!Bi[_]&&(Wf[_]||!$i[_]):!!(pn==="application/xhtml+xml"&&Zo[f.namespaceURI]):!1},Ne=function(f){on(e.removed,{element:f});try{B(f).removeChild(f)}catch{C(f)}},mt=function(f,k){try{on(e.removed,{attribute:k.getAttributeNode(f),from:k})}catch{on(e.removed,{attribute:null,from:k})}if(k.removeAttribute(f),f==="is")if(tt||It)try{Ne(k)}catch{}else try{k.setAttribute(f,"")}catch{}},Li=function(f){let k=null,_=null;if(mn)f="<remove></remove>"+f;else{const q=Vo(f,/^[\r\n\t ]+/);_=q&&q[0]}pn==="application/xhtml+xml"&&Bt===Fe&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const F=y?y.createHTML(f):f;if(Bt===Fe)try{k=new p().parseFromString(F,pn)}catch{}if(!k||!k.documentElement){k=U.createDocument(Bt,"template",null);try{k.documentElement.innerHTML=Xo?E:F}catch{}}const re=k.body||k.documentElement;return f&&_&&re.insertBefore(n.createTextNode(_),re.childNodes[0]||null),Bt===Fe?ne.call(k,ze?"html":"body")[0]:ze?k.documentElement:re},Oi=function(f){return J.call(f.ownerDocument||f,f,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Qo=function(f){return f instanceof u&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof m)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},Ni=function(f){return typeof l=="function"&&f instanceof l};function Ue(x,f,k){Rn(x,_=>{_.call(e,f,k,Lt)})}const Mi=function(f){let k=null;if(Ue(I.beforeSanitizeElements,f,null),Qo(f))return Ne(f),!0;const _=X(f.nodeName);if(Ue(I.uponSanitizeElement,f,{tagName:_,allowedTags:R}),Tt&&f.hasChildNodes()&&!Ni(f.firstElementChild)&&ce(/<[/\w!]/g,f.innerHTML)&&ce(/<[/\w!]/g,f.textContent)||f.nodeType===ln.progressingInstruction||Tt&&f.nodeType===ln.comment&&ce(/<[/\w]/g,f.data))return Ne(f),!0;if(!R[_]||Qe[_]){if(!Qe[_]&&Ri(_)&&(z.tagNameCheck instanceof RegExp&&ce(z.tagNameCheck,_)||z.tagNameCheck instanceof Function&&z.tagNameCheck(_)))return!1;if(fn&&!$t[_]){const F=B(f)||f.parentNode,re=S(f)||f.childNodes;if(re&&F){const q=re.length;for(let pe=q-1;pe>=0;--pe){const We=v(re[pe],!0);We.__removalCount=(f.__removalCount||0)+1,F.insertBefore(We,b(f))}}}return Ne(f),!0}return f instanceof s&&!Yf(f)||(_==="noscript"||_==="noembed"||_==="noframes")&&ce(/<\/no(script|embed|frames)/i,f.innerHTML)?(Ne(f),!0):(et&&f.nodeType===ln.text&&(k=f.textContent,Rn([V,oe,ue],F=>{k=rn(k,F," ")}),f.textContent!==k&&(on(e.removed,{element:f.cloneNode()}),f.textContent=k)),Ue(I.afterSanitizeElements,f,null),!1)},Di=function(f,k,_){if(Gn&&(k==="id"||k==="name")&&(_ in n||_ in qf))return!1;if(!(dn&&!cn[k]&&ce(Ie,k))){if(!(Un&&ce(Ze,k))){if(!W[k]||cn[k]){if(!(Ri(f)&&(z.tagNameCheck instanceof RegExp&&ce(z.tagNameCheck,f)||z.tagNameCheck instanceof Function&&z.tagNameCheck(f))&&(z.attributeNameCheck instanceof RegExp&&ce(z.attributeNameCheck,k)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(k,f))||k==="is"&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&ce(z.tagNameCheck,_)||z.tagNameCheck instanceof Function&&z.tagNameCheck(_))))return!1}else if(!Yo[k]){if(!ce(Se,rn(_,je,""))){if(!((k==="src"||k==="xlink:href"||k==="href")&&f!=="script"&&df(_,"data:")===0&&Ti[f])){if(!(Wn&&!ce(Ve,rn(_,je,"")))){if(_)return!1}}}}}}return!0},Ri=function(f){return f!=="annotation-xml"&&Vo(f,Je)},Vi=function(f){Ue(I.beforeSanitizeAttributes,f,null);const{attributes:k}=f;if(!k||Qo(f))return;const _={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let F=k.length;for(;F--;){const re=k[F],{name:q,namespaceURI:pe,value:We}=re,Ot=X(q),er=We;let Q=q==="value"?er:uf(er);if(_.attrName=Ot,_.attrValue=Q,_.keepAttr=!0,_.forceKeepAttr=void 0,Ue(I.uponSanitizeAttribute,f,_),Q=_.attrValue,qn&&(Ot==="id"||Ot==="name")&&(mt(q,f),Q=qo+Q),Tt&&ce(/((--!?|])>)|<\/(style|title|textarea)/i,Q)){mt(q,f);continue}if(Ot==="attributename"&&Vo(Q,"href")){mt(q,f);continue}if(_.forceKeepAttr)continue;if(!_.keepAttr){mt(q,f);continue}if(!Kn&&ce(/\/>/i,Q)){mt(q,f);continue}et&&Rn([V,oe,ue],Hi=>{Q=rn(Q,Hi," ")});const ji=X(f.nodeName);if(!Di(ji,Ot,Q)){mt(q,f);continue}if(y&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!pe)switch(h.getAttributeType(ji,Ot)){case"TrustedHTML":{Q=y.createHTML(Q);break}case"TrustedScriptURL":{Q=y.createScriptURL(Q);break}}if(Q!==er)try{pe?f.setAttributeNS(pe,q,Q):f.setAttribute(q,Q),Qo(f)?Ne(f):ci(e.removed)}catch{mt(q,f)}}Ue(I.afterSanitizeAttributes,f,null)},Xf=function x(f){let k=null;const _=Oi(f);for(Ue(I.beforeSanitizeShadowDOM,f,null);k=_.nextNode();)Ue(I.uponSanitizeShadowNode,k,null),Mi(k),Vi(k),k.content instanceof i&&x(k.content);Ue(I.afterSanitizeShadowDOM,f,null)};return e.sanitize=function(x){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=null,_=null,F=null,re=null;if(Xo=!x,Xo&&(x="<!-->"),typeof x!="string"&&!Ni(x))if(typeof x.toString=="function"){if(x=x.toString(),typeof x!="string")throw an("dirty is not a string, aborting")}else throw an("toString is not a function");if(!e.isSupported)return x;if(un||Jo(f),e.removed=[],typeof x=="string"&&(ut=!1),ut){if(x.nodeName){const We=X(x.nodeName);if(!R[We]||Qe[We])throw an("root node is forbidden and cannot be sanitized in-place")}}else if(x instanceof l)k=Li("<!---->"),_=k.ownerDocument.importNode(x,!0),_.nodeType===ln.element&&_.nodeName==="BODY"||_.nodeName==="HTML"?k=_:k.appendChild(_);else{if(!tt&&!et&&!ze&&x.indexOf("<")===-1)return y&&At?y.createHTML(x):x;if(k=Li(x),!k)return tt?null:At?E:""}k&&mn&&Ne(k.firstChild);const q=Oi(ut?x:k);for(;F=q.nextNode();)Mi(F),Vi(F),F.content instanceof i&&Xf(F.content);if(ut)return x;if(tt){if(It)for(re=ke.call(k.ownerDocument);k.firstChild;)re.appendChild(k.firstChild);else re=k;return(W.shadowroot||W.shadowrootmode)&&(re=Ce.call(o,re,!0)),re}let pe=ze?k.outerHTML:k.innerHTML;return ze&&R["!doctype"]&&k.ownerDocument&&k.ownerDocument.doctype&&k.ownerDocument.doctype.name&&ce(hi,k.ownerDocument.doctype.name)&&(pe="<!DOCTYPE "+k.ownerDocument.doctype.name+`>
|
|
427
|
+
`+pe),et&&Rn([V,oe,ue],We=>{pe=rn(pe,We," ")}),y&&At?y.createHTML(pe):pe},e.setConfig=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Jo(x),un=!0},e.clearConfig=function(){Lt=null,un=!1},e.isValidAttribute=function(x,f,k){Lt||Jo({});const _=X(x),F=X(f);return Di(_,F,k)},e.addHook=function(x,f){typeof f=="function"&&on(I[x],f)},e.removeHook=function(x,f){if(f!==void 0){const k=lf(I[x],f);return k===-1?void 0:cf(I[x],k,1)[0]}return ci(I[x])},e.removeHooks=function(x){I[x]=[]},e.removeAllHooks=function(){I=bi()},e}var Uo=wi();const xf=t=>!(!t||!(t instanceof HTMLElement));class vi{get IsVisible(){return dt.isVisible()}async CreateConfirmAsync(e){return this.ConfirmWithOptionsAsync(e)}async ConfirmWithOptionsAsync(e){return e.confirmLabel??="sim",e.rejectLabel??="não",e.confirmColor??="primary",e.rejectColor??="primary",xf(e.target)?this.CreatePopoverAsync(e).then(n=>n===!0):new Promise(n=>{dt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Uo.sanitize(e.text),confirmButtonText:e.confirmLabel,cancelButtonText:e.rejectLabel,confirmButtonColor:`var(--${e.confirmColor}-color)`,cancelButtonColor:`var(--${e.rejectColor}-color)`}).then(o=>{n(o.isConfirmed===!0)})})}async ConfirmAsync(e,n){return this.ConfirmWithOptionsAsync({text:e,target:n})}async CreatePopoverAsync(e){let n;const o=new Promise(i=>{n=i}),a=new CustomEvent("sfconfirm:popup",{detail:{target:e.target??document.body,options:e,resolve:n},bubbles:!0,cancelable:!0,composed:!0});return document.dispatchEvent(a),o}}const yi=()=>new vi,Tf=()=>new vi;function If(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hn={exports:{}},Af=Hn.exports,ki;function Pf(){return ki||(ki=1,(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(Af,function(){var e=function(){},n="undefined",o=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"],i={},c=null;function l(v,C){var b=v[C];if(typeof b.bind=="function")return b.bind(v);try{return Function.prototype.bind.call(b,v)}catch{return function(){return Function.prototype.apply.apply(b,[v,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function d(v){return v==="debug"&&(v="log"),typeof console===n?!1:v==="trace"&&o?s:console[v]!==void 0?l(console,v):console.log!==void 0?l(console,"log"):e}function m(){for(var v=this.getLevel(),C=0;C<a.length;C++){var b=a[C];this[b]=C<v?e:this.methodFactory(b,v,this.name)}if(this.log=this.debug,typeof console===n&&v<this.levels.SILENT)return"No console available for logging"}function u(v){return function(){typeof console!==n&&(m.call(this),this[v].apply(this,arguments))}}function p(v,C,b){return d(v)||u.apply(this,arguments)}function h(v,C){var b=this,S,B,y,E="loglevel";typeof v=="string"?E+=":"+v:typeof v=="symbol"&&(E=void 0);function U(I){var V=(a[I]||"silent").toUpperCase();if(!(typeof window===n||!E)){try{window.localStorage[E]=V;return}catch{}try{window.document.cookie=encodeURIComponent(E)+"="+V+";"}catch{}}}function J(){var I;if(!(typeof window===n||!E)){try{I=window.localStorage[E]}catch{}if(typeof I===n)try{var V=window.document.cookie,oe=encodeURIComponent(E),ue=V.indexOf(oe+"=");ue!==-1&&(I=/^([^;]+)/.exec(V.slice(ue+oe.length+1))[1])}catch{}return b.levels[I]===void 0&&(I=void 0),I}}function ke(){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 ne(I){var V=I;if(typeof V=="string"&&b.levels[V.toUpperCase()]!==void 0&&(V=b.levels[V.toUpperCase()]),typeof V=="number"&&V>=0&&V<=b.levels.SILENT)return V;throw new TypeError("log.setLevel() called with invalid level: "+I)}b.name=v,b.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},b.methodFactory=C||p,b.getLevel=function(){return y??B??S},b.setLevel=function(I,V){return y=ne(I),V!==!1&&U(y),m.call(b)},b.setDefaultLevel=function(I){B=ne(I),J()||b.setLevel(I,!1)},b.resetLevel=function(){y=null,ke(),m.call(b)},b.enableAll=function(I){b.setLevel(b.levels.TRACE,I)},b.disableAll=function(I){b.setLevel(b.levels.SILENT,I)},b.rebuild=function(){if(c!==b&&(S=ne(c.getLevel())),m.call(b),c===b)for(var I in i)i[I].rebuild()},S=ne(c?c.getLevel():"WARN");var Ce=J();Ce!=null&&(y=ne(Ce)),m.call(b)}c=new h,c.getLogger=function(C){if(typeof C!="symbol"&&typeof C!="string"||C==="")throw new TypeError("You must supply a name when creating a logger.");var b=i[C];return b||(b=i[C]=new h(C,c.methodFactory)),b};var w=typeof window!==n?window.log:void 0;return c.noConflict=function(){return typeof window!==n&&window.log===c&&(window.log=w),c},c.getLoggers=function(){return i},c.default=c,c})})(Hn)),Hn.exports}var $f=Pf();const zn=If($f),Bf=(t,e={})=>{zn.setDefaultLevel(e.enableLogging?zn.levels.DEBUG:zn.levels.SILENT);const n=240;document.documentElement.style.setProperty("--nav-menu-width",`${n}px`);const o=r.ref(!0),a=r.ref(0),i=r.ref(!1),c=r.ref(!1),l=r.ref(""),s=r.ref(null),d=r.ref(0);t.provide(Jr,{navMenuWidth:n,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:a,pageTitle:l,isDarkMode:i,ToggleTheme:()=>Xt.Toggle(),EnableDarkMode:()=>Xt.EnableDarkMode(),EnableLightMode:()=>Xt.EnableLightMode(),ClearStoredTheme:()=>Xt.ClearStoredTheme(),LogoutAsync:async u=>{const p=yi(),{oidc:h}=ft.UseAuth();await p.ConfirmWithOptionsAsync({text:"Deseja sair da sua conta?",target:u.currentTarget,confirmColor:"error"})&&(Fn("Saindo..."),c.value=!0,await new Promise(v=>setTimeout(v,1e3)),h.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,Go()}))},LogoutWithoutConfirmation:async()=>{const{oidc:u}=ft.UseAuth();Fn("Saindo..."),c.value=!0,await new Promise(p=>setTimeout(p,1e3)),u.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,Go()})},Login:()=>{const{oidc:u}=ft.UseAuth();u.login()},isLoggingOut:c,mainRef:s,mainWidth:d,isMainXs:r.computed(()=>d.value<=384),isMainSm:r.computed(()=>d.value>384),isMainMd:r.computed(()=>d.value>768),isMainLg:r.computed(()=>d.value>992),isMainXl:r.computed(()=>d.value>1280),isMain2Xl:r.computed(()=>d.value>1536),isMain3Xl:r.computed(()=>d.value>1920)}),new MutationObserver(()=>{i.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{a.value=document.documentElement.scrollTop}),Xt.SetInitialTheme()},Lf=zn;class Wo extends Error{constructor(e=[]){const n=Array.isArray(e)?e:[e];super(n[0]),this.errors=n}errors=[]}class Ci{constructor(e=null){this._value=e,this._httpStatusCode=200}errors=[];_value=null;_httpStatusCode;get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return this.isSuccessfulHttpStatusCode&&this.errors.length===0}get hasError(){return!this.hasSuccess}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){if(Array.isArray(e)){e.forEach(n=>this.WithError(n));return}this.errors.push(e),this.isSuccessfulHttpStatusCode||(this._httpStatusCode=400)}get isSuccessfulHttpStatusCode(){return this._httpStatusCode>=200&&this._httpStatusCode<300}[Symbol.toPrimitive](e){if(e==="throw")throw new Wo(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Si{get IsVisible(){return dt.isVisible()}async CreateAlertAsync(e){let n="info",o,a;return typeof e=="string"||Array.isArray(e)?o=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",a=e.title??"",o=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{dt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:a,html:`<div style="max-height: 50vh; overflow: auto">${Uo.sanitize(o)}</div>`}).then(()=>i(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}const _i=()=>new Si,Of=()=>new Si;window.addEventListener("error",function(t){return Ko(t.error)||console.error(t.error||t.message),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return Ko(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const Nf=t=>{t.config.errorHandler=(e,n,o)=>{Ko(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:o})}},Ko=t=>{if(!t)return!0;try{if(t.httpStatusCode===401)return!0}catch{}return t instanceof Wo||t instanceof Ci?(_i().AlertErrorAsync(t.errors),!0):!1},xt=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);`},Ei={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)"}}},Mf={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"color-mix(in srgb, currentColor 5%, transparent)",100:"color-mix(in srgb, currentColor 10%, transparent)",200:"color-mix(in srgb, currentColor 20%, transparent)",300:"color-mix(in srgb, currentColor 30%, transparent)",400:"color-mix(in srgb, currentColor 40%, transparent)",500:"color-mix(in srgb, currentColor 50%, transparent)",600:"color-mix(in srgb, currentColor 60%, transparent)",700:"color-mix(in srgb, currentColor 70%, transparent)",800:"color-mix(in srgb, currentColor 80%, transparent)",900:"color-mix(in srgb, currentColor 90%, transparent)",950:"color-mix(in srgb, currentColor 95%, transparent)"},colorScheme:{light:{...Ei},dark:{...Ei}}},components:{accordion:{header:{background:"transparent",activeBackground:"transparent",hoverBackground:"transparent",activeHoverBackground:"transparent"},content:{background:"transparent"}},blockui:{root:{borderRadius:"0px"}},button:{colorScheme:{light:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, black 20%)",activeBorderColor:"var(--primary-color)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, black 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, black 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, black 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, black 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, black 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, black 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, black 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"}}},dark:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, white 20%)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, white 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, white 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, white 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, white 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, white 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, white 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, white 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"}}}}},card:{root:{borderRadius:"var(--border-radius)"},title:{fontWeight:"700",fontSize:"var(--text-md)"},body:{padding:"var(--content-gutter)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:xt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:xt("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:xt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:xt("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:xt("light")}},dark:{root:{background:"var(--surface-200-color)",shadow:xt("dark")}}}},popover:{root:{background:"var(--bg-color)",color:"var(--text-color)",borderColor:"var(--border-color)",borderRadius:"var(--border-radius)",shadow:"none",gutter:"8px",arrowOffset:"0.75rem"},content:{padding:"0"}},select:{root:{background:"var(--bg-color)",color:"var(--text-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)",disabledColor:"var(--disabled-color)"},option:{focusBackground:"var(--surface-200-color)",focusColor:"var(--primary-color)",selectedFocusColor:"var(--bg-color)",selectedFocusBackground:"var(--primary-color)"},overlay:{borderColor:"var(--border-color)"},dropdown:{color:"var(--primary-color)"},colorScheme:{light:{overlay:{background:"var(--bg-color)"}},dark:{overlay:{background:"var(--surface-100-color)"}}}},skeleton:{root:{background:"var(--surface-700-color)",animationBackground:"var(--surface-100-color)"}},textarea:{root:{background:"var(--surface-100-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)"}},toast:{root:{width:"min(90vw, 320px)"},colorScheme:{light:{contrast:{background:"var(--text-color)",color:"var(--bg-color)",detailColor:"var(--bg-color)"}},dark:{contrast:{background:"var(--bg-color)",color:"var(--text-color)",detailColor:"var(--text-color)"}}},info:{background:"var(--info-color)",color:"var(--info-hover-color)",detailColor:"var(--text-color)"},success:{background:"var(--success-color)",color:"var(--success-hover-color)",detailColor:"var(--text-color)"},warn:{background:"var(--warn-color)",color:"var(--warn-hover-color)",detailColor:"var(--text-color)"},error:{background:"var(--error-color)",color:"var(--error-hover-color)",detailColor:"var(--text-color)"},secondary:{background:"var(--secondary-color)",color:"var(--secondary-hover-color)",detailColor:"var(--text-color)"}},toggleswitch:{colorScheme:{light:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}},dark:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}}}}}};class Df{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?$e.MaskCpf(this.username):this.username.length===14?$e.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 Rf(){const t=r.ref("development");function e(s){t.value=s.toLocaleLowerCase()}const n=r.computed(()=>t.value==="development"),o=r.computed(()=>t.value==="pack"),a=r.computed(()=>t.value==="hml"),i=r.computed(()=>t.value==="production"),c=r.ref(null);function l(){c.value=null}return{environment:t,SetEnvironment:e,isDev:n,isPack:o,isHml:a,isProd:i,user:c,$reset:l}}const Vf=t=>{const e=new Set;function n(o){const{name:a,children:i}=o;if(a){if(e.has(a))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${a}`].join(`
|
|
428
|
+
`));e.add(a)}if(i&&Array.isArray(i))for(const c of i)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 jf{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"),a=document.createElement("div"),i=document.createElement("div");a.className="content",i.className="progress",a.appendChild(i),o.className="sf-toast",o.style.zIndex=$e.GetMaxZindex().toString(),o.appendChild(a),this.current=o,document.body.appendChild(o),o.addEventListener("transitionend",s=>{const d=s.propertyName==="opacity",m=s.target.classList.contains("visible");d&&!m&&(document.body.removeChild(o),this.current===o&&(this.current=null))});const c=[];Array.isArray(e.message)?c.push(...e.message):c.push(e.message);for(const s of c){const d=document.createElement("p");d.innerHTML=Uo.sanitize(s),a.appendChild(d)}const l=document.createElement("i");if(l.classList.add("icon","material-symbols-outlined"),l.innerText="close",l.addEventListener("click",()=>{this.Close()}),a.appendChild(l),getComputedStyle(o).bottom,getComputedStyle(o).top,o.classList.add("visible"),e.life){i.style.transitionDuration=`${e.life-300}ms`,a.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 Hf=new jf,zf=()=>Hf;function Go(){document.documentElement.removeAttribute("data-app-message"),document.documentElement.classList.add("app-mounted")}function Fn(t){typeof t=="string"&&document.documentElement.setAttribute("data-app-message",t),document.documentElement.classList.remove("app-mounted")}async function Ff(){return await fetch(window.location.origin+"/api/get-environment").then(async t=>{if(!t.ok)throw Fn("Ocorreu um erro ao inicializar a aplicação."),new Error(`Erro ao obter ambiente: ${t.status} ${t.statusText}`);return await t.text()})}A.AppError=Wo,A.AppResult=Ci,A.BaseAppState=Rf,A.EnsureUniqueRouteNames=Vf,A.GetEnvironmentAsync=Ff,A.RemovePreloader=Go,A.RestorePreloader=Fn,A.SfButton=pt,A.SfContent=hc,A.SfDrawer=rr,A.SfHelpButton=Yr,A.SfIcon=we,A.SfLoadingCircle=or,A.SfLogin=Ac,A.SfMain=ud,A.SfMainTopBarAccount=Qr,A.SfMessage=os,A.SfNavMenu=fc,A.SfPageTitle=md,A.SfPopover=po,A.SfTabNavigation=Ji,A.SfTabs=wd,A.SfTooltip=tr,A.UseAlert=_i,A.UseAlertService=Of,A.UseAppInject=rt,A.UseConfirm=yi,A.UseConfirmService=Tf,A.UseSimpleToast=zf,A.User=Df,A.Utilities=$e,A._logger=Lf,A.configSF=Bf,A.globalErrorHandler=Nf,A.themePreset=Mf,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
|
|
429
429
|
//# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.cjs.map
|