nectiasw 0.0.85 → 0.0.87

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/index.umd.js CHANGED
@@ -1280,7 +1280,7 @@ function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,a=r.create([0,1,2,3
1280
1280
  * sweetalert2 v11.14.5
1281
1281
  * Released under the MIT License.
1282
1282
  */
1283
- function EM(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function DM(e,t){return e.get(EM(e,t))}function OM(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}const MM={},TM=e=>new Promise((t=>{if(!e)return t();const n=window.scrollX,r=window.scrollY;MM.restoreFocusTimeout=setTimeout((()=>{MM.previousActiveElement instanceof HTMLElement?(MM.previousActiveElement.focus(),MM.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(n,r)})),NM="swal2-",AM=["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"].reduce(((e,t)=>(e[t]=NM+t,e)),{}),PM=["success","warning","info","question","error"].reduce(((e,t)=>(e[t]=NM+t,e)),{}),jM=e=>e.charAt(0).toUpperCase()+e.slice(1),RM=e=>{},LM=[],IM=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;var n;n=`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`,LM.includes(n)||(LM.push(n),RM(n))},FM=e=>"function"==typeof e?e():e,HM=e=>e&&"function"==typeof e.toPromise,BM=e=>HM(e)?e.toPromise():Promise.resolve(e),YM=e=>e&&Promise.resolve(e)===e,zM=()=>document.body.querySelector(`.${AM.container}`),WM=e=>{const t=zM();return t?t.querySelector(e):null},$M=e=>WM(`.${e}`),VM=()=>$M(AM.popup),UM=()=>$M(AM.icon),qM=()=>$M(AM.title),KM=()=>$M(AM["html-container"]),GM=()=>$M(AM.image),ZM=()=>$M(AM["progress-steps"]),QM=()=>$M(AM["validation-message"]),XM=()=>WM(`.${AM.actions} .${AM.confirm}`),JM=()=>WM(`.${AM.actions} .${AM.cancel}`),eT=()=>WM(`.${AM.actions} .${AM.deny}`),tT=()=>WM(`.${AM.loader}`),nT=()=>$M(AM.actions),rT=()=>$M(AM.footer),oT=()=>$M(AM["timer-progress-bar"]),iT=()=>$M(AM.close),aT=()=>{const e=VM();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort(((e,t)=>{const n=parseInt(e.getAttribute("tabindex")||"0"),r=parseInt(t.getAttribute("tabindex")||"0");return n>r?1:n<r?-1:0})),r=e.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),o=Array.from(r).filter((e=>"-1"!==e.getAttribute("tabindex")));return[...new Set(n.concat(o))].filter((e=>CT(e)))},sT=()=>uT(document.body,AM.shown)&&!uT(document.body,AM["toast-shown"])&&!uT(document.body,AM["no-backdrop"]),lT=()=>{const e=VM();return!!e&&uT(e,AM.toast)},cT=(e,t)=>{if(e.textContent="",t){const n=(new DOMParser).parseFromString(t,"text/html"),r=n.querySelector("head");r&&Array.from(r.childNodes).forEach((t=>{e.appendChild(t)}));const o=n.querySelector("body");o&&Array.from(o.childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},uT=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let r=0;r<n.length;r++)if(!e.classList.contains(n[r]))return!1;return!0},dT=(e,t,n)=>{if(((e,t)=>{Array.from(e.classList).forEach((n=>{Object.values(AM).includes(n)||Object.values(PM).includes(n)||Object.values(t.showClass||{}).includes(n)||e.classList.remove(n)}))})(e,t),!t.customClass)return;const r=t.customClass[n];r&&("string"==typeof r||r.forEach?mT(e,r):RM(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`))},hT=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${AM.popup} > .${AM[t]}`);case"checkbox":return e.querySelector(`.${AM.popup} > .${AM.checkbox} input`);case"radio":return e.querySelector(`.${AM.popup} > .${AM.radio} input:checked`)||e.querySelector(`.${AM.popup} > .${AM.radio} input:first-child`);case"range":return e.querySelector(`.${AM.popup} > .${AM.range} input`);default:return e.querySelector(`.${AM.popup} > .${AM.input}`)}},pT=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},fT=(e,t,n)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},mT=(e,t)=>{fT(e,t,!0)},gT=(e,t)=>{fT(e,t,!1)},vT=(e,t)=>{const n=Array.from(e.children);for(let r=0;r<n.length;r++){const e=n[r];if(e instanceof HTMLElement&&uT(e,t))return e}},yT=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||0===parseInt(n)?e.style.setProperty(t,"number"==typeof n?`${n}px`:n):e.style.removeProperty(t)},bT=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},wT=e=>{e&&(e.style.display="none")},xT=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";e&&new MutationObserver((()=>{kT(e,e.innerHTML,t)})).observe(e,{childList:!0,subtree:!0})},_T=(e,t,n,r)=>{const o=e.querySelector(t);o&&o.style.setProperty(n,r)},kT=function(e,t){t?bT(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):wT(e)},CT=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),ST=e=>!!(e.scrollHeight>e.clientHeight),ET=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},DT=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=oT();n&&CT(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"}),10))},OT=`\n <div aria-labelledby="${AM.title}" aria-describedby="${AM["html-container"]}" class="${AM.popup}" tabindex="-1">\n <button type="button" class="${AM.close}"></button>\n <ul class="${AM["progress-steps"]}"></ul>\n <div class="${AM.icon}"></div>\n <img class="${AM.image}" />\n <h2 class="${AM.title}" id="${AM.title}"></h2>\n <div class="${AM["html-container"]}" id="${AM["html-container"]}"></div>\n <input class="${AM.input}" id="${AM.input}" />\n <input type="file" class="${AM.file}" />\n <div class="${AM.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${AM.select}" id="${AM.select}"></select>\n <div class="${AM.radio}"></div>\n <label class="${AM.checkbox}">\n <input type="checkbox" id="${AM.checkbox}" />\n <span class="${AM.label}"></span>\n </label>\n <textarea class="${AM.textarea}" id="${AM.textarea}"></textarea>\n <div class="${AM["validation-message"]}" id="${AM["validation-message"]}"></div>\n <div class="${AM.actions}">\n <div class="${AM.loader}"></div>\n <button type="button" class="${AM.confirm}"></button>\n <button type="button" class="${AM.deny}"></button>\n <button type="button" class="${AM.cancel}"></button>\n </div>\n <div class="${AM.footer}"></div>\n <div class="${AM["timer-progress-bar-container"]}">\n <div class="${AM["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),MT=()=>{MM.currentInstance.resetValidationMessage()},TT=e=>{const t=(()=>{const e=zM();return!!e&&(e.remove(),gT([document.documentElement,document.body],[AM["no-backdrop"],AM["toast-shown"],AM["has-column"]]),!0)})();if("undefined"==typeof window||"undefined"==typeof document)return;const n=document.createElement("div");n.className=AM.container,t&&mT(n,AM["no-transition"]),cT(n,OT);const r="string"==typeof(o=e.target)?document.querySelector(o):o;var o;r.appendChild(n),(e=>{const t=VM();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&mT(zM(),AM.rtl)})(r),(()=>{const e=VM(),t=vT(e,AM.input),n=vT(e,AM.file),r=e.querySelector(`.${AM.range} input`),o=e.querySelector(`.${AM.range} output`),i=vT(e,AM.select),a=e.querySelector(`.${AM.checkbox} input`),s=vT(e,AM.textarea);t.oninput=MT,n.onchange=MT,i.onchange=MT,a.onchange=MT,s.oninput=MT,r.oninput=()=>{MT(),o.value=r.value},r.onchange=()=>{MT(),o.value=r.value}})()},NT=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?AT(e,t):e&&cT(t,e)},AT=(e,t)=>{e.jquery?PT(t,e):cT(t,e.toString())},PT=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},jT=(e,t)=>{const n=nT(),r=tT();n&&r&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?bT(n):wT(n),dT(n,t,"actions"),function(e,t,n){const r=XM(),o=eT(),i=JM();if(!r||!o||!i)return;RT(r,"confirm",n),RT(o,"deny",n),RT(i,"cancel",n),function(e,t,n,r){if(!r.buttonsStyling)return void gT([e,t,n],AM.styled);mT([e,t,n],AM.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,mT(e,AM["default-outline"]));r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,mT(t,AM["default-outline"]));r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,mT(n,AM["default-outline"]))}(r,o,i,n),n.reverseButtons&&(n.toast?(e.insertBefore(i,r),e.insertBefore(o,r)):(e.insertBefore(i,t),e.insertBefore(o,t),e.insertBefore(r,t)))}(n,r,t),cT(r,t.loaderHtml||""),dT(r,t,"loader"))};function RT(e,t,n){const r=jM(t);kT(e,n[`show${r}Button`],"inline-block"),cT(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=AM[t],dT(e,n,`${t}Button`)}const LT=(e,t)=>{const n=zM();n&&(!function(e,t){"string"==typeof t?e.style.background=t:t||mT([document.documentElement,document.body],AM["no-backdrop"])}(n,t.backdrop),function(e,t){if(!t)return;t in AM?mT(e,AM[t]):(RM('The "position" parameter is not valid, defaulting to "center"'),mT(e,AM.center))}(n,t.position),function(e,t){if(!t)return;mT(e,AM[`grow-${t}`])}(n,t.grow),dT(n,t,"container"))};var IT={innerParams:new WeakMap,domCache:new WeakMap};const FT=["input","file","range","select","radio","checkbox","textarea"],HT=e=>{if(!e.input)return;if(!UT[e.input])return Object.keys(UT).join(" | "),void e.input;const t=$T(e.input);if(!t)return;const n=UT[e.input](t,e);bT(t),e.inputAutoFocus&&setTimeout((()=>{pT(n)}))},BT=(e,t)=>{const n=VM();if(!n)return;const r=hT(n,e);if(r){(e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}})(r);for(const e in t)r.setAttribute(e,t[e])}},YT=e=>{if(!e.input)return;const t=$T(e.input);t&&dT(t,e,"input")},zT=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},WT=(e,t,n)=>{if(n.inputLabel){const r=document.createElement("label"),o=AM["input-label"];r.setAttribute("for",e.id),r.className=o,"object"==typeof n.customClass&&mT(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},$T=e=>{const t=VM();if(t)return vT(t,AM[e]||AM.input)},VT=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:YM(t)||RM(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},UT={};UT.text=UT.email=UT.password=UT.number=UT.tel=UT.url=UT.search=UT.date=UT["datetime-local"]=UT.time=UT.week=UT.month=(e,t)=>(VT(e,t.inputValue),WT(e,e,t),zT(e,t),e.type=t.input,e),UT.file=(e,t)=>(WT(e,e,t),zT(e,t),e),UT.range=(e,t)=>{const n=e.querySelector("input"),r=e.querySelector("output");return VT(n,t.inputValue),n.type=t.input,VT(r,t.inputValue),WT(n,e,t),e},UT.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");cT(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return WT(e,e,t),e},UT.radio=e=>(e.textContent="",e),UT.checkbox=(e,t)=>{const n=hT(VM(),"checkbox");n.value="1",n.checked=Boolean(t.inputValue);const r=e.querySelector("span");return cT(r,t.inputPlaceholder||t.inputLabel),n},UT.textarea=(e,t)=>{VT(e,t.inputValue),zT(e,t),WT(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const n=parseInt(window.getComputedStyle(VM()).width);new MutationObserver((()=>{if(!document.body.contains(e))return;const r=e.offsetWidth+(o=e,parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight));var o;r>n?VM().style.width=`${r}px`:yT(VM(),"width",t.width)})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const qT=(e,t)=>{const n=KM();n&&(xT(n),dT(n,t,"htmlContainer"),t.html?(NT(t.html,n),bT(n,"block")):t.text?(n.textContent=t.text,bT(n,"block")):wT(n),((e,t)=>{const n=VM();if(!n)return;const r=IT.innerParams.get(e),o=!r||t.input!==r.input;FT.forEach((e=>{const r=vT(n,AM[e]);r&&(BT(e,t.inputAttributes),r.className=AM[e],o&&wT(r))})),t.input&&(o&&HT(t),YT(t))})(e,t))},KT=(e,t)=>{for(const[n,r]of Object.entries(PM))t.icon!==n&&gT(e,r);mT(e,t.icon&&PM[t.icon]),QT(e,t),GT(),dT(e,t,"icon")},GT=()=>{const e=VM();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=t},ZT=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,r="";if(t.iconHtml)r=XT(t.iconHtml);else if("success"===t.icon)r='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n',n=n.replace(/ style=".*?"/g,"");else if("error"===t.icon)r='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n';else if(t.icon){r=XT({question:"?",warning:"!",info:"i"}[t.icon])}n.trim()!==r.trim()&&cT(e,r)},QT=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])_T(e,n,"background-color",t.iconColor);_T(e,".swal2-success-ring","border-color",t.iconColor)}},XT=e=>`<div class="${AM["icon-content"]}">${e}</div>`,JT=(e,t)=>{const n=t.showClass||{};e.className=`${AM.popup} ${CT(e)?n.popup:""}`,t.toast?(mT([document.documentElement,document.body],AM["toast-shown"]),mT(e,AM.toast)):mT(e,AM.modal),dT(e,t,"popup"),"string"==typeof t.customClass&&mT(e,t.customClass),t.icon&&mT(e,AM[`icon-${t.icon}`])},eN=e=>{const t=document.createElement("li");return mT(t,AM["progress-step"]),cT(t,e),t},tN=e=>{const t=document.createElement("li");return mT(t,AM["progress-step-line"]),e.progressStepsDistance&&yT(t,"width",e.progressStepsDistance),t},nN=(e,t)=>{((e,t)=>{const n=zM(),r=VM();if(n&&r){if(t.toast){yT(n,"width",t.width),r.style.width="100%";const e=tT();e&&r.insertBefore(e,UM())}else yT(r,"width",t.width);yT(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),wT(QM()),JT(r,t)}})(0,t),LT(0,t),((e,t)=>{const n=ZM();if(!n)return;const{progressSteps:r,currentProgressStep:o}=t;r&&0!==r.length&&void 0!==o?(bT(n),n.textContent="",o>=r.length&&RM("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach(((e,i)=>{const a=eN(e);if(n.appendChild(a),i===o&&mT(a,AM["active-progress-step"]),i!==r.length-1){const e=tN(t);n.appendChild(e)}}))):wT(n)})(0,t),((e,t)=>{const n=IT.innerParams.get(e),r=UM();if(r){if(n&&t.icon===n.icon)return ZT(r,t),void KT(r,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(PM).indexOf(t.icon))return t.icon,void wT(r);bT(r),ZT(r,t),KT(r,t),mT(r,t.showClass&&t.showClass.icon)}else wT(r)}})(e,t),((e,t)=>{const n=GM();n&&(t.imageUrl?(bT(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),yT(n,"width",t.imageWidth),yT(n,"height",t.imageHeight),n.className=AM.image,dT(n,t,"image")):wT(n))})(0,t),((e,t)=>{const n=qM();n&&(xT(n),kT(n,t.title||t.titleText,"block"),t.title&&NT(t.title,n),t.titleText&&(n.innerText=t.titleText),dT(n,t,"title"))})(0,t),((e,t)=>{const n=iT();n&&(cT(n,t.closeButtonHtml||""),dT(n,t,"closeButton"),kT(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))})(0,t),qT(e,t),jT(0,t),((e,t)=>{const n=rT();n&&(xT(n),kT(n,t.footer,"block"),t.footer&&NT(t.footer,n),dT(n,t,"footer"))})(0,t);const n=VM();"function"==typeof t.didRender&&n&&t.didRender(n),MM.eventEmitter.emit("didRender",n)},rN=()=>{var e;return null===(e=XM())||void 0===e?void 0:e.click()},oN=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),iN=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},aN=(e,t)=>{var n;const r=aT();if(r.length)return(e+=t)===r.length?e=0:-1===e&&(e=r.length-1),void r[e].focus();null===(n=VM())||void 0===n||n.focus()},sN=["ArrowRight","ArrowDown"],lN=["ArrowLeft","ArrowUp"],cN=(e,t,n)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?uN(t,e):"Tab"===t.key?dN(t):[...sN,...lN].includes(t.key)?hN(t.key):"Escape"===t.key&&pN(t,e,n)))},uN=(e,t)=>{if(!FM(t.allowEnterKey))return;const n=hT(VM(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;rN(),e.preventDefault()}},dN=e=>{const t=e.target,n=aT();let r=-1;for(let o=0;o<n.length;o++)if(t===n[o]){r=o;break}e.shiftKey?aN(r,-1):aN(r,1),e.stopPropagation(),e.preventDefault()},hN=e=>{const t=nT(),n=XM(),r=eT(),o=JM();if(!(t&&n&&r&&o))return;const i=[n,r,o];if(document.activeElement instanceof HTMLElement&&!i.includes(document.activeElement))return;const a=sN.includes(e)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;if(s){for(let e=0;e<t.children.length;e++){if(s=s[a],!s)return;if(s instanceof HTMLButtonElement&&CT(s))break}s instanceof HTMLButtonElement&&s.focus()}},pN=(e,t,n)=>{FM(t.allowEscapeKey)&&(e.preventDefault(),n(oN.esc))};var fN={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const mN=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},gN="undefined"!=typeof window&&!!window.GestureEvent,vN=()=>{const e=zM();if(!e)return;let t;e.ontouchstart=e=>{t=yN(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},yN=e=>{const t=e.target,n=zM(),r=KM();return!(!n||!r)&&(!bN(e)&&!wN(e)&&(t===n||!ST(n)&&t instanceof HTMLElement&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&(!ST(r)||!r.contains(t))))},bN=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,wN=e=>e.touches&&e.touches.length>1;let xN=null;const _N=e=>{null===xN&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(xN=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${xN+(()=>{const e=document.createElement("div");e.className=AM["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)};function kN(e,t,n,r){lT()?NN(e,r):(TM(n).then((()=>NN(e,r))),iN(MM)),gN?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),sT()&&(null!==xN&&(document.body.style.paddingRight=`${xN}px`,xN=null),(()=>{if(uT(document.body,AM.iosfix)){const e=parseInt(document.body.style.top,10);gT(document.body,AM.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),mN()),gT([document.documentElement,document.body],[AM.shown,AM["height-auto"],AM["no-backdrop"],AM["toast-shown"]])}function CN(e){e=ON(e);const t=fN.swalPromiseResolve.get(this),n=SN(this);this.isAwaitingPromise?e.isDismissed||(DN(this),t(e)):n&&t(e)}const SN=e=>{const t=VM();if(!t)return!1;const n=IT.innerParams.get(e);if(!n||uT(t,n.hideClass.popup))return!1;gT(t,n.showClass.popup),mT(t,n.hideClass.popup);const r=zM();return gT(r,n.showClass.backdrop),mT(r,n.hideClass.backdrop),MN(e,t,n),!0};function EN(e){const t=fN.swalPromiseReject.get(this);DN(this),t&&t(e)}const DN=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,IT.innerParams.get(e)||e._destroy())},ON=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),MN=(e,t,n)=>{var r;const o=zM(),i=ET(t);"function"==typeof n.willClose&&n.willClose(t),null===(r=MM.eventEmitter)||void 0===r||r.emit("willClose",t),i?TN(e,t,o,n.returnFocus,n.didClose):kN(e,o,n.returnFocus,n.didClose)},TN=(e,t,n,r,o)=>{MM.swalCloseEventFinishedCallback=kN.bind(null,e,n,r,o);const i=function(e){var n;e.target===t&&(null===(n=MM.swalCloseEventFinishedCallback)||void 0===n||n.call(MM),delete MM.swalCloseEventFinishedCallback,t.removeEventListener("animationend",i),t.removeEventListener("transitionend",i))};t.addEventListener("animationend",i),t.addEventListener("transitionend",i)},NN=(e,t)=>{setTimeout((()=>{var n;"function"==typeof t&&t.bind(e.params)(),null===(n=MM.eventEmitter)||void 0===n||n.emit("didClose"),e._destroy&&e._destroy()}))},AN=e=>{let t=VM();if(t||new cP,t=VM(),!t)return;const n=tT();lT()?wT(UM()):PN(t,e),bT(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},PN=(e,t)=>{const n=nT(),r=tT();n&&r&&(!t&&CT(XM())&&(t=XM()),bT(n),t&&(wT(t),r.setAttribute("data-button-to-replace",t.className),n.insertBefore(r,t)),mT([e,n],AM.loading))},jN=e=>e.checked?1:0,RN=e=>e.checked?e.value:null,LN=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,IN=(e,t)=>{const n=VM();if(!n)return;const r=e=>{"select"===t.input?function(e,t,n){const r=vT(e,AM.select);if(!r)return;const o=(e,t,r)=>{const o=document.createElement("option");o.value=r,cT(o,t),o.selected=BN(r,n.inputValue),e.appendChild(o)};t.forEach((e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,r.appendChild(e),n.forEach((t=>o(e,t[1],t[0])))}else o(r,n,t)})),r.focus()}(n,HN(e),t):"radio"===t.input&&function(e,t,n){const r=vT(e,AM.radio);if(!r)return;t.forEach((e=>{const t=e[0],o=e[1],i=document.createElement("input"),a=document.createElement("label");i.type="radio",i.name=AM.radio,i.value=t,BN(t,n.inputValue)&&(i.checked=!0);const s=document.createElement("span");cT(s,o),s.className=AM.label,a.appendChild(i),a.appendChild(s),r.appendChild(a)}));const o=r.querySelectorAll("input");o.length&&o[0].focus()}(n,HN(e),t)};HM(t.inputOptions)||YM(t.inputOptions)?(AN(XM()),BM(t.inputOptions).then((t=>{e.hideLoading(),r(t)}))):"object"==typeof t.inputOptions?r(t.inputOptions):t.inputOptions},FN=(e,t)=>{const n=e.getInput();n&&(wT(n),BM(t.inputValue).then((r=>{n.value="number"===t.input?`${parseFloat(r)||0}`:`${r}`,bT(n),n.focus(),e.hideLoading()})).catch((t=>{n.value="",bT(n),n.focus(),e.hideLoading()})))};const HN=e=>{const t=[];return e instanceof Map?e.forEach(((e,n)=>{let r=e;"object"==typeof r&&(r=HN(r)),t.push([n,r])})):Object.keys(e).forEach((n=>{let r=e[n];"object"==typeof r&&(r=HN(r)),t.push([n,r])})),t},BN=(e,t)=>!!t&&t.toString()===e.toString(),YN=(e,t)=>{const n=IT.innerParams.get(e);if(!n.input)return void jM(t);const r=e.getInput(),o=((e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return jN(n);case"radio":return RN(n);case"file":return LN(n);default:return t.inputAutoTrim?n.value.trim():n.value}})(e,n);n.inputValidator?zN(e,o,t):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||r.validationMessage)):"deny"===t?WN(e,o):UN(e,o)},zN=(e,t,n)=>{const r=IT.innerParams.get(e);e.disableInput();Promise.resolve().then((()=>BM(r.inputValidator(t,r.validationMessage)))).then((r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):"deny"===n?WN(e,t):UN(e,t)}))},WN=(e,t)=>{const n=IT.innerParams.get(e||void 0);if(n.showLoaderOnDeny&&AN(eT()),n.preDeny){e.isAwaitingPromise=!0;Promise.resolve().then((()=>BM(n.preDeny(t,n.validationMessage)))).then((n=>{!1===n?(e.hideLoading(),DN(e)):e.close({isDenied:!0,value:void 0===n?t:n})})).catch((t=>VN(e||void 0,t)))}else e.close({isDenied:!0,value:t})},$N=(e,t)=>{e.close({isConfirmed:!0,value:t})},VN=(e,t)=>{e.rejectPromise(t)},UN=(e,t)=>{const n=IT.innerParams.get(e||void 0);if(n.showLoaderOnConfirm&&AN(),n.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;Promise.resolve().then((()=>BM(n.preConfirm(t,n.validationMessage)))).then((n=>{CT(QM())||!1===n?(e.hideLoading(),DN(e)):$N(e,void 0===n?t:n)})).catch((t=>VN(e||void 0,t)))}else $N(e,t)};function qN(){const e=IT.innerParams.get(this);if(!e)return;const t=IT.domCache.get(this);wT(t.loader),lT()?e.icon&&bT(UM()):KN(t),gT([t.popup,t.actions],AM.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const KN=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?bT(t[0],"inline-block"):CT(XM())||CT(eT())||CT(JM())||wT(e.actions)};function GN(){const e=IT.innerParams.get(this),t=IT.domCache.get(this);return t?hT(t.popup,e.input):null}function ZN(e,t,n){const r=IT.domCache.get(e);t.forEach((e=>{r[e].disabled=n}))}function QN(e,t){const n=VM();if(n&&e)if("radio"===e.type){const e=n.querySelectorAll(`[name="${AM.radio}"]`);for(let n=0;n<e.length;n++)e[n].disabled=t}else e.disabled=t}function XN(){ZN(this,["confirmButton","denyButton","cancelButton"],!1)}function JN(){ZN(this,["confirmButton","denyButton","cancelButton"],!0)}function eA(){QN(this.getInput(),!1)}function tA(){QN(this.getInput(),!0)}function nA(e){const t=IT.domCache.get(this),n=IT.innerParams.get(this);cT(t.validationMessage,e),t.validationMessage.className=AM["validation-message"],n.customClass&&n.customClass.validationMessage&&mT(t.validationMessage,n.customClass.validationMessage),bT(t.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",AM["validation-message"]),pT(r),mT(r,AM.inputerror))}function rA(){const e=IT.domCache.get(this);e.validationMessage&&wT(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),gT(t,AM.inputerror))}const oA={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,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:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},iA=["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"],aA={allowEnterKey:void 0},sA=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],lA=e=>Object.prototype.hasOwnProperty.call(oA,e),cA=e=>-1!==iA.indexOf(e),uA=e=>aA[e],dA=e=>{lA(e)||RM(`Unknown parameter "${e}"`)},hA=e=>{sA.includes(e)&&RM(`The parameter "${e}" is incompatible with toasts`)},pA=e=>{const t=uA(e);t&&IM(e,t)};function fA(e){const t=VM(),n=IT.innerParams.get(this);if(!t||uT(t,n.hideClass.popup))return void RM("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=mA(e),o=Object.assign({},n,r);nN(this,o),IT.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const mA=e=>{const t={};return Object.keys(e).forEach((n=>{cA(n)?t[n]=e[n]:RM(`Invalid parameter to update: ${n}`)})),t};function gA(){const e=IT.domCache.get(this),t=IT.innerParams.get(this);t?(e.popup&&MM.swalCloseEventFinishedCallback&&(MM.swalCloseEventFinishedCallback(),delete MM.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),MM.eventEmitter.emit("didDestroy"),vA(this)):yA(this)}const vA=e=>{yA(e),delete e.params,delete MM.keydownHandler,delete MM.keydownTarget,delete MM.currentInstance},yA=e=>{e.isAwaitingPromise?(bA(IT,e),e.isAwaitingPromise=!0):(bA(fN,e),bA(IT,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},bA=(e,t)=>{for(const n in e)e[n].delete(t)};var wA=Object.freeze({__proto__:null,_destroy:gA,close:CN,closeModal:CN,closePopup:CN,closeToast:CN,disableButtons:JN,disableInput:tA,disableLoading:qN,enableButtons:XN,enableInput:eA,getInput:GN,handleAwaitingPromise:DN,hideLoading:qN,rejectPromise:EN,resetValidationMessage:rA,showValidationMessage:nA,update:fA});const xA=(e,t,n)=>{t.popup.onclick=()=>{e&&(_A(e)||e.timer||e.input)||n(oN.close)}},_A=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let kA=!1;const CA=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(kA=!0)}}},SA=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(kA=!0)}}},EA=(e,t,n)=>{t.container.onclick=r=>{kA?kA=!1:r.target===t.container&&FM(e.allowOutsideClick)&&n(oN.backdrop)}},DA=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const OA=()=>{if(MM.timeout)return(()=>{const e=oT();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${n}%`})(),MM.timeout.stop()},MA=()=>{if(MM.timeout){const e=MM.timeout.start();return DT(e),e}};let TA=!1;const NA={};const AA=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in NA){const n=t.getAttribute(e);if(n)return void NA[e].fire({template:n})}};MM.eventEmitter=new class{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const n=this._getHandlersByEventName(e);n.includes(t)||n.push(t)}once(e,t){var n=this;const r=function(){n.removeListener(e,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];t.apply(n,i)};this.on(e,r)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._getHandlersByEventName(e).forEach((e=>{try{e.apply(this,n)}catch(t){}}))}removeListener(e,t){const n=this._getHandlersByEventName(e),r=n.indexOf(t);r>-1&&n.splice(r,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}};var PA=Object.freeze({__proto__:null,argsToParams:e=>{const t={};return"object"!=typeof e[0]||DA(e[0])?["title","html","icon"].forEach(((n,r)=>{const o=e[r];("string"==typeof o||DA(o))&&(t[n]=o)})):Object.assign(t,e[0]),t},bindClickHandler:function(){NA[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,TA||(document.body.addEventListener("click",AA),TA=!0)},clickCancel:()=>{var e;return null===(e=JM())||void 0===e?void 0:e.click()},clickConfirm:rN,clickDeny:()=>{var e;return null===(e=eT())||void 0===e?void 0:e.click()},enableLoading:AN,fire:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)},getActions:nT,getCancelButton:JM,getCloseButton:iT,getConfirmButton:XM,getContainer:zM,getDenyButton:eT,getFocusableElements:aT,getFooter:rT,getHtmlContainer:KM,getIcon:UM,getIconContent:()=>$M(AM["icon-content"]),getImage:GM,getInputLabel:()=>$M(AM["input-label"]),getLoader:tT,getPopup:VM,getProgressSteps:ZM,getTimerLeft:()=>MM.timeout&&MM.timeout.getTimerLeft(),getTimerProgressBar:oT,getTitle:qM,getValidationMessage:QM,increaseTimer:e=>{if(MM.timeout){const t=MM.timeout.increase(e);return DT(t,!0),t}},isDeprecatedParameter:uA,isLoading:()=>{const e=VM();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>!(!MM.timeout||!MM.timeout.isRunning()),isUpdatableParameter:cA,isValidParameter:lA,isVisible:()=>CT(VM()),mixin:function(e){return class extends(this){_main(t,n){return super._main(t,Object.assign({},e,n))}}},off:(e,t)=>{e?t?MM.eventEmitter.removeListener(e,t):MM.eventEmitter.removeAllListeners(e):MM.eventEmitter.reset()},on:(e,t)=>{MM.eventEmitter.on(e,t)},once:(e,t)=>{MM.eventEmitter.once(e,t)},resumeTimer:MA,showLoading:AN,stopTimer:OA,toggleTimer:()=>{const e=MM.timeout;return e&&(e.running?OA():MA())}});class jA{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const RA=["swal-title","swal-html","swal-footer"],LA=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{$A(e,["name","value"]);const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(t[n]="boolean"==typeof oA[n]?"false"!==r:"object"==typeof oA[n]?JSON.parse(r):r)})),t},IA=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(t[n]=new Function(`return ${r}`)())})),t},FA=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{$A(e,["type","color","aria-label"]);const n=e.getAttribute("type");n&&["confirm","cancel","deny"].includes(n)&&(t[`${n}ButtonText`]=e.innerHTML,t[`show${jM(n)}Button`]=!0,e.hasAttribute("color")&&(t[`${n}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${n}ButtonAriaLabel`]=e.getAttribute("aria-label")))})),t},HA=e=>{const t={},n=e.querySelector("swal-image");return n&&($A(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},BA=e=>{const t={},n=e.querySelector("swal-icon");return n&&($A(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},YA=e=>{const t={},n=e.querySelector("swal-input");n&&($A(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(t.inputOptions={},r.forEach((e=>{$A(e,["value"]);const n=e.getAttribute("value");if(!n)return;const r=e.innerHTML;t.inputOptions[n]=r}))),t},zA=(e,t)=>{const n={};for(const r in t){const o=t[r],i=e.querySelector(o);i&&($A(i,[]),n[o.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},WA=e=>{const t=RA.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();t.includes(n)||RM(`Unrecognized element <${n}>`)}))},$A=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&RM([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])}))},VA=e=>{const t=zM(),n=VM();"function"==typeof e.willOpen&&e.willOpen(n),MM.eventEmitter.emit("willOpen",n);const r=window.getComputedStyle(document.body).overflowY;GA(t,n,e),setTimeout((()=>{qA(t,n)}),10),sT()&&(KA(t,e.scrollbarPadding,r),(()=>{const e=zM();Array.from(document.body.children).forEach((t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))}))})()),lT()||MM.previousActiveElement||(MM.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(n))),MM.eventEmitter.emit("didOpen",n),gT(t,AM["no-transition"])},UA=e=>{const t=VM();if(e.target!==t)return;const n=zM();t.removeEventListener("animationend",UA),t.removeEventListener("transitionend",UA),n.style.overflowY="auto"},qA=(e,t)=>{ET(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",UA),t.addEventListener("transitionend",UA)):e.style.overflowY="auto"},KA=(e,t,n)=>{(()=>{if(gN&&!uT(document.body,AM.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",mT(document.body,AM.iosfix),vN()}})(),t&&"hidden"!==n&&_N(n),setTimeout((()=>{e.scrollTop=0}))},GA=(e,t,n)=>{mT(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),bT(t,"grid"),setTimeout((()=>{mT(t,n.showClass.popup),t.style.removeProperty("opacity")}),10)):bT(t,"grid"),mT([document.documentElement,document.body],AM.shown),n.heightAuto&&n.backdrop&&!n.toast&&mT([document.documentElement,document.body],AM["height-auto"])};var ZA={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function QA(e){!function(e){e.inputValidator||("email"===e.input&&(e.inputValidator=ZA.email),"url"===e.input&&(e.inputValidator=ZA.url))}(e),e.showLoaderOnConfirm&&!e.preConfirm&&RM("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(RM('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),TT(e)}let XA;var JA=new WeakMap;class eP{constructor(){if(OM(this,JA,void 0),"undefined"==typeof window)return;XA=this;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Object.freeze(this.constructor.argsToParams(t));var o,i,a;this.params=r,this.isAwaitingPromise=!1,o=JA,i=this,a=this._main(XA.params),o.set(EM(o,i),a)}_main(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((e=>{!1===e.backdrop&&e.allowOutsideClick&&RM('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)dA(t),e.toast&&hA(t),pA(t)})(Object.assign({},t,e)),MM.currentInstance){const e=fN.swalPromiseResolve.get(MM.currentInstance),{isAwaitingPromise:t}=MM.currentInstance;MM.currentInstance._destroy(),t||e({isDismissed:!0}),sT()&&mN()}MM.currentInstance=XA;const n=nP(e,t);QA(n),Object.freeze(n),MM.timeout&&(MM.timeout.stop(),delete MM.timeout),clearTimeout(MM.restoreFocusTimeout);const r=rP(XA);return nN(XA,n),IT.innerParams.set(XA,n),tP(XA,r,n)}then(e){return DM(JA,this).then(e)}finally(e){return DM(JA,this).finally(e)}}const tP=(e,t,n)=>new Promise(((r,o)=>{const i=t=>{e.close({isDismissed:!0,dismiss:t})};fN.swalPromiseResolve.set(e,r),fN.swalPromiseReject.set(e,o),t.confirmButton.onclick=()=>{(e=>{const t=IT.innerParams.get(e);e.disableButtons(),t.input?YN(e,"confirm"):UN(e,!0)})(e)},t.denyButton.onclick=()=>{(e=>{const t=IT.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?YN(e,"deny"):WN(e,!1)})(e)},t.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(oN.cancel)})(e,i)},t.closeButton.onclick=()=>{i(oN.close)},((e,t,n)=>{e.toast?xA(e,t,n):(CA(t),SA(t),EA(e,t,n))})(n,t,i),((e,t,n)=>{iN(e),t.toast||(e.keydownHandler=e=>cN(t,e,n),e.keydownTarget=t.keydownListenerCapture?window:VM(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)})(MM,n,i),((e,t)=>{"select"===t.input||"radio"===t.input?IN(e,t):["text","email","number","tel","textarea"].some((e=>e===t.input))&&(HM(t.inputValue)||YM(t.inputValue))&&(AN(XM()),FN(e,t))})(e,n),VA(n),oP(MM,n,i),iP(t,n),setTimeout((()=>{t.container.scrollTop=0}))})),nP=(e,t)=>{const n=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return WA(n),Object.assign(LA(n),IA(n),FA(n),HA(n),BA(n),YA(n),zA(n,RA))})(e),r=Object.assign({},oA,t,n,e);return r.showClass=Object.assign({},oA.showClass,r.showClass),r.hideClass=Object.assign({},oA.hideClass,r.hideClass),!1===r.animation&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},rP=e=>{const t={popup:VM(),container:zM(),actions:nT(),confirmButton:XM(),denyButton:eT(),cancelButton:JM(),loader:tT(),closeButton:iT(),validationMessage:QM(),progressSteps:ZM()};return IT.domCache.set(e,t),t},oP=(e,t,n)=>{const r=oT();wT(r),t.timer&&(e.timeout=new jA((()=>{n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(bT(r),dT(r,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&DT(t.timer)}))))},iP=(e,t)=>{if(!t.toast)return FM(t.allowEnterKey)?void(aP(e)||sP(e,t)||aN(-1,1)):(IM("allowEnterKey"),void lP())},aP=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const n of t)if(n instanceof HTMLElement&&CT(n))return n.focus(),!0;return!1},sP=(e,t)=>t.focusDeny&&CT(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&CT(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!CT(e.confirmButton))&&(e.confirmButton.focus(),!0),lP=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}eP.prototype.disableButtons=JN,eP.prototype.enableButtons=XN,eP.prototype.getInput=GN,eP.prototype.disableInput=tA,eP.prototype.enableInput=eA,eP.prototype.hideLoading=qN,eP.prototype.disableLoading=qN,eP.prototype.showValidationMessage=nA,eP.prototype.resetValidationMessage=rA,eP.prototype.close=CN,eP.prototype.closePopup=CN,eP.prototype.closeModal=CN,eP.prototype.closeToast=CN,eP.prototype.rejectPromise=EN,eP.prototype.update=fA,eP.prototype._destroy=gA,Object.assign(eP,PA),Object.keys(wA).forEach((e=>{eP[e]=function(){return XA&&XA[e]?XA[e](...arguments):null}})),eP.DismissReason=oN,eP.version="11.14.5";const cP=eP;cP.default=cP,"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(r){n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:hsl(0,0%,33%);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid hsl(0,0%,85%);border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:hsl(0,0%,94%);color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:rgb(249.95234375,205.965625,167.74765625);color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:rgb(156.7033492823,224.2822966507,246.2966507177);color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:rgb(200.8064516129,217.9677419355,225.1935483871);color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}');const uP=["otic","otec","empresa"],dP=e=>{const t=uP.find((t=>e.includes(t)));return"empresa"===(null==t?void 0:t.toLowerCase())?"cliente":t??""},hP=e=>e??"",pP=t.memo((e=>{const{layout:n=!0,navbar:r=()=>!0,sidebar:o=()=>!0,footer:i,navigation:a,environment:s,previousPath:c=!1,includeNavbarDropdown:u}=e,d=t.useRef(!0),h=t.useRef(null==e?void 0:e.onAuthCallback),[p,f]=t.useState({}),m=t.useCallback((async()=>{var e;f((e=>({...e,loading:!0})));try{const t=await(null==(e=null==h?void 0:h.current)?void 0:e.call(h));f((e=>{var n,r,o,i;return{...e,info:null==t?void 0:t.info,user:null==t?void 0:t.user,ref:{lastName:hP(null==(n=null==e?void 0:e.user)?void 0:n.lastName),firstName:hP(null==(r=null==e?void 0:e.user)?void 0:r.firstName),role:dP((null==(i=null==(o=null==e?void 0:e.info)?void 0:o.realm_access)?void 0:i.roles)??[])},session:{token:null==t?void 0:t.token,refreshToken:null==t?void 0:t.refreshToken}}}))}catch(t){}finally{f((e=>({...e,loading:!1})))}}),[]);t.useEffect((()=>{m()}),[m]);const g=t.useCallback((e=>{e&&f(e)}),[]),v=t.useCallback((()=>{f({})}),[]),y=t.useCallback((async e=>{d.current&&(d.current=!1,await cP.fire({icon:"warning",text:"No tiene permisos para acceder a este recurso",title:"Acceso denegado",showCloseButton:!0,showCancelButton:!1,showConfirmButton:!1}),l.navigateToUrl(e),d.current=!0)}),[]),b=t.useMemo((()=>({...p,onClear:v,onSignal:g,onAcessDenied:y,environment:s})),[p,s,v,g,y]);return O.jsx(D_.Provider,{value:b,children:n?O.jsx(vk,{menu:a,includeFooter:i,previousPath:c,includeNavbar:null==r?void 0:r(p,p.loading),includeSidebar:null==o?void 0:o(p,p.loading),includeNavbarDropdown:u,children:p.loading?O.jsx(Bx,{status:!0}):e.children}):O.jsx(t.Fragment,{children:p.loading?O.jsx(Bx,{status:!0}):e.children})})}));var fP=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(fP||{}),mP=(e=>(e.INFO="#4caf50",e.WARN="#ff9800",e.ERROR="#f44336",e.DEBUG="#2196f3",e))(mP||{});class gP{constructor(e=1,t=!1){g(this,"logLevel"),g(this,"isDevelopment"),g(this,"logs"),this.logLevel=e,this.isDevelopment=t,this.logs=[]}debug(e,...t){this.logLevel<=0&&this.log("🐛",e,"#2196f3",...t)}info(e,...t){this.logLevel<=1&&this.log("â„šī¸",e,"#4caf50",...t)}warn(e,...t){this.logLevel<=2&&this.log("âš ī¸",e,"#ff9800",...t)}error(e,...t){this.logLevel<=3&&this.log("🚨",e,"#f44336",...t)}log(e,t,n,...r){const o=`${e} ${t}`;this.isDevelopment,this.logs.push(o)}getLogs(){return this.logs}}var vP=(e=>(e.IB="Integra Negocio",e.SP="Sistema de Perfilamiento v2",e))(vP||{});const yP=t.memo((({allow:e,grants:n,children:r})=>{var o;const i=t.useContext(D_),a=new gP(void 0,null==n?void 0:n.debug),[s,l]=t.useState(!1);t.useEffect((()=>{var e,t;(null==(t=null==(e=null==i?void 0:i.user)?void 0:e.systems)?void 0:t.length)&&c(i)}),[null==(o=null==i?void 0:i.user)?void 0:o.systems]);const c=t.useCallback((async t=>{var r,o;const s=null==(o=null==(r=null==t?void 0:t.user)?void 0:r.systems)?void 0:o.find((e=>e.name===(null==n?void 0:n.system)));if(a.debug("ref:",s),null==s?void 0:s.functions){s.functions.filter((t=>{const n=null==t?void 0:t.key;return null==e?void 0:e.includes(n)})).length===(null==e?void 0:e.length)?l(!0):(a.debug("denied"),(null==i?void 0:i.onAcessDenied)&&(null==i||i.onAcessDenied(null==n?void 0:n.redirect)))}}),[null==n?void 0:n.system,null==n?void 0:n.debug,e]);return O.jsx(O.Fragment,{children:s?r:null})}));yP.defaultProps={allow:[],grants:{debug:!1,system:"Integra Negocio",redirect:"/dashboard",popup:{text:"You don't have the required permissions to access this page.",title:"Access Denied"}}};class bP{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const wP="undefined"==typeof window||"Deno"in window;function xP(){}function _P(e){return"number"==typeof e&&e>=0&&e!==1/0}function kP(e,t,n){return r=e,Array.isArray(r)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e;var r}function CP(e,t){if(e===t)return e;const n=EP(e)&&EP(t);if(n||DP(e)&&DP(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const r=n?l:o[l];a[r]=CP(e[r],t[r]),a[r]===e[r]&&s++}return r===i&&s===r?e:a}return t}function SP(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function EP(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function DP(e){if(!OP(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!OP(n)&&!!n.hasOwnProperty("isPrototypeOf")}function OP(e){return"[object Object]"===Object.prototype.toString.call(e)}function MP(e){var t;(t=0,new Promise((e=>{setTimeout(e,t)}))).then(e)}function TP(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?CP(e,t):t}const NP=new class extends bP{constructor(){super(),this.setup=e=>{if(!wP&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},AP=["online","offline"];const PP=new class extends bP{constructor(){super(),this.setup=e=>{if(!wP&&window.addEventListener){const t=()=>e();return AP.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{AP.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};class jP{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}const RP=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const o=r=>{t?e.push(r):MP((()=>{n(r)}))},i=()=>{const t=e;e=[],t.length&&MP((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class LP extends bP{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),IP(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return FP(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return FP(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),"production"!==process.env.NODE_ENV&&void 0!==(null==e?void 0:e.isDataEqual)&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),SP(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&HP(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!SP(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(xP)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),wP||this.currentResult.isStale||!_P(this.options.staleTime))return;var e,t;const n=(e=this.currentResult.dataUpdatedAt,t=this.options.staleTime,Math.max(e+(t||0)-Date.now(),0))+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),n)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!wP&&!1!==this.options.enabled&&_P(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||NP.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,o=this.currentResult,i=this.currentResultState,a=this.currentResultOptions,s=e!==n,l=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:u}=e;let d,{dataUpdatedAt:h,error:p,errorUpdatedAt:f,fetchStatus:m,status:g}=u,v=!1,y=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&IP(e,t),a=o&&HP(e,n,t,r);(i||a)&&(m="online"!==(null!=(b=e.options.networkMode)?b:"online")||PP.isOnline()?"fetching":"paused",h||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}var b;if(t.keepPreviousData&&!u.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==g)d=c.data,h=c.dataUpdatedAt,g=c.status,v=!0;else if(t.select&&void 0!==u.data)if(o&&u.data===(null==i?void 0:i.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(u.data),d=TP(null==o?void 0:o.data,d,t),this.selectResult=d,this.selectError=null}catch(k){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(k),this.selectError=k}else d=u.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===g){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==a?void 0:a.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(k){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(k),this.selectError=k}void 0!==e&&(g="success",d=TP(null==o?void 0:o.data,e,t),y=!0)}this.selectError&&(p=this.selectError,d=this.selectResult,f=Date.now(),g="error");const w="fetching"===m,x="loading"===g,_="error"===g;return{status:g,fetchStatus:m,isLoading:x,isSuccess:"success"===g,isError:_,isInitialLoading:x&&w,data:d,dataUpdatedAt:h,error:p,errorUpdatedAt:f,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:_&&0===u.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:y,isPreviousData:v,isRefetchError:_&&0!==u.dataUpdatedAt,isStale:BP(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,SP(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||e.error instanceof jP||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){RP.batch((()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var i,a,s,l;null==(i=(a=this.options).onError)||i.call(a,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function IP(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&FP(e,t,t.refetchOnMount)}function FP(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&BP(e,t)}return!1}function HP(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&BP(e,n)}function BP(e,t){return e.isStaleByTime(t.staleTime)}var YP,zP={exports:{}},WP={};var $P,VP={};
1283
+ function EM(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function DM(e,t){return e.get(EM(e,t))}function OM(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}const MM={},TM=e=>new Promise((t=>{if(!e)return t();const n=window.scrollX,r=window.scrollY;MM.restoreFocusTimeout=setTimeout((()=>{MM.previousActiveElement instanceof HTMLElement?(MM.previousActiveElement.focus(),MM.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(n,r)})),NM="swal2-",AM=["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"].reduce(((e,t)=>(e[t]=NM+t,e)),{}),PM=["success","warning","info","question","error"].reduce(((e,t)=>(e[t]=NM+t,e)),{}),jM=e=>e.charAt(0).toUpperCase()+e.slice(1),RM=e=>{},LM=[],IM=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;var n;n=`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`,LM.includes(n)||(LM.push(n),RM(n))},FM=e=>"function"==typeof e?e():e,HM=e=>e&&"function"==typeof e.toPromise,BM=e=>HM(e)?e.toPromise():Promise.resolve(e),YM=e=>e&&Promise.resolve(e)===e,zM=()=>document.body.querySelector(`.${AM.container}`),WM=e=>{const t=zM();return t?t.querySelector(e):null},$M=e=>WM(`.${e}`),VM=()=>$M(AM.popup),UM=()=>$M(AM.icon),qM=()=>$M(AM.title),KM=()=>$M(AM["html-container"]),GM=()=>$M(AM.image),ZM=()=>$M(AM["progress-steps"]),QM=()=>$M(AM["validation-message"]),XM=()=>WM(`.${AM.actions} .${AM.confirm}`),JM=()=>WM(`.${AM.actions} .${AM.cancel}`),eT=()=>WM(`.${AM.actions} .${AM.deny}`),tT=()=>WM(`.${AM.loader}`),nT=()=>$M(AM.actions),rT=()=>$M(AM.footer),oT=()=>$M(AM["timer-progress-bar"]),iT=()=>$M(AM.close),aT=()=>{const e=VM();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort(((e,t)=>{const n=parseInt(e.getAttribute("tabindex")||"0"),r=parseInt(t.getAttribute("tabindex")||"0");return n>r?1:n<r?-1:0})),r=e.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),o=Array.from(r).filter((e=>"-1"!==e.getAttribute("tabindex")));return[...new Set(n.concat(o))].filter((e=>CT(e)))},sT=()=>uT(document.body,AM.shown)&&!uT(document.body,AM["toast-shown"])&&!uT(document.body,AM["no-backdrop"]),lT=()=>{const e=VM();return!!e&&uT(e,AM.toast)},cT=(e,t)=>{if(e.textContent="",t){const n=(new DOMParser).parseFromString(t,"text/html"),r=n.querySelector("head");r&&Array.from(r.childNodes).forEach((t=>{e.appendChild(t)}));const o=n.querySelector("body");o&&Array.from(o.childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},uT=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let r=0;r<n.length;r++)if(!e.classList.contains(n[r]))return!1;return!0},dT=(e,t,n)=>{if(((e,t)=>{Array.from(e.classList).forEach((n=>{Object.values(AM).includes(n)||Object.values(PM).includes(n)||Object.values(t.showClass||{}).includes(n)||e.classList.remove(n)}))})(e,t),!t.customClass)return;const r=t.customClass[n];r&&("string"==typeof r||r.forEach?mT(e,r):RM(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`))},hT=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${AM.popup} > .${AM[t]}`);case"checkbox":return e.querySelector(`.${AM.popup} > .${AM.checkbox} input`);case"radio":return e.querySelector(`.${AM.popup} > .${AM.radio} input:checked`)||e.querySelector(`.${AM.popup} > .${AM.radio} input:first-child`);case"range":return e.querySelector(`.${AM.popup} > .${AM.range} input`);default:return e.querySelector(`.${AM.popup} > .${AM.input}`)}},pT=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},fT=(e,t,n)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},mT=(e,t)=>{fT(e,t,!0)},gT=(e,t)=>{fT(e,t,!1)},vT=(e,t)=>{const n=Array.from(e.children);for(let r=0;r<n.length;r++){const e=n[r];if(e instanceof HTMLElement&&uT(e,t))return e}},yT=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||0===parseInt(n)?e.style.setProperty(t,"number"==typeof n?`${n}px`:n):e.style.removeProperty(t)},bT=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},wT=e=>{e&&(e.style.display="none")},xT=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";e&&new MutationObserver((()=>{kT(e,e.innerHTML,t)})).observe(e,{childList:!0,subtree:!0})},_T=(e,t,n,r)=>{const o=e.querySelector(t);o&&o.style.setProperty(n,r)},kT=function(e,t){t?bT(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):wT(e)},CT=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),ST=e=>!!(e.scrollHeight>e.clientHeight),ET=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},DT=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=oT();n&&CT(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"}),10))},OT=`\n <div aria-labelledby="${AM.title}" aria-describedby="${AM["html-container"]}" class="${AM.popup}" tabindex="-1">\n <button type="button" class="${AM.close}"></button>\n <ul class="${AM["progress-steps"]}"></ul>\n <div class="${AM.icon}"></div>\n <img class="${AM.image}" />\n <h2 class="${AM.title}" id="${AM.title}"></h2>\n <div class="${AM["html-container"]}" id="${AM["html-container"]}"></div>\n <input class="${AM.input}" id="${AM.input}" />\n <input type="file" class="${AM.file}" />\n <div class="${AM.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${AM.select}" id="${AM.select}"></select>\n <div class="${AM.radio}"></div>\n <label class="${AM.checkbox}">\n <input type="checkbox" id="${AM.checkbox}" />\n <span class="${AM.label}"></span>\n </label>\n <textarea class="${AM.textarea}" id="${AM.textarea}"></textarea>\n <div class="${AM["validation-message"]}" id="${AM["validation-message"]}"></div>\n <div class="${AM.actions}">\n <div class="${AM.loader}"></div>\n <button type="button" class="${AM.confirm}"></button>\n <button type="button" class="${AM.deny}"></button>\n <button type="button" class="${AM.cancel}"></button>\n </div>\n <div class="${AM.footer}"></div>\n <div class="${AM["timer-progress-bar-container"]}">\n <div class="${AM["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),MT=()=>{MM.currentInstance.resetValidationMessage()},TT=e=>{const t=(()=>{const e=zM();return!!e&&(e.remove(),gT([document.documentElement,document.body],[AM["no-backdrop"],AM["toast-shown"],AM["has-column"]]),!0)})();if("undefined"==typeof window||"undefined"==typeof document)return;const n=document.createElement("div");n.className=AM.container,t&&mT(n,AM["no-transition"]),cT(n,OT);const r="string"==typeof(o=e.target)?document.querySelector(o):o;var o;r.appendChild(n),(e=>{const t=VM();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&mT(zM(),AM.rtl)})(r),(()=>{const e=VM(),t=vT(e,AM.input),n=vT(e,AM.file),r=e.querySelector(`.${AM.range} input`),o=e.querySelector(`.${AM.range} output`),i=vT(e,AM.select),a=e.querySelector(`.${AM.checkbox} input`),s=vT(e,AM.textarea);t.oninput=MT,n.onchange=MT,i.onchange=MT,a.onchange=MT,s.oninput=MT,r.oninput=()=>{MT(),o.value=r.value},r.onchange=()=>{MT(),o.value=r.value}})()},NT=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?AT(e,t):e&&cT(t,e)},AT=(e,t)=>{e.jquery?PT(t,e):cT(t,e.toString())},PT=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},jT=(e,t)=>{const n=nT(),r=tT();n&&r&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?bT(n):wT(n),dT(n,t,"actions"),function(e,t,n){const r=XM(),o=eT(),i=JM();if(!r||!o||!i)return;RT(r,"confirm",n),RT(o,"deny",n),RT(i,"cancel",n),function(e,t,n,r){if(!r.buttonsStyling)return void gT([e,t,n],AM.styled);mT([e,t,n],AM.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,mT(e,AM["default-outline"]));r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,mT(t,AM["default-outline"]));r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,mT(n,AM["default-outline"]))}(r,o,i,n),n.reverseButtons&&(n.toast?(e.insertBefore(i,r),e.insertBefore(o,r)):(e.insertBefore(i,t),e.insertBefore(o,t),e.insertBefore(r,t)))}(n,r,t),cT(r,t.loaderHtml||""),dT(r,t,"loader"))};function RT(e,t,n){const r=jM(t);kT(e,n[`show${r}Button`],"inline-block"),cT(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=AM[t],dT(e,n,`${t}Button`)}const LT=(e,t)=>{const n=zM();n&&(!function(e,t){"string"==typeof t?e.style.background=t:t||mT([document.documentElement,document.body],AM["no-backdrop"])}(n,t.backdrop),function(e,t){if(!t)return;t in AM?mT(e,AM[t]):(RM('The "position" parameter is not valid, defaulting to "center"'),mT(e,AM.center))}(n,t.position),function(e,t){if(!t)return;mT(e,AM[`grow-${t}`])}(n,t.grow),dT(n,t,"container"))};var IT={innerParams:new WeakMap,domCache:new WeakMap};const FT=["input","file","range","select","radio","checkbox","textarea"],HT=e=>{if(!e.input)return;if(!UT[e.input])return Object.keys(UT).join(" | "),void e.input;const t=$T(e.input);if(!t)return;const n=UT[e.input](t,e);bT(t),e.inputAutoFocus&&setTimeout((()=>{pT(n)}))},BT=(e,t)=>{const n=VM();if(!n)return;const r=hT(n,e);if(r){(e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}})(r);for(const e in t)r.setAttribute(e,t[e])}},YT=e=>{if(!e.input)return;const t=$T(e.input);t&&dT(t,e,"input")},zT=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},WT=(e,t,n)=>{if(n.inputLabel){const r=document.createElement("label"),o=AM["input-label"];r.setAttribute("for",e.id),r.className=o,"object"==typeof n.customClass&&mT(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},$T=e=>{const t=VM();if(t)return vT(t,AM[e]||AM.input)},VT=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:YM(t)||RM(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},UT={};UT.text=UT.email=UT.password=UT.number=UT.tel=UT.url=UT.search=UT.date=UT["datetime-local"]=UT.time=UT.week=UT.month=(e,t)=>(VT(e,t.inputValue),WT(e,e,t),zT(e,t),e.type=t.input,e),UT.file=(e,t)=>(WT(e,e,t),zT(e,t),e),UT.range=(e,t)=>{const n=e.querySelector("input"),r=e.querySelector("output");return VT(n,t.inputValue),n.type=t.input,VT(r,t.inputValue),WT(n,e,t),e},UT.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");cT(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return WT(e,e,t),e},UT.radio=e=>(e.textContent="",e),UT.checkbox=(e,t)=>{const n=hT(VM(),"checkbox");n.value="1",n.checked=Boolean(t.inputValue);const r=e.querySelector("span");return cT(r,t.inputPlaceholder||t.inputLabel),n},UT.textarea=(e,t)=>{VT(e,t.inputValue),zT(e,t),WT(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const n=parseInt(window.getComputedStyle(VM()).width);new MutationObserver((()=>{if(!document.body.contains(e))return;const r=e.offsetWidth+(o=e,parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight));var o;r>n?VM().style.width=`${r}px`:yT(VM(),"width",t.width)})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const qT=(e,t)=>{const n=KM();n&&(xT(n),dT(n,t,"htmlContainer"),t.html?(NT(t.html,n),bT(n,"block")):t.text?(n.textContent=t.text,bT(n,"block")):wT(n),((e,t)=>{const n=VM();if(!n)return;const r=IT.innerParams.get(e),o=!r||t.input!==r.input;FT.forEach((e=>{const r=vT(n,AM[e]);r&&(BT(e,t.inputAttributes),r.className=AM[e],o&&wT(r))})),t.input&&(o&&HT(t),YT(t))})(e,t))},KT=(e,t)=>{for(const[n,r]of Object.entries(PM))t.icon!==n&&gT(e,r);mT(e,t.icon&&PM[t.icon]),QT(e,t),GT(),dT(e,t,"icon")},GT=()=>{const e=VM();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=t},ZT=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,r="";if(t.iconHtml)r=XT(t.iconHtml);else if("success"===t.icon)r='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n',n=n.replace(/ style=".*?"/g,"");else if("error"===t.icon)r='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n';else if(t.icon){r=XT({question:"?",warning:"!",info:"i"}[t.icon])}n.trim()!==r.trim()&&cT(e,r)},QT=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])_T(e,n,"background-color",t.iconColor);_T(e,".swal2-success-ring","border-color",t.iconColor)}},XT=e=>`<div class="${AM["icon-content"]}">${e}</div>`,JT=(e,t)=>{const n=t.showClass||{};e.className=`${AM.popup} ${CT(e)?n.popup:""}`,t.toast?(mT([document.documentElement,document.body],AM["toast-shown"]),mT(e,AM.toast)):mT(e,AM.modal),dT(e,t,"popup"),"string"==typeof t.customClass&&mT(e,t.customClass),t.icon&&mT(e,AM[`icon-${t.icon}`])},eN=e=>{const t=document.createElement("li");return mT(t,AM["progress-step"]),cT(t,e),t},tN=e=>{const t=document.createElement("li");return mT(t,AM["progress-step-line"]),e.progressStepsDistance&&yT(t,"width",e.progressStepsDistance),t},nN=(e,t)=>{((e,t)=>{const n=zM(),r=VM();if(n&&r){if(t.toast){yT(n,"width",t.width),r.style.width="100%";const e=tT();e&&r.insertBefore(e,UM())}else yT(r,"width",t.width);yT(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),wT(QM()),JT(r,t)}})(0,t),LT(0,t),((e,t)=>{const n=ZM();if(!n)return;const{progressSteps:r,currentProgressStep:o}=t;r&&0!==r.length&&void 0!==o?(bT(n),n.textContent="",o>=r.length&&RM("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach(((e,i)=>{const a=eN(e);if(n.appendChild(a),i===o&&mT(a,AM["active-progress-step"]),i!==r.length-1){const e=tN(t);n.appendChild(e)}}))):wT(n)})(0,t),((e,t)=>{const n=IT.innerParams.get(e),r=UM();if(r){if(n&&t.icon===n.icon)return ZT(r,t),void KT(r,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(PM).indexOf(t.icon))return t.icon,void wT(r);bT(r),ZT(r,t),KT(r,t),mT(r,t.showClass&&t.showClass.icon)}else wT(r)}})(e,t),((e,t)=>{const n=GM();n&&(t.imageUrl?(bT(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),yT(n,"width",t.imageWidth),yT(n,"height",t.imageHeight),n.className=AM.image,dT(n,t,"image")):wT(n))})(0,t),((e,t)=>{const n=qM();n&&(xT(n),kT(n,t.title||t.titleText,"block"),t.title&&NT(t.title,n),t.titleText&&(n.innerText=t.titleText),dT(n,t,"title"))})(0,t),((e,t)=>{const n=iT();n&&(cT(n,t.closeButtonHtml||""),dT(n,t,"closeButton"),kT(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))})(0,t),qT(e,t),jT(0,t),((e,t)=>{const n=rT();n&&(xT(n),kT(n,t.footer,"block"),t.footer&&NT(t.footer,n),dT(n,t,"footer"))})(0,t);const n=VM();"function"==typeof t.didRender&&n&&t.didRender(n),MM.eventEmitter.emit("didRender",n)},rN=()=>{var e;return null===(e=XM())||void 0===e?void 0:e.click()},oN=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),iN=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},aN=(e,t)=>{var n;const r=aT();if(r.length)return(e+=t)===r.length?e=0:-1===e&&(e=r.length-1),void r[e].focus();null===(n=VM())||void 0===n||n.focus()},sN=["ArrowRight","ArrowDown"],lN=["ArrowLeft","ArrowUp"],cN=(e,t,n)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?uN(t,e):"Tab"===t.key?dN(t):[...sN,...lN].includes(t.key)?hN(t.key):"Escape"===t.key&&pN(t,e,n)))},uN=(e,t)=>{if(!FM(t.allowEnterKey))return;const n=hT(VM(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;rN(),e.preventDefault()}},dN=e=>{const t=e.target,n=aT();let r=-1;for(let o=0;o<n.length;o++)if(t===n[o]){r=o;break}e.shiftKey?aN(r,-1):aN(r,1),e.stopPropagation(),e.preventDefault()},hN=e=>{const t=nT(),n=XM(),r=eT(),o=JM();if(!(t&&n&&r&&o))return;const i=[n,r,o];if(document.activeElement instanceof HTMLElement&&!i.includes(document.activeElement))return;const a=sN.includes(e)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;if(s){for(let e=0;e<t.children.length;e++){if(s=s[a],!s)return;if(s instanceof HTMLButtonElement&&CT(s))break}s instanceof HTMLButtonElement&&s.focus()}},pN=(e,t,n)=>{FM(t.allowEscapeKey)&&(e.preventDefault(),n(oN.esc))};var fN={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const mN=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},gN="undefined"!=typeof window&&!!window.GestureEvent,vN=()=>{const e=zM();if(!e)return;let t;e.ontouchstart=e=>{t=yN(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},yN=e=>{const t=e.target,n=zM(),r=KM();return!(!n||!r)&&(!bN(e)&&!wN(e)&&(t===n||!ST(n)&&t instanceof HTMLElement&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&(!ST(r)||!r.contains(t))))},bN=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,wN=e=>e.touches&&e.touches.length>1;let xN=null;const _N=e=>{null===xN&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(xN=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${xN+(()=>{const e=document.createElement("div");e.className=AM["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)};function kN(e,t,n,r){lT()?NN(e,r):(TM(n).then((()=>NN(e,r))),iN(MM)),gN?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),sT()&&(null!==xN&&(document.body.style.paddingRight=`${xN}px`,xN=null),(()=>{if(uT(document.body,AM.iosfix)){const e=parseInt(document.body.style.top,10);gT(document.body,AM.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),mN()),gT([document.documentElement,document.body],[AM.shown,AM["height-auto"],AM["no-backdrop"],AM["toast-shown"]])}function CN(e){e=ON(e);const t=fN.swalPromiseResolve.get(this),n=SN(this);this.isAwaitingPromise?e.isDismissed||(DN(this),t(e)):n&&t(e)}const SN=e=>{const t=VM();if(!t)return!1;const n=IT.innerParams.get(e);if(!n||uT(t,n.hideClass.popup))return!1;gT(t,n.showClass.popup),mT(t,n.hideClass.popup);const r=zM();return gT(r,n.showClass.backdrop),mT(r,n.hideClass.backdrop),MN(e,t,n),!0};function EN(e){const t=fN.swalPromiseReject.get(this);DN(this),t&&t(e)}const DN=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,IT.innerParams.get(e)||e._destroy())},ON=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),MN=(e,t,n)=>{var r;const o=zM(),i=ET(t);"function"==typeof n.willClose&&n.willClose(t),null===(r=MM.eventEmitter)||void 0===r||r.emit("willClose",t),i?TN(e,t,o,n.returnFocus,n.didClose):kN(e,o,n.returnFocus,n.didClose)},TN=(e,t,n,r,o)=>{MM.swalCloseEventFinishedCallback=kN.bind(null,e,n,r,o);const i=function(e){var n;e.target===t&&(null===(n=MM.swalCloseEventFinishedCallback)||void 0===n||n.call(MM),delete MM.swalCloseEventFinishedCallback,t.removeEventListener("animationend",i),t.removeEventListener("transitionend",i))};t.addEventListener("animationend",i),t.addEventListener("transitionend",i)},NN=(e,t)=>{setTimeout((()=>{var n;"function"==typeof t&&t.bind(e.params)(),null===(n=MM.eventEmitter)||void 0===n||n.emit("didClose"),e._destroy&&e._destroy()}))},AN=e=>{let t=VM();if(t||new cP,t=VM(),!t)return;const n=tT();lT()?wT(UM()):PN(t,e),bT(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},PN=(e,t)=>{const n=nT(),r=tT();n&&r&&(!t&&CT(XM())&&(t=XM()),bT(n),t&&(wT(t),r.setAttribute("data-button-to-replace",t.className),n.insertBefore(r,t)),mT([e,n],AM.loading))},jN=e=>e.checked?1:0,RN=e=>e.checked?e.value:null,LN=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,IN=(e,t)=>{const n=VM();if(!n)return;const r=e=>{"select"===t.input?function(e,t,n){const r=vT(e,AM.select);if(!r)return;const o=(e,t,r)=>{const o=document.createElement("option");o.value=r,cT(o,t),o.selected=BN(r,n.inputValue),e.appendChild(o)};t.forEach((e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,r.appendChild(e),n.forEach((t=>o(e,t[1],t[0])))}else o(r,n,t)})),r.focus()}(n,HN(e),t):"radio"===t.input&&function(e,t,n){const r=vT(e,AM.radio);if(!r)return;t.forEach((e=>{const t=e[0],o=e[1],i=document.createElement("input"),a=document.createElement("label");i.type="radio",i.name=AM.radio,i.value=t,BN(t,n.inputValue)&&(i.checked=!0);const s=document.createElement("span");cT(s,o),s.className=AM.label,a.appendChild(i),a.appendChild(s),r.appendChild(a)}));const o=r.querySelectorAll("input");o.length&&o[0].focus()}(n,HN(e),t)};HM(t.inputOptions)||YM(t.inputOptions)?(AN(XM()),BM(t.inputOptions).then((t=>{e.hideLoading(),r(t)}))):"object"==typeof t.inputOptions?r(t.inputOptions):t.inputOptions},FN=(e,t)=>{const n=e.getInput();n&&(wT(n),BM(t.inputValue).then((r=>{n.value="number"===t.input?`${parseFloat(r)||0}`:`${r}`,bT(n),n.focus(),e.hideLoading()})).catch((t=>{n.value="",bT(n),n.focus(),e.hideLoading()})))};const HN=e=>{const t=[];return e instanceof Map?e.forEach(((e,n)=>{let r=e;"object"==typeof r&&(r=HN(r)),t.push([n,r])})):Object.keys(e).forEach((n=>{let r=e[n];"object"==typeof r&&(r=HN(r)),t.push([n,r])})),t},BN=(e,t)=>!!t&&t.toString()===e.toString(),YN=(e,t)=>{const n=IT.innerParams.get(e);if(!n.input)return void jM(t);const r=e.getInput(),o=((e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return jN(n);case"radio":return RN(n);case"file":return LN(n);default:return t.inputAutoTrim?n.value.trim():n.value}})(e,n);n.inputValidator?zN(e,o,t):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||r.validationMessage)):"deny"===t?WN(e,o):UN(e,o)},zN=(e,t,n)=>{const r=IT.innerParams.get(e);e.disableInput();Promise.resolve().then((()=>BM(r.inputValidator(t,r.validationMessage)))).then((r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):"deny"===n?WN(e,t):UN(e,t)}))},WN=(e,t)=>{const n=IT.innerParams.get(e||void 0);if(n.showLoaderOnDeny&&AN(eT()),n.preDeny){e.isAwaitingPromise=!0;Promise.resolve().then((()=>BM(n.preDeny(t,n.validationMessage)))).then((n=>{!1===n?(e.hideLoading(),DN(e)):e.close({isDenied:!0,value:void 0===n?t:n})})).catch((t=>VN(e||void 0,t)))}else e.close({isDenied:!0,value:t})},$N=(e,t)=>{e.close({isConfirmed:!0,value:t})},VN=(e,t)=>{e.rejectPromise(t)},UN=(e,t)=>{const n=IT.innerParams.get(e||void 0);if(n.showLoaderOnConfirm&&AN(),n.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;Promise.resolve().then((()=>BM(n.preConfirm(t,n.validationMessage)))).then((n=>{CT(QM())||!1===n?(e.hideLoading(),DN(e)):$N(e,void 0===n?t:n)})).catch((t=>VN(e||void 0,t)))}else $N(e,t)};function qN(){const e=IT.innerParams.get(this);if(!e)return;const t=IT.domCache.get(this);wT(t.loader),lT()?e.icon&&bT(UM()):KN(t),gT([t.popup,t.actions],AM.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const KN=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?bT(t[0],"inline-block"):CT(XM())||CT(eT())||CT(JM())||wT(e.actions)};function GN(){const e=IT.innerParams.get(this),t=IT.domCache.get(this);return t?hT(t.popup,e.input):null}function ZN(e,t,n){const r=IT.domCache.get(e);t.forEach((e=>{r[e].disabled=n}))}function QN(e,t){const n=VM();if(n&&e)if("radio"===e.type){const e=n.querySelectorAll(`[name="${AM.radio}"]`);for(let n=0;n<e.length;n++)e[n].disabled=t}else e.disabled=t}function XN(){ZN(this,["confirmButton","denyButton","cancelButton"],!1)}function JN(){ZN(this,["confirmButton","denyButton","cancelButton"],!0)}function eA(){QN(this.getInput(),!1)}function tA(){QN(this.getInput(),!0)}function nA(e){const t=IT.domCache.get(this),n=IT.innerParams.get(this);cT(t.validationMessage,e),t.validationMessage.className=AM["validation-message"],n.customClass&&n.customClass.validationMessage&&mT(t.validationMessage,n.customClass.validationMessage),bT(t.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",AM["validation-message"]),pT(r),mT(r,AM.inputerror))}function rA(){const e=IT.domCache.get(this);e.validationMessage&&wT(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),gT(t,AM.inputerror))}const oA={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,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:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},iA=["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"],aA={allowEnterKey:void 0},sA=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],lA=e=>Object.prototype.hasOwnProperty.call(oA,e),cA=e=>-1!==iA.indexOf(e),uA=e=>aA[e],dA=e=>{lA(e)||RM(`Unknown parameter "${e}"`)},hA=e=>{sA.includes(e)&&RM(`The parameter "${e}" is incompatible with toasts`)},pA=e=>{const t=uA(e);t&&IM(e,t)};function fA(e){const t=VM(),n=IT.innerParams.get(this);if(!t||uT(t,n.hideClass.popup))return void RM("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=mA(e),o=Object.assign({},n,r);nN(this,o),IT.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const mA=e=>{const t={};return Object.keys(e).forEach((n=>{cA(n)?t[n]=e[n]:RM(`Invalid parameter to update: ${n}`)})),t};function gA(){const e=IT.domCache.get(this),t=IT.innerParams.get(this);t?(e.popup&&MM.swalCloseEventFinishedCallback&&(MM.swalCloseEventFinishedCallback(),delete MM.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),MM.eventEmitter.emit("didDestroy"),vA(this)):yA(this)}const vA=e=>{yA(e),delete e.params,delete MM.keydownHandler,delete MM.keydownTarget,delete MM.currentInstance},yA=e=>{e.isAwaitingPromise?(bA(IT,e),e.isAwaitingPromise=!0):(bA(fN,e),bA(IT,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},bA=(e,t)=>{for(const n in e)e[n].delete(t)};var wA=Object.freeze({__proto__:null,_destroy:gA,close:CN,closeModal:CN,closePopup:CN,closeToast:CN,disableButtons:JN,disableInput:tA,disableLoading:qN,enableButtons:XN,enableInput:eA,getInput:GN,handleAwaitingPromise:DN,hideLoading:qN,rejectPromise:EN,resetValidationMessage:rA,showValidationMessage:nA,update:fA});const xA=(e,t,n)=>{t.popup.onclick=()=>{e&&(_A(e)||e.timer||e.input)||n(oN.close)}},_A=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let kA=!1;const CA=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(kA=!0)}}},SA=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(kA=!0)}}},EA=(e,t,n)=>{t.container.onclick=r=>{kA?kA=!1:r.target===t.container&&FM(e.allowOutsideClick)&&n(oN.backdrop)}},DA=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const OA=()=>{if(MM.timeout)return(()=>{const e=oT();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${n}%`})(),MM.timeout.stop()},MA=()=>{if(MM.timeout){const e=MM.timeout.start();return DT(e),e}};let TA=!1;const NA={};const AA=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in NA){const n=t.getAttribute(e);if(n)return void NA[e].fire({template:n})}};MM.eventEmitter=new class{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const n=this._getHandlersByEventName(e);n.includes(t)||n.push(t)}once(e,t){var n=this;const r=function(){n.removeListener(e,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];t.apply(n,i)};this.on(e,r)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._getHandlersByEventName(e).forEach((e=>{try{e.apply(this,n)}catch(t){}}))}removeListener(e,t){const n=this._getHandlersByEventName(e),r=n.indexOf(t);r>-1&&n.splice(r,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}};var PA=Object.freeze({__proto__:null,argsToParams:e=>{const t={};return"object"!=typeof e[0]||DA(e[0])?["title","html","icon"].forEach(((n,r)=>{const o=e[r];("string"==typeof o||DA(o))&&(t[n]=o)})):Object.assign(t,e[0]),t},bindClickHandler:function(){NA[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,TA||(document.body.addEventListener("click",AA),TA=!0)},clickCancel:()=>{var e;return null===(e=JM())||void 0===e?void 0:e.click()},clickConfirm:rN,clickDeny:()=>{var e;return null===(e=eT())||void 0===e?void 0:e.click()},enableLoading:AN,fire:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)},getActions:nT,getCancelButton:JM,getCloseButton:iT,getConfirmButton:XM,getContainer:zM,getDenyButton:eT,getFocusableElements:aT,getFooter:rT,getHtmlContainer:KM,getIcon:UM,getIconContent:()=>$M(AM["icon-content"]),getImage:GM,getInputLabel:()=>$M(AM["input-label"]),getLoader:tT,getPopup:VM,getProgressSteps:ZM,getTimerLeft:()=>MM.timeout&&MM.timeout.getTimerLeft(),getTimerProgressBar:oT,getTitle:qM,getValidationMessage:QM,increaseTimer:e=>{if(MM.timeout){const t=MM.timeout.increase(e);return DT(t,!0),t}},isDeprecatedParameter:uA,isLoading:()=>{const e=VM();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>!(!MM.timeout||!MM.timeout.isRunning()),isUpdatableParameter:cA,isValidParameter:lA,isVisible:()=>CT(VM()),mixin:function(e){return class extends(this){_main(t,n){return super._main(t,Object.assign({},e,n))}}},off:(e,t)=>{e?t?MM.eventEmitter.removeListener(e,t):MM.eventEmitter.removeAllListeners(e):MM.eventEmitter.reset()},on:(e,t)=>{MM.eventEmitter.on(e,t)},once:(e,t)=>{MM.eventEmitter.once(e,t)},resumeTimer:MA,showLoading:AN,stopTimer:OA,toggleTimer:()=>{const e=MM.timeout;return e&&(e.running?OA():MA())}});class jA{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const RA=["swal-title","swal-html","swal-footer"],LA=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{$A(e,["name","value"]);const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(t[n]="boolean"==typeof oA[n]?"false"!==r:"object"==typeof oA[n]?JSON.parse(r):r)})),t},IA=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(t[n]=new Function(`return ${r}`)())})),t},FA=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{$A(e,["type","color","aria-label"]);const n=e.getAttribute("type");n&&["confirm","cancel","deny"].includes(n)&&(t[`${n}ButtonText`]=e.innerHTML,t[`show${jM(n)}Button`]=!0,e.hasAttribute("color")&&(t[`${n}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${n}ButtonAriaLabel`]=e.getAttribute("aria-label")))})),t},HA=e=>{const t={},n=e.querySelector("swal-image");return n&&($A(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},BA=e=>{const t={},n=e.querySelector("swal-icon");return n&&($A(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},YA=e=>{const t={},n=e.querySelector("swal-input");n&&($A(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(t.inputOptions={},r.forEach((e=>{$A(e,["value"]);const n=e.getAttribute("value");if(!n)return;const r=e.innerHTML;t.inputOptions[n]=r}))),t},zA=(e,t)=>{const n={};for(const r in t){const o=t[r],i=e.querySelector(o);i&&($A(i,[]),n[o.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},WA=e=>{const t=RA.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();t.includes(n)||RM(`Unrecognized element <${n}>`)}))},$A=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&RM([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])}))},VA=e=>{const t=zM(),n=VM();"function"==typeof e.willOpen&&e.willOpen(n),MM.eventEmitter.emit("willOpen",n);const r=window.getComputedStyle(document.body).overflowY;GA(t,n,e),setTimeout((()=>{qA(t,n)}),10),sT()&&(KA(t,e.scrollbarPadding,r),(()=>{const e=zM();Array.from(document.body.children).forEach((t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))}))})()),lT()||MM.previousActiveElement||(MM.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(n))),MM.eventEmitter.emit("didOpen",n),gT(t,AM["no-transition"])},UA=e=>{const t=VM();if(e.target!==t)return;const n=zM();t.removeEventListener("animationend",UA),t.removeEventListener("transitionend",UA),n.style.overflowY="auto"},qA=(e,t)=>{ET(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",UA),t.addEventListener("transitionend",UA)):e.style.overflowY="auto"},KA=(e,t,n)=>{(()=>{if(gN&&!uT(document.body,AM.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",mT(document.body,AM.iosfix),vN()}})(),t&&"hidden"!==n&&_N(n),setTimeout((()=>{e.scrollTop=0}))},GA=(e,t,n)=>{mT(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),bT(t,"grid"),setTimeout((()=>{mT(t,n.showClass.popup),t.style.removeProperty("opacity")}),10)):bT(t,"grid"),mT([document.documentElement,document.body],AM.shown),n.heightAuto&&n.backdrop&&!n.toast&&mT([document.documentElement,document.body],AM["height-auto"])};var ZA={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function QA(e){!function(e){e.inputValidator||("email"===e.input&&(e.inputValidator=ZA.email),"url"===e.input&&(e.inputValidator=ZA.url))}(e),e.showLoaderOnConfirm&&!e.preConfirm&&RM("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(RM('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),TT(e)}let XA;var JA=new WeakMap;class eP{constructor(){if(OM(this,JA,void 0),"undefined"==typeof window)return;XA=this;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Object.freeze(this.constructor.argsToParams(t));var o,i,a;this.params=r,this.isAwaitingPromise=!1,o=JA,i=this,a=this._main(XA.params),o.set(EM(o,i),a)}_main(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((e=>{!1===e.backdrop&&e.allowOutsideClick&&RM('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)dA(t),e.toast&&hA(t),pA(t)})(Object.assign({},t,e)),MM.currentInstance){const e=fN.swalPromiseResolve.get(MM.currentInstance),{isAwaitingPromise:t}=MM.currentInstance;MM.currentInstance._destroy(),t||e({isDismissed:!0}),sT()&&mN()}MM.currentInstance=XA;const n=nP(e,t);QA(n),Object.freeze(n),MM.timeout&&(MM.timeout.stop(),delete MM.timeout),clearTimeout(MM.restoreFocusTimeout);const r=rP(XA);return nN(XA,n),IT.innerParams.set(XA,n),tP(XA,r,n)}then(e){return DM(JA,this).then(e)}finally(e){return DM(JA,this).finally(e)}}const tP=(e,t,n)=>new Promise(((r,o)=>{const i=t=>{e.close({isDismissed:!0,dismiss:t})};fN.swalPromiseResolve.set(e,r),fN.swalPromiseReject.set(e,o),t.confirmButton.onclick=()=>{(e=>{const t=IT.innerParams.get(e);e.disableButtons(),t.input?YN(e,"confirm"):UN(e,!0)})(e)},t.denyButton.onclick=()=>{(e=>{const t=IT.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?YN(e,"deny"):WN(e,!1)})(e)},t.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(oN.cancel)})(e,i)},t.closeButton.onclick=()=>{i(oN.close)},((e,t,n)=>{e.toast?xA(e,t,n):(CA(t),SA(t),EA(e,t,n))})(n,t,i),((e,t,n)=>{iN(e),t.toast||(e.keydownHandler=e=>cN(t,e,n),e.keydownTarget=t.keydownListenerCapture?window:VM(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)})(MM,n,i),((e,t)=>{"select"===t.input||"radio"===t.input?IN(e,t):["text","email","number","tel","textarea"].some((e=>e===t.input))&&(HM(t.inputValue)||YM(t.inputValue))&&(AN(XM()),FN(e,t))})(e,n),VA(n),oP(MM,n,i),iP(t,n),setTimeout((()=>{t.container.scrollTop=0}))})),nP=(e,t)=>{const n=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return WA(n),Object.assign(LA(n),IA(n),FA(n),HA(n),BA(n),YA(n),zA(n,RA))})(e),r=Object.assign({},oA,t,n,e);return r.showClass=Object.assign({},oA.showClass,r.showClass),r.hideClass=Object.assign({},oA.hideClass,r.hideClass),!1===r.animation&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},rP=e=>{const t={popup:VM(),container:zM(),actions:nT(),confirmButton:XM(),denyButton:eT(),cancelButton:JM(),loader:tT(),closeButton:iT(),validationMessage:QM(),progressSteps:ZM()};return IT.domCache.set(e,t),t},oP=(e,t,n)=>{const r=oT();wT(r),t.timer&&(e.timeout=new jA((()=>{n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(bT(r),dT(r,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&DT(t.timer)}))))},iP=(e,t)=>{if(!t.toast)return FM(t.allowEnterKey)?void(aP(e)||sP(e,t)||aN(-1,1)):(IM("allowEnterKey"),void lP())},aP=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const n of t)if(n instanceof HTMLElement&&CT(n))return n.focus(),!0;return!1},sP=(e,t)=>t.focusDeny&&CT(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&CT(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!CT(e.confirmButton))&&(e.confirmButton.focus(),!0),lP=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}eP.prototype.disableButtons=JN,eP.prototype.enableButtons=XN,eP.prototype.getInput=GN,eP.prototype.disableInput=tA,eP.prototype.enableInput=eA,eP.prototype.hideLoading=qN,eP.prototype.disableLoading=qN,eP.prototype.showValidationMessage=nA,eP.prototype.resetValidationMessage=rA,eP.prototype.close=CN,eP.prototype.closePopup=CN,eP.prototype.closeModal=CN,eP.prototype.closeToast=CN,eP.prototype.rejectPromise=EN,eP.prototype.update=fA,eP.prototype._destroy=gA,Object.assign(eP,PA),Object.keys(wA).forEach((e=>{eP[e]=function(){return XA&&XA[e]?XA[e](...arguments):null}})),eP.DismissReason=oN,eP.version="11.14.5";const cP=eP;cP.default=cP,"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(r){n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:hsl(0,0%,33%);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid hsl(0,0%,85%);border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:hsl(0,0%,94%);color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:rgb(249.95234375,205.965625,167.74765625);color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:rgb(156.7033492823,224.2822966507,246.2966507177);color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:rgb(200.8064516129,217.9677419355,225.1935483871);color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}');const uP=["otic","otec","empresa"],dP=e=>{const t=uP.find((t=>e.includes(t)));return"empresa"===(null==t?void 0:t.toLowerCase())?"cliente":t??""},hP=e=>e??"",pP=t.memo((e=>{const{layout:n=!0,navbar:r=()=>!0,sidebar:o=()=>!0,footer:i,navigation:a,environment:s,previousPath:c=!1,includeNavbarDropdown:u}=e,d=t.useRef(!0),[h,p]=t.useState({}),f=t.useCallback((async()=>{var t;p((e=>({...e,loading:!0})));try{const n=await(null==(t=null==e?void 0:e.onAuthCallback)?void 0:t.call(e));p((e=>({...e,user:n,ref:{lastName:hP(null==n?void 0:n.lastName),firstName:hP(null==n?void 0:n.firstName),role:dP(null==n?void 0:n.roles)},session:{token:null==n?void 0:n.token,refreshToken:null==n?void 0:n.refreshToken},info:(null==n?void 0:n.token)?SD(n.token):void 0})))}catch(n){}finally{p((e=>({...e,loading:!1})))}}),[null==e?void 0:e.onAuthCallback]);t.useEffect((()=>{f()}),[f]);const m=t.useCallback((e=>{e&&p(e)}),[]),g=t.useCallback((()=>{p({})}),[]),v=t.useCallback((async e=>{d.current&&(d.current=!1,await cP.fire({icon:"warning",text:"No tiene permisos para acceder a este recurso",title:"Acceso denegado",showCloseButton:!0,showCancelButton:!1,showConfirmButton:!1}),l.navigateToUrl(e),d.current=!0)}),[]),y=t.useMemo((()=>({...h,onClear:g,onSignal:m,onAcessDenied:v,environment:s})),[h,s,g,m,v]);return O.jsx(D_.Provider,{value:y,children:n?O.jsx(vk,{menu:a,includeFooter:i,previousPath:c,includeNavbar:null==r?void 0:r(h,h.loading),includeSidebar:null==o?void 0:o(h,h.loading),includeNavbarDropdown:u,children:h.loading?O.jsx(Bx,{status:!0}):e.children}):O.jsx(t.Fragment,{children:h.loading?O.jsx(Bx,{status:!0}):e.children})})}));var fP=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(fP||{}),mP=(e=>(e.INFO="#4caf50",e.WARN="#ff9800",e.ERROR="#f44336",e.DEBUG="#2196f3",e))(mP||{});class gP{constructor(e=1,t=!1){g(this,"logLevel"),g(this,"isDevelopment"),g(this,"logs"),this.logLevel=e,this.isDevelopment=t,this.logs=[]}debug(e,...t){this.logLevel<=0&&this.log("🐛",e,"#2196f3",...t)}info(e,...t){this.logLevel<=1&&this.log("â„šī¸",e,"#4caf50",...t)}warn(e,...t){this.logLevel<=2&&this.log("âš ī¸",e,"#ff9800",...t)}error(e,...t){this.logLevel<=3&&this.log("🚨",e,"#f44336",...t)}log(e,t,n,...r){const o=`${e} ${t}`;this.isDevelopment,this.logs.push(o)}getLogs(){return this.logs}}var vP=(e=>(e.IB="Integra Negocio",e.SP="Sistema de Perfilamiento v2",e))(vP||{});const yP=t.memo((({allow:e,grants:n,children:r})=>{var o;const i=t.useContext(D_),a=new gP(void 0,null==n?void 0:n.debug),[s,l]=t.useState(!1);t.useEffect((()=>{var e,t;(null==(t=null==(e=null==i?void 0:i.user)?void 0:e.systems)?void 0:t.length)&&c(i)}),[null==(o=null==i?void 0:i.user)?void 0:o.systems]);const c=t.useCallback((async t=>{var r,o;const s=null==(o=null==(r=null==t?void 0:t.user)?void 0:r.systems)?void 0:o.find((e=>e.name===(null==n?void 0:n.system)));if(a.debug("ref:",s),null==s?void 0:s.functions){s.functions.filter((t=>{const n=null==t?void 0:t.key;return null==e?void 0:e.includes(n)})).length===(null==e?void 0:e.length)?l(!0):(a.debug("denied"),(null==i?void 0:i.onAcessDenied)&&(null==i||i.onAcessDenied(null==n?void 0:n.redirect)))}}),[null==n?void 0:n.system,null==n?void 0:n.debug,e]);return O.jsx(O.Fragment,{children:s?r:null})}));yP.defaultProps={allow:[],grants:{debug:!1,system:"Integra Negocio",redirect:"/dashboard",popup:{text:"You don't have the required permissions to access this page.",title:"Access Denied"}}};class bP{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const wP="undefined"==typeof window||"Deno"in window;function xP(){}function _P(e){return"number"==typeof e&&e>=0&&e!==1/0}function kP(e,t,n){return r=e,Array.isArray(r)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e;var r}function CP(e,t){if(e===t)return e;const n=EP(e)&&EP(t);if(n||DP(e)&&DP(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const r=n?l:o[l];a[r]=CP(e[r],t[r]),a[r]===e[r]&&s++}return r===i&&s===r?e:a}return t}function SP(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function EP(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function DP(e){if(!OP(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!OP(n)&&!!n.hasOwnProperty("isPrototypeOf")}function OP(e){return"[object Object]"===Object.prototype.toString.call(e)}function MP(e){var t;(t=0,new Promise((e=>{setTimeout(e,t)}))).then(e)}function TP(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?CP(e,t):t}const NP=new class extends bP{constructor(){super(),this.setup=e=>{if(!wP&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},AP=["online","offline"];const PP=new class extends bP{constructor(){super(),this.setup=e=>{if(!wP&&window.addEventListener){const t=()=>e();return AP.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{AP.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};class jP{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}const RP=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const o=r=>{t?e.push(r):MP((()=>{n(r)}))},i=()=>{const t=e;e=[],t.length&&MP((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class LP extends bP{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),IP(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return FP(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return FP(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),"production"!==process.env.NODE_ENV&&void 0!==(null==e?void 0:e.isDataEqual)&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),SP(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&HP(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!SP(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(xP)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),wP||this.currentResult.isStale||!_P(this.options.staleTime))return;var e,t;const n=(e=this.currentResult.dataUpdatedAt,t=this.options.staleTime,Math.max(e+(t||0)-Date.now(),0))+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),n)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!wP&&!1!==this.options.enabled&&_P(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||NP.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,o=this.currentResult,i=this.currentResultState,a=this.currentResultOptions,s=e!==n,l=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:u}=e;let d,{dataUpdatedAt:h,error:p,errorUpdatedAt:f,fetchStatus:m,status:g}=u,v=!1,y=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&IP(e,t),a=o&&HP(e,n,t,r);(i||a)&&(m="online"!==(null!=(b=e.options.networkMode)?b:"online")||PP.isOnline()?"fetching":"paused",h||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}var b;if(t.keepPreviousData&&!u.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==g)d=c.data,h=c.dataUpdatedAt,g=c.status,v=!0;else if(t.select&&void 0!==u.data)if(o&&u.data===(null==i?void 0:i.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(u.data),d=TP(null==o?void 0:o.data,d,t),this.selectResult=d,this.selectError=null}catch(k){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(k),this.selectError=k}else d=u.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===g){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==a?void 0:a.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(k){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(k),this.selectError=k}void 0!==e&&(g="success",d=TP(null==o?void 0:o.data,e,t),y=!0)}this.selectError&&(p=this.selectError,d=this.selectResult,f=Date.now(),g="error");const w="fetching"===m,x="loading"===g,_="error"===g;return{status:g,fetchStatus:m,isLoading:x,isSuccess:"success"===g,isError:_,isInitialLoading:x&&w,data:d,dataUpdatedAt:h,error:p,errorUpdatedAt:f,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:_&&0===u.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:y,isPreviousData:v,isRefetchError:_&&0!==u.dataUpdatedAt,isStale:BP(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,SP(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||e.error instanceof jP||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){RP.batch((()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var i,a,s,l;null==(i=(a=this.options).onError)||i.call(a,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function IP(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&FP(e,t,t.refetchOnMount)}function FP(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&BP(e,t)}return!1}function HP(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&BP(e,n)}function BP(e,t){return e.isStaleByTime(t.staleTime)}var YP,zP={exports:{}},WP={};var $P,VP={};
1284
1284
  /**
1285
1285
  * @license React
1286
1286
  * use-sync-external-store-shim.development.js