@luizleon/sf.prefeiturasp.vuecomponents 0.0.35 → 0.0.37

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/lib.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(G,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(G=typeof globalThis<"u"?globalThis:G||self,l(G.Lib={},G.Vue))})(this,function(G,l){"use strict";var El=Object.defineProperty;var xl=(G,l,De)=>l in G?El(G,l,{enumerable:!0,configurable:!0,writable:!0,value:De}):G[l]=De;var ct=(G,l,De)=>(xl(G,typeof l!="symbol"?l+"":l,De),De);class De{constructor(){ct(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 nr=new De,jt=()=>nr;var zt=(t=>(t.Primary="primary",t.Secondary="secondary",t.Info="info",t.Success="success",t.Help="help",t.Warn="warn",t.Error="error",t))(zt||{}),qe=(t=>(t.Pequeno="sm",t.Medio="md",t.Grande="lg",t))(qe||{});const Sn=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n},or={},rr={class:"sf-loading-circle"},ir=[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 sr(t,e){return l.openBlock(),l.createElementBlock("div",rr,ir)}const ar=Sn(or,[["render",sr]]);class Ke{constructor(e){ct(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 lr=["disabled","tabindex"],cr=["data-color"],ut=l.defineComponent({__name:"Icon",props:{icone:{},visible:{type:Boolean,default:!0},class:{default:""},style:{default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},tamanho:{default:qe.Medio},dot:{type:Boolean},dotColor:{default:zt.Error},buttonProps:{}},setup(t){const e=t;function n(){return new Ke(`${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.tamanho===qe.Pequeno).AddClass("sf-icon-medium",e.tamanho===qe.Medio).AddClass("sf-icon-large",e.tamanho===qe.Grande).AddClass("sf-ripple",e.button===!0).Build()}return(o,s)=>(l.openBlock(),l.createElementBlock("div",{style:l.normalizeStyle(e.style),class:l.normalizeClass(n())},[l.createElementVNode("button",l.mergeProps({class:"material-symbols-outlined",disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(l.openBlock(),l.createBlock(ar,{key:0})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(e.icone),1)],64))],16,lr),e.dot?(l.openBlock(),l.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,cr)):l.createCommentVNode("",!0)],6))}}),Ln="SweetAlert2:",ur=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Wt=t=>t.charAt(0).toUpperCase()+t.slice(1),ye=t=>Array.prototype.slice.call(t),de=t=>{console.warn(`${Ln} ${typeof t=="object"?t.join(" "):t}`)},Ue=t=>{console.error(`${Ln} ${t}`)},In=[],dr=t=>{In.includes(t)||(In.push(t),de(t))},fr=(t,e)=>{dr(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},Tt=t=>typeof t=="function"?t():t,qt=t=>t&&typeof t.toPromise=="function",dt=t=>qt(t)?t.toPromise():Promise.resolve(t),Kt=t=>t&&Promise.resolve(t)===t,Ge={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},hr=["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"],pr={},mr=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Pn=t=>Object.prototype.hasOwnProperty.call(Ge,t),Bn=t=>hr.indexOf(t)!==-1,Gt=t=>pr[t],gr=t=>{Pn(t)||de(`Unknown parameter "${t}"`)},br=t=>{mr.includes(t)&&de(`The parameter "${t}" is incompatible with toasts`)},yr=t=>{Gt(t)&&fr(t,Gt(t))},wr=t=>{!t.backdrop&&t.allowOutsideClick&&de('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)gr(e),t.toast&&br(e),yr(e)},vr="swal2-",Rn=t=>{const e={};for(const n in t)e[t[n]]=vr+t[n];return e},u=Rn(["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"]),ft=Rn(["success","warning","info","question","error"]),ne=()=>document.body.querySelector(`.${u.container}`),ht=t=>{const e=ne();return e?e.querySelector(t):null},Ae=t=>ht(`.${t}`),j=()=>Ae(u.popup),pt=()=>Ae(u.icon),On=()=>Ae(u.title),St=()=>Ae(u["html-container"]),Fn=()=>Ae(u.image),Mn=()=>Ae(u["progress-steps"]),Lt=()=>Ae(u["validation-message"]),Te=()=>ht(`.${u.actions} .${u.confirm}`),Me=()=>ht(`.${u.actions} .${u.deny}`),kr=()=>Ae(u["input-label"]),Ye=()=>ht(`.${u.loader}`),$e=()=>ht(`.${u.actions} .${u.cancel}`),mt=()=>Ae(u.actions),Nn=()=>Ae(u.footer),It=()=>Ae(u["timer-progress-bar"]),Yt=()=>Ae(u.close),_r=`
1
+ (function(Q,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],d):(Q=typeof globalThis<"u"?globalThis:Q||self,d(Q.Lib={},Q.Vue))})(this,function(Q,d){"use strict";var ed=Object.defineProperty;var td=(Q,d,Je)=>d in Q?ed(Q,d,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Q[d]=Je;var We=(Q,d,Je)=>(td(Q,typeof d!="symbol"?d+"":d,Je),Je);class Je{constructor(){We(this,"_visible",d.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 Es=new Je,hn=()=>Es;var pn=(t=>(t.Primary="primary",t.Secondary="secondary",t.Info="info",t.Success="success",t.Help="help",t.Warn="warn",t.Error="error",t))(pn||{}),ot=(t=>(t.Pequeno="sm",t.Medio="md",t.Grande="lg",t))(ot||{});const po=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},ks={},As={class:"sf-loading-circle"},vs=[d.createElementVNode("div",null,[d.createElementVNode("svg",{viewBox:"25 25 50 50"},[d.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)];function Ss(t,e){return d.openBlock(),d.createElementBlock("div",As,vs)}const Cs=po(ks,[["render",Ss]]);class rt{constructor(e){We(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 xs=["disabled","tabindex"],_s=["data-color"],Et=d.defineComponent({__name:"Icon",props:{icone:{},visible:{type:Boolean,default:!0},class:{default:""},style:{default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},tamanho:{default:ot.Medio},dot:{type:Boolean},dotColor:{default:pn.Error},buttonProps:{}},setup(t){const e=t;function n(){return new rt(`${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.tamanho===ot.Pequeno).AddClass("sf-icon-medium",e.tamanho===ot.Medio).AddClass("sf-icon-large",e.tamanho===ot.Grande).AddClass("sf-ripple",e.button===!0).Build()}return(o,r)=>(d.openBlock(),d.createElementBlock("div",{style:d.normalizeStyle(e.style),class:d.normalizeClass(n())},[d.createElementVNode("button",d.mergeProps({class:"material-symbols-outlined",disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(d.openBlock(),d.createBlock(Cs,{key:0})):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createTextVNode(d.toDisplayString(e.icone),1)],64))],16,xs),e.dot?(d.openBlock(),d.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,_s)):d.createCommentVNode("",!0)],6))}}),mo="SweetAlert2:",Ts=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},mn=t=>t.charAt(0).toUpperCase()+t.slice(1),xe=t=>Array.prototype.slice.call(t),Ee=t=>{console.warn(`${mo} ${typeof t=="object"?t.join(" "):t}`)},Ye=t=>{console.error(`${mo} ${t}`)},go=[],Ps=t=>{go.includes(t)||(go.push(t),Ee(t))},Rs=(t,e)=>{Ps(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},Ht=t=>typeof t=="function"?t():t,gn=t=>t&&typeof t.toPromise=="function",kt=t=>gn(t)?t.toPromise():Promise.resolve(t),yn=t=>t&&Promise.resolve(t)===t,st={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Ls=["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"],Os={},Is=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],yo=t=>Object.prototype.hasOwnProperty.call(st,t),bo=t=>Ls.indexOf(t)!==-1,bn=t=>Os[t],Bs=t=>{yo(t)||Ee(`Unknown parameter "${t}"`)},Fs=t=>{Is.includes(t)&&Ee(`The parameter "${t}" is incompatible with toasts`)},Ns=t=>{bn(t)&&Rs(t,bn(t))},Us=t=>{!t.backdrop&&t.allowOutsideClick&&Ee('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Bs(e),t.toast&&Fs(e),Ns(e)},Ds="swal2-",wo=t=>{const e={};for(const n in t)e[t[n]]=Ds+t[n];return e},h=wo(["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"]),At=wo(["success","warning","info","question","error"]),de=()=>document.body.querySelector(`.${h.container}`),vt=t=>{const e=de();return e?e.querySelector(t):null},Pe=t=>vt(`.${t}`),Z=()=>Pe(h.popup),St=()=>Pe(h.icon),Eo=()=>Pe(h.title),jt=()=>Pe(h["html-container"]),ko=()=>Pe(h.image),Ao=()=>Pe(h["progress-steps"]),Vt=()=>Pe(h["validation-message"]),Be=()=>vt(`.${h.actions} .${h.confirm}`),qe=()=>vt(`.${h.actions} .${h.deny}`),Ms=()=>Pe(h["input-label"]),it=()=>vt(`.${h.loader}`),Xe=()=>vt(`.${h.actions} .${h.cancel}`),Ct=()=>Pe(h.actions),vo=()=>Pe(h.footer),zt=()=>Pe(h["timer-progress-bar"]),wn=()=>Pe(h.close),$s=`
2
2
  a[href],
3
3
  area[href],
4
4
  input:not([disabled]),
@@ -13,68 +13,72 @@
13
13
  audio[controls],
14
14
  video[controls],
15
15
  summary
16
- `,Jt=()=>{const t=ye(j().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,o)=>{const s=parseInt(n.getAttribute("tabindex")),c=parseInt(o.getAttribute("tabindex"));return s>c?1:s<c?-1:0}),e=ye(j().querySelectorAll(_r)).filter(n=>n.getAttribute("tabindex")!=="-1");return ur(t.concat(e)).filter(n=>we(n))},Xt=()=>Be(document.body,u.shown)&&!Be(document.body,u["toast-shown"])&&!Be(document.body,u["no-backdrop"]),Pt=()=>j()&&Be(j(),u.toast),Ar=()=>j().hasAttribute("data-loading"),Je={previousBodyPadding:null},oe=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html");ye(o.querySelector("head").childNodes).forEach(s=>{t.appendChild(s)}),ye(o.querySelector("body").childNodes).forEach(s=>{t.appendChild(s)})}},Be=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let o=0;o<n.length;o++)if(!t.classList.contains(n[o]))return!1;return!0},Cr=(t,e)=>{ye(t.classList).forEach(n=>{!Object.values(u).includes(n)&&!Object.values(ft).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},Ce=(t,e,n)=>{if(Cr(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return de(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);V(t,e.customClass[n])}},Zt=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${u.popup} > .${u[e]}`);case"checkbox":return t.querySelector(`.${u.popup} > .${u.checkbox} input`);case"radio":return t.querySelector(`.${u.popup} > .${u.radio} input:checked`)||t.querySelector(`.${u.popup} > .${u.radio} input:first-child`);case"range":return t.querySelector(`.${u.popup} > .${u.range} input`);default:return t.querySelector(`.${u.popup} > .${u.input}`)}},Dn=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Un=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(o=>{Array.isArray(t)?t.forEach(s=>{n?s.classList.add(o):s.classList.remove(o)}):n?t.classList.add(o):t.classList.remove(o)}))},V=(t,e)=>{Un(t,e,!0)},Le=(t,e)=>{Un(t,e,!1)},Ne=(t,e)=>{const n=ye(t.childNodes);for(let o=0;o<n.length;o++)if(Be(n[o],e))return n[o]},gt=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?t.style[e]=typeof n=="number"?`${n}px`:n:t.style.removeProperty(e)},ee=(t,e="flex")=>{t.style.display=e},re=t=>{t.style.display="none"},$n=(t,e,n,o)=>{const s=t.querySelector(e);s&&(s.style[n]=o)},Bt=(t,e,n)=>{e?ee(t,n):re(t)},we=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Er=()=>!we(Te())&&!we(Me())&&!we($e()),Hn=t=>t.scrollHeight>t.clientHeight,Vn=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||o>0},Qt=(t,e=!1)=>{const n=It();we(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},xr=()=>{const t=It(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),o=e/n*100;t.style.removeProperty("transition"),t.style.width=`${o}%`},jn=()=>typeof window>"u"||typeof document>"u",Tr=100,N={},Sr=()=>{N.previousActiveElement&&N.previousActiveElement.focus?(N.previousActiveElement.focus(),N.previousActiveElement=null):document.body&&document.body.focus()},Lr=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;N.restoreFocusTimeout=setTimeout(()=>{Sr(),e()},Tr),window.scrollTo(n,o)}),Ir=`
17
- <div aria-labelledby="${u.title}" aria-describedby="${u["html-container"]}" class="${u.popup}" tabindex="-1">
18
- <button type="button" class="${u.close}"></button>
19
- <ul class="${u["progress-steps"]}"></ul>
20
- <div class="${u.icon}"></div>
21
- <img class="${u.image}" />
22
- <h2 class="${u.title}" id="${u.title}"></h2>
23
- <div class="${u["html-container"]}" id="${u["html-container"]}"></div>
24
- <input class="${u.input}" />
25
- <input type="file" class="${u.file}" />
26
- <div class="${u.range}">
16
+ `,En=()=>{const t=xe(Z().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,o)=>{const r=parseInt(n.getAttribute("tabindex")),s=parseInt(o.getAttribute("tabindex"));return r>s?1:r<s?-1:0}),e=xe(Z().querySelectorAll($s)).filter(n=>n.getAttribute("tabindex")!=="-1");return Ts(t.concat(e)).filter(n=>_e(n))},kn=()=>He(document.body,h.shown)&&!He(document.body,h["toast-shown"])&&!He(document.body,h["no-backdrop"]),Wt=()=>Z()&&He(Z(),h.toast),Hs=()=>Z().hasAttribute("data-loading"),at={previousBodyPadding:null},fe=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html");xe(o.querySelector("head").childNodes).forEach(r=>{t.appendChild(r)}),xe(o.querySelector("body").childNodes).forEach(r=>{t.appendChild(r)})}},He=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let o=0;o<n.length;o++)if(!t.classList.contains(n[o]))return!1;return!0},js=(t,e)=>{xe(t.classList).forEach(n=>{!Object.values(h).includes(n)&&!Object.values(At).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},Re=(t,e,n)=>{if(js(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return Ee(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);G(t,e.customClass[n])}},An=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${h.popup} > .${h[e]}`);case"checkbox":return t.querySelector(`.${h.popup} > .${h.checkbox} input`);case"radio":return t.querySelector(`.${h.popup} > .${h.radio} input:checked`)||t.querySelector(`.${h.popup} > .${h.radio} input:first-child`);case"range":return t.querySelector(`.${h.popup} > .${h.range} input`);default:return t.querySelector(`.${h.popup} > .${h.input}`)}},So=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Co=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(o=>{Array.isArray(t)?t.forEach(r=>{n?r.classList.add(o):r.classList.remove(o)}):n?t.classList.add(o):t.classList.remove(o)}))},G=(t,e)=>{Co(t,e,!0)},Ne=(t,e)=>{Co(t,e,!1)},Ke=(t,e)=>{const n=xe(t.childNodes);for(let o=0;o<n.length;o++)if(He(n[o],e))return n[o]},xt=(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},he=t=>{t.style.display="none"},xo=(t,e,n,o)=>{const r=t.querySelector(e);r&&(r.style[n]=o)},qt=(t,e,n)=>{e?le(t,n):he(t)},_e=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Vs=()=>!_e(Be())&&!_e(qe())&&!_e(Xe()),_o=t=>t.scrollHeight>t.clientHeight,To=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||o>0},vn=(t,e=!1)=>{const n=zt();_e(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},zs=()=>{const t=zt(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),o=e/n*100;t.style.removeProperty("transition"),t.style.width=`${o}%`},Po=()=>typeof window>"u"||typeof document>"u",Ws=100,z={},qs=()=>{z.previousActiveElement&&z.previousActiveElement.focus?(z.previousActiveElement.focus(),z.previousActiveElement=null):document.body&&document.body.focus()},Ks=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;z.restoreFocusTimeout=setTimeout(()=>{qs(),e()},Ws),window.scrollTo(n,o)}),Gs=`
17
+ <div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">
18
+ <button type="button" class="${h.close}"></button>
19
+ <ul class="${h["progress-steps"]}"></ul>
20
+ <div class="${h.icon}"></div>
21
+ <img class="${h.image}" />
22
+ <h2 class="${h.title}" id="${h.title}"></h2>
23
+ <div class="${h["html-container"]}" id="${h["html-container"]}"></div>
24
+ <input class="${h.input}" />
25
+ <input type="file" class="${h.file}" />
26
+ <div class="${h.range}">
27
27
  <input type="range" />
28
28
  <output></output>
29
29
  </div>
30
- <select class="${u.select}"></select>
31
- <div class="${u.radio}"></div>
32
- <label for="${u.checkbox}" class="${u.checkbox}">
30
+ <select class="${h.select}"></select>
31
+ <div class="${h.radio}"></div>
32
+ <label for="${h.checkbox}" class="${h.checkbox}">
33
33
  <input type="checkbox" />
34
- <span class="${u.label}"></span>
34
+ <span class="${h.label}"></span>
35
35
  </label>
36
- <textarea class="${u.textarea}"></textarea>
37
- <div class="${u["validation-message"]}" id="${u["validation-message"]}"></div>
38
- <div class="${u.actions}">
39
- <div class="${u.loader}"></div>
40
- <button type="button" class="${u.confirm}"></button>
41
- <button type="button" class="${u.deny}"></button>
42
- <button type="button" class="${u.cancel}"></button>
36
+ <textarea class="${h.textarea}"></textarea>
37
+ <div class="${h["validation-message"]}" id="${h["validation-message"]}"></div>
38
+ <div class="${h.actions}">
39
+ <div class="${h.loader}"></div>
40
+ <button type="button" class="${h.confirm}"></button>
41
+ <button type="button" class="${h.deny}"></button>
42
+ <button type="button" class="${h.cancel}"></button>
43
43
  </div>
44
- <div class="${u.footer}"></div>
45
- <div class="${u["timer-progress-bar-container"]}">
46
- <div class="${u["timer-progress-bar"]}"></div>
44
+ <div class="${h.footer}"></div>
45
+ <div class="${h["timer-progress-bar-container"]}">
46
+ <div class="${h["timer-progress-bar"]}"></div>
47
47
  </div>
48
48
  </div>
49
- `.replace(/(^|\n)\s*/g,""),Pr=()=>{const t=ne();return t?(t.remove(),Le([document.documentElement,document.body],[u["no-backdrop"],u["toast-shown"],u["has-column"]]),!0):!1},He=()=>{N.currentInstance.resetValidationMessage()},Br=()=>{const t=j(),e=Ne(t,u.input),n=Ne(t,u.file),o=t.querySelector(`.${u.range} input`),s=t.querySelector(`.${u.range} output`),c=Ne(t,u.select),k=t.querySelector(`.${u.checkbox} input`),L=Ne(t,u.textarea);e.oninput=He,n.onchange=He,c.onchange=He,k.onchange=He,L.oninput=He,o.oninput=()=>{He(),s.value=o.value},o.onchange=()=>{He(),o.nextSibling.value=o.value}},Rr=t=>typeof t=="string"?document.querySelector(t):t,Or=t=>{const e=j();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Fr=t=>{window.getComputedStyle(t).direction==="rtl"&&V(ne(),u.rtl)},Mr=t=>{const e=Pr();if(jn()){Ue("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=u.container,e&&V(n,u["no-transition"]),oe(n,Ir);const o=Rr(t.target);o.appendChild(n),Or(t),Fr(o),Br()},en=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?Nr(t,e):t&&oe(e,t)},Nr=(t,e)=>{t.jquery?Dr(e,t):oe(e,t.toString())},Dr=(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))},bt=(()=>{if(jn())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})(),Ur=()=>{const t=document.createElement("div");t.className=u["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},$r=(t,e)=>{const n=mt(),o=Ye();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?re(n):ee(n),Ce(n,e,"actions"),Hr(n,o,e),oe(o,e.loaderHtml),Ce(o,e,"loader")};function Hr(t,e,n){const o=Te(),s=Me(),c=$e();tn(o,"confirm",n),tn(s,"deny",n),tn(c,"cancel",n),Vr(o,s,c,n),n.reverseButtons&&(n.toast?(t.insertBefore(c,o),t.insertBefore(s,o)):(t.insertBefore(c,e),t.insertBefore(s,e),t.insertBefore(o,e)))}function Vr(t,e,n,o){if(!o.buttonsStyling)return Le([t,e,n],u.styled);V([t,e,n],u.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,V(t,u["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,V(e,u["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,V(n,u["default-outline"]))}function tn(t,e,n){Bt(t,n[`show${Wt(e)}Button`],"inline-block"),oe(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=u[e],Ce(t,n,`${e}Button`),V(t,n[`${e}ButtonClass`])}function jr(t,e){typeof e=="string"?t.style.background=e:e||V([document.documentElement,document.body],u["no-backdrop"])}function zr(t,e){e in u?V(t,u[e]):(de('The "position" parameter is not valid, defaulting to "center"'),V(t,u.center))}function Wr(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in u&&V(t,u[n])}}const qr=(t,e)=>{const n=ne();n&&(jr(n,e.backdrop),zr(n,e.position),Wr(n,e.grow),Ce(n,e,"container"))},U={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Kr=["input","file","range","select","radio","checkbox","textarea"],Gr=(t,e)=>{const n=j(),o=U.innerParams.get(t),s=!o||e.input!==o.input;Kr.forEach(c=>{const k=u[c],L=Ne(n,k);Xr(c,e.inputAttributes),L.className=k,s&&re(L)}),e.input&&(s&&Yr(e),Zr(e))},Yr=t=>{if(!fe[t.input])return Ue(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=zn(t.input),n=fe[t.input](e,t);ee(n),setTimeout(()=>{Dn(n)})},Jr=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},Xr=(t,e)=>{const n=Zt(j(),t);if(n){Jr(n);for(const o in e)n.setAttribute(o,e[o])}},Zr=t=>{const e=zn(t.input);t.customClass&&V(e,t.customClass.input)},nn=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},yt=(t,e,n)=>{if(n.inputLabel){t.id=u.input;const o=document.createElement("label"),s=u["input-label"];o.setAttribute("for",t.id),o.className=s,V(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},zn=t=>{const e=u[t]?u[t]:u.input;return Ne(j(),e)},fe={};fe.text=fe.email=fe.password=fe.number=fe.tel=fe.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:Kt(e.inputValue)||de(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),yt(t,t,e),nn(t,e),t.type=e.input,t),fe.file=(t,e)=>(yt(t,t,e),nn(t,e),t),fe.range=(t,e)=>{const n=t.querySelector("input"),o=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,o.value=e.inputValue,yt(n,t,e),t},fe.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");oe(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return yt(t,t,e),t},fe.radio=t=>(t.textContent="",t),fe.checkbox=(t,e)=>{const n=Zt(j(),"checkbox");n.value="1",n.id=u.checkbox,n.checked=!!e.inputValue;const o=t.querySelector("span");return oe(o,e.inputPlaceholder),t},fe.textarea=(t,e)=>{t.value=e.inputValue,nn(t,e),yt(t,t,e);const n=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(j()).width),s=()=>{const c=t.offsetWidth+n(t);c>o?j().style.width=`${c}px`:j().style.width=null};new MutationObserver(s).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const Qr=(t,e)=>{const n=St();Ce(n,e,"htmlContainer"),e.html?(en(e.html,n),ee(n,"block")):e.text?(n.textContent=e.text,ee(n,"block")):re(n),Gr(t,e)},ei=(t,e)=>{const n=Nn();Bt(n,e.footer),e.footer&&en(e.footer,n),Ce(n,e,"footer")},ti=(t,e)=>{const n=Yt();oe(n,e.closeButtonHtml),Ce(n,e,"closeButton"),Bt(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},ni=(t,e)=>{const n=U.innerParams.get(t),o=pt();if(n&&e.icon===n.icon){qn(o,e),Wn(o,e);return}if(!e.icon&&!e.iconHtml)return re(o);if(e.icon&&Object.keys(ft).indexOf(e.icon)===-1)return Ue(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),re(o);ee(o),qn(o,e),Wn(o,e),V(o,e.showClass.icon)},Wn=(t,e)=>{for(const n in ft)e.icon!==n&&Le(t,ft[n]);V(t,ft[e.icon]),si(t,e),oi(),Ce(t,e,"icon")},oi=()=>{const t=j(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let o=0;o<n.length;o++)n[o].style.backgroundColor=e},ri=`
49
+ `.replace(/(^|\n)\s*/g,""),Js=()=>{const t=de();return t?(t.remove(),Ne([document.documentElement,document.body],[h["no-backdrop"],h["toast-shown"],h["has-column"]]),!0):!1},Ze=()=>{z.currentInstance.resetValidationMessage()},Ys=()=>{const t=Z(),e=Ke(t,h.input),n=Ke(t,h.file),o=t.querySelector(`.${h.range} input`),r=t.querySelector(`.${h.range} output`),s=Ke(t,h.select),a=t.querySelector(`.${h.checkbox} input`),f=Ke(t,h.textarea);e.oninput=Ze,n.onchange=Ze,s.onchange=Ze,a.onchange=Ze,f.oninput=Ze,o.oninput=()=>{Ze(),r.value=o.value},o.onchange=()=>{Ze(),o.nextSibling.value=o.value}},Xs=t=>typeof t=="string"?document.querySelector(t):t,Zs=t=>{const e=Z();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Qs=t=>{window.getComputedStyle(t).direction==="rtl"&&G(de(),h.rtl)},ei=t=>{const e=Js();if(Po()){Ye("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=h.container,e&&G(n,h["no-transition"]),fe(n,Gs);const o=Xs(t.target);o.appendChild(n),Zs(t),Qs(o),Ys()},Sn=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?ti(t,e):t&&fe(e,t)},ti=(t,e)=>{t.jquery?ni(e,t):fe(e,t.toString())},ni=(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))},_t=(()=>{if(Po())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})(),oi=()=>{const t=document.createElement("div");t.className=h["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},ri=(t,e)=>{const n=Ct(),o=it();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?he(n):le(n),Re(n,e,"actions"),si(n,o,e),fe(o,e.loaderHtml),Re(o,e,"loader")};function si(t,e,n){const o=Be(),r=qe(),s=Xe();Cn(o,"confirm",n),Cn(r,"deny",n),Cn(s,"cancel",n),ii(o,r,s,n),n.reverseButtons&&(n.toast?(t.insertBefore(s,o),t.insertBefore(r,o)):(t.insertBefore(s,e),t.insertBefore(r,e),t.insertBefore(o,e)))}function ii(t,e,n,o){if(!o.buttonsStyling)return Ne([t,e,n],h.styled);G([t,e,n],h.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,G(t,h["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,G(e,h["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,G(n,h["default-outline"]))}function Cn(t,e,n){qt(t,n[`show${mn(e)}Button`],"inline-block"),fe(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=h[e],Re(t,n,`${e}Button`),G(t,n[`${e}ButtonClass`])}function ai(t,e){typeof e=="string"?t.style.background=e:e||G([document.documentElement,document.body],h["no-backdrop"])}function ci(t,e){e in h?G(t,h[e]):(Ee('The "position" parameter is not valid, defaulting to "center"'),G(t,h.center))}function li(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in h&&G(t,h[n])}}const ui=(t,e)=>{const n=de();n&&(ai(n,e.backdrop),ci(n,e.position),li(n,e.grow),Re(n,e,"container"))},q={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},di=["input","file","range","select","radio","checkbox","textarea"],fi=(t,e)=>{const n=Z(),o=q.innerParams.get(t),r=!o||e.input!==o.input;di.forEach(s=>{const a=h[s],f=Ke(n,a);mi(s,e.inputAttributes),f.className=a,r&&he(f)}),e.input&&(r&&hi(e),gi(e))},hi=t=>{if(!ke[t.input])return Ye(`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=ke[t.input](e,t);le(n),setTimeout(()=>{So(n)})},pi=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},mi=(t,e)=>{const n=An(Z(),t);if(n){pi(n);for(const o in e)n.setAttribute(o,e[o])}},gi=t=>{const e=Ro(t.input);t.customClass&&G(e,t.customClass.input)},xn=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},Tt=(t,e,n)=>{if(n.inputLabel){t.id=h.input;const o=document.createElement("label"),r=h["input-label"];o.setAttribute("for",t.id),o.className=r,G(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},Ro=t=>{const e=h[t]?h[t]:h.input;return Ke(Z(),e)},ke={};ke.text=ke.email=ke.password=ke.number=ke.tel=ke.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:yn(e.inputValue)||Ee(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),Tt(t,t,e),xn(t,e),t.type=e.input,t),ke.file=(t,e)=>(Tt(t,t,e),xn(t,e),t),ke.range=(t,e)=>{const n=t.querySelector("input"),o=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,o.value=e.inputValue,Tt(n,t,e),t},ke.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");fe(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return Tt(t,t,e),t},ke.radio=t=>(t.textContent="",t),ke.checkbox=(t,e)=>{const n=An(Z(),"checkbox");n.value="1",n.id=h.checkbox,n.checked=!!e.inputValue;const o=t.querySelector("span");return fe(o,e.inputPlaceholder),t},ke.textarea=(t,e)=>{t.value=e.inputValue,xn(t,e),Tt(t,t,e);const n=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(Z()).width),r=()=>{const s=t.offsetWidth+n(t);s>o?Z().style.width=`${s}px`:Z().style.width=null};new MutationObserver(r).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const yi=(t,e)=>{const n=jt();Re(n,e,"htmlContainer"),e.html?(Sn(e.html,n),le(n,"block")):e.text?(n.textContent=e.text,le(n,"block")):he(n),fi(t,e)},bi=(t,e)=>{const n=vo();qt(n,e.footer),e.footer&&Sn(e.footer,n),Re(n,e,"footer")},wi=(t,e)=>{const n=wn();fe(n,e.closeButtonHtml),Re(n,e,"closeButton"),qt(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},Ei=(t,e)=>{const n=q.innerParams.get(t),o=St();if(n&&e.icon===n.icon){Oo(o,e),Lo(o,e);return}if(!e.icon&&!e.iconHtml)return he(o);if(e.icon&&Object.keys(At).indexOf(e.icon)===-1)return Ye(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),he(o);le(o),Oo(o,e),Lo(o,e),G(o,e.showClass.icon)},Lo=(t,e)=>{for(const n in At)e.icon!==n&&Ne(t,At[n]);G(t,At[e.icon]),Si(t,e),ki(),Re(t,e,"icon")},ki=()=>{const t=Z(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let o=0;o<n.length;o++)n[o].style.backgroundColor=e},Ai=`
50
50
  <div class="swal2-success-circular-line-left"></div>
51
51
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
52
52
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
53
53
  <div class="swal2-success-circular-line-right"></div>
54
- `,ii=`
54
+ `,vi=`
55
55
  <span class="swal2-x-mark">
56
56
  <span class="swal2-x-mark-line-left"></span>
57
57
  <span class="swal2-x-mark-line-right"></span>
58
58
  </span>
59
- `,qn=(t,e)=>{t.textContent="",e.iconHtml?oe(t,Kn(e.iconHtml)):e.icon==="success"?oe(t,ri):e.icon==="error"?oe(t,ii):oe(t,Kn({question:"?",warning:"!",info:"i"}[e.icon]))},si=(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"])$n(t,n,"backgroundColor",e.iconColor);$n(t,".swal2-success-ring","borderColor",e.iconColor)}},Kn=t=>`<div class="${u["icon-content"]}">${t}</div>`,ai=(t,e)=>{const n=Fn();if(!e.imageUrl)return re(n);ee(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),gt(n,"width",e.imageWidth),gt(n,"height",e.imageHeight),n.className=u.image,Ce(n,e,"image")},li=t=>{const e=document.createElement("li");return V(e,u["progress-step"]),oe(e,t),e},ci=t=>{const e=document.createElement("li");return V(e,u["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},ui=(t,e)=>{const n=Mn();if(!e.progressSteps||e.progressSteps.length===0)return re(n);ee(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&de("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((o,s)=>{const c=li(o);if(n.appendChild(c),s===e.currentProgressStep&&V(c,u["active-progress-step"]),s!==e.progressSteps.length-1){const k=ci(e);n.appendChild(k)}})},di=(t,e)=>{const n=On();Bt(n,e.title||e.titleText,"block"),e.title&&en(e.title,n),e.titleText&&(n.innerText=e.titleText),Ce(n,e,"title")},fi=(t,e)=>{const n=ne(),o=j();e.toast?(gt(n,"width",e.width),o.style.width="100%",o.insertBefore(Ye(),pt())):gt(o,"width",e.width),gt(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),re(Lt()),hi(o,e)},hi=(t,e)=>{t.className=`${u.popup} ${we(t)?e.showClass.popup:""}`,e.toast?(V([document.documentElement,document.body],u["toast-shown"]),V(t,u.toast)):V(t,u.modal),Ce(t,e,"popup"),typeof e.customClass=="string"&&V(t,e.customClass),e.icon&&V(t,u[`icon-${e.icon}`])},Gn=(t,e)=>{fi(t,e),qr(t,e),ui(t,e),ni(t,e),ai(t,e),di(t,e),ti(t,e),Qr(t,e),$r(t,e),ei(t,e),typeof e.didRender=="function"&&e.didRender(j())},Xe=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),pi=()=>{ye(document.body.children).forEach(e=>{e===ne()||e.contains(ne())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},Yn=()=>{ye(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")})},Jn=["swal-title","swal-html","swal-footer"],mi=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return _i(n),Object.assign(gi(n),bi(n),yi(n),wi(n),vi(n),ki(n,Jn))},gi=t=>{const e={};return ye(t.querySelectorAll("swal-param")).forEach(n=>{Ve(n,["name","value"]);const o=n.getAttribute("name"),s=n.getAttribute("value");typeof Ge[o]=="boolean"&&s==="false"&&(e[o]=!1),typeof Ge[o]=="object"&&(e[o]=JSON.parse(s))}),e},bi=t=>{const e={};return ye(t.querySelectorAll("swal-button")).forEach(n=>{Ve(n,["type","color","aria-label"]);const o=n.getAttribute("type");e[`${o}ButtonText`]=n.innerHTML,e[`show${Wt(o)}Button`]=!0,n.hasAttribute("color")&&(e[`${o}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${o}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},yi=t=>{const e={},n=t.querySelector("swal-image");return n&&(Ve(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},wi=t=>{const e={},n=t.querySelector("swal-icon");return n&&(Ve(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},vi=t=>{const e={},n=t.querySelector("swal-input");n&&(Ve(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const o=t.querySelectorAll("swal-input-option");return o.length&&(e.inputOptions={},ye(o).forEach(s=>{Ve(s,["value"]);const c=s.getAttribute("value"),k=s.innerHTML;e.inputOptions[c]=k})),e},ki=(t,e)=>{const n={};for(const o in e){const s=e[o],c=t.querySelector(s);c&&(Ve(c,[]),n[s.replace(/^swal-/,"")]=c.innerHTML.trim())}return n},_i=t=>{const e=Jn.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);ye(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.indexOf(o)===-1&&de(`Unrecognized element <${o}>`)})},Ve=(t,e)=>{ye(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&de([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Xn={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 Ai(t){t.inputValidator||Object.keys(Xn).forEach(e=>{t.input===e&&(t.inputValidator=Xn[e])})}function Ci(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(de('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Ei(t){Ai(t),t.showLoaderOnConfirm&&!t.preConfirm&&de(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
59
+ `,Oo=(t,e)=>{t.textContent="",e.iconHtml?fe(t,Io(e.iconHtml)):e.icon==="success"?fe(t,Ai):e.icon==="error"?fe(t,vi):fe(t,Io({question:"?",warning:"!",info:"i"}[e.icon]))},Si=(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)}},Io=t=>`<div class="${h["icon-content"]}">${t}</div>`,Ci=(t,e)=>{const n=ko();if(!e.imageUrl)return he(n);le(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),xt(n,"width",e.imageWidth),xt(n,"height",e.imageHeight),n.className=h.image,Re(n,e,"image")},xi=t=>{const e=document.createElement("li");return G(e,h["progress-step"]),fe(e,t),e},_i=t=>{const e=document.createElement("li");return G(e,h["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Ti=(t,e)=>{const n=Ao();if(!e.progressSteps||e.progressSteps.length===0)return he(n);le(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&Ee("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((o,r)=>{const s=xi(o);if(n.appendChild(s),r===e.currentProgressStep&&G(s,h["active-progress-step"]),r!==e.progressSteps.length-1){const a=_i(e);n.appendChild(a)}})},Pi=(t,e)=>{const n=Eo();qt(n,e.title||e.titleText,"block"),e.title&&Sn(e.title,n),e.titleText&&(n.innerText=e.titleText),Re(n,e,"title")},Ri=(t,e)=>{const n=de(),o=Z();e.toast?(xt(n,"width",e.width),o.style.width="100%",o.insertBefore(it(),St())):xt(o,"width",e.width),xt(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),he(Vt()),Li(o,e)},Li=(t,e)=>{t.className=`${h.popup} ${_e(t)?e.showClass.popup:""}`,e.toast?(G([document.documentElement,document.body],h["toast-shown"]),G(t,h.toast)):G(t,h.modal),Re(t,e,"popup"),typeof e.customClass=="string"&&G(t,e.customClass),e.icon&&G(t,h[`icon-${e.icon}`])},Bo=(t,e)=>{Ri(t,e),ui(t,e),Ti(t,e),Ei(t,e),Ci(t,e),Pi(t,e),wi(t,e),yi(t,e),ri(t,e),bi(t,e),typeof e.didRender=="function"&&e.didRender(Z())},ct=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Oi=()=>{xe(document.body.children).forEach(e=>{e===de()||e.contains(de())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},Fo=()=>{xe(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")})},No=["swal-title","swal-html","swal-footer"],Ii=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return $i(n),Object.assign(Bi(n),Fi(n),Ni(n),Ui(n),Di(n),Mi(n,No))},Bi=t=>{const e={};return xe(t.querySelectorAll("swal-param")).forEach(n=>{Qe(n,["name","value"]);const o=n.getAttribute("name"),r=n.getAttribute("value");typeof st[o]=="boolean"&&r==="false"&&(e[o]=!1),typeof st[o]=="object"&&(e[o]=JSON.parse(r))}),e},Fi=t=>{const e={};return xe(t.querySelectorAll("swal-button")).forEach(n=>{Qe(n,["type","color","aria-label"]);const o=n.getAttribute("type");e[`${o}ButtonText`]=n.innerHTML,e[`show${mn(o)}Button`]=!0,n.hasAttribute("color")&&(e[`${o}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${o}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Ni=t=>{const e={},n=t.querySelector("swal-image");return n&&(Qe(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},Ui=t=>{const e={},n=t.querySelector("swal-icon");return n&&(Qe(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Di=t=>{const e={},n=t.querySelector("swal-input");n&&(Qe(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const o=t.querySelectorAll("swal-input-option");return o.length&&(e.inputOptions={},xe(o).forEach(r=>{Qe(r,["value"]);const s=r.getAttribute("value"),a=r.innerHTML;e.inputOptions[s]=a})),e},Mi=(t,e)=>{const n={};for(const o in e){const r=e[o],s=t.querySelector(r);s&&(Qe(s,[]),n[r.replace(/^swal-/,"")]=s.innerHTML.trim())}return n},$i=t=>{const e=No.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);xe(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.indexOf(o)===-1&&Ee(`Unrecognized element <${o}>`)})},Qe=(t,e)=>{xe(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&Ee([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Uo={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 Hi(t){t.inputValidator||Object.keys(Uo).forEach(e=>{t.input===e&&(t.inputValidator=Uo[e])})}function ji(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(Ee('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Vi(t){Hi(t),t.showLoaderOnConfirm&&!t.preConfirm&&Ee(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
60
60
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
61
- https://sweetalert2.github.io/#ajax-request`),Ci(t),typeof t.title=="string"&&(t.title=t.title.split(`
62
- `).join("<br />")),Mr(t)}class xi{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 Ti=()=>{Je.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(Je.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Je.previousBodyPadding+Ur()}px`)},Si=()=>{Je.previousBodyPadding!==null&&(document.body.style.paddingRight=`${Je.previousBodyPadding}px`,Je.previousBodyPadding=null)},Li=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Be(document.body,u.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,V(document.body,u.iosfix),Pi(),Ii()}},Ii=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&j().scrollHeight>window.innerHeight-44&&(ne().style.paddingBottom="44px")},Pi=()=>{const t=ne();let e;t.ontouchstart=n=>{e=Bi(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Bi=t=>{const e=t.target,n=ne();return Ri(t)||Oi(t)?!1:e===n||!Hn(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Hn(St())&&St().contains(e))},Ri=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",Oi=t=>t.touches&&t.touches.length>1,Fi=()=>{if(Be(document.body,u.iosfix)){const t=parseInt(document.body.style.top,10);Le(document.body,u.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},Zn=10,Mi=t=>{const e=ne(),n=j();typeof t.willOpen=="function"&&t.willOpen(n);const s=window.getComputedStyle(document.body).overflowY;Ui(e,n,t),setTimeout(()=>{Ni(e,n)},Zn),Xt()&&(Di(e,t.scrollbarPadding,s),pi()),!Pt()&&!N.previousActiveElement&&(N.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Le(e,u["no-transition"])},Qn=t=>{const e=j();if(t.target!==e)return;const n=ne();e.removeEventListener(bt,Qn),n.style.overflowY="auto"},Ni=(t,e)=>{bt&&Vn(e)?(t.style.overflowY="hidden",e.addEventListener(bt,Qn)):t.style.overflowY="auto"},Di=(t,e,n)=>{Li(),e&&n!=="hidden"&&Ti(),setTimeout(()=>{t.scrollTop=0})},Ui=(t,e,n)=>{V(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ee(e,"grid"),setTimeout(()=>{V(e,n.showClass.popup),e.style.removeProperty("opacity")},Zn),V([document.documentElement,document.body],u.shown),n.heightAuto&&n.backdrop&&!n.toast&&V([document.documentElement,document.body],u["height-auto"])},Ze=t=>{let e=j();e||new et,e=j();const n=Ye();Pt()?re(pt()):$i(e,t),ee(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},$i=(t,e)=>{const n=mt(),o=Ye();!e&&we(Te())&&(e=Te()),ee(n),e&&(re(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),V([t,n],u.loading)},Hi=(t,e)=>{e.input==="select"||e.input==="radio"?qi(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(qt(e.inputValue)||Kt(e.inputValue))&&(Ze(Te()),Ki(t,e))},Vi=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return ji(n);case"radio":return zi(n);case"file":return Wi(n);default:return e.inputAutoTrim?n.value.trim():n.value}},ji=t=>t.checked?1:0,zi=t=>t.checked?t.value:null,Wi=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,qi=(t,e)=>{const n=j(),o=s=>Gi[e.input](n,on(s),e);qt(e.inputOptions)||Kt(e.inputOptions)?(Ze(Te()),dt(e.inputOptions).then(s=>{t.hideLoading(),o(s)})):typeof e.inputOptions=="object"?o(e.inputOptions):Ue(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Ki=(t,e)=>{const n=t.getInput();re(n),dt(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,ee(n),n.focus(),t.hideLoading()}).catch(o=>{Ue(`Error in inputValue promise: ${o}`),n.value="",ee(n),n.focus(),t.hideLoading()})},Gi={select:(t,e,n)=>{const o=Ne(t,u.select),s=(c,k,L)=>{const d=document.createElement("option");d.value=L,oe(d,k),d.selected=eo(L,n.inputValue),c.appendChild(d)};e.forEach(c=>{const k=c[0],L=c[1];if(Array.isArray(L)){const d=document.createElement("optgroup");d.label=k,d.disabled=!1,o.appendChild(d),L.forEach(F=>s(d,F[1],F[0]))}else s(o,L,k)}),o.focus()},radio:(t,e,n)=>{const o=Ne(t,u.radio);e.forEach(c=>{const k=c[0],L=c[1],d=document.createElement("input"),F=document.createElement("label");d.type="radio",d.name=u.radio,d.value=k,eo(k,n.inputValue)&&(d.checked=!0);const W=document.createElement("span");oe(W,L),W.className=u.label,F.appendChild(d),F.appendChild(W),o.appendChild(F)});const s=o.querySelectorAll("input");s.length&&s[0].focus()}},on=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let s=n;typeof s=="object"&&(s=on(s)),e.push([o,s])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=on(o)),e.push([n,o])}),e},eo=(t,e)=>e&&e.toString()===t.toString();function to(){const t=U.innerParams.get(this);if(!t)return;const e=U.domCache.get(this);re(e.loader),Pt()?t.icon&&ee(pt()):Yi(e),Le([e.popup,e.actions],u.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Yi=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ee(e[0],"inline-block"):Er()&&re(t.actions)};function Ji(t){const e=U.innerParams.get(t||this),n=U.domCache.get(t||this);return n?Zt(n.popup,e.input):null}const wt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},Xi=()=>we(j()),no=()=>Te()&&Te().click(),Zi=()=>Me()&&Me().click(),Qi=()=>$e()&&$e().click(),oo=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},es=(t,e,n,o)=>{oo(e),n.toast||(e.keydownHandler=s=>ns(t,s,o),e.keydownTarget=n.keydownListenerCapture?window:j(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},rn=(t,e,n)=>{const o=Jt();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();j().focus()},ro=["ArrowRight","ArrowDown"],ts=["ArrowLeft","ArrowUp"],ns=(t,e,n)=>{const o=U.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?os(t,e,o):e.key==="Tab"?rs(e,o):[...ro,...ts].includes(e.key)?is(e.key):e.key==="Escape"&&ss(e,o,n)))},os=(t,e,n)=>{if(Tt(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;no(),e.preventDefault()}},rs=(t,e)=>{const n=t.target,o=Jt();let s=-1;for(let c=0;c<o.length;c++)if(n===o[c]){s=c;break}t.shiftKey?rn(e,s,-1):rn(e,s,1),t.stopPropagation(),t.preventDefault()},is=t=>{const e=Te(),n=Me(),o=$e();if(![e,n,o].includes(document.activeElement))return;const s=ro.includes(t)?"nextElementSibling":"previousElementSibling";let c=document.activeElement;for(let k=0;k<mt().children.length;k++){if(c=c[s],!c)return;if(we(c)&&c instanceof HTMLButtonElement)break}c instanceof HTMLButtonElement&&c.focus()},ss=(t,e,n)=>{Tt(e.allowEscapeKey)&&(t.preventDefault(),n(Xe.esc))};function io(t,e,n,o){Pt()?so(t,o):(Lr(n).then(()=>so(t,o)),oo(N)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),Xt()&&(Si(),Fi(),Yn()),as()}function as(){Le([document.documentElement,document.body],[u.shown,u["height-auto"],u["no-backdrop"],u["toast-shown"]])}function Rt(t){t=ds(t);const e=wt.swalPromiseResolve.get(this),n=cs(this);this.isAwaitingPromise()?t.isDismissed||(vt(this),e(t)):n&&e(t)}function ls(){return!!U.awaitingPromise.get(this)}const cs=t=>{const e=j();if(!e)return!1;const n=U.innerParams.get(t);if(!n||Be(e,n.hideClass.popup))return!1;Le(e,n.showClass.popup),V(e,n.hideClass.popup);const o=ne();return Le(o,n.showClass.backdrop),V(o,n.hideClass.backdrop),fs(t,e,n),!0};function us(t){const e=wt.swalPromiseReject.get(this);vt(this),e&&e(t)}const vt=t=>{t.isAwaitingPromise()&&(U.awaitingPromise.delete(t),U.innerParams.get(t)||t._destroy())},ds=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),fs=(t,e,n)=>{const o=ne(),s=bt&&Vn(e);typeof n.willClose=="function"&&n.willClose(e),s?hs(t,e,o,n.returnFocus,n.didClose):io(t,o,n.returnFocus,n.didClose)},hs=(t,e,n,o,s)=>{N.swalCloseEventFinishedCallback=io.bind(null,t,n,o,s),e.addEventListener(bt,function(c){c.target===e&&(N.swalCloseEventFinishedCallback(),delete N.swalCloseEventFinishedCallback)})},so=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function ao(t,e,n){const o=U.domCache.get(t);e.forEach(s=>{o[s].disabled=n})}function lo(t,e){if(!t)return!1;if(t.type==="radio"){const o=t.parentNode.parentNode.querySelectorAll("input");for(let s=0;s<o.length;s++)o[s].disabled=e}else t.disabled=e}function ps(){ao(this,["confirmButton","denyButton","cancelButton"],!1)}function ms(){ao(this,["confirmButton","denyButton","cancelButton"],!0)}function gs(){return lo(this.getInput(),!1)}function bs(){return lo(this.getInput(),!0)}function ys(t){const e=U.domCache.get(this),n=U.innerParams.get(this);oe(e.validationMessage,t),e.validationMessage.className=u["validation-message"],n.customClass&&n.customClass.validationMessage&&V(e.validationMessage,n.customClass.validationMessage),ee(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",u["validation-message"]),Dn(o),V(o,u.inputerror))}function ws(){const t=U.domCache.get(this);t.validationMessage&&re(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Le(e,u.inputerror))}function vs(){return U.domCache.get(this).progressSteps}function ks(t){const e=j(),n=U.innerParams.get(this);if(!e||Be(e,n.hideClass.popup))return de("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=_s(t),s=Object.assign({},n,o);Gn(this,s),U.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const _s=t=>{const e={};return Object.keys(t).forEach(n=>{Bn(n)?e[n]=t[n]:de(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
61
+ https://sweetalert2.github.io/#ajax-request`),ji(t),typeof t.title=="string"&&(t.title=t.title.split(`
62
+ `).join("<br />")),ei(t)}class zi{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 Wi=()=>{at.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(at.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${at.previousBodyPadding+oi()}px`)},qi=()=>{at.previousBodyPadding!==null&&(document.body.style.paddingRight=`${at.previousBodyPadding}px`,at.previousBodyPadding=null)},Ki=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!He(document.body,h.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,G(document.body,h.iosfix),Ji(),Gi()}},Gi=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&Z().scrollHeight>window.innerHeight-44&&(de().style.paddingBottom="44px")},Ji=()=>{const t=de();let e;t.ontouchstart=n=>{e=Yi(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Yi=t=>{const e=t.target,n=de();return Xi(t)||Zi(t)?!1:e===n||!_o(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(_o(jt())&&jt().contains(e))},Xi=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",Zi=t=>t.touches&&t.touches.length>1,Qi=()=>{if(He(document.body,h.iosfix)){const t=parseInt(document.body.style.top,10);Ne(document.body,h.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},Do=10,ea=t=>{const e=de(),n=Z();typeof t.willOpen=="function"&&t.willOpen(n);const r=window.getComputedStyle(document.body).overflowY;oa(e,n,t),setTimeout(()=>{ta(e,n)},Do),kn()&&(na(e,t.scrollbarPadding,r),Oi()),!Wt()&&!z.previousActiveElement&&(z.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Ne(e,h["no-transition"])},Mo=t=>{const e=Z();if(t.target!==e)return;const n=de();e.removeEventListener(_t,Mo),n.style.overflowY="auto"},ta=(t,e)=>{_t&&To(e)?(t.style.overflowY="hidden",e.addEventListener(_t,Mo)):t.style.overflowY="auto"},na=(t,e,n)=>{Ki(),e&&n!=="hidden"&&Wi(),setTimeout(()=>{t.scrollTop=0})},oa=(t,e,n)=>{G(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),le(e,"grid"),setTimeout(()=>{G(e,n.showClass.popup),e.style.removeProperty("opacity")},Do),G([document.documentElement,document.body],h.shown),n.heightAuto&&n.backdrop&&!n.toast&&G([document.documentElement,document.body],h["height-auto"])},lt=t=>{let e=Z();e||new dt,e=Z();const n=it();Wt()?he(St()):ra(e,t),le(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},ra=(t,e)=>{const n=Ct(),o=it();!e&&_e(Be())&&(e=Be()),le(n),e&&(he(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),G([t,n],h.loading)},sa=(t,e)=>{e.input==="select"||e.input==="radio"?ua(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(gn(e.inputValue)||yn(e.inputValue))&&(lt(Be()),da(t,e))},ia=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return aa(n);case"radio":return ca(n);case"file":return la(n);default:return e.inputAutoTrim?n.value.trim():n.value}},aa=t=>t.checked?1:0,ca=t=>t.checked?t.value:null,la=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,ua=(t,e)=>{const n=Z(),o=r=>fa[e.input](n,_n(r),e);gn(e.inputOptions)||yn(e.inputOptions)?(lt(Be()),kt(e.inputOptions).then(r=>{t.hideLoading(),o(r)})):typeof e.inputOptions=="object"?o(e.inputOptions):Ye(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},da=(t,e)=>{const n=t.getInput();he(n),kt(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,le(n),n.focus(),t.hideLoading()}).catch(o=>{Ye(`Error in inputValue promise: ${o}`),n.value="",le(n),n.focus(),t.hideLoading()})},fa={select:(t,e,n)=>{const o=Ke(t,h.select),r=(s,a,f)=>{const l=document.createElement("option");l.value=f,fe(l,a),l.selected=$o(f,n.inputValue),s.appendChild(l)};e.forEach(s=>{const a=s[0],f=s[1];if(Array.isArray(f)){const l=document.createElement("optgroup");l.label=a,l.disabled=!1,o.appendChild(l),f.forEach(w=>r(l,w[1],w[0]))}else r(o,f,a)}),o.focus()},radio:(t,e,n)=>{const o=Ke(t,h.radio);e.forEach(s=>{const a=s[0],f=s[1],l=document.createElement("input"),w=document.createElement("label");l.type="radio",l.name=h.radio,l.value=a,$o(a,n.inputValue)&&(l.checked=!0);const C=document.createElement("span");fe(C,f),C.className=h.label,w.appendChild(l),w.appendChild(C),o.appendChild(w)});const r=o.querySelectorAll("input");r.length&&r[0].focus()}},_n=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let r=n;typeof r=="object"&&(r=_n(r)),e.push([o,r])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=_n(o)),e.push([n,o])}),e},$o=(t,e)=>e&&e.toString()===t.toString();function Ho(){const t=q.innerParams.get(this);if(!t)return;const e=q.domCache.get(this);he(e.loader),Wt()?t.icon&&le(St()):ha(e),Ne([e.popup,e.actions],h.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const ha=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?le(e[0],"inline-block"):Vs()&&he(t.actions)};function pa(t){const e=q.innerParams.get(t||this),n=q.domCache.get(t||this);return n?An(n.popup,e.input):null}const Pt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},ma=()=>_e(Z()),jo=()=>Be()&&Be().click(),ga=()=>qe()&&qe().click(),ya=()=>Xe()&&Xe().click(),Vo=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},ba=(t,e,n,o)=>{Vo(e),n.toast||(e.keydownHandler=r=>Ea(t,r,o),e.keydownTarget=n.keydownListenerCapture?window:Z(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Tn=(t,e,n)=>{const o=En();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();Z().focus()},zo=["ArrowRight","ArrowDown"],wa=["ArrowLeft","ArrowUp"],Ea=(t,e,n)=>{const o=q.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?ka(t,e,o):e.key==="Tab"?Aa(e,o):[...zo,...wa].includes(e.key)?va(e.key):e.key==="Escape"&&Sa(e,o,n)))},ka=(t,e,n)=>{if(Ht(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;jo(),e.preventDefault()}},Aa=(t,e)=>{const n=t.target,o=En();let r=-1;for(let s=0;s<o.length;s++)if(n===o[s]){r=s;break}t.shiftKey?Tn(e,r,-1):Tn(e,r,1),t.stopPropagation(),t.preventDefault()},va=t=>{const e=Be(),n=qe(),o=Xe();if(![e,n,o].includes(document.activeElement))return;const r=zo.includes(t)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;for(let a=0;a<Ct().children.length;a++){if(s=s[r],!s)return;if(_e(s)&&s instanceof HTMLButtonElement)break}s instanceof HTMLButtonElement&&s.focus()},Sa=(t,e,n)=>{Ht(e.allowEscapeKey)&&(t.preventDefault(),n(ct.esc))};function Wo(t,e,n,o){Wt()?qo(t,o):(Ks(n).then(()=>qo(t,o)),Vo(z)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),kn()&&(qi(),Qi(),Fo()),Ca()}function Ca(){Ne([document.documentElement,document.body],[h.shown,h["height-auto"],h["no-backdrop"],h["toast-shown"]])}function Kt(t){t=Pa(t);const e=Pt.swalPromiseResolve.get(this),n=_a(this);this.isAwaitingPromise()?t.isDismissed||(Rt(this),e(t)):n&&e(t)}function xa(){return!!q.awaitingPromise.get(this)}const _a=t=>{const e=Z();if(!e)return!1;const n=q.innerParams.get(t);if(!n||He(e,n.hideClass.popup))return!1;Ne(e,n.showClass.popup),G(e,n.hideClass.popup);const o=de();return Ne(o,n.showClass.backdrop),G(o,n.hideClass.backdrop),Ra(t,e,n),!0};function Ta(t){const e=Pt.swalPromiseReject.get(this);Rt(this),e&&e(t)}const Rt=t=>{t.isAwaitingPromise()&&(q.awaitingPromise.delete(t),q.innerParams.get(t)||t._destroy())},Pa=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Ra=(t,e,n)=>{const o=de(),r=_t&&To(e);typeof n.willClose=="function"&&n.willClose(e),r?La(t,e,o,n.returnFocus,n.didClose):Wo(t,o,n.returnFocus,n.didClose)},La=(t,e,n,o,r)=>{z.swalCloseEventFinishedCallback=Wo.bind(null,t,n,o,r),e.addEventListener(_t,function(s){s.target===e&&(z.swalCloseEventFinishedCallback(),delete z.swalCloseEventFinishedCallback)})},qo=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Ko(t,e,n){const o=q.domCache.get(t);e.forEach(r=>{o[r].disabled=n})}function Go(t,e){if(!t)return!1;if(t.type==="radio"){const o=t.parentNode.parentNode.querySelectorAll("input");for(let r=0;r<o.length;r++)o[r].disabled=e}else t.disabled=e}function Oa(){Ko(this,["confirmButton","denyButton","cancelButton"],!1)}function Ia(){Ko(this,["confirmButton","denyButton","cancelButton"],!0)}function Ba(){return Go(this.getInput(),!1)}function Fa(){return Go(this.getInput(),!0)}function Na(t){const e=q.domCache.get(this),n=q.innerParams.get(this);fe(e.validationMessage,t),e.validationMessage.className=h["validation-message"],n.customClass&&n.customClass.validationMessage&&G(e.validationMessage,n.customClass.validationMessage),le(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",h["validation-message"]),So(o),G(o,h.inputerror))}function Ua(){const t=q.domCache.get(this);t.validationMessage&&he(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ne(e,h.inputerror))}function Da(){return q.domCache.get(this).progressSteps}function Ma(t){const e=Z(),n=q.innerParams.get(this);if(!e||He(e,n.hideClass.popup))return Ee("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=$a(t),r=Object.assign({},n,o);Bo(this,r),q.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const $a=t=>{const e={};return Object.keys(t).forEach(n=>{bo(n)?e[n]=t[n]:Ee(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
63
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 As(){const t=U.domCache.get(this),e=U.innerParams.get(this);if(!e){co(this);return}t.popup&&N.swalCloseEventFinishedCallback&&(N.swalCloseEventFinishedCallback(),delete N.swalCloseEventFinishedCallback),N.deferDisposalTimer&&(clearTimeout(N.deferDisposalTimer),delete N.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),Cs(this)}const Cs=t=>{co(t),delete t.params,delete N.keydownHandler,delete N.keydownTarget,delete N.currentInstance},co=t=>{t.isAwaitingPromise()?(sn(U,t),U.awaitingPromise.set(t,!0)):(sn(wt,t),sn(U,t))},sn=(t,e)=>{for(const n in t)t[n].delete(e)},uo=Object.freeze(Object.defineProperty({__proto__:null,_destroy:As,close:Rt,closeModal:Rt,closePopup:Rt,closeToast:Rt,disableButtons:ms,disableInput:bs,disableLoading:to,enableButtons:ps,enableInput:gs,getInput:Ji,getProgressSteps:vs,handleAwaitingPromise:vt,hideLoading:to,isAwaitingPromise:ls,rejectPromise:us,resetValidationMessage:ws,showValidationMessage:ys,update:ks},Symbol.toStringTag,{value:"Module"})),Es=t=>{const e=U.innerParams.get(t);t.disableButtons(),e.input?fo(t,"confirm"):ln(t,!0)},xs=t=>{const e=U.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?fo(t,"deny"):an(t,!1)},Ts=(t,e)=>{t.disableButtons(),e(Xe.cancel)},fo=(t,e)=>{const n=U.innerParams.get(t);if(!n.input)return Ue(`The "input" parameter is needed to be set when using returnInputValueOn${Wt(e)}`);const o=Vi(t,n);n.inputValidator?Ss(t,o,e):t.getInput().checkValidity()?e==="deny"?an(t,o):ln(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Ss=(t,e,n)=>{const o=U.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>dt(o.inputValidator(e,o.validationMessage))).then(c=>{t.enableButtons(),t.enableInput(),c?t.showValidationMessage(c):n==="deny"?an(t,e):ln(t,e)})},an=(t,e)=>{const n=U.innerParams.get(t||globalThis);n.showLoaderOnDeny&&Ze(Me()),n.preDeny?(U.awaitingPromise.set(t||globalThis,!0),Promise.resolve().then(()=>dt(n.preDeny(e,n.validationMessage))).then(s=>{s===!1?(t.hideLoading(),vt(t)):t.closePopup({isDenied:!0,value:typeof s>"u"?e:s})}).catch(s=>po(t||globalThis,s))):t.closePopup({isDenied:!0,value:e})},ho=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},po=(t,e)=>{t.rejectPromise(e)},ln=(t,e)=>{const n=U.innerParams.get(t||globalThis);n.showLoaderOnConfirm&&Ze(),n.preConfirm?(t.resetValidationMessage(),U.awaitingPromise.set(t||globalThis,!0),Promise.resolve().then(()=>dt(n.preConfirm(e,n.validationMessage))).then(s=>{we(Lt())||s===!1?(t.hideLoading(),vt(t)):ho(t,typeof s>"u"?e:s)}).catch(s=>po(t||globalThis,s))):ho(t,e)},Ls=(t,e,n)=>{U.innerParams.get(t).toast?Is(t,e,n):(Bs(e),Rs(e),Os(t,e,n))},Is=(t,e,n)=>{e.popup.onclick=()=>{const o=U.innerParams.get(t);o&&(Ps(o)||o.timer||o.input)||n(Xe.close)}},Ps=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Ot=!1;const Bs=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Ot=!0)}}},Rs=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Ot=!0)}}},Os=(t,e,n)=>{e.container.onclick=o=>{const s=U.innerParams.get(t);if(Ot){Ot=!1;return}o.target===e.container&&Tt(s.allowOutsideClick)&&n(Xe.backdrop)}},Fs=t=>typeof t=="object"&&t.jquery,mo=t=>t instanceof Element||Fs(t),Ms=t=>{const e={};return typeof t[0]=="object"&&!mo(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const s=t[o];typeof s=="string"||mo(s)?e[n]=s:s!==void 0&&Ue(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`)}),e};function Ns(...t){const e=this;return new e(...t)}function Ds(t){class e extends this{_main(o,s){return super._main(o,Object.assign({},t,s))}}return e}const Us=()=>N.timeout&&N.timeout.getTimerLeft(),go=()=>{if(N.timeout)return xr(),N.timeout.stop()},bo=()=>{if(N.timeout){const t=N.timeout.start();return Qt(t),t}},$s=()=>{const t=N.timeout;return t&&(t.running?go():bo())},Hs=t=>{if(N.timeout){const e=N.timeout.increase(t);return Qt(e,!0),e}},Vs=()=>N.timeout&&N.timeout.isRunning();let yo=!1;const cn={};function js(t="data-swal-template"){cn[t]=this,yo||(document.body.addEventListener("click",zs),yo=!0)}const zs=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in cn){const o=e.getAttribute(n);if(o){cn[n].fire({template:o});return}}},Ws=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:Ms,bindClickHandler:js,clickCancel:Qi,clickConfirm:no,clickDeny:Zi,enableLoading:Ze,fire:Ns,getActions:mt,getCancelButton:$e,getCloseButton:Yt,getConfirmButton:Te,getContainer:ne,getDenyButton:Me,getFocusableElements:Jt,getFooter:Nn,getHtmlContainer:St,getIcon:pt,getImage:Fn,getInputLabel:kr,getLoader:Ye,getPopup:j,getTimerLeft:Us,getTimerProgressBar:It,getTitle:On,getValidationMessage:Lt,increaseTimer:Hs,isDeprecatedParameter:Gt,isLoading:Ar,isTimerRunning:Vs,isUpdatableParameter:Bn,isValidParameter:Pn,isVisible:Xi,mixin:Ds,resumeTimer:bo,showLoading:Ze,stopTimer:go,toggleTimer:$s},Symbol.toStringTag,{value:"Module"}));let un;class Qe{constructor(...e){if(typeof window>"u")return;un=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const o=this._main(this.params);U.promise.set(this,o)}_main(e,n={}){wr(Object.assign({},n,e)),N.currentInstance&&(N.currentInstance._destroy(),Xt()&&Yn()),N.currentInstance=this;const o=Ks(e,n);Ei(o),Object.freeze(o),N.timeout&&(N.timeout.stop(),delete N.timeout),clearTimeout(N.restoreFocusTimeout);const s=Gs(this);return Gn(this,o),U.innerParams.set(this,o),qs(this,s,o)}then(e){return U.promise.get(this).then(e)}finally(e){return U.promise.get(this).finally(e)}}const qs=(t,e,n)=>new Promise((o,s)=>{const c=k=>{t.closePopup({isDismissed:!0,dismiss:k})};wt.swalPromiseResolve.set(t,o),wt.swalPromiseReject.set(t,s),e.confirmButton.onclick=()=>Es(t),e.denyButton.onclick=()=>xs(t),e.cancelButton.onclick=()=>Ts(t,c),e.closeButton.onclick=()=>c(Xe.close),Ls(t,e,c),es(t,N,n,c),Hi(t,n),Mi(n),Ys(N,n,c),Js(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Ks=(t,e)=>{const n=mi(t),o=Object.assign({},Ge,e,n,t);return o.showClass=Object.assign({},Ge.showClass,o.showClass),o.hideClass=Object.assign({},Ge.hideClass,o.hideClass),o},Gs=t=>{const e={popup:j(),container:ne(),actions:mt(),confirmButton:Te(),denyButton:Me(),cancelButton:$e(),loader:Ye(),closeButton:Yt(),validationMessage:Lt(),progressSteps:Mn()};return U.domCache.set(t,e),e},Ys=(t,e,n)=>{const o=It();re(o),e.timer&&(t.timeout=new xi(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ee(o),Ce(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&Qt(e.timer)})))},Js=(t,e)=>{if(!e.toast){if(!Tt(e.allowEnterKey))return Zs();Xs(t,e)||rn(e,-1,1)}},Xs=(t,e)=>e.focusDeny&&we(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&we(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&we(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Zs=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(Qe.prototype,uo),Object.assign(Qe,Ws),Object.keys(uo).forEach(t=>{Qe[t]=function(...e){if(un)return un[t](...e)}}),Qe.DismissReason=Xe,Qe.version="11.4.8";const et=Qe;et.default=et;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:wo,setPrototypeOf:vo,isFrozen:Qs,getPrototypeOf:ea,getOwnPropertyDescriptor:ko}=Object;let{freeze:ae,seal:Se,create:_o}=Object,{apply:dn,construct:fn}=typeof Reflect<"u"&&Reflect;ae||(ae=function(e){return e}),Se||(Se=function(e){return e}),dn||(dn=function(e,n,o){return e.apply(n,o)}),fn||(fn=function(e,n){return new e(...n)});const Ft=Ee(Array.prototype.forEach),Ao=Ee(Array.prototype.pop),kt=Ee(Array.prototype.push),Mt=Ee(String.prototype.toLowerCase),hn=Ee(String.prototype.toString),ta=Ee(String.prototype.match),_t=Ee(String.prototype.replace),na=Ee(String.prototype.indexOf),oa=Ee(String.prototype.trim),ve=Ee(RegExp.prototype.test),At=ra(TypeError);function Ee(t){return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return dn(t,e,o)}}function ra(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return fn(t,n)}}function D(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mt;vo&&vo(t,null);let o=e.length;for(;o--;){let s=e[o];if(typeof s=="string"){const c=n(s);c!==s&&(Qs(e)||(e[o]=c),s=c)}t[s]=!0}return t}function tt(t){const e=_o(null);for(const[n,o]of wo(t))ko(t,n)!==void 0&&(e[n]=o);return e}function Nt(t,e){for(;t!==null;){const o=ko(t,e);if(o){if(o.get)return Ee(o.get);if(typeof o.value=="function")return Ee(o.value)}t=ea(t)}function n(o){return console.warn("fallback value for",o),null}return n}const Co=ae(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),pn=ae(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),mn=ae(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ia=ae(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),gn=ae(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),sa=ae(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Eo=ae(["#text"]),xo=ae(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","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"]),bn=ae(["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"]),To=ae(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Dt=ae(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),aa=Se(/\{\{[\w\W]*|[\w\W]*\}\}/gm),la=Se(/<%[\w\W]*|[\w\W]*%>/gm),ca=Se(/\${[\w\W]*}/gm),ua=Se(/^data-[\-\w.\u00B7-\uFFFF]/),da=Se(/^aria-[\-\w]+$/),So=Se(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fa=Se(/^(?:\w+script|data):/i),ha=Se(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Lo=Se(/^html$/i);var Io=Object.freeze({__proto__:null,MUSTACHE_EXPR:aa,ERB_EXPR:la,TMPLIT_EXPR:ca,DATA_ATTR:ua,ARIA_ATTR:da,IS_ALLOWED_URI:So,IS_SCRIPT_OR_DATA:fa,ATTR_WHITESPACE:ha,DOCTYPE_NAME:Lo});const pa=function(){return typeof window>"u"?null:window},ma=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(o=n.getAttribute(s));const c="dompurify"+(o?"#"+o:"");try{return e.createPolicy(c,{createHTML(k){return k},createScriptURL(k){return k}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}};function Po(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pa();const e=I=>Po(I);if(e.version="3.0.6",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:n}=t;const o=n,s=o.currentScript,{DocumentFragment:c,HTMLTemplateElement:k,Node:L,Element:d,NodeFilter:F,NamedNodeMap:W=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:J,DOMParser:le,trustedTypes:z}=t,Re=d.prototype,ot=Nt(Re,"cloneNode"),ke=Nt(Re,"nextSibling"),rt=Nt(Re,"childNodes"),he=Nt(Re,"parentNode");if(typeof k=="function"){const I=n.createElement("template");I.content&&I.content.ownerDocument&&(n=I.content.ownerDocument)}let $,_e="";const{implementation:Z,createNodeIterator:h,createDocumentFragment:A,getElementsByTagName:P}=n,{importNode:C}=o;let _={};e.isSupported=typeof wo=="function"&&typeof he=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:v,ERB_EXPR:O,TMPLIT_EXPR:m,DATA_ATTR:M,ARIA_ATTR:q,IS_SCRIPT_OR_DATA:X,ATTR_WHITESPACE:Y}=Io;let{IS_ALLOWED_URI:ce}=Io,B=null;const pe=D({},[...Co,...pn,...mn,...gn,...Eo]);let r=null;const a=D({},[...xo,...bn,...To,...Dt]);let f=Object.seal(_o(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}})),b=null,p=null,E=!0,g=!0,y=!1,T=!0,x=!1,R=!1,H=!1,me=!1,ue=!1,te=!1,Pe=!1,Do=!0,Uo=!1;const gl="user-content-";let kn=!0,Et=!1,it={},st=null;const $o=D({},["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 Ho=null;const Vo=D({},["audio","video","img","source","image","track"]);let _n=null;const jo=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$t="http://www.w3.org/1998/Math/MathML",Ht="http://www.w3.org/2000/svg",Oe="http://www.w3.org/1999/xhtml";let at=Oe,An=!1,Cn=null;const bl=D({},[$t,Ht,Oe],hn);let je=null;const yl=["application/xhtml+xml","text/html"],wl="text/html";let Q=null,lt=null;const vl=n.createElement("form"),zo=function(i){return i instanceof RegExp||i instanceof Function},En=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(lt&&lt===i)){if((!i||typeof i!="object")&&(i={}),i=tt(i),je=yl.indexOf(i.PARSER_MEDIA_TYPE)===-1?je=wl:je=i.PARSER_MEDIA_TYPE,Q=je==="application/xhtml+xml"?hn:Mt,B="ALLOWED_TAGS"in i?D({},i.ALLOWED_TAGS,Q):pe,r="ALLOWED_ATTR"in i?D({},i.ALLOWED_ATTR,Q):a,Cn="ALLOWED_NAMESPACES"in i?D({},i.ALLOWED_NAMESPACES,hn):bl,_n="ADD_URI_SAFE_ATTR"in i?D(tt(jo),i.ADD_URI_SAFE_ATTR,Q):jo,Ho="ADD_DATA_URI_TAGS"in i?D(tt(Vo),i.ADD_DATA_URI_TAGS,Q):Vo,st="FORBID_CONTENTS"in i?D({},i.FORBID_CONTENTS,Q):$o,b="FORBID_TAGS"in i?D({},i.FORBID_TAGS,Q):{},p="FORBID_ATTR"in i?D({},i.FORBID_ATTR,Q):{},it="USE_PROFILES"in i?i.USE_PROFILES:!1,E=i.ALLOW_ARIA_ATTR!==!1,g=i.ALLOW_DATA_ATTR!==!1,y=i.ALLOW_UNKNOWN_PROTOCOLS||!1,T=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,x=i.SAFE_FOR_TEMPLATES||!1,R=i.WHOLE_DOCUMENT||!1,ue=i.RETURN_DOM||!1,te=i.RETURN_DOM_FRAGMENT||!1,Pe=i.RETURN_TRUSTED_TYPE||!1,me=i.FORCE_BODY||!1,Do=i.SANITIZE_DOM!==!1,Uo=i.SANITIZE_NAMED_PROPS||!1,kn=i.KEEP_CONTENT!==!1,Et=i.IN_PLACE||!1,ce=i.ALLOWED_URI_REGEXP||So,at=i.NAMESPACE||Oe,f=i.CUSTOM_ELEMENT_HANDLING||{},i.CUSTOM_ELEMENT_HANDLING&&zo(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=i.CUSTOM_ELEMENT_HANDLING.tagNameCheck),i.CUSTOM_ELEMENT_HANDLING&&zo(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),i.CUSTOM_ELEMENT_HANDLING&&typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(f.allowCustomizedBuiltInElements=i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),x&&(g=!1),te&&(ue=!0),it&&(B=D({},[...Eo]),r=[],it.html===!0&&(D(B,Co),D(r,xo)),it.svg===!0&&(D(B,pn),D(r,bn),D(r,Dt)),it.svgFilters===!0&&(D(B,mn),D(r,bn),D(r,Dt)),it.mathMl===!0&&(D(B,gn),D(r,To),D(r,Dt))),i.ADD_TAGS&&(B===pe&&(B=tt(B)),D(B,i.ADD_TAGS,Q)),i.ADD_ATTR&&(r===a&&(r=tt(r)),D(r,i.ADD_ATTR,Q)),i.ADD_URI_SAFE_ATTR&&D(_n,i.ADD_URI_SAFE_ATTR,Q),i.FORBID_CONTENTS&&(st===$o&&(st=tt(st)),D(st,i.FORBID_CONTENTS,Q)),kn&&(B["#text"]=!0),R&&D(B,["html","head","body"]),B.table&&(D(B,["tbody"]),delete b.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw At('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw At('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');$=i.TRUSTED_TYPES_POLICY,_e=$.createHTML("")}else $===void 0&&($=ma(z,s)),$!==null&&typeof _e=="string"&&(_e=$.createHTML(""));ae&&ae(i),lt=i}},Wo=D({},["mi","mo","mn","ms","mtext"]),qo=D({},["foreignobject","desc","title","annotation-xml"]),kl=D({},["title","style","font","a","script"]),Vt=D({},pn);D(Vt,mn),D(Vt,ia);const xn=D({},gn);D(xn,sa);const _l=function(i){let w=he(i);(!w||!w.tagName)&&(w={namespaceURI:at,tagName:"template"});const S=Mt(i.tagName),K=Mt(w.tagName);return Cn[i.namespaceURI]?i.namespaceURI===Ht?w.namespaceURI===Oe?S==="svg":w.namespaceURI===$t?S==="svg"&&(K==="annotation-xml"||Wo[K]):!!Vt[S]:i.namespaceURI===$t?w.namespaceURI===Oe?S==="math":w.namespaceURI===Ht?S==="math"&&qo[K]:!!xn[S]:i.namespaceURI===Oe?w.namespaceURI===Ht&&!qo[K]||w.namespaceURI===$t&&!Wo[K]?!1:!xn[S]&&(kl[S]||!Vt[S]):!!(je==="application/xhtml+xml"&&Cn[i.namespaceURI]):!1},ze=function(i){kt(e.removed,{element:i});try{i.parentNode.removeChild(i)}catch{i.remove()}},Tn=function(i,w){try{kt(e.removed,{attribute:w.getAttributeNode(i),from:w})}catch{kt(e.removed,{attribute:null,from:w})}if(w.removeAttribute(i),i==="is"&&!r[i])if(ue||te)try{ze(w)}catch{}else try{w.setAttribute(i,"")}catch{}},Ko=function(i){let w=null,S=null;if(me)i="<remove></remove>"+i;else{const se=ta(i,/^[\r\n\t ]+/);S=se&&se[0]}je==="application/xhtml+xml"&&at===Oe&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const K=$?$.createHTML(i):i;if(at===Oe)try{w=new le().parseFromString(K,je)}catch{}if(!w||!w.documentElement){w=Z.createDocument(at,"template",null);try{w.documentElement.innerHTML=An?_e:K}catch{}}const ie=w.body||w.documentElement;return i&&S&&ie.insertBefore(n.createTextNode(S),ie.childNodes[0]||null),at===Oe?P.call(w,R?"html":"body")[0]:R?w.documentElement:ie},Go=function(i){return h.call(i.ownerDocument||i,i,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT,null)},Al=function(i){return i instanceof J&&(typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||!(i.attributes instanceof W)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function")},Yo=function(i){return typeof L=="function"&&i instanceof L},Fe=function(i,w,S){_[i]&&Ft(_[i],K=>{K.call(e,w,S,lt)})},Jo=function(i){let w=null;if(Fe("beforeSanitizeElements",i,null),Al(i))return ze(i),!0;const S=Q(i.nodeName);if(Fe("uponSanitizeElement",i,{tagName:S,allowedTags:B}),i.hasChildNodes()&&!Yo(i.firstElementChild)&&ve(/<[/\w]/g,i.innerHTML)&&ve(/<[/\w]/g,i.textContent))return ze(i),!0;if(!B[S]||b[S]){if(!b[S]&&Zo(S)&&(f.tagNameCheck instanceof RegExp&&ve(f.tagNameCheck,S)||f.tagNameCheck instanceof Function&&f.tagNameCheck(S)))return!1;if(kn&&!st[S]){const K=he(i)||i.parentNode,ie=rt(i)||i.childNodes;if(ie&&K){const se=ie.length;for(let ge=se-1;ge>=0;--ge)K.insertBefore(ot(ie[ge],!0),ke(i))}}return ze(i),!0}return i instanceof d&&!_l(i)||(S==="noscript"||S==="noembed"||S==="noframes")&&ve(/<\/no(script|embed|frames)/i,i.innerHTML)?(ze(i),!0):(x&&i.nodeType===3&&(w=i.textContent,Ft([v,O,m],K=>{w=_t(w,K," ")}),i.textContent!==w&&(kt(e.removed,{element:i.cloneNode()}),i.textContent=w)),Fe("afterSanitizeElements",i,null),!1)},Xo=function(i,w,S){if(Do&&(w==="id"||w==="name")&&(S in n||S in vl))return!1;if(!(g&&!p[w]&&ve(M,w))){if(!(E&&ve(q,w))){if(!r[w]||p[w]){if(!(Zo(i)&&(f.tagNameCheck instanceof RegExp&&ve(f.tagNameCheck,i)||f.tagNameCheck instanceof Function&&f.tagNameCheck(i))&&(f.attributeNameCheck instanceof RegExp&&ve(f.attributeNameCheck,w)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(w))||w==="is"&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&ve(f.tagNameCheck,S)||f.tagNameCheck instanceof Function&&f.tagNameCheck(S))))return!1}else if(!_n[w]){if(!ve(ce,_t(S,Y,""))){if(!((w==="src"||w==="xlink:href"||w==="href")&&i!=="script"&&na(S,"data:")===0&&Ho[i])){if(!(y&&!ve(X,_t(S,Y,"")))){if(S)return!1}}}}}}return!0},Zo=function(i){return i.indexOf("-")>0},Qo=function(i){Fe("beforeSanitizeAttributes",i,null);const{attributes:w}=i;if(!w)return;const S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:r};let K=w.length;for(;K--;){const ie=w[K],{name:se,namespaceURI:ge,value:We}=ie,xt=Q(se);let be=se==="value"?We:oa(We);if(S.attrName=xt,S.attrValue=be,S.keepAttr=!0,S.forceKeepAttr=void 0,Fe("uponSanitizeAttribute",i,S),be=S.attrValue,S.forceKeepAttr||(Tn(se,i),!S.keepAttr))continue;if(!T&&ve(/\/>/i,be)){Tn(se,i);continue}x&&Ft([v,O,m],tr=>{be=_t(be,tr," ")});const er=Q(i.nodeName);if(Xo(er,xt,be)){if(Uo&&(xt==="id"||xt==="name")&&(Tn(se,i),be=gl+be),$&&typeof z=="object"&&typeof z.getAttributeType=="function"&&!ge)switch(z.getAttributeType(er,xt)){case"TrustedHTML":{be=$.createHTML(be);break}case"TrustedScriptURL":{be=$.createScriptURL(be);break}}try{ge?i.setAttributeNS(ge,se,be):i.setAttribute(se,be),Ao(e.removed)}catch{}}}Fe("afterSanitizeAttributes",i,null)},Cl=function I(i){let w=null;const S=Go(i);for(Fe("beforeSanitizeShadowDOM",i,null);w=S.nextNode();)Fe("uponSanitizeShadowNode",w,null),!Jo(w)&&(w.content instanceof c&&I(w.content),Qo(w));Fe("afterSanitizeShadowDOM",i,null)};return e.sanitize=function(I){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=null,S=null,K=null,ie=null;if(An=!I,An&&(I="<!-->"),typeof I!="string"&&!Yo(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw At("dirty is not a string, aborting")}else throw At("toString is not a function");if(!e.isSupported)return I;if(H||En(i),e.removed=[],typeof I=="string"&&(Et=!1),Et){if(I.nodeName){const We=Q(I.nodeName);if(!B[We]||b[We])throw At("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof L)w=Ko("<!---->"),S=w.ownerDocument.importNode(I,!0),S.nodeType===1&&S.nodeName==="BODY"||S.nodeName==="HTML"?w=S:w.appendChild(S);else{if(!ue&&!x&&!R&&I.indexOf("<")===-1)return $&&Pe?$.createHTML(I):I;if(w=Ko(I),!w)return ue?null:Pe?_e:""}w&&me&&ze(w.firstChild);const se=Go(Et?I:w);for(;K=se.nextNode();)Jo(K)||(K.content instanceof c&&Cl(K.content),Qo(K));if(Et)return I;if(ue){if(te)for(ie=A.call(w.ownerDocument);w.firstChild;)ie.appendChild(w.firstChild);else ie=w;return(r.shadowroot||r.shadowrootmode)&&(ie=C.call(o,ie,!0)),ie}let ge=R?w.outerHTML:w.innerHTML;return R&&B["!doctype"]&&w.ownerDocument&&w.ownerDocument.doctype&&w.ownerDocument.doctype.name&&ve(Lo,w.ownerDocument.doctype.name)&&(ge="<!DOCTYPE "+w.ownerDocument.doctype.name+`>
65
- `+ge),x&&Ft([v,O,m],We=>{ge=_t(ge,We," ")}),$&&Pe?$.createHTML(ge):ge},e.setConfig=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};En(I),H=!0},e.clearConfig=function(){lt=null,H=!1},e.isValidAttribute=function(I,i,w){lt||En({});const S=Q(I),K=Q(i);return Xo(S,K,w)},e.addHook=function(I,i){typeof i=="function"&&(_[I]=_[I]||[],kt(_[I],i))},e.removeHook=function(I){if(_[I])return Ao(_[I])},e.removeHooks=function(I){_[I]&&(_[I]=[])},e.removeAllHooks=function(){_={}},e}var Bo=Po();class ga{get IsVisible(){return et.isVisible()}async ConfirmAsync(e){return new Promise(n=>{et.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Bo.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(o=>{n(o.isConfirmed===!0)})})}async AlertAsync(e){const n=e.icon??"info";let o;return Array.isArray(e.text)?o=`<div style="max-height: 50vh; overflow: auto">
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 Ha(){const t=q.domCache.get(this),e=q.innerParams.get(this);if(!e){Jo(this);return}t.popup&&z.swalCloseEventFinishedCallback&&(z.swalCloseEventFinishedCallback(),delete z.swalCloseEventFinishedCallback),z.deferDisposalTimer&&(clearTimeout(z.deferDisposalTimer),delete z.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),ja(this)}const ja=t=>{Jo(t),delete t.params,delete z.keydownHandler,delete z.keydownTarget,delete z.currentInstance},Jo=t=>{t.isAwaitingPromise()?(Pn(q,t),q.awaitingPromise.set(t,!0)):(Pn(Pt,t),Pn(q,t))},Pn=(t,e)=>{for(const n in t)t[n].delete(e)},Yo=Object.freeze(Object.defineProperty({__proto__:null,_destroy:Ha,close:Kt,closeModal:Kt,closePopup:Kt,closeToast:Kt,disableButtons:Ia,disableInput:Fa,disableLoading:Ho,enableButtons:Oa,enableInput:Ba,getInput:pa,getProgressSteps:Da,handleAwaitingPromise:Rt,hideLoading:Ho,isAwaitingPromise:xa,rejectPromise:Ta,resetValidationMessage:Ua,showValidationMessage:Na,update:Ma},Symbol.toStringTag,{value:"Module"})),Va=t=>{const e=q.innerParams.get(t);t.disableButtons(),e.input?Xo(t,"confirm"):Ln(t,!0)},za=t=>{const e=q.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Xo(t,"deny"):Rn(t,!1)},Wa=(t,e)=>{t.disableButtons(),e(ct.cancel)},Xo=(t,e)=>{const n=q.innerParams.get(t);if(!n.input)return Ye(`The "input" parameter is needed to be set when using returnInputValueOn${mn(e)}`);const o=ia(t,n);n.inputValidator?qa(t,o,e):t.getInput().checkValidity()?e==="deny"?Rn(t,o):Ln(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},qa=(t,e,n)=>{const o=q.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>kt(o.inputValidator(e,o.validationMessage))).then(s=>{t.enableButtons(),t.enableInput(),s?t.showValidationMessage(s):n==="deny"?Rn(t,e):Ln(t,e)})},Rn=(t,e)=>{const n=q.innerParams.get(t||globalThis);n.showLoaderOnDeny&&lt(qe()),n.preDeny?(q.awaitingPromise.set(t||globalThis,!0),Promise.resolve().then(()=>kt(n.preDeny(e,n.validationMessage))).then(r=>{r===!1?(t.hideLoading(),Rt(t)):t.closePopup({isDenied:!0,value:typeof r>"u"?e:r})}).catch(r=>Qo(t||globalThis,r))):t.closePopup({isDenied:!0,value:e})},Zo=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Qo=(t,e)=>{t.rejectPromise(e)},Ln=(t,e)=>{const n=q.innerParams.get(t||globalThis);n.showLoaderOnConfirm&&lt(),n.preConfirm?(t.resetValidationMessage(),q.awaitingPromise.set(t||globalThis,!0),Promise.resolve().then(()=>kt(n.preConfirm(e,n.validationMessage))).then(r=>{_e(Vt())||r===!1?(t.hideLoading(),Rt(t)):Zo(t,typeof r>"u"?e:r)}).catch(r=>Qo(t||globalThis,r))):Zo(t,e)},Ka=(t,e,n)=>{q.innerParams.get(t).toast?Ga(t,e,n):(Ya(e),Xa(e),Za(t,e,n))},Ga=(t,e,n)=>{e.popup.onclick=()=>{const o=q.innerParams.get(t);o&&(Ja(o)||o.timer||o.input)||n(ct.close)}},Ja=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Gt=!1;const Ya=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Gt=!0)}}},Xa=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Gt=!0)}}},Za=(t,e,n)=>{e.container.onclick=o=>{const r=q.innerParams.get(t);if(Gt){Gt=!1;return}o.target===e.container&&Ht(r.allowOutsideClick)&&n(ct.backdrop)}},Qa=t=>typeof t=="object"&&t.jquery,er=t=>t instanceof Element||Qa(t),ec=t=>{const e={};return typeof t[0]=="object"&&!er(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const r=t[o];typeof r=="string"||er(r)?e[n]=r:r!==void 0&&Ye(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}),e};function tc(...t){const e=this;return new e(...t)}function nc(t){class e extends this{_main(o,r){return super._main(o,Object.assign({},t,r))}}return e}const oc=()=>z.timeout&&z.timeout.getTimerLeft(),tr=()=>{if(z.timeout)return zs(),z.timeout.stop()},nr=()=>{if(z.timeout){const t=z.timeout.start();return vn(t),t}},rc=()=>{const t=z.timeout;return t&&(t.running?tr():nr())},sc=t=>{if(z.timeout){const e=z.timeout.increase(t);return vn(e,!0),e}},ic=()=>z.timeout&&z.timeout.isRunning();let or=!1;const On={};function ac(t="data-swal-template"){On[t]=this,or||(document.body.addEventListener("click",cc),or=!0)}const cc=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in On){const o=e.getAttribute(n);if(o){On[n].fire({template:o});return}}},lc=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:ec,bindClickHandler:ac,clickCancel:ya,clickConfirm:jo,clickDeny:ga,enableLoading:lt,fire:tc,getActions:Ct,getCancelButton:Xe,getCloseButton:wn,getConfirmButton:Be,getContainer:de,getDenyButton:qe,getFocusableElements:En,getFooter:vo,getHtmlContainer:jt,getIcon:St,getImage:ko,getInputLabel:Ms,getLoader:it,getPopup:Z,getTimerLeft:oc,getTimerProgressBar:zt,getTitle:Eo,getValidationMessage:Vt,increaseTimer:sc,isDeprecatedParameter:bn,isLoading:Hs,isTimerRunning:ic,isUpdatableParameter:bo,isValidParameter:yo,isVisible:ma,mixin:nc,resumeTimer:nr,showLoading:lt,stopTimer:tr,toggleTimer:rc},Symbol.toStringTag,{value:"Module"}));let In;class ut{constructor(...e){if(typeof window>"u")return;In=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const o=this._main(this.params);q.promise.set(this,o)}_main(e,n={}){Us(Object.assign({},n,e)),z.currentInstance&&(z.currentInstance._destroy(),kn()&&Fo()),z.currentInstance=this;const o=dc(e,n);Vi(o),Object.freeze(o),z.timeout&&(z.timeout.stop(),delete z.timeout),clearTimeout(z.restoreFocusTimeout);const r=fc(this);return Bo(this,o),q.innerParams.set(this,o),uc(this,r,o)}then(e){return q.promise.get(this).then(e)}finally(e){return q.promise.get(this).finally(e)}}const uc=(t,e,n)=>new Promise((o,r)=>{const s=a=>{t.closePopup({isDismissed:!0,dismiss:a})};Pt.swalPromiseResolve.set(t,o),Pt.swalPromiseReject.set(t,r),e.confirmButton.onclick=()=>Va(t),e.denyButton.onclick=()=>za(t),e.cancelButton.onclick=()=>Wa(t,s),e.closeButton.onclick=()=>s(ct.close),Ka(t,e,s),ba(t,z,n,s),sa(t,n),ea(n),hc(z,n,s),pc(e,n),setTimeout(()=>{e.container.scrollTop=0})}),dc=(t,e)=>{const n=Ii(t),o=Object.assign({},st,e,n,t);return o.showClass=Object.assign({},st.showClass,o.showClass),o.hideClass=Object.assign({},st.hideClass,o.hideClass),o},fc=t=>{const e={popup:Z(),container:de(),actions:Ct(),confirmButton:Be(),denyButton:qe(),cancelButton:Xe(),loader:it(),closeButton:wn(),validationMessage:Vt(),progressSteps:Ao()};return q.domCache.set(t,e),e},hc=(t,e,n)=>{const o=zt();he(o),e.timer&&(t.timeout=new zi(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(le(o),Re(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&vn(e.timer)})))},pc=(t,e)=>{if(!e.toast){if(!Ht(e.allowEnterKey))return gc();mc(t,e)||Tn(e,-1,1)}},mc=(t,e)=>e.focusDeny&&_e(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&_e(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&_e(t.confirmButton)?(t.confirmButton.focus(),!0):!1,gc=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(ut.prototype,Yo),Object.assign(ut,lc),Object.keys(Yo).forEach(t=>{ut[t]=function(...e){if(In)return In[t](...e)}}),ut.DismissReason=ct,ut.version="11.4.8";const dt=ut;dt.default=dt;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:rr,setPrototypeOf:sr,isFrozen:yc,getPrototypeOf:bc,getOwnPropertyDescriptor:ir}=Object;let{freeze:ge,seal:Fe,create:ar}=Object,{apply:Bn,construct:Fn}=typeof Reflect<"u"&&Reflect;ge||(ge=function(e){return e}),Fe||(Fe=function(e){return e}),Bn||(Bn=function(e,n,o){return e.apply(n,o)}),Fn||(Fn=function(e,n){return new e(...n)});const Jt=Le(Array.prototype.forEach),cr=Le(Array.prototype.pop),Lt=Le(Array.prototype.push),Yt=Le(String.prototype.toLowerCase),Nn=Le(String.prototype.toString),wc=Le(String.prototype.match),Ot=Le(String.prototype.replace),Ec=Le(String.prototype.indexOf),kc=Le(String.prototype.trim),Te=Le(RegExp.prototype.test),It=Ac(TypeError);function Le(t){return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return Bn(t,e,o)}}function Ac(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Fn(t,n)}}function W(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Yt;sr&&sr(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const s=n(r);s!==r&&(yc(e)||(e[o]=s),r=s)}t[r]=!0}return t}function ft(t){const e=ar(null);for(const[n,o]of rr(t))ir(t,n)!==void 0&&(e[n]=o);return e}function Xt(t,e){for(;t!==null;){const o=ir(t,e);if(o){if(o.get)return Le(o.get);if(typeof o.value=="function")return Le(o.value)}t=bc(t)}function n(o){return console.warn("fallback value for",o),null}return n}const lr=ge(["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"]),Un=ge(["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"]),Dn=ge(["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"]),vc=ge(["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"]),Mn=ge(["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"]),Sc=ge(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ur=ge(["#text"]),dr=ge(["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"]),$n=ge(["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"]),fr=ge(["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"]),Zt=ge(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Cc=Fe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xc=Fe(/<%[\w\W]*|[\w\W]*%>/gm),_c=Fe(/\${[\w\W]*}/gm),Tc=Fe(/^data-[\-\w.\u00B7-\uFFFF]/),Pc=Fe(/^aria-[\-\w]+$/),hr=Fe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Rc=Fe(/^(?:\w+script|data):/i),Lc=Fe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pr=Fe(/^html$/i);var mr=Object.freeze({__proto__:null,MUSTACHE_EXPR:Cc,ERB_EXPR:xc,TMPLIT_EXPR:_c,DATA_ATTR:Tc,ARIA_ATTR:Pc,IS_ALLOWED_URI:hr,IS_SCRIPT_OR_DATA:Rc,ATTR_WHITESPACE:Lc,DOCTYPE_NAME:pr});const Oc=function(){return typeof window>"u"?null:window},Ic=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(o=n.getAttribute(r));const s="dompurify"+(o?"#"+o:"");try{return e.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function gr(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Oc();const e=F=>gr(F);if(e.version="3.0.6",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:n}=t;const o=n,r=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:f,Element:l,NodeFilter:w,NamedNodeMap:C=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:b,DOMParser:Y,trustedTypes:H}=t,B=l.prototype,N=Xt(B,"cloneNode"),X=Xt(B,"nextSibling"),oe=Xt(B,"childNodes"),ne=Xt(B,"parentNode");if(typeof a=="function"){const F=n.createElement("template");F.content&&F.content.ownerDocument&&(n=F.content.ownerDocument)}let $,ye="";const{implementation:ae,createNodeIterator:g,createDocumentFragment:T,getElementsByTagName:U}=n,{importNode:P}=o;let _={};e.isSupported=typeof rr=="function"&&typeof ne=="function"&&ae&&ae.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:x,ERB_EXPR:j,TMPLIT_EXPR:E,DATA_ATTR:V,ARIA_ATTR:ee,IS_SCRIPT_OR_DATA:ie,ATTR_WHITESPACE:se}=mr;let{IS_ALLOWED_URI:be}=mr,D=null;const Ae=W({},[...lr,...Un,...Dn,...Mn,...ur]);let i=null;const u=W({},[...dr,...$n,...fr,...Zt]);let m=Object.seal(ar(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}})),A=null,y=null,R=!0,k=!0,v=!1,O=!0,L=!1,M=!1,K=!1,ve=!1,we=!1,ue=!1,$e=!1,ns=!0,os=!1;const Wu="user-content-";let io=!0,Mt=!1,gt={},yt=null;const rs=W({},["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 ss=null;const is=W({},["audio","video","img","source","image","track"]);let ao=null;const as=W({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),un="http://www.w3.org/1998/Math/MathML",dn="http://www.w3.org/2000/svg",Ve="http://www.w3.org/1999/xhtml";let bt=Ve,co=!1,lo=null;const qu=W({},[un,dn,Ve],Nn);let et=null;const Ku=["application/xhtml+xml","text/html"],Gu="text/html";let ce=null,wt=null;const Ju=n.createElement("form"),cs=function(c){return c instanceof RegExp||c instanceof Function},uo=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(wt&&wt===c)){if((!c||typeof c!="object")&&(c={}),c=ft(c),et=Ku.indexOf(c.PARSER_MEDIA_TYPE)===-1?et=Gu:et=c.PARSER_MEDIA_TYPE,ce=et==="application/xhtml+xml"?Nn:Yt,D="ALLOWED_TAGS"in c?W({},c.ALLOWED_TAGS,ce):Ae,i="ALLOWED_ATTR"in c?W({},c.ALLOWED_ATTR,ce):u,lo="ALLOWED_NAMESPACES"in c?W({},c.ALLOWED_NAMESPACES,Nn):qu,ao="ADD_URI_SAFE_ATTR"in c?W(ft(as),c.ADD_URI_SAFE_ATTR,ce):as,ss="ADD_DATA_URI_TAGS"in c?W(ft(is),c.ADD_DATA_URI_TAGS,ce):is,yt="FORBID_CONTENTS"in c?W({},c.FORBID_CONTENTS,ce):rs,A="FORBID_TAGS"in c?W({},c.FORBID_TAGS,ce):{},y="FORBID_ATTR"in c?W({},c.FORBID_ATTR,ce):{},gt="USE_PROFILES"in c?c.USE_PROFILES:!1,R=c.ALLOW_ARIA_ATTR!==!1,k=c.ALLOW_DATA_ATTR!==!1,v=c.ALLOW_UNKNOWN_PROTOCOLS||!1,O=c.ALLOW_SELF_CLOSE_IN_ATTR!==!1,L=c.SAFE_FOR_TEMPLATES||!1,M=c.WHOLE_DOCUMENT||!1,we=c.RETURN_DOM||!1,ue=c.RETURN_DOM_FRAGMENT||!1,$e=c.RETURN_TRUSTED_TYPE||!1,ve=c.FORCE_BODY||!1,ns=c.SANITIZE_DOM!==!1,os=c.SANITIZE_NAMED_PROPS||!1,io=c.KEEP_CONTENT!==!1,Mt=c.IN_PLACE||!1,be=c.ALLOWED_URI_REGEXP||hr,bt=c.NAMESPACE||Ve,m=c.CUSTOM_ELEMENT_HANDLING||{},c.CUSTOM_ELEMENT_HANDLING&&cs(c.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(m.tagNameCheck=c.CUSTOM_ELEMENT_HANDLING.tagNameCheck),c.CUSTOM_ELEMENT_HANDLING&&cs(c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(m.attributeNameCheck=c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),c.CUSTOM_ELEMENT_HANDLING&&typeof c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(m.allowCustomizedBuiltInElements=c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),L&&(k=!1),ue&&(we=!0),gt&&(D=W({},[...ur]),i=[],gt.html===!0&&(W(D,lr),W(i,dr)),gt.svg===!0&&(W(D,Un),W(i,$n),W(i,Zt)),gt.svgFilters===!0&&(W(D,Dn),W(i,$n),W(i,Zt)),gt.mathMl===!0&&(W(D,Mn),W(i,fr),W(i,Zt))),c.ADD_TAGS&&(D===Ae&&(D=ft(D)),W(D,c.ADD_TAGS,ce)),c.ADD_ATTR&&(i===u&&(i=ft(i)),W(i,c.ADD_ATTR,ce)),c.ADD_URI_SAFE_ATTR&&W(ao,c.ADD_URI_SAFE_ATTR,ce),c.FORBID_CONTENTS&&(yt===rs&&(yt=ft(yt)),W(yt,c.FORBID_CONTENTS,ce)),io&&(D["#text"]=!0),M&&W(D,["html","head","body"]),D.table&&(W(D,["tbody"]),delete A.tbody),c.TRUSTED_TYPES_POLICY){if(typeof c.TRUSTED_TYPES_POLICY.createHTML!="function")throw It('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof c.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw It('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');$=c.TRUSTED_TYPES_POLICY,ye=$.createHTML("")}else $===void 0&&($=Ic(H,r)),$!==null&&typeof ye=="string"&&(ye=$.createHTML(""));ge&&ge(c),wt=c}},ls=W({},["mi","mo","mn","ms","mtext"]),us=W({},["foreignobject","desc","title","annotation-xml"]),Yu=W({},["title","style","font","a","script"]),fn=W({},Un);W(fn,Dn),W(fn,vc);const fo=W({},Mn);W(fo,Sc);const Xu=function(c){let S=ne(c);(!S||!S.tagName)&&(S={namespaceURI:bt,tagName:"template"});const I=Yt(c.tagName),te=Yt(S.tagName);return lo[c.namespaceURI]?c.namespaceURI===dn?S.namespaceURI===Ve?I==="svg":S.namespaceURI===un?I==="svg"&&(te==="annotation-xml"||ls[te]):!!fn[I]:c.namespaceURI===un?S.namespaceURI===Ve?I==="math":S.namespaceURI===dn?I==="math"&&us[te]:!!fo[I]:c.namespaceURI===Ve?S.namespaceURI===dn&&!us[te]||S.namespaceURI===un&&!ls[te]?!1:!fo[I]&&(Yu[I]||!fn[I]):!!(et==="application/xhtml+xml"&&lo[c.namespaceURI]):!1},tt=function(c){Lt(e.removed,{element:c});try{c.parentNode.removeChild(c)}catch{c.remove()}},ho=function(c,S){try{Lt(e.removed,{attribute:S.getAttributeNode(c),from:S})}catch{Lt(e.removed,{attribute:null,from:S})}if(S.removeAttribute(c),c==="is"&&!i[c])if(we||ue)try{tt(S)}catch{}else try{S.setAttribute(c,"")}catch{}},ds=function(c){let S=null,I=null;if(ve)c="<remove></remove>"+c;else{const me=wc(c,/^[\r\n\t ]+/);I=me&&me[0]}et==="application/xhtml+xml"&&bt===Ve&&(c='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+c+"</body></html>");const te=$?$.createHTML(c):c;if(bt===Ve)try{S=new Y().parseFromString(te,et)}catch{}if(!S||!S.documentElement){S=ae.createDocument(bt,"template",null);try{S.documentElement.innerHTML=co?ye:te}catch{}}const pe=S.body||S.documentElement;return c&&I&&pe.insertBefore(n.createTextNode(I),pe.childNodes[0]||null),bt===Ve?U.call(S,M?"html":"body")[0]:M?S.documentElement:pe},fs=function(c){return g.call(c.ownerDocument||c,c,w.SHOW_ELEMENT|w.SHOW_COMMENT|w.SHOW_TEXT,null)},Zu=function(c){return c instanceof b&&(typeof c.nodeName!="string"||typeof c.textContent!="string"||typeof c.removeChild!="function"||!(c.attributes instanceof C)||typeof c.removeAttribute!="function"||typeof c.setAttribute!="function"||typeof c.namespaceURI!="string"||typeof c.insertBefore!="function"||typeof c.hasChildNodes!="function")},hs=function(c){return typeof f=="function"&&c instanceof f},ze=function(c,S,I){_[c]&&Jt(_[c],te=>{te.call(e,S,I,wt)})},ps=function(c){let S=null;if(ze("beforeSanitizeElements",c,null),Zu(c))return tt(c),!0;const I=ce(c.nodeName);if(ze("uponSanitizeElement",c,{tagName:I,allowedTags:D}),c.hasChildNodes()&&!hs(c.firstElementChild)&&Te(/<[/\w]/g,c.innerHTML)&&Te(/<[/\w]/g,c.textContent))return tt(c),!0;if(!D[I]||A[I]){if(!A[I]&&gs(I)&&(m.tagNameCheck instanceof RegExp&&Te(m.tagNameCheck,I)||m.tagNameCheck instanceof Function&&m.tagNameCheck(I)))return!1;if(io&&!yt[I]){const te=ne(c)||c.parentNode,pe=oe(c)||c.childNodes;if(pe&&te){const me=pe.length;for(let Se=me-1;Se>=0;--Se)te.insertBefore(N(pe[Se],!0),X(c))}}return tt(c),!0}return c instanceof l&&!Xu(c)||(I==="noscript"||I==="noembed"||I==="noframes")&&Te(/<\/no(script|embed|frames)/i,c.innerHTML)?(tt(c),!0):(L&&c.nodeType===3&&(S=c.textContent,Jt([x,j,E],te=>{S=Ot(S,te," ")}),c.textContent!==S&&(Lt(e.removed,{element:c.cloneNode()}),c.textContent=S)),ze("afterSanitizeElements",c,null),!1)},ms=function(c,S,I){if(ns&&(S==="id"||S==="name")&&(I in n||I in Ju))return!1;if(!(k&&!y[S]&&Te(V,S))){if(!(R&&Te(ee,S))){if(!i[S]||y[S]){if(!(gs(c)&&(m.tagNameCheck instanceof RegExp&&Te(m.tagNameCheck,c)||m.tagNameCheck instanceof Function&&m.tagNameCheck(c))&&(m.attributeNameCheck instanceof RegExp&&Te(m.attributeNameCheck,S)||m.attributeNameCheck instanceof Function&&m.attributeNameCheck(S))||S==="is"&&m.allowCustomizedBuiltInElements&&(m.tagNameCheck instanceof RegExp&&Te(m.tagNameCheck,I)||m.tagNameCheck instanceof Function&&m.tagNameCheck(I))))return!1}else if(!ao[S]){if(!Te(be,Ot(I,se,""))){if(!((S==="src"||S==="xlink:href"||S==="href")&&c!=="script"&&Ec(I,"data:")===0&&ss[c])){if(!(v&&!Te(ie,Ot(I,se,"")))){if(I)return!1}}}}}}return!0},gs=function(c){return c.indexOf("-")>0},ys=function(c){ze("beforeSanitizeAttributes",c,null);const{attributes:S}=c;if(!S)return;const I={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:i};let te=S.length;for(;te--;){const pe=S[te],{name:me,namespaceURI:Se,value:nt}=pe,$t=ce(me);let Ce=me==="value"?nt:kc(nt);if(I.attrName=$t,I.attrValue=Ce,I.keepAttr=!0,I.forceKeepAttr=void 0,ze("uponSanitizeAttribute",c,I),Ce=I.attrValue,I.forceKeepAttr||(ho(me,c),!I.keepAttr))continue;if(!O&&Te(/\/>/i,Ce)){ho(me,c);continue}L&&Jt([x,j,E],ws=>{Ce=Ot(Ce,ws," ")});const bs=ce(c.nodeName);if(ms(bs,$t,Ce)){if(os&&($t==="id"||$t==="name")&&(ho(me,c),Ce=Wu+Ce),$&&typeof H=="object"&&typeof H.getAttributeType=="function"&&!Se)switch(H.getAttributeType(bs,$t)){case"TrustedHTML":{Ce=$.createHTML(Ce);break}case"TrustedScriptURL":{Ce=$.createScriptURL(Ce);break}}try{Se?c.setAttributeNS(Se,me,Ce):c.setAttribute(me,Ce),cr(e.removed)}catch{}}}ze("afterSanitizeAttributes",c,null)},Qu=function F(c){let S=null;const I=fs(c);for(ze("beforeSanitizeShadowDOM",c,null);S=I.nextNode();)ze("uponSanitizeShadowNode",S,null),!ps(S)&&(S.content instanceof s&&F(S.content),ys(S));ze("afterSanitizeShadowDOM",c,null)};return e.sanitize=function(F){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null,I=null,te=null,pe=null;if(co=!F,co&&(F="<!-->"),typeof F!="string"&&!hs(F))if(typeof F.toString=="function"){if(F=F.toString(),typeof F!="string")throw It("dirty is not a string, aborting")}else throw It("toString is not a function");if(!e.isSupported)return F;if(K||uo(c),e.removed=[],typeof F=="string"&&(Mt=!1),Mt){if(F.nodeName){const nt=ce(F.nodeName);if(!D[nt]||A[nt])throw It("root node is forbidden and cannot be sanitized in-place")}}else if(F instanceof f)S=ds("<!---->"),I=S.ownerDocument.importNode(F,!0),I.nodeType===1&&I.nodeName==="BODY"||I.nodeName==="HTML"?S=I:S.appendChild(I);else{if(!we&&!L&&!M&&F.indexOf("<")===-1)return $&&$e?$.createHTML(F):F;if(S=ds(F),!S)return we?null:$e?ye:""}S&&ve&&tt(S.firstChild);const me=fs(Mt?F:S);for(;te=me.nextNode();)ps(te)||(te.content instanceof s&&Qu(te.content),ys(te));if(Mt)return F;if(we){if(ue)for(pe=T.call(S.ownerDocument);S.firstChild;)pe.appendChild(S.firstChild);else pe=S;return(i.shadowroot||i.shadowrootmode)&&(pe=P.call(o,pe,!0)),pe}let Se=M?S.outerHTML:S.innerHTML;return M&&D["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&Te(pr,S.ownerDocument.doctype.name)&&(Se="<!DOCTYPE "+S.ownerDocument.doctype.name+`>
65
+ `+Se),L&&Jt([x,j,E],nt=>{Se=Ot(Se,nt," ")}),$&&$e?$.createHTML(Se):Se},e.setConfig=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};uo(F),K=!0},e.clearConfig=function(){wt=null,K=!1},e.isValidAttribute=function(F,c,S){wt||uo({});const I=ce(F),te=ce(c);return ms(I,te,S)},e.addHook=function(F,c){typeof c=="function"&&(_[F]=_[F]||[],Lt(_[F],c))},e.removeHook=function(F){if(_[F])return cr(_[F])},e.removeHooks=function(F){_[F]&&(_[F]=[])},e.removeAllHooks=function(){_={}},e}var yr=gr();class Bc{get IsVisible(){return dt.isVisible()}async ConfirmAsync(e){return new Promise(n=>{dt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:yr.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(o=>{n(o.isConfirmed===!0)})})}async AlertAsync(e){const n=e.icon??"info";let o;return Array.isArray(e.text)?o=`<div style="max-height: 50vh; overflow: auto">
66
66
  ${e.text.join("<br />")}
67
- </div>`:o=e.text,new Promise(s=>{et.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:e.title,html:Bo.sanitize(o)}).then(()=>s(!0))})}}const ba=new ga,Ro=()=>ba,ya=["data-cor"],wa=l.defineComponent({__name:"HeaderAvatar",emits:["logout"],setup(t,{emit:e}){const n=Ro(),o=l.ref("?"),s=e;async function c(){await n.ConfirmAsync({text:"Você deseja sair da conta?",confirmLabel:"sair"})&&s("logout")}function k(){const d=sessionStorage.getItem("name");let F="?";if(!d)return F;const W=d.split(" ").filter(le=>le.length>0).map(le=>le[0].toUpperCase()),J=Math.min(2,W.length);return F=W.slice(0,J).join(""),F.length>0?F:"?"}const L=l.computed(()=>{const d=o.value[0],F=d==="?"?0:(d.charCodeAt(0)-64)%19;return Math.max(F,0)});return l.onMounted(()=>{o.value=k()}),(d,F)=>(l.openBlock(),l.createElementBlock("div",{id:"sf-header-avatar","data-cor":L.value,onClick:c},l.toDisplayString(o.value),9,ya))}}),va={},ka={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"},_a=[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 Aa(t,e){return l.openBlock(),l.createElementBlock("svg",ka,_a)}const Ca=Sn(va,[["render",Aa]]);class Ea{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()}}const yn=(()=>new Ea)(),xa=[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)],Ta=l.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...o)=>l.unref(yn).Toggle&&l.unref(yn).Toggle(...o))},xa))}}),Sa={id:"sf-layout"},La=l.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1),Ia={class:"title"},Pa={class:"sf-layout-nav-header"},Ba=l.createElementVNode("span",null,"Menu",-1),Ra={class:"sf-layout-nav-content"},Oa=l.createElementVNode("section",{id:"sf-layout-page-title"},null,-1),Fa={id:"sf-layout-content"},Ma=l.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=jt(),o=e;function s(){o("logout")}return l.onMounted(()=>{o("mounted")}),(c,k)=>(l.openBlock(),l.createElementBlock("div",Sa,[l.createElementVNode("header",null,[l.createElementVNode("div",{class:l.normalizeClass(["sf-layout-menu-toggler",{invert:l.unref(n).IsVisible}]),onClick:k[0]||(k[0]=L=>l.unref(n).Toggle())},[La,l.createVNode(Ca)],2),l.createElementVNode("div",Ia,[l.renderSlot(c.$slots,"title")]),l.renderSlot(c.$slots,"action"),l.createVNode(Ta),l.createVNode(wa,{onLogout:s})]),l.createElementVNode("nav",{class:l.normalizeClass({visible:l.unref(n).IsVisible})},[l.createElementVNode("div",Pa,[Ba,l.createVNode(ut,{icone:"close",button:"",onClick:k[1]||(k[1]=L=>l.unref(n).Close())})]),l.createElementVNode("div",Ra,[l.renderSlot(c.$slots,"menu")])],2),l.createElementVNode("main",{class:l.normalizeClass({"menu-visible":l.unref(n).IsVisible})},[Oa,l.createElementVNode("section",Fa,[l.renderSlot(c.$slots,"content")])],2)]))}}),Na=["href","data-active","onClick"],Da={class:"sf-navmenulink-text"},Ua=l.defineComponent({__name:"NavMenuLink",props:{href:{},text:{},icon:{},exact:{type:Boolean}},setup(t){const e=t,n=jt();function o(s,c){s.preventDefault();const L=s.target.closest(".sf-layout-nav-content");c(),L&&L.clientWidth+10>document.body.clientWidth&&n.Close()}return(s,c)=>{const k=l.resolveComponent("router-link");return l.openBlock(),l.createBlock(k,{to:e.href,custom:""},{default:l.withCtx(({href:L,navigate:d,isExactActive:F,isActive:W})=>[l.createElementVNode("a",{class:"sf-navmenulink",href:L,"data-active":e.exact?F:W,onClick:J=>o(J,d)},[e.icon?(l.openBlock(),l.createBlock(ut,{key:0,icone:e.icon,"button-props":{tabindex:-1}},null,8,["icone"])):l.createCommentVNode("",!0),l.createElementVNode("span",Da,l.toDisplayString(e.text),1)],8,Na)]),_:1},8,["to"])}}}),$a=l.defineComponent({__name:"ScrollToTop",setup(t){const e=l.ref(!1),n=`--${+new Date}`;let o=null;function s(){o==null||o.scrollTo(0,0)}return l.onMounted(()=>{var c;o=((c=document.getElementById(n))==null?void 0:c.parentElement)??null,o&&o.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(c,k)=>(l.openBlock(),l.createElementBlock("button",{id:n,class:l.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:s},null,2))}}),Ha=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 Ke("sf-content").AddClass(e.class,!!e.class).Build()}function o(){return new Ke("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function s(){return new Ke("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function c(){return new Ke("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(k,L)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n()),style:l.normalizeStyle(e.style)},[l.createElementVNode("div",{class:l.normalizeClass(s())},[l.renderSlot(k.$slots,"header")],2),l.createElementVNode("div",{class:l.normalizeClass(o())},[l.renderSlot(k.$slots,"default"),l.createVNode($a)],2),l.createElementVNode("div",{class:l.normalizeClass(c())},[l.renderSlot(k.$slots,"footer")],2)],6))}}),Va={class:"sf-tab-navigation"},ja=[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)],za=["data-active"],Wa=["href","onClick"],qa=[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)],Ka=l.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=l.ref(null),o=new ResizeObserver(d=>{L()}),s=l.ref(!1),c=l.ref(!1);function k(d=!1){const F=n.value.clientWidth;n.value.scrollLeft+=d?-F:F}function L(){const d=n.value.scrollWidth-n.value.clientWidth;s.value=n.value.scrollLeft>10,c.value=n.value.scrollLeft<d-10}return l.onMounted(()=>{n.value.addEventListener("scroll",L),o.observe(n.value)}),l.onBeforeUnmount(()=>{var d;try{(d=n.value)==null||d.removeEventListener("scroll",L),o.unobserve(n.value),o.disconnect()}catch{}}),(d,F)=>{const W=l.resolveComponent("RouterLink");return l.openBlock(),l.createElementBlock("div",Va,[l.createElementVNode("div",{class:l.normalizeClass(["left-arrow",{active:s.value}]),onClick:F[0]||(F[0]=J=>k(!0))},ja,2),l.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tabs,J=>(l.openBlock(),l.createBlock(W,{to:J.route,custom:!0},{default:l.withCtx(({navigate:le,isActive:z})=>[l.createElementVNode("li",{"data-active":z},[l.renderSlot(d.$slots,"item",{item:J,navigate:le,isActive:z},()=>[l.createElementVNode("a",{href:J.route,class:l.normalizeClass({active:z}),onClick:le},l.toDisplayString(J.text),11,Wa)])],8,za)]),_:2},1032,["to"]))),256))],512),l.createElementVNode("div",{class:l.normalizeClass(["right-arrow",{active:c.value}]),onClick:F[1]||(F[1]=J=>k())},qa,2)])}}}),Ga=["id","name","disabled","data-color","form","type"],Ya={class:"sf-button-label"},Ja=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:{}},setup(t){const e=t;function n(){return new Ke(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(o,s)=>(l.openBlock(),l.createElementBlock("button",{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(ut,{key:0,icone:e.icon,loading:e.loading,size:e.size,"button-props":{tabindex:-1}},null,8,["icone","loading","size"])):e.loading?(l.openBlock(),l.createBlock(ut,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):l.createCommentVNode("",!0),l.createElementVNode("span",Ya,[l.renderSlot(o.$slots,"default")])],14,Ga))}});var Xa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Za(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Qa(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){return this instanceof o?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var s=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:function(){return t[o]}})}),n}var Ut={};Ut.byteLength=nl,Ut.toByteArray=rl,Ut.fromByteArray=al;for(var Ie=[],xe=[],el=typeof Uint8Array<"u"?Uint8Array:Array,wn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nt=0,tl=wn.length;nt<tl;++nt)Ie[nt]=wn[nt],xe[wn.charCodeAt(nt)]=nt;xe["-".charCodeAt(0)]=62,xe["_".charCodeAt(0)]=63;function Oo(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var o=n===e?0:4-n%4;return[n,o]}function nl(t){var e=Oo(t),n=e[0],o=e[1];return(n+o)*3/4-o}function ol(t,e,n){return(e+n)*3/4-n}function rl(t){var e,n=Oo(t),o=n[0],s=n[1],c=new el(ol(t,o,s)),k=0,L=s>0?o-4:o,d;for(d=0;d<L;d+=4)e=xe[t.charCodeAt(d)]<<18|xe[t.charCodeAt(d+1)]<<12|xe[t.charCodeAt(d+2)]<<6|xe[t.charCodeAt(d+3)],c[k++]=e>>16&255,c[k++]=e>>8&255,c[k++]=e&255;return s===2&&(e=xe[t.charCodeAt(d)]<<2|xe[t.charCodeAt(d+1)]>>4,c[k++]=e&255),s===1&&(e=xe[t.charCodeAt(d)]<<10|xe[t.charCodeAt(d+1)]<<4|xe[t.charCodeAt(d+2)]>>2,c[k++]=e>>8&255,c[k++]=e&255),c}function il(t){return Ie[t>>18&63]+Ie[t>>12&63]+Ie[t>>6&63]+Ie[t&63]}function sl(t,e,n){for(var o,s=[],c=e;c<n;c+=3)o=(t[c]<<16&16711680)+(t[c+1]<<8&65280)+(t[c+2]&255),s.push(il(o));return s.join("")}function al(t){for(var e,n=t.length,o=n%3,s=[],c=16383,k=0,L=n-o;k<L;k+=c)s.push(sl(t,k,k+c>L?L:k+c));return o===1?(e=t[n-1],s.push(Ie[e>>2]+Ie[e<<4&63]+"==")):o===2&&(e=(t[n-2]<<8)+t[n-1],s.push(Ie[e>>10]+Ie[e>>4&63]+Ie[e<<2&63]+"=")),s.join("")}var Fo={exports:{}};const Mo=Qa(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));/**
67
+ </div>`:o=e.text,new Promise(r=>{dt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:e.title,html:yr.sanitize(o)}).then(()=>r(!0))})}}const Fc=new Bc,br=()=>Fc,Nc=["data-cor"],Uc=d.defineComponent({__name:"HeaderAvatar",emits:["logout"],setup(t,{emit:e}){const n=br(),o=d.ref("?"),r=e;async function s(){await n.ConfirmAsync({text:"Você deseja sair da conta?",confirmLabel:"sair"})&&r("logout")}function a(){const l=sessionStorage.getItem("name");let w="?";if(!l)return w;const C=l.split(" ").filter(Y=>Y.length>0).map(Y=>Y[0].toUpperCase()),b=Math.min(2,C.length);return w=C.slice(0,b).join(""),w.length>0?w:"?"}const f=d.computed(()=>{const l=o.value[0],w=l==="?"?0:(l.charCodeAt(0)-64)%19;return Math.max(w,0)});return d.onMounted(()=>{o.value=a()}),(l,w)=>(d.openBlock(),d.createElementBlock("div",{id:"sf-header-avatar","data-cor":f.value,onClick:s},d.toDisplayString(o.value),9,Nc))}}),Dc={},Mc={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"},$c=[d.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 Hc(t,e){return d.openBlock(),d.createElementBlock("svg",Mc,$c)}const jc=po(Dc,[["render",Hc]]);class Vc{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()}}const Hn=(()=>new Vc)(),zc=[d.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)],Wc=d.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(d.openBlock(),d.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...o)=>d.unref(Hn).Toggle&&d.unref(Hn).Toggle(...o))},zc))}}),qc={id:"sf-layout"},Kc=d.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1),Gc={class:"title"},Jc={class:"sf-layout-nav-header"},Yc=d.createElementVNode("span",null,"Menu",-1),Xc={class:"sf-layout-nav-content"},Zc=d.createElementVNode("section",{id:"sf-layout-page-title"},null,-1),Qc={id:"sf-layout-content"},el=d.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=hn(),o=e;function r(){o("logout")}return d.onMounted(()=>{o("mounted")}),(s,a)=>(d.openBlock(),d.createElementBlock("div",qc,[d.createElementVNode("header",null,[d.createElementVNode("div",{class:d.normalizeClass(["sf-layout-menu-toggler",{invert:d.unref(n).IsVisible}]),onClick:a[0]||(a[0]=f=>d.unref(n).Toggle())},[Kc,d.createVNode(jc)],2),d.createElementVNode("div",Gc,[d.renderSlot(s.$slots,"title")]),d.renderSlot(s.$slots,"action"),d.createVNode(Wc),d.createVNode(Uc,{onLogout:r})]),d.createElementVNode("nav",{class:d.normalizeClass({visible:d.unref(n).IsVisible})},[d.createElementVNode("div",Jc,[Yc,d.createVNode(Et,{icone:"close",button:"",onClick:a[1]||(a[1]=f=>d.unref(n).Close())})]),d.createElementVNode("div",Xc,[d.renderSlot(s.$slots,"menu")])],2),d.createElementVNode("main",{class:d.normalizeClass({"menu-visible":d.unref(n).IsVisible})},[Zc,d.createElementVNode("section",Qc,[d.renderSlot(s.$slots,"content")])],2)]))}}),tl=["href","data-active","onClick"],nl={class:"sf-navmenulink-text"},ol=d.defineComponent({__name:"NavMenuLink",props:{href:{},text:{},icon:{},exact:{type:Boolean}},setup(t){const e=t,n=hn();function o(r,s){r.preventDefault();const f=r.target.closest(".sf-layout-nav-content");s(),f&&f.clientWidth+10>document.body.clientWidth&&n.Close()}return(r,s)=>{const a=d.resolveComponent("router-link");return d.openBlock(),d.createBlock(a,{to:e.href,custom:""},{default:d.withCtx(({href:f,navigate:l,isExactActive:w,isActive:C})=>[d.createElementVNode("a",{class:"sf-navmenulink",href:f,"data-active":e.exact?w:C,onClick:b=>o(b,l)},[e.icon?(d.openBlock(),d.createBlock(Et,{key:0,icone:e.icon,"button-props":{tabindex:-1}},null,8,["icone"])):d.createCommentVNode("",!0),d.createElementVNode("span",nl,d.toDisplayString(e.text),1)],8,tl)]),_:1},8,["to"])}}}),rl=d.defineComponent({__name:"ScrollToTop",setup(t){const e=d.ref(!1),n=`--${+new Date}`;let o=null;function r(){o==null||o.scrollTo(0,0)}return d.onMounted(()=>{var s;o=((s=document.getElementById(n))==null?void 0:s.parentElement)??null,o&&o.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(s,a)=>(d.openBlock(),d.createElementBlock("button",{id:n,class:d.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:r},null,2))}}),sl=d.defineComponent({__name:"Content",props:{class:{},style:{},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new rt("sf-content").AddClass(e.class,!!e.class).Build()}function o(){return new rt("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function r(){return new rt("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function s(){return new rt("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(a,f)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(n()),style:d.normalizeStyle(e.style)},[d.createElementVNode("div",{class:d.normalizeClass(r())},[d.renderSlot(a.$slots,"header")],2),d.createElementVNode("div",{class:d.normalizeClass(o())},[d.renderSlot(a.$slots,"default"),d.createVNode(rl)],2),d.createElementVNode("div",{class:d.normalizeClass(s())},[d.renderSlot(a.$slots,"footer")],2)],6))}}),il={class:"sf-tab-navigation"},al=[d.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"},[d.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)],cl=["data-active"],ll=["href","onClick"],ul=[d.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"},[d.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)],dl=d.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=d.ref(null),o=new ResizeObserver(l=>{f()}),r=d.ref(!1),s=d.ref(!1);function a(l=!1){const w=n.value.clientWidth;n.value.scrollLeft+=l?-w:w}function f(){const l=n.value.scrollWidth-n.value.clientWidth;r.value=n.value.scrollLeft>10,s.value=n.value.scrollLeft<l-10}return d.onMounted(()=>{n.value.addEventListener("scroll",f),o.observe(n.value)}),d.onBeforeUnmount(()=>{var l;try{(l=n.value)==null||l.removeEventListener("scroll",f),o.unobserve(n.value),o.disconnect()}catch{}}),(l,w)=>{const C=d.resolveComponent("RouterLink");return d.openBlock(),d.createElementBlock("div",il,[d.createElementVNode("div",{class:d.normalizeClass(["left-arrow",{active:r.value}]),onClick:w[0]||(w[0]=b=>a(!0))},al,2),d.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(e.tabs,b=>(d.openBlock(),d.createBlock(C,{to:b.route,custom:!0},{default:d.withCtx(({navigate:Y,isActive:H})=>[d.createElementVNode("li",{"data-active":H},[d.renderSlot(l.$slots,"item",{item:b,navigate:Y,isActive:H},()=>[d.createElementVNode("a",{href:b.route,class:d.normalizeClass({active:H}),onClick:Y},d.toDisplayString(b.text),11,ll)])],8,cl)]),_:2},1032,["to"]))),256))],512),d.createElementVNode("div",{class:d.normalizeClass(["right-arrow",{active:s.value}]),onClick:w[1]||(w[1]=b=>a())},ul,2)])}}}),fl=["id","name","disabled","data-color","form","type"],hl={class:"sf-button-label"},pl=d.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:{}},setup(t){const e=t;function n(){return new rt(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(o,r)=>(d.openBlock(),d.createElementBlock("button",{id:e.id,name:e.name,class:d.normalizeClass(n()),style:d.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(d.openBlock(),d.createBlock(Et,{key:0,icone:e.icon,loading:e.loading,size:e.size,"button-props":{tabindex:-1}},null,8,["icone","loading","size"])):e.loading?(d.openBlock(),d.createBlock(Et,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):d.createCommentVNode("",!0),d.createElementVNode("span",hl,[d.renderSlot(o.$slots,"default")])],14,fl))}});var ml=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function yl(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){return this instanceof o?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return t[o]}})}),n}var Qt={};Qt.byteLength=El,Qt.toByteArray=Al,Qt.fromByteArray=Cl;for(var Ue=[],Oe=[],bl=typeof Uint8Array<"u"?Uint8Array:Array,jn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ht=0,wl=jn.length;ht<wl;++ht)Ue[ht]=jn[ht],Oe[jn.charCodeAt(ht)]=ht;Oe["-".charCodeAt(0)]=62,Oe["_".charCodeAt(0)]=63;function wr(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var o=n===e?0:4-n%4;return[n,o]}function El(t){var e=wr(t),n=e[0],o=e[1];return(n+o)*3/4-o}function kl(t,e,n){return(e+n)*3/4-n}function Al(t){var e,n=wr(t),o=n[0],r=n[1],s=new bl(kl(t,o,r)),a=0,f=r>0?o-4:o,l;for(l=0;l<f;l+=4)e=Oe[t.charCodeAt(l)]<<18|Oe[t.charCodeAt(l+1)]<<12|Oe[t.charCodeAt(l+2)]<<6|Oe[t.charCodeAt(l+3)],s[a++]=e>>16&255,s[a++]=e>>8&255,s[a++]=e&255;return r===2&&(e=Oe[t.charCodeAt(l)]<<2|Oe[t.charCodeAt(l+1)]>>4,s[a++]=e&255),r===1&&(e=Oe[t.charCodeAt(l)]<<10|Oe[t.charCodeAt(l+1)]<<4|Oe[t.charCodeAt(l+2)]>>2,s[a++]=e>>8&255,s[a++]=e&255),s}function vl(t){return Ue[t>>18&63]+Ue[t>>12&63]+Ue[t>>6&63]+Ue[t&63]}function Sl(t,e,n){for(var o,r=[],s=e;s<n;s+=3)o=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(t[s+2]&255),r.push(vl(o));return r.join("")}function Cl(t){for(var e,n=t.length,o=n%3,r=[],s=16383,a=0,f=n-o;a<f;a+=s)r.push(Sl(t,a,a+s>f?f:a+s));return o===1?(e=t[n-1],r.push(Ue[e>>2]+Ue[e<<4&63]+"==")):o===2&&(e=(t[n-2]<<8)+t[n-1],r.push(Ue[e>>10]+Ue[e>>4&63]+Ue[e<<2&63]+"=")),r.join("")}var Er={exports:{}};const kr=yl(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));/**
68
68
  * [js-sha256]{@link https://github.com/emn178/js-sha256}
69
69
  *
70
70
  * @version 0.10.1
71
71
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
72
72
  * @copyright Chen, Yi-Cyuan 2014-2023
73
73
  * @license MIT
74
- */(function(t){(function(){var e="input is invalid type",n=typeof window=="object",o=n?window:{};o.JS_SHA256_NO_WINDOW&&(n=!1);var s=!n&&typeof self=="object",c=!o.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;c?o=Xa:s&&(o=self);var k=!o.JS_SHA256_NO_COMMON_JS&&!0&&t.exports,L=!o.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",d="0123456789abcdef".split(""),F=[-2147483648,8388608,32768,128],W=[24,16,8,0],J=[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],le=["hex","array","digest","arrayBuffer"],z=[];(o.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(h){return Object.prototype.toString.call(h)==="[object Array]"}),L&&(o.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(h){return typeof h=="object"&&h.buffer&&h.buffer.constructor===ArrayBuffer});var Re=function(h,A){return function(P){return new $(A,!0).update(P)[h]()}},ot=function(h){var A=Re("hex",h);c&&(A=ke(A,h)),A.create=function(){return new $(h)},A.update=function(_){return A.create().update(_)};for(var P=0;P<le.length;++P){var C=le[P];A[C]=Re(C,h)}return A},ke=function(h,A){var P=Mo,C=Mo.Buffer,_=A?"sha224":"sha256",v;C.from&&!o.JS_SHA256_NO_BUFFER_FROM?v=C.from:v=function(m){return new C(m)};var O=function(m){if(typeof m=="string")return P.createHash(_).update(m,"utf8").digest("hex");if(m==null)throw new Error(e);return m.constructor===ArrayBuffer&&(m=new Uint8Array(m)),Array.isArray(m)||ArrayBuffer.isView(m)||m.constructor===C?P.createHash(_).update(v(m)).digest("hex"):h(m)};return O},rt=function(h,A){return function(P,C){return new _e(P,A,!0).update(C)[h]()}},he=function(h){var A=rt("hex",h);A.create=function(_){return new _e(_,h)},A.update=function(_,v){return A.create(_).update(v)};for(var P=0;P<le.length;++P){var C=le[P];A[C]=rt(C,h)}return A};function $(h,A){A?(z[0]=z[16]=z[1]=z[2]=z[3]=z[4]=z[5]=z[6]=z[7]=z[8]=z[9]=z[10]=z[11]=z[12]=z[13]=z[14]=z[15]=0,this.blocks=z):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=h}$.prototype.update=function(h){if(!this.finalized){var A,P=typeof h;if(P!=="string"){if(P==="object"){if(h===null)throw new Error(e);if(L&&h.constructor===ArrayBuffer)h=new Uint8Array(h);else if(!Array.isArray(h)&&(!L||!ArrayBuffer.isView(h)))throw new Error(e)}else throw new Error(e);A=!0}for(var C,_=0,v,O=h.length,m=this.blocks;_<O;){if(this.hashed&&(this.hashed=!1,m[0]=this.block,m[16]=m[1]=m[2]=m[3]=m[4]=m[5]=m[6]=m[7]=m[8]=m[9]=m[10]=m[11]=m[12]=m[13]=m[14]=m[15]=0),A)for(v=this.start;_<O&&v<64;++_)m[v>>2]|=h[_]<<W[v++&3];else for(v=this.start;_<O&&v<64;++_)C=h.charCodeAt(_),C<128?m[v>>2]|=C<<W[v++&3]:C<2048?(m[v>>2]|=(192|C>>6)<<W[v++&3],m[v>>2]|=(128|C&63)<<W[v++&3]):C<55296||C>=57344?(m[v>>2]|=(224|C>>12)<<W[v++&3],m[v>>2]|=(128|C>>6&63)<<W[v++&3],m[v>>2]|=(128|C&63)<<W[v++&3]):(C=65536+((C&1023)<<10|h.charCodeAt(++_)&1023),m[v>>2]|=(240|C>>18)<<W[v++&3],m[v>>2]|=(128|C>>12&63)<<W[v++&3],m[v>>2]|=(128|C>>6&63)<<W[v++&3],m[v>>2]|=(128|C&63)<<W[v++&3]);this.lastByteIndex=v,this.bytes+=v-this.start,v>=64?(this.block=m[16],this.start=v-64,this.hash(),this.hashed=!0):this.start=v}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},$.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var h=this.blocks,A=this.lastByteIndex;h[16]=this.block,h[A>>2]|=F[A&3],this.block=h[16],A>=56&&(this.hashed||this.hash(),h[0]=this.block,h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0),h[14]=this.hBytes<<3|this.bytes>>>29,h[15]=this.bytes<<3,this.hash()}},$.prototype.hash=function(){var h=this.h0,A=this.h1,P=this.h2,C=this.h3,_=this.h4,v=this.h5,O=this.h6,m=this.h7,M=this.blocks,q,X,Y,ce,B,pe,r,a,f,b,p;for(q=16;q<64;++q)B=M[q-15],X=(B>>>7|B<<25)^(B>>>18|B<<14)^B>>>3,B=M[q-2],Y=(B>>>17|B<<15)^(B>>>19|B<<13)^B>>>10,M[q]=M[q-16]+X+M[q-7]+Y<<0;for(p=A&P,q=0;q<64;q+=4)this.first?(this.is224?(a=300032,B=M[0]-1413257819,m=B-150054599<<0,C=B+24177077<<0):(a=704751109,B=M[0]-210244248,m=B-1521486534<<0,C=B+143694565<<0),this.first=!1):(X=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),Y=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),a=h&A,ce=a^h&P^p,r=_&v^~_&O,B=m+Y+r+J[q]+M[q],pe=X+ce,m=C+B<<0,C=B+pe<<0),X=(C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10),Y=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),f=C&h,ce=f^C&A^a,r=m&_^~m&v,B=O+Y+r+J[q+1]+M[q+1],pe=X+ce,O=P+B<<0,P=B+pe<<0,X=(P>>>2|P<<30)^(P>>>13|P<<19)^(P>>>22|P<<10),Y=(O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7),b=P&C,ce=b^P&h^f,r=O&m^~O&_,B=v+Y+r+J[q+2]+M[q+2],pe=X+ce,v=A+B<<0,A=B+pe<<0,X=(A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10),Y=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),p=A&P,ce=p^A&C^b,r=v&O^~v&m,B=_+Y+r+J[q+3]+M[q+3],pe=X+ce,_=h+B<<0,h=B+pe<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+h<<0,this.h1=this.h1+A<<0,this.h2=this.h2+P<<0,this.h3=this.h3+C<<0,this.h4=this.h4+_<<0,this.h5=this.h5+v<<0,this.h6=this.h6+O<<0,this.h7=this.h7+m<<0},$.prototype.hex=function(){this.finalize();var h=this.h0,A=this.h1,P=this.h2,C=this.h3,_=this.h4,v=this.h5,O=this.h6,m=this.h7,M=d[h>>28&15]+d[h>>24&15]+d[h>>20&15]+d[h>>16&15]+d[h>>12&15]+d[h>>8&15]+d[h>>4&15]+d[h&15]+d[A>>28&15]+d[A>>24&15]+d[A>>20&15]+d[A>>16&15]+d[A>>12&15]+d[A>>8&15]+d[A>>4&15]+d[A&15]+d[P>>28&15]+d[P>>24&15]+d[P>>20&15]+d[P>>16&15]+d[P>>12&15]+d[P>>8&15]+d[P>>4&15]+d[P&15]+d[C>>28&15]+d[C>>24&15]+d[C>>20&15]+d[C>>16&15]+d[C>>12&15]+d[C>>8&15]+d[C>>4&15]+d[C&15]+d[_>>28&15]+d[_>>24&15]+d[_>>20&15]+d[_>>16&15]+d[_>>12&15]+d[_>>8&15]+d[_>>4&15]+d[_&15]+d[v>>28&15]+d[v>>24&15]+d[v>>20&15]+d[v>>16&15]+d[v>>12&15]+d[v>>8&15]+d[v>>4&15]+d[v&15]+d[O>>28&15]+d[O>>24&15]+d[O>>20&15]+d[O>>16&15]+d[O>>12&15]+d[O>>8&15]+d[O>>4&15]+d[O&15];return this.is224||(M+=d[m>>28&15]+d[m>>24&15]+d[m>>20&15]+d[m>>16&15]+d[m>>12&15]+d[m>>8&15]+d[m>>4&15]+d[m&15]),M},$.prototype.toString=$.prototype.hex,$.prototype.digest=function(){this.finalize();var h=this.h0,A=this.h1,P=this.h2,C=this.h3,_=this.h4,v=this.h5,O=this.h6,m=this.h7,M=[h>>24&255,h>>16&255,h>>8&255,h&255,A>>24&255,A>>16&255,A>>8&255,A&255,P>>24&255,P>>16&255,P>>8&255,P&255,C>>24&255,C>>16&255,C>>8&255,C&255,_>>24&255,_>>16&255,_>>8&255,_&255,v>>24&255,v>>16&255,v>>8&255,v&255,O>>24&255,O>>16&255,O>>8&255,O&255];return this.is224||M.push(m>>24&255,m>>16&255,m>>8&255,m&255),M},$.prototype.array=$.prototype.digest,$.prototype.arrayBuffer=function(){this.finalize();var h=new ArrayBuffer(this.is224?28:32),A=new DataView(h);return A.setUint32(0,this.h0),A.setUint32(4,this.h1),A.setUint32(8,this.h2),A.setUint32(12,this.h3),A.setUint32(16,this.h4),A.setUint32(20,this.h5),A.setUint32(24,this.h6),this.is224||A.setUint32(28,this.h7),h};function _e(h,A,P){var C,_=typeof h;if(_==="string"){var v=[],O=h.length,m=0,M;for(C=0;C<O;++C)M=h.charCodeAt(C),M<128?v[m++]=M:M<2048?(v[m++]=192|M>>6,v[m++]=128|M&63):M<55296||M>=57344?(v[m++]=224|M>>12,v[m++]=128|M>>6&63,v[m++]=128|M&63):(M=65536+((M&1023)<<10|h.charCodeAt(++C)&1023),v[m++]=240|M>>18,v[m++]=128|M>>12&63,v[m++]=128|M>>6&63,v[m++]=128|M&63);h=v}else if(_==="object"){if(h===null)throw new Error(e);if(L&&h.constructor===ArrayBuffer)h=new Uint8Array(h);else if(!Array.isArray(h)&&(!L||!ArrayBuffer.isView(h)))throw new Error(e)}else throw new Error(e);h.length>64&&(h=new $(A,!0).update(h).array());var q=[],X=[];for(C=0;C<64;++C){var Y=h[C]||0;q[C]=92^Y,X[C]=54^Y}$.call(this,A,P),this.update(X),this.oKeyPad=q,this.inner=!0,this.sharedMemory=P}_e.prototype=new $,_e.prototype.finalize=function(){if($.prototype.finalize.call(this),this.inner){this.inner=!1;var h=this.array();$.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(h),$.prototype.finalize.call(this)}};var Z=ot();Z.sha256=Z,Z.sha224=ot(!0),Z.sha256.hmac=he(),Z.sha224.hmac=he(!0),k?t.exports=Z:(o.sha256=Z.sha256,o.sha224=Z.sha224)})()})(Fo);var ll=Fo.exports;const cl=Za(ll);class Ct extends Error{}Ct.prototype.name="InvalidTokenError";function ul(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let o=n.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function dl(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 ul(e)}catch{return atob(e)}}function vn(t,e){if(typeof t!="string")throw new Ct("Invalid token specified: must be a string");e||(e={});const n=e.header===!0?0:1,o=t.split(".")[n];if(typeof o!="string")throw new Ct(`Invalid token specified: missing part #${n+1}`);let s;try{s=dl(o)}catch(c){throw new Ct(`Invalid token specified: invalid base64 for part #${n+1} (${c.message})`)}try{return JSON.parse(s)}catch(c){throw new Ct(`Invalid token specified: invalid json for part #${n+1} (${c.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function No(t){if(!(this instanceof No))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var e=this,n,o=[],s,c={enable:!0,callbackList:[],interval:5},k=document.getElementsByTagName("script"),L=0;L<k.length;L++)(k[L].src.indexOf("keycloak.js")!==-1||k[L].src.indexOf("keycloak.min.js")!==-1)&&k[L].src.indexOf("version=")!==-1&&(e.iframeVersion=k[L].src.substring(k[L].src.indexOf("version=")+8).split("&")[0]);var d=!0,F=pe(console.info),W=pe(console.warn);e.init=function(r){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,s=B();var a=["default","cordova","cordova-native"];if(r&&a.indexOf(r.adapter)>-1?n=X(r.adapter):r&&typeof r.adapter=="object"?n=r.adapter:window.Cordova||window.cordova?n=X("cordova"):n=X(),r){if(typeof r.useNonce<"u"&&(d=r.useNonce),typeof r.checkLoginIframe<"u"&&(c.enable=r.checkLoginIframe),r.checkLoginIframeInterval&&(c.interval=r.checkLoginIframeInterval),r.onLoad==="login-required"&&(e.loginRequired=!0),r.responseMode)if(r.responseMode==="query"||r.responseMode==="fragment")e.responseMode=r.responseMode;else throw"Invalid value for responseMode";if(r.flow){switch(r.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=r.flow}if(r.timeSkew!=null&&(e.timeSkew=r.timeSkew),r.redirectUri&&(e.redirectUri=r.redirectUri),r.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=r.silentCheckSsoRedirectUri),typeof r.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=r.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,r.pkceMethod){if(r.pkceMethod!=="S256")throw"Invalid value for pkceMethod";e.pkceMethod=r.pkceMethod}typeof r.enableLogging=="boolean"?e.enableLogging=r.enableLogging:e.enableLogging=!1,typeof r.scope=="string"&&(e.scope=r.scope),typeof r.acrValues=="string"&&(e.acrValues=r.acrValues),typeof r.messageReceiveTimeout=="number"&&r.messageReceiveTimeout>0?e.messageReceiveTimeout=r.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var f=_(),b=_();b.promise.then(function(){e.onReady&&e.onReady(e.authenticated),f.setSuccess(e.authenticated)}).catch(function(T){f.setError(T)});var p=$();function E(){var T=function(H){H||(R.prompt="none"),r&&r.locale&&(R.locale=r.locale),e.login(R).then(function(){b.setSuccess()}).catch(function(me){b.setError(me)})},x=function(){var H=document.createElement("iframe"),me=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});H.setAttribute("src",me),H.setAttribute("sandbox","allow-scripts allow-same-origin"),H.setAttribute("title","keycloak-silent-check-sso"),H.style.display="none",document.body.appendChild(H);var ue=function(te){if(!(te.origin!==window.location.origin||H.contentWindow!==te.source)){var Pe=A(te.data);he(Pe,b),document.body.removeChild(H),window.removeEventListener("message",ue)}};window.addEventListener("message",ue)},R={};switch(r.onLoad){case"check-sso":c.enable?O().then(function(){M().then(function(H){H?b.setSuccess():e.silentCheckSsoRedirectUri?x():T(!1)}).catch(function(H){b.setError(H)})}):e.silentCheckSsoRedirectUri?x():T(!1);break;case"login-required":T(!0);break;default:throw"Invalid value for onLoad"}}function g(){var T=A(window.location.href);if(T&&window.history.replaceState(window.history.state,null,T.newUrl),T&&T.valid)return O().then(function(){he(T,b)}).catch(function(x){b.setError(x)});r?r.token&&r.refreshToken?(Z(r.token,r.refreshToken,r.idToken),c.enable?O().then(function(){M().then(function(x){x?(e.onAuthSuccess&&e.onAuthSuccess(),b.setSuccess(),m()):b.setSuccess()}).catch(function(x){b.setError(x)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),b.setSuccess()}).catch(function(x){e.onAuthError&&e.onAuthError(),r.onLoad?E():b.setError(x)})):r.onLoad?E():b.setSuccess():b.setSuccess()}function y(){var T=_(),x=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",x),T.setSuccess())};return document.addEventListener("readystatechange",x),x(),T.promise}return p.then(function(){y().then(q).then(g).catch(function(T){f.setError(T)})}),p.catch(function(T){f.setError(T)}),f.promise},e.login=function(r){return n.login(r)};function J(r){var a=null,f=window.crypto||window.msCrypto;if(f&&f.getRandomValues&&window.Uint8Array)return a=new Uint8Array(r),f.getRandomValues(a),a;a=new Array(r);for(var b=0;b<a.length;b++)a[b]=Math.floor(256*Math.random());return a}function le(r){return z(r,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function z(r,a){for(var f=J(r),b=new Array(r),p=0;p<r;p++)b[p]=a.charCodeAt(f[p]%a.length);return String.fromCharCode.apply(null,b)}function Re(r,a){switch(r){case"S256":var f=new Uint8Array(cl.arrayBuffer(a)),b=Ut.fromByteArray(f).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"");return b;default:throw"Invalid value for pkceMethod"}}function ot(r){var a={id_token:{acr:r}};return JSON.stringify(a)}e.createLoginUrl=function(r){var a=h(),f=h(),b=n.redirectUri(r),p={state:a,nonce:f,redirectUri:encodeURIComponent(b)};r&&r.prompt&&(p.prompt=r.prompt);var E;r&&r.action=="register"?E=e.endpoints.register():E=e.endpoints.authorize();var g=r&&r.scope||e.scope;g?g.indexOf("openid")===-1&&(g="openid "+g):g="openid";var y=E+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(b)+"&state="+encodeURIComponent(a)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(g);if(d&&(y=y+"&nonce="+encodeURIComponent(f)),r&&r.prompt&&(y+="&prompt="+encodeURIComponent(r.prompt)),r&&r.maxAge&&(y+="&max_age="+encodeURIComponent(r.maxAge)),r&&r.loginHint&&(y+="&login_hint="+encodeURIComponent(r.loginHint)),r&&r.idpHint&&(y+="&kc_idp_hint="+encodeURIComponent(r.idpHint)),r&&r.action&&r.action!="register"&&(y+="&kc_action="+encodeURIComponent(r.action)),r&&r.locale&&(y+="&ui_locales="+encodeURIComponent(r.locale)),r&&r.acr){var T=ot(r.acr);y+="&claims="+encodeURIComponent(T)}if((r&&r.acrValues||e.acrValues)&&(y+="&acr_values="+encodeURIComponent(r.acrValues||e.acrValues)),e.pkceMethod){var x=le(96);p.pkceCodeVerifier=x;var R=Re(e.pkceMethod,x);y+="&code_challenge="+R,y+="&code_challenge_method="+e.pkceMethod}return s.add(p),y},e.logout=function(r){return n.logout(r)},e.createLogoutUrl=function(r){var a=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(r,!1));return e.idToken&&(a+="&id_token_hint="+encodeURIComponent(e.idToken)),a},e.register=function(r){return n.register(r)},e.createRegisterUrl=function(r){return r||(r={}),r.action="register",e.createLoginUrl(r)},e.createAccountUrl=function(r){var a=ke(),f=void 0;return typeof a<"u"&&(f=a+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(r))),f},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(r){var a=e.realmAccess;return!!a&&a.roles.indexOf(r)>=0},e.hasResourceRole=function(r,a){if(!e.resourceAccess)return!1;var f=e.resourceAccess[a||e.clientId];return!!f&&f.roles.indexOf(r)>=0},e.loadUserProfile=function(){var r=ke()+"/account",a=new XMLHttpRequest;a.open("GET",r,!0),a.setRequestHeader("Accept","application/json"),a.setRequestHeader("Authorization","bearer "+e.token);var f=_();return a.onreadystatechange=function(){a.readyState==4&&(a.status==200?(e.profile=JSON.parse(a.responseText),f.setSuccess(e.profile)):f.setError())},a.send(),f.promise},e.loadUserInfo=function(){var r=e.endpoints.userinfo(),a=new XMLHttpRequest;a.open("GET",r,!0),a.setRequestHeader("Accept","application/json"),a.setRequestHeader("Authorization","bearer "+e.token);var f=_();return a.onreadystatechange=function(){a.readyState==4&&(a.status==200?(e.userInfo=JSON.parse(a.responseText),f.setSuccess(e.userInfo)):f.setError())},a.send(),f.promise},e.isTokenExpired=function(r){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return F("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var a=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(r){if(isNaN(r))throw"Invalid minValidity";a-=r}return a<0},e.updateToken=function(r){var a=_();if(!e.refreshToken)return a.setError(),a.promise;r=r||5;var f=function(){var p=!1;if(r==-1?(p=!0,F("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(r))&&(p=!0,F("[KEYCLOAK] Refreshing token: token expired")),!p)a.setSuccess(!1);else{var E="grant_type=refresh_token&refresh_token="+e.refreshToken,g=e.endpoints.token();if(o.push(a),o.length==1){var y=new XMLHttpRequest;y.open("POST",g,!0),y.setRequestHeader("Content-type","application/x-www-form-urlencoded"),y.withCredentials=!0,E+="&client_id="+encodeURIComponent(e.clientId);var T=new Date().getTime();y.onreadystatechange=function(){if(y.readyState==4)if(y.status==200){F("[KEYCLOAK] Token refreshed"),T=(T+new Date().getTime())/2;var x=JSON.parse(y.responseText);Z(x.access_token,x.refresh_token,x.id_token,T),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var R=o.pop();R!=null;R=o.pop())R.setSuccess(!0)}else{W("[KEYCLOAK] Failed to refresh token"),y.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var R=o.pop();R!=null;R=o.pop())R.setError(!0)}},y.send(E)}}};if(c.enable){var b=M();b.then(function(){f()}).catch(function(p){a.setError(p)})}else f();return a.promise},e.clearToken=function(){e.token&&(Z(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())},e.setToken=Z;function ke(){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 rt(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function he(r,a){var f=r.code,b=r.error,p=r.prompt,E=new Date().getTime();if(r.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(r.kc_action_status),b){if(p!="none"){var g={error:b,error_description:r.error_description};e.onAuthError&&e.onAuthError(g),a&&a.setError(g)}else a&&a.setSuccess();return}else e.flow!="standard"&&(r.access_token||r.id_token)&&R(r.access_token,null,r.id_token,!0);if(e.flow!="implicit"&&f){var y="code="+f+"&grant_type=authorization_code",T=e.endpoints.token(),x=new XMLHttpRequest;x.open("POST",T,!0),x.setRequestHeader("Content-type","application/x-www-form-urlencoded"),y+="&client_id="+encodeURIComponent(e.clientId),y+="&redirect_uri="+r.redirectUri,r.pkceCodeVerifier&&(y+="&code_verifier="+r.pkceCodeVerifier),x.withCredentials=!0,x.onreadystatechange=function(){if(x.readyState==4)if(x.status==200){var H=JSON.parse(x.responseText);R(H.access_token,H.refresh_token,H.id_token,e.flow==="standard"),m()}else e.onAuthError&&e.onAuthError(),a&&a.setError()},x.send(y)}function R(H,me,ue,te){E=(E+new Date().getTime())/2,Z(H,me,ue,E),d&&(e.tokenParsed&&e.tokenParsed.nonce!=r.storedNonce||e.refreshTokenParsed&&e.refreshTokenParsed.nonce!=r.storedNonce||e.idTokenParsed&&e.idTokenParsed.nonce!=r.storedNonce)?(F("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),a&&a.setError()):te&&(e.onAuthSuccess&&e.onAuthSuccess(),a&&a.setSuccess())}}function $(r){var a=_(),f;t?typeof t=="string"&&(f=t):f=location.origin+"/keycloak.json";function b(x){x?e.endpoints={authorize:function(){return x.authorization_endpoint},token:function(){return x.token_endpoint},logout:function(){if(!x.end_session_endpoint)throw"Not supported by the OIDC server";return x.end_session_endpoint},checkSessionIframe:function(){if(!x.check_session_iframe)throw"Not supported by the OIDC server";return x.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!x.userinfo_endpoint)throw"Not supported by the OIDC server";return x.userinfo_endpoint}}:e.endpoints={authorize:function(){return ke()+"/protocol/openid-connect/auth"},token:function(){return ke()+"/protocol/openid-connect/token"},logout:function(){return ke()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var R=ke()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(R=R+"?version="+e.iframeVersion),R},thirdPartyCookiesIframe:function(){var R=ke()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(R=R+"?version="+e.iframeVersion),R},register:function(){return ke()+"/protocol/openid-connect/registrations"},userinfo:function(){return ke()+"/protocol/openid-connect/userinfo"}}}if(f){var p=new XMLHttpRequest;p.open("GET",f,!0),p.setRequestHeader("Accept","application/json"),p.onreadystatechange=function(){if(p.readyState==4)if(p.status==200||_e(p)){var x=JSON.parse(p.responseText);e.authServerUrl=x["auth-server-url"],e.realm=x.realm,e.clientId=x.resource,b(null),a.setSuccess()}else a.setError()},p.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var E=t.oidcProvider;if(E)if(typeof E=="string"){var T;E.charAt(E.length-1)=="/"?T=E+".well-known/openid-configuration":T=E+"/.well-known/openid-configuration";var p=new XMLHttpRequest;p.open("GET",T,!0),p.setRequestHeader("Accept","application/json"),p.onreadystatechange=function(){if(p.readyState==4)if(p.status==200||_e(p)){var R=JSON.parse(p.responseText);b(R),a.setSuccess()}else a.setError()},p.send()}else b(E),a.setSuccess();else{if(!t.url){for(var g=document.getElementsByTagName("script"),y=0;y<g.length;y++)if(g[y].src.match(/.*keycloak\.js/)){t.url=g[y].src.substr(0,g[y].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,b(null),a.setSuccess()}}return a.promise}function _e(r){return r.status==0&&r.responseText&&r.responseURL.startsWith("file:")}function Z(r,a,f,b){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),a?(e.refreshToken=a,e.refreshTokenParsed=vn(a)):(delete e.refreshToken,delete e.refreshTokenParsed),f?(e.idToken=f,e.idTokenParsed=vn(f)):(delete e.idToken,delete e.idTokenParsed),r){if(e.token=r,e.tokenParsed=vn(r),e.sessionId=e.tokenParsed.session_state,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,b&&(e.timeSkew=Math.floor(b/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(F("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var p=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;F("[KEYCLOAK] Token expires in "+Math.round(p/1e3)+" s"),p<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,p)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function h(){var r="0123456789abcdef",a=z(36,r).split("");a[14]="4",a[19]=r.substr(a[19]&3|8,1),a[8]=a[13]=a[18]=a[23]="-";var f=a.join("");return f}function A(r){var a=P(r);if(a){var f=s.get(a.state);return f&&(a.valid=!0,a.redirectUri=f.redirectUri,a.storedNonce=f.nonce,a.prompt=f.prompt,a.pkceCodeVerifier=f.pkceCodeVerifier),a}}function P(r){var a;switch(e.flow){case"standard":a=["code","state","session_state","kc_action_status","iss"];break;case"implicit":a=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","iss"];break;case"hybrid":a=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","iss"];break}a.push("error"),a.push("error_description"),a.push("error_uri");var f=r.indexOf("?"),b=r.indexOf("#"),p,E;if(e.responseMode==="query"&&f!==-1?(p=r.substring(0,f),E=C(r.substring(f+1,b!==-1?b:r.length),a),E.paramsString!==""&&(p+="?"+E.paramsString),b!==-1&&(p+=r.substring(b))):e.responseMode==="fragment"&&b!==-1&&(p=r.substring(0,b),E=C(r.substring(b+1),a),E.paramsString!==""&&(p+="#"+E.paramsString)),E&&E.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((E.oauthParams.code||E.oauthParams.error)&&E.oauthParams.state)return E.oauthParams.newUrl=p,E.oauthParams}else if(e.flow==="implicit"&&(E.oauthParams.access_token||E.oauthParams.error)&&E.oauthParams.state)return E.oauthParams.newUrl=p,E.oauthParams}}function C(r,a){for(var f=r.split("&"),b={paramsString:"",oauthParams:{}},p=0;p<f.length;p++){var E=f[p].indexOf("="),g=f[p].slice(0,E);a.indexOf(g)!==-1?b.oauthParams[g]=f[p].slice(E+1):(b.paramsString!==""&&(b.paramsString+="&"),b.paramsString+=f[p])}return b}function _(){var r={setSuccess:function(a){r.resolve(a)},setError:function(a){r.reject(a)}};return r.promise=new Promise(function(a,f){r.resolve=a,r.reject=f}),r}function v(r,a,f){var b=null,p=new Promise(function(E,g){b=setTimeout(function(){g({error:f||"Promise is not settled within timeout of "+a+"ms"})},a)});return Promise.race([r,p]).finally(function(){clearTimeout(b)})}function O(){var r=_();if(!c.enable||c.iframe)return r.setSuccess(),r.promise;var a=document.createElement("iframe");c.iframe=a,a.onload=function(){var p=e.endpoints.authorize();p.charAt(0)==="/"?c.iframeOrigin=rt():c.iframeOrigin=p.substring(0,p.indexOf("/",8)),r.setSuccess()};var f=e.endpoints.checkSessionIframe();a.setAttribute("src",f),a.setAttribute("sandbox","allow-scripts allow-same-origin"),a.setAttribute("title","keycloak-session-iframe"),a.style.display="none",document.body.appendChild(a);var b=function(p){if(!(p.origin!==c.iframeOrigin||c.iframe.contentWindow!==p.source)&&(p.data=="unchanged"||p.data=="changed"||p.data=="error")){p.data!="unchanged"&&e.clearToken();for(var E=c.callbackList.splice(0,c.callbackList.length),g=E.length-1;g>=0;--g){var y=E[g];p.data=="error"?y.setError():y.setSuccess(p.data=="unchanged")}}};return window.addEventListener("message",b,!1),r.promise}function m(){c.enable&&e.token&&setTimeout(function(){M().then(function(r){r&&m()})},c.interval*1e3)}function M(){var r=_();if(c.iframe&&c.iframeOrigin){var a=e.clientId+" "+(e.sessionId?e.sessionId:"");c.callbackList.push(r);var f=c.iframeOrigin;c.callbackList.length==1&&c.iframe.contentWindow.postMessage(a,f)}else r.setSuccess();return r.promise}function q(){var r=_();if(c.enable||e.silentCheckSsoRedirectUri){var a=document.createElement("iframe");a.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),a.setAttribute("sandbox","allow-scripts allow-same-origin"),a.setAttribute("title","keycloak-3p-check-iframe"),a.style.display="none",document.body.appendChild(a);var f=function(b){a.contentWindow===b.source&&(b.data!=="supported"&&b.data!=="unsupported"||(b.data==="unsupported"&&(W(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
74
+ */(function(t){(function(){var e="input is invalid type",n=typeof window=="object",o=n?window:{};o.JS_SHA256_NO_WINDOW&&(n=!1);var r=!n&&typeof self=="object",s=!o.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;s?o=ml:r&&(o=self);var a=!o.JS_SHA256_NO_COMMON_JS&&!0&&t.exports,f=!o.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),w=[-2147483648,8388608,32768,128],C=[24,16,8,0],b=[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],Y=["hex","array","digest","arrayBuffer"],H=[];(o.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(g){return Object.prototype.toString.call(g)==="[object Array]"}),f&&(o.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(g){return typeof g=="object"&&g.buffer&&g.buffer.constructor===ArrayBuffer});var B=function(g,T){return function(U){return new $(T,!0).update(U)[g]()}},N=function(g){var T=B("hex",g);s&&(T=X(T,g)),T.create=function(){return new $(g)},T.update=function(_){return T.create().update(_)};for(var U=0;U<Y.length;++U){var P=Y[U];T[P]=B(P,g)}return T},X=function(g,T){var U=kr,P=kr.Buffer,_=T?"sha224":"sha256",x;P.from&&!o.JS_SHA256_NO_BUFFER_FROM?x=P.from:x=function(E){return new P(E)};var j=function(E){if(typeof E=="string")return U.createHash(_).update(E,"utf8").digest("hex");if(E==null)throw new Error(e);return E.constructor===ArrayBuffer&&(E=new Uint8Array(E)),Array.isArray(E)||ArrayBuffer.isView(E)||E.constructor===P?U.createHash(_).update(x(E)).digest("hex"):g(E)};return j},oe=function(g,T){return function(U,P){return new ye(U,T,!0).update(P)[g]()}},ne=function(g){var T=oe("hex",g);T.create=function(_){return new ye(_,g)},T.update=function(_,x){return T.create(_).update(x)};for(var U=0;U<Y.length;++U){var P=Y[U];T[P]=oe(P,g)}return T};function $(g,T){T?(H[0]=H[16]=H[1]=H[2]=H[3]=H[4]=H[5]=H[6]=H[7]=H[8]=H[9]=H[10]=H[11]=H[12]=H[13]=H[14]=H[15]=0,this.blocks=H):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],g?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=g}$.prototype.update=function(g){if(!this.finalized){var T,U=typeof g;if(U!=="string"){if(U==="object"){if(g===null)throw new Error(e);if(f&&g.constructor===ArrayBuffer)g=new Uint8Array(g);else if(!Array.isArray(g)&&(!f||!ArrayBuffer.isView(g)))throw new Error(e)}else throw new Error(e);T=!0}for(var P,_=0,x,j=g.length,E=this.blocks;_<j;){if(this.hashed&&(this.hashed=!1,E[0]=this.block,E[16]=E[1]=E[2]=E[3]=E[4]=E[5]=E[6]=E[7]=E[8]=E[9]=E[10]=E[11]=E[12]=E[13]=E[14]=E[15]=0),T)for(x=this.start;_<j&&x<64;++_)E[x>>2]|=g[_]<<C[x++&3];else for(x=this.start;_<j&&x<64;++_)P=g.charCodeAt(_),P<128?E[x>>2]|=P<<C[x++&3]:P<2048?(E[x>>2]|=(192|P>>6)<<C[x++&3],E[x>>2]|=(128|P&63)<<C[x++&3]):P<55296||P>=57344?(E[x>>2]|=(224|P>>12)<<C[x++&3],E[x>>2]|=(128|P>>6&63)<<C[x++&3],E[x>>2]|=(128|P&63)<<C[x++&3]):(P=65536+((P&1023)<<10|g.charCodeAt(++_)&1023),E[x>>2]|=(240|P>>18)<<C[x++&3],E[x>>2]|=(128|P>>12&63)<<C[x++&3],E[x>>2]|=(128|P>>6&63)<<C[x++&3],E[x>>2]|=(128|P&63)<<C[x++&3]);this.lastByteIndex=x,this.bytes+=x-this.start,x>=64?(this.block=E[16],this.start=x-64,this.hash(),this.hashed=!0):this.start=x}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},$.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var g=this.blocks,T=this.lastByteIndex;g[16]=this.block,g[T>>2]|=w[T&3],this.block=g[16],T>=56&&(this.hashed||this.hash(),g[0]=this.block,g[16]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=g[10]=g[11]=g[12]=g[13]=g[14]=g[15]=0),g[14]=this.hBytes<<3|this.bytes>>>29,g[15]=this.bytes<<3,this.hash()}},$.prototype.hash=function(){var g=this.h0,T=this.h1,U=this.h2,P=this.h3,_=this.h4,x=this.h5,j=this.h6,E=this.h7,V=this.blocks,ee,ie,se,be,D,Ae,i,u,m,A,y;for(ee=16;ee<64;++ee)D=V[ee-15],ie=(D>>>7|D<<25)^(D>>>18|D<<14)^D>>>3,D=V[ee-2],se=(D>>>17|D<<15)^(D>>>19|D<<13)^D>>>10,V[ee]=V[ee-16]+ie+V[ee-7]+se<<0;for(y=T&U,ee=0;ee<64;ee+=4)this.first?(this.is224?(u=300032,D=V[0]-1413257819,E=D-150054599<<0,P=D+24177077<<0):(u=704751109,D=V[0]-210244248,E=D-1521486534<<0,P=D+143694565<<0),this.first=!1):(ie=(g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10),se=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),u=g&T,be=u^g&U^y,i=_&x^~_&j,D=E+se+i+b[ee]+V[ee],Ae=ie+be,E=P+D<<0,P=D+Ae<<0),ie=(P>>>2|P<<30)^(P>>>13|P<<19)^(P>>>22|P<<10),se=(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7),m=P&g,be=m^P&T^u,i=E&_^~E&x,D=j+se+i+b[ee+1]+V[ee+1],Ae=ie+be,j=U+D<<0,U=D+Ae<<0,ie=(U>>>2|U<<30)^(U>>>13|U<<19)^(U>>>22|U<<10),se=(j>>>6|j<<26)^(j>>>11|j<<21)^(j>>>25|j<<7),A=U&P,be=A^U&g^m,i=j&E^~j&_,D=x+se+i+b[ee+2]+V[ee+2],Ae=ie+be,x=T+D<<0,T=D+Ae<<0,ie=(T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10),se=(x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7),y=T&U,be=y^T&P^A,i=x&j^~x&E,D=_+se+i+b[ee+3]+V[ee+3],Ae=ie+be,_=g+D<<0,g=D+Ae<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+g<<0,this.h1=this.h1+T<<0,this.h2=this.h2+U<<0,this.h3=this.h3+P<<0,this.h4=this.h4+_<<0,this.h5=this.h5+x<<0,this.h6=this.h6+j<<0,this.h7=this.h7+E<<0},$.prototype.hex=function(){this.finalize();var g=this.h0,T=this.h1,U=this.h2,P=this.h3,_=this.h4,x=this.h5,j=this.h6,E=this.h7,V=l[g>>28&15]+l[g>>24&15]+l[g>>20&15]+l[g>>16&15]+l[g>>12&15]+l[g>>8&15]+l[g>>4&15]+l[g&15]+l[T>>28&15]+l[T>>24&15]+l[T>>20&15]+l[T>>16&15]+l[T>>12&15]+l[T>>8&15]+l[T>>4&15]+l[T&15]+l[U>>28&15]+l[U>>24&15]+l[U>>20&15]+l[U>>16&15]+l[U>>12&15]+l[U>>8&15]+l[U>>4&15]+l[U&15]+l[P>>28&15]+l[P>>24&15]+l[P>>20&15]+l[P>>16&15]+l[P>>12&15]+l[P>>8&15]+l[P>>4&15]+l[P&15]+l[_>>28&15]+l[_>>24&15]+l[_>>20&15]+l[_>>16&15]+l[_>>12&15]+l[_>>8&15]+l[_>>4&15]+l[_&15]+l[x>>28&15]+l[x>>24&15]+l[x>>20&15]+l[x>>16&15]+l[x>>12&15]+l[x>>8&15]+l[x>>4&15]+l[x&15]+l[j>>28&15]+l[j>>24&15]+l[j>>20&15]+l[j>>16&15]+l[j>>12&15]+l[j>>8&15]+l[j>>4&15]+l[j&15];return this.is224||(V+=l[E>>28&15]+l[E>>24&15]+l[E>>20&15]+l[E>>16&15]+l[E>>12&15]+l[E>>8&15]+l[E>>4&15]+l[E&15]),V},$.prototype.toString=$.prototype.hex,$.prototype.digest=function(){this.finalize();var g=this.h0,T=this.h1,U=this.h2,P=this.h3,_=this.h4,x=this.h5,j=this.h6,E=this.h7,V=[g>>24&255,g>>16&255,g>>8&255,g&255,T>>24&255,T>>16&255,T>>8&255,T&255,U>>24&255,U>>16&255,U>>8&255,U&255,P>>24&255,P>>16&255,P>>8&255,P&255,_>>24&255,_>>16&255,_>>8&255,_&255,x>>24&255,x>>16&255,x>>8&255,x&255,j>>24&255,j>>16&255,j>>8&255,j&255];return this.is224||V.push(E>>24&255,E>>16&255,E>>8&255,E&255),V},$.prototype.array=$.prototype.digest,$.prototype.arrayBuffer=function(){this.finalize();var g=new ArrayBuffer(this.is224?28:32),T=new DataView(g);return T.setUint32(0,this.h0),T.setUint32(4,this.h1),T.setUint32(8,this.h2),T.setUint32(12,this.h3),T.setUint32(16,this.h4),T.setUint32(20,this.h5),T.setUint32(24,this.h6),this.is224||T.setUint32(28,this.h7),g};function ye(g,T,U){var P,_=typeof g;if(_==="string"){var x=[],j=g.length,E=0,V;for(P=0;P<j;++P)V=g.charCodeAt(P),V<128?x[E++]=V:V<2048?(x[E++]=192|V>>6,x[E++]=128|V&63):V<55296||V>=57344?(x[E++]=224|V>>12,x[E++]=128|V>>6&63,x[E++]=128|V&63):(V=65536+((V&1023)<<10|g.charCodeAt(++P)&1023),x[E++]=240|V>>18,x[E++]=128|V>>12&63,x[E++]=128|V>>6&63,x[E++]=128|V&63);g=x}else if(_==="object"){if(g===null)throw new Error(e);if(f&&g.constructor===ArrayBuffer)g=new Uint8Array(g);else if(!Array.isArray(g)&&(!f||!ArrayBuffer.isView(g)))throw new Error(e)}else throw new Error(e);g.length>64&&(g=new $(T,!0).update(g).array());var ee=[],ie=[];for(P=0;P<64;++P){var se=g[P]||0;ee[P]=92^se,ie[P]=54^se}$.call(this,T,U),this.update(ie),this.oKeyPad=ee,this.inner=!0,this.sharedMemory=U}ye.prototype=new $,ye.prototype.finalize=function(){if($.prototype.finalize.call(this),this.inner){this.inner=!1;var g=this.array();$.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(g),$.prototype.finalize.call(this)}};var ae=N();ae.sha256=ae,ae.sha224=N(!0),ae.sha256.hmac=ne(),ae.sha224.hmac=ne(!0),a?t.exports=ae:(o.sha256=ae.sha256,o.sha224=ae.sha224)})()})(Er);var xl=Er.exports;const _l=gl(xl);class Bt extends Error{}Bt.prototype.name="InvalidTokenError";function Tl(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let o=n.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function Pl(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 Tl(e)}catch{return atob(e)}}function Vn(t,e){if(typeof t!="string")throw new Bt("Invalid token specified: must be a string");e||(e={});const n=e.header===!0?0:1,o=t.split(".")[n];if(typeof o!="string")throw new Bt(`Invalid token specified: missing part #${n+1}`);let r;try{r=Pl(o)}catch(s){throw new Bt(`Invalid token specified: invalid base64 for part #${n+1} (${s.message})`)}try{return JSON.parse(r)}catch(s){throw new Bt(`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 Ar(t){if(!(this instanceof Ar))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var e=this,n,o=[],r,s={enable:!0,callbackList:[],interval:5},a=document.getElementsByTagName("script"),f=0;f<a.length;f++)(a[f].src.indexOf("keycloak.js")!==-1||a[f].src.indexOf("keycloak.min.js")!==-1)&&a[f].src.indexOf("version=")!==-1&&(e.iframeVersion=a[f].src.substring(a[f].src.indexOf("version=")+8).split("&")[0]);var l=!0,w=Ae(console.info),C=Ae(console.warn);e.init=function(i){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,r=D();var u=["default","cordova","cordova-native"];if(i&&u.indexOf(i.adapter)>-1?n=ie(i.adapter):i&&typeof i.adapter=="object"?n=i.adapter:window.Cordova||window.cordova?n=ie("cordova"):n=ie(),i){if(typeof i.useNonce<"u"&&(l=i.useNonce),typeof i.checkLoginIframe<"u"&&(s.enable=i.checkLoginIframe),i.checkLoginIframeInterval&&(s.interval=i.checkLoginIframeInterval),i.onLoad==="login-required"&&(e.loginRequired=!0),i.responseMode)if(i.responseMode==="query"||i.responseMode==="fragment")e.responseMode=i.responseMode;else throw"Invalid value for responseMode";if(i.flow){switch(i.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=i.flow}if(i.timeSkew!=null&&(e.timeSkew=i.timeSkew),i.redirectUri&&(e.redirectUri=i.redirectUri),i.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=i.silentCheckSsoRedirectUri),typeof i.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=i.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,i.pkceMethod){if(i.pkceMethod!=="S256")throw"Invalid value for pkceMethod";e.pkceMethod=i.pkceMethod}typeof i.enableLogging=="boolean"?e.enableLogging=i.enableLogging:e.enableLogging=!1,typeof i.scope=="string"&&(e.scope=i.scope),typeof i.acrValues=="string"&&(e.acrValues=i.acrValues),typeof i.messageReceiveTimeout=="number"&&i.messageReceiveTimeout>0?e.messageReceiveTimeout=i.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var m=_(),A=_();A.promise.then(function(){e.onReady&&e.onReady(e.authenticated),m.setSuccess(e.authenticated)}).catch(function(O){m.setError(O)});var y=$();function R(){var O=function(K){K||(M.prompt="none"),i&&i.locale&&(M.locale=i.locale),e.login(M).then(function(){A.setSuccess()}).catch(function(ve){A.setError(ve)})},L=function(){var K=document.createElement("iframe"),ve=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});K.setAttribute("src",ve),K.setAttribute("sandbox","allow-scripts allow-same-origin"),K.setAttribute("title","keycloak-silent-check-sso"),K.style.display="none",document.body.appendChild(K);var we=function(ue){if(!(ue.origin!==window.location.origin||K.contentWindow!==ue.source)){var $e=T(ue.data);ne($e,A),document.body.removeChild(K),window.removeEventListener("message",we)}};window.addEventListener("message",we)},M={};switch(i.onLoad){case"check-sso":s.enable?j().then(function(){V().then(function(K){K?A.setSuccess():e.silentCheckSsoRedirectUri?L():O(!1)}).catch(function(K){A.setError(K)})}):e.silentCheckSsoRedirectUri?L():O(!1);break;case"login-required":O(!0);break;default:throw"Invalid value for onLoad"}}function k(){var O=T(window.location.href);if(O&&window.history.replaceState(window.history.state,null,O.newUrl),O&&O.valid)return j().then(function(){ne(O,A)}).catch(function(L){A.setError(L)});i?i.token&&i.refreshToken?(ae(i.token,i.refreshToken,i.idToken),s.enable?j().then(function(){V().then(function(L){L?(e.onAuthSuccess&&e.onAuthSuccess(),A.setSuccess(),E()):A.setSuccess()}).catch(function(L){A.setError(L)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),A.setSuccess()}).catch(function(L){e.onAuthError&&e.onAuthError(),i.onLoad?R():A.setError(L)})):i.onLoad?R():A.setSuccess():A.setSuccess()}function v(){var O=_(),L=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",L),O.setSuccess())};return document.addEventListener("readystatechange",L),L(),O.promise}return y.then(function(){v().then(ee).then(k).catch(function(O){m.setError(O)})}),y.catch(function(O){m.setError(O)}),m.promise},e.login=function(i){return n.login(i)};function b(i){var u=null,m=window.crypto||window.msCrypto;if(m&&m.getRandomValues&&window.Uint8Array)return u=new Uint8Array(i),m.getRandomValues(u),u;u=new Array(i);for(var A=0;A<u.length;A++)u[A]=Math.floor(256*Math.random());return u}function Y(i){return H(i,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function H(i,u){for(var m=b(i),A=new Array(i),y=0;y<i;y++)A[y]=u.charCodeAt(m[y]%u.length);return String.fromCharCode.apply(null,A)}function B(i,u){switch(i){case"S256":var m=new Uint8Array(_l.arrayBuffer(u)),A=Qt.fromByteArray(m).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"");return A;default:throw"Invalid value for pkceMethod"}}function N(i){var u={id_token:{acr:i}};return JSON.stringify(u)}e.createLoginUrl=function(i){var u=g(),m=g(),A=n.redirectUri(i),y={state:u,nonce:m,redirectUri:encodeURIComponent(A)};i&&i.prompt&&(y.prompt=i.prompt);var R;i&&i.action=="register"?R=e.endpoints.register():R=e.endpoints.authorize();var k=i&&i.scope||e.scope;k?k.indexOf("openid")===-1&&(k="openid "+k):k="openid";var v=R+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(A)+"&state="+encodeURIComponent(u)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(k);if(l&&(v=v+"&nonce="+encodeURIComponent(m)),i&&i.prompt&&(v+="&prompt="+encodeURIComponent(i.prompt)),i&&i.maxAge&&(v+="&max_age="+encodeURIComponent(i.maxAge)),i&&i.loginHint&&(v+="&login_hint="+encodeURIComponent(i.loginHint)),i&&i.idpHint&&(v+="&kc_idp_hint="+encodeURIComponent(i.idpHint)),i&&i.action&&i.action!="register"&&(v+="&kc_action="+encodeURIComponent(i.action)),i&&i.locale&&(v+="&ui_locales="+encodeURIComponent(i.locale)),i&&i.acr){var O=N(i.acr);v+="&claims="+encodeURIComponent(O)}if((i&&i.acrValues||e.acrValues)&&(v+="&acr_values="+encodeURIComponent(i.acrValues||e.acrValues)),e.pkceMethod){var L=Y(96);y.pkceCodeVerifier=L;var M=B(e.pkceMethod,L);v+="&code_challenge="+M,v+="&code_challenge_method="+e.pkceMethod}return r.add(y),v},e.logout=function(i){return n.logout(i)},e.createLogoutUrl=function(i){var u=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(i,!1));return e.idToken&&(u+="&id_token_hint="+encodeURIComponent(e.idToken)),u},e.register=function(i){return n.register(i)},e.createRegisterUrl=function(i){return i||(i={}),i.action="register",e.createLoginUrl(i)},e.createAccountUrl=function(i){var u=X(),m=void 0;return typeof u<"u"&&(m=u+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(i))),m},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(i){var u=e.realmAccess;return!!u&&u.roles.indexOf(i)>=0},e.hasResourceRole=function(i,u){if(!e.resourceAccess)return!1;var m=e.resourceAccess[u||e.clientId];return!!m&&m.roles.indexOf(i)>=0},e.loadUserProfile=function(){var i=X()+"/account",u=new XMLHttpRequest;u.open("GET",i,!0),u.setRequestHeader("Accept","application/json"),u.setRequestHeader("Authorization","bearer "+e.token);var m=_();return u.onreadystatechange=function(){u.readyState==4&&(u.status==200?(e.profile=JSON.parse(u.responseText),m.setSuccess(e.profile)):m.setError())},u.send(),m.promise},e.loadUserInfo=function(){var i=e.endpoints.userinfo(),u=new XMLHttpRequest;u.open("GET",i,!0),u.setRequestHeader("Accept","application/json"),u.setRequestHeader("Authorization","bearer "+e.token);var m=_();return u.onreadystatechange=function(){u.readyState==4&&(u.status==200?(e.userInfo=JSON.parse(u.responseText),m.setSuccess(e.userInfo)):m.setError())},u.send(),m.promise},e.isTokenExpired=function(i){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return w("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var u=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(i){if(isNaN(i))throw"Invalid minValidity";u-=i}return u<0},e.updateToken=function(i){var u=_();if(!e.refreshToken)return u.setError(),u.promise;i=i||5;var m=function(){var y=!1;if(i==-1?(y=!0,w("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(i))&&(y=!0,w("[KEYCLOAK] Refreshing token: token expired")),!y)u.setSuccess(!1);else{var R="grant_type=refresh_token&refresh_token="+e.refreshToken,k=e.endpoints.token();if(o.push(u),o.length==1){var v=new XMLHttpRequest;v.open("POST",k,!0),v.setRequestHeader("Content-type","application/x-www-form-urlencoded"),v.withCredentials=!0,R+="&client_id="+encodeURIComponent(e.clientId);var O=new Date().getTime();v.onreadystatechange=function(){if(v.readyState==4)if(v.status==200){w("[KEYCLOAK] Token refreshed"),O=(O+new Date().getTime())/2;var L=JSON.parse(v.responseText);ae(L.access_token,L.refresh_token,L.id_token,O),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var M=o.pop();M!=null;M=o.pop())M.setSuccess(!0)}else{C("[KEYCLOAK] Failed to refresh token"),v.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var M=o.pop();M!=null;M=o.pop())M.setError(!0)}},v.send(R)}}};if(s.enable){var A=V();A.then(function(){m()}).catch(function(y){u.setError(y)})}else m();return u.promise},e.clearToken=function(){e.token&&(ae(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())},e.setToken=ae;function X(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function oe(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function ne(i,u){var m=i.code,A=i.error,y=i.prompt,R=new Date().getTime();if(i.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(i.kc_action_status),A){if(y!="none"){var k={error:A,error_description:i.error_description};e.onAuthError&&e.onAuthError(k),u&&u.setError(k)}else u&&u.setSuccess();return}else e.flow!="standard"&&(i.access_token||i.id_token)&&M(i.access_token,null,i.id_token,!0);if(e.flow!="implicit"&&m){var v="code="+m+"&grant_type=authorization_code",O=e.endpoints.token(),L=new XMLHttpRequest;L.open("POST",O,!0),L.setRequestHeader("Content-type","application/x-www-form-urlencoded"),v+="&client_id="+encodeURIComponent(e.clientId),v+="&redirect_uri="+i.redirectUri,i.pkceCodeVerifier&&(v+="&code_verifier="+i.pkceCodeVerifier),L.withCredentials=!0,L.onreadystatechange=function(){if(L.readyState==4)if(L.status==200){var K=JSON.parse(L.responseText);M(K.access_token,K.refresh_token,K.id_token,e.flow==="standard"),E()}else e.onAuthError&&e.onAuthError(),u&&u.setError()},L.send(v)}function M(K,ve,we,ue){R=(R+new Date().getTime())/2,ae(K,ve,we,R),l&&(e.tokenParsed&&e.tokenParsed.nonce!=i.storedNonce||e.refreshTokenParsed&&e.refreshTokenParsed.nonce!=i.storedNonce||e.idTokenParsed&&e.idTokenParsed.nonce!=i.storedNonce)?(w("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),u&&u.setError()):ue&&(e.onAuthSuccess&&e.onAuthSuccess(),u&&u.setSuccess())}}function $(i){var u=_(),m;t?typeof t=="string"&&(m=t):m=location.origin+"/keycloak.json";function A(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 X()+"/protocol/openid-connect/auth"},token:function(){return X()+"/protocol/openid-connect/token"},logout:function(){return X()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var M=X()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(M=M+"?version="+e.iframeVersion),M},thirdPartyCookiesIframe:function(){var M=X()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(M=M+"?version="+e.iframeVersion),M},register:function(){return X()+"/protocol/openid-connect/registrations"},userinfo:function(){return X()+"/protocol/openid-connect/userinfo"}}}if(m){var y=new XMLHttpRequest;y.open("GET",m,!0),y.setRequestHeader("Accept","application/json"),y.onreadystatechange=function(){if(y.readyState==4)if(y.status==200||ye(y)){var L=JSON.parse(y.responseText);e.authServerUrl=L["auth-server-url"],e.realm=L.realm,e.clientId=L.resource,A(null),u.setSuccess()}else u.setError()},y.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var R=t.oidcProvider;if(R)if(typeof R=="string"){var O;R.charAt(R.length-1)=="/"?O=R+".well-known/openid-configuration":O=R+"/.well-known/openid-configuration";var y=new XMLHttpRequest;y.open("GET",O,!0),y.setRequestHeader("Accept","application/json"),y.onreadystatechange=function(){if(y.readyState==4)if(y.status==200||ye(y)){var M=JSON.parse(y.responseText);A(M),u.setSuccess()}else u.setError()},y.send()}else A(R),u.setSuccess();else{if(!t.url){for(var k=document.getElementsByTagName("script"),v=0;v<k.length;v++)if(k[v].src.match(/.*keycloak\.js/)){t.url=k[v].src.substr(0,k[v].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,A(null),u.setSuccess()}}return u.promise}function ye(i){return i.status==0&&i.responseText&&i.responseURL.startsWith("file:")}function ae(i,u,m,A){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),u?(e.refreshToken=u,e.refreshTokenParsed=Vn(u)):(delete e.refreshToken,delete e.refreshTokenParsed),m?(e.idToken=m,e.idTokenParsed=Vn(m)):(delete e.idToken,delete e.idTokenParsed),i){if(e.token=i,e.tokenParsed=Vn(i),e.sessionId=e.tokenParsed.session_state,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,A&&(e.timeSkew=Math.floor(A/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(w("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var y=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;w("[KEYCLOAK] Token expires in "+Math.round(y/1e3)+" s"),y<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,y)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function g(){var i="0123456789abcdef",u=H(36,i).split("");u[14]="4",u[19]=i.substr(u[19]&3|8,1),u[8]=u[13]=u[18]=u[23]="-";var m=u.join("");return m}function T(i){var u=U(i);if(u){var m=r.get(u.state);return m&&(u.valid=!0,u.redirectUri=m.redirectUri,u.storedNonce=m.nonce,u.prompt=m.prompt,u.pkceCodeVerifier=m.pkceCodeVerifier),u}}function U(i){var u;switch(e.flow){case"standard":u=["code","state","session_state","kc_action_status","iss"];break;case"implicit":u=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","iss"];break;case"hybrid":u=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","iss"];break}u.push("error"),u.push("error_description"),u.push("error_uri");var m=i.indexOf("?"),A=i.indexOf("#"),y,R;if(e.responseMode==="query"&&m!==-1?(y=i.substring(0,m),R=P(i.substring(m+1,A!==-1?A:i.length),u),R.paramsString!==""&&(y+="?"+R.paramsString),A!==-1&&(y+=i.substring(A))):e.responseMode==="fragment"&&A!==-1&&(y=i.substring(0,A),R=P(i.substring(A+1),u),R.paramsString!==""&&(y+="#"+R.paramsString)),R&&R.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((R.oauthParams.code||R.oauthParams.error)&&R.oauthParams.state)return R.oauthParams.newUrl=y,R.oauthParams}else if(e.flow==="implicit"&&(R.oauthParams.access_token||R.oauthParams.error)&&R.oauthParams.state)return R.oauthParams.newUrl=y,R.oauthParams}}function P(i,u){for(var m=i.split("&"),A={paramsString:"",oauthParams:{}},y=0;y<m.length;y++){var R=m[y].indexOf("="),k=m[y].slice(0,R);u.indexOf(k)!==-1?A.oauthParams[k]=m[y].slice(R+1):(A.paramsString!==""&&(A.paramsString+="&"),A.paramsString+=m[y])}return A}function _(){var i={setSuccess:function(u){i.resolve(u)},setError:function(u){i.reject(u)}};return i.promise=new Promise(function(u,m){i.resolve=u,i.reject=m}),i}function x(i,u,m){var A=null,y=new Promise(function(R,k){A=setTimeout(function(){k({error:m||"Promise is not settled within timeout of "+u+"ms"})},u)});return Promise.race([i,y]).finally(function(){clearTimeout(A)})}function j(){var i=_();if(!s.enable||s.iframe)return i.setSuccess(),i.promise;var u=document.createElement("iframe");s.iframe=u,u.onload=function(){var y=e.endpoints.authorize();y.charAt(0)==="/"?s.iframeOrigin=oe():s.iframeOrigin=y.substring(0,y.indexOf("/",8)),i.setSuccess()};var m=e.endpoints.checkSessionIframe();u.setAttribute("src",m),u.setAttribute("sandbox","allow-scripts allow-same-origin"),u.setAttribute("title","keycloak-session-iframe"),u.style.display="none",document.body.appendChild(u);var A=function(y){if(!(y.origin!==s.iframeOrigin||s.iframe.contentWindow!==y.source)&&(y.data=="unchanged"||y.data=="changed"||y.data=="error")){y.data!="unchanged"&&e.clearToken();for(var R=s.callbackList.splice(0,s.callbackList.length),k=R.length-1;k>=0;--k){var v=R[k];y.data=="error"?v.setError():v.setSuccess(y.data=="unchanged")}}};return window.addEventListener("message",A,!1),i.promise}function E(){s.enable&&e.token&&setTimeout(function(){V().then(function(i){i&&E()})},s.interval*1e3)}function V(){var i=_();if(s.iframe&&s.iframeOrigin){var u=e.clientId+" "+(e.sessionId?e.sessionId:"");s.callbackList.push(i);var m=s.iframeOrigin;s.callbackList.length==1&&s.iframe.contentWindow.postMessage(u,m)}else i.setSuccess();return i.promise}function ee(){var i=_();if(s.enable||e.silentCheckSsoRedirectUri){var u=document.createElement("iframe");u.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),u.setAttribute("sandbox","allow-scripts allow-same-origin"),u.setAttribute("title","keycloak-3p-check-iframe"),u.style.display="none",document.body.appendChild(u);var m=function(A){u.contentWindow===A.source&&(A.data!=="supported"&&A.data!=="unsupported"||(A.data==="unsupported"&&(C(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
75
75
 
76
76
  - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
77
77
  - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
78
78
 
79
- For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),c.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(a),window.removeEventListener("message",f),r.setSuccess()))};window.addEventListener("message",f,!1)}else r.setSuccess();return v(r.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function X(r){if(!r||r=="default")return{login:function(g){return window.location.assign(e.createLoginUrl(g)),_().promise},logout:function(g){return window.location.replace(e.createLogoutUrl(g)),_().promise},register:function(g){return window.location.assign(e.createRegisterUrl(g)),_().promise},accountManagement:function(){var g=e.createAccountUrl();if(typeof g<"u")window.location.href=g;else throw"Not supported by the OIDC server";return _().promise},redirectUri:function(g,y){return g&&g.redirectUri?g.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(r=="cordova"){c.enable=!1;var a=function(g,y,T){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(g,y,T):window.open(g,y,T)},f=function(g){return g&&g.cordovaOptions?Object.keys(g.cordovaOptions).reduce(function(y,T){return y[T]=g.cordovaOptions[T],y},{}):{}},b=function(g){return Object.keys(g).reduce(function(y,T){return y.push(T+"="+g[T]),y},[]).join(",")},p=function(g){var y=f(g);return y.location="no",g&&g.prompt=="none"&&(y.hidden="yes"),b(y)},E=function(){return e.redirectUri||"http://localhost"};return{login:function(g){var y=_(),T=p(g),x=e.createLoginUrl(g),R=a(x,"_blank",T),H=!1,me=!1,ue=function(){me=!0,R.close()};return R.addEventListener("loadstart",function(te){if(te.url.indexOf(E())==0){var Pe=A(te.url);he(Pe,y),ue(),H=!0}}),R.addEventListener("loaderror",function(te){if(!H)if(te.url.indexOf(E())==0){var Pe=A(te.url);he(Pe,y),ue(),H=!0}else y.setError(),ue()}),R.addEventListener("exit",function(te){me||y.setError({reason:"closed_by_user"})}),y.promise},logout:function(g){var y=_(),T=e.createLogoutUrl(g),x=a(T,"_blank","location=no,hidden=yes,clearcache=yes"),R;return x.addEventListener("loadstart",function(H){H.url.indexOf(E())==0&&x.close()}),x.addEventListener("loaderror",function(H){H.url.indexOf(E())==0||(R=!0),x.close()}),x.addEventListener("exit",function(H){R?y.setError():(e.clearToken(),y.setSuccess())}),y.promise},register:function(g){var y=_(),T=e.createRegisterUrl(),x=p(g),R=a(T,"_blank",x);return R.addEventListener("loadstart",function(H){if(H.url.indexOf(E())==0){R.close();var me=A(H.url);he(me,y)}}),y.promise},accountManagement:function(){var g=e.createAccountUrl();if(typeof g<"u"){var y=a(g,"_blank","location=no");y.addEventListener("loadstart",function(T){T.url.indexOf(E())==0&&y.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(g){return E()}}}if(r=="cordova-native")return c.enable=!1,{login:function(g){var y=_(),T=e.createLoginUrl(g);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var R=A(x.url);he(R,y)}),window.cordova.plugins.browsertab.openUrl(T),y.promise},logout:function(g){var y=_(),T=e.createLogoutUrl(g);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),y.setSuccess()}),window.cordova.plugins.browsertab.openUrl(T),y.promise},register:function(g){var y=_(),T=e.createRegisterUrl(g);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var R=A(x.url);he(R,y)}),window.cordova.plugins.browsertab.openUrl(T),y.promise},accountManagement:function(){var g=e.createAccountUrl();if(typeof g<"u")window.cordova.plugins.browsertab.openUrl(g);else throw"Not supported by the OIDC server"},redirectUri:function(g){return g&&g.redirectUri?g.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+r}var Y=function(){if(!(this instanceof Y))return new Y;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var r=this;function a(){for(var f=new Date().getTime(),b=0;b<localStorage.length;b++){var p=localStorage.key(b);if(p&&p.indexOf("kc-callback-")==0){var E=localStorage.getItem(p);if(E)try{var g=JSON.parse(E).expires;(!g||g<f)&&localStorage.removeItem(p)}catch{localStorage.removeItem(p)}}}}r.get=function(f){if(f){var b="kc-callback-"+f,p=localStorage.getItem(b);return p&&(localStorage.removeItem(b),p=JSON.parse(p)),a(),p}},r.add=function(f){a();var b="kc-callback-"+f.state;f.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(b,JSON.stringify(f))}},ce=function(){if(!(this instanceof ce))return new ce;var r=this;r.get=function(p){if(p){var E=f("kc-callback-"+p);if(b("kc-callback-"+p,"",a(-100)),E)return JSON.parse(E)}},r.add=function(p){b("kc-callback-"+p.state,JSON.stringify(p),a(60))},r.removeItem=function(p){b(p,"",a(-100))};var a=function(p){var E=new Date;return E.setTime(E.getTime()+p*60*1e3),E},f=function(p){for(var E=p+"=",g=document.cookie.split(";"),y=0;y<g.length;y++){for(var T=g[y];T.charAt(0)==" ";)T=T.substring(1);if(T.indexOf(E)==0)return T.substring(E.length,T.length)}return""},b=function(p,E,g){var y=p+"="+E+"; expires="+g.toUTCString()+"; ";document.cookie=y}};function B(){try{return new Y}catch{}return new ce}function pe(r){return function(){e.enableLogging&&r.apply(console,Array.prototype.slice.call(arguments))}}}async function fl(){const t="silent-login.html",e=await fetch(location.origin+"/"+t).then(async n=>n.status!==200?!1:(await n.text()).includes("silent-login-iframe-result")).catch(()=>!1);return e||(console.warn(`Arquivo ${t} não localizado no projeto ou não possui o conteúdo correto!`),document.body.innerHTML=`<div style="padding: 3rem; display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; font-size: 1.5rem;">O arquivo '${t}' não foi encontrado.</div>`),e}function hl(t){const e=new No(t),n={},o=async(k={},L)=>{if(await fl())return e.init(k).then(async F=>{F&&await s(),L&&typeof L=="function"&&L()}).catch(F=>{console.error(F),document.body.innerHTML='<div style="padding: 3rem; display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; font-size: 1.5rem;">Não foi possível conectar no servidor de autenticação.</div>'})},s=async()=>{const k=await e.loadUserInfo();n.email=k.email??"",n.emailVerified=k.email_verified===!0,n.firstName=k.given_name??"",n.lastName=k.family_name??"",n.name=k.name??"",n.sub=k.sub??"",n.username=k.preferred_username??"",n.roles=[...k.role??[]],n.groups=[...k.group??[]],n.IsInRole=L=>n.roles.includes(L),sessionStorage.setItem("name",n.name)};return{Instance:e,User:n,Init:o,Logout:()=>{e.logout({redirectUri:location.origin}).then(()=>{sessionStorage.removeItem("name")})}}}const pl=t=>hl(t);class ml{constructor(e=null){ct(this,"errors",[]);ct(this,"_value",null);ct(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))}}const Ol="",Fl="";(()=>{function t(){l.nextTick(()=>{setTimeout(()=>{var n;const e=document.querySelector(":root");e&&e.style.setProperty("--window-height",`${((n=window.visualViewport)==null?void 0:n.height)??window.innerHeight}px`)},1)})}t(),window.addEventListener("resize",t)})(),yn.SetInitialTheme(),G.AppResult=ml,G.Cor=zt,G.SfButton=Ja,G.SfContent=Ha,G.SfIcon=ut,G.SfLayout=Ma,G.SfNavMenuLink=Ua,G.SfTabNavigation=Ka,G.Tamanho=qe,G.UseAuthService=pl,G.UseDialogService=Ro,G.UseNavMenuService=jt,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})});
79
+ 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(u),window.removeEventListener("message",m),i.setSuccess()))};window.addEventListener("message",m,!1)}else i.setSuccess();return x(i.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function ie(i){if(!i||i=="default")return{login:function(k){return window.location.assign(e.createLoginUrl(k)),_().promise},logout:function(k){return window.location.replace(e.createLogoutUrl(k)),_().promise},register:function(k){return window.location.assign(e.createRegisterUrl(k)),_().promise},accountManagement:function(){var k=e.createAccountUrl();if(typeof k<"u")window.location.href=k;else throw"Not supported by the OIDC server";return _().promise},redirectUri:function(k,v){return k&&k.redirectUri?k.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(i=="cordova"){s.enable=!1;var u=function(k,v,O){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(k,v,O):window.open(k,v,O)},m=function(k){return k&&k.cordovaOptions?Object.keys(k.cordovaOptions).reduce(function(v,O){return v[O]=k.cordovaOptions[O],v},{}):{}},A=function(k){return Object.keys(k).reduce(function(v,O){return v.push(O+"="+k[O]),v},[]).join(",")},y=function(k){var v=m(k);return v.location="no",k&&k.prompt=="none"&&(v.hidden="yes"),A(v)},R=function(){return e.redirectUri||"http://localhost"};return{login:function(k){var v=_(),O=y(k),L=e.createLoginUrl(k),M=u(L,"_blank",O),K=!1,ve=!1,we=function(){ve=!0,M.close()};return M.addEventListener("loadstart",function(ue){if(ue.url.indexOf(R())==0){var $e=T(ue.url);ne($e,v),we(),K=!0}}),M.addEventListener("loaderror",function(ue){if(!K)if(ue.url.indexOf(R())==0){var $e=T(ue.url);ne($e,v),we(),K=!0}else v.setError(),we()}),M.addEventListener("exit",function(ue){ve||v.setError({reason:"closed_by_user"})}),v.promise},logout:function(k){var v=_(),O=e.createLogoutUrl(k),L=u(O,"_blank","location=no,hidden=yes,clearcache=yes"),M;return L.addEventListener("loadstart",function(K){K.url.indexOf(R())==0&&L.close()}),L.addEventListener("loaderror",function(K){K.url.indexOf(R())==0||(M=!0),L.close()}),L.addEventListener("exit",function(K){M?v.setError():(e.clearToken(),v.setSuccess())}),v.promise},register:function(k){var v=_(),O=e.createRegisterUrl(),L=y(k),M=u(O,"_blank",L);return M.addEventListener("loadstart",function(K){if(K.url.indexOf(R())==0){M.close();var ve=T(K.url);ne(ve,v)}}),v.promise},accountManagement:function(){var k=e.createAccountUrl();if(typeof k<"u"){var v=u(k,"_blank","location=no");v.addEventListener("loadstart",function(O){O.url.indexOf(R())==0&&v.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(k){return R()}}}if(i=="cordova-native")return s.enable=!1,{login:function(k){var v=_(),O=e.createLoginUrl(k);return universalLinks.subscribe("keycloak",function(L){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var M=T(L.url);ne(M,v)}),window.cordova.plugins.browsertab.openUrl(O),v.promise},logout:function(k){var v=_(),O=e.createLogoutUrl(k);return universalLinks.subscribe("keycloak",function(L){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),v.setSuccess()}),window.cordova.plugins.browsertab.openUrl(O),v.promise},register:function(k){var v=_(),O=e.createRegisterUrl(k);return universalLinks.subscribe("keycloak",function(L){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var M=T(L.url);ne(M,v)}),window.cordova.plugins.browsertab.openUrl(O),v.promise},accountManagement:function(){var k=e.createAccountUrl();if(typeof k<"u")window.cordova.plugins.browsertab.openUrl(k);else throw"Not supported by the OIDC server"},redirectUri:function(k){return k&&k.redirectUri?k.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+i}var se=function(){if(!(this instanceof se))return new se;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var i=this;function u(){for(var m=new Date().getTime(),A=0;A<localStorage.length;A++){var y=localStorage.key(A);if(y&&y.indexOf("kc-callback-")==0){var R=localStorage.getItem(y);if(R)try{var k=JSON.parse(R).expires;(!k||k<m)&&localStorage.removeItem(y)}catch{localStorage.removeItem(y)}}}}i.get=function(m){if(m){var A="kc-callback-"+m,y=localStorage.getItem(A);return y&&(localStorage.removeItem(A),y=JSON.parse(y)),u(),y}},i.add=function(m){u();var A="kc-callback-"+m.state;m.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(A,JSON.stringify(m))}},be=function(){if(!(this instanceof be))return new be;var i=this;i.get=function(y){if(y){var R=m("kc-callback-"+y);if(A("kc-callback-"+y,"",u(-100)),R)return JSON.parse(R)}},i.add=function(y){A("kc-callback-"+y.state,JSON.stringify(y),u(60))},i.removeItem=function(y){A(y,"",u(-100))};var u=function(y){var R=new Date;return R.setTime(R.getTime()+y*60*1e3),R},m=function(y){for(var R=y+"=",k=document.cookie.split(";"),v=0;v<k.length;v++){for(var O=k[v];O.charAt(0)==" ";)O=O.substring(1);if(O.indexOf(R)==0)return O.substring(R.length,O.length)}return""},A=function(y,R,k){var v=y+"="+R+"; expires="+k.toUTCString()+"; ";document.cookie=v}};function D(){try{return new se}catch{}return new be}function Ae(i){return function(){e.enableLogging&&i.apply(console,Array.prototype.slice.call(arguments))}}}async function Rl(){const t="silent-login.html",e=await fetch(location.origin+"/"+t).then(async n=>n.status!==200?!1:(await n.text()).includes("silent-login-iframe-result")).catch(()=>!1);return e||(console.warn(`Arquivo ${t} não localizado no projeto ou não possui o conteúdo correto!`),document.body.innerHTML=`<div style="padding: 3rem; display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; font-size: 1.5rem;">O arquivo '${t}' não foi encontrado.</div>`),e}function Ll(t){const e=new Ar(t),n={},o=async(a={},f)=>{if(await Rl())return a.onLoad==="login-required"&&document.documentElement.setAttribute("data-app-message","Autorizando..."),e.init(a).then(async w=>{w&&await r(),f&&typeof f=="function"&&f(),document.documentElement.classList.add("app-mounted")}).catch(w=>{console.error(w),document.documentElement.setAttribute("data-app-message","Não foi possível conectar no servidor de autenticação.")})},r=async()=>{const a=await e.loadUserInfo();n.email=a.email??"",n.emailVerified=a.email_verified===!0,n.firstName=a.given_name??"",n.lastName=a.family_name??"",n.name=a.name??"",n.sub=a.sub??"",n.username=a.preferred_username??"",n.roles=[...a.role??[]],n.groups=[...a.group??[]],n.IsInRole=f=>n.roles.includes(f),sessionStorage.setItem("name",n.name)};return{Instance:e,User:n,Init:o,Logout:()=>{e.logout({redirectUri:location.origin}).then(()=>{sessionStorage.removeItem("name")})}}}const Ol=t=>Ll(t);class zn{constructor(e=null){We(this,"errors",[]);We(this,"_value",null);We(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))}}const ld="",ud="";function vr(t,e){return function(){return t.apply(e,arguments)}}const{toString:Il}=Object.prototype,{getPrototypeOf:Wn}=Object,en=(t=>e=>{const n=Il.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),De=t=>(t=t.toLowerCase(),e=>en(e)===t),tn=t=>e=>typeof e===t,{isArray:pt}=Array,Ft=tn("undefined");function Bl(t){return t!==null&&!Ft(t)&&t.constructor!==null&&!Ft(t.constructor)&&Ie(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Sr=De("ArrayBuffer");function Fl(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Sr(t.buffer),e}const Nl=tn("string"),Ie=tn("function"),Cr=tn("number"),nn=t=>t!==null&&typeof t=="object",Ul=t=>t===!0||t===!1,on=t=>{if(en(t)!=="object")return!1;const e=Wn(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Dl=De("Date"),Ml=De("File"),$l=De("Blob"),Hl=De("FileList"),jl=t=>nn(t)&&Ie(t.pipe),Vl=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ie(t.append)&&((e=en(t))==="formdata"||e==="object"&&Ie(t.toString)&&t.toString()==="[object FormData]"))},zl=De("URLSearchParams"),Wl=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Nt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let o,r;if(typeof t!="object"&&(t=[t]),pt(t))for(o=0,r=t.length;o<r;o++)e.call(null,t[o],o,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let f;for(o=0;o<a;o++)f=s[o],e.call(null,t[f],f,t)}}function xr(t,e){e=e.toLowerCase();const n=Object.keys(t);let o=n.length,r;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const _r=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Tr=t=>!Ft(t)&&t!==_r;function qn(){const{caseless:t}=Tr(this)&&this||{},e={},n=(o,r)=>{const s=t&&xr(e,r)||r;on(e[s])&&on(o)?e[s]=qn(e[s],o):on(o)?e[s]=qn({},o):pt(o)?e[s]=o.slice():e[s]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Nt(arguments[o],n);return e}const ql=(t,e,n,{allOwnKeys:o}={})=>(Nt(e,(r,s)=>{n&&Ie(r)?t[s]=vr(r,n):t[s]=r},{allOwnKeys:o}),t),Kl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Gl=(t,e,n,o)=>{t.prototype=Object.create(e.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Jl=(t,e,n,o)=>{let r,s,a;const f={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),s=r.length;s-- >0;)a=r[s],(!o||o(a,t,e))&&!f[a]&&(e[a]=t[a],f[a]=!0);t=n!==!1&&Wn(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Yl=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const o=t.indexOf(e,n);return o!==-1&&o===n},Xl=t=>{if(!t)return null;if(pt(t))return t;let e=t.length;if(!Cr(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Zl=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Wn(Uint8Array)),Ql=(t,e)=>{const o=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=o.next())&&!r.done;){const s=r.value;e.call(t,s[0],s[1])}},eu=(t,e)=>{let n;const o=[];for(;(n=t.exec(e))!==null;)o.push(n);return o},tu=De("HTMLFormElement"),nu=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),Pr=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ou=De("RegExp"),Rr=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),o={};Nt(n,(r,s)=>{let a;(a=e(r,s,t))!==!1&&(o[s]=a||r)}),Object.defineProperties(t,o)},ru=t=>{Rr(t,(e,n)=>{if(Ie(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=t[n];if(Ie(o)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},su=(t,e)=>{const n={},o=r=>{r.forEach(s=>{n[s]=!0})};return pt(t)?o(t):o(String(t).split(e)),n},iu=()=>{},au=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Kn="abcdefghijklmnopqrstuvwxyz",Lr="0123456789",Or={DIGIT:Lr,ALPHA:Kn,ALPHA_DIGIT:Kn+Kn.toUpperCase()+Lr},cu=(t=16,e=Or.ALPHA_DIGIT)=>{let n="";const{length:o}=e;for(;t--;)n+=e[Math.random()*o|0];return n};function lu(t){return!!(t&&Ie(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const uu=t=>{const e=new Array(10),n=(o,r)=>{if(nn(o)){if(e.indexOf(o)>=0)return;if(!("toJSON"in o)){e[r]=o;const s=pt(o)?[]:{};return Nt(o,(a,f)=>{const l=n(a,r+1);!Ft(l)&&(s[f]=l)}),e[r]=void 0,s}}return o};return n(t,0)},du=De("AsyncFunction"),p={isArray:pt,isArrayBuffer:Sr,isBuffer:Bl,isFormData:Vl,isArrayBufferView:Fl,isString:Nl,isNumber:Cr,isBoolean:Ul,isObject:nn,isPlainObject:on,isUndefined:Ft,isDate:Dl,isFile:Ml,isBlob:$l,isRegExp:ou,isFunction:Ie,isStream:jl,isURLSearchParams:zl,isTypedArray:Zl,isFileList:Hl,forEach:Nt,merge:qn,extend:ql,trim:Wl,stripBOM:Kl,inherits:Gl,toFlatObject:Jl,kindOf:en,kindOfTest:De,endsWith:Yl,toArray:Xl,forEachEntry:Ql,matchAll:eu,isHTMLForm:tu,hasOwnProperty:Pr,hasOwnProp:Pr,reduceDescriptors:Rr,freezeMethods:ru,toObjectSet:su,toCamelCase:nu,noop:iu,toFiniteNumber:au,findKey:xr,global:_r,isContextDefined:Tr,ALPHABET:Or,generateString:cu,isSpecCompliantForm:lu,toJSONObject:uu,isAsyncFn:du,isThenable:t=>t&&(nn(t)||Ie(t))&&Ie(t.then)&&Ie(t.catch)};function J(t,e,n,o,r){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),o&&(this.request=o),r&&(this.response=r)}p.inherits(J,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:p.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ir=J.prototype,Br={};["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=>{Br[t]={value:t}}),Object.defineProperties(J,Br),Object.defineProperty(Ir,"isAxiosError",{value:!0}),J.from=(t,e,n,o,r,s)=>{const a=Object.create(Ir);return p.toFlatObject(t,a,function(l){return l!==Error.prototype},f=>f!=="isAxiosError"),J.call(a,t.message,e,n,o,r),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const fu=null;function Gn(t){return p.isPlainObject(t)||p.isArray(t)}function Fr(t){return p.endsWith(t,"[]")?t.slice(0,-2):t}function Nr(t,e,n){return t?t.concat(e).map(function(r,s){return r=Fr(r),!n&&s?"["+r+"]":r}).join(n?".":""):e}function hu(t){return p.isArray(t)&&!t.some(Gn)}const pu=p.toFlatObject(p,{},null,function(e){return/^is[A-Z]/.test(e)});function rn(t,e,n){if(!p.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=p.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,X){return!p.isUndefined(X[N])});const o=n.metaTokens,r=n.visitor||C,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&p.isSpecCompliantForm(e);if(!p.isFunction(r))throw new TypeError("visitor must be a function");function w(B){if(B===null)return"";if(p.isDate(B))return B.toISOString();if(!l&&p.isBlob(B))throw new J("Blob is not supported. Use a Buffer instead.");return p.isArrayBuffer(B)||p.isTypedArray(B)?l&&typeof Blob=="function"?new Blob([B]):Buffer.from(B):B}function C(B,N,X){let oe=B;if(B&&!X&&typeof B=="object"){if(p.endsWith(N,"{}"))N=o?N:N.slice(0,-2),B=JSON.stringify(B);else if(p.isArray(B)&&hu(B)||(p.isFileList(B)||p.endsWith(N,"[]"))&&(oe=p.toArray(B)))return N=Fr(N),oe.forEach(function($,ye){!(p.isUndefined($)||$===null)&&e.append(a===!0?Nr([N],ye,s):a===null?N:N+"[]",w($))}),!1}return Gn(B)?!0:(e.append(Nr(X,N,s),w(B)),!1)}const b=[],Y=Object.assign(pu,{defaultVisitor:C,convertValue:w,isVisitable:Gn});function H(B,N){if(!p.isUndefined(B)){if(b.indexOf(B)!==-1)throw Error("Circular reference detected in "+N.join("."));b.push(B),p.forEach(B,function(oe,ne){(!(p.isUndefined(oe)||oe===null)&&r.call(e,oe,p.isString(ne)?ne.trim():ne,N,Y))===!0&&H(oe,N?N.concat(ne):[ne])}),b.pop()}}if(!p.isObject(t))throw new TypeError("data must be an object");return H(t),e}function Ur(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return e[o]})}function Jn(t,e){this._pairs=[],t&&rn(t,this,e)}const Dr=Jn.prototype;Dr.append=function(e,n){this._pairs.push([e,n])},Dr.toString=function(e){const n=e?function(o){return e.call(this,o,Ur)}:Ur;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function mu(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mr(t,e,n){if(!e)return t;const o=n&&n.encode||mu,r=n&&n.serialize;let s;if(r?s=r(e,n):s=p.isURLSearchParams(e)?e.toString():new Jn(e,n).toString(o),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class gu{constructor(){this.handlers=[]}use(e,n,o){return this.handlers.push({fulfilled:e,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){p.forEach(this.handlers,function(o){o!==null&&e(o)})}}const $r=gu,Hr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yu={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Jn,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",bu=(t=>jr&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),wu=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Me={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:jr,hasStandardBrowserEnv:bu,hasStandardBrowserWebWorkerEnv:wu},Symbol.toStringTag,{value:"Module"})),...yu};function Eu(t,e){return rn(t,new Me.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,s){return Me.isNode&&p.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function ku(t){return p.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Au(t){const e={},n=Object.keys(t);let o;const r=n.length;let s;for(o=0;o<r;o++)s=n[o],e[s]=t[s];return e}function Vr(t){function e(n,o,r,s){let a=n[s++];if(a==="__proto__")return!0;const f=Number.isFinite(+a),l=s>=n.length;return a=!a&&p.isArray(r)?r.length:a,l?(p.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!f):((!r[a]||!p.isObject(r[a]))&&(r[a]=[]),e(n,o,r[a],s)&&p.isArray(r[a])&&(r[a]=Au(r[a])),!f)}if(p.isFormData(t)&&p.isFunction(t.entries)){const n={};return p.forEachEntry(t,(o,r)=>{e(ku(o),r,n,0)}),n}return null}function vu(t,e,n){if(p.isString(t))try{return(e||JSON.parse)(t),p.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(t)}const Yn={transitional:Hr,adapter:["xhr","http"],transformRequest:[function(e,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,s=p.isObject(e);if(s&&p.isHTMLForm(e)&&(e=new FormData(e)),p.isFormData(e))return r&&r?JSON.stringify(Vr(e)):e;if(p.isArrayBuffer(e)||p.isBuffer(e)||p.isStream(e)||p.isFile(e)||p.isBlob(e))return e;if(p.isArrayBufferView(e))return e.buffer;if(p.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let f;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Eu(e,this.formSerializer).toString();if((f=p.isFileList(e))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return rn(f?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),vu(e)):e}],transformResponse:[function(e){const n=this.transitional||Yn.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(e&&p.isString(e)&&(o&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(f){if(a)throw f.name==="SyntaxError"?J.from(f,J.ERR_BAD_RESPONSE,this,null,this.response):f}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch"],t=>{Yn.headers[t]={}});const Xn=Yn,Su=p.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"]),Cu=t=>{const e={};let n,o,r;return t&&t.split(`
80
+ `).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),o=a.substring(r+1).trim(),!(!n||e[n]&&Su[n])&&(n==="set-cookie"?e[n]?e[n].push(o):e[n]=[o]:e[n]=e[n]?e[n]+", "+o:o)}),e},zr=Symbol("internals");function Ut(t){return t&&String(t).trim().toLowerCase()}function sn(t){return t===!1||t==null?t:p.isArray(t)?t.map(sn):String(t)}function xu(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(t);)e[o[1]]=o[2];return e}const _u=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Zn(t,e,n,o,r){if(p.isFunction(o))return o.call(this,e,n);if(r&&(e=n),!!p.isString(e)){if(p.isString(o))return e.indexOf(o)!==-1;if(p.isRegExp(o))return o.test(e)}}function Tu(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,o)=>n.toUpperCase()+o)}function Pu(t,e){const n=p.toCamelCase(" "+e);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+n,{value:function(r,s,a){return this[o].call(this,e,r,s,a)},configurable:!0})})}class an{constructor(e){e&&this.set(e)}set(e,n,o){const r=this;function s(f,l,w){const C=Ut(l);if(!C)throw new Error("header name must be a non-empty string");const b=p.findKey(r,C);(!b||r[b]===void 0||w===!0||w===void 0&&r[b]!==!1)&&(r[b||l]=sn(f))}const a=(f,l)=>p.forEach(f,(w,C)=>s(w,C,l));return p.isPlainObject(e)||e instanceof this.constructor?a(e,n):p.isString(e)&&(e=e.trim())&&!_u(e)?a(Cu(e),n):e!=null&&s(n,e,o),this}get(e,n){if(e=Ut(e),e){const o=p.findKey(this,e);if(o){const r=this[o];if(!n)return r;if(n===!0)return xu(r);if(p.isFunction(n))return n.call(this,r,o);if(p.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Ut(e),e){const o=p.findKey(this,e);return!!(o&&this[o]!==void 0&&(!n||Zn(this,this[o],o,n)))}return!1}delete(e,n){const o=this;let r=!1;function s(a){if(a=Ut(a),a){const f=p.findKey(o,a);f&&(!n||Zn(o,o[f],f,n))&&(delete o[f],r=!0)}}return p.isArray(e)?e.forEach(s):s(e),r}clear(e){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const s=n[o];(!e||Zn(this,this[s],s,e,!0))&&(delete this[s],r=!0)}return r}normalize(e){const n=this,o={};return p.forEach(this,(r,s)=>{const a=p.findKey(o,s);if(a){n[a]=sn(r),delete n[s];return}const f=e?Tu(s):String(s).trim();f!==s&&delete n[s],n[f]=sn(r),o[f]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return p.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=e&&p.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
81
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const o=new this(e);return n.forEach(r=>o.set(r)),o}static accessor(e){const o=(this[zr]=this[zr]={accessors:{}}).accessors,r=this.prototype;function s(a){const f=Ut(a);o[f]||(Pu(r,a),o[f]=!0)}return p.isArray(e)?e.forEach(s):s(e),this}}an.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),p.reduceDescriptors(an.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(o){this[n]=o}}}),p.freezeMethods(an);const je=an;function Qn(t,e){const n=this||Xn,o=e||n,r=je.from(o.headers);let s=o.data;return p.forEach(t,function(f){s=f.call(n,s,r.normalize(),e?e.status:void 0)}),r.normalize(),s}function Wr(t){return!!(t&&t.__CANCEL__)}function Dt(t,e,n){J.call(this,t??"canceled",J.ERR_CANCELED,e,n),this.name="CanceledError"}p.inherits(Dt,J,{__CANCEL__:!0});function Ru(t,e,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?t(n):e(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Lu=Me.hasStandardBrowserEnv?{write(t,e,n,o,r,s){const a=[t+"="+encodeURIComponent(e)];p.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),p.isString(o)&&a.push("path="+o),p.isString(r)&&a.push("domain="+r),s===!0&&a.push("secure"),document.cookie=a.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 Ou(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Iu(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function qr(t,e){return t&&!Ou(e)?Iu(t,e):e}const Bu=Me.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function r(s){let a=s;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{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 o=r(window.location.href),function(a){const f=p.isString(a)?r(a):a;return f.protocol===o.protocol&&f.host===o.host}}():function(){return function(){return!0}}();function Fu(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Nu(t,e){t=t||10;const n=new Array(t),o=new Array(t);let r=0,s=0,a;return e=e!==void 0?e:1e3,function(l){const w=Date.now(),C=o[s];a||(a=w),n[r]=l,o[r]=w;let b=s,Y=0;for(;b!==r;)Y+=n[b++],b=b%t;if(r=(r+1)%t,r===s&&(s=(s+1)%t),w-a<e)return;const H=C&&w-C;return H?Math.round(Y*1e3/H):void 0}}function Kr(t,e){let n=0;const o=Nu(50,250);return r=>{const s=r.loaded,a=r.lengthComputable?r.total:void 0,f=s-n,l=o(f),w=s<=a;n=s;const C={loaded:s,total:a,progress:a?s/a:void 0,bytes:f,rate:l||void 0,estimated:l&&a&&w?(a-s)/l:void 0,event:r};C[e?"download":"upload"]=!0,t(C)}}const eo={http:fu,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,o){let r=t.data;const s=je.from(t.headers).normalize();let{responseType:a,withXSRFToken:f}=t,l;function w(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let C;if(p.isFormData(r)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((C=s.getContentType())!==!1){const[N,...X]=C?C.split(";").map(oe=>oe.trim()).filter(Boolean):[];s.setContentType([N||"multipart/form-data",...X].join("; "))}}let b=new XMLHttpRequest;if(t.auth){const N=t.auth.username||"",X=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.set("Authorization","Basic "+btoa(N+":"+X))}const Y=qr(t.baseURL,t.url);b.open(t.method.toUpperCase(),Mr(Y,t.params,t.paramsSerializer),!0),b.timeout=t.timeout;function H(){if(!b)return;const N=je.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),oe={data:!a||a==="text"||a==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:N,config:t,request:b};Ru(function($){n($),w()},function($){o($),w()},oe),b=null}if("onloadend"in b?b.onloadend=H:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(H)},b.onabort=function(){b&&(o(new J("Request aborted",J.ECONNABORTED,t,b)),b=null)},b.onerror=function(){o(new J("Network Error",J.ERR_NETWORK,t,b)),b=null},b.ontimeout=function(){let X=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const oe=t.transitional||Hr;t.timeoutErrorMessage&&(X=t.timeoutErrorMessage),o(new J(X,oe.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,t,b)),b=null},Me.hasStandardBrowserEnv&&(f&&p.isFunction(f)&&(f=f(t)),f||f!==!1&&Bu(Y))){const N=t.xsrfHeaderName&&t.xsrfCookieName&&Lu.read(t.xsrfCookieName);N&&s.set(t.xsrfHeaderName,N)}r===void 0&&s.setContentType(null),"setRequestHeader"in b&&p.forEach(s.toJSON(),function(X,oe){b.setRequestHeader(oe,X)}),p.isUndefined(t.withCredentials)||(b.withCredentials=!!t.withCredentials),a&&a!=="json"&&(b.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&b.addEventListener("progress",Kr(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&b.upload&&b.upload.addEventListener("progress",Kr(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=N=>{b&&(o(!N||N.type?new Dt(null,t,b):N),b.abort(),b=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const B=Fu(Y);if(B&&Me.protocols.indexOf(B)===-1){o(new J("Unsupported protocol "+B+":",J.ERR_BAD_REQUEST,t));return}b.send(r||null)})}};p.forEach(eo,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Gr=t=>`- ${t}`,Uu=t=>p.isFunction(t)||t===null||t===!1,Jr={getAdapter:t=>{t=p.isArray(t)?t:[t];const{length:e}=t;let n,o;const r={};for(let s=0;s<e;s++){n=t[s];let a;if(o=n,!Uu(n)&&(o=eo[(a=String(n)).toLowerCase()],o===void 0))throw new J(`Unknown adapter '${a}'`);if(o)break;r[a||"#"+s]=o}if(!o){const s=Object.entries(r).map(([f,l])=>`adapter ${f} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since :
82
+ `+s.map(Gr).join(`
83
+ `):" "+Gr(s[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:eo};function to(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Dt(null,t)}function Yr(t){return to(t),t.headers=je.from(t.headers),t.data=Qn.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Jr.getAdapter(t.adapter||Xn.adapter)(t).then(function(o){return to(t),o.data=Qn.call(t,t.transformResponse,o),o.headers=je.from(o.headers),o},function(o){return Wr(o)||(to(t),o&&o.response&&(o.response.data=Qn.call(t,t.transformResponse,o.response),o.response.headers=je.from(o.response.headers))),Promise.reject(o)})}const Xr=t=>t instanceof je?t.toJSON():t;function mt(t,e){e=e||{};const n={};function o(w,C,b){return p.isPlainObject(w)&&p.isPlainObject(C)?p.merge.call({caseless:b},w,C):p.isPlainObject(C)?p.merge({},C):p.isArray(C)?C.slice():C}function r(w,C,b){if(p.isUndefined(C)){if(!p.isUndefined(w))return o(void 0,w,b)}else return o(w,C,b)}function s(w,C){if(!p.isUndefined(C))return o(void 0,C)}function a(w,C){if(p.isUndefined(C)){if(!p.isUndefined(w))return o(void 0,w)}else return o(void 0,C)}function f(w,C,b){if(b in e)return o(w,C);if(b in t)return o(void 0,w)}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:f,headers:(w,C)=>r(Xr(w),Xr(C),!0)};return p.forEach(Object.keys(Object.assign({},t,e)),function(C){const b=l[C]||r,Y=b(t[C],e[C],C);p.isUndefined(Y)&&b!==f||(n[C]=Y)}),n}const Zr="1.6.5",no={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{no[t]=function(o){return typeof o===t||"a"+(e<1?"n ":" ")+t}});const Qr={};no.transitional=function(e,n,o){function r(s,a){return"[Axios v"+Zr+"] Transitional option '"+s+"'"+a+(o?". "+o:"")}return(s,a,f)=>{if(e===!1)throw new J(r(a," has been removed"+(n?" in "+n:"")),J.ERR_DEPRECATED);return n&&!Qr[a]&&(Qr[a]=!0,console.warn(r(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,f):!0}};function Du(t,e,n){if(typeof t!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let r=o.length;for(;r-- >0;){const s=o[r],a=e[s];if(a){const f=t[s],l=f===void 0||a(f,s,t);if(l!==!0)throw new J("option "+s+" must be "+l,J.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new J("Unknown option "+s,J.ERR_BAD_OPTION)}}const oo={assertOptions:Du,validators:no},Ge=oo.validators;class cn{constructor(e){this.defaults=e,this.interceptors={request:new $r,response:new $r}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=mt(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:s}=n;o!==void 0&&oo.assertOptions(o,{silentJSONParsing:Ge.transitional(Ge.boolean),forcedJSONParsing:Ge.transitional(Ge.boolean),clarifyTimeoutError:Ge.transitional(Ge.boolean)},!1),r!=null&&(p.isFunction(r)?n.paramsSerializer={serialize:r}:oo.assertOptions(r,{encode:Ge.function,serialize:Ge.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&p.merge(s.common,s[n.method]);s&&p.forEach(["delete","get","head","post","put","patch","common"],B=>{delete s[B]}),n.headers=je.concat(a,s);const f=[];let l=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(n)===!1||(l=l&&N.synchronous,f.unshift(N.fulfilled,N.rejected))});const w=[];this.interceptors.response.forEach(function(N){w.push(N.fulfilled,N.rejected)});let C,b=0,Y;if(!l){const B=[Yr.bind(this),void 0];for(B.unshift.apply(B,f),B.push.apply(B,w),Y=B.length,C=Promise.resolve(n);b<Y;)C=C.then(B[b++],B[b++]);return C}Y=f.length;let H=n;for(b=0;b<Y;){const B=f[b++],N=f[b++];try{H=B(H)}catch(X){N.call(this,X);break}}try{C=Yr.call(this,H)}catch(B){return Promise.reject(B)}for(b=0,Y=w.length;b<Y;)C=C.then(w[b++],w[b++]);return C}getUri(e){e=mt(this.defaults,e);const n=qr(e.baseURL,e.url);return Mr(n,e.params,e.paramsSerializer)}}p.forEach(["delete","get","head","options"],function(e){cn.prototype[e]=function(n,o){return this.request(mt(o||{},{method:e,url:n,data:(o||{}).data}))}}),p.forEach(["post","put","patch"],function(e){function n(o){return function(s,a,f){return this.request(mt(f||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}cn.prototype[e]=n(),cn.prototype[e+"Form"]=n(!0)});const ln=cn;class ro{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 o=this;this.promise.then(r=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](r);o._listeners=null}),this.promise.then=r=>{let s;const a=new Promise(f=>{o.subscribe(f),s=f}).then(r);return a.cancel=function(){o.unsubscribe(s)},a},e(function(s,a,f){o.reason||(o.reason=new Dt(s,a,f),n(o.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 ro(function(r){e=r}),cancel:e}}}const Mu=ro;function $u(t){return function(n){return t.apply(null,n)}}function Hu(t){return p.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});const ju=so;function es(t){const e=new ln(t),n=vr(ln.prototype.request,e);return p.extend(n,ln.prototype,e,{allOwnKeys:!0}),p.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return es(mt(t,r))},n}const re=es(Xn);re.Axios=ln,re.CanceledError=Dt,re.CancelToken=Mu,re.isCancel=Wr,re.VERSION=Zr,re.toFormData=rn,re.AxiosError=J,re.Cancel=re.CanceledError,re.all=function(e){return Promise.all(e)},re.spread=$u,re.isAxiosError=Hu,re.mergeConfig=mt,re.AxiosHeaders=je,re.formToJSON=t=>Vr(p.isHTMLForm(t)?new FormData(t):t),re.getAdapter=Jr.getAdapter,re.HttpStatusCode=ju,re.default=re;const Vu=re;class ts{constructor(e){We(this,"keycloak");We(this,"axios");We(this,"fileName","silent-login.html");this.keycloak=e,this.axios=Vu.create(),this.axios.defaults.baseURL="https://localhost:5001/api",this.axios.defaults.headers.common["content-type"]="application/json",this.axios.defaults.timeout=1e3*60*5,this.axios.interceptors.request.use(async n=>{await this.SilentLogin();const o=this.keycloak.token;return n.headers.Authorization=`Bearer ${o}`,n})}ParseAppResult(e){try{const n=typeof e.hasSuccess=="boolean",o=typeof e.hasError=="boolean",r=typeof e.httpStatusCode=="number",s=Array.isArray(e.errors);return n&&o&&r&&s?e:null}catch{return null}}HandleThen(e){const n=new zn,o=this.ParseAppResult(e.data);return o===null?(n.value=e.data,n):o.hasError?(o.errors.forEach(r=>n.WithError(r)),n.httpStatusCode=o.httpStatusCode,n):(n.value=e.data.value,n)}HandleCatch(e){var r;const n=new zn,o=this.ParseAppResult((r=e.response)==null?void 0:r.data);return o===null?n.WithError(e.message):(n.WithErrors(o.errors),n.httpStatusCode=o.httpStatusCode),n}async SilentLogin(){return new Promise(async e=>{if(!this.isTokenExpired){e(!0);return}const n=this.GenerateIframe(),o=r=>{if(document.body.removeChild(n),window.removeEventListener("message",o),r.origin!==location.origin){e(!1);return}const s=r.data.action,a=r.data.code,f=r.data.state,l=r.data.error;if(s!=="silent-login-iframe-result"||l==="login_required"||!a){e(!1);return}const w=new XMLHttpRequest;w.open("POST",this.tokenExchangeUrl,!0),w.setRequestHeader("Content-type","application/x-www-form-urlencoded"),w.onreadystatechange=()=>{if(w.readyState===4){if(w.status===200){const C=JSON.parse(w.responseText);this.keycloak.setToken(C.access_token,null,C.id_token,new Date().getTime()),e(!0);return}e(!1)}},w.send(this.TokenExchangeParams(a,f))};window.addEventListener("message",o)}).then(e=>(e||(this.keycloak.clearToken(),this.keycloak.login()),e))}GetCodeVerifierFromState(e){const n=`kc-callback-${e}`,o=localStorage.getItem(n);if(o)return localStorage.removeItem(n),JSON.parse(o).pkceCodeVerifier}TokenExchangeParams(e,n){let o=`code=${e}&grant_type=authorization_code`;return o+=`&client_id=${encodeURIComponent(this.keycloak.clientId)}`,o+=`&redirect_uri=${this.silentLoginRedirectUrl}`,o+=`&code_verifier=${this.GetCodeVerifierFromState(n)}`,o}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 zu=t=>new ts(t);Hn.SetInitialTheme(),Q.AppResult=zn,Q.AxiosClient=ts,Q.Cor=pn,Q.SfButton=pl,Q.SfContent=sl,Q.SfIcon=Et,Q.SfLayout=el,Q.SfNavMenuLink=ol,Q.SfTabNavigation=dl,Q.Tamanho=ot,Q.UseAuthService=Ol,Q.UseAxiosClient=zu,Q.UseDialogService=br,Q.UseNavMenuService=hn,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})});
80
84
  //# sourceMappingURL=lib.umd.js.map