@luizleon/sf.prefeiturasp.vuecomponents 4.1.13 → 4.1.14
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/common/auth.d.ts +10 -9
- package/dist/components/button/Button.d.ts +4 -33
- package/dist/components/content/Content.d.ts +1 -10
- package/dist/components/drawer/Drawer.d.ts +7 -30
- package/dist/components/icon/Icon.d.ts +4 -35
- package/dist/components/internal/LoadingCircle.d.ts +1 -1
- package/dist/components/internal/MenuIcon.d.ts +1 -1
- package/dist/components/internal/ScrollToTop.d.ts +1 -1
- package/dist/components/internal/ThemeToggle.d.ts +1 -1
- package/dist/components/layout/Layout.d.ts +5 -5
- package/dist/components/message/Message.d.ts +3 -24
- package/dist/components/navmenu/NavMenu.d.ts +3 -12
- package/dist/components/tabnavigation/TabNavigation.d.ts +1 -10
- package/dist/components/tooltip/Tooltip.d.ts +1 -10
- package/dist/http-client/apiClient.d.ts +0 -1
- package/dist/index.d.ts +3 -5
- package/dist/services/authService.d.ts +5 -122
- package/dist/sf.prefeiturasp.vuecomponents.cjs +85 -85
- package/dist/sf.prefeiturasp.vuecomponents.cjs.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +7287 -7478
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +85 -85
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/package.json +2 -3
- package/dist/axios/axiosClient.d.ts +0 -30
- package/dist/components/internal/HeaderAvatar.d.ts +0 -6
|
@@ -1,74 +1,5 @@
|
|
|
1
|
-
(function(M,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(M=typeof globalThis<"u"?globalThis:M||self,l((M.sf=M.sf||{},M.sf.prefeiturasp=M.sf.prefeiturasp||{},M.sf.prefeiturasp.vuecomponents={}),M.Vue))})(this,function(M,l){"use strict";var Sh=Object.defineProperty;var _h=(M,l,Et)=>l in M?Sh(M,l,{enumerable:!0,configurable:!0,writable:!0,value:Et}):M[l]=Et;var $e=(M,l,Et)=>_h(M,typeof l!="symbol"?l+"":l,Et);class Et{constructor(){$e(this,"_visible",l.ref(!1))}get IsVisible(){return this._visible.value===!0}Toggle(){this._visible.value=!this._visible.value}Close(){this._visible.value=!1}Open(){this._visible.value=!0}}const ba=new Et,rr=()=>ba;class Ze{constructor(e){$e(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}function go(t=[]){let e="body > *:not(script):not(style)";for(const r of t)e+=`, ${r}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(r=>{const o=getComputedStyle(r).zIndex;return+o==+o?+o:0}));return n>=100?n:100}let va=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,n)=>(n&=63,n<36?e+=n.toString(36):n<62?e+=(n-26).toString(36).toUpperCase():n>62?e+="-":e+="_",e),"");const _n=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},wa={},Sa={class:"sf-loading-circle"},_a=[l.createElementVNode("div",null,[l.createElementVNode("svg",{viewBox:"25 25 50 50"},[l.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)];function ka(t,e){return l.openBlock(),l.createElementBlock("div",Sa,_a)}const Ca=_n(wa,[["render",ka]]),or=l.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){$e(this,"zIndex");$e(this,"wrapper");$e(this,"inner");this.zIndex=go()+1,this.Render()}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${this.zIndex??0}`,this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(s){this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.Position(s),this.wrapper.classList.add("visible")}Hide(){this.wrapper.classList.remove("visible"),this.wrapper.remove()}Position(s){const a=s.currentTarget.getBoundingClientRect();this.FixWidth();const c=this.wrapper,u=10;c.style.top=`${a.bottom-u}px`,c.style.left=`${a.right-u}px`,this.OutOfBottom()&&(c.style.top=`${a.top-c.clientHeight+u}px`),this.OutOfRight()&&(c.style.left=`${a.left-c.clientWidth+u}px`)}FixWidth(){this.wrapper.style.width="fit-content",this.wrapper.style.wordBreak="normal",this.wrapper.style.whiteSpace="nowrap";const s=window.innerWidth/2;this.wrapper.clientWidth>s&&(this.wrapper.style.width=`${s}px`,this.wrapper.style.wordBreak="break-word",this.wrapper.style.whiteSpace="normal")}OutOfBottom(){return this.wrapper.getBoundingClientRect().bottom>(window.innerHeight||document.documentElement.clientHeight)}OutOfRight(){return this.wrapper.getBoundingClientRect().right>(window.innerWidth||document.documentElement.clientWidth)-10}}const r=new n;return l.onBeforeUnmount(()=>{r.Hide()}),(o,s)=>(l.openBlock(),l.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:s[0]||(s[0]=(...i)=>l.unref(r).Show&&l.unref(r).Show(...i)),onMouseleave:s[1]||(s[1]=(...i)=>l.unref(r).Hide&&l.unref(r).Hide(...i)),onMousedown:s[2]||(s[2]=(...i)=>l.unref(r).Hide&&l.unref(r).Hide(...i))},[l.renderSlot(o.$slots,"default")],32))}}),Ea=["disabled","tabindex"],Ta=["data-color"],kn=_n(l.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},size:{default:"md"},dot:{type:Boolean},dotColor:{default:"error"},filled:{type:Boolean},buttonProps:{},tooltip:{},color:{default:"inherit"}},setup(t){const e=t,n=l.computed(()=>e.tooltip?or:"div"),r=l.computed(()=>new Ze(e.tooltip?"":"display-content").AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).Build()),o=l.computed(()=>new Ze(`${e.class} sf-icon`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-icon-button",e.button).AddClass("sf-icon-small",e.size==="sm").AddClass("sf-icon-medium",e.size==="md").AddClass("sf-icon-large",e.size==="lg").AddClass("sf-icon-xlarge",e.size==="xl").AddClass("sf-icon-2xlarge",e.size==="2xl").AddClass("sf-icon-3xlarge",e.size==="3xl").AddClass("sf-ripple",e.button===!0).AddClass(`${e.color}-color`,!!e.color&&e.color!=="inherit").Build());return(s,i)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.value),{text:e.tooltip,class:l.normalizeClass(r.value)},{default:l.withCtx(()=>[e.visible?(l.openBlock(),l.createElementBlock("div",{key:0,style:l.normalizeStyle(e.style),class:l.normalizeClass(o.value)},[l.createElementVNode("button",l.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(l.openBlock(),l.createBlock(Ca,{key:0})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(e.icon),1)],64))],16,Ea),e.dot?(l.openBlock(),l.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,Ta)):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-7ffc3790"]]),Aa=["id","onClick"],Pa={class:"sf-drawer-header"},Ia={class:"sf-drawer-title"},xa={class:"sf-drawer-content"},Oa={key:0,class:"sf-drawer-footer"},yo=l.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,r=e,o=l.useSlots(),s=l.ref(n.visible),i=l.ref(!1),a=l.ref(0),c=va();function u(){s.value=!1}function d(w){(w.key==="Escape"||w.code==="Escape")&&u()}function m(){r("open"),window.document.addEventListener("keydown",d,!0)}function g(w){a.value=go(),w.style.zIndex=`${a.value}`}function _(w){var B;r("before-close"),(B=w==null?void 0:w.parentElement)==null||B.classList.add("sf-mask-overlay-leave")}function v(){window.document.removeEventListener("keydown",d,!0),i.value=!1}function T(){return new Ze("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return l.watch(()=>n.visible,w=>{s.value=w}),l.watch(()=>s.value,w=>{r("update:visible",w),w&&(i.value=!0)}),(w,B)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[i.value?(l.openBlock(),l.createElementBlock("div",{key:0,id:l.unref(c),class:l.normalizeClass(T()),style:l.normalizeStyle({zIndex:a.value-1}),onClick:l.withModifiers(u,["stop"])},[l.createVNode(l.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:g,onEnter:m,onBeforeLeave:_,onAfterLeave:v},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!l.unref(o).footer}]),style:l.normalizeStyle(n.style),role:"dialog",onClick:B[0]||(B[0]=l.withModifiers(C=>w.void,["stop"]))},[l.createElementVNode("div",Pa,[l.createElementVNode("span",Ia,[l.renderSlot(w.$slots,"title")]),l.createVNode(kn,{button:!0,icon:"close",onClick:l.withModifiers(u,["stop"])},null,8,["onClick"])]),l.createElementVNode("div",xa,[l.renderSlot(w.$slots,"default")]),l.unref(o).footer?(l.openBlock(),l.createElementBlock("div",Oa,[l.renderSlot(w.$slots,"footer")])):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:3})],14,Aa)):l.createCommentVNode("",!0)]))}}),La=["id","name","disabled","data-color","form","type"],$a={class:"sf-button-label"},bo=l.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{},disabled:{type:Boolean},loading:{type:Boolean},color:{default:"primary"},size:{default:"md"},variant:{default:"filled"},autofocus:{type:Boolean},form:{},name:{},id:{},type:{default:"button"},value:{},iconFilled:{type:Boolean}},setup(t){const e=t;function n(){return new Ze(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(r,o)=>e.visible?(l.openBlock(),l.createElementBlock("button",{key:0,id:e.id,name:e.name,class:l.normalizeClass(n()),style:l.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(l.openBlock(),l.createBlock(kn,{key:0,icon:e.icon,loading:e.loading,size:e.size,color:void 0,"button-props":{tabindex:-1},filled:e.iconFilled},null,8,["icon","loading","size","filled"])):e.loading?(l.openBlock(),l.createBlock(kn,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):l.createCommentVNode("",!0),l.createElementVNode("span",$a,[l.renderSlot(r.$slots,"default")])],14,La)):l.createCommentVNode("",!0)}}),vo="SweetAlert2:",Ra=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},sr=t=>t.charAt(0).toUpperCase()+t.slice(1),Te=t=>Array.prototype.slice.call(t),ve=t=>{console.warn(`${vo} ${typeof t=="object"?t.join(" "):t}`)},mt=t=>{console.error(`${vo} ${t}`)},wo=[],Na=t=>{wo.includes(t)||(wo.push(t),ve(t))},Ba=(t,e)=>{Na(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},Cn=t=>typeof t=="function"?t():t,ir=t=>t&&typeof t.toPromise=="function",Ht=t=>ir(t)?t.toPromise():Promise.resolve(t),ar=t=>t&&Promise.resolve(t)===t,Tt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Da=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Ma={},Ua=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],So=t=>Object.prototype.hasOwnProperty.call(Tt,t),_o=t=>Da.indexOf(t)!==-1,lr=t=>Ma[t],Ha=t=>{So(t)||ve(`Unknown parameter "${t}"`)},Va=t=>{Ua.includes(t)&&ve(`The parameter "${t}" is incompatible with toasts`)},ja=t=>{lr(t)&&Ba(t,lr(t))},Fa=t=>{!t.backdrop&&t.allowOutsideClick&&ve('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Ha(e),t.toast&&Va(e),ja(e)},za="swal2-",ko=t=>{const e={};for(const n in t)e[t[n]]=za+t[n];return e},b=ko(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),Vt=ko(["success","warning","info","question","error"]),ue=()=>document.body.querySelector(`.${b.container}`),jt=t=>{const e=ue();return e?e.querySelector(t):null},Re=t=>jt(`.${t}`),Y=()=>Re(b.popup),Ft=()=>Re(b.icon),Co=()=>Re(b.title),En=()=>Re(b["html-container"]),Eo=()=>Re(b.image),To=()=>Re(b["progress-steps"]),Tn=()=>Re(b["validation-message"]),Me=()=>jt(`.${b.actions} .${b.confirm}`),st=()=>jt(`.${b.actions} .${b.deny}`),Ka=()=>Re(b["input-label"]),At=()=>jt(`.${b.loader}`),pt=()=>jt(`.${b.actions} .${b.cancel}`),zt=()=>Re(b.actions),Ao=()=>Re(b.footer),An=()=>Re(b["timer-progress-bar"]),cr=()=>Re(b.close),Wa=`
|
|
2
|
-
|
|
3
|
-
area[href],
|
|
4
|
-
input:not([disabled]),
|
|
5
|
-
select:not([disabled]),
|
|
6
|
-
textarea:not([disabled]),
|
|
7
|
-
button:not([disabled]),
|
|
8
|
-
iframe,
|
|
9
|
-
object,
|
|
10
|
-
embed,
|
|
11
|
-
[tabindex="0"],
|
|
12
|
-
[contenteditable],
|
|
13
|
-
audio[controls],
|
|
14
|
-
video[controls],
|
|
15
|
-
summary
|
|
16
|
-
`,ur=()=>{const t=Te(Y().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,r)=>{const o=parseInt(n.getAttribute("tabindex")),s=parseInt(r.getAttribute("tabindex"));return o>s?1:o<s?-1:0}),e=Te(Y().querySelectorAll(Wa)).filter(n=>n.getAttribute("tabindex")!=="-1");return Ra(t.concat(e)).filter(n=>Ae(n))},dr=()=>Qe(document.body,b.shown)&&!Qe(document.body,b["toast-shown"])&&!Qe(document.body,b["no-backdrop"]),Pn=()=>Y()&&Qe(Y(),b.toast),qa=()=>Y().hasAttribute("data-loading"),Pt={previousBodyPadding:null},de=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html");Te(r.querySelector("head").childNodes).forEach(o=>{t.appendChild(o)}),Te(r.querySelector("body").childNodes).forEach(o=>{t.appendChild(o)})}},Qe=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},Ga=(t,e)=>{Te(t.classList).forEach(n=>{!Object.values(b).includes(n)&&!Object.values(Vt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},Ne=(t,e,n)=>{if(Ga(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return ve(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);W(t,e.customClass[n])}},fr=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${b.popup} > .${b[e]}`);case"checkbox":return t.querySelector(`.${b.popup} > .${b.checkbox} input`);case"radio":return t.querySelector(`.${b.popup} > .${b.radio} input:checked`)||t.querySelector(`.${b.popup} > .${b.radio} input:first-child`);case"range":return t.querySelector(`.${b.popup} > .${b.range} input`);default:return t.querySelector(`.${b.popup} > .${b.input}`)}},Po=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Io=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(r=>{Array.isArray(t)?t.forEach(o=>{n?o.classList.add(r):o.classList.remove(r)}):n?t.classList.add(r):t.classList.remove(r)}))},W=(t,e)=>{Io(t,e,!0)},Ye=(t,e)=>{Io(t,e,!1)},it=(t,e)=>{const n=Te(t.childNodes);for(let r=0;r<n.length;r++)if(Qe(n[r],e))return n[r]},Kt=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?t.style[e]=typeof n=="number"?`${n}px`:n:t.style.removeProperty(e)},le=(t,e="flex")=>{t.style.display=e},fe=t=>{t.style.display="none"},xo=(t,e,n,r)=>{const o=t.querySelector(e);o&&(o.style[n]=r)},In=(t,e,n)=>{e?le(t,n):fe(t)},Ae=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Ya=()=>!Ae(Me())&&!Ae(st())&&!Ae(pt()),Oo=t=>t.scrollHeight>t.clientHeight,Lo=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},mr=(t,e=!1)=>{const n=An();Ae(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},Ja=()=>{const t=An(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),r=e/n*100;t.style.removeProperty("transition"),t.style.width=`${r}%`},$o=()=>typeof window>"u"||typeof document>"u",Xa=100,H={},Za=()=>{H.previousActiveElement&&H.previousActiveElement.focus?(H.previousActiveElement.focus(),H.previousActiveElement=null):document.body&&document.body.focus()},Qa=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;H.restoreFocusTimeout=setTimeout(()=>{Za(),e()},Xa),window.scrollTo(n,r)}),el=`
|
|
17
|
-
<div aria-labelledby="${b.title}" aria-describedby="${b["html-container"]}" class="${b.popup}" tabindex="-1">
|
|
18
|
-
<button type="button" class="${b.close}"></button>
|
|
19
|
-
<ul class="${b["progress-steps"]}"></ul>
|
|
20
|
-
<div class="${b.icon}"></div>
|
|
21
|
-
<img class="${b.image}" />
|
|
22
|
-
<h2 class="${b.title}" id="${b.title}"></h2>
|
|
23
|
-
<div class="${b["html-container"]}" id="${b["html-container"]}"></div>
|
|
24
|
-
<input class="${b.input}" />
|
|
25
|
-
<input type="file" class="${b.file}" />
|
|
26
|
-
<div class="${b.range}">
|
|
27
|
-
<input type="range" />
|
|
28
|
-
<output></output>
|
|
29
|
-
</div>
|
|
30
|
-
<select class="${b.select}"></select>
|
|
31
|
-
<div class="${b.radio}"></div>
|
|
32
|
-
<label for="${b.checkbox}" class="${b.checkbox}">
|
|
33
|
-
<input type="checkbox" />
|
|
34
|
-
<span class="${b.label}"></span>
|
|
35
|
-
</label>
|
|
36
|
-
<textarea class="${b.textarea}"></textarea>
|
|
37
|
-
<div class="${b["validation-message"]}" id="${b["validation-message"]}"></div>
|
|
38
|
-
<div class="${b.actions}">
|
|
39
|
-
<div class="${b.loader}"></div>
|
|
40
|
-
<button type="button" class="${b.confirm}"></button>
|
|
41
|
-
<button type="button" class="${b.deny}"></button>
|
|
42
|
-
<button type="button" class="${b.cancel}"></button>
|
|
43
|
-
</div>
|
|
44
|
-
<div class="${b.footer}"></div>
|
|
45
|
-
<div class="${b["timer-progress-bar-container"]}">
|
|
46
|
-
<div class="${b["timer-progress-bar"]}"></div>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
`.replace(/(^|\n)\s*/g,""),tl=()=>{const t=ue();return t?(t.remove(),Ye([document.documentElement,document.body],[b["no-backdrop"],b["toast-shown"],b["has-column"]]),!0):!1},ht=()=>{H.currentInstance.resetValidationMessage()},nl=()=>{const t=Y(),e=it(t,b.input),n=it(t,b.file),r=t.querySelector(`.${b.range} input`),o=t.querySelector(`.${b.range} output`),s=it(t,b.select),i=t.querySelector(`.${b.checkbox} input`),a=it(t,b.textarea);e.oninput=ht,n.onchange=ht,s.onchange=ht,i.onchange=ht,a.oninput=ht,r.oninput=()=>{ht(),o.value=r.value},r.onchange=()=>{ht(),r.nextSibling.value=r.value}},rl=t=>typeof t=="string"?document.querySelector(t):t,ol=t=>{const e=Y();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},sl=t=>{window.getComputedStyle(t).direction==="rtl"&&W(ue(),b.rtl)},il=t=>{const e=tl();if($o()){mt("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=b.container,e&&W(n,b["no-transition"]),de(n,el);const r=rl(t.target);r.appendChild(n),ol(t),sl(r),nl()},pr=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?al(t,e):t&&de(e,t)},al=(t,e)=>{t.jquery?ll(e,t):de(e,t.toString())},ll=(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))},Wt=(()=>{if($o())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&typeof t.style[n]<"u")return e[n];return!1})(),cl=()=>{const t=document.createElement("div");t.className=b["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},ul=(t,e)=>{const n=zt(),r=At();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?fe(n):le(n),Ne(n,e,"actions"),dl(n,r,e),de(r,e.loaderHtml),Ne(r,e,"loader")};function dl(t,e,n){const r=Me(),o=st(),s=pt();hr(r,"confirm",n),hr(o,"deny",n),hr(s,"cancel",n),fl(r,o,s,n),n.reverseButtons&&(n.toast?(t.insertBefore(s,r),t.insertBefore(o,r)):(t.insertBefore(s,e),t.insertBefore(o,e),t.insertBefore(r,e)))}function fl(t,e,n,r){if(!r.buttonsStyling)return Ye([t,e,n],b.styled);W([t,e,n],b.styled),r.confirmButtonColor&&(t.style.backgroundColor=r.confirmButtonColor,W(t,b["default-outline"])),r.denyButtonColor&&(e.style.backgroundColor=r.denyButtonColor,W(e,b["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,W(n,b["default-outline"]))}function hr(t,e,n){In(t,n[`show${sr(e)}Button`],"inline-block"),de(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=b[e],Ne(t,n,`${e}Button`),W(t,n[`${e}ButtonClass`])}function ml(t,e){typeof e=="string"?t.style.background=e:e||W([document.documentElement,document.body],b["no-backdrop"])}function pl(t,e){e in b?W(t,b[e]):(ve('The "position" parameter is not valid, defaulting to "center"'),W(t,b.center))}function hl(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in b&&W(t,b[n])}}const gl=(t,e)=>{const n=ue();n&&(ml(n,e.backdrop),pl(n,e.position),hl(n,e.grow),Ne(n,e,"container"))},j={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},yl=["input","file","range","select","radio","checkbox","textarea"],bl=(t,e)=>{const n=Y(),r=j.innerParams.get(t),o=!r||e.input!==r.input;yl.forEach(s=>{const i=b[s],a=it(n,i);Sl(s,e.inputAttributes),a.className=i,o&&fe(a)}),e.input&&(o&&vl(e),_l(e))},vl=t=>{if(!we[t.input])return mt(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=Ro(t.input),n=we[t.input](e,t);le(n),setTimeout(()=>{Po(n)})},wl=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},Sl=(t,e)=>{const n=fr(Y(),t);if(n){wl(n);for(const r in e)n.setAttribute(r,e[r])}},_l=t=>{const e=Ro(t.input);t.customClass&&W(e,t.customClass.input)},gr=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},qt=(t,e,n)=>{if(n.inputLabel){t.id=b.input;const r=document.createElement("label"),o=b["input-label"];r.setAttribute("for",t.id),r.className=o,W(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},Ro=t=>{const e=b[t]?b[t]:b.input;return it(Y(),e)},we={};we.text=we.email=we.password=we.number=we.tel=we.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:ar(e.inputValue)||ve(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),qt(t,t,e),gr(t,e),t.type=e.input,t),we.file=(t,e)=>(qt(t,t,e),gr(t,e),t),we.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,r.value=e.inputValue,qt(n,t,e),t},we.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");de(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return qt(t,t,e),t},we.radio=t=>(t.textContent="",t),we.checkbox=(t,e)=>{const n=fr(Y(),"checkbox");n.value="1",n.id=b.checkbox,n.checked=!!e.inputValue;const r=t.querySelector("span");return de(r,e.inputPlaceholder),t},we.textarea=(t,e)=>{t.value=e.inputValue,gr(t,e),qt(t,t,e);const n=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(Y()).width),o=()=>{const s=t.offsetWidth+n(t);s>r?Y().style.width=`${s}px`:Y().style.width=null};new MutationObserver(o).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const kl=(t,e)=>{const n=En();Ne(n,e,"htmlContainer"),e.html?(pr(e.html,n),le(n,"block")):e.text?(n.textContent=e.text,le(n,"block")):fe(n),bl(t,e)},Cl=(t,e)=>{const n=Ao();In(n,e.footer),e.footer&&pr(e.footer,n),Ne(n,e,"footer")},El=(t,e)=>{const n=cr();de(n,e.closeButtonHtml),Ne(n,e,"closeButton"),In(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},Tl=(t,e)=>{const n=j.innerParams.get(t),r=Ft();if(n&&e.icon===n.icon){Bo(r,e),No(r,e);return}if(!e.icon&&!e.iconHtml)return fe(r);if(e.icon&&Object.keys(Vt).indexOf(e.icon)===-1)return mt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),fe(r);le(r),Bo(r,e),No(r,e),W(r,e.showClass.icon)},No=(t,e)=>{for(const n in Vt)e.icon!==n&&Ye(t,Vt[n]);W(t,Vt[e.icon]),xl(t,e),Al(),Ne(t,e,"icon")},Al=()=>{const t=Y(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=e},Pl=`
|
|
50
|
-
<div class="swal2-success-circular-line-left"></div>
|
|
51
|
-
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
52
|
-
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
|
|
53
|
-
<div class="swal2-success-circular-line-right"></div>
|
|
54
|
-
`,Il=`
|
|
55
|
-
<span class="swal2-x-mark">
|
|
56
|
-
<span class="swal2-x-mark-line-left"></span>
|
|
57
|
-
<span class="swal2-x-mark-line-right"></span>
|
|
58
|
-
</span>
|
|
59
|
-
`,Bo=(t,e)=>{t.textContent="",e.iconHtml?de(t,Do(e.iconHtml)):e.icon==="success"?de(t,Pl):e.icon==="error"?de(t,Il):de(t,Do({question:"?",warning:"!",info:"i"}[e.icon]))},xl=(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"])xo(t,n,"backgroundColor",e.iconColor);xo(t,".swal2-success-ring","borderColor",e.iconColor)}},Do=t=>`<div class="${b["icon-content"]}">${t}</div>`,Ol=(t,e)=>{const n=Eo();if(!e.imageUrl)return fe(n);le(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Kt(n,"width",e.imageWidth),Kt(n,"height",e.imageHeight),n.className=b.image,Ne(n,e,"image")},Ll=t=>{const e=document.createElement("li");return W(e,b["progress-step"]),de(e,t),e},$l=t=>{const e=document.createElement("li");return W(e,b["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Rl=(t,e)=>{const n=To();if(!e.progressSteps||e.progressSteps.length===0)return fe(n);le(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&ve("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((r,o)=>{const s=Ll(r);if(n.appendChild(s),o===e.currentProgressStep&&W(s,b["active-progress-step"]),o!==e.progressSteps.length-1){const i=$l(e);n.appendChild(i)}})},Nl=(t,e)=>{const n=Co();In(n,e.title||e.titleText,"block"),e.title&&pr(e.title,n),e.titleText&&(n.innerText=e.titleText),Ne(n,e,"title")},Bl=(t,e)=>{const n=ue(),r=Y();e.toast?(Kt(n,"width",e.width),r.style.width="100%",r.insertBefore(At(),Ft())):Kt(r,"width",e.width),Kt(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),fe(Tn()),Dl(r,e)},Dl=(t,e)=>{t.className=`${b.popup} ${Ae(t)?e.showClass.popup:""}`,e.toast?(W([document.documentElement,document.body],b["toast-shown"]),W(t,b.toast)):W(t,b.modal),Ne(t,e,"popup"),typeof e.customClass=="string"&&W(t,e.customClass),e.icon&&W(t,b[`icon-${e.icon}`])},Mo=(t,e)=>{Bl(t,e),gl(t,e),Rl(t,e),Tl(t,e),Ol(t,e),Nl(t,e),El(t,e),kl(t,e),ul(t,e),Cl(t,e),typeof e.didRender=="function"&&e.didRender(Y())},It=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ml=()=>{Te(document.body.children).forEach(e=>{e===ue()||e.contains(ue())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},Uo=()=>{Te(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")})},Ho=["swal-title","swal-html","swal-footer"],Ul=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Wl(n),Object.assign(Hl(n),Vl(n),jl(n),Fl(n),zl(n),Kl(n,Ho))},Hl=t=>{const e={};return Te(t.querySelectorAll("swal-param")).forEach(n=>{gt(n,["name","value"]);const r=n.getAttribute("name"),o=n.getAttribute("value");typeof Tt[r]=="boolean"&&o==="false"&&(e[r]=!1),typeof Tt[r]=="object"&&(e[r]=JSON.parse(o))}),e},Vl=t=>{const e={};return Te(t.querySelectorAll("swal-button")).forEach(n=>{gt(n,["type","color","aria-label"]);const r=n.getAttribute("type");e[`${r}ButtonText`]=n.innerHTML,e[`show${sr(r)}Button`]=!0,n.hasAttribute("color")&&(e[`${r}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${r}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},jl=t=>{const e={},n=t.querySelector("swal-image");return n&&(gt(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e},Fl=t=>{const e={},n=t.querySelector("swal-icon");return n&&(gt(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},zl=t=>{const e={},n=t.querySelector("swal-input");n&&(gt(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 r=t.querySelectorAll("swal-input-option");return r.length&&(e.inputOptions={},Te(r).forEach(o=>{gt(o,["value"]);const s=o.getAttribute("value"),i=o.innerHTML;e.inputOptions[s]=i})),e},Kl=(t,e)=>{const n={};for(const r in e){const o=e[r],s=t.querySelector(o);s&&(gt(s,[]),n[o.replace(/^swal-/,"")]=s.innerHTML.trim())}return n},Wl=t=>{const e=Ho.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Te(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.indexOf(r)===-1&&ve(`Unrecognized element <${r}>`)})},gt=(t,e)=>{Te(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&ve([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Vo={email:(t,e)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function ql(t){t.inputValidator||Object.keys(Vo).forEach(e=>{t.input===e&&(t.inputValidator=Vo[e])})}function Gl(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(ve('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Yl(t){ql(t),t.showLoaderOnConfirm&&!t.preConfirm&&ve(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
60
|
-
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
61
|
-
https://sweetalert2.github.io/#ajax-request`),Gl(t),typeof t.title=="string"&&(t.title=t.title.split(`
|
|
62
|
-
`).join("<br />")),il(t)}class Jl{constructor(e,n){this.callback=e,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Xl=()=>{Pt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(Pt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Pt.previousBodyPadding+cl()}px`)},Zl=()=>{Pt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${Pt.previousBodyPadding}px`,Pt.previousBodyPadding=null)},Ql=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Qe(document.body,b.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,W(document.body,b.iosfix),tc(),ec()}},ec=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&Y().scrollHeight>window.innerHeight-44&&(ue().style.paddingBottom="44px")},tc=()=>{const t=ue();let e;t.ontouchstart=n=>{e=nc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},nc=t=>{const e=t.target,n=ue();return rc(t)||oc(t)?!1:e===n||!Oo(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Oo(En())&&En().contains(e))},rc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",oc=t=>t.touches&&t.touches.length>1,sc=()=>{if(Qe(document.body,b.iosfix)){const t=parseInt(document.body.style.top,10);Ye(document.body,b.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},jo=10,ic=t=>{const e=ue(),n=Y();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;cc(e,n,t),setTimeout(()=>{ac(e,n)},jo),dr()&&(lc(e,t.scrollbarPadding,o),Ml()),!Pn()&&!H.previousActiveElement&&(H.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Ye(e,b["no-transition"])},Fo=t=>{const e=Y();if(t.target!==e)return;const n=ue();e.removeEventListener(Wt,Fo),n.style.overflowY="auto"},ac=(t,e)=>{Wt&&Lo(e)?(t.style.overflowY="hidden",e.addEventListener(Wt,Fo)):t.style.overflowY="auto"},lc=(t,e,n)=>{Ql(),e&&n!=="hidden"&&Xl(),setTimeout(()=>{t.scrollTop=0})},cc=(t,e,n)=>{W(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),le(e,"grid"),setTimeout(()=>{W(e,n.showClass.popup),e.style.removeProperty("opacity")},jo),W([document.documentElement,document.body],b.shown),n.heightAuto&&n.backdrop&&!n.toast&&W([document.documentElement,document.body],b["height-auto"])},xt=t=>{let e=Y();e||new Lt,e=Y();const n=At();Pn()?fe(Ft()):uc(e,t),le(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},uc=(t,e)=>{const n=zt(),r=At();!e&&Ae(Me())&&(e=Me()),le(n),e&&(fe(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),W([t,n],b.loading)},dc=(t,e)=>{e.input==="select"||e.input==="radio"?gc(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(ir(e.inputValue)||ar(e.inputValue))&&(xt(Me()),yc(t,e))},fc=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return mc(n);case"radio":return pc(n);case"file":return hc(n);default:return e.inputAutoTrim?n.value.trim():n.value}},mc=t=>t.checked?1:0,pc=t=>t.checked?t.value:null,hc=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,gc=(t,e)=>{const n=Y(),r=o=>bc[e.input](n,yr(o),e);ir(e.inputOptions)||ar(e.inputOptions)?(xt(Me()),Ht(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):mt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},yc=(t,e)=>{const n=t.getInput();fe(n),Ht(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,le(n),n.focus(),t.hideLoading()}).catch(r=>{mt(`Error in inputValue promise: ${r}`),n.value="",le(n),n.focus(),t.hideLoading()})},bc={select:(t,e,n)=>{const r=it(t,b.select),o=(s,i,a)=>{const c=document.createElement("option");c.value=a,de(c,i),c.selected=zo(a,n.inputValue),s.appendChild(c)};e.forEach(s=>{const i=s[0],a=s[1];if(Array.isArray(a)){const c=document.createElement("optgroup");c.label=i,c.disabled=!1,r.appendChild(c),a.forEach(u=>o(c,u[1],u[0]))}else o(r,a,i)}),r.focus()},radio:(t,e,n)=>{const r=it(t,b.radio);e.forEach(s=>{const i=s[0],a=s[1],c=document.createElement("input"),u=document.createElement("label");c.type="radio",c.name=b.radio,c.value=i,zo(i,n.inputValue)&&(c.checked=!0);const d=document.createElement("span");de(d,a),d.className=b.label,u.appendChild(c),u.appendChild(d),r.appendChild(u)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}},yr=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,r)=>{let o=n;typeof o=="object"&&(o=yr(o)),e.push([r,o])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=yr(r)),e.push([n,r])}),e},zo=(t,e)=>e&&e.toString()===t.toString();function Ko(){const t=j.innerParams.get(this);if(!t)return;const e=j.domCache.get(this);fe(e.loader),Pn()?t.icon&&le(Ft()):vc(e),Ye([e.popup,e.actions],b.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const vc=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?le(e[0],"inline-block"):Ya()&&fe(t.actions)};function wc(t){const e=j.innerParams.get(t||this),n=j.domCache.get(t||this);return n?fr(n.popup,e.input):null}const Gt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},Sc=()=>Ae(Y()),Wo=()=>Me()&&Me().click(),_c=()=>st()&&st().click(),kc=()=>pt()&&pt().click(),qo=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Cc=(t,e,n,r)=>{qo(e),n.toast||(e.keydownHandler=o=>Tc(t,o,r),e.keydownTarget=n.keydownListenerCapture?window:Y(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},br=(t,e,n)=>{const r=ur();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();Y().focus()},Go=["ArrowRight","ArrowDown"],Ec=["ArrowLeft","ArrowUp"],Tc=(t,e,n)=>{const r=j.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Ac(t,e,r):e.key==="Tab"?Pc(e,r):[...Go,...Ec].includes(e.key)?Ic(e.key):e.key==="Escape"&&xc(e,r,n)))},Ac=(t,e,n)=>{if(Cn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;Wo(),e.preventDefault()}},Pc=(t,e)=>{const n=t.target,r=ur();let o=-1;for(let s=0;s<r.length;s++)if(n===r[s]){o=s;break}t.shiftKey?br(e,o,-1):br(e,o,1),t.stopPropagation(),t.preventDefault()},Ic=t=>{const e=Me(),n=st(),r=pt();if(![e,n,r].includes(document.activeElement))return;const o=Go.includes(t)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;for(let i=0;i<zt().children.length;i++){if(s=s[o],!s)return;if(Ae(s)&&s instanceof HTMLButtonElement)break}s instanceof HTMLButtonElement&&s.focus()},xc=(t,e,n)=>{Cn(e.allowEscapeKey)&&(t.preventDefault(),n(It.esc))};function Yo(t,e,n,r){Pn()?Jo(t,r):(Qa(n).then(()=>Jo(t,r)),qo(H)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),dr()&&(Zl(),sc(),Uo()),Oc()}function Oc(){Ye([document.documentElement,document.body],[b.shown,b["height-auto"],b["no-backdrop"],b["toast-shown"]])}function xn(t){t=Nc(t);const e=Gt.swalPromiseResolve.get(this),n=$c(this);this.isAwaitingPromise()?t.isDismissed||(Yt(this),e(t)):n&&e(t)}function Lc(){return!!j.awaitingPromise.get(this)}const $c=t=>{const e=Y();if(!e)return!1;const n=j.innerParams.get(t);if(!n||Qe(e,n.hideClass.popup))return!1;Ye(e,n.showClass.popup),W(e,n.hideClass.popup);const r=ue();return Ye(r,n.showClass.backdrop),W(r,n.hideClass.backdrop),Bc(t,e,n),!0};function Rc(t){const e=Gt.swalPromiseReject.get(this);Yt(this),e&&e(t)}const Yt=t=>{t.isAwaitingPromise()&&(j.awaitingPromise.delete(t),j.innerParams.get(t)||t._destroy())},Nc=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Bc=(t,e,n)=>{const r=ue(),o=Wt&&Lo(e);typeof n.willClose=="function"&&n.willClose(e),o?Dc(t,e,r,n.returnFocus,n.didClose):Yo(t,r,n.returnFocus,n.didClose)},Dc=(t,e,n,r,o)=>{H.swalCloseEventFinishedCallback=Yo.bind(null,t,n,r,o),e.addEventListener(Wt,function(s){s.target===e&&(H.swalCloseEventFinishedCallback(),delete H.swalCloseEventFinishedCallback)})},Jo=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Xo(t,e,n){const r=j.domCache.get(t);e.forEach(o=>{r[o].disabled=n})}function Zo(t,e){if(!t)return!1;if(t.type==="radio"){const r=t.parentNode.parentNode.querySelectorAll("input");for(let o=0;o<r.length;o++)r[o].disabled=e}else t.disabled=e}function Mc(){Xo(this,["confirmButton","denyButton","cancelButton"],!1)}function Uc(){Xo(this,["confirmButton","denyButton","cancelButton"],!0)}function Hc(){return Zo(this.getInput(),!1)}function Vc(){return Zo(this.getInput(),!0)}function jc(t){const e=j.domCache.get(this),n=j.innerParams.get(this);de(e.validationMessage,t),e.validationMessage.className=b["validation-message"],n.customClass&&n.customClass.validationMessage&&W(e.validationMessage,n.customClass.validationMessage),le(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",b["validation-message"]),Po(r),W(r,b.inputerror))}function Fc(){const t=j.domCache.get(this);t.validationMessage&&fe(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ye(e,b.inputerror))}function zc(){return j.domCache.get(this).progressSteps}function Kc(t){const e=Y(),n=j.innerParams.get(this);if(!e||Qe(e,n.hideClass.popup))return ve("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=Wc(t),o=Object.assign({},n,r);Mo(this,o),j.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const Wc=t=>{const e={};return Object.keys(t).forEach(n=>{_o(n)?e[n]=t[n]:ve(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
63
|
-
|
|
64
|
-
If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`)}),e};function qc(){const t=j.domCache.get(this),e=j.innerParams.get(this);if(!e){Qo(this);return}t.popup&&H.swalCloseEventFinishedCallback&&(H.swalCloseEventFinishedCallback(),delete H.swalCloseEventFinishedCallback),H.deferDisposalTimer&&(clearTimeout(H.deferDisposalTimer),delete H.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),Gc(this)}const Gc=t=>{Qo(t),delete t.params,delete H.keydownHandler,delete H.keydownTarget,delete H.currentInstance},Qo=t=>{t.isAwaitingPromise()?(vr(j,t),j.awaitingPromise.set(t,!0)):(vr(Gt,t),vr(j,t))},vr=(t,e)=>{for(const n in t)t[n].delete(e)},es=Object.freeze(Object.defineProperty({__proto__:null,_destroy:qc,close:xn,closeModal:xn,closePopup:xn,closeToast:xn,disableButtons:Uc,disableInput:Vc,disableLoading:Ko,enableButtons:Mc,enableInput:Hc,getInput:wc,getProgressSteps:zc,handleAwaitingPromise:Yt,hideLoading:Ko,isAwaitingPromise:Lc,rejectPromise:Rc,resetValidationMessage:Fc,showValidationMessage:jc,update:Kc},Symbol.toStringTag,{value:"Module"})),Yc=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.input?ts(t,"confirm"):Sr(t,!0)},Jc=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?ts(t,"deny"):wr(t,!1)},Xc=(t,e)=>{t.disableButtons(),e(It.cancel)},ts=(t,e)=>{const n=j.innerParams.get(t);if(!n.input)return mt(`The "input" parameter is needed to be set when using returnInputValueOn${sr(e)}`);const r=fc(t,n);n.inputValidator?Zc(t,r,e):t.getInput().checkValidity()?e==="deny"?wr(t,r):Sr(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Zc=(t,e,n)=>{const r=j.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Ht(r.inputValidator(e,r.validationMessage))).then(s=>{t.enableButtons(),t.enableInput(),s?t.showValidationMessage(s):n==="deny"?wr(t,e):Sr(t,e)})},wr=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnDeny&&xt(st()),n.preDeny?(j.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ht(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),Yt(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>rs(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},ns=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},rs=(t,e)=>{t.rejectPromise(e)},Sr=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnConfirm&&xt(),n.preConfirm?(t.resetValidationMessage(),j.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ht(n.preConfirm(e,n.validationMessage))).then(o=>{Ae(Tn())||o===!1?(t.hideLoading(),Yt(t)):ns(t,typeof o>"u"?e:o)}).catch(o=>rs(t||void 0,o))):ns(t,e)},Qc=(t,e,n)=>{j.innerParams.get(t).toast?eu(t,e,n):(nu(e),ru(e),ou(t,e,n))},eu=(t,e,n)=>{e.popup.onclick=()=>{const r=j.innerParams.get(t);r&&(tu(r)||r.timer||r.input)||n(It.close)}},tu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let On=!1;const nu=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(On=!0)}}},ru=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(On=!0)}}},ou=(t,e,n)=>{e.container.onclick=r=>{const o=j.innerParams.get(t);if(On){On=!1;return}r.target===e.container&&Cn(o.allowOutsideClick)&&n(It.backdrop)}},su=t=>typeof t=="object"&&t.jquery,os=t=>t instanceof Element||su(t),iu=t=>{const e={};return typeof t[0]=="object"&&!os(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||os(o)?e[n]=o:o!==void 0&&mt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function au(...t){const e=this;return new e(...t)}function lu(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const cu=()=>H.timeout&&H.timeout.getTimerLeft(),ss=()=>{if(H.timeout)return Ja(),H.timeout.stop()},is=()=>{if(H.timeout){const t=H.timeout.start();return mr(t),t}},uu=()=>{const t=H.timeout;return t&&(t.running?ss():is())},du=t=>{if(H.timeout){const e=H.timeout.increase(t);return mr(e,!0),e}},fu=()=>H.timeout&&H.timeout.isRunning();let as=!1;const _r={};function mu(t="data-swal-template"){_r[t]=this,as||(document.body.addEventListener("click",pu),as=!0)}const pu=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in _r){const r=e.getAttribute(n);if(r){_r[n].fire({template:r});return}}},hu=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:iu,bindClickHandler:mu,clickCancel:kc,clickConfirm:Wo,clickDeny:_c,enableLoading:xt,fire:au,getActions:zt,getCancelButton:pt,getCloseButton:cr,getConfirmButton:Me,getContainer:ue,getDenyButton:st,getFocusableElements:ur,getFooter:Ao,getHtmlContainer:En,getIcon:Ft,getImage:Eo,getInputLabel:Ka,getLoader:At,getPopup:Y,getTimerLeft:cu,getTimerProgressBar:An,getTitle:Co,getValidationMessage:Tn,increaseTimer:du,isDeprecatedParameter:lr,isLoading:qa,isTimerRunning:fu,isUpdatableParameter:_o,isValidParameter:So,isVisible:Sc,mixin:lu,resumeTimer:is,showLoading:xt,stopTimer:ss,toggleTimer:uu},Symbol.toStringTag,{value:"Module"}));let kr;class Ot{constructor(...e){if(typeof window>"u")return;kr=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const r=this._main(this.params);j.promise.set(this,r)}_main(e,n={}){Fa(Object.assign({},n,e)),H.currentInstance&&(H.currentInstance._destroy(),dr()&&Uo()),H.currentInstance=this;const r=yu(e,n);Yl(r),Object.freeze(r),H.timeout&&(H.timeout.stop(),delete H.timeout),clearTimeout(H.restoreFocusTimeout);const o=bu(this);return Mo(this,r),j.innerParams.set(this,r),gu(this,o,r)}then(e){return j.promise.get(this).then(e)}finally(e){return j.promise.get(this).finally(e)}}const gu=(t,e,n)=>new Promise((r,o)=>{const s=i=>{t.closePopup({isDismissed:!0,dismiss:i})};Gt.swalPromiseResolve.set(t,r),Gt.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>Yc(t),e.denyButton.onclick=()=>Jc(t),e.cancelButton.onclick=()=>Xc(t,s),e.closeButton.onclick=()=>s(It.close),Qc(t,e,s),Cc(t,H,n,s),dc(t,n),ic(n),vu(H,n,s),wu(e,n),setTimeout(()=>{e.container.scrollTop=0})}),yu=(t,e)=>{const n=Ul(t),r=Object.assign({},Tt,e,n,t);return r.showClass=Object.assign({},Tt.showClass,r.showClass),r.hideClass=Object.assign({},Tt.hideClass,r.hideClass),r},bu=t=>{const e={popup:Y(),container:ue(),actions:zt(),confirmButton:Me(),denyButton:st(),cancelButton:pt(),loader:At(),closeButton:cr(),validationMessage:Tn(),progressSteps:To()};return j.domCache.set(t,e),e},vu=(t,e,n)=>{const r=An();fe(r),e.timer&&(t.timeout=new Jl(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(le(r),Ne(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&mr(e.timer)})))},wu=(t,e)=>{if(!e.toast){if(!Cn(e.allowEnterKey))return _u();Su(t,e)||br(e,-1,1)}},Su=(t,e)=>e.focusDeny&&Ae(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Ae(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Ae(t.confirmButton)?(t.confirmButton.focus(),!0):!1,_u=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(Ot.prototype,es),Object.assign(Ot,hu),Object.keys(es).forEach(t=>{Ot[t]=function(...e){if(kr)return kr[t](...e)}}),Ot.DismissReason=It,Ot.version="11.4.8";const Lt=Ot;Lt.default=Lt;/*! @license DOMPurify 3.0.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.9/LICENSE */const{entries:ls,setPrototypeOf:cs,isFrozen:ku,getPrototypeOf:Cu,getOwnPropertyDescriptor:Eu}=Object;let{freeze:he,seal:Ue,create:us}=Object,{apply:Cr,construct:Er}=typeof Reflect<"u"&&Reflect;he||(he=function(e){return e}),Ue||(Ue=function(e){return e}),Cr||(Cr=function(e,n,r){return e.apply(n,r)}),Er||(Er=function(e,n){return new e(...n)});const Ln=Ie(Array.prototype.forEach),ds=Ie(Array.prototype.pop),Jt=Ie(Array.prototype.push),$n=Ie(String.prototype.toLowerCase),Tr=Ie(String.prototype.toString),Tu=Ie(String.prototype.match),Xt=Ie(String.prototype.replace),Au=Ie(String.prototype.indexOf),Pu=Ie(String.prototype.trim),He=Ie(Object.prototype.hasOwnProperty),Pe=Ie(RegExp.prototype.test),Zt=Iu(TypeError);function Ie(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Cr(t,e,r)}}function Iu(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Er(t,n)}}function K(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$n;cs&&cs(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const s=n(o);s!==o&&(ku(e)||(e[r]=s),o=s)}t[o]=!0}return t}function xu(t){for(let e=0;e<t.length;e++)He(t,e)||(t[e]=null);return t}function yt(t){const e=us(null);for(const[n,r]of ls(t))He(t,n)&&(Array.isArray(r)?e[n]=xu(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=yt(r):e[n]=r);return e}function Rn(t,e){for(;t!==null;){const r=Eu(t,e);if(r){if(r.get)return Ie(r.get);if(typeof r.value=="function")return Ie(r.value)}t=Cu(t)}function n(){return null}return n}const fs=he(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ar=he(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Pr=he(["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"]),Ou=he(["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"]),Ir=he(["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"]),Lu=he(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ms=he(["#text"]),ps=he(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),xr=he(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),hs=he(["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"]),Nn=he(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$u=Ue(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ru=Ue(/<%[\w\W]*|[\w\W]*%>/gm),Nu=Ue(/\${[\w\W]*}/gm),Bu=Ue(/^data-[\-\w.\u00B7-\uFFFF]/),Du=Ue(/^aria-[\-\w]+$/),gs=Ue(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Mu=Ue(/^(?:\w+script|data):/i),Uu=Ue(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ys=Ue(/^html$/i);var bs=Object.freeze({__proto__:null,MUSTACHE_EXPR:$u,ERB_EXPR:Ru,TMPLIT_EXPR:Nu,DATA_ATTR:Bu,ARIA_ATTR:Du,IS_ALLOWED_URI:gs,IS_SCRIPT_OR_DATA:Mu,ATTR_WHITESPACE:Uu,DOCTYPE_NAME:ys});const Hu=function(){return typeof window>"u"?null:window},Vu=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function vs(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hu();const e=N=>vs(N);if(e.version="3.0.9",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:i,Node:a,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:_}=t,v=c.prototype,T=Rn(v,"cloneNode"),w=Rn(v,"nextSibling"),B=Rn(v,"childNodes"),C=Rn(v,"parentNode");if(typeof i=="function"){const N=n.createElement("template");N.content&&N.content.ownerDocument&&(n=N.content.ownerDocument)}let A,z="";const{implementation:Z,createNodeIterator:re,createDocumentFragment:X,getElementsByTagName:ye}=n,{importNode:ie}=r;let V={};e.isSupported=typeof ls=="function"&&typeof C=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Le,ERB_EXPR:ke,TMPLIT_EXPR:We,DATA_ATTR:qe,ARIA_ATTR:ft,IS_SCRIPT_OR_DATA:nt,ATTR_WHITESPACE:Ge}=bs;let{IS_ALLOWED_URI:Xe}=bs,ne=null;const Be=K({},[...fs,...Ar,...Pr,...Ir,...ms]);let f=null;const h=K({},[...ps,...xr,...hs,...Nn]);let S=Object.seal(us(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),P=null,k=null,L=!0,E=!0,I=!1,D=!0,O=!1,$=!1,Q=!1,se=!1,be=!1,ce=!1,De=!1,Zi=!0,Qi=!1;const fh="user-content-";let co=!0,vn=!1,Bt={},Dt=null;const ea=K({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ta=null;const na=K({},["audio","video","img","source","image","track"]);let uo=null;const ra=K({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tr="http://www.w3.org/1998/Math/MathML",nr="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let Mt=rt,fo=!1,mo=null;const mh=K({},[tr,nr,rt],Tr);let wn=null;const ph=["application/xhtml+xml","text/html"],hh="text/html";let ae=null,Ut=null;const gh=n.createElement("form"),oa=function(p){return p instanceof RegExp||p instanceof Function},po=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ut&&Ut===p)){if((!p||typeof p!="object")&&(p={}),p=yt(p),wn=ph.indexOf(p.PARSER_MEDIA_TYPE)===-1?hh:p.PARSER_MEDIA_TYPE,ae=wn==="application/xhtml+xml"?Tr:$n,ne=He(p,"ALLOWED_TAGS")?K({},p.ALLOWED_TAGS,ae):Be,f=He(p,"ALLOWED_ATTR")?K({},p.ALLOWED_ATTR,ae):h,mo=He(p,"ALLOWED_NAMESPACES")?K({},p.ALLOWED_NAMESPACES,Tr):mh,uo=He(p,"ADD_URI_SAFE_ATTR")?K(yt(ra),p.ADD_URI_SAFE_ATTR,ae):ra,ta=He(p,"ADD_DATA_URI_TAGS")?K(yt(na),p.ADD_DATA_URI_TAGS,ae):na,Dt=He(p,"FORBID_CONTENTS")?K({},p.FORBID_CONTENTS,ae):ea,P=He(p,"FORBID_TAGS")?K({},p.FORBID_TAGS,ae):{},k=He(p,"FORBID_ATTR")?K({},p.FORBID_ATTR,ae):{},Bt=He(p,"USE_PROFILES")?p.USE_PROFILES:!1,L=p.ALLOW_ARIA_ATTR!==!1,E=p.ALLOW_DATA_ATTR!==!1,I=p.ALLOW_UNKNOWN_PROTOCOLS||!1,D=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,O=p.SAFE_FOR_TEMPLATES||!1,$=p.WHOLE_DOCUMENT||!1,be=p.RETURN_DOM||!1,ce=p.RETURN_DOM_FRAGMENT||!1,De=p.RETURN_TRUSTED_TYPE||!1,se=p.FORCE_BODY||!1,Zi=p.SANITIZE_DOM!==!1,Qi=p.SANITIZE_NAMED_PROPS||!1,co=p.KEEP_CONTENT!==!1,vn=p.IN_PLACE||!1,Xe=p.ALLOWED_URI_REGEXP||gs,Mt=p.NAMESPACE||rt,S=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&oa(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(S.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&oa(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(S.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(S.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),O&&(E=!1),ce&&(be=!0),Bt&&(ne=K({},ms),f=[],Bt.html===!0&&(K(ne,fs),K(f,ps)),Bt.svg===!0&&(K(ne,Ar),K(f,xr),K(f,Nn)),Bt.svgFilters===!0&&(K(ne,Pr),K(f,xr),K(f,Nn)),Bt.mathMl===!0&&(K(ne,Ir),K(f,hs),K(f,Nn))),p.ADD_TAGS&&(ne===Be&&(ne=yt(ne)),K(ne,p.ADD_TAGS,ae)),p.ADD_ATTR&&(f===h&&(f=yt(f)),K(f,p.ADD_ATTR,ae)),p.ADD_URI_SAFE_ATTR&&K(uo,p.ADD_URI_SAFE_ATTR,ae),p.FORBID_CONTENTS&&(Dt===ea&&(Dt=yt(Dt)),K(Dt,p.FORBID_CONTENTS,ae)),co&&(ne["#text"]=!0),$&&K(ne,["html","head","body"]),ne.table&&(K(ne,["tbody"]),delete P.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=p.TRUSTED_TYPES_POLICY,z=A.createHTML("")}else A===void 0&&(A=Vu(_,o)),A!==null&&typeof z=="string"&&(z=A.createHTML(""));he&&he(p),Ut=p}},sa=K({},["mi","mo","mn","ms","mtext"]),ia=K({},["foreignobject","desc","title","annotation-xml"]),yh=K({},["title","style","font","a","script"]),aa=K({},[...Ar,...Pr,...Ou]),la=K({},[...Ir,...Lu]),bh=function(p){let x=C(p);(!x||!x.tagName)&&(x={namespaceURI:Mt,tagName:"template"});const R=$n(p.tagName),ee=$n(x.tagName);return mo[p.namespaceURI]?p.namespaceURI===nr?x.namespaceURI===rt?R==="svg":x.namespaceURI===tr?R==="svg"&&(ee==="annotation-xml"||sa[ee]):!!aa[R]:p.namespaceURI===tr?x.namespaceURI===rt?R==="math":x.namespaceURI===nr?R==="math"&&ia[ee]:!!la[R]:p.namespaceURI===rt?x.namespaceURI===nr&&!ia[ee]||x.namespaceURI===tr&&!sa[ee]?!1:!la[R]&&(yh[R]||!aa[R]):!!(wn==="application/xhtml+xml"&&mo[p.namespaceURI]):!1},kt=function(p){Jt(e.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},ho=function(p,x){try{Jt(e.removed,{attribute:x.getAttributeNode(p),from:x})}catch{Jt(e.removed,{attribute:null,from:x})}if(x.removeAttribute(p),p==="is"&&!f[p])if(be||ce)try{kt(x)}catch{}else try{x.setAttribute(p,"")}catch{}},ca=function(p){let x=null,R=null;if(se)p="<remove></remove>"+p;else{const pe=Tu(p,/^[\r\n\t ]+/);R=pe&&pe[0]}wn==="application/xhtml+xml"&&Mt===rt&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const ee=A?A.createHTML(p):p;if(Mt===rt)try{x=new g().parseFromString(ee,wn)}catch{}if(!x||!x.documentElement){x=Z.createDocument(Mt,"template",null);try{x.documentElement.innerHTML=fo?z:ee}catch{}}const me=x.body||x.documentElement;return p&&R&&me.insertBefore(n.createTextNode(R),me.childNodes[0]||null),Mt===rt?ye.call(x,$?"html":"body")[0]:$?x.documentElement:me},ua=function(p){return re.call(p.ownerDocument||p,p,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},vh=function(p){return p instanceof m&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof d)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},da=function(p){return typeof a=="function"&&p instanceof a},ot=function(p,x,R){V[p]&&Ln(V[p],ee=>{ee.call(e,x,R,Ut)})},fa=function(p){let x=null;if(ot("beforeSanitizeElements",p,null),vh(p))return kt(p),!0;const R=ae(p.nodeName);if(ot("uponSanitizeElement",p,{tagName:R,allowedTags:ne}),p.hasChildNodes()&&!da(p.firstElementChild)&&Pe(/<[/\w]/g,p.innerHTML)&&Pe(/<[/\w]/g,p.textContent))return kt(p),!0;if(!ne[R]||P[R]){if(!P[R]&&pa(R)&&(S.tagNameCheck instanceof RegExp&&Pe(S.tagNameCheck,R)||S.tagNameCheck instanceof Function&&S.tagNameCheck(R)))return!1;if(co&&!Dt[R]){const ee=C(p)||p.parentNode,me=B(p)||p.childNodes;if(me&&ee){const pe=me.length;for(let Ce=pe-1;Ce>=0;--Ce)ee.insertBefore(T(me[Ce],!0),w(p))}}return kt(p),!0}return p instanceof c&&!bh(p)||(R==="noscript"||R==="noembed"||R==="noframes")&&Pe(/<\/no(script|embed|frames)/i,p.innerHTML)?(kt(p),!0):(O&&p.nodeType===3&&(x=p.textContent,Ln([Le,ke,We],ee=>{x=Xt(x,ee," ")}),p.textContent!==x&&(Jt(e.removed,{element:p.cloneNode()}),p.textContent=x)),ot("afterSanitizeElements",p,null),!1)},ma=function(p,x,R){if(Zi&&(x==="id"||x==="name")&&(R in n||R in gh))return!1;if(!(E&&!k[x]&&Pe(qe,x))){if(!(L&&Pe(ft,x))){if(!f[x]||k[x]){if(!(pa(p)&&(S.tagNameCheck instanceof RegExp&&Pe(S.tagNameCheck,p)||S.tagNameCheck instanceof Function&&S.tagNameCheck(p))&&(S.attributeNameCheck instanceof RegExp&&Pe(S.attributeNameCheck,x)||S.attributeNameCheck instanceof Function&&S.attributeNameCheck(x))||x==="is"&&S.allowCustomizedBuiltInElements&&(S.tagNameCheck instanceof RegExp&&Pe(S.tagNameCheck,R)||S.tagNameCheck instanceof Function&&S.tagNameCheck(R))))return!1}else if(!uo[x]){if(!Pe(Xe,Xt(R,Ge,""))){if(!((x==="src"||x==="xlink:href"||x==="href")&&p!=="script"&&Au(R,"data:")===0&&ta[p])){if(!(I&&!Pe(nt,Xt(R,Ge,"")))){if(R)return!1}}}}}}return!0},pa=function(p){return p!=="annotation-xml"&&p.indexOf("-")>0},ha=function(p){ot("beforeSanitizeAttributes",p,null);const{attributes:x}=p;if(!x)return;const R={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:f};let ee=x.length;for(;ee--;){const me=x[ee],{name:pe,namespaceURI:Ce,value:Ct}=me,Sn=ae(pe);let Ee=pe==="value"?Ct:Pu(Ct);if(R.attrName=Sn,R.attrValue=Ee,R.keepAttr=!0,R.forceKeepAttr=void 0,ot("uponSanitizeAttribute",p,R),Ee=R.attrValue,R.forceKeepAttr||(ho(pe,p),!R.keepAttr))continue;if(!D&&Pe(/\/>/i,Ee)){ho(pe,p);continue}O&&Ln([Le,ke,We],ya=>{Ee=Xt(Ee,ya," ")});const ga=ae(p.nodeName);if(ma(ga,Sn,Ee)){if(Qi&&(Sn==="id"||Sn==="name")&&(ho(pe,p),Ee=fh+Ee),A&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!Ce)switch(_.getAttributeType(ga,Sn)){case"TrustedHTML":{Ee=A.createHTML(Ee);break}case"TrustedScriptURL":{Ee=A.createScriptURL(Ee);break}}try{Ce?p.setAttributeNS(Ce,pe,Ee):p.setAttribute(pe,Ee),ds(e.removed)}catch{}}}ot("afterSanitizeAttributes",p,null)},wh=function N(p){let x=null;const R=ua(p);for(ot("beforeSanitizeShadowDOM",p,null);x=R.nextNode();)ot("uponSanitizeShadowNode",x,null),!fa(x)&&(x.content instanceof s&&N(x.content),ha(x));ot("afterSanitizeShadowDOM",p,null)};return e.sanitize=function(N){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=null,R=null,ee=null,me=null;if(fo=!N,fo&&(N="<!-->"),typeof N!="string"&&!da(N))if(typeof N.toString=="function"){if(N=N.toString(),typeof N!="string")throw Zt("dirty is not a string, aborting")}else throw Zt("toString is not a function");if(!e.isSupported)return N;if(Q||po(p),e.removed=[],typeof N=="string"&&(vn=!1),vn){if(N.nodeName){const Ct=ae(N.nodeName);if(!ne[Ct]||P[Ct])throw Zt("root node is forbidden and cannot be sanitized in-place")}}else if(N instanceof a)x=ca("<!---->"),R=x.ownerDocument.importNode(N,!0),R.nodeType===1&&R.nodeName==="BODY"||R.nodeName==="HTML"?x=R:x.appendChild(R);else{if(!be&&!O&&!$&&N.indexOf("<")===-1)return A&&De?A.createHTML(N):N;if(x=ca(N),!x)return be?null:De?z:""}x&&se&&kt(x.firstChild);const pe=ua(vn?N:x);for(;ee=pe.nextNode();)fa(ee)||(ee.content instanceof s&&wh(ee.content),ha(ee));if(vn)return N;if(be){if(ce)for(me=X.call(x.ownerDocument);x.firstChild;)me.appendChild(x.firstChild);else me=x;return(f.shadowroot||f.shadowrootmode)&&(me=ie.call(r,me,!0)),me}let Ce=$?x.outerHTML:x.innerHTML;return $&&ne["!doctype"]&&x.ownerDocument&&x.ownerDocument.doctype&&x.ownerDocument.doctype.name&&Pe(ys,x.ownerDocument.doctype.name)&&(Ce="<!DOCTYPE "+x.ownerDocument.doctype.name+`>
|
|
65
|
-
`+Ce),O&&Ln([Le,ke,We],Ct=>{Ce=Xt(Ce,Ct," ")}),A&&De?A.createHTML(Ce):Ce},e.setConfig=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};po(N),Q=!0},e.clearConfig=function(){Ut=null,Q=!1},e.isValidAttribute=function(N,p,x){Ut||po({});const R=ae(N),ee=ae(p);return ma(R,ee,x)},e.addHook=function(N,p){typeof p=="function"&&(V[N]=V[N]||[],Jt(V[N],p))},e.removeHook=function(N){if(V[N])return ds(V[N])},e.removeHooks=function(N){V[N]&&(V[N]=[])},e.removeAllHooks=function(){V={}},e}var ws=vs();let Ss=class{get IsVisible(){return Lt.isVisible()}};class ju extends Ss{constructor(){super()}async CreateAlertAsync(e){let n="info",r,o;return typeof e=="string"||Array.isArray(e)?r=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",o=e.title??"",r=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(s=>{Lt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${ws.sanitize(r)}</div>`}).then(()=>s(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}class Fu extends Ss{async CreateConfirmAsync(e){return new Promise(n=>{Lt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:ws.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(r=>{n(r.isConfirmed===!0)})})}async ConfirmAsync(e){return this.CreateConfirmAsync({text:e})}}const zu=()=>new ju,_s=()=>new Fu;function Ku(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function ks(t,...e){if(!Ku(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function Cs(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Wu(t,e){ks(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Or=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Je=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function qu(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Es(t){return typeof t=="string"&&(t=qu(t)),ks(t),t}class Gu{clone(){return this._cloneInto()}}function Yu(t){const e=r=>t().update(Es(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function Ju(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const o=BigInt(32),s=BigInt(4294967295),i=Number(n>>o&s),a=Number(n&s),c=r?4:0,u=r?0:4;t.setUint32(e+c,i,r),t.setUint32(e+u,a,r)}const Xu=(t,e,n)=>t&e^~t&n,Zu=(t,e,n)=>t&e^t&n^e&n;class Qu extends Gu{constructor(e,n,r,o){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Or(this.buffer)}update(e){Cs(this);const{view:n,buffer:r,blockLen:o}=this;e=Es(e);const s=e.length;for(let i=0;i<s;){const a=Math.min(o-this.pos,s-i);if(a===o){const c=Or(e);for(;o<=s-i;i+=o)this.process(c,i);continue}r.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Cs(this),Wu(e,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:s}=this;let{pos:i}=this;n[i++]=128,this.buffer.subarray(i).fill(0),this.padOffset>o-i&&(this.process(r,0),i=0);for(let m=i;m<o;m++)n[m]=0;Ju(r,o-8,BigInt(this.length*8),s),this.process(r,0);const a=Or(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let m=0;m<u;m++)a.setUint32(4*m,d[m],s)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const r=e.slice(0,n);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:s,destroyed:i,pos:a}=this;return e.length=o,e.pos=a,e.finished=s,e.destroyed=i,o%n&&e.buffer.set(r),e}}const ed=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),at=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),lt=new Uint32Array(64);class td extends Qu{constructor(){super(64,32,8,!1),this.A=at[0]|0,this.B=at[1]|0,this.C=at[2]|0,this.D=at[3]|0,this.E=at[4]|0,this.F=at[5]|0,this.G=at[6]|0,this.H=at[7]|0}get(){const{A:e,B:n,C:r,D:o,E:s,F:i,G:a,H:c}=this;return[e,n,r,o,s,i,a,c]}set(e,n,r,o,s,i,a,c){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=i|0,this.G=a|0,this.H=c|0}process(e,n){for(let m=0;m<16;m++,n+=4)lt[m]=e.getUint32(n,!1);for(let m=16;m<64;m++){const g=lt[m-15],_=lt[m-2],v=Je(g,7)^Je(g,18)^g>>>3,T=Je(_,17)^Je(_,19)^_>>>10;lt[m]=T+lt[m-7]+v+lt[m-16]|0}let{A:r,B:o,C:s,D:i,E:a,F:c,G:u,H:d}=this;for(let m=0;m<64;m++){const g=Je(a,6)^Je(a,11)^Je(a,25),_=d+g+Xu(a,c,u)+ed[m]+lt[m]|0,T=(Je(r,2)^Je(r,13)^Je(r,22))+Zu(r,o,s)|0;d=u,u=c,c=a,a=i+_|0,i=s,s=o,o=r,r=_+T|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,i=i+this.D|0,a=a+this.E|0,c=c+this.F|0,u=u+this.G|0,d=d+this.H|0,this.set(r,o,s,i,a,c,u,d)}roundClean(){lt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const nd=Yu(()=>new td);class Qt extends Error{}Qt.prototype.name="InvalidTokenError";function rd(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function od(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return rd(e)}catch{return atob(e)}}function Lr(t,e){if(typeof t!="string")throw new Qt("Invalid token specified: must be a string");e||(e={});const n=e.header===!0?0:1,r=t.split(".")[n];if(typeof r!="string")throw new Qt(`Invalid token specified: missing part #${n+1}`);let o;try{o=od(r)}catch(s){throw new Qt(`Invalid token specified: invalid base64 for part #${n+1} (${s.message})`)}try{return JSON.parse(o)}catch(s){throw new Qt(`Invalid token specified: invalid json for part #${n+1} (${s.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function $r(t){if(!(this instanceof $r))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var e=this,n,r=[],o,s={enable:!0,callbackList:[],interval:5},i=document.getElementsByTagName("script"),a=0;a<i.length;a++)(i[a].src.indexOf("keycloak.js")!==-1||i[a].src.indexOf("keycloak.min.js")!==-1)&&i[a].src.indexOf("version=")!==-1&&(e.iframeVersion=i[a].src.substring(i[a].src.indexOf("version=")+8).split("&")[0]);var c=!0,u=Be(console.info),d=Be(console.warn);e.init=function(f){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,o=ne();var h=["default","cordova","cordova-native"];if(f&&h.indexOf(f.adapter)>-1?n=nt(f.adapter):f&&typeof f.adapter=="object"?n=f.adapter:window.Cordova||window.cordova?n=nt("cordova"):n=nt(),f){if(typeof f.useNonce<"u"&&(c=f.useNonce),typeof f.checkLoginIframe<"u"&&(s.enable=f.checkLoginIframe),f.checkLoginIframeInterval&&(s.interval=f.checkLoginIframeInterval),f.onLoad==="login-required"&&(e.loginRequired=!0),f.responseMode)if(f.responseMode==="query"||f.responseMode==="fragment")e.responseMode=f.responseMode;else throw"Invalid value for responseMode";if(f.flow){switch(f.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=f.flow}if(f.timeSkew!=null&&(e.timeSkew=f.timeSkew),f.redirectUri&&(e.redirectUri=f.redirectUri),f.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=f.silentCheckSsoRedirectUri),typeof f.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=f.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof f.pkceMethod<"u"){if(f.pkceMethod!=="S256"&&f.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${f.pkceMethod}.`);e.pkceMethod=f.pkceMethod}else e.pkceMethod="S256";typeof f.enableLogging=="boolean"?e.enableLogging=f.enableLogging:e.enableLogging=!1,f.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof f.scope=="string"&&(e.scope=f.scope),typeof f.acrValues=="string"&&(e.acrValues=f.acrValues),typeof f.messageReceiveTimeout=="number"&&f.messageReceiveTimeout>0?e.messageReceiveTimeout=f.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var S=V(),P=V();P.promise.then(function(){e.onReady&&e.onReady(e.authenticated),S.setSuccess(e.authenticated)}).catch(function(O){S.setError(O)});var k=A(),L=function(){u("[KEYCLOAK] Executing check-sso silently");var O=document.createElement("iframe"),$=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});return O.setAttribute("src",$),O.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),O.setAttribute("title","keycloak-silent-check-sso"),O.style.display="none",document.body.appendChild(O),new Promise(function(se){var be=function(ce){if(!(ce.origin!==window.location.origin||O.contentWindow!==ce.source)){var De=X(ce.data);C(De,P,se),document.body.removeChild(O),window.removeEventListener("message",be)}};window.addEventListener("message",be)})};e.getAccessTokenAsync=async()=>{const O=e.tokenParsed,$=O?O.exp:null;return!O||!$?null:$-Math.ceil(new Date().getTime()/1e3)+(e.timeSkew??0)<10?await L()??null:e.token};function E(){var O=function(Q){Q||($.prompt="none"),f&&f.locale&&($.locale=f.locale),e.login($).then(function(){P.setSuccess()}).catch(function(se){P.setError(se)})},$={};switch(f.onLoad){case"check-sso":s.enable?ke().then(function(){qe().then(function(Q){Q?P.setSuccess():e.silentCheckSsoRedirectUri?L():O(!1)}).catch(function(Q){P.setError(Q)})}):e.silentCheckSsoRedirectUri?L():O(!1);break;case"login-required":O(!0);break;default:throw"Invalid value for onLoad"}}function I(){var O=X(window.location.href);if(O&&window.history.replaceState(window.history.state,null,O.newUrl),O&&O.valid)return ke().then(function(){C(O,P)}).catch(function($){P.setError($)});f?f.token&&f.refreshToken?(Z(f.token,f.refreshToken,f.idToken),s.enable?ke().then(function(){qe().then(function($){$?(e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess(),We()):P.setSuccess()}).catch(function($){P.setError($)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess()}).catch(function($){e.onAuthError&&e.onAuthError(),f.onLoad?E():P.setError($)})):f.onLoad?E():P.setSuccess():P.setSuccess()}function D(){var O=V(),$=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",$),O.setSuccess())};return document.addEventListener("readystatechange",$),$(),O.promise}return k.then(function(){D().then(ft).then(I).catch(function(O){S.setError(O)})}),k.catch(function(O){S.setError(O)}),S.promise},e.login=function(f){return n.login(f)};function m(f){var h=null,S=window.crypto||window.msCrypto;if(S&&S.getRandomValues&&window.Uint8Array)return h=new Uint8Array(f),S.getRandomValues(h),h;h=new Array(f);for(var P=0;P<h.length;P++)h[P]=Math.floor(256*Math.random());return h}function g(f){return _(f,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function _(f,h){for(var S=m(f),P=new Array(f),k=0;k<f;k++)P[k]=h.charCodeAt(S[k]%h.length);return String.fromCharCode.apply(null,P)}function v(f,h){if(f!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${f}'.`);const S=nd(h);return sd(S).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function T(f){var h={id_token:{acr:f}};return JSON.stringify(h)}e.createLoginUrl=function(f){var h=re(),S=re(),P=n.redirectUri(f),k={state:h,nonce:S,redirectUri:encodeURIComponent(P),loginOptions:f};f&&f.prompt&&(k.prompt=f.prompt);var L;f&&f.action=="register"?L=e.endpoints.register():L=e.endpoints.authorize();var E=f&&f.scope||e.scope;E?E.indexOf("openid")===-1&&(E="openid "+E):E="openid";var I=L+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(P)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(E);if(c&&(I=I+"&nonce="+encodeURIComponent(S)),f&&f.prompt&&(I+="&prompt="+encodeURIComponent(f.prompt)),f&&f.maxAge&&(I+="&max_age="+encodeURIComponent(f.maxAge)),f&&f.loginHint&&(I+="&login_hint="+encodeURIComponent(f.loginHint)),f&&f.idpHint&&(I+="&kc_idp_hint="+encodeURIComponent(f.idpHint)),f&&f.action&&f.action!="register"&&(I+="&kc_action="+encodeURIComponent(f.action)),f&&f.locale&&(I+="&ui_locales="+encodeURIComponent(f.locale)),f&&f.acr){var D=T(f.acr);I+="&claims="+encodeURIComponent(D)}if((f&&f.acrValues||e.acrValues)&&(I+="&acr_values="+encodeURIComponent(f.acrValues||e.acrValues)),e.pkceMethod){var O=g(96);k.pkceCodeVerifier=O;var $=v(e.pkceMethod,O);I+="&code_challenge="+$,I+="&code_challenge_method="+e.pkceMethod}return o.add(k),I},e.logout=function(f){return n.logout(f)},e.createLogoutUrl=function(f){if(((f==null?void 0:f.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var S=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(f,!1));return e.idToken&&(S+="&id_token_hint="+encodeURIComponent(e.idToken)),S},e.register=function(f){return n.register(f)},e.createRegisterUrl=function(f){return f||(f={}),f.action="register",e.createLoginUrl(f)},e.createAccountUrl=function(f){var h=w(),S=void 0;return typeof h<"u"&&(S=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(f))),S},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(f){var h=e.realmAccess;return!!h&&h.roles.indexOf(f)>=0},e.hasResourceRole=function(f,h){if(!e.resourceAccess)return!1;var S=e.resourceAccess[h||e.clientId];return!!S&&S.roles.indexOf(f)>=0},e.loadUserProfile=function(){var f=w()+"/account",h=new XMLHttpRequest;h.open("GET",f,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=V();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.profile=JSON.parse(h.responseText),S.setSuccess(e.profile)):S.setError())},h.send(),S.promise},e.loadUserInfo=function(){var f=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",f,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=V();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.userInfo=JSON.parse(h.responseText),S.setSuccess(e.userInfo)):S.setError())},h.send(),S.promise},e.isTokenExpired=function(f){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return u("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var h=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(f){if(isNaN(f))throw"Invalid minValidity";h-=f}return h<0},e.updateToken=function(f){var h=V();if(!e.refreshToken)return h.setError(),h.promise;f=f||5;var S=function(){var k=!1;if(f==-1?(k=!0,u("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(f))&&(k=!0,u("[KEYCLOAK] Refreshing token: token expired")),!k)h.setSuccess(!1);else{var L="grant_type=refresh_token&refresh_token="+e.refreshToken,E=e.endpoints.token();if(r.push(h),r.length==1){var I=new XMLHttpRequest;I.open("POST",E,!0),I.setRequestHeader("Content-type","application/x-www-form-urlencoded"),I.withCredentials=!0,L+="&client_id="+encodeURIComponent(e.clientId);var D=new Date().getTime();I.onreadystatechange=function(){if(I.readyState==4)if(I.status==200){u("[KEYCLOAK] Token refreshed"),D=(D+new Date().getTime())/2;var O=JSON.parse(I.responseText);Z(O.access_token,O.refresh_token,O.id_token,D),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var $=r.pop();$!=null;$=r.pop())$.setSuccess(!0)}else{d("[KEYCLOAK] Failed to refresh token"),I.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var $=r.pop();$!=null;$=r.pop())$.setError(!0)}},I.send(L)}}};if(s.enable){var P=qe();P.then(function(){S()}).catch(function(k){h.setError(k)})}else S();return h.promise},e.clearToken=function(){e.token&&(Z(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function w(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function B(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function C(f,h,S=null){var P=f.code,k=f.error,L=f.prompt,E=new Date().getTime();if(f.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(f.kc_action_status),k){if(L!="none")if(f.error_description&&f.error_description==="authentication_expired")e.login(f.loginOptions);else{var I={error:k,error_description:f.error_description};e.onAuthError&&e.onAuthError(I),h&&h.setError(I)}else h&&h.setSuccess(),S&&S();return}else e.flow!="standard"&&(f.access_token||f.id_token)&&Q(f.access_token,null,f.id_token,!0);if(e.flow!="implicit"&&P){var D="code="+P+"&grant_type=authorization_code",O=e.endpoints.token(),$=new XMLHttpRequest;$.open("POST",O,!0),$.setRequestHeader("Content-type","application/x-www-form-urlencoded"),D+="&client_id="+encodeURIComponent(e.clientId),D+="&redirect_uri="+f.redirectUri,f.pkceCodeVerifier&&(D+="&code_verifier="+f.pkceCodeVerifier),$.withCredentials=!0,$.onreadystatechange=function(){if($.readyState==4)if($.status==200){var se=JSON.parse($.responseText);Q(se.access_token,se.refresh_token,se.id_token,e.flow==="standard"),We()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},$.send(D)}function Q(se,be,ce,De){if(E=(E+new Date().getTime())/2,Z(se,be,ce,E),c&&e.idTokenParsed&&e.idTokenParsed.nonce!=f.storedNonce)u("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError();else if(De){e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess(),S&&S(se);return}}}function A(f){var h=V(),S;t?typeof t=="string"&&(S=t):S="keycloak.json";function P(O){O?e.endpoints={authorize:function(){return O.authorization_endpoint},token:function(){return O.token_endpoint},logout:function(){if(!O.end_session_endpoint)throw"Not supported by the OIDC server";return O.end_session_endpoint},checkSessionIframe:function(){if(!O.check_session_iframe)throw"Not supported by the OIDC server";return O.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!O.userinfo_endpoint)throw"Not supported by the OIDC server";return O.userinfo_endpoint}}:e.endpoints={authorize:function(){return w()+"/protocol/openid-connect/auth"},token:function(){return w()+"/protocol/openid-connect/token"},logout:function(){return w()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var $=w()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&($=$+"?version="+e.iframeVersion),$},thirdPartyCookiesIframe:function(){var $=w()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&($=$+"?version="+e.iframeVersion),$},register:function(){return w()+"/protocol/openid-connect/registrations"},userinfo:function(){return w()+"/protocol/openid-connect/userinfo"}}}if(S){var k=new XMLHttpRequest;k.open("GET",S,!0),k.setRequestHeader("Accept","application/json"),k.onreadystatechange=function(){if(k.readyState==4)if(k.status==200||z(k)){var O=JSON.parse(k.responseText);e.authServerUrl=O["auth-server-url"],e.realm=O.realm,e.clientId=O.resource,P(null),h.setSuccess()}else h.setError()},k.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var L=t.oidcProvider;if(L)if(typeof L=="string"){var D;L.charAt(L.length-1)=="/"?D=L+".well-known/openid-configuration":D=L+"/.well-known/openid-configuration";var k=new XMLHttpRequest;k.open("GET",D,!0),k.setRequestHeader("Accept","application/json"),k.onreadystatechange=function(){if(k.readyState==4)if(k.status==200||z(k)){var $=JSON.parse(k.responseText);P($),h.setSuccess()}else h.setError()},k.send()}else P(L),h.setSuccess();else{if(!t.url){for(var E=document.getElementsByTagName("script"),I=0;I<E.length;I++)if(E[I].src.match(/.*keycloak\.js/)){t.url=E[I].src.substr(0,E[I].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,P(null),h.setSuccess()}}return h.promise}function z(f){return f.status==0&&f.responseText&&f.responseURL.startsWith("file:")}function Z(f,h,S,P){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=Lr(h)):(delete e.refreshToken,delete e.refreshTokenParsed),S?(e.idToken=S,e.idTokenParsed=Lr(S)):(delete e.idToken,delete e.idTokenParsed),f){if(e.token=f,e.tokenParsed=Lr(f),e.sessionId=e.tokenParsed.sid,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,P&&(e.timeSkew=Math.floor(P/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(u("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var k=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;u("[KEYCLOAK] Token expires in "+Math.round(k/1e3)+" s"),k<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,k)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function re(){var f="0123456789abcdef",h=_(36,f).split("");h[14]="4",h[19]=f.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var S=h.join("");return S}function X(f){var h=ye(f);if(h){var S=o.get(h.state);return S&&(h.valid=!0,h.redirectUri=S.redirectUri,h.storedNonce=S.nonce,h.prompt=S.prompt,h.pkceCodeVerifier=S.pkceCodeVerifier,h.loginOptions=S.loginOptions),h}}function ye(f){var h;switch(e.flow){case"standard":h=["code","state","session_state","kc_action_status","iss"];break;case"implicit":h=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","iss"];break;case"hybrid":h=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","iss"];break}h.push("error"),h.push("error_description"),h.push("error_uri");var S=f.indexOf("?"),P=f.indexOf("#"),k,L;if(e.responseMode==="query"&&S!==-1?(k=f.substring(0,S),L=ie(f.substring(S+1,P!==-1?P:f.length),h),L.paramsString!==""&&(k+="?"+L.paramsString),P!==-1&&(k+=f.substring(P))):e.responseMode==="fragment"&&P!==-1&&(k=f.substring(0,P),L=ie(f.substring(P+1),h),L.paramsString!==""&&(k+="#"+L.paramsString)),L&&L.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((L.oauthParams.code||L.oauthParams.error)&&L.oauthParams.state)return L.oauthParams.newUrl=k,L.oauthParams}else if(e.flow==="implicit"&&(L.oauthParams.access_token||L.oauthParams.error)&&L.oauthParams.state)return L.oauthParams.newUrl=k,L.oauthParams}}function ie(f,h){for(var S=f.split("&"),P={paramsString:"",oauthParams:{}},k=0;k<S.length;k++){var L=S[k].indexOf("="),E=S[k].slice(0,L);h.indexOf(E)!==-1?P.oauthParams[E]=S[k].slice(L+1):(P.paramsString!==""&&(P.paramsString+="&"),P.paramsString+=S[k])}return P}function V(){var f={setSuccess:function(h){f.resolve(h)},setError:function(h){f.reject(h)}};return f.promise=new Promise(function(h,S){f.resolve=h,f.reject=S}),f}function Le(f,h,S){var P=null,k=new Promise(function(L,E){P=setTimeout(function(){E({error:S})},h)});return Promise.race([f,k]).finally(function(){clearTimeout(P)})}function ke(){var f=V();if(!s.enable||s.iframe)return f.setSuccess(),f.promise;var h=document.createElement("iframe");s.iframe=h,h.onload=function(){var k=e.endpoints.authorize();k.charAt(0)==="/"?s.iframeOrigin=B():s.iframeOrigin=k.substring(0,k.indexOf("/",8)),f.setSuccess()};var S=e.endpoints.checkSessionIframe();h.setAttribute("src",S),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-session-iframe"),h.style.display="none",document.body.appendChild(h);var P=function(k){if(!(k.origin!==s.iframeOrigin||s.iframe.contentWindow!==k.source)&&(k.data=="unchanged"||k.data=="changed"||k.data=="error")){k.data!="unchanged"&&e.clearToken();for(var L=s.callbackList.splice(0,s.callbackList.length),E=L.length-1;E>=0;--E){var I=L[E];k.data=="error"?I.setError():I.setSuccess(k.data=="unchanged")}}};return window.addEventListener("message",P,!1),f.promise}function We(){s.enable&&e.token&&setTimeout(function(){qe().then(function(f){f&&We()})},s.interval*1e3)}function qe(){var f=V();if(s.iframe&&s.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");s.callbackList.push(f);var S=s.iframeOrigin;s.callbackList.length==1&&s.iframe.contentWindow.postMessage(h,S)}else f.setSuccess();return f.promise}function ft(){var f=V();if(s.enable||e.silentCheckSsoRedirectUri){var h=document.createElement("iframe");h.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-3p-check-iframe"),h.style.display="none",document.body.appendChild(h);var S=function(P){h.contentWindow===P.source&&(P.data!=="supported"&&P.data!=="unsupported"||(P.data==="unsupported"&&(d(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
|
|
66
|
-
|
|
67
|
-
- It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
|
|
68
|
-
- It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
|
|
69
|
-
|
|
70
|
-
For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),s.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",S),f.setSuccess()))};window.addEventListener("message",S,!1)}else f.setSuccess();return Le(f.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function nt(f){if(!f||f=="default")return{login:function(E){return window.location.assign(e.createLoginUrl(E)),V().promise},logout:async function(E){if(((E==null?void 0:E.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(E));return}const D=e.createLogoutUrl(E),O=await fetch(D,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:n.redirectUri(E,!1)})});if(O.redirected){window.location.href=O.url;return}if(O.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(E){return window.location.assign(e.createRegisterUrl(E)),V().promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.location.href=E;else throw"Not supported by the OIDC server";return V().promise},redirectUri:function(E,I){return E&&E.redirectUri?E.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(f=="cordova"){s.enable=!1;var h=function(E,I,D){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(E,I,D):window.open(E,I,D)},S=function(E){return E&&E.cordovaOptions?Object.keys(E.cordovaOptions).reduce(function(I,D){return I[D]=E.cordovaOptions[D],I},{}):{}},P=function(E){return Object.keys(E).reduce(function(I,D){return I.push(D+"="+E[D]),I},[]).join(",")},k=function(E){var I=S(E);return I.location="no",E&&E.prompt=="none"&&(I.hidden="yes"),P(I)},L=function(){return e.redirectUri||"http://localhost"};return{login:function(E){var I=V(),D=k(E),O=e.createLoginUrl(E),$=h(O,"_blank",D),Q=!1,se=!1,be=function(){se=!0,$.close()};return $.addEventListener("loadstart",function(ce){if(ce.url.indexOf(L())==0){var De=X(ce.url);C(De,I),be(),Q=!0}}),$.addEventListener("loaderror",function(ce){if(!Q)if(ce.url.indexOf(L())==0){var De=X(ce.url);C(De,I),be(),Q=!0}else I.setError(),be()}),$.addEventListener("exit",function(ce){se||I.setError({reason:"closed_by_user"})}),I.promise},logout:function(E){var I=V(),D=e.createLogoutUrl(E),O=h(D,"_blank","location=no,hidden=yes,clearcache=yes"),$;return O.addEventListener("loadstart",function(Q){Q.url.indexOf(L())==0&&O.close()}),O.addEventListener("loaderror",function(Q){Q.url.indexOf(L())==0||($=!0),O.close()}),O.addEventListener("exit",function(Q){$?I.setError():(e.clearToken(),I.setSuccess())}),I.promise},register:function(E){var I=V(),D=e.createRegisterUrl(),O=k(E),$=h(D,"_blank",O);return $.addEventListener("loadstart",function(Q){if(Q.url.indexOf(L())==0){$.close();var se=X(Q.url);C(se,I)}}),I.promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u"){var I=h(E,"_blank","location=no");I.addEventListener("loadstart",function(D){D.url.indexOf(L())==0&&I.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(E){return L()}}}if(f=="cordova-native")return s.enable=!1,{login:function(E){var I=V(),D=e.createLoginUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var $=X(O.url);C($,I)}),window.cordova.plugins.browsertab.openUrl(D),I.promise},logout:function(E){var I=V(),D=e.createLogoutUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),I.setSuccess()}),window.cordova.plugins.browsertab.openUrl(D),I.promise},register:function(E){var I=V(),D=e.createRegisterUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var $=X(O.url);C($,I)}),window.cordova.plugins.browsertab.openUrl(D),I.promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.cordova.plugins.browsertab.openUrl(E);else throw"Not supported by the OIDC server"},redirectUri:function(E){return E&&E.redirectUri?E.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+f}var Ge=function(){if(!(this instanceof Ge))return new Ge;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var f=this;function h(){for(var S=new Date().getTime(),P=0;P<localStorage.length;P++){var k=localStorage.key(P);if(k&&k.indexOf("kc-callback-")==0){var L=localStorage.getItem(k);if(L)try{var E=JSON.parse(L).expires;(!E||E<S)&&localStorage.removeItem(k)}catch{localStorage.removeItem(k)}}}}f.get=function(S){if(S){var P="kc-callback-"+S,k=localStorage.getItem(P);return k&&(localStorage.removeItem(P),k=JSON.parse(k)),h(),k}},f.add=function(S){h();var P="kc-callback-"+S.state;S.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(P,JSON.stringify(S))}},Xe=function(){if(!(this instanceof Xe))return new Xe;var f=this;f.get=function(k){if(k){var L=S("kc-callback-"+k);if(P("kc-callback-"+k,"",h(-100)),L)return JSON.parse(L)}},f.add=function(k){P("kc-callback-"+k.state,JSON.stringify(k),h(60))},f.removeItem=function(k){P(k,"",h(-100))};var h=function(k){var L=new Date;return L.setTime(L.getTime()+k*60*1e3),L},S=function(k){for(var L=k+"=",E=document.cookie.split(";"),I=0;I<E.length;I++){for(var D=E[I];D.charAt(0)==" ";)D=D.substring(1);if(D.indexOf(L)==0)return D.substring(L.length,D.length)}return""},P=function(k,L,E){var I=k+"="+L+"; expires="+E.toUTCString()+"; ";document.cookie=I}};function ne(){try{return new Ge}catch{}return new Xe}function Be(f){return function(){e.enableLogging&&f.apply(console,Array.prototype.slice.call(arguments))}}}function sd(t){const e=String.fromCodePoint(...t);return btoa(e)}class id extends $r{constructor(e){super(e)}GetAccessTokenAsync(){return this.getAccessTokenAsync()}}async function ad(){const t="silent-check-sso.html",e=await fetch(location.origin+"/"+t,{cache:"no-store"}).then(async n=>n.status===200).catch(()=>!1);return e||console.error(`O arquivo ${t} não foi localizado na raiz do projeto.`),e}let Ts;function ld(t){const e=new id(t),n={Instance:e,isAuthenticated:!1,userinfo:null,InitAsync:async(r={})=>await ad()?await e.init(r).then(async s=>(n.isAuthenticated=s,s)).catch(s=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(s),!1)):!1};return Ts=n,n}const Bn=()=>l.reactive(Ts),cd=t=>ld(t),ud=["data-cor"],dd={class:"sf-p-4"},fd=l.defineComponent({__name:"HeaderAvatar",emits:["logout"],setup(t,{emit:e}){const n=_s(),r=Bn(),o=l.ref("?"),s=e;async function i(){await n.CreateConfirmAsync({text:"Você deseja sair da conta?",confirmLabel:"sair"})&&s("logout")}function a(){var v;const d=(v=r.userinfo)==null?void 0:v.name;let m="?";if(!d)return m;const g=d.split(" ").filter(T=>T.length>0).map(T=>T[0].toUpperCase()),_=Math.min(2,g.length);return m=g.slice(0,_).join(""),m.length>0?m:"?"}const c=l.computed(()=>{const d=o.value[0],m=d==="?"?0:(d.charCodeAt(0)-64)%19;return Math.max(m,0)}),u=l.ref(!1);return l.onMounted(()=>{o.value=a()}),(d,m)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:"sf-header-avatar","data-cor":c.value,onClick:m[0]||(m[0]=g=>u.value=!0)},l.toDisplayString(o.value),9,ud),l.createVNode(yo,{visible:u.value,"onUpdate:visible":m[1]||(m[1]=g=>u.value=g),position:"right"},{title:l.withCtx(()=>[l.createTextVNode("Minha conta")]),default:l.withCtx(()=>{var g;return[l.createElementVNode("div",dd,[l.createTextVNode(l.toDisplayString((g=l.unref(r).userinfo)==null?void 0:g.name)+" ",1),l.createVNode(bo,{color:"error",onClick:i},{default:l.withCtx(()=>[l.createTextVNode("Sair")]),_:1})])]}),_:1},8,["visible"])],64))}}),md={},pd={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"},hd=[l.createElementVNode("path",{d:"m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z"},null,-1)];function gd(t,e){return l.openBlock(),l.createElementBlock("svg",pd,hd)}const yd=_n(md,[["render",gd]]);class bd{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 bt=new bd,vd=[l.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>',1)],wd=l.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...r)=>l.unref(bt).Toggle&&l.unref(bt).Toggle(...r))},vd))}}),Sd={id:"sf-layout"},_d=l.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1),kd={class:"title"},Cd={class:"sf-layout-nav-content"},Ed=l.createElementVNode("div",{class:"sf-layout-nav-footer"},[l.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1),Td=l.createElementVNode("section",{id:"sf-layout-page-title"},null,-1),Ad={id:"sf-layout-content"},Pd=l.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=rr(),r=e;return l.onMounted(()=>{r("mounted")}),(o,s)=>(l.openBlock(),l.createElementBlock("div",Sd,[l.createElementVNode("header",null,[l.createElementVNode("div",{class:l.normalizeClass(["sf-layout-menu-toggler",{invert:l.unref(n).IsVisible}]),onClick:s[0]||(s[0]=i=>l.unref(n).Toggle())},[_d,l.createVNode(yd)],2),l.createElementVNode("div",kd,[l.renderSlot(o.$slots,"title")]),l.renderSlot(o.$slots,"action"),l.createVNode(or,{text:"Tema"},{default:l.withCtx(()=>[l.createVNode(wd)]),_:1}),l.createVNode(fd,{onLogout:s[1]||(s[1]=i=>r("logout"))})]),l.createElementVNode("nav",{class:l.normalizeClass({visible:l.unref(n).IsVisible})},[l.createElementVNode("div",Cd,[l.renderSlot(o.$slots,"menu")]),Ed],2),l.createElementVNode("main",{class:l.normalizeClass({"menu-visible":l.unref(n).IsVisible})},[Td,l.createElementVNode("section",Ad,[l.renderSlot(o.$slots,"content")])],2)]))}}),Id=l.defineComponent({__name:"ScrollToTop",setup(t){const e=l.ref(!1),n=`--${+new Date}`;let r=null;function o(){r==null||r.scrollTo(0,0)}return l.onMounted(()=>{var s;r=((s=document.getElementById(n))==null?void 0:s.parentElement)??null,r&&r.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(s,i)=>(l.openBlock(),l.createElementBlock("button",{id:n,class:l.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:o},null,2))}}),xd=l.defineComponent({__name:"Content",props:{class:{},style:{},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new Ze("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new Ze("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new Ze("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function s(){return new Ze("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(i,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n()),style:l.normalizeStyle(e.style)},[l.createElementVNode("div",{class:l.normalizeClass(o())},[l.renderSlot(i.$slots,"header")],2),l.createElementVNode("div",{class:l.normalizeClass(r())},[l.renderSlot(i.$slots,"default"),l.createVNode(Id)],2),l.createElementVNode("div",{class:l.normalizeClass(s())},[l.renderSlot(i.$slots,"footer")],2)],6))}}),Od={class:"sf-tab-navigation"},Ld=[l.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"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)],$d=["data-active"],Rd=["href","onClick"],Nd=[l.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"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)],Bd=l.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=l.ref(null),r=new ResizeObserver(c=>{a()}),o=l.ref(!1),s=l.ref(!1);function i(c=!1){const u=n.value.clientWidth;n.value.scrollLeft+=c?-u:u}function a(){const c=n.value.scrollWidth-n.value.clientWidth;o.value=n.value.scrollLeft>10,s.value=n.value.scrollLeft<c-10}return l.onMounted(()=>{n.value.addEventListener("scroll",a),r.observe(n.value)}),l.onBeforeUnmount(()=>{var c;try{(c=n.value)==null||c.removeEventListener("scroll",a),r.unobserve(n.value),r.disconnect()}catch{}}),(c,u)=>{const d=l.resolveComponent("RouterLink");return l.openBlock(),l.createElementBlock("div",Od,[l.createElementVNode("div",{class:l.normalizeClass(["left-arrow",{active:o.value}]),onClick:u[0]||(u[0]=m=>i(!0))},Ld,2),l.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tabs,m=>(l.openBlock(),l.createBlock(d,{to:m.route,custom:!0},{default:l.withCtx(({navigate:g,isActive:_})=>[l.createElementVNode("li",{"data-active":_},[l.renderSlot(c.$slots,"item",{item:m,navigate:g,isActive:_},()=>[l.createElementVNode("a",{href:m.route,class:l.normalizeClass({active:_}),onClick:g},l.toDisplayString(m.text),11,Rd)])],8,$d)]),_:2},1032,["to"]))),256))],512),l.createElementVNode("div",{class:l.normalizeClass(["right-arrow",{active:s.value}]),onClick:u[1]||(u[1]=m=>i())},Nd,2)])}}}),Dd=["data-icon"],Md=l.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{},icon:{}},setup(t){const e=t,n=l.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}}),r=l.computed(()=>new Ze("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(o,s)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(r.value),"data-icon":n.value},[l.renderSlot(o.$slots,"default")],10,Dd))}});function Ud(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Hd(t,e){if(t&&e){const n=r=>{Ud(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Rr(t,e){if(t&&e){const n=r=>{t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Vd(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function Dn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function Mn(t,e={}){if(Dn(t)){const n=(r,o)=>{var s,i;const a=(s=t==null?void 0:t.$attrs)!=null&&s[r]?[(i=t==null?void 0:t.$attrs)==null?void 0:i[r]]:[];return[o].flat().reduce((c,u)=>{if(u!=null){const d=typeof u;if(d==="string"||d==="number")c.push(u);else if(d==="object"){const m=Array.isArray(u)?n(r,u):Object.entries(u).map(([g,_])=>r==="style"&&(_||_===0)?`${g.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${_}`:_?g:void 0);c=m.length?c.concat(m.filter(g=>!!g)):c}}return c},a)};Object.entries(e).forEach(([r,o])=>{if(o!=null){const s=r.match(/^on(.+)/);s?t.addEventListener(s[1].toLowerCase(),o):r==="p-bind"?Mn(t,o):(o=r==="class"?[...new Set(n("class",o))].join(" ").trim():r==="style"?n("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=o),t.setAttribute(r,o))}})}}function jd(t,e={},...n){{const r=document.createElement(t);return Mn(r,e),r.append(...n),r}}function Ve(t,e){return Dn(t)?t.matches(e)?t:t.querySelector(e):null}function en(t,e){t&&document.activeElement!==t&&t.focus(e)}function tn(t,e){if(Dn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function As(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 Fd(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function zd(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function Kd(t,e){return t?t.offsetHeight:0}function Wd(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Fd(t))}function Ps(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 qd(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Gd(t,e="",n){Dn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Is(){const t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.slice().map(o=>{o(n)})},clear(){t.clear()}}}function vt(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Nr(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=Array.isArray(t),r=Array.isArray(e),o,s,i;if(n&&r){if(s=t.length,s!=e.length)return!1;for(o=s;o--!==0;)if(!Nr(t[o],e[o]))return!1;return!0}if(n!=r)return!1;var a=t instanceof Date,c=e instanceof Date;if(a!=c)return!1;if(a&&c)return t.getTime()==e.getTime();var u=t instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==e.toString();var m=Object.keys(t);if(s=m.length,s!==Object.keys(e).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,m[o]))return!1;for(o=s;o--!==0;)if(i=m[o],!Nr(t[i],e[i]))return!1;return!0}return t!==t&&e!==e}function Br(t){return!!(t&&t.constructor&&t.call&&t.apply)}function J(t){return!vt(t)}function $t(t,e,n){return Nr(t,e)}function xs(t,e){let n;if(J(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function ct(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function xe(t,...e){return Br(t)?t(...e):t}function Se(t,e=!0){return typeof t=="string"&&(e||t!=="")}function je(t){return Se(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Dr(t,e="",n={}){const r=je(e).split("."),o=r.shift();return o?ct(t)?Dr(xe(t[Object.keys(t).find(s=>je(s)===o)||""],n),r.join("."),n):void 0:xe(t,n)}function Mr(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Os(t){return J(t)&&!isNaN(t)}function Yd(t=""){return J(t)&&t.length===1&&!!t.match(/\S| /)}function et(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function nn(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function Jd(t){return Se(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Ls(t){return Se(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function $s(t){return Se(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var Un={};function Xd(t="pui_id_"){return Un.hasOwnProperty(t)||(Un[t]=0),Un[t]++,`${t}${Un[t]}`}function Hn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Xd(t)}var Zd=Object.defineProperty,Qd=Object.defineProperties,ef=Object.getOwnPropertyDescriptors,Vn=Object.getOwnPropertySymbols,Rs=Object.prototype.hasOwnProperty,Ns=Object.prototype.propertyIsEnumerable,Bs=(t,e,n)=>e in t?Zd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rn=(t,e)=>{for(var n in e||(e={}))Rs.call(e,n)&&Bs(t,n,e[n]);if(Vn)for(var n of Vn(e))Ns.call(e,n)&&Bs(t,n,e[n]);return t},Ur=(t,e)=>Qd(t,ef(e)),on=(t,e)=>{var n={};for(var r in t)Rs.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Vn)for(var r of Vn(t))e.indexOf(r)<0&&Ns.call(t,r)&&(n[r]=t[r]);return n},tf=Is(),tt=tf;function Ds(t,e){Mr(t)?t.push(...e||[]):ct(t)&&Object.assign(t,e)}function nf(t){return ct(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function Ms(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(r=>e.endsWith(r))?t:`${t}`.trim().split(" ").map(s=>Os(s)?`${s}px`:s).join(" ")}function rf(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Hr(t="",e=""){return rf(`${Se(t,!1)&&Se(e,!1)?`${t}-`:t}${e}`)}function Us(t="",e=""){return`--${Hr(t,e)}`}function Hs(t,e="",n="",r=[],o){if(Se(t)){const s=/{([^}]*)}/g,i=t.trim();if(et(i,s)){const a=i.replaceAll(s,d=>{const g=d.replace(/{|}/g,"").split(".").filter(_=>!r.some(v=>et(_,v)));return`var(${Us(n,Ls(g.join("-")))}${J(o)?`, ${o}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,u=/var\([^)]+\)/g;return et(a.replace(u,"0"),c)?`calc(${a})`:a}return Ms(i,e)}else if(Os(t))return Ms(t,e)}function of(t,e,n){Se(e,!1)&&t.push(`${e}:${n};`)}function sn(t,e){return t?`${t}{${e}}`:""}var Vr=(...t)=>sf(te.getTheme(),...t),sf=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:s}=te.defaults||{},{prefix:i,transform:a}=(t==null?void 0:t.options)||s||{},u=et(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||a==="strict"?te.getTokenValue(e):Hs(u,void 0,i,[o.excludedKeyRegex],n)}return""};function af(t,e={}){const n=te.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:s=n.excludedKeyRegex}=e,i=(u,d="")=>Object.entries(u).reduce((m,[g,_])=>{const v=et(g,s)?Hr(d):Hr(d,Ls(g)),T=nf(_);if(ct(T)){const{variables:w,tokens:B}=i(T,v);Ds(m.tokens,B),Ds(m.variables,w)}else m.tokens.push((r?v.replace(`${r}-`,""):v).replaceAll("-",".")),of(m.variables,Us(v),Hs(T,v,r,[s]));return m},{variables:[],tokens:[]}),{variables:a,tokens:c}=i(t,r);return{value:a,tokens:c,declarations:a.join(""),css:sn(o,a.join(""))}}var Fe={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var r;return(r=e.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(t,e){return af(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var s,i,a,c;const{preset:u,options:d}=e;let m,g,_,v;if(J(u)){const{primitive:T,semantic:w}=u,B=w||{},{colorScheme:C}=B,A=on(B,["colorScheme"]),z=C||{},{dark:Z}=z,re=on(z,["dark"]),X=J(T)?this._toVariables({primitive:T},d):{},ye=J(A)?this._toVariables({semantic:A},d):{},ie=J(re)?this._toVariables({light:re},d):{},V=J(Z)?this._toVariables({dark:Z},d):{},[Le,ke]=[(s=X.declarations)!=null?s:"",X.tokens],[We,qe]=[(i=ye.declarations)!=null?i:"",ye.tokens||[]],[ft,nt]=[(a=ie.declarations)!=null?a:"",ie.tokens||[]],[Ge,Xe]=[(c=V.declarations)!=null?c:"",V.tokens||[]];m=this.transformCSS(t,Le,"light","variable",d,r,o),g=ke;const ne=this.transformCSS(t,`${We}${ft}color-scheme:light`,"light","variable",d,r,o),Be=this.transformCSS(t,`${Ge}color-scheme:dark`,"dark","variable",d,r,o);_=`${ne}${Be}`,v=[...new Set([...qe,...nt,...Xe])]}return{primitive:{css:m,tokens:g},semantic:{css:_,tokens:v}}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:s,selector:i}){var a,c,u;const d=t.replace("-directive",""),m=e,{colorScheme:g}=m,_=on(m,["colorScheme"]),v=g||{},{dark:T}=v,w=on(v,["dark"]),B=J(_)?this._toVariables({[d]:_},n):{},C=J(w)?this._toVariables({[d]:w},n):{},A=J(T)?this._toVariables({[d]:T},n):{},[z,Z]=[(a=B.declarations)!=null?a:"",B.tokens||[]],[re,X]=[(c=C.declarations)!=null?c:"",C.tokens||[]],[ye,ie]=[(u=A.declarations)!=null?u:"",A.tokens||[]],V=[...new Set([...Z,...X,...ie])],Le=this.transformCSS(d,`${z}${re}`,"light","variable",n,o,s,i),ke=this.transformCSS(d,ye,"dark","variable",n,o,s,i);return{css:`${Le}${ke}`,tokens:V}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var s;const{preset:i,options:a}=e,c=(s=i==null?void 0:i.components)==null?void 0:s[t];return this.getPreset({name:t,preset:c,options:a,params:n,set:r,defaults:o})},getPresetD({name:t="",theme:e={},params:n,set:r,defaults:o}){var s;const i=t.replace("-directive",""),{preset:a,options:c}=e,u=(s=a==null?void 0:a.directives)==null?void 0:s[i];return this.getPreset({name:i,preset:u,options:c,params:n,set:r,defaults:o})},getColorSchemeOption(t,e){var n;return this.regex.resolve((n=t.darkModeSelector)!=null?n:e.options.darkModeSelector)},getLayerOrder(t,e={},n,r){const{cssLayer:o}=e;return o?`@layer ${xe(o.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:s}){const i=this.getCommon({name:t,theme:e,params:n,set:o,defaults:s}),a=Object.entries(r).reduce((c,[u,d])=>c.push(`${u}="${d}"`)&&c,[]).join(" ");return Object.entries(i||{}).reduce((c,[u,d])=>{if(d!=null&&d.css){const m=nn(d==null?void 0:d.css),g=`${u}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${g}" ${a}>${m}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:s}){var i;const a={name:t,theme:e,params:n,set:o,defaults:s},c=(i=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:i.css,u=Object.entries(r).reduce((d,[m,g])=>d.push(`${m}="${g}"`)&&d,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${nn(c)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([s,i])=>{const a=et(s,e.variable.excludedKeyRegex)?n:n?`${n}.${$s(s)}`:$s(s),c=r?`${r}.${s}`:s;ct(i)?this.createTokens(i,e,a,c,o):(o[a]||(o[a]={paths:[],computed(u,d={}){if(u){const m=this.paths.find(g=>g.scheme===u)||this.paths.find(g=>g.scheme==="none");return m==null?void 0:m.computed(u,d.binding)}return this.paths.map(m=>m.computed(m.scheme,d[m.scheme]))}}),o[a].paths.push({path:c,value:i,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(u,d={}){const m=/{([^}]*)}/g;let g=i;if(d.name=this.path,d.binding||(d.binding={}),et(i,m)){const v=i.trim().replaceAll(m,B=>{var C,A;const z=B.replace(/{|}/g,"");return(A=(C=o[z])==null?void 0:C.computed(u,d))==null?void 0:A.value}),T=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,w=/var\([^)]+\)/g;g=et(v.replace(w,"0"),T)?`calc(${v})`:v}return vt(d.binding)&&delete d.binding,{colorScheme:u,path:this.path,paths:d,value:g.includes("undefined")?void 0:g}}}))}),o},getTokenValue(t,e,n){var r;const s=(c=>c.split(".").filter(d=>!et(d.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),i=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(r=t[s])==null?void 0:r.computed(i)].flat().filter(c=>c);return a.length===1?a[0].value:a.reduce((c={},u)=>{const d=u,{colorScheme:m}=d,g=on(d,["colorScheme"]);return c[m]=g,c},void 0)},transformCSS(t,e,n,r,o={},s,i,a){if(J(e)){const{cssLayer:c}=o;if(r!=="style"){const u=this.getColorSchemeOption(o,i),d=a?sn(a,e):e;e=n==="dark"?u.reduce((m,{selector:g})=>(J(g)&&(m+=g.includes("[CSS]")?g.replace("[CSS]",d):sn(g,d)),m),""):sn(a??":root",e)}if(c){const u={name:"primeui",order:"primeui"};ct(c)&&(u.name=xe(c.name,{name:t,type:r})),J(u.name)&&(e=sn(`@layer ${u.name}`,e),s==null||s.layerNames(u.name))}return e}return""}},te={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=Ur(rn({},e),{options:rn(rn({},this.defaults.options),e.options)}),this._tokens=Fe.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}),tt.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Ur(rn({},this.theme),{preset:t}),this._tokens=Fe.createTokens(t,this.defaults),this.clearLoadedStyleNames(),tt.emit("preset:change",t),tt.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Ur(rn({},this.theme),{options:t}),this.clearLoadedStyleNames(),tt.emit("options:change",t),tt.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 Fe.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Fe.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Fe.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Fe.getPresetD(n)},getCustomPreset(t="",e,n,r){const o={name:t,preset:e,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Fe.getPreset(o)},getLayerOrderCSS(t=""){return Fe.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return Fe.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Fe.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Fe.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),tt.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&tt.emit("theme:load"))}},ut={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function an(t){"@babel/helpers - typeof";return an=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},an(t)}function Vs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function js(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vs(Object(n),!0).forEach(function(r){lf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function lf(t,e,n){return(e=cf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cf(t){var e=uf(t,"string");return an(e)=="symbol"?e:e+""}function uf(t,e){if(an(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(an(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function df(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()?l.onMounted(t):e?t():l.nextTick(t)}var ff=0;function mf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=l.ref(!1),r=l.ref(t),o=l.ref(null),s=qd()?window.document:void 0,i=e.document,a=i===void 0?s:i,c=e.immediate,u=c===void 0?!0:c,d=e.manual,m=d===void 0?!1:d,g=e.name,_=g===void 0?"style_".concat(++ff):g,v=e.id,T=v===void 0?void 0:v,w=e.media,B=w===void 0?void 0:w,C=e.nonce,A=C===void 0?void 0:C,z=e.first,Z=z===void 0?!1:z,re=e.onMounted,X=re===void 0?void 0:re,ye=e.onUpdated,ie=ye===void 0?void 0:ye,V=e.onLoad,Le=V===void 0?void 0:V,ke=e.props,We=ke===void 0?{}:ke,qe=function(){},ft=function(Xe){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var Be=js(js({},We),ne),f=Be.name||_,h=Be.id||T,S=Be.nonce||A;o.value=a.querySelector('style[data-primevue-style-id="'.concat(f,'"]'))||a.getElementById(h)||a.createElement("style"),o.value.isConnected||(r.value=Xe||t,Mn(o.value,{type:"text/css",id:h,media:B,nonce:S}),Z?a.head.prepend(o.value):a.head.appendChild(o.value),Gd(o.value,"data-primevue-style-id",f),Mn(o.value,Be),o.value.onload=function(P){return Le==null?void 0:Le(P,{name:f})},X==null||X(f)),!n.value&&(qe=l.watch(r,function(P){o.value.textContent=P,ie==null||ie(f)},{immediate:!0}),n.value=!0)}},nt=function(){!a||!n.value||(qe(),Wd(o.value)&&a.head.removeChild(o.value),n.value=!1)};return u&&!m&&df(ft),{id:T,name:_,el:o,css:r,unload:nt,load:ft,isLoaded:l.readonly(n)}}function ln(t){"@babel/helpers - typeof";return ln=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},ln(t)}function Fs(t,e){return yf(t)||gf(t,e)||hf(t,e)||pf()}function pf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
71
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hf(t,e){if(t){if(typeof t=="string")return zs(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)?zs(t,e):void 0}}function zs(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function gf(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function yf(t){if(Array.isArray(t))return t}function Ks(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function jr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ks(Object(n),!0).forEach(function(r){bf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ks(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bf(t,e,n){return(e=vf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vf(t){var e=wf(t,"string");return ln(e)=="symbol"?e:e+""}function wf(t,e){if(ln(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ln(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Sf=function(e){var n=e.dt;return`
|
|
1
|
+
(function(j,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(j=typeof globalThis<"u"?globalThis:j||self,l((j.sf=j.sf||{},j.sf.prefeiturasp=j.sf.prefeiturasp||{},j.sf.prefeiturasp.vuecomponents={}),j.Vue))})(this,function(j,l){"use strict";var rh=Object.defineProperty;var oh=(j,l,Et)=>l in j?rh(j,l,{enumerable:!0,configurable:!0,writable:!0,value:Et}):j[l]=Et;var Ne=(j,l,Et)=>oh(j,typeof l!="symbol"?l+"":l,Et);class Et{constructor(){Ne(this,"_visible",l.ref(!1))}get IsVisible(){return this._visible.value===!0}Toggle(){this._visible.value=!this._visible.value}Close(){this._visible.value=!1}Open(){this._visible.value=!0}}const ma=new Et,tr=()=>ma,Sn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},pa={},ha={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"};function ga(t,e){return l.openBlock(),l.createElementBlock("svg",ha,e[0]||(e[0]=[l.createElementVNode("path",{d:"m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z"},null,-1)]))}const ya=Sn(pa,[["render",ga]]);class ba{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 mt=new ba,va=l.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...r)=>l.unref(mt).Toggle&&l.unref(mt).Toggle(...r))},n[1]||(n[1]=[l.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>',1)])))}});function po(t=[]){let e="body > *:not(script):not(style)";for(const r of t)e+=`, ${r}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(r=>{const o=getComputedStyle(r).zIndex;return+o==+o?+o:0}));return n>=100?n:100}const nr=l.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Ne(this,"zIndex");Ne(this,"wrapper");Ne(this,"inner");this.zIndex=po()+1,this.Render()}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${this.zIndex??0}`,this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.Position(i),this.wrapper.classList.add("visible")}Hide(){this.wrapper.classList.remove("visible"),this.wrapper.remove()}Position(i){const a=i.currentTarget.getBoundingClientRect();this.FixWidth();const c=this.wrapper,u=10;c.style.top=`${a.bottom-u}px`,c.style.left=`${a.right-u}px`,this.OutOfBottom()&&(c.style.top=`${a.top-c.clientHeight+u}px`),this.OutOfRight()&&(c.style.left=`${a.left-c.clientWidth+u}px`)}FixWidth(){this.wrapper.style.width="fit-content",this.wrapper.style.wordBreak="normal",this.wrapper.style.whiteSpace="nowrap";const i=window.innerWidth/2;this.wrapper.clientWidth>i&&(this.wrapper.style.width=`${i}px`,this.wrapper.style.wordBreak="break-word",this.wrapper.style.whiteSpace="normal")}OutOfBottom(){return this.wrapper.getBoundingClientRect().bottom>(window.innerHeight||document.documentElement.clientHeight)}OutOfRight(){return this.wrapper.getBoundingClientRect().right>(window.innerWidth||document.documentElement.clientWidth)-10}}const r=new n;return l.onBeforeUnmount(()=>{r.Hide()}),(o,i)=>(l.openBlock(),l.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...s)=>l.unref(r).Show&&l.unref(r).Show(...s)),onMouseleave:i[1]||(i[1]=(...s)=>l.unref(r).Hide&&l.unref(r).Hide(...s)),onMousedown:i[2]||(i[2]=(...s)=>l.unref(r).Hide&&l.unref(r).Hide(...s))},[l.renderSlot(o.$slots,"default")],32))}}),wa={id:"sf-layout"},Sa={class:"title"},_a={class:"sf-layout-nav-content"},ka={id:"sf-layout-content"},Ca=l.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=tr(),r=e;return l.onMounted(()=>{r("mounted")}),(o,i)=>(l.openBlock(),l.createElementBlock("div",wa,[l.createElementVNode("header",null,[l.createElementVNode("div",{class:l.normalizeClass(["sf-layout-menu-toggler",{invert:l.unref(n).IsVisible}]),onClick:i[0]||(i[0]=s=>l.unref(n).Toggle())},[i[1]||(i[1]=l.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1)),l.createVNode(ya)],2),l.createElementVNode("div",Sa,[l.renderSlot(o.$slots,"title")]),l.renderSlot(o.$slots,"action"),l.createVNode(nr,{text:"Tema"},{default:l.withCtx(()=>[l.createVNode(va)]),_:1})]),l.createElementVNode("nav",{class:l.normalizeClass({visible:l.unref(n).IsVisible})},[l.createElementVNode("div",_a,[l.renderSlot(o.$slots,"menu")]),i[2]||(i[2]=l.createElementVNode("div",{class:"sf-layout-nav-footer"},[l.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1))],2),l.createElementVNode("main",{class:l.normalizeClass({"menu-visible":l.unref(n).IsVisible})},[i[3]||(i[3]=l.createElementVNode("section",{id:"sf-layout-page-title"},null,-1)),l.createElementVNode("section",ka,[l.renderSlot(o.$slots,"content")])],2)]))}}),Ea={},Ta={class:"sf-loading-circle"};function Aa(t,e){return l.openBlock(),l.createElementBlock("div",Ta,e[0]||(e[0]=[l.createElementVNode("div",null,[l.createElementVNode("svg",{viewBox:"25 25 50 50"},[l.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const Pa=Sn(Ea,[["render",Aa]]);class Ze{constructor(e){Ne(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}const Ia=["disabled","tabindex"],Oa=["data-color"],_n=Sn(l.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{type:[Boolean,null,String,Object,Array],default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},size:{default:"md"},dot:{type:Boolean},dotColor:{default:"error"},filled:{type:Boolean},buttonProps:{},tooltip:{},color:{default:"inherit"}},setup(t){const e=t,n=l.computed(()=>e.tooltip?nr:"div"),r=l.computed(()=>new Ze(e.tooltip?"":"display-content").AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).Build()),o=l.computed(()=>new Ze(`${e.class} sf-icon`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-icon-button",e.button).AddClass("sf-icon-small",e.size==="sm").AddClass("sf-icon-medium",e.size==="md").AddClass("sf-icon-large",e.size==="lg").AddClass("sf-icon-xlarge",e.size==="xl").AddClass("sf-icon-2xlarge",e.size==="2xl").AddClass("sf-icon-3xlarge",e.size==="3xl").AddClass("sf-ripple",e.button===!0).AddClass(`${e.color}-color`,!!e.color&&e.color!=="inherit").Build());return(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.value),{text:e.tooltip,class:l.normalizeClass(r.value)},{default:l.withCtx(()=>[e.visible?(l.openBlock(),l.createElementBlock("div",{key:0,style:l.normalizeStyle(e.style),class:l.normalizeClass(o.value)},[l.createElementVNode("button",l.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(l.openBlock(),l.createBlock(Pa,{key:0})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(e.icon),1)],64))],16,Ia),e.dot?(l.openBlock(),l.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,Oa)):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-7ffc3790"]]),xa=l.defineComponent({__name:"ScrollToTop",setup(t){const e=l.ref(!1),n=`--${+new Date}`;let r=null;function o(){r==null||r.scrollTo(0,0)}return l.onMounted(()=>{var i;r=((i=document.getElementById(n))==null?void 0:i.parentElement)??null,r&&r.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(i,s)=>(l.openBlock(),l.createElementBlock("button",{id:n,class:l.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:o},null,2))}}),La=l.defineComponent({__name:"Content",props:{class:{},style:{type:[Boolean,null,String,Object,Array]},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new Ze("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new Ze("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new Ze("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new Ze("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(s,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n()),style:l.normalizeStyle(e.style)},[l.createElementVNode("div",{class:l.normalizeClass(o())},[l.renderSlot(s.$slots,"header")],2),l.createElementVNode("div",{class:l.normalizeClass(r())},[l.renderSlot(s.$slots,"default"),l.createVNode(xa)],2),l.createElementVNode("div",{class:l.normalizeClass(i())},[l.renderSlot(s.$slots,"footer")],2)],6))}}),Ra={class:"sf-tab-navigation"},$a=["data-active"],Ba=["href","onClick"],Na=l.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=l.ref(null),r=new ResizeObserver(c=>{a()}),o=l.ref(!1),i=l.ref(!1);function s(c=!1){const u=n.value.clientWidth;n.value.scrollLeft+=c?-u:u}function a(){const c=n.value.scrollWidth-n.value.clientWidth;o.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<c-10}return l.onMounted(()=>{n.value.addEventListener("scroll",a),r.observe(n.value)}),l.onBeforeUnmount(()=>{var c;try{(c=n.value)==null||c.removeEventListener("scroll",a),r.unobserve(n.value),r.disconnect()}catch{}}),(c,u)=>{const f=l.resolveComponent("RouterLink");return l.openBlock(),l.createElementBlock("div",Ra,[l.createElementVNode("div",{class:l.normalizeClass(["left-arrow",{active:o.value}]),onClick:u[0]||(u[0]=m=>s(!0))},u[2]||(u[2]=[l.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"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),l.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tabs,m=>(l.openBlock(),l.createBlock(f,{to:m.route,custom:!0},{default:l.withCtx(({navigate:v,isActive:_})=>[l.createElementVNode("li",{"data-active":_},[l.renderSlot(c.$slots,"item",{item:m,navigate:v,isActive:_},()=>[l.createElementVNode("a",{href:m.route,class:l.normalizeClass({active:_}),onClick:v},l.toDisplayString(m.text),11,Ba)])],8,$a)]),_:2},1032,["to"]))),256))],512),l.createElementVNode("div",{class:l.normalizeClass(["right-arrow",{active:i.value}]),onClick:u[1]||(u[1]=m=>s())},u[3]||(u[3]=[l.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"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),Da=["id","name","disabled","data-color","form","type"],Ma={class:"sf-button-label"},Ua=l.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{type:[Boolean,null,String,Object,Array]},disabled:{type:Boolean},loading:{type:Boolean},color:{default:"primary"},size:{default:"md"},variant:{default:"filled"},autofocus:{type:Boolean},form:{},name:{},id:{},type:{default:"button"},value:{},iconFilled:{type:Boolean}},setup(t){const e=t;function n(){return new Ze(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(r,o)=>e.visible?(l.openBlock(),l.createElementBlock("button",{key:0,id:e.id,name:e.name,class:l.normalizeClass(n()),style:l.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(l.openBlock(),l.createBlock(_n,{key:0,icon:e.icon,loading:e.loading,size:e.size,color:void 0,"button-props":{tabindex:-1},filled:e.iconFilled},null,8,["icon","loading","size","filled"])):e.loading?(l.openBlock(),l.createBlock(_n,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):l.createCommentVNode("",!0),l.createElementVNode("span",Ma,[l.renderSlot(r.$slots,"default")])],14,Da)):l.createCommentVNode("",!0)}});let Ha=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,n)=>(n&=63,n<36?e+=n.toString(36):n<62?e+=(n-26).toString(36).toUpperCase():n>62?e+="-":e+="_",e),"");const ja=["id"],Va={class:"sf-drawer-header"},Fa={class:"sf-drawer-title"},za={class:"sf-drawer-content"},Ka={key:0,class:"sf-drawer-footer"},Wa=l.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,r=e,o=l.useSlots(),i=l.ref(n.visible),s=l.ref(!1),a=l.ref(0),c=Ha();function u(){i.value=!1}function f(w){(w.key==="Escape"||w.code==="Escape")&&u()}function m(){r("open"),window.document.addEventListener("keydown",f,!0)}function v(w){a.value=po(),w.style.zIndex=`${a.value}`}function _(w){var N;r("before-close"),(N=w==null?void 0:w.parentElement)==null||N.classList.add("sf-mask-overlay-leave")}function b(){window.document.removeEventListener("keydown",f,!0),s.value=!1}function O(){return new Ze("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return l.watch(()=>n.visible,w=>{i.value=w}),l.watch(()=>i.value,w=>{r("update:visible",w),w&&(s.value=!0)}),(w,N)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[s.value?(l.openBlock(),l.createElementBlock("div",{key:0,id:l.unref(c),class:l.normalizeClass(O()),style:l.normalizeStyle({zIndex:a.value-1}),onClick:l.withModifiers(u,["stop"])},[l.createVNode(l.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:v,onEnter:m,onBeforeLeave:_,onAfterLeave:b},{default:l.withCtx(()=>[i.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!l.unref(o).footer}]),style:l.normalizeStyle(n.style),role:"dialog",onClick:N[0]||(N[0]=l.withModifiers(C=>w.void,["stop"]))},[l.createElementVNode("div",Va,[l.createElementVNode("span",Fa,[l.renderSlot(w.$slots,"title")]),l.createVNode(_n,{button:!0,icon:"close",onClick:l.withModifiers(u,["stop"])})]),l.createElementVNode("div",za,[l.renderSlot(w.$slots,"default")]),l.unref(o).footer?(l.openBlock(),l.createElementBlock("div",Ka,[l.renderSlot(w.$slots,"footer")])):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:3})],14,ja)):l.createCommentVNode("",!0)]))}}),qa=["data-icon"],Ga=l.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=l.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}}),r=l.computed(()=>new Ze("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(o,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(r.value),"data-icon":n.value},[l.renderSlot(o.$slots,"default")],10,qa))}});function Ya(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Ja(t,e){if(t&&e){const n=r=>{Ya(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function rr(t,e){if(t&&e){const n=r=>{t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Xa(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function kn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function Cn(t,e={}){if(kn(t)){const n=(r,o)=>{var i,s;const a=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(s=t==null?void 0:t.$attrs)==null?void 0:s[r]]:[];return[o].flat().reduce((c,u)=>{if(u!=null){const f=typeof u;if(f==="string"||f==="number")c.push(u);else if(f==="object"){const m=Array.isArray(u)?n(r,u):Object.entries(u).map(([v,_])=>r==="style"&&(_||_===0)?`${v.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${_}`:_?v:void 0);c=m.length?c.concat(m.filter(v=>!!v)):c}}return c},a)};Object.entries(e).forEach(([r,o])=>{if(o!=null){const i=r.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),o):r==="p-bind"?Cn(t,o):(o=r==="class"?[...new Set(n("class",o))].join(" ").trim():r==="style"?n("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=o),t.setAttribute(r,o))}})}}function Za(t,e={},...n){{const r=document.createElement(t);return Cn(r,e),r.append(...n),r}}function De(t,e){return kn(t)?t.matches(e)?t:t.querySelector(e):null}function Ht(t,e){t&&document.activeElement!==t&&t.focus(e)}function jt(t,e){if(kn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function ho(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 Qa(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function el(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function tl(t,e){return t?t.offsetHeight:0}function nl(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Qa(t))}function go(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 rl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ol(t,e="",n){kn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function yo(){const t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.slice().map(o=>{o(n)})},clear(){t.clear()}}}function pt(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function or(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=Array.isArray(t),r=Array.isArray(e),o,i,s;if(n&&r){if(i=t.length,i!=e.length)return!1;for(o=i;o--!==0;)if(!or(t[o],e[o]))return!1;return!0}if(n!=r)return!1;var a=t instanceof Date,c=e instanceof Date;if(a!=c)return!1;if(a&&c)return t.getTime()==e.getTime();var u=t instanceof RegExp,f=e instanceof RegExp;if(u!=f)return!1;if(u&&f)return t.toString()==e.toString();var m=Object.keys(t);if(i=m.length,i!==Object.keys(e).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,m[o]))return!1;for(o=i;o--!==0;)if(s=m[o],!or(t[s],e[s]))return!1;return!0}return t!==t&&e!==e}function ir(t){return!!(t&&t.constructor&&t.call&&t.apply)}function J(t){return!pt(t)}function Tt(t,e,n){return or(t,e)}function bo(t,e){let n;if(J(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function it(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Te(t,...e){return ir(t)?t(...e):t}function be(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Me(t){return be(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function sr(t,e="",n={}){const r=Me(e).split("."),o=r.shift();return o?it(t)?sr(Te(t[Object.keys(t).find(i=>Me(i)===o)||""],n),r.join("."),n):void 0:Te(t,n)}function ar(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function vo(t){return J(t)&&!isNaN(t)}function il(t=""){return J(t)&&t.length===1&&!!t.match(/\S| /)}function Qe(t,e){if(e){const 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,":")}function sl(t){return be(t,!1)?t[0].toUpperCase()+t.slice(1):t}function wo(t){return be(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function So(t){return be(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var En={};function al(t="pui_id_"){return En.hasOwnProperty(t)||(En[t]=0),En[t]++,`${t}${En[t]}`}function Tn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return al(t)}var ll=Object.defineProperty,cl=Object.defineProperties,ul=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,_o=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable,Co=(t,e,n)=>e in t?ll(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ft=(t,e)=>{for(var n in e||(e={}))_o.call(e,n)&&Co(t,n,e[n]);if(An)for(var n of An(e))ko.call(e,n)&&Co(t,n,e[n]);return t},lr=(t,e)=>cl(t,ul(e)),zt=(t,e)=>{var n={};for(var r in t)_o.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&An)for(var r of An(t))e.indexOf(r)<0&&ko.call(t,r)&&(n[r]=t[r]);return n},dl=yo(),et=dl;function Eo(t,e){ar(t)?t.push(...e||[]):it(t)&&Object.assign(t,e)}function fl(t){return it(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function To(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(r=>e.endsWith(r))?t:`${t}`.trim().split(" ").map(i=>vo(i)?`${i}px`:i).join(" ")}function ml(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function cr(t="",e=""){return ml(`${be(t,!1)&&be(e,!1)?`${t}-`:t}${e}`)}function Ao(t="",e=""){return`--${cr(t,e)}`}function Po(t,e="",n="",r=[],o){if(be(t)){const i=/{([^}]*)}/g,s=t.trim();if(Qe(s,i)){const a=s.replaceAll(i,f=>{const v=f.replace(/{|}/g,"").split(".").filter(_=>!r.some(b=>Qe(_,b)));return`var(${Ao(n,wo(v.join("-")))}${J(o)?`, ${o}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,u=/var\([^)]+\)/g;return Qe(a.replace(u,"0"),c)?`calc(${a})`:a}return To(s,e)}else if(vo(t))return To(t,e)}function pl(t,e,n){be(e,!1)&&t.push(`${e}:${n};`)}function Kt(t,e){return t?`${t}{${e}}`:""}var ur=(...t)=>hl(te.getTheme(),...t),hl=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:i}=te.defaults||{},{prefix:s,transform:a}=(t==null?void 0:t.options)||i||{},u=Qe(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||a==="strict"?te.getTokenValue(e):Po(u,void 0,s,[o.excludedKeyRegex],n)}return""};function gl(t,e={}){const n=te.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,s=(u,f="")=>Object.entries(u).reduce((m,[v,_])=>{const b=Qe(v,i)?cr(f):cr(f,wo(v)),O=fl(_);if(it(O)){const{variables:w,tokens:N}=s(O,b);Eo(m.tokens,N),Eo(m.variables,w)}else m.tokens.push((r?b.replace(`${r}-`,""):b).replaceAll("-",".")),pl(m.variables,Ao(b),Po(O,b,r,[i]));return m},{variables:[],tokens:[]}),{variables:a,tokens:c}=s(t,r);return{value:a,tokens:c,declarations:a.join(""),css:Kt(o,a.join(""))}}var Ue={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var r;return(r=e.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(t,e){return gl(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s,a,c;const{preset:u,options:f}=e;let m,v,_,b;if(J(u)){const{primitive:O,semantic:w}=u,N=w||{},{colorScheme:C}=N,T=zt(N,["colorScheme"]),z=C||{},{dark:Q}=z,re=zt(z,["dark"]),Z=J(O)?this._toVariables({primitive:O},f):{},ge=J(T)?this._toVariables({semantic:T},f):{},ie=J(re)?this._toVariables({light:re},f):{},H=J(Q)?this._toVariables({dark:Q},f):{},[Le,_e]=[(i=Z.declarations)!=null?i:"",Z.tokens],[Ke,We]=[(s=ge.declarations)!=null?s:"",ge.tokens||[]],[ft,nt]=[(a=ie.declarations)!=null?a:"",ie.tokens||[]],[qe,Je]=[(c=H.declarations)!=null?c:"",H.tokens||[]];m=this.transformCSS(t,Le,"light","variable",f,r,o),v=_e;const ne=this.transformCSS(t,`${Ke}${ft}color-scheme:light`,"light","variable",f,r,o),Be=this.transformCSS(t,`${qe}color-scheme:dark`,"dark","variable",f,r,o);_=`${ne}${Be}`,b=[...new Set([...We,...nt,...Je])]}return{primitive:{css:m,tokens:v},semantic:{css:_,tokens:b}}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:s}){var a,c,u;const f=t.replace("-directive",""),m=e,{colorScheme:v}=m,_=zt(m,["colorScheme"]),b=v||{},{dark:O}=b,w=zt(b,["dark"]),N=J(_)?this._toVariables({[f]:_},n):{},C=J(w)?this._toVariables({[f]:w},n):{},T=J(O)?this._toVariables({[f]:O},n):{},[z,Q]=[(a=N.declarations)!=null?a:"",N.tokens||[]],[re,Z]=[(c=C.declarations)!=null?c:"",C.tokens||[]],[ge,ie]=[(u=T.declarations)!=null?u:"",T.tokens||[]],H=[...new Set([...Q,...Z,...ie])],Le=this.transformCSS(f,`${z}${re}`,"light","variable",n,o,i,s),_e=this.transformCSS(f,ge,"dark","variable",n,o,i,s);return{css:`${Le}${_e}`,tokens:H}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;const{preset:s,options:a}=e,c=(i=s==null?void 0:s.components)==null?void 0:i[t];return this.getPreset({name:t,preset:c,options:a,params:n,set:r,defaults:o})},getPresetD({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;const s=t.replace("-directive",""),{preset:a,options:c}=e,u=(i=a==null?void 0:a.directives)==null?void 0:i[s];return this.getPreset({name:s,preset:u,options:c,params:n,set:r,defaults:o})},getColorSchemeOption(t,e){var n;return this.regex.resolve((n=t.darkModeSelector)!=null?n:e.options.darkModeSelector)},getLayerOrder(t,e={},n,r){const{cssLayer:o}=e;return o?`@layer ${Te(o.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){const s=this.getCommon({name:t,theme:e,params:n,set:o,defaults:i}),a=Object.entries(r).reduce((c,[u,f])=>c.push(`${u}="${f}"`)&&c,[]).join(" ");return Object.entries(s||{}).reduce((c,[u,f])=>{if(f!=null&&f.css){const m=Vt(f==null?void 0:f.css),v=`${u}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${v}" ${a}>${m}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){var s;const a={name:t,theme:e,params:n,set:o,defaults:i},c=(s=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:s.css,u=Object.entries(r).reduce((f,[m,v])=>f.push(`${m}="${v}"`)&&f,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${Vt(c)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([i,s])=>{const a=Qe(i,e.variable.excludedKeyRegex)?n:n?`${n}.${So(i)}`:So(i),c=r?`${r}.${i}`:i;it(s)?this.createTokens(s,e,a,c,o):(o[a]||(o[a]={paths:[],computed(u,f={}){if(u){const m=this.paths.find(v=>v.scheme===u)||this.paths.find(v=>v.scheme==="none");return m==null?void 0:m.computed(u,f.binding)}return this.paths.map(m=>m.computed(m.scheme,f[m.scheme]))}}),o[a].paths.push({path:c,value:s,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(u,f={}){const m=/{([^}]*)}/g;let v=s;if(f.name=this.path,f.binding||(f.binding={}),Qe(s,m)){const b=s.trim().replaceAll(m,N=>{var C,T;const z=N.replace(/{|}/g,"");return(T=(C=o[z])==null?void 0:C.computed(u,f))==null?void 0:T.value}),O=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,w=/var\([^)]+\)/g;v=Qe(b.replace(w,"0"),O)?`calc(${b})`:b}return pt(f.binding)&&delete f.binding,{colorScheme:u,path:this.path,paths:f,value:v.includes("undefined")?void 0:v}}}))}),o},getTokenValue(t,e,n){var r;const i=(c=>c.split(".").filter(f=>!Qe(f.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),s=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(r=t[i])==null?void 0:r.computed(s)].flat().filter(c=>c);return a.length===1?a[0].value:a.reduce((c={},u)=>{const f=u,{colorScheme:m}=f,v=zt(f,["colorScheme"]);return c[m]=v,c},void 0)},transformCSS(t,e,n,r,o={},i,s,a){if(J(e)){const{cssLayer:c}=o;if(r!=="style"){const u=this.getColorSchemeOption(o,s),f=a?Kt(a,e):e;e=n==="dark"?u.reduce((m,{selector:v})=>(J(v)&&(m+=v.includes("[CSS]")?v.replace("[CSS]",f):Kt(v,f)),m),""):Kt(a??":root",e)}if(c){const u={name:"primeui",order:"primeui"};it(c)&&(u.name=Te(c.name,{name:t,type:r})),J(u.name)&&(e=Kt(`@layer ${u.name}`,e),i==null||i.layerNames(u.name))}return e}return""}},te={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=lr(Ft({},e),{options:Ft(Ft({},this.defaults.options),e.options)}),this._tokens=Ue.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}),et.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=lr(Ft({},this.theme),{preset:t}),this._tokens=Ue.createTokens(t,this.defaults),this.clearLoadedStyleNames(),et.emit("preset:change",t),et.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=lr(Ft({},this.theme),{options:t}),this.clearLoadedStyleNames(),et.emit("options:change",t),et.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 Ue.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Ue.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ue.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ue.getPresetD(n)},getCustomPreset(t="",e,n,r){const o={name:t,preset:e,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ue.getPreset(o)},getLayerOrderCSS(t=""){return Ue.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return Ue.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Ue.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Ue.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),et.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&et.emit("theme:load"))}},st={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function Wt(t){"@babel/helpers - typeof";return Wt=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},Wt(t)}function Io(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Oo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Io(Object(n),!0).forEach(function(r){yl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function yl(t,e,n){return(e=bl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bl(t){var e=vl(t,"string");return Wt(e)=="symbol"?e:e+""}function vl(t,e){if(Wt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Wt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()?l.onMounted(t):e?t():l.nextTick(t)}var Sl=0;function _l(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=l.ref(!1),r=l.ref(t),o=l.ref(null),i=rl()?window.document:void 0,s=e.document,a=s===void 0?i:s,c=e.immediate,u=c===void 0?!0:c,f=e.manual,m=f===void 0?!1:f,v=e.name,_=v===void 0?"style_".concat(++Sl):v,b=e.id,O=b===void 0?void 0:b,w=e.media,N=w===void 0?void 0:w,C=e.nonce,T=C===void 0?void 0:C,z=e.first,Q=z===void 0?!1:z,re=e.onMounted,Z=re===void 0?void 0:re,ge=e.onUpdated,ie=ge===void 0?void 0:ge,H=e.onLoad,Le=H===void 0?void 0:H,_e=e.props,Ke=_e===void 0?{}:_e,We=function(){},ft=function(Je){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var Be=Oo(Oo({},Ke),ne),d=Be.name||_,h=Be.id||O,S=Be.nonce||T;o.value=a.querySelector('style[data-primevue-style-id="'.concat(d,'"]'))||a.getElementById(h)||a.createElement("style"),o.value.isConnected||(r.value=Je||t,Cn(o.value,{type:"text/css",id:h,media:N,nonce:S}),Q?a.head.prepend(o.value):a.head.appendChild(o.value),ol(o.value,"data-primevue-style-id",d),Cn(o.value,Be),o.value.onload=function(P){return Le==null?void 0:Le(P,{name:d})},Z==null||Z(d)),!n.value&&(We=l.watch(r,function(P){o.value.textContent=P,ie==null||ie(d)},{immediate:!0}),n.value=!0)}},nt=function(){!a||!n.value||(We(),nl(o.value)&&a.head.removeChild(o.value),n.value=!1)};return u&&!m&&wl(ft),{id:O,name:_,el:o,css:r,unload:nt,load:ft,isLoaded:l.readonly(n)}}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 xo(t,e){return Tl(t)||El(t,e)||Cl(t,e)||kl()}function kl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cl(t,e){if(t){if(typeof t=="string")return Lo(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)?Lo(t,e):void 0}}function Lo(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function El(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function Tl(t){if(Array.isArray(t))return t}function Ro(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function dr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ro(Object(n),!0).forEach(function(r){Al(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Al(t,e,n){return(e=Pl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pl(t){var e=Il(t,"string");return qt(e)=="symbol"?e:e+""}function Il(t,e){if(qt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(qt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ol=function(e){var n=e.dt;return`
|
|
72
3
|
* {
|
|
73
4
|
box-sizing: border-box;
|
|
74
5
|
}
|
|
@@ -187,7 +118,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
187
118
|
background: transparent;
|
|
188
119
|
}
|
|
189
120
|
}
|
|
190
|
-
`)},
|
|
121
|
+
`)},xl=function(e){var n=e.dt;return`
|
|
191
122
|
.p-hidden-accessible {
|
|
192
123
|
border: 0;
|
|
193
124
|
clip: rect(0 0 0 0);
|
|
@@ -208,8 +139,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
208
139
|
overflow: hidden;
|
|
209
140
|
padding-right: `.concat(n("scrollbar.width"),`;
|
|
210
141
|
}
|
|
211
|
-
`)},
|
|
212
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gs(t,e){if(t){if(typeof t=="string")return Ys(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)?Ys(t,e):void 0}}function Ys(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Af(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function Js(t){if(Array.isArray(t))return t}function Xs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xs(Object(n),!0).forEach(function(r){Fn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Fn(t,e,n){return(e=Pf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pf(t){var e=If(t,"string");return cn(e)=="symbol"?e:e+""}function If(t,e){if(cn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(cn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var zn={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var n=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return n._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,beforeCreate:function(){var e,n,r,o,s,i,a,c,u,d,m,g=(e=this.pt)===null||e===void 0?void 0:e._usept,_=g?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,v=g?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=v||_)===null||o===void 0||(o=o.hooks)===null||o===void 0||(s=o.onBeforeCreate)===null||s===void 0||s.call(o);var T=(i=this.$primevueConfig)===null||i===void 0||(i=i.pt)===null||i===void 0?void 0:i._usept,w=T?(a=this.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a.originalValue:void 0,B=T?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(d=B||w)===null||d===void 0||(d=d[this.$.type.name])===null||d===void 0||(d=d.hooks)===null||d===void 0||(m=d.onBeforeCreate)===null||m===void 0||m.call(d)},created:function(){this._hook("onCreated")},beforeMount:function(){this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this.rootEl=Ve(this.$el,'[data-pc-name="'.concat(je(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=q({name:this.$.type.name},this.$params)),this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Br(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,n=function(){ut.isStyleNameLoaded("base")||(ge.loadCSS(e.$styleOptions),e._loadGlobalStyles(),ut.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!ut.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(Ws.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),ut.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);J(e)&&ge.load(e,q({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!te.isStyleNameLoaded("common")){var r,o,s=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},i=s.primitive,a=s.semantic;ge.load(i==null?void 0:i.css,q({name:"primitive-variables"},this.$styleOptions)),ge.load(a==null?void 0:a.css,q({name:"semantic-variables"},this.$styleOptions)),ge.loadTheme(q({name:"global-style"},this.$styleOptions)),te.setLoadedStyleName("common")}if(!te.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var c,u,d,m,g=((c=this.$style)===null||c===void 0||(u=c.getComponentTheme)===null||u===void 0?void 0:u.call(c))||{},_=g.css;(d=this.$style)===null||d===void 0||d.load(_,q({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(m=this.$style)===null||m===void 0||m.loadTheme(q({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),te.setLoadedStyleName(this.$style.name)}if(!te.isStyleNameLoaded("layer-order")){var v,T,w=(v=this.$style)===null||v===void 0||(T=v.getLayerOrderThemeCSS)===null||T===void 0?void 0:T.call(v);ge.load(w,q({name:"layer-order",first:!0},this.$styleOptions)),te.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,s=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},i=s.css,a=(o=this.$style)===null||o===void 0?void 0:o.load(i,q({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=a.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};ut.clearLoadedStyleNames(),tt.on("theme:change",e)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Dr(e,n,r)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=/./g.test(r)&&!!o[r.split(".")[0]],a=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},c=a.mergeSections,u=c===void 0?!0:c,d=a.mergeProps,m=d===void 0?!1:d,g=s?i?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,_=i?void 0:this._getPTSelf(n,this._getPTClassValue,r,q(q({},o),{},{global:g||{}})),v=this._getPTDatasets(r);return u||!u&&_?m?this._mergeProps(m,g,_,v):q(q(q({},g),_),v):q(q({},_),v)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o="data-pc-",s=r==="root"&&J((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&q(q({},r==="root"&&q(Fn({},"".concat(o,"name"),je(s?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),s&&Fn({},"".concat(o,"extend"),je(this.$.type.name)))),{},Fn({},"".concat(o,"section"),je(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return Se(e)||Mr(e)?{class:e}:e},_getPT:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,s=function(a){var c,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=o?o(a):a,m=je(r),g=je(n.$name);return(c=u?m!==g?d==null?void 0:d[m]:void 0:d==null?void 0:d[m])!==null&&c!==void 0?c:d};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:s(e.originalValue),value:s(e.value)}:s(e,!0)},_usePT:function(e,n,r,o){var s=function(T){return n(T,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var i,a=e._usept||((i=this.$primevueConfig)===null||i===void 0?void 0:i.ptOptions)||{},c=a.mergeSections,u=c===void 0?!0:c,d=a.mergeProps,m=d===void 0?!1:d,g=s(e.originalValue),_=s(e.value);return g===void 0&&_===void 0?void 0:Se(_)?_:Se(g)?g:u||!u&&_?m?this._mergeProps(m,g,_):q(q({},g),_):_}return s(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},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,q(q({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return l.mergeProps(this.$_attrsWithoutPT,this.ptm(e,n))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,q({instance:this},r),!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,q(q({},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,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var o=this._getOptionValue(this.$style.inlineStyles,e,q(q({},this.$params),r)),s=this._getOptionValue(Ws.inlineStyles,e,q(q({},this.$params),r));return[s,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return xe(r,{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(r){return n._getOptionValue(r,n.$name,q({},n.$params))||xe(r,q({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return q(q({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=jn(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=jn(n,2),o=r[0],s=r[1],i=o.split(":"),a=Ef(i),c=a.slice(1);return c==null||c.reduce(function(u,d,m,g){return!u[d]&&(u[d]=m===g.length-1?s:{}),u[d]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=jn(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=jn(n,2),o=r[0],s=r[1];return e[o]=s,e},{})},$attrSelector:function(){return Hn("pc")}}},xf=`
|
|
142
|
+
`)},Ll={},Rl={},pe={name:"base",css:xl,theme:Ol,classes:Ll,inlineStyles:Rl,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i},o=r(Te(e,{dt:ur}));return o?_l(Vt(o),dr({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadTheme:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.theme,n,function(r){return te.transformCSS(n.name||e.name,r)})},getCommonTheme:function(e){return te.getCommon(this.name,e)},getComponentTheme:function(e){return te.getComponent(this.name,e)},getDirectiveTheme:function(e){return te.getDirective(this.name,e)},getPresetTheme:function(e,n,r){return te.getCustomPreset(this.name,e,n,r)},getLayerOrderThemeCSS:function(){return te.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 r=Te(this.css,{dt:ur}),o=Vt("".concat(r).concat(e)),i=Object.entries(n).reduce(function(s,a){var c=xo(a,2),u=c[0],f=c[1];return s.push("".concat(u,'="').concat(f,'"'))&&s},[]).join(" ");return'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(o,"</style>")}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return te.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[te.getStyleSheet(this.name,e,n)];if(this.theme){var o=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=Te(this.theme,{dt:ur}),s=Vt(te.transformCSS(o,i)),a=Object.entries(n).reduce(function(c,u){var f=xo(u,2),m=f[0],v=f[1];return c.push("".concat(m,'="').concat(v,'"'))&&c},[]).join(" ");r.push('<style type="text/css" data-primevue-style-id="'.concat(o,'" ').concat(a,">").concat(s,"</style>"))}return r.join("")},extend:function(e){return dr(dr({},this),{},{css:void 0,theme:void 0},e)}},$o=pe.extend({name:"common"});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 $l(t){return Mo(t)||Bl(t)||No(t)||Bo()}function Bl(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Pn(t,e){return Mo(t)||Nl(t,e)||No(t,e)||Bo()}function Bo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
143
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function No(t,e){if(t){if(typeof t=="string")return Do(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)?Do(t,e):void 0}}function Do(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Nl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function Mo(t){if(Array.isArray(t))return t}function Uo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Uo(Object(n),!0).forEach(function(r){In(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function In(t,e,n){return(e=Dl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dl(t){var e=Ml(t,"string");return Gt(e)=="symbol"?e:e+""}function Ml(t,e){if(Gt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Gt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var On={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var n=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return n._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,beforeCreate:function(){var e,n,r,o,i,s,a,c,u,f,m,v=(e=this.pt)===null||e===void 0?void 0:e._usept,_=v?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,b=v?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=b||_)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var O=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,w=O?(a=this.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a.originalValue:void 0,N=O?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(f=N||w)===null||f===void 0||(f=f[this.$.type.name])===null||f===void 0||(f=f.hooks)===null||f===void 0||(m=f.onBeforeCreate)===null||m===void 0||m.call(f)},created:function(){this._hook("onCreated")},beforeMount:function(){this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this.rootEl=De(this.$el,'[data-pc-name="'.concat(Me(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=q({name:this.$.type.name},this.$params)),this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return ir(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,n=function(){st.isStyleNameLoaded("base")||(pe.loadCSS(e.$styleOptions),e._loadGlobalStyles(),st.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!st.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&($o.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),st.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);J(e)&&pe.load(e,q({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!te.isStyleNameLoaded("common")){var r,o,i=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},s=i.primitive,a=i.semantic;pe.load(s==null?void 0:s.css,q({name:"primitive-variables"},this.$styleOptions)),pe.load(a==null?void 0:a.css,q({name:"semantic-variables"},this.$styleOptions)),pe.loadTheme(q({name:"global-style"},this.$styleOptions)),te.setLoadedStyleName("common")}if(!te.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var c,u,f,m,v=((c=this.$style)===null||c===void 0||(u=c.getComponentTheme)===null||u===void 0?void 0:u.call(c))||{},_=v.css;(f=this.$style)===null||f===void 0||f.load(_,q({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(m=this.$style)===null||m===void 0||m.loadTheme(q({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),te.setLoadedStyleName(this.$style.name)}if(!te.isStyleNameLoaded("layer-order")){var b,O,w=(b=this.$style)===null||b===void 0||(O=b.getLayerOrderThemeCSS)===null||O===void 0?void 0:O.call(b);pe.load(w,q({name:"layer-order",first:!0},this.$styleOptions)),te.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,i=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},s=i.css,a=(o=this.$style)===null||o===void 0?void 0:o.load(s,q({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=a.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};st.clearLoadedStyleNames(),et.on("theme:change",e)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return sr(e,n,r)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=/./g.test(r)&&!!o[r.split(".")[0]],a=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},c=a.mergeSections,u=c===void 0?!0:c,f=a.mergeProps,m=f===void 0?!1:f,v=i?s?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,_=s?void 0:this._getPTSelf(n,this._getPTClassValue,r,q(q({},o),{},{global:v||{}})),b=this._getPTDatasets(r);return u||!u&&_?m?this._mergeProps(m,v,_,b):q(q(q({},v),_),b):q(q({},_),b)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o="data-pc-",i=r==="root"&&J((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&q(q({},r==="root"&&q(In({},"".concat(o,"name"),Me(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&In({},"".concat(o,"extend"),Me(this.$.type.name)))),{},In({},"".concat(o,"section"),Me(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return be(e)||ar(e)?{class:e}:e},_getPT:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=function(a){var c,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=o?o(a):a,m=Me(r),v=Me(n.$name);return(c=u?m!==v?f==null?void 0:f[m]:void 0:f==null?void 0:f[m])!==null&&c!==void 0?c:f};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,r,o){var i=function(O){return n(O,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var s,a=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},c=a.mergeSections,u=c===void 0?!0:c,f=a.mergeProps,m=f===void 0?!1:f,v=i(e.originalValue),_=i(e.value);return v===void 0&&_===void 0?void 0:be(_)?_:be(v)?v:u||!u&&_?m?this._mergeProps(m,v,_):q(q({},v),_):_}return i(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},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,q(q({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return l.mergeProps(this.$_attrsWithoutPT,this.ptm(e,n))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,q({instance:this},r),!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,q(q({},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,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var o=this._getOptionValue(this.$style.inlineStyles,e,q(q({},this.$params),r)),i=this._getOptionValue($o.inlineStyles,e,q(q({},this.$params),r));return[i,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return Te(r,{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(r){return n._getOptionValue(r,n.$name,q({},n.$params))||Te(r,q({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return q(q({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Pn(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=Pn(n,2),o=r[0],i=r[1],s=o.split(":"),a=$l(s),c=a.slice(1);return c==null||c.reduce(function(u,f,m,v){return!u[f]&&(u[f]=m===v.length-1?i:{}),u[f]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Pn(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=Pn(n,2),o=r[0],i=r[1];return e[o]=i,e},{})},$attrSelector:function(){return Tn("pc")}}},Ul=`
|
|
213
144
|
.p-icon {
|
|
214
145
|
display: inline-block;
|
|
215
146
|
vertical-align: baseline;
|
|
@@ -241,7 +172,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
241
172
|
transform: rotate(359deg);
|
|
242
173
|
}
|
|
243
174
|
}
|
|
244
|
-
`,
|
|
175
|
+
`,Hl=pe.extend({name:"baseicon",css:Ul});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 Ho(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function jo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ho(Object(n),!0).forEach(function(r){jl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ho(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function jl(t,e,n){return(e=Vl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vl(t){var e=Fl(t,"string");return Yt(e)=="symbol"?e:e+""}function Fl(t,e){if(Yt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Yt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Vo={name:"BaseIcon",extends:On,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:Hl,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=pt(this.label);return jo(jo({},!this.isUnstyled&&{class:["p-icon",{"p-icon-spin":this.spin}]}),{},{role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e})}}},fr={name:"ChevronDownIcon",extends:Vo},zl=l.createElementVNode("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1),Kl=[zl];function Wl(t,e,n,r,o,i){return l.openBlock(),l.createElementBlock("svg",l.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Kl,16)}fr.render=Wl;var mr={name:"ChevronRightIcon",extends:Vo},ql=l.createElementVNode("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1),Gl=[ql];function Yl(t,e,n,r,o,i){return l.openBlock(),l.createElementBlock("svg",l.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Gl,16)}mr.render=Yl;var Jl=function(e){var n=e.dt;return`
|
|
245
176
|
.p-panelmenu {
|
|
246
177
|
display: flex;
|
|
247
178
|
flex-direction: column;
|
|
@@ -384,8 +315,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
384
315
|
.p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon {
|
|
385
316
|
color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
|
|
386
317
|
}
|
|
387
|
-
`)},
|
|
388
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kf(t,e){if(t){if(typeof t=="string")return ri(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)?ri(t,e):void 0}}function ri(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Wf(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function qf(t){if(Array.isArray(t))return t}function oi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function G(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?oi(Object(n),!0).forEach(function(r){Kr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Kr(t,e,n){return(e=Gf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gf(t){var e=Yf(t,"string");return dn(e)=="symbol"?e:e+""}function Yf(t,e){if(dn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(dn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var F={_getMeta:function(){return[ct(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],xe(ct(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 r,o,s;return(r=(e==null||(o=e.instance)===null||o===void 0?void 0:o.$primevue)||(n==null||(s=n.ctx)===null||s===void 0||(s=s.appContext)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.globalProperties)===null||s===void 0?void 0:s.$primevue))===null||r===void 0?void 0:r.config},_getOptionValue:Dr,_getPTValue:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,c=function(){var C=F._getOptionValue.apply(F,arguments);return Se(C)||Mr(C)?{class:C}:C},u=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},d=u.mergeSections,m=d===void 0?!0:d,g=u.mergeProps,_=g===void 0?!1:g,v=a?F._useDefaultPT(r,r.defaultPT(),c,s,i):void 0,T=F._usePT(r,F._getPT(o,r.$name),c,s,G(G({},i),{},{global:v||{}})),w=F._getPTDatasets(r,s);return m||!m&&T?_?F._mergeProps(r,_,v,T,w):G(G(G({},v),T),w):G(G({},T),w)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="data-pc-";return G(G({},n==="root"&&Kr({},"".concat(r,"name"),je(e.$name))),{},Kr({},"".concat(r,"section"),je(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=function(i){var a,c=r?r(i):i,u=je(n);return(a=c==null?void 0:c[u])!==null&&a!==void 0?a:c};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,i=function(w){return r(w,o,s)};if(n!=null&&n.hasOwnProperty("_usept")){var a,c=n._usept||((a=e.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},u=c.mergeSections,d=u===void 0?!0:u,m=c.mergeProps,g=m===void 0?!1:m,_=i(n.originalValue),v=i(n.value);return _===void 0&&v===void 0?void 0:Se(v)?v:Se(_)?_:d||!d&&v?g?F._mergeProps(e,g,_,v):G(G({},_),v):v}return i(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;return F._usePT(e,n,r,o,s)},_loadStyles:function(e,n,r){var o,s=F._getConfig(n,r),i={nonce:s==null||(o=s.csp)===null||o===void 0?void 0:o.nonce};F._loadCoreStyles(e.$instance,i),F._loadThemeStyles(e.$instance,i),F._loadScopedThemeStyles(e.$instance,i),F._themeChangeListener(function(){return F._loadThemeStyles(e.$instance,i)})},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!ut.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var s;ge.loadCSS(o),r.isUnstyled()&&((s=r.$style)===null||s===void 0||s.loadCSS(o)),ut.setLoadedStyleName(r.$style.name)}},_loadThemeStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!(r!=null&&r.isUnstyled())){if(!te.isStyleNameLoaded("common")){var s,i,a=((s=r.$style)===null||s===void 0||(i=s.getCommonTheme)===null||i===void 0?void 0:i.call(s))||{},c=a.primitive,u=a.semantic;ge.load(c==null?void 0:c.css,G({name:"primitive-variables"},o)),ge.load(u==null?void 0:u.css,G({name:"semantic-variables"},o)),ge.loadTheme(G({name:"global-style"},o)),te.setLoadedStyleName("common")}if(!te.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var d,m,g,_,v=((d=r.$style)===null||d===void 0||(m=d.getDirectiveTheme)===null||m===void 0?void 0:m.call(d))||{},T=v.css;(g=r.$style)===null||g===void 0||g.load(T,G({name:"".concat(r.$style.name,"-variables")},o)),(_=r.$style)===null||_===void 0||_.loadTheme(G({name:"".concat(r.$style.name,"-style")},o)),te.setLoadedStyleName(r.$style.name)}if(!te.isStyleNameLoaded("layer-order")){var w,B,C=(w=r.$style)===null||w===void 0||(B=w.getLayerOrderThemeCSS)===null||B===void 0?void 0:B.call(w);ge.load(C,G({name:"layer-order",first:!0},o)),te.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e.preset();if(r&&e.$attrSelector){var o,s,i,a=((o=e.$style)===null||o===void 0||(s=o.getPresetTheme)===null||s===void 0?void 0:s.call(o,r,"[".concat(e.$attrSelector,"]")))||{},c=a.css,u=(i=e.$style)===null||i===void 0?void 0:i.load(c,G({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=u.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};ut.clearLoadedStyleNames(),tt.on("theme:change",e)},_hook:function(e,n,r,o,s,i){var a,c,u="on".concat(Jd(n)),d=F._getConfig(o,s),m=r==null?void 0:r.$instance,g=F._usePT(m,F._getPT(o==null||(a=o.value)===null||a===void 0?void 0:a.pt,e),F._getOptionValue,"hooks.".concat(u)),_=F._useDefaultPT(m,d==null||(c=d.pt)===null||c===void 0||(c=c.directives)===null||c===void 0?void 0:c[e],F._getOptionValue,"hooks.".concat(u)),v={el:r,binding:o,vnode:s,prevVnode:i};g==null||g(m,v),_==null||_(m,v)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Br(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(i,a,c,u,d){var m,g,_;a._$instances=a._$instances||{};var v=F._getConfig(c,u),T=a._$instances[e]||{},w=vt(T)?G(G({},n),n==null?void 0:n.methods):{};a._$instances[e]=G(G({},T),{},{$name:e,$host:a,$binding:c,$modifiers:c==null?void 0:c.modifiers,$value:c==null?void 0:c.value,$el:T.$el||a||void 0,$style:G({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:v,$attrSelector:a.$attrSelector,defaultPT:function(){return F._getPT(v==null?void 0:v.pt,void 0,function(C){var A;return C==null||(A=C.directives)===null||A===void 0?void 0:A[e]})},isUnstyled:function(){var C,A;return((C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.unstyled)!==void 0?(A=a.$instance)===null||A===void 0||(A=A.$binding)===null||A===void 0||(A=A.value)===null||A===void 0?void 0:A.unstyled:v==null?void 0:v.unstyled},theme:function(){var C;return(C=a.$instance)===null||C===void 0||(C=C.$primevueConfig)===null||C===void 0?void 0:C.theme},preset:function(){var C;return(C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.dt},ptm:function(){var C,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F._getPTValue(a.$instance,(C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.pt,A,G({},z))},ptmo:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F._getPTValue(a.$instance,C,A,z,!1)},cx:function(){var C,A,z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(C=a.$instance)!==null&&C!==void 0&&C.isUnstyled()?void 0:F._getOptionValue((A=a.$instance)===null||A===void 0||(A=A.$style)===null||A===void 0?void 0:A.classes,z,G({},Z))},sx:function(){var C,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return z?F._getOptionValue((C=a.$instance)===null||C===void 0||(C=C.$style)===null||C===void 0?void 0:C.inlineStyles,A,G({},Z)):void 0}},w),a.$instance=a._$instances[e],(m=(g=a.$instance)[i])===null||m===void 0||m.call(g,a,c,u,d),a["$".concat(e)]=a.$instance,F._hook(e,i,a,c,u,d),a.$pd||(a.$pd={}),a.$pd[e]=G(G({},(_=a.$pd)===null||_===void 0?void 0:_[e]),{},{name:e,instance:a.$instance})},o=function(i){var a,c,u,d,m,g=(a=i.$instance)===null||a===void 0?void 0:a.watch;g==null||(c=g.config)===null||c===void 0||c.call(i.$instance,(u=i.$instance)===null||u===void 0?void 0:u.$primevueConfig),ti.on("config:change",function(_){var v,T=_.newValue,w=_.oldValue;return g==null||(v=g.config)===null||v===void 0?void 0:v.call(i.$instance,T,w)}),g==null||(d=g["config.ripple"])===null||d===void 0||d.call(i.$instance,(m=i.$instance)===null||m===void 0||(m=m.$primevueConfig)===null||m===void 0?void 0:m.ripple),ti.on("config:ripple:change",function(_){var v,T=_.newValue,w=_.oldValue;return g==null||(v=g["config.ripple"])===null||v===void 0?void 0:v.call(i.$instance,T,w)})};return{created:function(i,a,c,u){r("created",i,a,c,u)},beforeMount:function(i,a,c,u){i.$attrSelector=Hn("pd"),F._loadStyles(i,a,c),r("beforeMount",i,a,c,u),o(i)},mounted:function(i,a,c,u){F._loadStyles(i,a,c),r("mounted",i,a,c,u)},beforeUpdate:function(i,a,c,u){r("beforeUpdate",i,a,c,u)},updated:function(i,a,c,u){F._loadStyles(i,a,c),r("updated",i,a,c,u)},beforeUnmount:function(i,a,c,u){r("beforeUnmount",i,a,c,u)},unmounted:function(i,a,c,u){var d;(d=i.$instance)===null||d===void 0||(d=d.scopedStyleEl)===null||d===void 0||(d=d.value)===null||d===void 0||d.remove(),r("unmounted",i,a,c,u)}}},extend:function(){var e=F._getMeta.apply(F,arguments),n=ni(e,2),r=n[0],o=n[1];return G({extend:function(){var i=F._getMeta.apply(F,arguments),a=ni(i,2),c=a[0],u=a[1];return F.extend(c,G(G(G({},o),o==null?void 0:o.methods),u))}},F._extend(r,o))}},Jf=function(e){var n=e.dt;return`
|
|
318
|
+
`)},Xl={root:"p-panelmenu p-component",panel:"p-panelmenu-panel",header:function(e){var n=e.instance,r=e.item;return["p-panelmenu-header",{"p-panelmenu-header-active":n.isItemActive(r)&&!!r.items,"p-disabled":n.isItemDisabled(r)}]},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,r=e.processedItem;return["p-panelmenu-item",{"p-focus":n.isItemFocused(r),"p-disabled":n.isItemDisabled(r)}]},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"},Zl=pe.extend({name:"panelmenu",theme:Jl,classes:Xl}),Fo=yo();function Jt(t){"@babel/helpers - typeof";return Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jt(t)}function zo(t,e){return nc(t)||tc(t,e)||ec(t,e)||Ql()}function Ql(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
319
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ec(t,e){if(t){if(typeof t=="string")return Ko(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)?Ko(t,e):void 0}}function Ko(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function tc(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function nc(t){if(Array.isArray(t))return t}function Wo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wo(Object(n),!0).forEach(function(r){pr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function pr(t,e,n){return(e=rc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rc(t){var e=oc(t,"string");return Jt(e)=="symbol"?e:e+""}function oc(t,e){if(Jt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Jt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var F={_getMeta:function(){return[it(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Te(it(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 r,o,i;return(r=(e==null||(o=e.instance)===null||o===void 0?void 0:o.$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||r===void 0?void 0:r.config},_getOptionValue:sr,_getPTValue:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,c=function(){var C=F._getOptionValue.apply(F,arguments);return be(C)||ar(C)?{class:C}:C},u=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},f=u.mergeSections,m=f===void 0?!0:f,v=u.mergeProps,_=v===void 0?!1:v,b=a?F._useDefaultPT(r,r.defaultPT(),c,i,s):void 0,O=F._usePT(r,F._getPT(o,r.$name),c,i,Y(Y({},s),{},{global:b||{}})),w=F._getPTDatasets(r,i);return m||!m&&O?_?F._mergeProps(r,_,b,O,w):Y(Y(Y({},b),O),w):Y(Y({},O),w)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="data-pc-";return Y(Y({},n==="root"&&pr({},"".concat(r,"name"),Me(e.$name))),{},pr({},"".concat(r,"section"),Me(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=function(s){var a,c=r?r(s):s,u=Me(n);return(a=c==null?void 0:c[u])!==null&&a!==void 0?a:c};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=function(w){return r(w,o,i)};if(n!=null&&n.hasOwnProperty("_usept")){var a,c=n._usept||((a=e.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},u=c.mergeSections,f=u===void 0?!0:u,m=c.mergeProps,v=m===void 0?!1:m,_=s(n.originalValue),b=s(n.value);return _===void 0&&b===void 0?void 0:be(b)?b:be(_)?_:f||!f&&b?v?F._mergeProps(e,v,_,b):Y(Y({},_),b):b}return s(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return F._usePT(e,n,r,o,i)},_loadStyles:function(e,n,r){var o,i=F._getConfig(n,r),s={nonce:i==null||(o=i.csp)===null||o===void 0?void 0:o.nonce};F._loadCoreStyles(e.$instance,s),F._loadThemeStyles(e.$instance,s),F._loadScopedThemeStyles(e.$instance,s),F._themeChangeListener(function(){return F._loadThemeStyles(e.$instance,s)})},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!st.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var i;pe.loadCSS(o),r.isUnstyled()&&((i=r.$style)===null||i===void 0||i.loadCSS(o)),st.setLoadedStyleName(r.$style.name)}},_loadThemeStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!(r!=null&&r.isUnstyled())){if(!te.isStyleNameLoaded("common")){var i,s,a=((i=r.$style)===null||i===void 0||(s=i.getCommonTheme)===null||s===void 0?void 0:s.call(i))||{},c=a.primitive,u=a.semantic;pe.load(c==null?void 0:c.css,Y({name:"primitive-variables"},o)),pe.load(u==null?void 0:u.css,Y({name:"semantic-variables"},o)),pe.loadTheme(Y({name:"global-style"},o)),te.setLoadedStyleName("common")}if(!te.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var f,m,v,_,b=((f=r.$style)===null||f===void 0||(m=f.getDirectiveTheme)===null||m===void 0?void 0:m.call(f))||{},O=b.css;(v=r.$style)===null||v===void 0||v.load(O,Y({name:"".concat(r.$style.name,"-variables")},o)),(_=r.$style)===null||_===void 0||_.loadTheme(Y({name:"".concat(r.$style.name,"-style")},o)),te.setLoadedStyleName(r.$style.name)}if(!te.isStyleNameLoaded("layer-order")){var w,N,C=(w=r.$style)===null||w===void 0||(N=w.getLayerOrderThemeCSS)===null||N===void 0?void 0:N.call(w);pe.load(C,Y({name:"layer-order",first:!0},o)),te.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e.preset();if(r&&e.$attrSelector){var o,i,s,a=((o=e.$style)===null||o===void 0||(i=o.getPresetTheme)===null||i===void 0?void 0:i.call(o,r,"[".concat(e.$attrSelector,"]")))||{},c=a.css,u=(s=e.$style)===null||s===void 0?void 0:s.load(c,Y({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=u.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};st.clearLoadedStyleNames(),et.on("theme:change",e)},_hook:function(e,n,r,o,i,s){var a,c,u="on".concat(sl(n)),f=F._getConfig(o,i),m=r==null?void 0:r.$instance,v=F._usePT(m,F._getPT(o==null||(a=o.value)===null||a===void 0?void 0:a.pt,e),F._getOptionValue,"hooks.".concat(u)),_=F._useDefaultPT(m,f==null||(c=f.pt)===null||c===void 0||(c=c.directives)===null||c===void 0?void 0:c[e],F._getOptionValue,"hooks.".concat(u)),b={el:r,binding:o,vnode:i,prevVnode:s};v==null||v(m,b),_==null||_(m,b)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return ir(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(s,a,c,u,f){var m,v,_;a._$instances=a._$instances||{};var b=F._getConfig(c,u),O=a._$instances[e]||{},w=pt(O)?Y(Y({},n),n==null?void 0:n.methods):{};a._$instances[e]=Y(Y({},O),{},{$name:e,$host:a,$binding:c,$modifiers:c==null?void 0:c.modifiers,$value:c==null?void 0:c.value,$el:O.$el||a||void 0,$style:Y({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:b,$attrSelector:a.$attrSelector,defaultPT:function(){return F._getPT(b==null?void 0:b.pt,void 0,function(C){var T;return C==null||(T=C.directives)===null||T===void 0?void 0:T[e]})},isUnstyled:function(){var C,T;return((C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.unstyled)!==void 0?(T=a.$instance)===null||T===void 0||(T=T.$binding)===null||T===void 0||(T=T.value)===null||T===void 0?void 0:T.unstyled:b==null?void 0:b.unstyled},theme:function(){var C;return(C=a.$instance)===null||C===void 0||(C=C.$primevueConfig)===null||C===void 0?void 0:C.theme},preset:function(){var C;return(C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.dt},ptm:function(){var C,T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F._getPTValue(a.$instance,(C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.pt,T,Y({},z))},ptmo:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F._getPTValue(a.$instance,C,T,z,!1)},cx:function(){var C,T,z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(C=a.$instance)!==null&&C!==void 0&&C.isUnstyled()?void 0:F._getOptionValue((T=a.$instance)===null||T===void 0||(T=T.$style)===null||T===void 0?void 0:T.classes,z,Y({},Q))},sx:function(){var C,T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return z?F._getOptionValue((C=a.$instance)===null||C===void 0||(C=C.$style)===null||C===void 0?void 0:C.inlineStyles,T,Y({},Q)):void 0}},w),a.$instance=a._$instances[e],(m=(v=a.$instance)[s])===null||m===void 0||m.call(v,a,c,u,f),a["$".concat(e)]=a.$instance,F._hook(e,s,a,c,u,f),a.$pd||(a.$pd={}),a.$pd[e]=Y(Y({},(_=a.$pd)===null||_===void 0?void 0:_[e]),{},{name:e,instance:a.$instance})},o=function(s){var a,c,u,f,m,v=(a=s.$instance)===null||a===void 0?void 0:a.watch;v==null||(c=v.config)===null||c===void 0||c.call(s.$instance,(u=s.$instance)===null||u===void 0?void 0:u.$primevueConfig),Fo.on("config:change",function(_){var b,O=_.newValue,w=_.oldValue;return v==null||(b=v.config)===null||b===void 0?void 0:b.call(s.$instance,O,w)}),v==null||(f=v["config.ripple"])===null||f===void 0||f.call(s.$instance,(m=s.$instance)===null||m===void 0||(m=m.$primevueConfig)===null||m===void 0?void 0:m.ripple),Fo.on("config:ripple:change",function(_){var b,O=_.newValue,w=_.oldValue;return v==null||(b=v["config.ripple"])===null||b===void 0?void 0:b.call(s.$instance,O,w)})};return{created:function(s,a,c,u){r("created",s,a,c,u)},beforeMount:function(s,a,c,u){s.$attrSelector=Tn("pd"),F._loadStyles(s,a,c),r("beforeMount",s,a,c,u),o(s)},mounted:function(s,a,c,u){F._loadStyles(s,a,c),r("mounted",s,a,c,u)},beforeUpdate:function(s,a,c,u){r("beforeUpdate",s,a,c,u)},updated:function(s,a,c,u){F._loadStyles(s,a,c),r("updated",s,a,c,u)},beforeUnmount:function(s,a,c,u){r("beforeUnmount",s,a,c,u)},unmounted:function(s,a,c,u){var f;(f=s.$instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),r("unmounted",s,a,c,u)}}},extend:function(){var e=F._getMeta.apply(F,arguments),n=zo(e,2),r=n[0],o=n[1];return Y({extend:function(){var s=F._getMeta.apply(F,arguments),a=zo(s,2),c=a[0],u=a[1];return F.extend(c,Y(Y(Y({},o),o==null?void 0:o.methods),u))}},F._extend(r,o))}},ic=function(e){var n=e.dt;return`
|
|
389
320
|
.p-ink {
|
|
390
321
|
display: block;
|
|
391
322
|
position: absolute;
|
|
@@ -405,12 +336,81 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
405
336
|
transform: scale(2.5);
|
|
406
337
|
}
|
|
407
338
|
}
|
|
408
|
-
`)},
|
|
409
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
410
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gm(t,e){if(t){if(typeof t=="string")return ai(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)?ai(t,e):void 0}}function ai(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ym(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function bm(t){if(Array.isArray(t))return t}var li={name:"PanelMenuList",hostName:"PanelMenu",extends:zn,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},mounted:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?xe(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 J(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&&Yd(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=J(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=J(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(J(this.focusedItem)){var r=this.activeItemPath.some(function(o){return o.key===n.focusedItem.key});r?this.activeItemPath=this.activeItemPath.filter(function(o){return o.key!==n.focusedItem.key}):this.focusedItem=J(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(J(this.focusedItem)){var r=this.isItemGroup(this.focusedItem);if(r){var o=this.activeItemPath.some(function(s){return s.key===n.focusedItem.key});o?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(s){return s.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if(J(this.focusedItem)){var n=Ve(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&(Ve(n,'[data-pc-section="itemlink"]')||Ve(n,"a,button"));r?r.click():n&&n.click()}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onItemToggle:function(e){var n=e.processedItem,r=e.expanded;this.expandedKeys?this.$emit("item-toggle",{item:n.item,expanded:r}):(this.activeItemPath=this.activeItemPath.filter(function(o){return o.parentKey!==n.parentKey}),r&&this.activeItemPath.push(n)),this.focusedItem=n,en(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var r=e.currentTarget.closest('[data-pc-section="panel"]');return r&&r.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 xs(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,r=this.visibleItems.findIndex(function(s){return s.key===e.key}),o=r<this.visibleItems.length-1?this.visibleItems.slice(r+1).find(function(s){return n.isValidItem(s)}):void 0;return o||e},findPrevItem:function(e){var n=this,r=this.visibleItems.findIndex(function(s){return s.key===e.key}),o=r>0?xs(this.visibleItems.slice(0,r),function(s){return n.isValidItem(s)}):void 0;return o||e},searchItems:function(e,n){var r=this;this.searchValue=(this.searchValue||"")+n;var o=null,s=!1;if(J(this.focusedItem)){var i=this.visibleItems.findIndex(function(a){return a.key===r.focusedItem.key});o=this.visibleItems.slice(i).find(function(a){return r.isItemMatched(a)}),o=vt(o)?this.visibleItems.slice(0,i).find(function(a){return r.isItemMatched(a)}):o}else o=this.visibleItems.find(function(a){return r.isItemMatched(a)});return J(o)&&(s=!0),vt(o)&&vt(this.focusedItem)&&(o=this.findFirstItem()),J(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),s},changeFocusedItem:function(e){var n=e.originalEvent,r=e.processedItem,o=e.focusOnNext,s=e.selfCheck,i=e.allowHeaderFocus,a=i===void 0?!0:i;J(this.focusedItem)&&this.focusedItem.key!==r.key?(this.focusedItem=r,this.scrollInView()):a&&this.$emit("header-focus",{originalEvent:n,focusOnNext:o,selfCheck:s})},scrollInView:function(){var e=Ve(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(r,o){var s=pm(o,2),i=s[0],a=s[1];if(a){var c=n.findProcessedItemByItemKey(i);c&&r.push(c)}return r},[])},findProcessedItemByItemKey:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||r===0&&this.processedItems,!n)return null;for(var o=0;o<n.length;o++){var s=n[o];if(this.getItemProp(s,"key")===e)return s;var i=this.findProcessedItemByItemKey(e,s.items,r+1);if(i)return i}},createProcessedItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",i=[];return e&&e.forEach(function(a,c){var u=(s!==""?s+"_":"")+c,d={item:a,index:c,level:r,key:u,parent:o,parentKey:s};d.items=n.createProcessedItems(a.items,r+1,d,u),i.push(d)}),i},flatItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(o){n.isVisibleItem(o)&&(r.push(o),n.flatItems(o.items,r))}),r}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return J(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:ii}};function vm(t,e,n,r,o,s){var i=l.resolveComponent("PanelMenuSub");return l.openBlock(),l.createBlock(i,l.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":o.focused?s.focusedItemId:void 0,panelId:n.panelId,focusedItemId:o.focused?s.focusedItemId:void 0,items:s.processedItems,templates:n.templates,activeItemPath:o.activeItemPath,onFocus:s.onFocus,onBlur:s.onBlur,onKeydown:s.onKeyDown,onItemToggle:s.onItemToggle,onItemMousemove:s.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}li.render=vm;function mn(t){"@babel/helpers - typeof";return mn=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},mn(t)}function ci(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function wm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ci(Object(n),!0).forEach(function(r){Sm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ci(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Sm(t,e,n){return(e=_m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _m(t){var e=km(t,"string");return mn(e)=="symbol"?e:e+""}function km(t,e){if(mn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(mn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ui={name:"PanelMenu",extends:lm,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||Hn()}},mounted:function(){this.id=this.id||Hn()},methods:{getItemProp:function(e,n){return e?xe(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{index:r,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 $t(e,n)}):$t(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return $t(e,this.activeItem)},getPanelId:function(e){return"".concat(this.id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),en(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=tn(e.currentTarget,"data-p-active")===!0?Ve(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?en(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=tn(n,"data-p-active")===!0?Ve(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;r?en(r):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 r=Ve(e.currentTarget,'[data-pc-section="headerlink"]');r?r.click():this.onHeaderClick(e,n),e.preventDefault()},findNextHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.nextElementSibling,o=Ve(r,'[data-pc-section="header"]');return o?tn(o,"data-p-disabled")?this.findNextHeader(o.parentElement):o:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.previousElementSibling,o=Ve(r,'[data-pc-section="header"]');return o?tn(o,"data-p-disabled")?this.findPrevHeader(o.parentElement):o: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,r=e.focusOnNext,o=e.selfCheck,s=n.currentTarget.closest('[data-pc-section="panel"]'),i=o?Ve(s,'[data-pc-section="header"]'):r?this.findNextHeader(s):this.findPrevHeader(s);i?this.changeFocusedHeader(n,i):r?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var o=this.isItemActive(n),s=o?"panel-close":"panel-open";this.activeItem=r?n:this.activeItem&&$t(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(i){return $t(n,i)})?this.activeItems=this.activeItems.filter(function(i){return!$t(n,i)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!o}),this.$emit(s,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,r=e.expanded,o=r===void 0?!1:r;if(this.expandedKeys){var s=wm({},this.expandedKeys);o?s[n.key]=!0:delete s[n.key],this.$emit("update:expandedKeys",s)}},changeFocusedHeader:function(e,n){n&&en(n)},getMenuItemProps:function(e,n){return{icon:l.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:l.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:li,ChevronRightIcon:zr,ChevronDownIcon:Fr}},Cm=["id"],Em=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],Tm=["href"],Am=["id","aria-labelledby"];function Pm(t,e,n,r,o,s){var i=l.resolveComponent("PanelMenuList");return l.openBlock(),l.createElementBlock("div",l.mergeProps({id:o.id,class:t.cx("root")},t.ptmi("root")),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.model,function(a,c){return l.openBlock(),l.createElementBlock(l.Fragment,{key:s.getPanelKey(c)},[s.isItemVisible(a)?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,style:s.getItemProp(a,"style"),class:[t.cx("panel"),s.getItemProp(a,"class")],ref_for:!0},t.ptm("panel")),[l.createElementVNode("div",l.mergeProps({id:s.getHeaderId(c),class:[t.cx("header",{item:a}),s.getItemProp(a,"headerClass")],tabindex:s.isItemDisabled(a)?-1:t.tabindex,role:"button","aria-label":s.getItemLabel(a),"aria-expanded":s.isItemActive(a),"aria-controls":s.getContentId(c),"aria-disabled":s.isItemDisabled(a),onClick:function(d){return s.onHeaderClick(d,a)},onKeydown:function(d){return s.onHeaderKeyDown(d,a)},ref_for:!0},s.getPTOptions("header",a,c),{"data-p-active":s.isItemActive(a),"data-p-disabled":s.isItemDisabled(a)}),[l.createElementVNode("div",l.mergeProps({class:t.cx("headerContent"),ref_for:!0},s.getPTOptions("headerContent",a,c)),[t.$slots.item?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.$slots.item),{key:1,item:a,root:!0,active:s.isItemActive(a),hasSubmenu:s.getItemProp(a,"items"),label:s.getItemLabel(a),props:s.getMenuItemProps(a,c)},null,8,["item","active","hasSubmenu","label","props"])):(l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,href:s.getItemProp(a,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},s.getPTOptions("headerLink",a,c)),[s.getItemProp(a,"items")?l.renderSlot(t.$slots,"submenuicon",{key:0,active:s.isItemActive(a)},function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),l.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},s.getPTOptions("submenuIcon",a,c)),null,16,["class"]))]}):l.createCommentVNode("",!0),t.$slots.headericon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.$slots.headericon),{key:1,item:a,class:l.normalizeClass([t.cx("headerIcon"),s.getItemProp(a,"icon")])},null,8,["item","class"])):s.getItemProp(a,"icon")?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:2,class:[t.cx("headerIcon"),s.getItemProp(a,"icon")],ref_for:!0},s.getPTOptions("headerIcon",a,c)),null,16)):l.createCommentVNode("",!0),l.createElementVNode("span",l.mergeProps({class:t.cx("headerLabel"),ref_for:!0},s.getPTOptions("headerLabel",a,c)),l.toDisplayString(s.getItemLabel(a)),17)],16,Tm))],16)],16,Em),l.createVNode(l.Transition,l.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:l.withCtx(function(){return[l.withDirectives(l.createElementVNode("div",l.mergeProps({id:s.getContentId(c),class:t.cx("contentContainer"),role:"region","aria-labelledby":s.getHeaderId(c),ref_for:!0},t.ptm("contentContainer")),[s.getItemProp(a,"items")?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[l.createVNode(i,{panelId:s.getPanelId(c),items:s.getItemProp(a,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:s.changeExpandedKeys,onHeaderFocus:s.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):l.createCommentVNode("",!0)],16,Am),[[l.vShow,s.isItemActive(a)]])]}),_:2},1040)],16)):l.createCommentVNode("",!0)],64)}),128))],16,Cm)}ui.render=Pm;const Im=t=>(l.pushScopeId("data-v-74bc83ee"),t=t(),l.popScopeId(),t),xm={class:"panel-menu-wrapper"},Om=["data-active","href","onClick"],Lm={class:"material-symbols-outlined item-menu-icon-left"},$m={key:1,class:"item-menu sf-ripple"},Rm={key:0,class:"material-symbols-outlined item-menu-icon-left"},Nm=Im(()=>l.createElementVNode("div",{class:"sf-flex-grow-1"},null,-1)),Bm=_n(l.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=rr();function r(o,s){o.preventDefault();const a=o.target.closest(".panel-menu-wrapper");a&&a.clientWidth+10>document.body.clientWidth&&n.Close(),s()}return(o,s)=>{const i=l.resolveComponent("router-link");return l.openBlock(),l.createElementBlock("div",xm,[l.createVNode(l.unref(ui),{model:e.items,unstyled:!0},{item:l.withCtx(({item:a,active:c})=>[a.href?(l.openBlock(),l.createBlock(i,{key:0,to:{path:a.href,params:a.params??{},query:a.query??{}},custom:""},{default:l.withCtx(({navigate:u,isActive:d})=>[l.createElementVNode("a",{class:"item-menu sf-ripple","data-active":d,href:a.href,onClick:m=>r(m,u)},[l.createElementVNode("span",Lm,l.toDisplayString(a.icon??"chevron_right"),1),l.createElementVNode("span",null,l.toDisplayString(a.text),1)],8,Om)]),_:2},1032,["to"])):(l.openBlock(),l.createElementBlock("a",$m,[a.icon?(l.openBlock(),l.createElementBlock("span",Rm,l.toDisplayString(a.icon),1)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.text),1),Nm,l.createElementVNode("span",{class:l.normalizeClass(["material-symbols-outlined arrow",{"--expand":c}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-74bc83ee"]]);class pn{constructor(e=null){$e(this,"errors",[]);$e(this,"_value",null);$e(this,"_httpStatusCode");this._value=e,this._httpStatusCode=200}get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return!this.hasError}get hasError(){return this.errors.length>0}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){this.errors.push(e),this._httpStatusCode===200&&(this._httpStatusCode=400)}WithErrors(e){e.forEach(n=>this.WithError(n))}}function di(t,e){return function(){return t.apply(e,arguments)}}const{toString:Dm}=Object.prototype,{getPrototypeOf:qr}=Object,Kn=(t=>e=>{const n=Dm.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ze=t=>(t=t.toLowerCase(),e=>Kn(e)===t),Wn=t=>e=>typeof e===t,{isArray:Rt}=Array,hn=Wn("undefined");function Mm(t){return t!==null&&!hn(t)&&t.constructor!==null&&!hn(t.constructor)&&Oe(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const fi=ze("ArrayBuffer");function Um(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&fi(t.buffer),e}const Hm=Wn("string"),Oe=Wn("function"),mi=Wn("number"),qn=t=>t!==null&&typeof t=="object",Vm=t=>t===!0||t===!1,Gn=t=>{if(Kn(t)!=="object")return!1;const e=qr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},jm=ze("Date"),Fm=ze("File"),zm=ze("Blob"),Km=ze("FileList"),Wm=t=>qn(t)&&Oe(t.pipe),qm=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Oe(t.append)&&((e=Kn(t))==="formdata"||e==="object"&&Oe(t.toString)&&t.toString()==="[object FormData]"))},Gm=ze("URLSearchParams"),[Ym,Jm,Xm,Zm]=["ReadableStream","Request","Response","Headers"].map(ze),Qm=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gn(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),Rt(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),i=s.length;let a;for(r=0;r<i;r++)a=s[r],e.call(null,t[a],a,t)}}function pi(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const wt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hi=t=>!hn(t)&&t!==wt;function Gr(){const{caseless:t}=hi(this)&&this||{},e={},n=(r,o)=>{const s=t&&pi(e,o)||o;Gn(e[s])&&Gn(r)?e[s]=Gr(e[s],r):Gn(r)?e[s]=Gr({},r):Rt(r)?e[s]=r.slice():e[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&gn(arguments[r],n);return e}const ep=(t,e,n,{allOwnKeys:r}={})=>(gn(e,(o,s)=>{n&&Oe(o)?t[s]=di(o,n):t[s]=o},{allOwnKeys:r}),t),tp=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),np=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},rp=(t,e,n,r)=>{let o,s,i;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)i=o[s],(!r||r(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&qr(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},op=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},sp=t=>{if(!t)return null;if(Rt(t))return t;let e=t.length;if(!mi(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},ip=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&qr(Uint8Array)),ap=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},lp=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},cp=ze("HTMLFormElement"),up=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),gi=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),dp=ze("RegExp"),yi=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};gn(n,(o,s)=>{let i;(i=e(o,s,t))!==!1&&(r[s]=i||o)}),Object.defineProperties(t,r)},fp=t=>{yi(t,(e,n)=>{if(Oe(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Oe(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},mp=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Rt(t)?r(t):r(String(t).split(e)),n},pp=()=>{},hp=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Yr="abcdefghijklmnopqrstuvwxyz",bi="0123456789",vi={DIGIT:bi,ALPHA:Yr,ALPHA_DIGIT:Yr+Yr.toUpperCase()+bi},gp=(t=16,e=vi.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function yp(t){return!!(t&&Oe(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const bp=t=>{const e=new Array(10),n=(r,o)=>{if(qn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const s=Rt(r)?[]:{};return gn(r,(i,a)=>{const c=n(i,o+1);!hn(c)&&(s[a]=c)}),e[o]=void 0,s}}return r};return n(t,0)},vp=ze("AsyncFunction"),wp=t=>t&&(qn(t)||Oe(t))&&Oe(t.then)&&Oe(t.catch),wi=((t,e)=>t?setImmediate:e?((n,r)=>(wt.addEventListener("message",({source:o,data:s})=>{o===wt&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),wt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Oe(wt.postMessage)),Sp=typeof queueMicrotask<"u"?queueMicrotask.bind(wt):typeof process<"u"&&process.nextTick||wi,y={isArray:Rt,isArrayBuffer:fi,isBuffer:Mm,isFormData:qm,isArrayBufferView:Um,isString:Hm,isNumber:mi,isBoolean:Vm,isObject:qn,isPlainObject:Gn,isReadableStream:Ym,isRequest:Jm,isResponse:Xm,isHeaders:Zm,isUndefined:hn,isDate:jm,isFile:Fm,isBlob:zm,isRegExp:dp,isFunction:Oe,isStream:Wm,isURLSearchParams:Gm,isTypedArray:ip,isFileList:Km,forEach:gn,merge:Gr,extend:ep,trim:Qm,stripBOM:tp,inherits:np,toFlatObject:rp,kindOf:Kn,kindOfTest:ze,endsWith:op,toArray:sp,forEachEntry:ap,matchAll:lp,isHTMLForm:cp,hasOwnProperty:gi,hasOwnProp:gi,reduceDescriptors:yi,freezeMethods:fp,toObjectSet:mp,toCamelCase:up,noop:pp,toFiniteNumber:hp,findKey:pi,global:wt,isContextDefined:hi,ALPHABET:vi,generateString:gp,isSpecCompliantForm:yp,toJSONObject:bp,isAsyncFn:vp,isThenable:wp,setImmediate:wi,asap:Sp};function U(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}y.inherits(U,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Si=U.prototype,_i={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{_i[t]={value:t}}),Object.defineProperties(U,_i),Object.defineProperty(Si,"isAxiosError",{value:!0}),U.from=(t,e,n,r,o,s)=>{const i=Object.create(Si);return y.toFlatObject(t,i,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),U.call(i,t.message,e,n,r,o),i.cause=t,i.name=t.name,s&&Object.assign(i,s),i};const _p=null;function Jr(t){return y.isPlainObject(t)||y.isArray(t)}function ki(t){return y.endsWith(t,"[]")?t.slice(0,-2):t}function Ci(t,e,n){return t?t.concat(e).map(function(o,s){return o=ki(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function kp(t){return y.isArray(t)&&!t.some(Jr)}const Cp=y.toFlatObject(y,{},null,function(e){return/^is[A-Z]/.test(e)});function Yn(t,e,n){if(!y.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,w){return!y.isUndefined(w[T])});const r=n.metaTokens,o=n.visitor||d,s=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(e);if(!y.isFunction(o))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(y.isDate(v))return v.toISOString();if(!c&&y.isBlob(v))throw new U("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(v)||y.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,T,w){let B=v;if(v&&!w&&typeof v=="object"){if(y.endsWith(T,"{}"))T=r?T:T.slice(0,-2),v=JSON.stringify(v);else if(y.isArray(v)&&kp(v)||(y.isFileList(v)||y.endsWith(T,"[]"))&&(B=y.toArray(v)))return T=ki(T),B.forEach(function(A,z){!(y.isUndefined(A)||A===null)&&e.append(i===!0?Ci([T],z,s):i===null?T:T+"[]",u(A))}),!1}return Jr(v)?!0:(e.append(Ci(w,T,s),u(v)),!1)}const m=[],g=Object.assign(Cp,{defaultVisitor:d,convertValue:u,isVisitable:Jr});function _(v,T){if(!y.isUndefined(v)){if(m.indexOf(v)!==-1)throw Error("Circular reference detected in "+T.join("."));m.push(v),y.forEach(v,function(B,C){(!(y.isUndefined(B)||B===null)&&o.call(e,B,y.isString(C)?C.trim():C,T,g))===!0&&_(B,T?T.concat(C):[C])}),m.pop()}}if(!y.isObject(t))throw new TypeError("data must be an object");return _(t),e}function Ei(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Xr(t,e){this._pairs=[],t&&Yn(t,this,e)}const Ti=Xr.prototype;Ti.append=function(e,n){this._pairs.push([e,n])},Ti.toString=function(e){const n=e?function(r){return e.call(this,r,Ei)}:Ei;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Ep(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ai(t,e,n){if(!e)return t;const r=n&&n.encode||Ep,o=n&&n.serialize;let s;if(o?s=o(e,n):s=y.isURLSearchParams(e)?e.toString():new Xr(e,n).toString(r),s){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Pi{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){y.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ii={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tp={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xr,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Zr=typeof window<"u"&&typeof document<"u",Ap=(t=>Zr&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),Pp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ip=Zr&&window.location.href||"http://localhost",Ke={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zr,hasStandardBrowserEnv:Ap,hasStandardBrowserWebWorkerEnv:Pp,origin:Ip},Symbol.toStringTag,{value:"Module"})),...Tp};function xp(t,e){return Yn(t,new Ke.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Ke.isNode&&y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Op(t){return y.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Lp(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function xi(t){function e(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),c=s>=n.length;return i=!i&&y.isArray(o)?o.length:i,c?(y.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!y.isObject(o[i]))&&(o[i]=[]),e(n,r,o[i],s)&&y.isArray(o[i])&&(o[i]=Lp(o[i])),!a)}if(y.isFormData(t)&&y.isFunction(t.entries)){const n={};return y.forEachEntry(t,(r,o)=>{e(Op(r),o,n,0)}),n}return null}function $p(t,e,n){if(y.isString(t))try{return(e||JSON.parse)(t),y.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const yn={transitional:Ii,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=y.isObject(e);if(s&&y.isHTMLForm(e)&&(e=new FormData(e)),y.isFormData(e))return o?JSON.stringify(xi(e)):e;if(y.isArrayBuffer(e)||y.isBuffer(e)||y.isStream(e)||y.isFile(e)||y.isBlob(e)||y.isReadableStream(e))return e;if(y.isArrayBufferView(e))return e.buffer;if(y.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return xp(e,this.formSerializer).toString();if((a=y.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Yn(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),$p(e)):e}],transformResponse:[function(e){const n=this.transitional||yn.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(y.isResponse(e)||y.isReadableStream(e))return e;if(e&&y.isString(e)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(i)throw a.name==="SyntaxError"?U.from(a,U.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],t=>{yn.headers[t]={}});const Rp=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Np=t=>{const e={};let n,r,o;return t&&t.split(`
|
|
411
|
-
|
|
412
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[Oi]=this[Oi]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=bn(i);r[a]||(Up(o,i),r[a]=!0)}return y.isArray(e)?e.forEach(s):s(e),this}}_e.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),y.reduceDescriptors(_e.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),y.freezeMethods(_e);function eo(t,e){const n=this||yn,r=e||n,o=_e.from(r.headers);let s=r.data;return y.forEach(t,function(a){s=a.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function Li(t){return!!(t&&t.__CANCEL__)}function Nt(t,e,n){U.call(this,t??"canceled",U.ERR_CANCELED,e,n),this.name="CanceledError"}y.inherits(Nt,U,{__CANCEL__:!0});function $i(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new U("Request failed with status code "+n.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Hp(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Vp(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,i;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),d=r[s];i||(i=u),n[o]=c,r[o]=u;let m=s,g=0;for(;m!==o;)g+=n[m++],m=m%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-i<e)return;const _=d&&u-d;return _?Math.round(g*1e3/_):void 0}}function jp(t,e){let n=0,r=1e3/e,o,s;const i=(u,d=Date.now())=>{n=d,o=null,s&&(clearTimeout(s),s=null),t.apply(null,u)};return[(...u)=>{const d=Date.now(),m=d-n;m>=r?i(u,d):(o=u,s||(s=setTimeout(()=>{s=null,i(o)},r-m)))},()=>o&&i(o)]}const Xn=(t,e,n=3)=>{let r=0;const o=Vp(50,250);return jp(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,c=i-r,u=o(c),d=i<=a;r=i;const m={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&d?(a-i)/u:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(m)},n)},Ri=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Ni=t=>(...e)=>y.asap(()=>t(...e)),Fp=Ke.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=y.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),zp=Ke.hasStandardBrowserEnv?{write(t,e,n,r,o,s){const i=[t+"="+encodeURIComponent(e)];y.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),y.isString(r)&&i.push("path="+r),y.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Kp(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Wp(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Bi(t,e){return t&&!Kp(e)?Wp(t,e):e}const Di=t=>t instanceof _e?{...t}:t;function St(t,e){e=e||{};const n={};function r(u,d,m){return y.isPlainObject(u)&&y.isPlainObject(d)?y.merge.call({caseless:m},u,d):y.isPlainObject(d)?y.merge({},d):y.isArray(d)?d.slice():d}function o(u,d,m){if(y.isUndefined(d)){if(!y.isUndefined(u))return r(void 0,u,m)}else return r(u,d,m)}function s(u,d){if(!y.isUndefined(d))return r(void 0,d)}function i(u,d){if(y.isUndefined(d)){if(!y.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u,d,m){if(m in e)return r(u,d);if(m in t)return r(void 0,u)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,d)=>o(Di(u),Di(d),!0)};return y.forEach(Object.keys(Object.assign({},t,e)),function(d){const m=c[d]||o,g=m(t[d],e[d],d);y.isUndefined(g)&&m!==a||(n[d]=g)}),n}const Mi=t=>{const e=St({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=e;e.headers=i=_e.from(i),e.url=Ai(Bi(e.baseURL,e.url),t.params,t.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(y.isFormData(n)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Ke.hasStandardBrowserEnv&&(r&&y.isFunction(r)&&(r=r(e)),r||r!==!1&&Fp(e.url))){const u=o&&s&&zp.read(s);u&&i.set(o,u)}return e},qp=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=Mi(t);let s=o.data;const i=_e.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=o,d,m,g,_,v;function T(){_&&_(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function B(){if(!w)return;const A=_e.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),Z={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:A,config:t,request:w};$i(function(X){n(X),T()},function(X){r(X),T()},Z),w=null}"onloadend"in w?w.onloadend=B:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(B)},w.onabort=function(){w&&(r(new U("Request aborted",U.ECONNABORTED,t,w)),w=null)},w.onerror=function(){r(new U("Network Error",U.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let z=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const Z=o.transitional||Ii;o.timeoutErrorMessage&&(z=o.timeoutErrorMessage),r(new U(z,Z.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,t,w)),w=null},s===void 0&&i.setContentType(null),"setRequestHeader"in w&&y.forEach(i.toJSON(),function(z,Z){w.setRequestHeader(Z,z)}),y.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),a&&a!=="json"&&(w.responseType=o.responseType),u&&([g,v]=Xn(u,!0),w.addEventListener("progress",g)),c&&w.upload&&([m,_]=Xn(c),w.upload.addEventListener("progress",m),w.upload.addEventListener("loadend",_)),(o.cancelToken||o.signal)&&(d=A=>{w&&(r(!A||A.type?new Nt(null,t,w):A),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const C=Hp(o.url);if(C&&Ke.protocols.indexOf(C)===-1){r(new U("Unsupported protocol "+C+":",U.ERR_BAD_REQUEST,t));return}w.send(s||null)})},Gp=(t,e)=>{let n=new AbortController,r;const o=function(c){if(!r){r=!0,i();const u=c instanceof Error?c:this.reason;n.abort(u instanceof U?u:new Nt(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{o(new U(`timeout ${e} of ms exceeded`,U.ETIMEDOUT))},e);const i=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),t=null)};t.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=i,[a,()=>{s&&clearTimeout(s),s=null}]},Yp=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},Jp=async function*(t,e,n){for await(const r of t)yield*Yp(ArrayBuffer.isView(r)?r:await n(String(r)),e)},Ui=(t,e,n,r,o)=>{const s=Jp(t,e,o);let i=0,a,c=u=>{a||(a=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:m}=await s.next();if(d){c(),u.close();return}let g=m.byteLength;if(n){let _=i+=g;n(_)}u.enqueue(new Uint8Array(m))}catch(d){throw c(d),d}},cancel(u){return c(u),s.return()}},{highWaterMark:2})},Zn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Hi=Zn&&typeof ReadableStream=="function",to=Zn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Vi=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Xp=Hi&&Vi(()=>{let t=!1;const e=new Request(Ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),ji=64*1024,no=Hi&&Vi(()=>y.isReadableStream(new Response("").body)),Qn={stream:no&&(t=>t.body)};Zn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Qn[e]&&(Qn[e]=y.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new U(`Response type '${e}' is not supported`,U.ERR_NOT_SUPPORT,r)})})})(new Response);const Zp=async t=>{if(t==null)return 0;if(y.isBlob(t))return t.size;if(y.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(y.isArrayBufferView(t)||y.isArrayBuffer(t))return t.byteLength;if(y.isURLSearchParams(t)&&(t=t+""),y.isString(t))return(await to(t)).byteLength},Qp=async(t,e)=>{const n=y.toFiniteNumber(t.getContentLength());return n??Zp(e)},ro={http:_p,xhr:qp,fetch:Zn&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:m="same-origin",fetchOptions:g}=Mi(t);u=u?(u+"").toLowerCase():"text";let[_,v]=o||s||i?Gp([o,s],i):[],T,w;const B=()=>{!T&&setTimeout(()=>{_&&_.unsubscribe()}),T=!0};let C;try{if(c&&Xp&&n!=="get"&&n!=="head"&&(C=await Qp(d,r))!==0){let re=new Request(e,{method:"POST",body:r,duplex:"half"}),X;if(y.isFormData(r)&&(X=re.headers.get("content-type"))&&d.setContentType(X),re.body){const[ye,ie]=Ri(C,Xn(Ni(c)));r=Ui(re.body,ji,ye,ie,to)}}y.isString(m)||(m=m?"include":"omit"),w=new Request(e,{...g,signal:_,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:m});let A=await fetch(w);const z=no&&(u==="stream"||u==="response");if(no&&(a||z)){const re={};["status","statusText","headers"].forEach(V=>{re[V]=A[V]});const X=y.toFiniteNumber(A.headers.get("content-length")),[ye,ie]=a&&Ri(X,Xn(Ni(a),!0))||[];A=new Response(Ui(A.body,ji,ye,()=>{ie&&ie(),z&&B()},to),re)}u=u||"text";let Z=await Qn[y.findKey(Qn,u)||"text"](A,t);return!z&&B(),v&&v(),await new Promise((re,X)=>{$i(re,X,{data:Z,headers:_e.from(A.headers),status:A.status,statusText:A.statusText,config:t,request:w})})}catch(A){throw B(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new U("Network Error",U.ERR_NETWORK,t,w),{cause:A.cause||A}):U.from(A,A&&A.code,t,w)}})};y.forEach(ro,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Fi=t=>`- ${t}`,eh=t=>y.isFunction(t)||t===null||t===!1,zi={getAdapter:t=>{t=y.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let s=0;s<e;s++){n=t[s];let i;if(r=n,!eh(n)&&(r=ro[(i=String(n)).toLowerCase()],r===void 0))throw new U(`Unknown adapter '${i}'`);if(r)break;o[i||"#"+s]=r}if(!r){const s=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=e?s.length>1?`since :
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=St(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&io.assertOptions(r,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean)},!1),o!=null&&(y.isFunction(o)?n.paramsSerializer={serialize:o}:io.assertOptions(o,{encode:dt.function,serialize:dt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&y.merge(s.common,s[n.method]);s&&y.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),n.headers=_e.concat(i,s);const a=[];let c=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(n)===!1||(c=c&&T.synchronous,a.unshift(T.fulfilled,T.rejected))});const u=[];this.interceptors.response.forEach(function(T){u.push(T.fulfilled,T.rejected)});let d,m=0,g;if(!c){const v=[Ki.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,u),g=v.length,d=Promise.resolve(n);m<g;)d=d.then(v[m++],v[m++]);return d}g=a.length;let _=n;for(m=0;m<g;){const v=a[m++],T=a[m++];try{_=v(_)}catch(w){T.call(this,w);break}}try{d=Ki.call(this,_)}catch(v){return Promise.reject(v)}for(m=0,g=u.length;m<g;)d=d.then(u[m++],u[m++]);return d}getUri(e){e=St(this.defaults,e);const n=Bi(e.baseURL,e.url);return Ai(n,e.params,e.paramsSerializer)}}y.forEach(["delete","get","head","options"],function(e){_t.prototype[e]=function(n,r){return this.request(St(r||{},{method:e,url:n,data:(r||{}).data}))}}),y.forEach(["post","put","patch"],function(e){function n(r){return function(s,i,a){return this.request(St(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}_t.prototype[e]=n(),_t.prototype[e+"Form"]=n(!0)});class ao{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},e(function(s,i,a){r.reason||(r.reason=new Nt(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new ao(function(o){e=o}),cancel:e}}}function nh(t){return function(n){return t.apply(null,n)}}function rh(t){return y.isObject(t)&&t.isAxiosError===!0}const lo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(lo).forEach(([t,e])=>{lo[e]=t});function Gi(t){const e=new _t(t),n=di(_t.prototype.request,e);return y.extend(n,_t.prototype,e,{allOwnKeys:!0}),y.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return Gi(St(t,o))},n}const oe=Gi(yn);oe.Axios=_t,oe.CanceledError=Nt,oe.CancelToken=ao,oe.isCancel=Li,oe.VERSION=Wi,oe.toFormData=Yn,oe.AxiosError=U,oe.Cancel=oe.CanceledError,oe.all=function(e){return Promise.all(e)},oe.spread=nh,oe.isAxiosError=rh,oe.mergeConfig=St,oe.AxiosHeaders=_e,oe.formToJSON=t=>xi(y.isHTMLForm(t)?new FormData(t):t),oe.getAdapter=zi.getAdapter,oe.HttpStatusCode=lo,oe.default=oe;class Yi{constructor(e,n){$e(this,"keycloak");$e(this,"axios");$e(this,"fileName","silent-login.html");this.keycloak=e,this.axios=oe.create(),this.axios.defaults.baseURL=n,this.axios.defaults.headers.common["content-type"]="application/json",this.axios.defaults.timeout=1e3*60*5,this.axios.interceptors.request.use(async r=>{await this.SilentLogin();const o=this.keycloak.token;return r.headers.Authorization=`Bearer ${o}`,r})}ParseAppResult(e){try{const n=typeof e.hasSuccess=="boolean",r=typeof e.hasError=="boolean",o=typeof e.httpStatusCode=="number",s=Array.isArray(e.errors);return n&&r&&o&&s?e:null}catch{return null}}HandleThen(e){const n=new pn,r=this.ParseAppResult(e.data);return r===null?(n.value=e.data,n):r.hasError?(r.errors.forEach(o=>n.WithError(o)),n.httpStatusCode=r.httpStatusCode,n):(n.value=e.data.value,n)}HandleCatch(e){var o;const n=new pn,r=this.ParseAppResult((o=e.response)==null?void 0:o.data);return r===null?n.WithError(e.message):(n.WithErrors(r.errors),n.httpStatusCode=r.httpStatusCode),n}async SilentLogin(){return new Promise(async e=>{if(!this.isTokenExpired){e(!0);return}const n=this.GenerateIframe(),r=o=>{if(document.body.removeChild(n),window.removeEventListener("message",r),o.origin!==location.origin){e(!1);return}const s=o.data.action,i=o.data.code,a=o.data.state,c=o.data.error;if(s!=="silent-login-iframe-result"||c==="login_required"||!i){e(!1);return}const u=new XMLHttpRequest;u.open("POST",this.tokenExchangeUrl,!0),u.setRequestHeader("Content-type","application/x-www-form-urlencoded"),u.onreadystatechange=()=>{if(u.readyState===4){if(u.status===200){const d=JSON.parse(u.responseText);this.keycloak.setToken(d.access_token,null,d.id_token,new Date().getTime()),e(!0);return}e(!1)}},u.send(this.TokenExchangeParams(i,a))};window.addEventListener("message",r)}).then(e=>(e||(this.keycloak.clearToken(),this.keycloak.login()),e))}GetCodeVerifierFromState(e){const n=`kc-callback-${e}`,r=localStorage.getItem(n);if(r)return localStorage.removeItem(n),JSON.parse(r).pkceCodeVerifier}TokenExchangeParams(e,n){let r=`code=${e}&grant_type=authorization_code`;return r+=`&client_id=${encodeURIComponent(this.keycloak.clientId)}`,r+=`&redirect_uri=${this.silentLoginRedirectUrl}`,r+=`&code_verifier=${this.GetCodeVerifierFromState(n)}`,r}GenerateIframe(){const e=document.createElement("iframe");return e.src=this.keycloak.createLoginUrl({prompt:"none",redirectUri:this.silentLoginRedirectUrl})??"",document.body.appendChild(e),e}get silentLoginRedirectUrl(){return`${location.origin}/${this.fileName}`}get tokenExchangeUrl(){return`${this.keycloak.authServerUrl}/realms/${this.keycloak.realm}/protocol/openid-connect/token`}get isTokenExpired(){const e=this.keycloak.tokenParsed,n=e?e.exp:null;return!e||!n?!0:n-Math.ceil(new Date().getTime()/1e3)+(this.keycloak.timeSkew??0)<10}}const oh=(t,e)=>new Yi(t,e);function sh(t){const e=window.location.origin,n=new URL(t).origin;return e===n}class Ji{constructor(e){$e(this,"axios");this.axios=oe.create(e==null?void 0:e.config);const n=window.location.origin+"/api";this.axios.defaults.baseURL||(this.axios.defaults.baseURL=n),e!=null&&e.anonymous||this.axios.interceptors.request.use(async r=>{if(!sh(r.baseURL+r.url))return r;const o=await this.GetAccessTokenAsync();return o?r.headers.Authorization=`Bearer ${o}`:Bn().Instance.login(),r})}async GetAccessTokenAsync(){return await Bn().Instance.GetAccessTokenAsync()}async GetAsync(e){return this.axios.get(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}async PostAsync(e,n){return this.axios.post(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async PutAsync(e,n){return this.axios.put(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async DeleteAsync(e){return this.axios.delete(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}HandleThen(e){const n=new pn,r=this.ParsedResponse(e.data);return r===null?(n.httpStatusCode=e.status,n.value=e.data,n):(n.httpStatusCode=r.httpStatusCode,r.hasError?(n.WithErrors(r.errors),n):(n.value=r.value,n))}HandleCatch(e){var o;const n=new pn,r=this.ParsedResponse((o=e.response)==null?void 0:o.data);return r===null?(n.WithError(e.message),n):(n.httpStatusCode=r.httpStatusCode,n.WithErrors(r.errors),n)}ParsedResponse(e){try{const n=typeof e.hasSuccess=="boolean",r=typeof e.hasError=="boolean",o=typeof e.httpStatusCode=="number",s=Array.isArray(e.errors);return n&&r&&o&&s?e:null}catch{return null}}}const ih=t=>new Ji(t);class er{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const o of e)n+=`, ${o}`;const r=Math.max(...Array.from(document.querySelectorAll(n)).map(o=>{const s=getComputedStyle(o).zIndex;return+s==+s?+s:0}));return r>=100?r:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let r=0,o=e.toString();return n.replace(/#/g,()=>o[r++]||"")}static MaskCpf(e){return er.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return er.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}function ah(){document.documentElement.classList.add("app-mounted")}function Xi(){bt.SetInitialTheme()}function lh(){bt.Toggle()}function ch(){bt.EnableDarkMode()}function uh(){bt.EnableLightMode()}function dh(){bt.ClearStoredTheme()}Xi(),M.ApiClient=Ji,M.AppResult=pn,M.AxiosClient=Yi,M.ClearStoredTheme=dh,M.EnableDarkMode=ch,M.EnableLightMode=uh,M.Keycloak=$r,M.RemovePreloader=ah,M.SetInitialTheme=Xi,M.SfButton=bo,M.SfContent=xd,M.SfDrawer=yo,M.SfIcon=kn,M.SfLayout=Pd,M.SfMessage=Md,M.SfNavMenu=Bm,M.SfTabNavigation=Bd,M.SfTooltip=or,M.StartAuthService=cd,M.ToggleTheme=lh,M.UseAlertService=zu,M.UseApiClient=ih,M.UseAuthService=Bn,M.UseAxiosClient=oh,M.UseConfirmService=_s,M.UseNavMenuService=rr,M.Utilities=er,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})});
|
|
339
|
+
`)},sc={root:"p-ink"},ac=pe.extend({name:"ripple-directive",theme:ic,classes:sc}),lc=F.extend({style:ac});function Xt(t){"@babel/helpers - typeof";return Xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(t)}function cc(t){return mc(t)||fc(t)||dc(t)||uc()}function uc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
340
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dc(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 fc(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function mc(t){if(Array.isArray(t))return hr(t)}function hr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function qo(t,e,n){return(e=pc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pc(t){var e=hc(t,"string");return Xt(e)=="symbol"?e:e+""}function hc(t,e){if(Xt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Xt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var gc=lc.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=Za("span",qo(qo({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,r=e.currentTarget,o=this.getInk(r);if(!(!o||getComputedStyle(o,null).display==="none")){if(!this.isUnstyled()&&rr(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"),!ho(o)&&!go(o)){var i=Math.max(Xa(r),tl(r));o.style.height=i+"px",o.style.width=i+"px"}var s=el(r),a=e.pageX-s.left+document.body.scrollTop-go(o)/2,c=e.pageY-s.top+document.body.scrollLeft-ho(o)/2;o.style.top=c+"px",o.style.left=a+"px",!this.isUnstyled()&&Ja(o,"p-ink-active"),o.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){o&&(!n.isUnstyled()&&rr(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&rr(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?cc(e.children).find(function(n){return jt(n,"data-pc-name")==="ripple"}):void 0}}}),yc={name:"BasePanelMenu",extends:On,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Zl,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},Go={name:"PanelMenuSub",hostName:"PanelMenu",extends:On,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,r){return e&&e.item?Te(e.item[n],r):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{item:n.item,index:r,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 J(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(r){return n.isItemVisible(r)&&n.getItemProp(r,"separator")}).length+1},getMenuItemProps:function(e,n){return{action:l.mergeProps({class:this.cx("itemLink"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("itemLink",e,n)),icon:l.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:l.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:l.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:mr,ChevronDownIcon:fr},directives:{ripple:gc}},bc=["tabindex"],vc=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],wc=["onClick","onMousemove"],Sc=["href","target"];function _c(t,e,n,r,o,i){var s=l.resolveComponent("PanelMenuSub",!0),a=l.resolveDirective("ripple");return l.openBlock(),l.createElementBlock("ul",{class:l.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.items,function(c,u){return l.openBlock(),l.createElementBlock(l.Fragment,{key:i.getItemKey(c)},[i.isItemVisible(c)&&!i.getItemProp(c,"separator")?(l.openBlock(),l.createElementBlock("li",l.mergeProps({key:0,id:i.getItemId(c),class:[t.cx("item",{processedItem:c}),i.getItemProp(c,"class")],style:i.getItemProp(c,"style"),role:"treeitem","aria-label":i.getItemLabel(c),"aria-expanded":i.isItemGroup(c)?i.isItemActive(c):void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(u),ref_for:!0},i.getPTOptions("item",c,u),{"data-p-focused":i.isItemFocused(c),"data-p-disabled":i.isItemDisabled(c)}),[l.createElementVNode("div",l.mergeProps({class:t.cx("itemContent"),onClick:function(m){return i.onItemClick(m,c)},onMousemove:function(m){return i.onItemMouseMove(m,c)},ref_for:!0},i.getPTOptions("itemContent",c,u)),[n.templates.item?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.templates.item),{key:1,item:c.item,root:!1,active:i.isItemActive(c),hasSubmenu:i.isItemGroup(c),label:i.getItemLabel(c),props:i.getMenuItemProps(c,u)},null,8,["item","active","hasSubmenu","label","props"])):l.withDirectives((l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,href:i.getItemProp(c,"url"),class:t.cx("itemLink"),target:i.getItemProp(c,"target"),tabindex:"-1",ref_for:!0},i.getPTOptions("itemLink",c,u)),[i.isItemGroup(c)?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[n.templates.submenuicon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.templates.submenuicon),l.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(c),ref_for:!0},i.getPTOptions("submenuIcon",c,u)),null,16,["class","active"])):(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.isItemActive(c)?"ChevronDownIcon":"ChevronRightIcon"),l.mergeProps({key:1,class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",c,u)),null,16,["class"]))],64)):l.createCommentVNode("",!0),n.templates.itemicon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.templates.itemicon),{key:1,item:c.item,class:l.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.getItemProp(c,"icon")?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:2,class:[t.cx("itemIcon"),i.getItemProp(c,"icon")],ref_for:!0},i.getPTOptions("itemIcon",c,u)),null,16)):l.createCommentVNode("",!0),l.createElementVNode("span",l.mergeProps({class:t.cx("itemLabel"),ref_for:!0},i.getPTOptions("itemLabel",c,u)),l.toDisplayString(i.getItemLabel(c)),17)],16,Sc)),[[a]])],16,wc),l.createVNode(l.Transition,l.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:l.withCtx(function(){return[l.withDirectives(l.createElementVNode("div",l.mergeProps({class:t.cx("contentContainer"),ref_for:!0},t.ptm("contentContainer")),[i.isItemVisible(c)&&i.isItemGroup(c)?(l.openBlock(),l.createBlock(s,l.mergeProps({key:0,id:i.getItemId(c)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:c.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:i.onItemToggle,onItemMousemove:e[0]||(e[0]=function(f){return t.$emit("item-mousemove",f)}),pt:t.pt,unstyled:t.unstyled,ref_for:!0},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):l.createCommentVNode("",!0)],16),[[l.vShow,i.isItemActive(c)]])]}),_:2},1040)],16,vc)):l.createCommentVNode("",!0),i.isItemVisible(c)&&i.getItemProp(c,"separator")?(l.openBlock(),l.createElementBlock("li",l.mergeProps({key:1,style:i.getItemProp(c,"style"),class:[t.cx("separator"),i.getItemProp(c,"class")],role:"separator",ref_for:!0},t.ptm("separator")),null,16)):l.createCommentVNode("",!0)],64)}),128))],10,bc)}Go.render=_c;function kc(t,e){return Ac(t)||Tc(t,e)||Ec(t,e)||Cc()}function Cc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
341
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ec(t,e){if(t){if(typeof t=="string")return Yo(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)?Yo(t,e):void 0}}function Yo(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Tc(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function Ac(t){if(Array.isArray(t))return t}var Jo={name:"PanelMenuList",hostName:"PanelMenu",extends:On,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},mounted:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?Te(e.item[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.parentKey})},isItemGroup:function(e){return J(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&&il(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=J(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=J(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(J(this.focusedItem)){var r=this.activeItemPath.some(function(o){return o.key===n.focusedItem.key});r?this.activeItemPath=this.activeItemPath.filter(function(o){return o.key!==n.focusedItem.key}):this.focusedItem=J(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(J(this.focusedItem)){var r=this.isItemGroup(this.focusedItem);if(r){var o=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});o?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(J(this.focusedItem)){var n=De(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&(De(n,'[data-pc-section="itemlink"]')||De(n,"a,button"));r?r.click():n&&n.click()}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onItemToggle:function(e){var n=e.processedItem,r=e.expanded;this.expandedKeys?this.$emit("item-toggle",{item:n.item,expanded:r}):(this.activeItemPath=this.activeItemPath.filter(function(o){return o.parentKey!==n.parentKey}),r&&this.activeItemPath.push(n)),this.focusedItem=n,Ht(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var r=e.currentTarget.closest('[data-pc-section="panel"]');return r&&r.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 bo(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r<this.visibleItems.length-1?this.visibleItems.slice(r+1).find(function(i){return n.isValidItem(i)}):void 0;return o||e},findPrevItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r>0?bo(this.visibleItems.slice(0,r),function(i){return n.isValidItem(i)}):void 0;return o||e},searchItems:function(e,n){var r=this;this.searchValue=(this.searchValue||"")+n;var o=null,i=!1;if(J(this.focusedItem)){var s=this.visibleItems.findIndex(function(a){return a.key===r.focusedItem.key});o=this.visibleItems.slice(s).find(function(a){return r.isItemMatched(a)}),o=pt(o)?this.visibleItems.slice(0,s).find(function(a){return r.isItemMatched(a)}):o}else o=this.visibleItems.find(function(a){return r.isItemMatched(a)});return J(o)&&(i=!0),pt(o)&&pt(this.focusedItem)&&(o=this.findFirstItem()),J(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,r=e.processedItem,o=e.focusOnNext,i=e.selfCheck,s=e.allowHeaderFocus,a=s===void 0?!0:s;J(this.focusedItem)&&this.focusedItem.key!==r.key?(this.focusedItem=r,this.scrollInView()):a&&this.$emit("header-focus",{originalEvent:n,focusOnNext:o,selfCheck:i})},scrollInView:function(){var e=De(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(r,o){var i=kc(o,2),s=i[0],a=i[1];if(a){var c=n.findProcessedItemByItemKey(s);c&&r.push(c)}return r},[])},findProcessedItemByItemKey:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||r===0&&this.processedItems,!n)return null;for(var o=0;o<n.length;o++){var i=n[o];if(this.getItemProp(i,"key")===e)return i;var s=this.findProcessedItemByItemKey(e,i.items,r+1);if(s)return s}},createProcessedItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",s=[];return e&&e.forEach(function(a,c){var u=(i!==""?i+"_":"")+c,f={item:a,index:c,level:r,key:u,parent:o,parentKey:i};f.items=n.createProcessedItems(a.items,r+1,f,u),s.push(f)}),s},flatItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(o){n.isVisibleItem(o)&&(r.push(o),n.flatItems(o.items,r))}),r}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return J(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Go}};function Pc(t,e,n,r,o,i){var s=l.resolveComponent("PanelMenuSub");return l.openBlock(),l.createBlock(s,l.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":o.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:o.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:o.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"])}Jo.render=Pc;function Zt(t){"@babel/helpers - typeof";return Zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zt(t)}function Xo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ic(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xo(Object(n),!0).forEach(function(r){Oc(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Oc(t,e,n){return(e=xc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xc(t){var e=Lc(t,"string");return Zt(e)=="symbol"?e:e+""}function Lc(t,e){if(Zt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Zt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Zo={name:"PanelMenu",extends:yc,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||Tn()}},mounted:function(){this.id=this.id||Tn()},methods:{getItemProp:function(e,n){return e?Te(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{index:r,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 Tt(e,n)}):Tt(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return Tt(e,this.activeItem)},getPanelId:function(e){return"".concat(this.id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),Ht(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=jt(e.currentTarget,"data-p-active")===!0?De(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Ht(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=jt(n,"data-p-active")===!0?De(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;r?Ht(r):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 r=De(e.currentTarget,'[data-pc-section="headerlink"]');r?r.click():this.onHeaderClick(e,n),e.preventDefault()},findNextHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.nextElementSibling,o=De(r,'[data-pc-section="header"]');return o?jt(o,"data-p-disabled")?this.findNextHeader(o.parentElement):o:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.previousElementSibling,o=De(r,'[data-pc-section="header"]');return o?jt(o,"data-p-disabled")?this.findPrevHeader(o.parentElement):o: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,r=e.focusOnNext,o=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),s=o?De(i,'[data-pc-section="header"]'):r?this.findNextHeader(i):this.findPrevHeader(i);s?this.changeFocusedHeader(n,s):r?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var o=this.isItemActive(n),i=o?"panel-close":"panel-open";this.activeItem=r?n:this.activeItem&&Tt(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(s){return Tt(n,s)})?this.activeItems=this.activeItems.filter(function(s){return!Tt(n,s)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!o}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,r=e.expanded,o=r===void 0?!1:r;if(this.expandedKeys){var i=Ic({},this.expandedKeys);o?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Ht(n)},getMenuItemProps:function(e,n){return{icon:l.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:l.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:Jo,ChevronRightIcon:mr,ChevronDownIcon:fr}},Rc=["id"],$c=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],Bc=["href"],Nc=["id","aria-labelledby"];function Dc(t,e,n,r,o,i){var s=l.resolveComponent("PanelMenuList");return l.openBlock(),l.createElementBlock("div",l.mergeProps({id:o.id,class:t.cx("root")},t.ptmi("root")),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.model,function(a,c){return l.openBlock(),l.createElementBlock(l.Fragment,{key:i.getPanelKey(c)},[i.isItemVisible(a)?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,style:i.getItemProp(a,"style"),class:[t.cx("panel"),i.getItemProp(a,"class")],ref_for:!0},t.ptm("panel")),[l.createElementVNode("div",l.mergeProps({id:i.getHeaderId(c),class:[t.cx("header",{item:a}),i.getItemProp(a,"headerClass")],tabindex:i.isItemDisabled(a)?-1:t.tabindex,role:"button","aria-label":i.getItemLabel(a),"aria-expanded":i.isItemActive(a),"aria-controls":i.getContentId(c),"aria-disabled":i.isItemDisabled(a),onClick:function(f){return i.onHeaderClick(f,a)},onKeydown:function(f){return i.onHeaderKeyDown(f,a)},ref_for:!0},i.getPTOptions("header",a,c),{"data-p-active":i.isItemActive(a),"data-p-disabled":i.isItemDisabled(a)}),[l.createElementVNode("div",l.mergeProps({class:t.cx("headerContent"),ref_for:!0},i.getPTOptions("headerContent",a,c)),[t.$slots.item?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.$slots.item),{key:1,item:a,root:!0,active:i.isItemActive(a),hasSubmenu:i.getItemProp(a,"items"),label:i.getItemLabel(a),props:i.getMenuItemProps(a,c)},null,8,["item","active","hasSubmenu","label","props"])):(l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,href:i.getItemProp(a,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},i.getPTOptions("headerLink",a,c)),[i.getItemProp(a,"items")?l.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(a)},function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),l.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",a,c)),null,16,["class"]))]}):l.createCommentVNode("",!0),t.$slots.headericon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.$slots.headericon),{key:1,item:a,class:l.normalizeClass([t.cx("headerIcon"),i.getItemProp(a,"icon")])},null,8,["item","class"])):i.getItemProp(a,"icon")?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(a,"icon")],ref_for:!0},i.getPTOptions("headerIcon",a,c)),null,16)):l.createCommentVNode("",!0),l.createElementVNode("span",l.mergeProps({class:t.cx("headerLabel"),ref_for:!0},i.getPTOptions("headerLabel",a,c)),l.toDisplayString(i.getItemLabel(a)),17)],16,Bc))],16)],16,$c),l.createVNode(l.Transition,l.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:l.withCtx(function(){return[l.withDirectives(l.createElementVNode("div",l.mergeProps({id:i.getContentId(c),class:t.cx("contentContainer"),role:"region","aria-labelledby":i.getHeaderId(c),ref_for:!0},t.ptm("contentContainer")),[i.getItemProp(a,"items")?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[l.createVNode(s,{panelId:i.getPanelId(c),items:i.getItemProp(a,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:i.changeExpandedKeys,onHeaderFocus:i.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):l.createCommentVNode("",!0)],16,Nc),[[l.vShow,i.isItemActive(a)]])]}),_:2},1040)],16)):l.createCommentVNode("",!0)],64)}),128))],16,Rc)}Zo.render=Dc;const Mc={class:"panel-menu-wrapper"},Uc=["data-active","href","onClick"],Hc={class:"material-symbols-outlined item-menu-icon-left"},jc={key:1,class:"item-menu sf-ripple"},Vc={key:0,class:"material-symbols-outlined item-menu-icon-left"},Fc=Sn(l.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=tr();function r(o,i){o.preventDefault();const a=o.target.closest(".panel-menu-wrapper");a&&a.clientWidth+10>document.body.clientWidth&&n.Close(),i()}return(o,i)=>{const s=l.resolveComponent("router-link");return l.openBlock(),l.createElementBlock("div",Mc,[l.createVNode(l.unref(Zo),{model:e.items,unstyled:!0},{item:l.withCtx(({item:a,active:c})=>[a.href?(l.openBlock(),l.createBlock(s,{key:0,to:{path:a.href,params:a.params??{},query:a.query??{}},custom:""},{default:l.withCtx(({navigate:u,isActive:f})=>[l.createElementVNode("a",{class:"item-menu sf-ripple","data-active":f,href:a.href,onClick:m=>r(m,u)},[l.createElementVNode("span",Hc,l.toDisplayString(a.icon??"chevron_right"),1),l.createElementVNode("span",null,l.toDisplayString(a.text),1)],8,Uc)]),_:2},1032,["to"])):(l.openBlock(),l.createElementBlock("a",jc,[a.icon?(l.openBlock(),l.createElementBlock("span",Vc,l.toDisplayString(a.icon),1)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.text),1),i[0]||(i[0]=l.createElementVNode("div",{class:"sf-flex-grow-1"},null,-1)),l.createElementVNode("span",{class:l.normalizeClass(["material-symbols-outlined arrow",{"--expand":c}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-74bc83ee"]]),Qo="SweetAlert2:",zc=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},gr=t=>t.charAt(0).toUpperCase()+t.slice(1),Ae=t=>Array.prototype.slice.call(t),ve=t=>{console.warn(`${Qo} ${typeof t=="object"?t.join(" "):t}`)},ht=t=>{console.error(`${Qo} ${t}`)},ei=[],Kc=t=>{ei.includes(t)||(ei.push(t),ve(t))},Wc=(t,e)=>{Kc(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},xn=t=>typeof t=="function"?t():t,yr=t=>t&&typeof t.toPromise=="function",Qt=t=>yr(t)?t.toPromise():Promise.resolve(t),br=t=>t&&Promise.resolve(t)===t,At={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},qc=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Gc={},Yc=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],ti=t=>Object.prototype.hasOwnProperty.call(At,t),ni=t=>qc.indexOf(t)!==-1,vr=t=>Gc[t],Jc=t=>{ti(t)||ve(`Unknown parameter "${t}"`)},Xc=t=>{Yc.includes(t)&&ve(`The parameter "${t}" is incompatible with toasts`)},Zc=t=>{vr(t)&&Wc(t,vr(t))},Qc=t=>{!t.backdrop&&t.allowOutsideClick&&ve('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Jc(e),t.toast&&Xc(e),Zc(e)},eu="swal2-",ri=t=>{const e={};for(const n in t)e[t[n]]=eu+t[n];return e},y=ri(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),en=ri(["success","warning","info","question","error"]),ce=()=>document.body.querySelector(`.${y.container}`),tn=t=>{const e=ce();return e?e.querySelector(t):null},Re=t=>tn(`.${t}`),X=()=>Re(y.popup),nn=()=>Re(y.icon),oi=()=>Re(y.title),Ln=()=>Re(y["html-container"]),ii=()=>Re(y.image),si=()=>Re(y["progress-steps"]),Rn=()=>Re(y["validation-message"]),He=()=>tn(`.${y.actions} .${y.confirm}`),at=()=>tn(`.${y.actions} .${y.deny}`),tu=()=>Re(y["input-label"]),Pt=()=>tn(`.${y.loader}`),gt=()=>tn(`.${y.actions} .${y.cancel}`),rn=()=>Re(y.actions),ai=()=>Re(y.footer),$n=()=>Re(y["timer-progress-bar"]),wr=()=>Re(y.close),nu=`
|
|
342
|
+
a[href],
|
|
343
|
+
area[href],
|
|
344
|
+
input:not([disabled]),
|
|
345
|
+
select:not([disabled]),
|
|
346
|
+
textarea:not([disabled]),
|
|
347
|
+
button:not([disabled]),
|
|
348
|
+
iframe,
|
|
349
|
+
object,
|
|
350
|
+
embed,
|
|
351
|
+
[tabindex="0"],
|
|
352
|
+
[contenteditable],
|
|
353
|
+
audio[controls],
|
|
354
|
+
video[controls],
|
|
355
|
+
summary
|
|
356
|
+
`,Sr=()=>{const t=Ae(X().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,r)=>{const o=parseInt(n.getAttribute("tabindex")),i=parseInt(r.getAttribute("tabindex"));return o>i?1:o<i?-1:0}),e=Ae(X().querySelectorAll(nu)).filter(n=>n.getAttribute("tabindex")!=="-1");return zc(t.concat(e)).filter(n=>Pe(n))},_r=()=>tt(document.body,y.shown)&&!tt(document.body,y["toast-shown"])&&!tt(document.body,y["no-backdrop"]),Bn=()=>X()&&tt(X(),y.toast),ru=()=>X().hasAttribute("data-loading"),It={previousBodyPadding:null},ue=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html");Ae(r.querySelector("head").childNodes).forEach(o=>{t.appendChild(o)}),Ae(r.querySelector("body").childNodes).forEach(o=>{t.appendChild(o)})}},tt=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},ou=(t,e)=>{Ae(t.classList).forEach(n=>{!Object.values(y).includes(n)&&!Object.values(en).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},$e=(t,e,n)=>{if(ou(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return ve(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);G(t,e.customClass[n])}},kr=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${y.popup} > .${y[e]}`);case"checkbox":return t.querySelector(`.${y.popup} > .${y.checkbox} input`);case"radio":return t.querySelector(`.${y.popup} > .${y.radio} input:checked`)||t.querySelector(`.${y.popup} > .${y.radio} input:first-child`);case"range":return t.querySelector(`.${y.popup} > .${y.range} input`);default:return t.querySelector(`.${y.popup} > .${y.input}`)}},li=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},ci=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(r=>{Array.isArray(t)?t.forEach(o=>{n?o.classList.add(r):o.classList.remove(r)}):n?t.classList.add(r):t.classList.remove(r)}))},G=(t,e)=>{ci(t,e,!0)},Ge=(t,e)=>{ci(t,e,!1)},lt=(t,e)=>{const n=Ae(t.childNodes);for(let r=0;r<n.length;r++)if(tt(n[r],e))return n[r]},on=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?t.style[e]=typeof n=="number"?`${n}px`:n:t.style.removeProperty(e)},ae=(t,e="flex")=>{t.style.display=e},de=t=>{t.style.display="none"},ui=(t,e,n,r)=>{const o=t.querySelector(e);o&&(o.style[n]=r)},Nn=(t,e,n)=>{e?ae(t,n):de(t)},Pe=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),iu=()=>!Pe(He())&&!Pe(at())&&!Pe(gt()),di=t=>t.scrollHeight>t.clientHeight,fi=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},Cr=(t,e=!1)=>{const n=$n();Pe(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},su=()=>{const t=$n(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),r=e/n*100;t.style.removeProperty("transition"),t.style.width=`${r}%`},mi=()=>typeof window>"u"||typeof document>"u",au=100,U={},lu=()=>{U.previousActiveElement&&U.previousActiveElement.focus?(U.previousActiveElement.focus(),U.previousActiveElement=null):document.body&&document.body.focus()},cu=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;U.restoreFocusTimeout=setTimeout(()=>{lu(),e()},au),window.scrollTo(n,r)}),uu=`
|
|
357
|
+
<div aria-labelledby="${y.title}" aria-describedby="${y["html-container"]}" class="${y.popup}" tabindex="-1">
|
|
358
|
+
<button type="button" class="${y.close}"></button>
|
|
359
|
+
<ul class="${y["progress-steps"]}"></ul>
|
|
360
|
+
<div class="${y.icon}"></div>
|
|
361
|
+
<img class="${y.image}" />
|
|
362
|
+
<h2 class="${y.title}" id="${y.title}"></h2>
|
|
363
|
+
<div class="${y["html-container"]}" id="${y["html-container"]}"></div>
|
|
364
|
+
<input class="${y.input}" />
|
|
365
|
+
<input type="file" class="${y.file}" />
|
|
366
|
+
<div class="${y.range}">
|
|
367
|
+
<input type="range" />
|
|
368
|
+
<output></output>
|
|
369
|
+
</div>
|
|
370
|
+
<select class="${y.select}"></select>
|
|
371
|
+
<div class="${y.radio}"></div>
|
|
372
|
+
<label for="${y.checkbox}" class="${y.checkbox}">
|
|
373
|
+
<input type="checkbox" />
|
|
374
|
+
<span class="${y.label}"></span>
|
|
375
|
+
</label>
|
|
376
|
+
<textarea class="${y.textarea}"></textarea>
|
|
377
|
+
<div class="${y["validation-message"]}" id="${y["validation-message"]}"></div>
|
|
378
|
+
<div class="${y.actions}">
|
|
379
|
+
<div class="${y.loader}"></div>
|
|
380
|
+
<button type="button" class="${y.confirm}"></button>
|
|
381
|
+
<button type="button" class="${y.deny}"></button>
|
|
382
|
+
<button type="button" class="${y.cancel}"></button>
|
|
383
|
+
</div>
|
|
384
|
+
<div class="${y.footer}"></div>
|
|
385
|
+
<div class="${y["timer-progress-bar-container"]}">
|
|
386
|
+
<div class="${y["timer-progress-bar"]}"></div>
|
|
387
|
+
</div>
|
|
388
|
+
</div>
|
|
389
|
+
`.replace(/(^|\n)\s*/g,""),du=()=>{const t=ce();return t?(t.remove(),Ge([document.documentElement,document.body],[y["no-backdrop"],y["toast-shown"],y["has-column"]]),!0):!1},yt=()=>{U.currentInstance.resetValidationMessage()},fu=()=>{const t=X(),e=lt(t,y.input),n=lt(t,y.file),r=t.querySelector(`.${y.range} input`),o=t.querySelector(`.${y.range} output`),i=lt(t,y.select),s=t.querySelector(`.${y.checkbox} input`),a=lt(t,y.textarea);e.oninput=yt,n.onchange=yt,i.onchange=yt,s.onchange=yt,a.oninput=yt,r.oninput=()=>{yt(),o.value=r.value},r.onchange=()=>{yt(),r.nextSibling.value=r.value}},mu=t=>typeof t=="string"?document.querySelector(t):t,pu=t=>{const e=X();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},hu=t=>{window.getComputedStyle(t).direction==="rtl"&&G(ce(),y.rtl)},gu=t=>{const e=du();if(mi()){ht("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=y.container,e&&G(n,y["no-transition"]),ue(n,uu);const r=mu(t.target);r.appendChild(n),pu(t),hu(r),fu()},Er=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?yu(t,e):t&&ue(e,t)},yu=(t,e)=>{t.jquery?bu(e,t):ue(e,t.toString())},bu=(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))},sn=(()=>{if(mi())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&typeof t.style[n]<"u")return e[n];return!1})(),vu=()=>{const t=document.createElement("div");t.className=y["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},wu=(t,e)=>{const n=rn(),r=Pt();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?de(n):ae(n),$e(n,e,"actions"),Su(n,r,e),ue(r,e.loaderHtml),$e(r,e,"loader")};function Su(t,e,n){const r=He(),o=at(),i=gt();Tr(r,"confirm",n),Tr(o,"deny",n),Tr(i,"cancel",n),_u(r,o,i,n),n.reverseButtons&&(n.toast?(t.insertBefore(i,r),t.insertBefore(o,r)):(t.insertBefore(i,e),t.insertBefore(o,e),t.insertBefore(r,e)))}function _u(t,e,n,r){if(!r.buttonsStyling)return Ge([t,e,n],y.styled);G([t,e,n],y.styled),r.confirmButtonColor&&(t.style.backgroundColor=r.confirmButtonColor,G(t,y["default-outline"])),r.denyButtonColor&&(e.style.backgroundColor=r.denyButtonColor,G(e,y["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,G(n,y["default-outline"]))}function Tr(t,e,n){Nn(t,n[`show${gr(e)}Button`],"inline-block"),ue(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=y[e],$e(t,n,`${e}Button`),G(t,n[`${e}ButtonClass`])}function ku(t,e){typeof e=="string"?t.style.background=e:e||G([document.documentElement,document.body],y["no-backdrop"])}function Cu(t,e){e in y?G(t,y[e]):(ve('The "position" parameter is not valid, defaulting to "center"'),G(t,y.center))}function Eu(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in y&&G(t,y[n])}}const Tu=(t,e)=>{const n=ce();n&&(ku(n,e.backdrop),Cu(n,e.position),Eu(n,e.grow),$e(n,e,"container"))},V={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Au=["input","file","range","select","radio","checkbox","textarea"],Pu=(t,e)=>{const n=X(),r=V.innerParams.get(t),o=!r||e.input!==r.input;Au.forEach(i=>{const s=y[i],a=lt(n,s);xu(i,e.inputAttributes),a.className=s,o&&de(a)}),e.input&&(o&&Iu(e),Lu(e))},Iu=t=>{if(!we[t.input])return ht(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=pi(t.input),n=we[t.input](e,t);ae(n),setTimeout(()=>{li(n)})},Ou=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},xu=(t,e)=>{const n=kr(X(),t);if(n){Ou(n);for(const r in e)n.setAttribute(r,e[r])}},Lu=t=>{const e=pi(t.input);t.customClass&&G(e,t.customClass.input)},Ar=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},an=(t,e,n)=>{if(n.inputLabel){t.id=y.input;const r=document.createElement("label"),o=y["input-label"];r.setAttribute("for",t.id),r.className=o,G(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},pi=t=>{const e=y[t]?y[t]:y.input;return lt(X(),e)},we={};we.text=we.email=we.password=we.number=we.tel=we.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:br(e.inputValue)||ve(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),an(t,t,e),Ar(t,e),t.type=e.input,t),we.file=(t,e)=>(an(t,t,e),Ar(t,e),t),we.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,r.value=e.inputValue,an(n,t,e),t},we.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");ue(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return an(t,t,e),t},we.radio=t=>(t.textContent="",t),we.checkbox=(t,e)=>{const n=kr(X(),"checkbox");n.value="1",n.id=y.checkbox,n.checked=!!e.inputValue;const r=t.querySelector("span");return ue(r,e.inputPlaceholder),t},we.textarea=(t,e)=>{t.value=e.inputValue,Ar(t,e),an(t,t,e);const n=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(X()).width),o=()=>{const i=t.offsetWidth+n(t);i>r?X().style.width=`${i}px`:X().style.width=null};new MutationObserver(o).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const Ru=(t,e)=>{const n=Ln();$e(n,e,"htmlContainer"),e.html?(Er(e.html,n),ae(n,"block")):e.text?(n.textContent=e.text,ae(n,"block")):de(n),Pu(t,e)},$u=(t,e)=>{const n=ai();Nn(n,e.footer),e.footer&&Er(e.footer,n),$e(n,e,"footer")},Bu=(t,e)=>{const n=wr();ue(n,e.closeButtonHtml),$e(n,e,"closeButton"),Nn(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},Nu=(t,e)=>{const n=V.innerParams.get(t),r=nn();if(n&&e.icon===n.icon){gi(r,e),hi(r,e);return}if(!e.icon&&!e.iconHtml)return de(r);if(e.icon&&Object.keys(en).indexOf(e.icon)===-1)return ht(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),de(r);ae(r),gi(r,e),hi(r,e),G(r,e.showClass.icon)},hi=(t,e)=>{for(const n in en)e.icon!==n&&Ge(t,en[n]);G(t,en[e.icon]),Hu(t,e),Du(),$e(t,e,"icon")},Du=()=>{const t=X(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=e},Mu=`
|
|
390
|
+
<div class="swal2-success-circular-line-left"></div>
|
|
391
|
+
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
392
|
+
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
|
|
393
|
+
<div class="swal2-success-circular-line-right"></div>
|
|
394
|
+
`,Uu=`
|
|
395
|
+
<span class="swal2-x-mark">
|
|
396
|
+
<span class="swal2-x-mark-line-left"></span>
|
|
397
|
+
<span class="swal2-x-mark-line-right"></span>
|
|
398
|
+
</span>
|
|
399
|
+
`,gi=(t,e)=>{t.textContent="",e.iconHtml?ue(t,yi(e.iconHtml)):e.icon==="success"?ue(t,Mu):e.icon==="error"?ue(t,Uu):ue(t,yi({question:"?",warning:"!",info:"i"}[e.icon]))},Hu=(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"])ui(t,n,"backgroundColor",e.iconColor);ui(t,".swal2-success-ring","borderColor",e.iconColor)}},yi=t=>`<div class="${y["icon-content"]}">${t}</div>`,ju=(t,e)=>{const n=ii();if(!e.imageUrl)return de(n);ae(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),on(n,"width",e.imageWidth),on(n,"height",e.imageHeight),n.className=y.image,$e(n,e,"image")},Vu=t=>{const e=document.createElement("li");return G(e,y["progress-step"]),ue(e,t),e},Fu=t=>{const e=document.createElement("li");return G(e,y["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},zu=(t,e)=>{const n=si();if(!e.progressSteps||e.progressSteps.length===0)return de(n);ae(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&ve("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((r,o)=>{const i=Vu(r);if(n.appendChild(i),o===e.currentProgressStep&&G(i,y["active-progress-step"]),o!==e.progressSteps.length-1){const s=Fu(e);n.appendChild(s)}})},Ku=(t,e)=>{const n=oi();Nn(n,e.title||e.titleText,"block"),e.title&&Er(e.title,n),e.titleText&&(n.innerText=e.titleText),$e(n,e,"title")},Wu=(t,e)=>{const n=ce(),r=X();e.toast?(on(n,"width",e.width),r.style.width="100%",r.insertBefore(Pt(),nn())):on(r,"width",e.width),on(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),de(Rn()),qu(r,e)},qu=(t,e)=>{t.className=`${y.popup} ${Pe(t)?e.showClass.popup:""}`,e.toast?(G([document.documentElement,document.body],y["toast-shown"]),G(t,y.toast)):G(t,y.modal),$e(t,e,"popup"),typeof e.customClass=="string"&&G(t,e.customClass),e.icon&&G(t,y[`icon-${e.icon}`])},bi=(t,e)=>{Wu(t,e),Tu(t,e),zu(t,e),Nu(t,e),ju(t,e),Ku(t,e),Bu(t,e),Ru(t,e),wu(t,e),$u(t,e),typeof e.didRender=="function"&&e.didRender(X())},Ot=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Gu=()=>{Ae(document.body.children).forEach(e=>{e===ce()||e.contains(ce())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},vi=()=>{Ae(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")})},wi=["swal-title","swal-html","swal-footer"],Yu=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return nd(n),Object.assign(Ju(n),Xu(n),Zu(n),Qu(n),ed(n),td(n,wi))},Ju=t=>{const e={};return Ae(t.querySelectorAll("swal-param")).forEach(n=>{bt(n,["name","value"]);const r=n.getAttribute("name"),o=n.getAttribute("value");typeof At[r]=="boolean"&&o==="false"&&(e[r]=!1),typeof At[r]=="object"&&(e[r]=JSON.parse(o))}),e},Xu=t=>{const e={};return Ae(t.querySelectorAll("swal-button")).forEach(n=>{bt(n,["type","color","aria-label"]);const r=n.getAttribute("type");e[`${r}ButtonText`]=n.innerHTML,e[`show${gr(r)}Button`]=!0,n.hasAttribute("color")&&(e[`${r}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${r}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Zu=t=>{const e={},n=t.querySelector("swal-image");return n&&(bt(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e},Qu=t=>{const e={},n=t.querySelector("swal-icon");return n&&(bt(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},ed=t=>{const e={},n=t.querySelector("swal-input");n&&(bt(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 r=t.querySelectorAll("swal-input-option");return r.length&&(e.inputOptions={},Ae(r).forEach(o=>{bt(o,["value"]);const i=o.getAttribute("value"),s=o.innerHTML;e.inputOptions[i]=s})),e},td=(t,e)=>{const n={};for(const r in e){const o=e[r],i=t.querySelector(o);i&&(bt(i,[]),n[o.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},nd=t=>{const e=wi.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Ae(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.indexOf(r)===-1&&ve(`Unrecognized element <${r}>`)})},bt=(t,e)=>{Ae(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&ve([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Si={email:(t,e)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function rd(t){t.inputValidator||Object.keys(Si).forEach(e=>{t.input===e&&(t.inputValidator=Si[e])})}function od(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(ve('Target parameter is not valid, defaulting to "body"'),t.target="body")}function id(t){rd(t),t.showLoaderOnConfirm&&!t.preConfirm&&ve(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
400
|
+
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
401
|
+
https://sweetalert2.github.io/#ajax-request`),od(t),typeof t.title=="string"&&(t.title=t.title.split(`
|
|
402
|
+
`).join("<br />")),gu(t)}class sd{constructor(e,n){this.callback=e,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ad=()=>{It.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(It.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${It.previousBodyPadding+vu()}px`)},ld=()=>{It.previousBodyPadding!==null&&(document.body.style.paddingRight=`${It.previousBodyPadding}px`,It.previousBodyPadding=null)},cd=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!tt(document.body,y.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,G(document.body,y.iosfix),dd(),ud()}},ud=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&X().scrollHeight>window.innerHeight-44&&(ce().style.paddingBottom="44px")},dd=()=>{const t=ce();let e;t.ontouchstart=n=>{e=fd(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},fd=t=>{const e=t.target,n=ce();return md(t)||pd(t)?!1:e===n||!di(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(di(Ln())&&Ln().contains(e))},md=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",pd=t=>t.touches&&t.touches.length>1,hd=()=>{if(tt(document.body,y.iosfix)){const t=parseInt(document.body.style.top,10);Ge(document.body,y.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},_i=10,gd=t=>{const e=ce(),n=X();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;vd(e,n,t),setTimeout(()=>{yd(e,n)},_i),_r()&&(bd(e,t.scrollbarPadding,o),Gu()),!Bn()&&!U.previousActiveElement&&(U.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Ge(e,y["no-transition"])},ki=t=>{const e=X();if(t.target!==e)return;const n=ce();e.removeEventListener(sn,ki),n.style.overflowY="auto"},yd=(t,e)=>{sn&&fi(e)?(t.style.overflowY="hidden",e.addEventListener(sn,ki)):t.style.overflowY="auto"},bd=(t,e,n)=>{cd(),e&&n!=="hidden"&&ad(),setTimeout(()=>{t.scrollTop=0})},vd=(t,e,n)=>{G(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ae(e,"grid"),setTimeout(()=>{G(e,n.showClass.popup),e.style.removeProperty("opacity")},_i),G([document.documentElement,document.body],y.shown),n.heightAuto&&n.backdrop&&!n.toast&&G([document.documentElement,document.body],y["height-auto"])},xt=t=>{let e=X();e||new Rt,e=X();const n=Pt();Bn()?de(nn()):wd(e,t),ae(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},wd=(t,e)=>{const n=rn(),r=Pt();!e&&Pe(He())&&(e=He()),ae(n),e&&(de(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),G([t,n],y.loading)},Sd=(t,e)=>{e.input==="select"||e.input==="radio"?Td(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(yr(e.inputValue)||br(e.inputValue))&&(xt(He()),Ad(t,e))},_d=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return kd(n);case"radio":return Cd(n);case"file":return Ed(n);default:return e.inputAutoTrim?n.value.trim():n.value}},kd=t=>t.checked?1:0,Cd=t=>t.checked?t.value:null,Ed=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Td=(t,e)=>{const n=X(),r=o=>Pd[e.input](n,Pr(o),e);yr(e.inputOptions)||br(e.inputOptions)?(xt(He()),Qt(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):ht(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Ad=(t,e)=>{const n=t.getInput();de(n),Qt(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,ae(n),n.focus(),t.hideLoading()}).catch(r=>{ht(`Error in inputValue promise: ${r}`),n.value="",ae(n),n.focus(),t.hideLoading()})},Pd={select:(t,e,n)=>{const r=lt(t,y.select),o=(i,s,a)=>{const c=document.createElement("option");c.value=a,ue(c,s),c.selected=Ci(a,n.inputValue),i.appendChild(c)};e.forEach(i=>{const s=i[0],a=i[1];if(Array.isArray(a)){const c=document.createElement("optgroup");c.label=s,c.disabled=!1,r.appendChild(c),a.forEach(u=>o(c,u[1],u[0]))}else o(r,a,s)}),r.focus()},radio:(t,e,n)=>{const r=lt(t,y.radio);e.forEach(i=>{const s=i[0],a=i[1],c=document.createElement("input"),u=document.createElement("label");c.type="radio",c.name=y.radio,c.value=s,Ci(s,n.inputValue)&&(c.checked=!0);const f=document.createElement("span");ue(f,a),f.className=y.label,u.appendChild(c),u.appendChild(f),r.appendChild(u)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}},Pr=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,r)=>{let o=n;typeof o=="object"&&(o=Pr(o)),e.push([r,o])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=Pr(r)),e.push([n,r])}),e},Ci=(t,e)=>e&&e.toString()===t.toString();function Ei(){const t=V.innerParams.get(this);if(!t)return;const e=V.domCache.get(this);de(e.loader),Bn()?t.icon&&ae(nn()):Id(e),Ge([e.popup,e.actions],y.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Id=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ae(e[0],"inline-block"):iu()&&de(t.actions)};function Od(t){const e=V.innerParams.get(t||this),n=V.domCache.get(t||this);return n?kr(n.popup,e.input):null}const ln={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},xd=()=>Pe(X()),Ti=()=>He()&&He().click(),Ld=()=>at()&&at().click(),Rd=()=>gt()&>().click(),Ai=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},$d=(t,e,n,r)=>{Ai(e),n.toast||(e.keydownHandler=o=>Nd(t,o,r),e.keydownTarget=n.keydownListenerCapture?window:X(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Ir=(t,e,n)=>{const r=Sr();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();X().focus()},Pi=["ArrowRight","ArrowDown"],Bd=["ArrowLeft","ArrowUp"],Nd=(t,e,n)=>{const r=V.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Dd(t,e,r):e.key==="Tab"?Md(e,r):[...Pi,...Bd].includes(e.key)?Ud(e.key):e.key==="Escape"&&Hd(e,r,n)))},Dd=(t,e,n)=>{if(xn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;Ti(),e.preventDefault()}},Md=(t,e)=>{const n=t.target,r=Sr();let o=-1;for(let i=0;i<r.length;i++)if(n===r[i]){o=i;break}t.shiftKey?Ir(e,o,-1):Ir(e,o,1),t.stopPropagation(),t.preventDefault()},Ud=t=>{const e=He(),n=at(),r=gt();if(![e,n,r].includes(document.activeElement))return;const o=Pi.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let s=0;s<rn().children.length;s++){if(i=i[o],!i)return;if(Pe(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},Hd=(t,e,n)=>{xn(e.allowEscapeKey)&&(t.preventDefault(),n(Ot.esc))};function Ii(t,e,n,r){Bn()?Oi(t,r):(cu(n).then(()=>Oi(t,r)),Ai(U)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),_r()&&(ld(),hd(),vi()),jd()}function jd(){Ge([document.documentElement,document.body],[y.shown,y["height-auto"],y["no-backdrop"],y["toast-shown"]])}function Dn(t){t=Kd(t);const e=ln.swalPromiseResolve.get(this),n=Fd(this);this.isAwaitingPromise()?t.isDismissed||(cn(this),e(t)):n&&e(t)}function Vd(){return!!V.awaitingPromise.get(this)}const Fd=t=>{const e=X();if(!e)return!1;const n=V.innerParams.get(t);if(!n||tt(e,n.hideClass.popup))return!1;Ge(e,n.showClass.popup),G(e,n.hideClass.popup);const r=ce();return Ge(r,n.showClass.backdrop),G(r,n.hideClass.backdrop),Wd(t,e,n),!0};function zd(t){const e=ln.swalPromiseReject.get(this);cn(this),e&&e(t)}const cn=t=>{t.isAwaitingPromise()&&(V.awaitingPromise.delete(t),V.innerParams.get(t)||t._destroy())},Kd=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Wd=(t,e,n)=>{const r=ce(),o=sn&&fi(e);typeof n.willClose=="function"&&n.willClose(e),o?qd(t,e,r,n.returnFocus,n.didClose):Ii(t,r,n.returnFocus,n.didClose)},qd=(t,e,n,r,o)=>{U.swalCloseEventFinishedCallback=Ii.bind(null,t,n,r,o),e.addEventListener(sn,function(i){i.target===e&&(U.swalCloseEventFinishedCallback(),delete U.swalCloseEventFinishedCallback)})},Oi=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function xi(t,e,n){const r=V.domCache.get(t);e.forEach(o=>{r[o].disabled=n})}function Li(t,e){if(!t)return!1;if(t.type==="radio"){const r=t.parentNode.parentNode.querySelectorAll("input");for(let o=0;o<r.length;o++)r[o].disabled=e}else t.disabled=e}function Gd(){xi(this,["confirmButton","denyButton","cancelButton"],!1)}function Yd(){xi(this,["confirmButton","denyButton","cancelButton"],!0)}function Jd(){return Li(this.getInput(),!1)}function Xd(){return Li(this.getInput(),!0)}function Zd(t){const e=V.domCache.get(this),n=V.innerParams.get(this);ue(e.validationMessage,t),e.validationMessage.className=y["validation-message"],n.customClass&&n.customClass.validationMessage&&G(e.validationMessage,n.customClass.validationMessage),ae(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",y["validation-message"]),li(r),G(r,y.inputerror))}function Qd(){const t=V.domCache.get(this);t.validationMessage&&de(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ge(e,y.inputerror))}function ef(){return V.domCache.get(this).progressSteps}function tf(t){const e=X(),n=V.innerParams.get(this);if(!e||tt(e,n.hideClass.popup))return ve("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=nf(t),o=Object.assign({},n,r);bi(this,o),V.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const nf=t=>{const e={};return Object.keys(t).forEach(n=>{ni(n)?e[n]=t[n]:ve(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
403
|
+
|
|
404
|
+
If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`)}),e};function rf(){const t=V.domCache.get(this),e=V.innerParams.get(this);if(!e){Ri(this);return}t.popup&&U.swalCloseEventFinishedCallback&&(U.swalCloseEventFinishedCallback(),delete U.swalCloseEventFinishedCallback),U.deferDisposalTimer&&(clearTimeout(U.deferDisposalTimer),delete U.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),of(this)}const of=t=>{Ri(t),delete t.params,delete U.keydownHandler,delete U.keydownTarget,delete U.currentInstance},Ri=t=>{t.isAwaitingPromise()?(Or(V,t),V.awaitingPromise.set(t,!0)):(Or(ln,t),Or(V,t))},Or=(t,e)=>{for(const n in t)t[n].delete(e)},$i=Object.freeze(Object.defineProperty({__proto__:null,_destroy:rf,close:Dn,closeModal:Dn,closePopup:Dn,closeToast:Dn,disableButtons:Yd,disableInput:Xd,disableLoading:Ei,enableButtons:Gd,enableInput:Jd,getInput:Od,getProgressSteps:ef,handleAwaitingPromise:cn,hideLoading:Ei,isAwaitingPromise:Vd,rejectPromise:zd,resetValidationMessage:Qd,showValidationMessage:Zd,update:tf},Symbol.toStringTag,{value:"Module"})),sf=t=>{const e=V.innerParams.get(t);t.disableButtons(),e.input?Bi(t,"confirm"):Lr(t,!0)},af=t=>{const e=V.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Bi(t,"deny"):xr(t,!1)},lf=(t,e)=>{t.disableButtons(),e(Ot.cancel)},Bi=(t,e)=>{const n=V.innerParams.get(t);if(!n.input)return ht(`The "input" parameter is needed to be set when using returnInputValueOn${gr(e)}`);const r=_d(t,n);n.inputValidator?cf(t,r,e):t.getInput().checkValidity()?e==="deny"?xr(t,r):Lr(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},cf=(t,e,n)=>{const r=V.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Qt(r.inputValidator(e,r.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?xr(t,e):Lr(t,e)})},xr=(t,e)=>{const n=V.innerParams.get(t||void 0);n.showLoaderOnDeny&&xt(at()),n.preDeny?(V.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Qt(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),cn(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>Di(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},Ni=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Di=(t,e)=>{t.rejectPromise(e)},Lr=(t,e)=>{const n=V.innerParams.get(t||void 0);n.showLoaderOnConfirm&&xt(),n.preConfirm?(t.resetValidationMessage(),V.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Qt(n.preConfirm(e,n.validationMessage))).then(o=>{Pe(Rn())||o===!1?(t.hideLoading(),cn(t)):Ni(t,typeof o>"u"?e:o)}).catch(o=>Di(t||void 0,o))):Ni(t,e)},uf=(t,e,n)=>{V.innerParams.get(t).toast?df(t,e,n):(mf(e),pf(e),hf(t,e,n))},df=(t,e,n)=>{e.popup.onclick=()=>{const r=V.innerParams.get(t);r&&(ff(r)||r.timer||r.input)||n(Ot.close)}},ff=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Mn=!1;const mf=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Mn=!0)}}},pf=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Mn=!0)}}},hf=(t,e,n)=>{e.container.onclick=r=>{const o=V.innerParams.get(t);if(Mn){Mn=!1;return}r.target===e.container&&xn(o.allowOutsideClick)&&n(Ot.backdrop)}},gf=t=>typeof t=="object"&&t.jquery,Mi=t=>t instanceof Element||gf(t),yf=t=>{const e={};return typeof t[0]=="object"&&!Mi(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||Mi(o)?e[n]=o:o!==void 0&&ht(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function bf(...t){const e=this;return new e(...t)}function vf(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const wf=()=>U.timeout&&U.timeout.getTimerLeft(),Ui=()=>{if(U.timeout)return su(),U.timeout.stop()},Hi=()=>{if(U.timeout){const t=U.timeout.start();return Cr(t),t}},Sf=()=>{const t=U.timeout;return t&&(t.running?Ui():Hi())},_f=t=>{if(U.timeout){const e=U.timeout.increase(t);return Cr(e,!0),e}},kf=()=>U.timeout&&U.timeout.isRunning();let ji=!1;const Rr={};function Cf(t="data-swal-template"){Rr[t]=this,ji||(document.body.addEventListener("click",Ef),ji=!0)}const Ef=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Rr){const r=e.getAttribute(n);if(r){Rr[n].fire({template:r});return}}},Tf=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:yf,bindClickHandler:Cf,clickCancel:Rd,clickConfirm:Ti,clickDeny:Ld,enableLoading:xt,fire:bf,getActions:rn,getCancelButton:gt,getCloseButton:wr,getConfirmButton:He,getContainer:ce,getDenyButton:at,getFocusableElements:Sr,getFooter:ai,getHtmlContainer:Ln,getIcon:nn,getImage:ii,getInputLabel:tu,getLoader:Pt,getPopup:X,getTimerLeft:wf,getTimerProgressBar:$n,getTitle:oi,getValidationMessage:Rn,increaseTimer:_f,isDeprecatedParameter:vr,isLoading:ru,isTimerRunning:kf,isUpdatableParameter:ni,isValidParameter:ti,isVisible:xd,mixin:vf,resumeTimer:Hi,showLoading:xt,stopTimer:Ui,toggleTimer:Sf},Symbol.toStringTag,{value:"Module"}));let $r;class Lt{constructor(...e){if(typeof window>"u")return;$r=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const r=this._main(this.params);V.promise.set(this,r)}_main(e,n={}){Qc(Object.assign({},n,e)),U.currentInstance&&(U.currentInstance._destroy(),_r()&&vi()),U.currentInstance=this;const r=Pf(e,n);id(r),Object.freeze(r),U.timeout&&(U.timeout.stop(),delete U.timeout),clearTimeout(U.restoreFocusTimeout);const o=If(this);return bi(this,r),V.innerParams.set(this,r),Af(this,o,r)}then(e){return V.promise.get(this).then(e)}finally(e){return V.promise.get(this).finally(e)}}const Af=(t,e,n)=>new Promise((r,o)=>{const i=s=>{t.closePopup({isDismissed:!0,dismiss:s})};ln.swalPromiseResolve.set(t,r),ln.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>sf(t),e.denyButton.onclick=()=>af(t),e.cancelButton.onclick=()=>lf(t,i),e.closeButton.onclick=()=>i(Ot.close),uf(t,e,i),$d(t,U,n,i),Sd(t,n),gd(n),Of(U,n,i),xf(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Pf=(t,e)=>{const n=Yu(t),r=Object.assign({},At,e,n,t);return r.showClass=Object.assign({},At.showClass,r.showClass),r.hideClass=Object.assign({},At.hideClass,r.hideClass),r},If=t=>{const e={popup:X(),container:ce(),actions:rn(),confirmButton:He(),denyButton:at(),cancelButton:gt(),loader:Pt(),closeButton:wr(),validationMessage:Rn(),progressSteps:si()};return V.domCache.set(t,e),e},Of=(t,e,n)=>{const r=$n();de(r),e.timer&&(t.timeout=new sd(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ae(r),$e(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&Cr(e.timer)})))},xf=(t,e)=>{if(!e.toast){if(!xn(e.allowEnterKey))return Rf();Lf(t,e)||Ir(e,-1,1)}},Lf=(t,e)=>e.focusDeny&&Pe(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Pe(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Pe(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Rf=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(Lt.prototype,$i),Object.assign(Lt,Tf),Object.keys($i).forEach(t=>{Lt[t]=function(...e){if($r)return $r[t](...e)}}),Lt.DismissReason=Ot,Lt.version="11.4.8";const Rt=Lt;Rt.default=Rt;/*! @license DOMPurify 3.0.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.9/LICENSE */const{entries:Vi,setPrototypeOf:Fi,isFrozen:$f,getPrototypeOf:Bf,getOwnPropertyDescriptor:Nf}=Object;let{freeze:he,seal:je,create:zi}=Object,{apply:Br,construct:Nr}=typeof Reflect<"u"&&Reflect;he||(he=function(e){return e}),je||(je=function(e){return e}),Br||(Br=function(e,n,r){return e.apply(n,r)}),Nr||(Nr=function(e,n){return new e(...n)});const Un=Oe(Array.prototype.forEach),Ki=Oe(Array.prototype.pop),un=Oe(Array.prototype.push),Hn=Oe(String.prototype.toLowerCase),Dr=Oe(String.prototype.toString),Df=Oe(String.prototype.match),dn=Oe(String.prototype.replace),Mf=Oe(String.prototype.indexOf),Uf=Oe(String.prototype.trim),Ve=Oe(Object.prototype.hasOwnProperty),Ie=Oe(RegExp.prototype.test),fn=Hf(TypeError);function Oe(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Br(t,e,r)}}function Hf(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Nr(t,n)}}function K(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hn;Fi&&Fi(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&($f(e)||(e[r]=i),o=i)}t[o]=!0}return t}function jf(t){for(let e=0;e<t.length;e++)Ve(t,e)||(t[e]=null);return t}function vt(t){const e=zi(null);for(const[n,r]of Vi(t))Ve(t,n)&&(Array.isArray(r)?e[n]=jf(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=vt(r):e[n]=r);return e}function jn(t,e){for(;t!==null;){const r=Nf(t,e);if(r){if(r.get)return Oe(r.get);if(typeof r.value=="function")return Oe(r.value)}t=Bf(t)}function n(){return null}return n}const Wi=he(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Mr=he(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ur=he(["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"]),Vf=he(["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"]),Hr=he(["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"]),Ff=he(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qi=he(["#text"]),Gi=he(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),jr=he(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Yi=he(["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"]),Vn=he(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),zf=je(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Kf=je(/<%[\w\W]*|[\w\W]*%>/gm),Wf=je(/\${[\w\W]*}/gm),qf=je(/^data-[\-\w.\u00B7-\uFFFF]/),Gf=je(/^aria-[\-\w]+$/),Ji=je(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Yf=je(/^(?:\w+script|data):/i),Jf=je(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Xi=je(/^html$/i);var Zi=Object.freeze({__proto__:null,MUSTACHE_EXPR:zf,ERB_EXPR:Kf,TMPLIT_EXPR:Wf,DATA_ATTR:qf,ARIA_ATTR:Gf,IS_ALLOWED_URI:Ji,IS_SCRIPT_OR_DATA:Yf,ATTR_WHITESPACE:Jf,DOCTYPE_NAME:Xi});const Xf=function(){return typeof window>"u"?null:window},Zf=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Qi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xf();const e=B=>Qi(B);if(e.version="3.0.9",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:c,NodeFilter:u,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:v,trustedTypes:_}=t,b=c.prototype,O=jn(b,"cloneNode"),w=jn(b,"nextSibling"),N=jn(b,"childNodes"),C=jn(b,"parentNode");if(typeof s=="function"){const B=n.createElement("template");B.content&&B.content.ownerDocument&&(n=B.content.ownerDocument)}let T,z="";const{implementation:Q,createNodeIterator:re,createDocumentFragment:Z,getElementsByTagName:ge}=n,{importNode:ie}=r;let H={};e.isSupported=typeof Vi=="function"&&typeof C=="function"&&Q&&Q.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Le,ERB_EXPR:_e,TMPLIT_EXPR:Ke,DATA_ATTR:We,ARIA_ATTR:ft,IS_SCRIPT_OR_DATA:nt,ATTR_WHITESPACE:qe}=Zi;let{IS_ALLOWED_URI:Je}=Zi,ne=null;const Be=K({},[...Wi,...Mr,...Ur,...Hr,...qi]);let d=null;const h=K({},[...Gi,...jr,...Yi,...Vn]);let S=Object.seal(zi(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),P=null,k=null,x=!0,E=!0,A=!1,R=!0,L=!1,D=!1,W=!1,ke=!1,ye=!1,le=!1,Xe=!1,qs=!0,Gs=!1;const Gp="user-content-";let ao=!0,bn=!1,Nt={},Dt=null;const Ys=K({},["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 Js=null;const Xs=K({},["audio","video","img","source","image","track"]);let lo=null;const Zs=K({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qn="http://www.w3.org/1998/Math/MathML",er="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let Mt=rt,co=!1,uo=null;const Yp=K({},[Qn,er,rt],Dr);let vn=null;const Jp=["application/xhtml+xml","text/html"],Xp="text/html";let se=null,Ut=null;const Zp=n.createElement("form"),Qs=function(p){return p instanceof RegExp||p instanceof Function},fo=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ut&&Ut===p)){if((!p||typeof p!="object")&&(p={}),p=vt(p),vn=Jp.indexOf(p.PARSER_MEDIA_TYPE)===-1?Xp:p.PARSER_MEDIA_TYPE,se=vn==="application/xhtml+xml"?Dr:Hn,ne=Ve(p,"ALLOWED_TAGS")?K({},p.ALLOWED_TAGS,se):Be,d=Ve(p,"ALLOWED_ATTR")?K({},p.ALLOWED_ATTR,se):h,uo=Ve(p,"ALLOWED_NAMESPACES")?K({},p.ALLOWED_NAMESPACES,Dr):Yp,lo=Ve(p,"ADD_URI_SAFE_ATTR")?K(vt(Zs),p.ADD_URI_SAFE_ATTR,se):Zs,Js=Ve(p,"ADD_DATA_URI_TAGS")?K(vt(Xs),p.ADD_DATA_URI_TAGS,se):Xs,Dt=Ve(p,"FORBID_CONTENTS")?K({},p.FORBID_CONTENTS,se):Ys,P=Ve(p,"FORBID_TAGS")?K({},p.FORBID_TAGS,se):{},k=Ve(p,"FORBID_ATTR")?K({},p.FORBID_ATTR,se):{},Nt=Ve(p,"USE_PROFILES")?p.USE_PROFILES:!1,x=p.ALLOW_ARIA_ATTR!==!1,E=p.ALLOW_DATA_ATTR!==!1,A=p.ALLOW_UNKNOWN_PROTOCOLS||!1,R=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,L=p.SAFE_FOR_TEMPLATES||!1,D=p.WHOLE_DOCUMENT||!1,ye=p.RETURN_DOM||!1,le=p.RETURN_DOM_FRAGMENT||!1,Xe=p.RETURN_TRUSTED_TYPE||!1,ke=p.FORCE_BODY||!1,qs=p.SANITIZE_DOM!==!1,Gs=p.SANITIZE_NAMED_PROPS||!1,ao=p.KEEP_CONTENT!==!1,bn=p.IN_PLACE||!1,Je=p.ALLOWED_URI_REGEXP||Ji,Mt=p.NAMESPACE||rt,S=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&Qs(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(S.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&Qs(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(S.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(S.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),L&&(E=!1),le&&(ye=!0),Nt&&(ne=K({},qi),d=[],Nt.html===!0&&(K(ne,Wi),K(d,Gi)),Nt.svg===!0&&(K(ne,Mr),K(d,jr),K(d,Vn)),Nt.svgFilters===!0&&(K(ne,Ur),K(d,jr),K(d,Vn)),Nt.mathMl===!0&&(K(ne,Hr),K(d,Yi),K(d,Vn))),p.ADD_TAGS&&(ne===Be&&(ne=vt(ne)),K(ne,p.ADD_TAGS,se)),p.ADD_ATTR&&(d===h&&(d=vt(d)),K(d,p.ADD_ATTR,se)),p.ADD_URI_SAFE_ATTR&&K(lo,p.ADD_URI_SAFE_ATTR,se),p.FORBID_CONTENTS&&(Dt===Ys&&(Dt=vt(Dt)),K(Dt,p.FORBID_CONTENTS,se)),ao&&(ne["#text"]=!0),D&&K(ne,["html","head","body"]),ne.table&&(K(ne,["tbody"]),delete P.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw fn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=p.TRUSTED_TYPES_POLICY,z=T.createHTML("")}else T===void 0&&(T=Zf(_,o)),T!==null&&typeof z=="string"&&(z=T.createHTML(""));he&&he(p),Ut=p}},ea=K({},["mi","mo","mn","ms","mtext"]),ta=K({},["foreignobject","desc","title","annotation-xml"]),Qp=K({},["title","style","font","a","script"]),na=K({},[...Mr,...Ur,...Vf]),ra=K({},[...Hr,...Ff]),eh=function(p){let I=C(p);(!I||!I.tagName)&&(I={namespaceURI:Mt,tagName:"template"});const $=Hn(p.tagName),ee=Hn(I.tagName);return uo[p.namespaceURI]?p.namespaceURI===er?I.namespaceURI===rt?$==="svg":I.namespaceURI===Qn?$==="svg"&&(ee==="annotation-xml"||ea[ee]):!!na[$]:p.namespaceURI===Qn?I.namespaceURI===rt?$==="math":I.namespaceURI===er?$==="math"&&ta[ee]:!!ra[$]:p.namespaceURI===rt?I.namespaceURI===er&&!ta[ee]||I.namespaceURI===Qn&&!ea[ee]?!1:!ra[$]&&(Qp[$]||!na[$]):!!(vn==="application/xhtml+xml"&&uo[p.namespaceURI]):!1},kt=function(p){un(e.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},mo=function(p,I){try{un(e.removed,{attribute:I.getAttributeNode(p),from:I})}catch{un(e.removed,{attribute:null,from:I})}if(I.removeAttribute(p),p==="is"&&!d[p])if(ye||le)try{kt(I)}catch{}else try{I.setAttribute(p,"")}catch{}},oa=function(p){let I=null,$=null;if(ke)p="<remove></remove>"+p;else{const me=Df(p,/^[\r\n\t ]+/);$=me&&me[0]}vn==="application/xhtml+xml"&&Mt===rt&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const ee=T?T.createHTML(p):p;if(Mt===rt)try{I=new v().parseFromString(ee,vn)}catch{}if(!I||!I.documentElement){I=Q.createDocument(Mt,"template",null);try{I.documentElement.innerHTML=co?z:ee}catch{}}const fe=I.body||I.documentElement;return p&&$&&fe.insertBefore(n.createTextNode($),fe.childNodes[0]||null),Mt===rt?ge.call(I,D?"html":"body")[0]:D?I.documentElement:fe},ia=function(p){return re.call(p.ownerDocument||p,p,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},th=function(p){return p instanceof m&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof f)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},sa=function(p){return typeof a=="function"&&p instanceof a},ot=function(p,I,$){H[p]&&Un(H[p],ee=>{ee.call(e,I,$,Ut)})},aa=function(p){let I=null;if(ot("beforeSanitizeElements",p,null),th(p))return kt(p),!0;const $=se(p.nodeName);if(ot("uponSanitizeElement",p,{tagName:$,allowedTags:ne}),p.hasChildNodes()&&!sa(p.firstElementChild)&&Ie(/<[/\w]/g,p.innerHTML)&&Ie(/<[/\w]/g,p.textContent))return kt(p),!0;if(!ne[$]||P[$]){if(!P[$]&&ca($)&&(S.tagNameCheck instanceof RegExp&&Ie(S.tagNameCheck,$)||S.tagNameCheck instanceof Function&&S.tagNameCheck($)))return!1;if(ao&&!Dt[$]){const ee=C(p)||p.parentNode,fe=N(p)||p.childNodes;if(fe&&ee){const me=fe.length;for(let Ce=me-1;Ce>=0;--Ce)ee.insertBefore(O(fe[Ce],!0),w(p))}}return kt(p),!0}return p instanceof c&&!eh(p)||($==="noscript"||$==="noembed"||$==="noframes")&&Ie(/<\/no(script|embed|frames)/i,p.innerHTML)?(kt(p),!0):(L&&p.nodeType===3&&(I=p.textContent,Un([Le,_e,Ke],ee=>{I=dn(I,ee," ")}),p.textContent!==I&&(un(e.removed,{element:p.cloneNode()}),p.textContent=I)),ot("afterSanitizeElements",p,null),!1)},la=function(p,I,$){if(qs&&(I==="id"||I==="name")&&($ in n||$ in Zp))return!1;if(!(E&&!k[I]&&Ie(We,I))){if(!(x&&Ie(ft,I))){if(!d[I]||k[I]){if(!(ca(p)&&(S.tagNameCheck instanceof RegExp&&Ie(S.tagNameCheck,p)||S.tagNameCheck instanceof Function&&S.tagNameCheck(p))&&(S.attributeNameCheck instanceof RegExp&&Ie(S.attributeNameCheck,I)||S.attributeNameCheck instanceof Function&&S.attributeNameCheck(I))||I==="is"&&S.allowCustomizedBuiltInElements&&(S.tagNameCheck instanceof RegExp&&Ie(S.tagNameCheck,$)||S.tagNameCheck instanceof Function&&S.tagNameCheck($))))return!1}else if(!lo[I]){if(!Ie(Je,dn($,qe,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&p!=="script"&&Mf($,"data:")===0&&Js[p])){if(!(A&&!Ie(nt,dn($,qe,"")))){if($)return!1}}}}}}return!0},ca=function(p){return p!=="annotation-xml"&&p.indexOf("-")>0},ua=function(p){ot("beforeSanitizeAttributes",p,null);const{attributes:I}=p;if(!I)return;const $={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d};let ee=I.length;for(;ee--;){const fe=I[ee],{name:me,namespaceURI:Ce,value:Ct}=fe,wn=se(me);let Ee=me==="value"?Ct:Uf(Ct);if($.attrName=wn,$.attrValue=Ee,$.keepAttr=!0,$.forceKeepAttr=void 0,ot("uponSanitizeAttribute",p,$),Ee=$.attrValue,$.forceKeepAttr||(mo(me,p),!$.keepAttr))continue;if(!R&&Ie(/\/>/i,Ee)){mo(me,p);continue}L&&Un([Le,_e,Ke],fa=>{Ee=dn(Ee,fa," ")});const da=se(p.nodeName);if(la(da,wn,Ee)){if(Gs&&(wn==="id"||wn==="name")&&(mo(me,p),Ee=Gp+Ee),T&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!Ce)switch(_.getAttributeType(da,wn)){case"TrustedHTML":{Ee=T.createHTML(Ee);break}case"TrustedScriptURL":{Ee=T.createScriptURL(Ee);break}}try{Ce?p.setAttributeNS(Ce,me,Ee):p.setAttribute(me,Ee),Ki(e.removed)}catch{}}}ot("afterSanitizeAttributes",p,null)},nh=function B(p){let I=null;const $=ia(p);for(ot("beforeSanitizeShadowDOM",p,null);I=$.nextNode();)ot("uponSanitizeShadowNode",I,null),!aa(I)&&(I.content instanceof i&&B(I.content),ua(I));ot("afterSanitizeShadowDOM",p,null)};return e.sanitize=function(B){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,$=null,ee=null,fe=null;if(co=!B,co&&(B="<!-->"),typeof B!="string"&&!sa(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw fn("dirty is not a string, aborting")}else throw fn("toString is not a function");if(!e.isSupported)return B;if(W||fo(p),e.removed=[],typeof B=="string"&&(bn=!1),bn){if(B.nodeName){const Ct=se(B.nodeName);if(!ne[Ct]||P[Ct])throw fn("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof a)I=oa("<!---->"),$=I.ownerDocument.importNode(B,!0),$.nodeType===1&&$.nodeName==="BODY"||$.nodeName==="HTML"?I=$:I.appendChild($);else{if(!ye&&!L&&!D&&B.indexOf("<")===-1)return T&&Xe?T.createHTML(B):B;if(I=oa(B),!I)return ye?null:Xe?z:""}I&&ke&&kt(I.firstChild);const me=ia(bn?B:I);for(;ee=me.nextNode();)aa(ee)||(ee.content instanceof i&&nh(ee.content),ua(ee));if(bn)return B;if(ye){if(le)for(fe=Z.call(I.ownerDocument);I.firstChild;)fe.appendChild(I.firstChild);else fe=I;return(d.shadowroot||d.shadowrootmode)&&(fe=ie.call(r,fe,!0)),fe}let Ce=D?I.outerHTML:I.innerHTML;return D&&ne["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&Ie(Xi,I.ownerDocument.doctype.name)&&(Ce="<!DOCTYPE "+I.ownerDocument.doctype.name+`>
|
|
405
|
+
`+Ce),L&&Un([Le,_e,Ke],Ct=>{Ce=dn(Ce,Ct," ")}),T&&Xe?T.createHTML(Ce):Ce},e.setConfig=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fo(B),W=!0},e.clearConfig=function(){Ut=null,W=!1},e.isValidAttribute=function(B,p,I){Ut||fo({});const $=se(B),ee=se(p);return la($,ee,I)},e.addHook=function(B,p){typeof p=="function"&&(H[B]=H[B]||[],un(H[B],p))},e.removeHook=function(B){if(H[B])return Ki(H[B])},e.removeHooks=function(B){H[B]&&(H[B]=[])},e.removeAllHooks=function(){H={}},e}var es=Qi();class ts{get IsVisible(){return Rt.isVisible()}}class Qf extends ts{constructor(){super()}async CreateAlertAsync(e){let n="info",r,o;return typeof e=="string"||Array.isArray(e)?r=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",o=e.title??"",r=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{Rt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${es.sanitize(r)}</div>`}).then(()=>i(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}class em extends ts{async CreateConfirmAsync(e){return new Promise(n=>{Rt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:es.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(r=>{n(r.isConfirmed===!0)})})}async ConfirmAsync(e){return this.CreateConfirmAsync({text:e})}}const tm=()=>new Qf,nm=()=>new em;function rm(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function ns(t,...e){if(!rm(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function rs(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function om(t,e){ns(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Vr=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Ye=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function im(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function os(t){return typeof t=="string"&&(t=im(t)),ns(t),t}class sm{clone(){return this._cloneInto()}}function am(t){const e=r=>t().update(os(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function lm(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const o=BigInt(32),i=BigInt(4294967295),s=Number(n>>o&i),a=Number(n&i),c=r?4:0,u=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+u,a,r)}const cm=(t,e,n)=>t&e^~t&n,um=(t,e,n)=>t&e^t&n^e&n;class dm extends sm{constructor(e,n,r,o){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Vr(this.buffer)}update(e){rs(this);const{view:n,buffer:r,blockLen:o}=this;e=os(e);const i=e.length;for(let s=0;s<i;){const a=Math.min(o-this.pos,i-s);if(a===o){const c=Vr(e);for(;o<=i-s;s+=o)this.process(c,s);continue}r.set(e.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){rs(this),om(e,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:i}=this;let{pos:s}=this;n[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>o-s&&(this.process(r,0),s=0);for(let m=s;m<o;m++)n[m]=0;lm(r,o-8,BigInt(this.length*8),i),this.process(r,0);const a=Vr(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,f=this.get();if(u>f.length)throw new Error("_sha2: outputLen bigger than state");for(let m=0;m<u;m++)a.setUint32(4*m,f[m],i)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const r=e.slice(0,n);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:i,destroyed:s,pos:a}=this;return e.length=o,e.pos=a,e.finished=i,e.destroyed=s,o%n&&e.buffer.set(r),e}}const fm=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ct=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ut=new Uint32Array(64);class mm extends dm{constructor(){super(64,32,8,!1),this.A=ct[0]|0,this.B=ct[1]|0,this.C=ct[2]|0,this.D=ct[3]|0,this.E=ct[4]|0,this.F=ct[5]|0,this.G=ct[6]|0,this.H=ct[7]|0}get(){const{A:e,B:n,C:r,D:o,E:i,F:s,G:a,H:c}=this;return[e,n,r,o,i,s,a,c]}set(e,n,r,o,i,s,a,c){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=i|0,this.F=s|0,this.G=a|0,this.H=c|0}process(e,n){for(let m=0;m<16;m++,n+=4)ut[m]=e.getUint32(n,!1);for(let m=16;m<64;m++){const v=ut[m-15],_=ut[m-2],b=Ye(v,7)^Ye(v,18)^v>>>3,O=Ye(_,17)^Ye(_,19)^_>>>10;ut[m]=O+ut[m-7]+b+ut[m-16]|0}let{A:r,B:o,C:i,D:s,E:a,F:c,G:u,H:f}=this;for(let m=0;m<64;m++){const v=Ye(a,6)^Ye(a,11)^Ye(a,25),_=f+v+cm(a,c,u)+fm[m]+ut[m]|0,O=(Ye(r,2)^Ye(r,13)^Ye(r,22))+um(r,o,i)|0;f=u,u=c,c=a,a=s+_|0,s=i,i=o,o=r,r=_+O|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,s=s+this.D|0,a=a+this.E|0,c=c+this.F|0,u=u+this.G|0,f=f+this.H|0,this.set(r,o,i,s,a,c,u,f)}roundClean(){ut.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const pm=am(()=>new mm);class mn extends Error{}mn.prototype.name="InvalidTokenError";function hm(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function gm(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return hm(e)}catch{return atob(e)}}function Fr(t,e){if(typeof t!="string")throw new mn("Invalid token specified: must be a string");e||(e={});const n=e.header===!0?0:1,r=t.split(".")[n];if(typeof r!="string")throw new mn(`Invalid token specified: missing part #${n+1}`);let o;try{o=gm(r)}catch(i){throw new mn(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(o)}catch(i){throw new mn(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function is(t){if(!(this instanceof is))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");var e=this,n,r=[],o,i={enable:!0,callbackList:[],interval:5};e.didInitialize=!1;for(var s=document.getElementsByTagName("script"),a=0;a<s.length;a++)(s[a].src.indexOf("keycloak.js")!==-1||s[a].src.indexOf("keycloak.min.js")!==-1)&&s[a].src.indexOf("version=")!==-1&&(e.iframeVersion=s[a].src.substring(s[a].src.indexOf("version=")+8).split("&")[0]);var c=!0,u=Be(console.info),f=Be(console.warn);e.init=function(d){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,o=ne();var h=["default","cordova","cordova-native"];if(d&&h.indexOf(d.adapter)>-1?n=nt(d.adapter):d&&typeof d.adapter=="object"?n=d.adapter:window.Cordova||window.cordova?n=nt("cordova"):n=nt(),d){if(typeof d.useNonce<"u"&&(c=d.useNonce),typeof d.checkLoginIframe<"u"&&(i.enable=d.checkLoginIframe),d.checkLoginIframeInterval&&(i.interval=d.checkLoginIframeInterval),d.onLoad==="login-required"&&(e.loginRequired=!0),d.responseMode)if(d.responseMode==="query"||d.responseMode==="fragment")e.responseMode=d.responseMode;else throw"Invalid value for responseMode";if(d.flow){switch(d.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=d.flow}if(d.timeSkew!=null&&(e.timeSkew=d.timeSkew),d.redirectUri&&(e.redirectUri=d.redirectUri),d.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=d.silentCheckSsoRedirectUri),typeof d.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=d.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof d.pkceMethod<"u"){if(d.pkceMethod!=="S256"&&d.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${d.pkceMethod}.`);e.pkceMethod=d.pkceMethod}else e.pkceMethod="S256";typeof d.enableLogging=="boolean"?e.enableLogging=d.enableLogging:e.enableLogging=!1,d.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof d.scope=="string"&&(e.scope=d.scope),typeof d.acrValues=="string"&&(e.acrValues=d.acrValues),typeof d.messageReceiveTimeout=="number"&&d.messageReceiveTimeout>0?e.messageReceiveTimeout=d.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var S=H(),P=H();P.promise.then(function(){e.onReady&&e.onReady(e.authenticated),S.setSuccess(e.authenticated)}).catch(function(R){S.setError(R)});var k=T();function x(){var R=function(W){W||(D.prompt="none"),d&&d.locale&&(D.locale=d.locale),e.login(D).then(function(){P.setSuccess()}).catch(function(ke){P.setError(ke)})},L=function(){var W=document.createElement("iframe"),ke=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});W.setAttribute("src",ke),W.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),W.setAttribute("title","keycloak-silent-check-sso"),W.style.display="none",document.body.appendChild(W);var ye=function(le){if(!(le.origin!==window.location.origin||W.contentWindow!==le.source)){var Xe=Z(le.data);C(Xe,P),document.body.removeChild(W),window.removeEventListener("message",ye)}};window.addEventListener("message",ye)},D={};switch(d.onLoad){case"check-sso":i.enable?_e().then(function(){We().then(function(W){W?P.setSuccess():e.silentCheckSsoRedirectUri?L():R(!1)}).catch(function(W){P.setError(W)})}):e.silentCheckSsoRedirectUri?L():R(!1);break;case"login-required":R(!0);break;default:throw"Invalid value for onLoad"}}function E(){var R=Z(window.location.href);if(R&&window.history.replaceState(window.history.state,null,R.newUrl),R&&R.valid)return _e().then(function(){C(R,P)}).catch(function(L){P.setError(L)});d?d.token&&d.refreshToken?(Q(d.token,d.refreshToken,d.idToken),i.enable?_e().then(function(){We().then(function(L){L?(e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess(),Ke()):P.setSuccess()}).catch(function(L){P.setError(L)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess()}).catch(function(L){e.onAuthError&&e.onAuthError(),d.onLoad?x():P.setError(L)})):d.onLoad?x():P.setSuccess():P.setSuccess()}function A(){var R=H(),L=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",L),R.setSuccess())};return document.addEventListener("readystatechange",L),L(),R.promise}return k.then(function(){A().then(ft).then(E).catch(function(R){S.setError(R)})}),k.catch(function(R){S.setError(R)}),S.promise},e.login=function(d){return n.login(d)};function m(d){var h=null,S=window.crypto||window.msCrypto;if(S&&S.getRandomValues&&window.Uint8Array)return h=new Uint8Array(d),S.getRandomValues(h),h;h=new Array(d);for(var P=0;P<h.length;P++)h[P]=Math.floor(256*Math.random());return h}function v(d){return _(d,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function _(d,h){for(var S=m(d),P=new Array(d),k=0;k<d;k++)P[k]=h.charCodeAt(S[k]%h.length);return String.fromCharCode.apply(null,P)}function b(d,h){if(d!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${d}'.`);const S=pm(h);return ym(S).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function O(d){var h={id_token:{acr:d}};return JSON.stringify(h)}e.createLoginUrl=function(d){var h=re(),S=re(),P=n.redirectUri(d),k={state:h,nonce:S,redirectUri:encodeURIComponent(P),loginOptions:d};d&&d.prompt&&(k.prompt=d.prompt);var x;d&&d.action=="register"?x=e.endpoints.register():x=e.endpoints.authorize();var E=d&&d.scope||e.scope;E?E.indexOf("openid")===-1&&(E="openid "+E):E="openid";var A=x+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(P)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(E);if(c&&(A=A+"&nonce="+encodeURIComponent(S)),d&&d.prompt&&(A+="&prompt="+encodeURIComponent(d.prompt)),d&&d.maxAge&&(A+="&max_age="+encodeURIComponent(d.maxAge)),d&&d.loginHint&&(A+="&login_hint="+encodeURIComponent(d.loginHint)),d&&d.idpHint&&(A+="&kc_idp_hint="+encodeURIComponent(d.idpHint)),d&&d.action&&d.action!="register"&&(A+="&kc_action="+encodeURIComponent(d.action)),d&&d.locale&&(A+="&ui_locales="+encodeURIComponent(d.locale)),d&&d.acr){var R=O(d.acr);A+="&claims="+encodeURIComponent(R)}if((d&&d.acrValues||e.acrValues)&&(A+="&acr_values="+encodeURIComponent(d.acrValues||e.acrValues)),e.pkceMethod){var L=v(96);k.pkceCodeVerifier=L;var D=b(e.pkceMethod,L);A+="&code_challenge="+D,A+="&code_challenge_method="+e.pkceMethod}return o.add(k),A},e.logout=function(d){return n.logout(d)},e.createLogoutUrl=function(d){if(((d==null?void 0:d.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var S=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(d,!1));return e.idToken&&(S+="&id_token_hint="+encodeURIComponent(e.idToken)),S},e.register=function(d){return n.register(d)},e.createRegisterUrl=function(d){return d||(d={}),d.action="register",e.createLoginUrl(d)},e.createAccountUrl=function(d){var h=w(),S=void 0;return typeof h<"u"&&(S=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(d))),S},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(d){var h=e.realmAccess;return!!h&&h.roles.indexOf(d)>=0},e.hasResourceRole=function(d,h){if(!e.resourceAccess)return!1;var S=e.resourceAccess[h||e.clientId];return!!S&&S.roles.indexOf(d)>=0},e.loadUserProfile=function(){var d=w()+"/account",h=new XMLHttpRequest;h.open("GET",d,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=H();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.profile=JSON.parse(h.responseText),S.setSuccess(e.profile)):S.setError())},h.send(),S.promise},e.loadUserInfo=function(){var d=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",d,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=H();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.userInfo=JSON.parse(h.responseText),S.setSuccess(e.userInfo)):S.setError())},h.send(),S.promise},e.isTokenExpired=function(d){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return u("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var h=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(d){if(isNaN(d))throw"Invalid minValidity";h-=d}return h<0},e.updateToken=function(d){var h=H();if(!e.refreshToken)return h.setError(),h.promise;d=d||5;var S=function(){var k=!1;if(d==-1?(k=!0,u("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(d))&&(k=!0,u("[KEYCLOAK] Refreshing token: token expired")),!k)h.setSuccess(!1);else{var x="grant_type=refresh_token&refresh_token="+e.refreshToken,E=e.endpoints.token();if(r.push(h),r.length==1){var A=new XMLHttpRequest;A.open("POST",E,!0),A.setRequestHeader("Content-type","application/x-www-form-urlencoded"),A.withCredentials=!0,x+="&client_id="+encodeURIComponent(e.clientId);var R=new Date().getTime();A.onreadystatechange=function(){if(A.readyState==4)if(A.status==200){u("[KEYCLOAK] Token refreshed"),R=(R+new Date().getTime())/2;var L=JSON.parse(A.responseText);Q(L.access_token,L.refresh_token,L.id_token,R),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var D=r.pop();D!=null;D=r.pop())D.setSuccess(!0)}else{f("[KEYCLOAK] Failed to refresh token"),A.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var D=r.pop();D!=null;D=r.pop())D.setError(!0)}},A.send(x)}}};if(i.enable){var P=We();P.then(function(){S()}).catch(function(k){h.setError(k)})}else S();return h.promise},e.clearToken=function(){e.token&&(Q(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function w(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function N(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function C(d,h){var S=d.code,P=d.error,k=d.prompt,x=new Date().getTime();if(d.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(d.kc_action_status,d.kc_action),P){if(k!="none")if(d.error_description&&d.error_description==="authentication_expired")e.login(d.loginOptions);else{var E={error:P,error_description:d.error_description};e.onAuthError&&e.onAuthError(E),h&&h.setError(E)}else h&&h.setSuccess();return}else e.flow!="standard"&&(d.access_token||d.id_token)&&D(d.access_token,null,d.id_token,!0);if(e.flow!="implicit"&&S){var A="code="+S+"&grant_type=authorization_code",R=e.endpoints.token(),L=new XMLHttpRequest;L.open("POST",R,!0),L.setRequestHeader("Content-type","application/x-www-form-urlencoded"),A+="&client_id="+encodeURIComponent(e.clientId),A+="&redirect_uri="+d.redirectUri,d.pkceCodeVerifier&&(A+="&code_verifier="+d.pkceCodeVerifier),L.withCredentials=!0,L.onreadystatechange=function(){if(L.readyState==4)if(L.status==200){var W=JSON.parse(L.responseText);D(W.access_token,W.refresh_token,W.id_token,e.flow==="standard"),Ke()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},L.send(A)}function D(W,ke,ye,le){x=(x+new Date().getTime())/2,Q(W,ke,ye,x),c&&e.idTokenParsed&&e.idTokenParsed.nonce!=d.storedNonce?(u("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError()):le&&(e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess())}}function T(d){var h=H(),S;t?typeof t=="string"&&(S=t):S="keycloak.json";function P(L){L?e.endpoints={authorize:function(){return L.authorization_endpoint},token:function(){return L.token_endpoint},logout:function(){if(!L.end_session_endpoint)throw"Not supported by the OIDC server";return L.end_session_endpoint},checkSessionIframe:function(){if(!L.check_session_iframe)throw"Not supported by the OIDC server";return L.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!L.userinfo_endpoint)throw"Not supported by the OIDC server";return L.userinfo_endpoint}}:e.endpoints={authorize:function(){return w()+"/protocol/openid-connect/auth"},token:function(){return w()+"/protocol/openid-connect/token"},logout:function(){return w()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var D=w()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(D=D+"?version="+e.iframeVersion),D},thirdPartyCookiesIframe:function(){var D=w()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(D=D+"?version="+e.iframeVersion),D},register:function(){return w()+"/protocol/openid-connect/registrations"},userinfo:function(){return w()+"/protocol/openid-connect/userinfo"}}}if(S){var k=new XMLHttpRequest;k.open("GET",S,!0),k.setRequestHeader("Accept","application/json"),k.onreadystatechange=function(){if(k.readyState==4)if(k.status==200||z(k)){var L=JSON.parse(k.responseText);e.authServerUrl=L["auth-server-url"],e.realm=L.realm,e.clientId=L.resource,P(null),h.setSuccess()}else h.setError()},k.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var x=t.oidcProvider;if(x)if(typeof x=="string"){var R;x.charAt(x.length-1)=="/"?R=x+".well-known/openid-configuration":R=x+"/.well-known/openid-configuration";var k=new XMLHttpRequest;k.open("GET",R,!0),k.setRequestHeader("Accept","application/json"),k.onreadystatechange=function(){if(k.readyState==4)if(k.status==200||z(k)){var D=JSON.parse(k.responseText);P(D),h.setSuccess()}else h.setError()},k.send()}else P(x),h.setSuccess();else{if(!t.url){for(var E=document.getElementsByTagName("script"),A=0;A<E.length;A++)if(E[A].src.match(/.*keycloak\.js/)){t.url=E[A].src.substr(0,E[A].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,P(null),h.setSuccess()}}return h.promise}function z(d){return d.status==0&&d.responseText&&d.responseURL.startsWith("file:")}function Q(d,h,S,P){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=Fr(h)):(delete e.refreshToken,delete e.refreshTokenParsed),S?(e.idToken=S,e.idTokenParsed=Fr(S)):(delete e.idToken,delete e.idTokenParsed),d){if(e.token=d,e.tokenParsed=Fr(d),e.sessionId=e.tokenParsed.sid,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,P&&(e.timeSkew=Math.floor(P/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(u("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var k=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;u("[KEYCLOAK] Token expires in "+Math.round(k/1e3)+" s"),k<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,k)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function re(){var d="0123456789abcdef",h=_(36,d).split("");h[14]="4",h[19]=d.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var S=h.join("");return S}function Z(d){var h=ge(d);if(h){var S=o.get(h.state);return S&&(h.valid=!0,h.redirectUri=S.redirectUri,h.storedNonce=S.nonce,h.prompt=S.prompt,h.pkceCodeVerifier=S.pkceCodeVerifier,h.loginOptions=S.loginOptions),h}}function ge(d){var h;switch(e.flow){case"standard":h=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":h=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":h=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}h.push("error"),h.push("error_description"),h.push("error_uri");var S=d.indexOf("?"),P=d.indexOf("#"),k,x;if(e.responseMode==="query"&&S!==-1?(k=d.substring(0,S),x=ie(d.substring(S+1,P!==-1?P:d.length),h),x.paramsString!==""&&(k+="?"+x.paramsString),P!==-1&&(k+=d.substring(P))):e.responseMode==="fragment"&&P!==-1&&(k=d.substring(0,P),x=ie(d.substring(P+1),h),x.paramsString!==""&&(k+="#"+x.paramsString)),x&&x.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((x.oauthParams.code||x.oauthParams.error)&&x.oauthParams.state)return x.oauthParams.newUrl=k,x.oauthParams}else if(e.flow==="implicit"&&(x.oauthParams.access_token||x.oauthParams.error)&&x.oauthParams.state)return x.oauthParams.newUrl=k,x.oauthParams}}function ie(d,h){for(var S=d.split("&"),P={paramsString:"",oauthParams:{}},k=0;k<S.length;k++){var x=S[k].indexOf("="),E=S[k].slice(0,x);h.indexOf(E)!==-1?P.oauthParams[E]=S[k].slice(x+1):(P.paramsString!==""&&(P.paramsString+="&"),P.paramsString+=S[k])}return P}function H(){var d={setSuccess:function(h){d.resolve(h)},setError:function(h){d.reject(h)}};return d.promise=new Promise(function(h,S){d.resolve=h,d.reject=S}),d}function Le(d,h,S){var P=null,k=new Promise(function(x,E){P=setTimeout(function(){E({error:S})},h)});return Promise.race([d,k]).finally(function(){clearTimeout(P)})}function _e(){var d=H();if(!i.enable||i.iframe)return d.setSuccess(),d.promise;var h=document.createElement("iframe");i.iframe=h,h.onload=function(){var k=e.endpoints.authorize();k.charAt(0)==="/"?i.iframeOrigin=N():i.iframeOrigin=k.substring(0,k.indexOf("/",8)),d.setSuccess()};var S=e.endpoints.checkSessionIframe();h.setAttribute("src",S),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-session-iframe"),h.style.display="none",document.body.appendChild(h);var P=function(k){if(!(k.origin!==i.iframeOrigin||i.iframe.contentWindow!==k.source)&&(k.data=="unchanged"||k.data=="changed"||k.data=="error")){k.data!="unchanged"&&e.clearToken();for(var x=i.callbackList.splice(0,i.callbackList.length),E=x.length-1;E>=0;--E){var A=x[E];k.data=="error"?A.setError():A.setSuccess(k.data=="unchanged")}}};return window.addEventListener("message",P,!1),d.promise}function Ke(){i.enable&&e.token&&setTimeout(function(){We().then(function(d){d&&Ke()})},i.interval*1e3)}function We(){var d=H();if(i.iframe&&i.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");i.callbackList.push(d);var S=i.iframeOrigin;i.callbackList.length==1&&i.iframe.contentWindow.postMessage(h,S)}else d.setSuccess();return d.promise}function ft(){var d=H();if(i.enable||e.silentCheckSsoRedirectUri){var h=document.createElement("iframe");h.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-3p-check-iframe"),h.style.display="none",document.body.appendChild(h);var S=function(P){h.contentWindow===P.source&&(P.data!=="supported"&&P.data!=="unsupported"||(P.data==="unsupported"&&(f(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
|
|
406
|
+
|
|
407
|
+
- It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
|
|
408
|
+
- It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
|
|
409
|
+
|
|
410
|
+
For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),i.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",S),d.setSuccess()))};window.addEventListener("message",S,!1)}else d.setSuccess();return Le(d.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function nt(d){if(!d||d=="default")return{login:function(E){return window.location.assign(e.createLoginUrl(E)),H().promise},logout:async function(E){if(((E==null?void 0:E.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(E));return}const R=e.createLogoutUrl(E),L=await fetch(R,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:n.redirectUri(E,!1)})});if(L.redirected){window.location.href=L.url;return}if(L.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(E){return window.location.assign(e.createRegisterUrl(E)),H().promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.location.href=E;else throw"Not supported by the OIDC server";return H().promise},redirectUri:function(E,A){return E&&E.redirectUri?E.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(d=="cordova"){i.enable=!1;var h=function(E,A,R){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(E,A,R):window.open(E,A,R)},S=function(E){return E&&E.cordovaOptions?Object.keys(E.cordovaOptions).reduce(function(A,R){return A[R]=E.cordovaOptions[R],A},{}):{}},P=function(E){return Object.keys(E).reduce(function(A,R){return A.push(R+"="+E[R]),A},[]).join(",")},k=function(E){var A=S(E);return A.location="no",E&&E.prompt=="none"&&(A.hidden="yes"),P(A)},x=function(){return e.redirectUri||"http://localhost"};return{login:function(E){var A=H(),R=k(E),L=e.createLoginUrl(E),D=h(L,"_blank",R),W=!1,ke=!1,ye=function(){ke=!0,D.close()};return D.addEventListener("loadstart",function(le){if(le.url.indexOf(x())==0){var Xe=Z(le.url);C(Xe,A),ye(),W=!0}}),D.addEventListener("loaderror",function(le){if(!W)if(le.url.indexOf(x())==0){var Xe=Z(le.url);C(Xe,A),ye(),W=!0}else A.setError(),ye()}),D.addEventListener("exit",function(le){ke||A.setError({reason:"closed_by_user"})}),A.promise},logout:function(E){var A=H(),R=e.createLogoutUrl(E),L=h(R,"_blank","location=no,hidden=yes,clearcache=yes"),D;return L.addEventListener("loadstart",function(W){W.url.indexOf(x())==0&&L.close()}),L.addEventListener("loaderror",function(W){W.url.indexOf(x())==0||(D=!0),L.close()}),L.addEventListener("exit",function(W){D?A.setError():(e.clearToken(),A.setSuccess())}),A.promise},register:function(E){var A=H(),R=e.createRegisterUrl(),L=k(E),D=h(R,"_blank",L);return D.addEventListener("loadstart",function(W){if(W.url.indexOf(x())==0){D.close();var ke=Z(W.url);C(ke,A)}}),A.promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u"){var A=h(E,"_blank","location=no");A.addEventListener("loadstart",function(R){R.url.indexOf(x())==0&&A.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(E){return x()}}}if(d=="cordova-native")return i.enable=!1,{login:function(E){var A=H(),R=e.createLoginUrl(E);return universalLinks.subscribe("keycloak",function(L){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var D=Z(L.url);C(D,A)}),window.cordova.plugins.browsertab.openUrl(R),A.promise},logout:function(E){var A=H(),R=e.createLogoutUrl(E);return universalLinks.subscribe("keycloak",function(L){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),A.setSuccess()}),window.cordova.plugins.browsertab.openUrl(R),A.promise},register:function(E){var A=H(),R=e.createRegisterUrl(E);return universalLinks.subscribe("keycloak",function(L){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var D=Z(L.url);C(D,A)}),window.cordova.plugins.browsertab.openUrl(R),A.promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.cordova.plugins.browsertab.openUrl(E);else throw"Not supported by the OIDC server"},redirectUri:function(E){return E&&E.redirectUri?E.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+d}var qe=function(){if(!(this instanceof qe))return new qe;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var d=this;function h(){for(var S=new Date().getTime(),P=0;P<localStorage.length;P++){var k=localStorage.key(P);if(k&&k.indexOf("kc-callback-")==0){var x=localStorage.getItem(k);if(x)try{var E=JSON.parse(x).expires;(!E||E<S)&&localStorage.removeItem(k)}catch{localStorage.removeItem(k)}}}}d.get=function(S){if(S){var P="kc-callback-"+S,k=localStorage.getItem(P);return k&&(localStorage.removeItem(P),k=JSON.parse(k)),h(),k}},d.add=function(S){h();var P="kc-callback-"+S.state;S.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(P,JSON.stringify(S))}},Je=function(){if(!(this instanceof Je))return new Je;var d=this;d.get=function(k){if(k){var x=S("kc-callback-"+k);if(P("kc-callback-"+k,"",h(-100)),x)return JSON.parse(x)}},d.add=function(k){P("kc-callback-"+k.state,JSON.stringify(k),h(60))},d.removeItem=function(k){P(k,"",h(-100))};var h=function(k){var x=new Date;return x.setTime(x.getTime()+k*60*1e3),x},S=function(k){for(var x=k+"=",E=document.cookie.split(";"),A=0;A<E.length;A++){for(var R=E[A];R.charAt(0)==" ";)R=R.substring(1);if(R.indexOf(x)==0)return R.substring(x.length,R.length)}return""},P=function(k,x,E){var A=k+"="+x+"; expires="+E.toUTCString()+"; ";document.cookie=A}};function ne(){try{return new qe}catch{}return new Je}function Be(d){return function(){e.enableLogging&&d.apply(console,Array.prototype.slice.call(arguments))}}}function ym(t){const e=String.fromCodePoint(...t);return btoa(e)}class bm{constructor(e){Ne(this,"oidc");Ne(this,"isAuthenticated",!1);this.oidc=new is(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}}let ss;function vm(t){ss=new bm(t)}const as=()=>ss;class zr{constructor(e=null){Ne(this,"errors",[]);Ne(this,"_value",null);Ne(this,"_httpStatusCode");this._value=e,this._httpStatusCode=200}get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return!this.hasError}get hasError(){return this.errors.length>0}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){this.errors.push(e),this._httpStatusCode===200&&(this._httpStatusCode=400)}WithErrors(e){e.forEach(n=>this.WithError(n))}}function ls(t,e){return function(){return t.apply(e,arguments)}}const{toString:wm}=Object.prototype,{getPrototypeOf:Kr}=Object,Fn=(t=>e=>{const n=wm.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fe=t=>(t=t.toLowerCase(),e=>Fn(e)===t),zn=t=>e=>typeof e===t,{isArray:$t}=Array,pn=zn("undefined");function Sm(t){return t!==null&&!pn(t)&&t.constructor!==null&&!pn(t.constructor)&&xe(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const cs=Fe("ArrayBuffer");function _m(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&cs(t.buffer),e}const km=zn("string"),xe=zn("function"),us=zn("number"),Kn=t=>t!==null&&typeof t=="object",Cm=t=>t===!0||t===!1,Wn=t=>{if(Fn(t)!=="object")return!1;const e=Kr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Em=Fe("Date"),Tm=Fe("File"),Am=Fe("Blob"),Pm=Fe("FileList"),Im=t=>Kn(t)&&xe(t.pipe),Om=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||xe(t.append)&&((e=Fn(t))==="formdata"||e==="object"&&xe(t.toString)&&t.toString()==="[object FormData]"))},xm=Fe("URLSearchParams"),[Lm,Rm,$m,Bm]=["ReadableStream","Request","Response","Headers"].map(Fe),Nm=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hn(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),$t(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let a;for(r=0;r<s;r++)a=i[r],e.call(null,t[a],a,t)}}function ds(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const wt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fs=t=>!pn(t)&&t!==wt;function Wr(){const{caseless:t}=fs(this)&&this||{},e={},n=(r,o)=>{const i=t&&ds(e,o)||o;Wn(e[i])&&Wn(r)?e[i]=Wr(e[i],r):Wn(r)?e[i]=Wr({},r):$t(r)?e[i]=r.slice():e[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&hn(arguments[r],n);return e}const Dm=(t,e,n,{allOwnKeys:r}={})=>(hn(e,(o,i)=>{n&&xe(o)?t[i]=ls(o,n):t[i]=o},{allOwnKeys:r}),t),Mm=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Um=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Hm=(t,e,n,r)=>{let o,i,s;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&Kr(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},jm=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Vm=t=>{if(!t)return null;if($t(t))return t;let e=t.length;if(!us(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Fm=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Kr(Uint8Array)),zm=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},Km=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Wm=Fe("HTMLFormElement"),qm=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ms=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Gm=Fe("RegExp"),ps=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};hn(n,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(r[i]=s||o)}),Object.defineProperties(t,r)},Ym=t=>{ps(t,(e,n)=>{if(xe(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(xe(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Jm=(t,e)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return $t(t)?r(t):r(String(t).split(e)),n},Xm=()=>{},Zm=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,qr="abcdefghijklmnopqrstuvwxyz",hs="0123456789",gs={DIGIT:hs,ALPHA:qr,ALPHA_DIGIT:qr+qr.toUpperCase()+hs},Qm=(t=16,e=gs.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function ep(t){return!!(t&&xe(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const tp=t=>{const e=new Array(10),n=(r,o)=>{if(Kn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const i=$t(r)?[]:{};return hn(r,(s,a)=>{const c=n(s,o+1);!pn(c)&&(i[a]=c)}),e[o]=void 0,i}}return r};return n(t,0)},np=Fe("AsyncFunction"),rp=t=>t&&(Kn(t)||xe(t))&&xe(t.then)&&xe(t.catch),ys=((t,e)=>t?setImmediate:e?((n,r)=>(wt.addEventListener("message",({source:o,data:i})=>{o===wt&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),wt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",xe(wt.postMessage)),op=typeof queueMicrotask<"u"?queueMicrotask.bind(wt):typeof process<"u"&&process.nextTick||ys,g={isArray:$t,isArrayBuffer:cs,isBuffer:Sm,isFormData:Om,isArrayBufferView:_m,isString:km,isNumber:us,isBoolean:Cm,isObject:Kn,isPlainObject:Wn,isReadableStream:Lm,isRequest:Rm,isResponse:$m,isHeaders:Bm,isUndefined:pn,isDate:Em,isFile:Tm,isBlob:Am,isRegExp:Gm,isFunction:xe,isStream:Im,isURLSearchParams:xm,isTypedArray:Fm,isFileList:Pm,forEach:hn,merge:Wr,extend:Dm,trim:Nm,stripBOM:Mm,inherits:Um,toFlatObject:Hm,kindOf:Fn,kindOfTest:Fe,endsWith:jm,toArray:Vm,forEachEntry:zm,matchAll:Km,isHTMLForm:Wm,hasOwnProperty:ms,hasOwnProp:ms,reduceDescriptors:ps,freezeMethods:Ym,toObjectSet:Jm,toCamelCase:qm,noop:Xm,toFiniteNumber:Zm,findKey:ds,global:wt,isContextDefined:fs,ALPHABET:gs,generateString:Qm,isSpecCompliantForm:ep,toJSONObject:tp,isAsyncFn:np,isThenable:rp,setImmediate:ys,asap:op};function M(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}g.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:g.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const bs=M.prototype,vs={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{vs[t]={value:t}}),Object.defineProperties(M,vs),Object.defineProperty(bs,"isAxiosError",{value:!0}),M.from=(t,e,n,r,o,i)=>{const s=Object.create(bs);return g.toFlatObject(t,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),M.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const ip=null;function Gr(t){return g.isPlainObject(t)||g.isArray(t)}function ws(t){return g.endsWith(t,"[]")?t.slice(0,-2):t}function Ss(t,e,n){return t?t.concat(e).map(function(o,i){return o=ws(o),!n&&i?"["+o+"]":o}).join(n?".":""):e}function sp(t){return g.isArray(t)&&!t.some(Gr)}const ap=g.toFlatObject(g,{},null,function(e){return/^is[A-Z]/.test(e)});function qn(t,e,n){if(!g.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=g.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,w){return!g.isUndefined(w[O])});const r=n.metaTokens,o=n.visitor||f,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&g.isSpecCompliantForm(e);if(!g.isFunction(o))throw new TypeError("visitor must be a function");function u(b){if(b===null)return"";if(g.isDate(b))return b.toISOString();if(!c&&g.isBlob(b))throw new M("Blob is not supported. Use a Buffer instead.");return g.isArrayBuffer(b)||g.isTypedArray(b)?c&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function f(b,O,w){let N=b;if(b&&!w&&typeof b=="object"){if(g.endsWith(O,"{}"))O=r?O:O.slice(0,-2),b=JSON.stringify(b);else if(g.isArray(b)&&sp(b)||(g.isFileList(b)||g.endsWith(O,"[]"))&&(N=g.toArray(b)))return O=ws(O),N.forEach(function(T,z){!(g.isUndefined(T)||T===null)&&e.append(s===!0?Ss([O],z,i):s===null?O:O+"[]",u(T))}),!1}return Gr(b)?!0:(e.append(Ss(w,O,i),u(b)),!1)}const m=[],v=Object.assign(ap,{defaultVisitor:f,convertValue:u,isVisitable:Gr});function _(b,O){if(!g.isUndefined(b)){if(m.indexOf(b)!==-1)throw Error("Circular reference detected in "+O.join("."));m.push(b),g.forEach(b,function(N,C){(!(g.isUndefined(N)||N===null)&&o.call(e,N,g.isString(C)?C.trim():C,O,v))===!0&&_(N,O?O.concat(C):[C])}),m.pop()}}if(!g.isObject(t))throw new TypeError("data must be an object");return _(t),e}function _s(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Yr(t,e){this._pairs=[],t&&qn(t,this,e)}const ks=Yr.prototype;ks.append=function(e,n){this._pairs.push([e,n])},ks.toString=function(e){const n=e?function(r){return e.call(this,r,_s)}:_s;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function lp(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Cs(t,e,n){if(!e)return t;const r=n&&n.encode||lp,o=n&&n.serialize;let i;if(o?i=o(e,n):i=g.isURLSearchParams(e)?e.toString():new Yr(e,n).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Es{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){g.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ts={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cp={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Yr,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Jr=typeof window<"u"&&typeof document<"u",up=(t=>Jr&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),dp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fp=Jr&&window.location.href||"http://localhost",ze={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jr,hasStandardBrowserEnv:up,hasStandardBrowserWebWorkerEnv:dp,origin:fp},Symbol.toStringTag,{value:"Module"})),...cp};function mp(t,e){return qn(t,new ze.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return ze.isNode&&g.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function pp(t){return g.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function hp(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}function As(t){function e(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=i>=n.length;return s=!s&&g.isArray(o)?o.length:s,c?(g.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!g.isObject(o[s]))&&(o[s]=[]),e(n,r,o[s],i)&&g.isArray(o[s])&&(o[s]=hp(o[s])),!a)}if(g.isFormData(t)&&g.isFunction(t.entries)){const n={};return g.forEachEntry(t,(r,o)=>{e(pp(r),o,n,0)}),n}return null}function gp(t,e,n){if(g.isString(t))try{return(e||JSON.parse)(t),g.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const gn={transitional:Ts,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=g.isObject(e);if(i&&g.isHTMLForm(e)&&(e=new FormData(e)),g.isFormData(e))return o?JSON.stringify(As(e)):e;if(g.isArrayBuffer(e)||g.isBuffer(e)||g.isStream(e)||g.isFile(e)||g.isBlob(e)||g.isReadableStream(e))return e;if(g.isArrayBufferView(e))return e.buffer;if(g.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mp(e,this.formSerializer).toString();if((a=g.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return qn(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),gp(e)):e}],transformResponse:[function(e){const n=this.transitional||gn.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(g.isResponse(e)||g.isReadableStream(e))return e;if(e&&g.isString(e)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?M.from(a,M.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch"],t=>{gn.headers[t]={}});const yp=g.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bp=t=>{const e={};let n,r,o;return t&&t.split(`
|
|
411
|
+
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||e[n]&&yp[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Ps=Symbol("internals");function yn(t){return t&&String(t).trim().toLowerCase()}function Gn(t){return t===!1||t==null?t:g.isArray(t)?t.map(Gn):String(t)}function vp(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const wp=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Xr(t,e,n,r,o){if(g.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!g.isString(e)){if(g.isString(r))return e.indexOf(r)!==-1;if(g.isRegExp(r))return r.test(e)}}function Sp(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function _p(t,e){const n=g.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,i,s){return this[r].call(this,e,o,i,s)},configurable:!0})})}class Se{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function i(a,c,u){const f=yn(c);if(!f)throw new Error("header name must be a non-empty string");const m=g.findKey(o,f);(!m||o[m]===void 0||u===!0||u===void 0&&o[m]!==!1)&&(o[m||c]=Gn(a))}const s=(a,c)=>g.forEach(a,(u,f)=>i(u,f,c));if(g.isPlainObject(e)||e instanceof this.constructor)s(e,n);else if(g.isString(e)&&(e=e.trim())&&!wp(e))s(bp(e),n);else if(g.isHeaders(e))for(const[a,c]of e.entries())i(c,a,r);else e!=null&&i(n,e,r);return this}get(e,n){if(e=yn(e),e){const r=g.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return vp(o);if(g.isFunction(n))return n.call(this,o,r);if(g.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=yn(e),e){const r=g.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Xr(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function i(s){if(s=yn(s),s){const a=g.findKey(r,s);a&&(!n||Xr(r,r[a],a,n))&&(delete r[a],o=!0)}}return g.isArray(e)?e.forEach(i):i(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!e||Xr(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const n=this,r={};return g.forEach(this,(o,i)=>{const s=g.findKey(r,i);if(s){n[s]=Gn(o),delete n[i];return}const a=e?Sp(i):String(i).trim();a!==i&&delete n[i],n[a]=Gn(o),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return g.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&g.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
412
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[Ps]=this[Ps]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=yn(s);r[a]||(_p(o,s),r[a]=!0)}return g.isArray(e)?e.forEach(i):i(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),g.reduceDescriptors(Se.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),g.freezeMethods(Se);function Zr(t,e){const n=this||gn,r=e||n,o=Se.from(r.headers);let i=r.data;return g.forEach(t,function(a){i=a.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Is(t){return!!(t&&t.__CANCEL__)}function Bt(t,e,n){M.call(this,t??"canceled",M.ERR_CANCELED,e,n),this.name="CanceledError"}g.inherits(Bt,M,{__CANCEL__:!0});function Os(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function kp(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Cp(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),f=r[i];s||(s=u),n[o]=c,r[o]=u;let m=i,v=0;for(;m!==o;)v+=n[m++],m=m%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),u-s<e)return;const _=f&&u-f;return _?Math.round(v*1e3/_):void 0}}function Ep(t,e){let n=0,r=1e3/e,o,i;const s=(u,f=Date.now())=>{n=f,o=null,i&&(clearTimeout(i),i=null),t.apply(null,u)};return[(...u)=>{const f=Date.now(),m=f-n;m>=r?s(u,f):(o=u,i||(i=setTimeout(()=>{i=null,s(o)},r-m)))},()=>o&&s(o)]}const Yn=(t,e,n=3)=>{let r=0;const o=Cp(50,250);return Ep(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,c=s-r,u=o(c),f=s<=a;r=s;const m={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&f?(a-s)/u:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(m)},n)},xs=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Ls=t=>(...e)=>g.asap(()=>t(...e)),Tp=ze.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=g.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),Ap=ze.hasStandardBrowserEnv?{write(t,e,n,r,o,i){const s=[t+"="+encodeURIComponent(e)];g.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),g.isString(r)&&s.push("path="+r),g.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Pp(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ip(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Rs(t,e){return t&&!Pp(e)?Ip(t,e):e}const $s=t=>t instanceof Se?{...t}:t;function St(t,e){e=e||{};const n={};function r(u,f,m){return g.isPlainObject(u)&&g.isPlainObject(f)?g.merge.call({caseless:m},u,f):g.isPlainObject(f)?g.merge({},f):g.isArray(f)?f.slice():f}function o(u,f,m){if(g.isUndefined(f)){if(!g.isUndefined(u))return r(void 0,u,m)}else return r(u,f,m)}function i(u,f){if(!g.isUndefined(f))return r(void 0,f)}function s(u,f){if(g.isUndefined(f)){if(!g.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function a(u,f,m){if(m in e)return r(u,f);if(m in t)return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,f)=>o($s(u),$s(f),!0)};return g.forEach(Object.keys(Object.assign({},t,e)),function(f){const m=c[f]||o,v=m(t[f],e[f],f);g.isUndefined(v)&&m!==a||(n[f]=v)}),n}const Bs=t=>{const e=St({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=e;e.headers=s=Se.from(s),e.url=Cs(Rs(e.baseURL,e.url),t.params,t.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(g.isFormData(n)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...f]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...f].join("; "))}}if(ze.hasStandardBrowserEnv&&(r&&g.isFunction(r)&&(r=r(e)),r||r!==!1&&Tp(e.url))){const u=o&&i&&Ap.read(i);u&&s.set(o,u)}return e},Op=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=Bs(t);let i=o.data;const s=Se.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=o,f,m,v,_,b;function O(){_&&_(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function N(){if(!w)return;const T=Se.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),Q={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:T,config:t,request:w};Os(function(Z){n(Z),O()},function(Z){r(Z),O()},Q),w=null}"onloadend"in w?w.onloadend=N:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(N)},w.onabort=function(){w&&(r(new M("Request aborted",M.ECONNABORTED,t,w)),w=null)},w.onerror=function(){r(new M("Network Error",M.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let z=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const Q=o.transitional||Ts;o.timeoutErrorMessage&&(z=o.timeoutErrorMessage),r(new M(z,Q.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,t,w)),w=null},i===void 0&&s.setContentType(null),"setRequestHeader"in w&&g.forEach(s.toJSON(),function(z,Q){w.setRequestHeader(Q,z)}),g.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),a&&a!=="json"&&(w.responseType=o.responseType),u&&([v,b]=Yn(u,!0),w.addEventListener("progress",v)),c&&w.upload&&([m,_]=Yn(c),w.upload.addEventListener("progress",m),w.upload.addEventListener("loadend",_)),(o.cancelToken||o.signal)&&(f=T=>{w&&(r(!T||T.type?new Bt(null,t,w):T),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const C=kp(o.url);if(C&&ze.protocols.indexOf(C)===-1){r(new M("Unsupported protocol "+C+":",M.ERR_BAD_REQUEST,t));return}w.send(i||null)})},xp=(t,e)=>{let n=new AbortController,r;const o=function(c){if(!r){r=!0,s();const u=c instanceof Error?c:this.reason;n.abort(u instanceof M?u:new Bt(u instanceof Error?u.message:u))}};let i=e&&setTimeout(()=>{o(new M(`timeout ${e} of ms exceeded`,M.ETIMEDOUT))},e);const s=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),t=null)};t.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},Lp=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},Rp=async function*(t,e,n){for await(const r of t)yield*Lp(ArrayBuffer.isView(r)?r:await n(String(r)),e)},Ns=(t,e,n,r,o)=>{const i=Rp(t,e,o);let s=0,a,c=u=>{a||(a=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:f,value:m}=await i.next();if(f){c(),u.close();return}let v=m.byteLength;if(n){let _=s+=v;n(_)}u.enqueue(new Uint8Array(m))}catch(f){throw c(f),f}},cancel(u){return c(u),i.return()}},{highWaterMark:2})},Jn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ds=Jn&&typeof ReadableStream=="function",Qr=Jn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Ms=(t,...e)=>{try{return!!t(...e)}catch{return!1}},$p=Ds&&Ms(()=>{let t=!1;const e=new Request(ze.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Us=64*1024,eo=Ds&&Ms(()=>g.isReadableStream(new Response("").body)),Xn={stream:eo&&(t=>t.body)};Jn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Xn[e]&&(Xn[e]=g.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new M(`Response type '${e}' is not supported`,M.ERR_NOT_SUPPORT,r)})})})(new Response);const Bp=async t=>{if(t==null)return 0;if(g.isBlob(t))return t.size;if(g.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(g.isArrayBufferView(t)||g.isArrayBuffer(t))return t.byteLength;if(g.isURLSearchParams(t)&&(t=t+""),g.isString(t))return(await Qr(t)).byteLength},Np=async(t,e)=>{const n=g.toFiniteNumber(t.getContentLength());return n??Bp(e)},to={http:ip,xhr:Op,fetch:Jn&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:f,withCredentials:m="same-origin",fetchOptions:v}=Bs(t);u=u?(u+"").toLowerCase():"text";let[_,b]=o||i||s?xp([o,i],s):[],O,w;const N=()=>{!O&&setTimeout(()=>{_&&_.unsubscribe()}),O=!0};let C;try{if(c&&$p&&n!=="get"&&n!=="head"&&(C=await Np(f,r))!==0){let re=new Request(e,{method:"POST",body:r,duplex:"half"}),Z;if(g.isFormData(r)&&(Z=re.headers.get("content-type"))&&f.setContentType(Z),re.body){const[ge,ie]=xs(C,Yn(Ls(c)));r=Ns(re.body,Us,ge,ie,Qr)}}g.isString(m)||(m=m?"include":"omit"),w=new Request(e,{...v,signal:_,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:m});let T=await fetch(w);const z=eo&&(u==="stream"||u==="response");if(eo&&(a||z)){const re={};["status","statusText","headers"].forEach(H=>{re[H]=T[H]});const Z=g.toFiniteNumber(T.headers.get("content-length")),[ge,ie]=a&&xs(Z,Yn(Ls(a),!0))||[];T=new Response(Ns(T.body,Us,ge,()=>{ie&&ie(),z&&N()},Qr),re)}u=u||"text";let Q=await Xn[g.findKey(Xn,u)||"text"](T,t);return!z&&N(),b&&b(),await new Promise((re,Z)=>{Os(re,Z,{data:Q,headers:Se.from(T.headers),status:T.status,statusText:T.statusText,config:t,request:w})})}catch(T){throw N(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new M("Network Error",M.ERR_NETWORK,t,w),{cause:T.cause||T}):M.from(T,T&&T.code,t,w)}})};g.forEach(to,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Hs=t=>`- ${t}`,Dp=t=>g.isFunction(t)||t===null||t===!1,js={getAdapter:t=>{t=g.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let i=0;i<e;i++){n=t[i];let s;if(r=n,!Dp(n)&&(r=to[(s=String(n)).toLowerCase()],r===void 0))throw new M(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since :
|
|
413
|
+
`+i.map(Hs).join(`
|
|
414
|
+
`):" "+Hs(i[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:to};function no(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Bt(null,t)}function Vs(t){return no(t),t.headers=Se.from(t.headers),t.data=Zr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),js.getAdapter(t.adapter||gn.adapter)(t).then(function(r){return no(t),r.data=Zr.call(t,t.transformResponse,r),r.headers=Se.from(r.headers),r},function(r){return Is(r)||(no(t),r&&r.response&&(r.response.data=Zr.call(t,t.transformResponse,r.response),r.response.headers=Se.from(r.response.headers))),Promise.reject(r)})}const Fs="1.7.4",ro={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ro[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const zs={};ro.transitional=function(e,n,r){function o(i,s){return"[Axios v"+Fs+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(e===!1)throw new M(o(s," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!zs[s]&&(zs[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,a):!0}};function Mp(t,e,n){if(typeof t!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const a=t[i],c=a===void 0||s(a,i,t);if(c!==!0)throw new M("option "+i+" must be "+c,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+i,M.ERR_BAD_OPTION)}}const oo={assertOptions:Mp,validators:ro},dt=oo.validators;class _t{constructor(e){this.defaults=e,this.interceptors={request:new Es,response:new Es}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
415
|
+
`+i):r.stack=i}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=St(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&oo.assertOptions(r,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean)},!1),o!=null&&(g.isFunction(o)?n.paramsSerializer={serialize:o}:oo.assertOptions(o,{encode:dt.function,serialize:dt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&g.merge(i.common,i[n.method]);i&&g.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b]}),n.headers=Se.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(O){typeof O.runWhen=="function"&&O.runWhen(n)===!1||(c=c&&O.synchronous,a.unshift(O.fulfilled,O.rejected))});const u=[];this.interceptors.response.forEach(function(O){u.push(O.fulfilled,O.rejected)});let f,m=0,v;if(!c){const b=[Vs.bind(this),void 0];for(b.unshift.apply(b,a),b.push.apply(b,u),v=b.length,f=Promise.resolve(n);m<v;)f=f.then(b[m++],b[m++]);return f}v=a.length;let _=n;for(m=0;m<v;){const b=a[m++],O=a[m++];try{_=b(_)}catch(w){O.call(this,w);break}}try{f=Vs.call(this,_)}catch(b){return Promise.reject(b)}for(m=0,v=u.length;m<v;)f=f.then(u[m++],u[m++]);return f}getUri(e){e=St(this.defaults,e);const n=Rs(e.baseURL,e.url);return Cs(n,e.params,e.paramsSerializer)}}g.forEach(["delete","get","head","options"],function(e){_t.prototype[e]=function(n,r){return this.request(St(r||{},{method:e,url:n,data:(r||{}).data}))}}),g.forEach(["post","put","patch"],function(e){function n(r){return function(i,s,a){return this.request(St(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}_t.prototype[e]=n(),_t.prototype[e+"Form"]=n(!0)});class io{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,a){r.reason||(r.reason=new Bt(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new io(function(o){e=o}),cancel:e}}}function Up(t){return function(n){return t.apply(null,n)}}function Hp(t){return g.isObject(t)&&t.isAxiosError===!0}const so={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(so).forEach(([t,e])=>{so[e]=t});function Ks(t){const e=new _t(t),n=ls(_t.prototype.request,e);return g.extend(n,_t.prototype,e,{allOwnKeys:!0}),g.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return Ks(St(t,o))},n}const oe=Ks(gn);oe.Axios=_t,oe.CanceledError=Bt,oe.CancelToken=io,oe.isCancel=Is,oe.VERSION=Fs,oe.toFormData=qn,oe.AxiosError=M,oe.Cancel=oe.CanceledError,oe.all=function(e){return Promise.all(e)},oe.spread=Up,oe.isAxiosError=Hp,oe.mergeConfig=St,oe.AxiosHeaders=Se,oe.formToJSON=t=>As(g.isHTMLForm(t)?new FormData(t):t),oe.getAdapter=js.getAdapter,oe.HttpStatusCode=so,oe.default=oe;function jp(t){const e=window.location.origin,n=new URL(t).origin;return e===n}class Vp{constructor(e){Ne(this,"axios");this.axios=oe.create(e==null?void 0:e.config);const n=window.location.origin+"/api";this.axios.defaults.baseURL||(this.axios.defaults.baseURL=n),e!=null&&e.anonymous||this.axios.interceptors.request.use(async r=>{if(!jp(r.baseURL+r.url))return r;const o=as().oidc;await o.updateToken(10);const i=o.token;return i?r.headers.Authorization=`Bearer ${i}`:o.login(),r})}async GetAsync(e){return this.axios.get(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}async PostAsync(e,n){return this.axios.post(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async PutAsync(e,n){return this.axios.put(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async DeleteAsync(e){return this.axios.delete(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}HandleThen(e){const n=new zr,r=this.ParsedResponse(e.data);return r===null?(n.httpStatusCode=e.status,n.value=e.data,n):(n.httpStatusCode=r.httpStatusCode,r.hasError?(n.WithErrors(r.errors),n):(n.value=r.value,n))}HandleCatch(e){var o;const n=new zr,r=this.ParsedResponse((o=e.response)==null?void 0:o.data);return r===null?(n.WithError(e.message),n):(n.httpStatusCode=r.httpStatusCode,n.WithErrors(r.errors),n)}ParsedResponse(e){try{const n=typeof e.hasSuccess=="boolean",r=typeof e.hasError=="boolean",o=typeof e.httpStatusCode=="number",i=Array.isArray(e.errors);return n&&r&&o&&i?e:null}catch{return null}}}class Zn{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const o of e)n+=`, ${o}`;const r=Math.max(...Array.from(document.querySelectorAll(n)).map(o=>{const i=getComputedStyle(o).zIndex;return+i==+i?+i:0}));return r>=100?r:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let r=0,o=e.toString();return n.replace(/#/g,()=>o[r++]||"")}static MaskCpf(e){return Zn.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Zn.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}function Fp(){document.documentElement.classList.add("app-mounted")}function Ws(){mt.SetInitialTheme()}function zp(){mt.Toggle()}function Kp(){mt.EnableDarkMode()}function Wp(){mt.EnableLightMode()}function qp(){mt.ClearStoredTheme()}Ws(),j.ApiClient=Vp,j.AppResult=zr,j.ClearStoredTheme=qp,j.ConfigAuth=vm,j.EnableDarkMode=Kp,j.EnableLightMode=Wp,j.RemovePreloader=Fp,j.SetInitialTheme=Ws,j.SfButton=Ua,j.SfContent=La,j.SfDrawer=Wa,j.SfIcon=_n,j.SfLayout=Ca,j.SfMessage=Ga,j.SfNavMenu=Fc,j.SfTabNavigation=Na,j.SfTooltip=nr,j.ToggleTheme=zp,j.UseAlertService=tm,j.UseAuth=as,j.UseConfirmService=nm,j.UseNavMenuService=tr,j.Utilities=Zn,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|
|
416
416
|
//# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.cjs.map
|