@shrfe/assets 1.0.27 → 1.0.29
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/js/shrfe-core-umd.js +1 -1
- package/package.json +1 -1
package/js/shrfe-core-umd.js
CHANGED
|
@@ -30,7 +30,7 @@ return function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,s=n.create([
|
|
|
30
30
|
*/
|
|
31
31
|
(function(t,r){e.exports=r()})(0,function(){"use strict";function e(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function t(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(t,r){return t.get(e(t,r))}function n(e,r,n){t(e,r),r.set(e,n)}function i(t,r,n){return t.set(e(t,r),n),n}const o=100,s={},a=()=>{s.previousActiveElement instanceof HTMLElement?(s.previousActiveElement.focus(),s.previousActiveElement=null):document.body&&document.body.focus()},c=e=>new Promise(t=>{if(!e)return t();const r=window.scrollX,n=window.scrollY;s.restoreFocusTimeout=setTimeout(()=>{a(),t()},o),window.scrollTo(r,n)}),u="swal2-",l=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],h=l.reduce((e,t)=>(e[t]=u+t,e),{}),d=["success","warning","info","question","error"],p=d.reduce((e,t)=>(e[t]=u+t,e),{}),f="SweetAlert2:",m=e=>e.charAt(0).toUpperCase()+e.slice(1),g=e=>{console.warn(`${f} ${"object"===typeof e?e.join(" "):e}`)},v=e=>{console.error(`${f} ${e}`)},y=[],w=e=>{y.includes(e)||(y.push(e),g(e))},b=(e,t=null)=>{w(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},_=e=>"function"===typeof e?e():e,k=e=>e&&"function"===typeof e.toPromise,S=e=>k(e)?e.toPromise():Promise.resolve(e),x=e=>e&&Promise.resolve(e)===e,C=()=>navigator.userAgent.includes("Firefox"),E=()=>document.body.querySelector(`.${h.container}`),A=e=>{const t=E();return t?t.querySelector(e):null},O=e=>A(`.${e}`),I=()=>O(h.popup),T=()=>O(h.icon),M=()=>O(h["icon-content"]),R=()=>O(h.title),P=()=>O(h["html-container"]),D=()=>O(h.image),L=()=>O(h["progress-steps"]),B=()=>O(h["validation-message"]),N=()=>A(`.${h.actions} .${h.confirm}`),j=()=>A(`.${h.actions} .${h.cancel}`),F=()=>A(`.${h.actions} .${h.deny}`),U=()=>O(h["input-label"]),z=()=>A(`.${h.loader}`),q=()=>O(h.actions),H=()=>O(h.footer),$=()=>O(h["timer-progress-bar"]),W=()=>O(h.close),V='\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',Y=()=>{const e=I();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),r=Array.from(t).sort((e,t)=>{const r=parseInt(e.getAttribute("tabindex")||"0"),n=parseInt(t.getAttribute("tabindex")||"0");return r>n?1:r<n?-1:0}),n=e.querySelectorAll(V),i=Array.from(n).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(r.concat(i))].filter(e=>pe(e))},X=()=>Z(document.body,h.shown)&&!Z(document.body,h["toast-shown"])&&!Z(document.body,h["no-backdrop"]),J=()=>{const e=I();return!!e&&Z(e,h.toast)},G=()=>{const e=I();return!!e&&e.hasAttribute("data-loading")},K=(e,t)=>{if(e.textContent="",t){const r=new DOMParser,n=r.parseFromString(t,"text/html"),i=n.querySelector("head");i&&Array.from(i.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)})}},Z=(e,t)=>{if(!t)return!1;const r=t.split(/\s+/);for(let n=0;n<r.length;n++)if(!e.classList.contains(r[n]))return!1;return!0},Q=(e,t)=>{Array.from(e.classList).forEach(r=>{Object.values(h).includes(r)||Object.values(p).includes(r)||Object.values(t.showClass||{}).includes(r)||e.classList.remove(r)})},ee=(e,t,r)=>{if(Q(e,t),!t.customClass)return;const n=t.customClass[r];n&&("string"===typeof n||n.forEach?ie(e,n):g(`Invalid type of customClass.${r}! Expected string or iterable object, got "${typeof n}"`))},te=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${h.popup} > .${h[t]}`);case"checkbox":return e.querySelector(`.${h.popup} > .${h.checkbox} input`);case"radio":return e.querySelector(`.${h.popup} > .${h.radio} input:checked`)||e.querySelector(`.${h.popup} > .${h.radio} input:first-child`);case"range":return e.querySelector(`.${h.popup} > .${h.range} input`);default:return e.querySelector(`.${h.popup} > .${h.input}`)}},re=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},ne=(e,t,r)=>{if(!e||!t)return;const n="string"===typeof t?t.split(/\s+/).filter(Boolean):t,i=Array.isArray(e)?e:[e];i.forEach(e=>{n.forEach(t=>{r?e.classList.add(t):e.classList.remove(t)})})},ie=(e,t)=>{ne(e,t,!0)},oe=(e,t)=>{ne(e,t,!1)},se=(e,t)=>{const r=Array.from(e.children);for(let n=0;n<r.length;n++){const e=r[n];if(e instanceof HTMLElement&&Z(e,t))return e}},ae=(e,t,r)=>{r===`${parseInt(`${r}`)}`&&(r=parseInt(r)),r||0===r?e.style.setProperty(t,"number"===typeof r?`${r}px`:r):e.style.removeProperty(t)},ce=(e,t="flex")=>{e&&(e.style.display=t)},ue=e=>{e&&(e.style.display="none")},le=(e,t="block")=>{e&&new MutationObserver(()=>{de(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},he=(e,t,r,n)=>{const i=e.querySelector(t);i&&i.style.setProperty(r,n)},de=(e,t,r="flex")=>{t?ce(e,r):ue(e)},pe=e=>Boolean(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),fe=()=>!pe(N())&&!pe(F())&&!pe(j()),me=e=>Boolean(e.scrollHeight>e.clientHeight),ge=(e,t)=>{let r=e;while(r&&r!==t){if(me(r))return!0;r=r.parentElement}return!1},ve=e=>{const t=window.getComputedStyle(e),r=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return r>0||n>0},ye=(e,t=!1)=>{const r=$();r&&pe(r)&&(t&&(r.style.transition="none",r.style.width="100%"),setTimeout(()=>{r.style.transition=`width ${e/1e3}s linear`,r.style.width="0%"},10))},we=()=>{const e=$();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const r=parseInt(window.getComputedStyle(e).width),n=t/r*100;e.style.width=`${n}%`},be=()=>"undefined"===typeof window||"undefined"===typeof document,_e=`\n <div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">\n <button type="button" class="${h.close}"></button>\n <ul class="${h["progress-steps"]}"></ul>\n <div class="${h.icon}"></div>\n <img class="${h.image}" />\n <h2 class="${h.title}" id="${h.title}"></h2>\n <div class="${h["html-container"]}" id="${h["html-container"]}"></div>\n <input class="${h.input}" id="${h.input}" />\n <input type="file" class="${h.file}" />\n <div class="${h.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${h.select}" id="${h.select}"></select>\n <div class="${h.radio}"></div>\n <label class="${h.checkbox}">\n <input type="checkbox" id="${h.checkbox}" />\n <span class="${h.label}"></span>\n </label>\n <textarea class="${h.textarea}" id="${h.textarea}"></textarea>\n <div class="${h["validation-message"]}" id="${h["validation-message"]}"></div>\n <div class="${h.actions}">\n <div class="${h.loader}"></div>\n <button type="button" class="${h.confirm}"></button>\n <button type="button" class="${h.deny}"></button>\n <button type="button" class="${h.cancel}"></button>\n </div>\n <div class="${h.footer}"></div>\n <div class="${h["timer-progress-bar-container"]}">\n <div class="${h["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),ke=()=>{const e=E();return!!e&&(e.remove(),oe([document.documentElement,document.body],[h["no-backdrop"],h["toast-shown"],h["has-column"]]),!0)},Se=()=>{s.currentInstance&&s.currentInstance.resetValidationMessage()},xe=()=>{const e=I();if(!e)return;const t=se(e,h.input),r=se(e,h.file),n=e.querySelector(`.${h.range} input`),i=e.querySelector(`.${h.range} output`),o=se(e,h.select),s=e.querySelector(`.${h.checkbox} input`),a=se(e,h.textarea);t&&(t.oninput=Se),r&&(r.onchange=Se),o&&(o.onchange=Se),s&&(s.onchange=Se),a&&(a.oninput=Se),n&&i&&(n.oninput=()=>{Se(),i.value=n.value},n.onchange=()=>{Se(),i.value=n.value})},Ce=e=>{if("string"===typeof e){const t=document.querySelector(e);if(!t)throw new Error(`Target element "${e}" not found`);return t}return e},Ee=e=>{const t=I();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))},Ae=e=>{"rtl"===window.getComputedStyle(e).direction&&(ie(E(),h.rtl),s.isRTL=!0)},Oe=e=>{const t=ke();if(be())return void v("SweetAlert2 requires document to initialize");const r=document.createElement("div");r.className=h.container,t&&ie(r,h["no-transition"]),K(r,_e),r.dataset["swal2Theme"]=e.theme;const n=Ce(e.target||"body");n.appendChild(r),e.topLayer&&(r.setAttribute("popover",""),r.showPopover()),Ee(e),Ae(n),xe()},Ie=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"===typeof e?Te(e,t):e&&K(t,e)},Te=(e,t)=>{"jquery"in e?Me(t,e):K(t,e.toString())},Me=(e,t)=>{if(e.textContent="",0 in t)for(let r=0;r in t;r++)e.appendChild(t[r].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Re=(e,t)=>{const r=q(),n=z();r&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?ce(r):ue(r),ee(r,t,"actions"),Pe(r,n,t),K(n,t.loaderHtml||""),ee(n,t,"loader"))};function Pe(e,t,r){const n=N(),i=F(),o=j();n&&i&&o&&(Be(n,"confirm",r),Be(i,"deny",r),Be(o,"cancel",r),De(n,i,o,r),r.reverseButtons&&(r.toast?(e.insertBefore(o,n),e.insertBefore(i,n)):(e.insertBefore(o,t),e.insertBefore(i,t),e.insertBefore(n,t))))}function De(e,t,r,n){if(!n.buttonsStyling)return void oe([e,t,r],h.styled);ie([e,t,r],h.styled);const i=[[e,"confirm",n.confirmButtonColor],[t,"deny",n.denyButtonColor],[r,"cancel",n.cancelButtonColor]];i.forEach(([e,t,r])=>{r&&e.style.setProperty(`--swal2-${t}-button-background-color`,r),Le(e)})}function Le(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const r=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${r}`))}function Be(e,t,r){const n=m(t);de(e,r[`show${n}Button`],"inline-block"),K(e,r[`${t}ButtonText`]||""),e.setAttribute("aria-label",r[`${t}ButtonAriaLabel`]||""),e.className=h[t],ee(e,r,`${t}Button`)}const Ne=(e,t)=>{const r=W();r&&(K(r,t.closeButtonHtml||""),ee(r,t,"closeButton"),de(r,t.showCloseButton),r.setAttribute("aria-label",t.closeButtonAriaLabel||""))},je=(e,t)=>{const r=E();r&&(Fe(r,t.backdrop),Ue(r,t.position),ze(r,t.grow),ee(r,t,"container"))};function Fe(e,t){"string"===typeof t?e.style.background=t:t||ie([document.documentElement,document.body],h["no-backdrop"])}function Ue(e,t){t&&(t in h?ie(e,h[t]):(g('The "position" parameter is not valid, defaulting to "center"'),ie(e,h.center)))}function ze(e,t){t&&ie(e,h[`grow-${t}`])}var qe={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};const He=["input","file","range","select","radio","checkbox","textarea"],$e=(e,t)=>{const r=I();if(!r)return;const n=qe.innerParams.get(e),i=!n||t.input!==n.input;He.forEach(e=>{const n=se(r,h[e]);n&&(Ye(e,t.inputAttributes),n.className=h[e],i&&ue(n))}),t.input&&(i&&We(t),Xe(t))},We=e=>{if(!e.input)return;if(!Qe[e.input])return void v(`Unexpected type of input! Expected ${Object.keys(Qe).join(" | ")}, got "${e.input}"`);const t=Ke(e.input);if(!t)return;const r=Qe[e.input](t,e);ce(t),e.inputAutoFocus&&setTimeout(()=>{re(r)})},Ve=e=>{for(let t=0;t<e.attributes.length;t++){const r=e.attributes[t].name;["id","type","value","style"].includes(r)||e.removeAttribute(r)}},Ye=(e,t)=>{const r=I();if(!r)return;const n=te(r,e);if(n){Ve(n);for(const e in t)n.setAttribute(e,t[e])}},Xe=e=>{if(!e.input)return;const t=Ke(e.input);t&&ee(t,e,"input")},Je=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},Ge=(e,t,r)=>{if(r.inputLabel){const n=document.createElement("label"),i=h["input-label"];n.setAttribute("for",e.id),n.className=i,"object"===typeof r.customClass&&ie(n,r.customClass.inputLabel),n.innerText=r.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ke=e=>{const t=I();if(t)return se(t,h[e]||h.input)},Ze=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:x(t)||g(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Qe={};Qe.text=Qe.email=Qe.password=Qe.number=Qe.tel=Qe.url=Qe.search=Qe.date=Qe["datetime-local"]=Qe.time=Qe.week=Qe.month=(e,t)=>{const r=e;return Ze(r,t.inputValue),Ge(r,r,t),Je(r,t),r.type=t.input,r},Qe.file=(e,t)=>{const r=e;return Ge(r,r,t),Je(r,t),r},Qe.range=(e,t)=>{const r=e,n=r.querySelector("input"),i=r.querySelector("output");return n&&(Ze(n,t.inputValue),n.type=t.input,Ge(n,e,t)),i&&Ze(i,t.inputValue),e},Qe.select=(e,t)=>{const r=e;if(r.textContent="",t.inputPlaceholder){const e=document.createElement("option");K(e,t.inputPlaceholder),e.value="",e.disabled=!0,e.selected=!0,r.appendChild(e)}return Ge(r,r,t),r},Qe.radio=e=>{const t=e;return t.textContent="",e},Qe.checkbox=(e,t)=>{const r=I();if(!r)throw new Error("Popup not found");const n=te(r,"checkbox");if(!n)throw new Error("Checkbox input not found");n.value="1",n.checked=Boolean(t.inputValue);const i=e,o=i.querySelector("span");if(o){const e=t.inputPlaceholder||t.inputLabel;e&&K(o,e)}return n},Qe.textarea=(e,t)=>{const r=e;Ze(r,t.inputValue),Je(r,t),Ge(r,r,t);const n=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const e=I();if(!e)return;const i=parseInt(window.getComputedStyle(e).width),o=()=>{if(!document.body.contains(r))return;const e=r.offsetWidth+n(r),o=I();o&&(e>i?o.style.width=`${e}px`:ae(o,"width",t.width))};new MutationObserver(o).observe(r,{attributes:!0,attributeFilter:["style"]})}}),r};const et=(e,t)=>{const r=P();r&&(le(r),ee(r,t,"htmlContainer"),t.html?(Ie(t.html,r),ce(r,"block")):t.text?(r.textContent=t.text,ce(r,"block")):ue(r),$e(e,t))},tt=(e,t)=>{const r=H();r&&(le(r),de(r,Boolean(t.footer),"block"),t.footer&&Ie(t.footer,r),ee(r,t,"footer"))},rt=(e,t)=>{const r=qe.innerParams.get(e),n=T();if(!n)return;if(r&&t.icon===r.icon)return at(n,t),void nt(n,t);if(!t.icon&&!t.iconHtml)return void ue(n);if(t.icon&&-1===Object.keys(p).indexOf(t.icon))return v(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void ue(n);ce(n),at(n,t),nt(n,t),ie(n,t.showClass&&t.showClass.icon);const i=window.matchMedia("(prefers-color-scheme: dark)");i.addEventListener("change",it)},nt=(e,t)=>{for(const[r,n]of Object.entries(p))t.icon!==r&&oe(e,n);ie(e,t.icon&&p[t.icon]),ct(e,t),it(),ee(e,t,"icon")},it=()=>{const e=I();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),r=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let n=0;n<r.length;n++)r[n].style.backgroundColor=t},ot=e=>`\n ${e.animation?'<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>\n ${e.animation?'<div class="swal2-success-fix"></div>':""}\n ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`,st='\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',at=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let r=e.innerHTML,n="";if(t.iconHtml)n=ut(t.iconHtml);else if("success"===t.icon)n=ot(t),r=r.replace(/ style=".*?"/g,"");else if("error"===t.icon)n=st;else if(t.icon){const e={question:"?",warning:"!",info:"i"};n=ut(e[t.icon])}r.trim()!==n.trim()&&K(e,n)},ct=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const r of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])he(e,r,"background-color",t.iconColor);he(e,".swal2-success-ring","border-color",t.iconColor)}},ut=e=>`<div class="${h["icon-content"]}">${e}</div>`,lt=(e,t)=>{const r=D();r&&(t.imageUrl?(ce(r,""),r.setAttribute("src",t.imageUrl),r.setAttribute("alt",t.imageAlt||""),ae(r,"width",t.imageWidth),ae(r,"height",t.imageHeight),r.className=h.image,ee(r,t,"image")):ue(r))};let ht=!1,dt=0,pt=0,ft=0,mt=0;const gt=e=>{e.addEventListener("mousedown",yt),document.body.addEventListener("mousemove",wt),e.addEventListener("mouseup",bt),e.addEventListener("touchstart",yt),document.body.addEventListener("touchmove",wt),e.addEventListener("touchend",bt)},vt=e=>{e.removeEventListener("mousedown",yt),document.body.removeEventListener("mousemove",wt),e.removeEventListener("mouseup",bt),e.removeEventListener("touchstart",yt),document.body.removeEventListener("touchmove",wt),e.removeEventListener("touchend",bt)},yt=e=>{const t=I();if(!t)return;const r=T();if(e.target===t||r&&r.contains(e.target)){ht=!0;const r=_t(e);dt=r.clientX,pt=r.clientY,ft=parseInt(t.style.insetInlineStart)||0,mt=parseInt(t.style.insetBlockStart)||0,ie(t,"swal2-dragging")}},wt=e=>{const t=I();if(t&&ht){let{clientX:r,clientY:n}=_t(e);const i=r-dt;t.style.insetInlineStart=`${ft+(s.isRTL?-i:i)}px`,t.style.insetBlockStart=`${mt+(n-pt)}px`}},bt=()=>{const e=I();ht=!1,oe(e,"swal2-dragging")},_t=e=>{const t=e.type.startsWith("touch")?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},kt=(e,t)=>{const r=E(),n=I();if(r&&n){if(t.toast){ae(r,"width",t.width),n.style.width="100%";const e=z();e&&n.insertBefore(e,T())}else ae(n,"width",t.width);ae(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),ue(B()),St(n,t),t.draggable&&!t.toast?(ie(n,h.draggable),gt(n)):(oe(n,h.draggable),vt(n))}},St=(e,t)=>{const r=t.showClass||{};e.className=`${h.popup} ${pe(e)?r.popup:""}`,t.toast?(ie([document.documentElement,document.body],h["toast-shown"]),ie(e,h.toast)):ie(e,h.modal),ee(e,t,"popup"),"string"===typeof t.customClass&&ie(e,t.customClass),t.icon&&ie(e,h[`icon-${t.icon}`])},xt=(e,t)=>{const r=L();if(!r)return;const{progressSteps:n,currentProgressStep:i}=t;n&&0!==n.length&&void 0!==i?(ce(r),r.textContent="",i>=n.length&&g("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((e,o)=>{const s=Ct(e);if(r.appendChild(s),o===i&&ie(s,h["active-progress-step"]),o!==n.length-1){const e=Et(t);r.appendChild(e)}})):ue(r)},Ct=e=>{const t=document.createElement("li");return ie(t,h["progress-step"]),K(t,e),t},Et=e=>{const t=document.createElement("li");return ie(t,h["progress-step-line"]),e.progressStepsDistance&&ae(t,"width",e.progressStepsDistance),t},At=(e,t)=>{const r=R();r&&(le(r),de(r,Boolean(t.title||t.titleText),"block"),t.title&&Ie(t.title,r),t.titleText&&(r.innerText=t.titleText),ee(r,t,"title"))},Ot=(e,t)=>{var r;kt(e,t),je(e,t),xt(e,t),rt(e,t),lt(e,t),At(e,t),Ne(e,t),et(e,t),Re(e,t),tt(e,t);const n=I();"function"===typeof t.didRender&&n&&t.didRender(n),null===(r=s.eventEmitter)||void 0===r||r.emit("didRender",n)},It=()=>pe(I()),Tt=()=>{var e;return null===(e=N())||void 0===e?void 0:e.click()},Mt=()=>{var e;return null===(e=F())||void 0===e?void 0:e.click()},Rt=()=>{var e;return null===(e=j())||void 0===e?void 0:e.click()},Pt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Dt=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){const t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},Lt=(e,t,r)=>{if(Dt(e),!t.toast){const n=e=>Ft(t,e,r);e.keydownHandler=n;const i=t.keydownListenerCapture?window:I();if(i){e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture;const r=n;e.keydownTarget.addEventListener("keydown",r,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},Bt=(e,t)=>{var r;const n=Y();return n.length?(e+=t,-2===e&&(e=n.length-1),e===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus(),!(C()&&n[e]instanceof HTMLIFrameElement)):(null===(r=I())||void 0===r||r.focus(),!0)},Nt=["ArrowRight","ArrowDown"],jt=["ArrowLeft","ArrowUp"],Ft=(e,t,r)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ut(t,e):"Tab"===t.key?zt(t):[...Nt,...jt].includes(t.key)?qt(t.key):"Escape"===t.key&&Ht(t,e,r)))},Ut=(e,t)=>{if(!_(t.allowEnterKey))return;const r=I();if(!r||!t.input)return;const n=te(r,t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Tt(),e.preventDefault()}},zt=e=>{const t=e.target,r=Y();let n=-1;for(let o=0;o<r.length;o++)if(t===r[o]){n=o;break}let i=!0;i=e.shiftKey?Bt(n,-1):Bt(n,1),e.stopPropagation(),i&&e.preventDefault()},qt=e=>{const t=q(),r=N(),n=F(),i=j();if(!t||!r||!n||!i)return;const o=[r,n,i];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;const s=Nt.includes(e)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;if(a){for(let e=0;e<t.children.length;e++){if(a=a[s],!a)return;if(a instanceof HTMLButtonElement&&pe(a))break}a instanceof HTMLButtonElement&&a.focus()}},Ht=(e,t,r)=>{e.preventDefault(),_(t.allowEscapeKey)&&r(Pt.esc)};var $t={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Wt=()=>{const e=E(),t=Array.from(document.body.children);t.forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},Vt=()=>{const e=Array.from(document.body.children);e.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")})},Yt="undefined"!==typeof window&&Boolean(window.GestureEvent),Xt=Yt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Jt=()=>{if(Yt&&!Z(document.body,h.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",ie(document.body,h.iosfix),Gt()}},Gt=()=>{const e=E();if(!e)return;let t;e.ontouchstart=e=>{t=Kt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Kt=e=>{const t=e.target,r=E(),n=P();return!(!r||!n)&&(!Zt(e)&&!Qt(e)&&(t===r||!(me(r)||!(t instanceof HTMLElement)||ge(t,n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||me(n)&&n.contains(t))))},Zt=e=>Boolean(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),Qt=e=>e.touches&&e.touches.length>1,er=()=>{if(Z(document.body,h.iosfix)){const e=parseInt(document.body.style.top,10);oe(document.body,h.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},tr=()=>{const e=document.createElement("div");e.className=h["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let rr=null;const nr=e=>{null===rr&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(rr=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${rr+tr()}px`)},ir=()=>{null!==rr&&(document.body.style.paddingRight=`${rr}px`,rr=null)};function or(e,t,r,n){J()?fr(e,n):(c(r).then(()=>fr(e,n)),Dt(s)),Yt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),X()&&(ir(),er(),Vt()),sr()}function sr(){oe([document.documentElement,document.body],[h.shown,h["height-auto"],h["no-backdrop"],h["toast-shown"]])}function ar(e){e=hr(e);const t=$t.swalPromiseResolve.get(this),r=cr(this);this.isAwaitingPromise?e.isDismissed||(lr(this),t(e)):r&&t(e)}const cr=e=>{const t=I();if(!t)return!1;const r=qe.innerParams.get(e);if(!r||Z(t,r.hideClass.popup))return!1;oe(t,r.showClass.popup),ie(t,r.hideClass.popup);const n=E();return oe(n,r.showClass.backdrop),ie(n,r.hideClass.backdrop),dr(e,t,r),!0};function ur(e){const t=$t.swalPromiseReject.get(this);lr(this),t&&t(e)}const lr=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,qe.innerParams.get(e)||e._destroy())},hr=e=>"undefined"===typeof e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),dr=(e,t,r)=>{var n;const i=E(),o=ve(t);"function"===typeof r.willClose&&r.willClose(t),null===(n=s.eventEmitter)||void 0===n||n.emit("willClose",t),o&&i?pr(e,t,i,Boolean(r.returnFocus),r.didClose):i&&or(e,i,Boolean(r.returnFocus),r.didClose)},pr=(e,t,r,n,i)=>{s.swalCloseEventFinishedCallback=or.bind(null,e,r,n,i);const o=function(e){var r;e.target===t&&(null===(r=s.swalCloseEventFinishedCallback)||void 0===r||r.call(s),delete s.swalCloseEventFinishedCallback,t.removeEventListener("animationend",o),t.removeEventListener("transitionend",o))};t.addEventListener("animationend",o),t.addEventListener("transitionend",o)},fr=(e,t)=>{setTimeout(()=>{var r;"function"===typeof t&&t.bind(e.params)(),null===(r=s.eventEmitter)||void 0===r||r.emit("didClose"),e._destroy&&e._destroy()})},mr=e=>{let t=I();if(t||new yi,t=I(),!t)return;const r=z();J()?ue(T()):gr(t,e),ce(r),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},gr=(e,t)=>{const r=q(),n=z();r&&n&&(!t&&pe(N())&&(t=N()),ce(r),t&&(ue(t),n.setAttribute("data-button-to-replace",t.className),r.insertBefore(n,t)),ie([e,r],h.loading))},vr=(e,t)=>{"select"===t.input||"radio"===t.input?kr(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(k(t.inputValue)||x(t.inputValue))&&(mr(N()),Sr(e,t))},yr=(e,t)=>{const r=e.getInput();if(!r)return null;switch(t.input){case"checkbox":return wr(r);case"radio":return br(r);case"file":return _r(r);default:return t.inputAutoTrim?r.value.trim():r.value}},wr=e=>e.checked?1:0,br=e=>e.checked?e.value:null,_r=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,kr=(e,t)=>{const r=I();if(!r)return;const n=e=>{"select"===t.input?xr(r,Er(e),t):"radio"===t.input&&Cr(r,Er(e),t)};k(t.inputOptions)||x(t.inputOptions)?(mr(N()),S(t.inputOptions).then(t=>{e.hideLoading(),n(t)})):"object"===typeof t.inputOptions?n(t.inputOptions):v("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},Sr=(e,t)=>{const r=e.getInput();r&&(ue(r),S(t.inputValue).then(n=>{r.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,ce(r),r.focus(),e.hideLoading()}).catch(t=>{v(`Error in inputValue promise: ${t}`),r.value="",ce(r),r.focus(),e.hideLoading()}))};function xr(e,t,r){const n=se(e,h.select);if(!n)return;const i=(e,t,n)=>{const i=document.createElement("option");i.value=n,K(i,t),i.selected=Ar(n,r.inputValue),e.appendChild(i)};t.forEach(e=>{const t=e[0],r=e[1];if(Array.isArray(r)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),r.forEach(t=>i(e,t[1],t[0]))}else i(n,r,t)}),n.focus()}function Cr(e,t,r){const n=se(e,h.radio);if(!n)return;t.forEach(e=>{const t=e[0],i=e[1],o=document.createElement("input"),s=document.createElement("label");o.type="radio",o.name=h.radio,o.value=t,Ar(t,r.inputValue)&&(o.checked=!0);const a=document.createElement("span");K(a,i),a.className=h.label,s.appendChild(o),s.appendChild(a),n.appendChild(s)});const i=n.querySelectorAll("input");i.length&&i[0].focus()}const Er=e=>{const t=e instanceof Map?Array.from(e):Object.entries(e);return t.map(([e,t])=>[e,"object"===typeof t?Er(t):t])},Ar=(e,t)=>Boolean(t)&&null!==t&&void 0!==t&&t.toString()===e.toString(),Or=e=>{const t=qe.innerParams.get(e);e.disableButtons(),t.input?Mr(e,"confirm"):Br(e,!0)},Ir=e=>{const t=qe.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Mr(e,"deny"):Pr(e,!1)},Tr=(e,t)=>{e.disableButtons(),t(Pt.cancel)},Mr=(e,t)=>{const r=qe.innerParams.get(e);if(!r.input)return void v(`The "input" parameter is needed to be set when using returnInputValueOn${m(t)}`);const n=e.getInput(),i=yr(e,r);r.inputValidator?Rr(e,i,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(r.validationMessage||n.validationMessage)):"deny"===t?Pr(e,i):Br(e,i)},Rr=(e,t,r)=>{const n=qe.innerParams.get(e);e.disableInput();const i=Promise.resolve().then(()=>S(n.inputValidator(t,n.validationMessage)));i.then(n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===r?Pr(e,t):Br(e,t)})},Pr=(e,t)=>{const r=qe.innerParams.get(e);if(r.showLoaderOnDeny&&mr(F()),r.preDeny){e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preDeny(t,r.validationMessage)));n.then(r=>{!1===r?(e.hideLoading(),lr(e)):e.close({isDenied:!0,value:"undefined"===typeof r?t:r})}).catch(t=>Lr(e,t))}else e.close({isDenied:!0,value:t})},Dr=(e,t)=>{e.close({isConfirmed:!0,value:t})},Lr=(e,t)=>{e.rejectPromise(t)},Br=(e,t)=>{const r=qe.innerParams.get(e);if(r.showLoaderOnConfirm&&mr(),r.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preConfirm(t,r.validationMessage)));n.then(r=>{pe(B())||!1===r?(e.hideLoading(),lr(e)):Dr(e,"undefined"===typeof r?t:r)}).catch(t=>Lr(e,t))}else Dr(e,t)};function Nr(){const e=qe.innerParams.get(this);if(!e)return;const t=qe.domCache.get(this);ue(t.loader),J()?e.icon&&ce(T()):jr(t),oe([t.popup,t.actions],h.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1;const r=qe.focusedElement.get(this);r instanceof HTMLElement&&document.activeElement===document.body&&r.focus(),qe.focusedElement.delete(this)}const jr=e=>{const t=e.loader.getAttribute("data-button-to-replace"),r=t?e.popup.getElementsByClassName(t):[];r.length?ce(r[0],"inline-block"):fe()&&ue(e.actions)};function Fr(){const e=qe.innerParams.get(this),t=qe.domCache.get(this);return t?te(t.popup,e.input):null}function Ur(e,t,r){const n=qe.domCache.get(e);t.forEach(e=>{n[e].disabled=r})}function zr(e,t){const r=I();if(r&&e)if("radio"===e.type){const e=r.querySelectorAll(`[name="${h.radio}"]`);for(let r=0;r<e.length;r++)e[r].disabled=t}else e.disabled=t}function qr(){Ur(this,["confirmButton","denyButton","cancelButton"],!1);const e=qe.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),qe.focusedElement.delete(this)}function Hr(){qe.focusedElement.set(this,document.activeElement),Ur(this,["confirmButton","denyButton","cancelButton"],!0)}function $r(){zr(this.getInput(),!1)}function Wr(){zr(this.getInput(),!0)}function Vr(e){const t=qe.domCache.get(this),r=qe.innerParams.get(this);K(t.validationMessage,e),t.validationMessage.className=h["validation-message"],r.customClass&&r.customClass.validationMessage&&ie(t.validationMessage,r.customClass.validationMessage),ce(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",h["validation-message"]),re(n),ie(n,h.inputerror))}function Yr(){const e=qe.domCache.get(this);e.validationMessage&&ue(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),oe(t,h.inputerror))}const Xr={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},Jr=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Gr={allowEnterKey:void 0},Kr=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Zr=e=>Object.prototype.hasOwnProperty.call(Xr,e),Qr=e=>-1!==Jr.indexOf(e),en=e=>Gr[e],tn=e=>{Zr(e)||g(`Unknown parameter "${e}"`)},rn=e=>{Kr.includes(e)&&g(`The parameter "${e}" is incompatible with toasts`)},nn=e=>{const t=en(e);t&&b(e,t)},on=e=>{!1===e.backdrop&&e.allowOutsideClick&&g('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&g(`Invalid theme "${e.theme}"`);for(const t in e)tn(t),e.toast&&rn(t),nn(t)};function sn(e){const t=E(),r=I(),n=qe.innerParams.get(this);if(!r||Z(r,n.hideClass.popup))return void g("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 i=an(e),o=Object.assign({},n,i);on(o),t&&(t.dataset["swal2Theme"]=o.theme),Ot(this,o),qe.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const an=e=>{const t={};return Object.keys(e).forEach(r=>{if(Qr(r)){const n=e;t[r]=n[r]}else g(`Invalid parameter to update: ${r}`)}),t};function cn(){var e;const t=qe.domCache.get(this),r=qe.innerParams.get(this);r?(t.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"===typeof r.didDestroy&&r.didDestroy(),null===(e=s.eventEmitter)||void 0===e||e.emit("didDestroy"),un(this)):ln(this)}const un=e=>{ln(e),delete e.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},ln=e=>{e.isAwaitingPromise?(hn(qe,e),e.isAwaitingPromise=!0):(hn($t,e),hn(qe,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)},hn=(e,t)=>{for(const r in e)e[r].delete(t)};var dn=Object.freeze({__proto__:null,_destroy:cn,close:ar,closeModal:ar,closePopup:ar,closeToast:ar,disableButtons:Hr,disableInput:Wr,disableLoading:Nr,enableButtons:qr,enableInput:$r,getInput:Fr,handleAwaitingPromise:lr,hideLoading:Nr,rejectPromise:ur,resetValidationMessage:Yr,showValidationMessage:Vr,update:sn});const pn=(e,t,r)=>{e.toast?fn(e,t,r):(vn(t),yn(t),wn(e,t,r))},fn=(e,t,r)=>{t.popup.onclick=()=>{e&&(mn(e)||e.timer||e.input)||r(Pt.close)}},mn=e=>Boolean(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let gn=!1;const vn=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(gn=!0)}}},yn=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))&&(gn=!0)}}},wn=(e,t,r)=>{t.container.onclick=n=>{gn?gn=!1:n.target===t.container&&_(e.allowOutsideClick)&&r(Pt.backdrop)}},bn=e=>"object"===typeof e&&null!==e&&"jquery"in e,_n=e=>e instanceof Element||bn(e),kn=e=>{const t={};return"object"!==typeof e[0]||_n(e[0])?["title","html","icon"].forEach((r,n)=>{const i=e[n];"string"===typeof i||_n(i)?t[r]=i:void 0!==i&&v(`Unexpected type of ${r}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(t,e[0]),t};function Sn(...e){return new this(...e)}function xn(e){class t extends(this){_main(t,r){return super._main(t,Object.assign({},e,r))}}return t}const Cn=()=>s.timeout&&s.timeout.getTimerLeft(),En=()=>{if(s.timeout)return we(),s.timeout.stop()},An=()=>{if(s.timeout){const e=s.timeout.start();return ye(e),e}},On=()=>{const e=s.timeout;return e&&(e.running?En():An())},In=e=>{if(s.timeout){const t=s.timeout.increase(e);return ye(t,!0),t}},Tn=()=>Boolean(s.timeout&&s.timeout.isRunning());let Mn=!1;const Rn={};function Pn(e="data-swal-template"){Rn[e]=this,Mn||(document.body.addEventListener("click",Dn),Mn=!0)}const Dn=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Rn){const r=t.getAttribute&&t.getAttribute(e);if(r)return void Rn[e].fire({template:r})}};class Ln{constructor(){this.events={}}_getHandlersByEventName(e){return"undefined"===typeof this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const r=this._getHandlersByEventName(e);r.includes(t)||r.push(t)}once(e,t){const r=(...n)=>{this.removeListener(e,r),t.apply(this,n)};this.on(e,r)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(v){console.error(v)}})}removeListener(e,t){const r=this._getHandlersByEventName(e),n=r.indexOf(t);n>-1&&r.splice(n,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}s.eventEmitter=new Ln;const Bn=(e,t)=>{s.eventEmitter&&s.eventEmitter.on(e,t)},Nn=(e,t)=>{s.eventEmitter&&s.eventEmitter.once(e,t)},jn=(e,t)=>{s.eventEmitter&&(e?t?s.eventEmitter.removeListener(e,t):s.eventEmitter.removeAllListeners(e):s.eventEmitter.reset())};var Fn=Object.freeze({__proto__:null,argsToParams:kn,bindClickHandler:Pn,clickCancel:Rt,clickConfirm:Tt,clickDeny:Mt,enableLoading:mr,fire:Sn,getActions:q,getCancelButton:j,getCloseButton:W,getConfirmButton:N,getContainer:E,getDenyButton:F,getFocusableElements:Y,getFooter:H,getHtmlContainer:P,getIcon:T,getIconContent:M,getImage:D,getInputLabel:U,getLoader:z,getPopup:I,getProgressSteps:L,getTimerLeft:Cn,getTimerProgressBar:$,getTitle:R,getValidationMessage:B,increaseTimer:In,isDeprecatedParameter:en,isLoading:G,isTimerRunning:Tn,isUpdatableParameter:Qr,isValidParameter:Zr,isVisible:It,mixin:xn,off:jn,on:Bn,once:Nn,resumeTimer:An,showLoading:mr,stopTimer:En,toggleTimer:On});class Un{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 zn=["swal-title","swal-html","swal-footer"],qn=e=>{const t="string"===typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const r=t.content;Gn(r);const n=Object.assign(Hn(r),$n(r),Wn(r),Vn(r),Yn(r),Xn(r),Jn(r,zn));return n},Hn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-param"));return r.forEach(e=>{Kn(e,["name","value"]);const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(r in Xr&&"boolean"===typeof Xr[r]?t[r]="false"!==n:r in Xr&&"object"===typeof Xr[r]?t[r]=JSON.parse(n):t[r]=n)}),t},$n=e=>{const t={},r=Array.from(e.querySelectorAll("swal-function-param"));return r.forEach(e=>{const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(t[r]=new Function(`return ${n}`)())}),t},Wn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-button"));return r.forEach(e=>{Kn(e,["type","color","aria-label"]);const r=e.getAttribute("type");if(!r||!["confirm","cancel","deny"].includes(r))return;t[`${r}ButtonText`]=e.innerHTML,t[`show${m(r)}Button`]=!0;const n=e.getAttribute("color");null!==n&&(t[`${r}ButtonColor`]=n);const i=e.getAttribute("aria-label");null!==i&&(t[`${r}ButtonAriaLabel`]=i)}),t},Vn=e=>{const t={},r=e.querySelector("swal-image");if(r){Kn(r,["src","width","height","alt"]);const e=r.getAttribute("src");null!==e&&(t.imageUrl=e||void 0);const n=r.getAttribute("width");null!==n&&(t.imageWidth=n||void 0);const i=r.getAttribute("height");null!==i&&(t.imageHeight=i||void 0);const o=r.getAttribute("alt");null!==o&&(t.imageAlt=o||void 0)}return t},Yn=e=>{const t={},r=e.querySelector("swal-icon");return r&&(Kn(r,["type","color"]),r.hasAttribute("type")&&(t.icon=r.getAttribute("type")),r.hasAttribute("color")&&(t.iconColor=r.getAttribute("color")),t.iconHtml=r.innerHTML),t},Xn=e=>{const t={},r=e.querySelector("swal-input");r&&(Kn(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(e=>{Kn(e,["value"]);const r=e.getAttribute("value");if(!r)return;const n=e.innerHTML;t.inputOptions[r]=n})),t},Jn=(e,t)=>{const r={};for(const n in t){const i=t[n],o=e.querySelector(i);o&&(Kn(o,[]),r[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return r},Gn=e=>{const t=zn.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const r=e.tagName.toLowerCase();t.includes(r)||g(`Unrecognized element <${r}>`)})},Kn=(e,t)=>{Array.from(e.attributes).forEach(r=>{-1===t.indexOf(r.name)&&g([`Unrecognized attribute "${r.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])})},Zn=10,Qn=e=>{var t,r;const n=E(),i=I();if(!n||!i)return;"function"===typeof e.willOpen&&e.willOpen(i),null===(t=s.eventEmitter)||void 0===t||t.emit("willOpen",i);const o=window.getComputedStyle(document.body),a=o.overflowY;if(ni(n,i,e),setTimeout(()=>{ti(n,i)},Zn),X()&&(ri(n,void 0!==e.scrollbarPadding&&e.scrollbarPadding,a),Wt()),Xt&&!1===e.backdrop&&i.scrollHeight>n.clientHeight&&(n.style.pointerEvents="auto"),J()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"===typeof e.didOpen){const t=e.didOpen;setTimeout(()=>t(i))}null===(r=s.eventEmitter)||void 0===r||r.emit("didOpen",i)},ei=e=>{const t=I();if(!t||e.target!==t)return;const r=E();r&&(t.removeEventListener("animationend",ei),t.removeEventListener("transitionend",ei),r.style.overflowY="auto",oe(r,h["no-transition"]))},ti=(e,t)=>{ve(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",ei),t.addEventListener("transitionend",ei)):e.style.overflowY="auto"},ri=(e,t,r)=>{Jt(),t&&"hidden"!==r&&nr(r),setTimeout(()=>{e.scrollTop=0})},ni=(e,t,r)=>{var n;null!==(n=r.showClass)&&void 0!==n&&n.backdrop&&ie(e,r.showClass.backdrop),r.animation?(t.style.setProperty("opacity","0","important"),ce(t,"grid"),setTimeout(()=>{var e;null!==(e=r.showClass)&&void 0!==e&&e.popup&&ie(t,r.showClass.popup),t.style.removeProperty("opacity")},Zn)):ce(t,"grid"),ie([document.documentElement,document.body],h.shown),r.heightAuto&&r.backdrop&&!r.toast&&ie([document.documentElement,document.body],h["height-auto"])};var ii={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 oi(e){e.inputValidator||("email"===e.input&&(e.inputValidator=ii["email"]),"url"===e.input&&(e.inputValidator=ii["url"]))}function si(e){(!e.target||"string"===typeof e.target&&!document.querySelector(e.target)||"string"!==typeof e.target&&!e.target.appendChild)&&(g('Target parameter is not valid, defaulting to "body"'),e.target="body")}function ai(e){oi(e),e.showLoaderOnConfirm&&!e.preConfirm&&g("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"),si(e),"string"===typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Oe(e)}let ci;var ui=new WeakMap;class li{constructor(...e){if(n(this,ui,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"undefined"===typeof window)return;ci=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,i(ui,this,this._main(ci.params))}_main(e,t={}){if(on(Object.assign({},t,e)),s.currentInstance){const e=$t.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:t}=s.currentInstance;s.currentInstance._destroy(),t||e({isDismissed:!0}),X()&&Vt()}s.currentInstance=ci;const r=di(e,t);ai(r),Object.freeze(r),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);const n=pi(ci);return Ot(ci,r),qe.innerParams.set(ci,r),hi(ci,n,r)}then(e){return r(ui,this).then(e)}finally(e){return r(ui,this).finally(e)}}const hi=(e,t,r)=>new Promise((n,i)=>{const o=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};$t.swalPromiseResolve.set(e,n),$t.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{Or(e)},t.denyButton.onclick=()=>{Ir(e)},t.cancelButton.onclick=()=>{Tr(e,o)},t.closeButton.onclick=()=>{o(Pt.close)},pn(r,t,o),Lt(s,r,o),vr(e,r),Qn(r),fi(s,r,o),mi(t,r),setTimeout(()=>{t.container.scrollTop=0})}),di=(e,t)=>{const r=qn(e),n=Object.assign({},Xr,t,r,e);return n.showClass=Object.assign({},Xr.showClass,n.showClass),n.hideClass=Object.assign({},Xr.hideClass,n.hideClass),!1===n.animation&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},pi=e=>{const t={popup:I(),container:E(),actions:q(),confirmButton:N(),denyButton:F(),cancelButton:j(),loader:z(),closeButton:W(),validationMessage:B(),progressSteps:L()};return qe.domCache.set(e,t),t},fi=(e,t,r)=>{const n=$();ue(n),t.timer&&(e.timeout=new Un(()=>{r("timer"),delete e.timeout},t.timer),t.timerProgressBar&&n&&(ce(n),ee(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ye(t.timer)})))},mi=(e,t)=>{if(!t.toast)return _(t.allowEnterKey)?void(gi(e)||vi(e,t)||Bt(-1,1)):(b("allowEnterKey","preConfirm: () => false"),void e.popup.focus())},gi=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const r of t)if(r instanceof HTMLElement&&pe(r))return r.focus(),!0;return!1},vi=(e,t)=>t.focusDeny&&pe(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&pe(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!pe(e.confirmButton))&&(e.confirmButton.focus(),!0);li.prototype.disableButtons=Hr,li.prototype.enableButtons=qr,li.prototype.getInput=Fr,li.prototype.disableInput=Wr,li.prototype.enableInput=$r,li.prototype.hideLoading=Nr,li.prototype.disableLoading=Nr,li.prototype.showValidationMessage=Vr,li.prototype.resetValidationMessage=Yr,li.prototype.close=ar,li.prototype.closePopup=ar,li.prototype.closeModal=ar,li.prototype.closeToast=ar,li.prototype.rejectPromise=ur,li.prototype.update=sn,li.prototype._destroy=cn,Object.assign(li,Fn),Object.keys(dn).forEach(e=>{li[e]=function(...t){if(ci&&ci[e])return ci[e](...t)}}),li.DismissReason=Pt,li.version="11.26.24";const yi=li;return yi.default=yi,yi}),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var r=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=t);else try{r.innerHTML=t}catch(e){r.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:auto}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:auto}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}')},6253:function(e,t,r){"use strict";var n=r(8705);const i="AES-256-CBC",o=parseInt(i.match(/\d+/)?.[0]),s=(e,t)=>{const r=n.lib.WordArray.random(16),i=n.lib.WordArray.random(256),s=999,a=o/4,c=n.PBKDF2(t,i,{hasher:n.algo.SHA512,keySize:a/8,iterations:s}),u=n.AES.encrypt(e,c,{mode:n.mode.CBC,iv:r}),l=n.enc.Base64.stringify(u.ciphertext),h={ciphertext:l,iv:n.enc.Hex.stringify(r),salt:n.enc.Hex.stringify(i),iterations:s};return n.enc.Base64.stringify(n.enc.Utf8.parse(JSON.stringify(h)))},a=(e,t)=>{const r=JSON.parse(n.enc.Utf8.stringify(n.enc.Base64.parse(e))),i=n.enc.Hex.parse(r.salt),s=n.enc.Hex.parse(r.iv),a=r.ciphertext;let c=parseInt(r.iterations);c<=0&&(c=999);const u=o/4,l=n.PBKDF2(t,i,{hasher:n.algo.SHA512,keySize:u/8,iterations:c}),h=n.AES.decrypt(a,l,{mode:n.mode.CBC,iv:s});return h.toString(n.enc.Utf8)},c="-----BEGIN PUBLIC KEY-----",u="-----END PUBLIC KEY-----",l="-----BEGIN PRIVATE KEY-----",h="-----END PRIVATE KEY-----",d=()=>{if("undefined"!==typeof globalThis&&globalThis.crypto?.subtle)return globalThis.crypto.subtle;throw new Error("Web Crypto API is not available in this environment")},p=(e,t,r,n)=>{if(!e.includes(t)||!e.includes(r))throw new Error(`Invalid ${n} key format: expected PEM`);const i=e.replace(t,"").replace(r,"").replace(/\s+/g,"");if("function"!==typeof atob)throw new Error("Base64 decoding is not available in this environment");const o=atob(i),s=new Uint8Array(o.length);for(let a=0;a<o.length;a++)s[a]=o.charCodeAt(a);return s.buffer},f=e=>{let t="";const r=new Uint8Array(e);if(r.forEach(e=>{t+=String.fromCharCode(e)}),"function"!==typeof btoa)throw new Error("Base64 encoding is not available in this environment");return btoa(t)},m=e=>{if("function"!==typeof atob)throw new Error("Base64 decoding is not available in this environment");const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r.buffer},g=async(e,t)=>{const r=d(),n="public"===t?p(e,c,u,"public"):p(e,l,h,"private");return r.importKey("public"===t?"spki":"pkcs8",n,{name:"RSA-OAEP",hash:"SHA-256"},!1,"public"===t?["encrypt"]:["decrypt"])},v=async(e,t)=>{const r=d(),n=await g(t,"public"),i=(new TextEncoder).encode(e),o=await r.encrypt({name:"RSA-OAEP"},n,i);return f(o)},y=async(e,t)=>{const r=d(),n=await g(t,"private"),i=m(e),o=await r.decrypt({name:"RSA-OAEP"},n,i);return(new TextDecoder).decode(o)};t.A={encrypt:s,decrypt:a,encryptWithPublicKey:v,decryptWithPrivateKey:y}},6448:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{allowOnlyNumber:function(){return allowOnlyNumber},allowedDecimalPlaces:function(){return allowedDecimalPlaces},customPasswordValidator:function(){return customPasswordValidator},dateFormatter:function(){return dateFormatter},decrypt:function(){return decrypt},decryptWithPrivateKey:function(){return decryptWithPrivateKey},encrypt:function(){return encrypt},encryptWithPublicKey:function(){return encryptWithPublicKey},fromNow:function(){return fromNow},getBgColorFromName:function(){return getBgColorFromName},getLocalStorageItem:function(){return getLocalStorageItem},getObjectProperty:function(){return getObjectProperty},getSessionStorageItem:function(){return getSessionStorageItem},getTextColorFromName:function(){return getTextColorFromName},highlightText:function(){return highlightText},httpBuildQuery:function(){return httpBuildQuery},imageExists:function(){return imageExists},isArray:function(){return isArray},isEmptyObj:function(){return isEmptyObj},isFunction:function(){return isFunction},isObject:function(){return isObject},isString:function(){return isString},loadRemoteEmbeddable:function(){return loadRemoteEmbeddable},numberFormat:function(){return numberFormat},removeLocalStorageItem:function(){return removeLocalStorageItem},removeSessionStorageItem:function(){return removeSessionStorageItem},setLocalStorageItem:function(){return setLocalStorageItem},setObjectProperty:function(){return setObjectProperty},setSessionStorageItem:function(){return setSessionStorageItem},ucFirst:function(){return ucFirst},uuid:function(){return uuid}});var lodash_es__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(8552),lodash_es__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8938),lodash_es__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4441),_encryption_service__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6253),date_fns__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2775),date_fns__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(129);const localCache=new Map,sessionCache=new Map,isString=e=>"string"===typeof e||e instanceof String,isArray=e=>Array.isArray(e),isFunction=e=>"function"===typeof e,isObject=e=>!!e&&e.constructor===Object,ucFirst=e=>e[0].toUpperCase()+e.substring(1).toLowerCase(),isEmptyObj=e=>(0,lodash_es__WEBPACK_IMPORTED_MODULE_1__.A)(e)&&!Object.keys(e).length,getObjectProperty=(e,t,r)=>{const n=(0,lodash_es__WEBPACK_IMPORTED_MODULE_0__.A)(e,t,r);return n||r},setObjectProperty=(e,t,r)=>(0,lodash_es__WEBPACK_IMPORTED_MODULE_2__.A)(e,t,r),getBgColorFromName=e=>{let t=0;e.split("").forEach(e=>{t=e.charCodeAt(0)+((t<<5)-t)});let r="#";for(let n=0;n<3;n++){const e=t>>8*n&255;r+=e.toString(16).padStart(2,"0")}return r},getTextColorFromName=(e,t="#FFFFFF",r="#000000")=>{const n=getBgColorFromName(e),i="#"===n.charAt(0)?n.substring(1,7):n,o=parseInt(i.substring(0,2),16),s=parseInt(i.substring(2,4),16),a=parseInt(i.substring(4,6),16),c=[o/255,s/255,a/255],u=c.map(e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)),l=.2126*u[0]+.7152*u[1]+.0722*u[2];return l>.179?r:t},encrypt=(e,t="")=>_encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.encrypt(e,t),decrypt=(e,t="")=>_encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.decrypt(e,t),encryptWithPublicKey=async(e,t)=>await _encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.encryptWithPublicKey(e,t),decryptWithPrivateKey=async(e,t)=>await _encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.decryptWithPrivateKey(e,t),setLocalStorageItem=(e,t,r="production")=>{localCache.set(e,JSON.stringify(t)),"production"===r?localStorage.setItem(e,encrypt(JSON.stringify(t))):localStorage.setItem(e,JSON.stringify(t))},getLocalStorageItem=(e,t="production")=>{if(localCache.has(e))return JSON.parse(localCache.get(e));const r=localStorage.getItem(e);if(null==r)return null;try{const n="production"===t?JSON.parse(decrypt(r)):JSON.parse(r);return localCache.set(e,JSON.stringify(n)),n}catch{return localStorage.removeItem(e),null}},removeLocalStorageItem=e=>{localCache.delete(e),localStorage.removeItem(e)},setSessionStorageItem=(e,t,r="production")=>{sessionCache.set(e,JSON.stringify(t)),"production"===r?sessionStorage.setItem(e,encrypt(JSON.stringify(t))):sessionStorage.setItem(e,JSON.stringify(t))},getSessionStorageItem=(e,t="production")=>{if(sessionCache.has(e))return JSON.parse(sessionCache.get(e));const r=sessionStorage.getItem(e);if(null==r)return null;try{const n="production"===t?JSON.parse(decrypt(r)):JSON.parse(r);return sessionCache.set(e,JSON.stringify(n)),n}catch{return sessionStorage.removeItem(e),null}},removeSessionStorageItem=e=>{sessionCache.delete(e),sessionStorage.removeItem(e)},customPasswordValidator=e=>{const t=/[A-Z]/.test(e),r=/[a-z]/.test(e),n=/[0-9]/.test(e),i=/[#?!@$%^&*-]/.test(e);return t&&r&&n&&i},allowOnlyNumber=e=>{if(e=e||window.event,"paste"==e.type){const t=e,r=t.clipboardData?.getData("Text");return!isNaN(r)||t.preventDefault()}{const t=e,r=t.which?t.which:t.keyCode;return!(r>31&&(r<48||r>57)&&46!==r)||t.preventDefault()}},allowedDecimalPlaces=(e,t)=>{if(e=e||window.event,"paste"==e.type){const r=e,n=r.clipboardData?.getData("Text"),i=n?.indexOf(".");return!(n.split(".").length>2||t<=0&&2===n.split(".").length||2===n.split(".").length&&i+1!=n.length-t)||r.preventDefault()}{const r=e,n=r.which?r.which:r.keyCode;if(t<=0)return!(["keyup","keydown"].includes(e.type)&&190===n||"keypress"==r.type&&46===n)||r.preventDefault();{const e=r.target,i=e.value,o=i.indexOf(".");return!(o>=0&&o<i.length-t||46===n&&2===i.split(".").length)||r.preventDefault()}}},highlightText=(e,t,r="success")=>e.replace(new RegExp(t,"gi"),e=>`<span class='text-${r}'>${e}</span>`),imageExists=(e,t)=>{const r=new Image;if(r.src=e,r.complete)return void 0!=t&&t(!0),!0;r.onload=()=>(void 0!=t&&t(!0),!0),r.onerror=()=>(void 0!=t&&t(!1),!1)},httpBuildQuery=e=>{const t=encodeURIComponent,r=Object.keys(e).map(r=>t(r)+"="+t(e[r])).join("&");return r},uuid=(e,t)=>{let r=e||"";return r+=Math.random().toString(36).substring(2,8)+Math.random().toString(36).substring(2,8),r+=t||"",r},dateFormatter=(e,t="dd-MM-yyyy")=>(0,date_fns__WEBPACK_IMPORTED_MODULE_4__.A)(new Date(e),t),loadRemoteEmbeddable=url=>(window.__LOADED_EMBEDDABLES__||(window.__LOADED_EMBEDDABLES__=new Set),window.__LOADED_EMBEDDABLES__.has(url)?Promise.resolve({}):eval(`import("${url}")`).then(e=>(window.__LOADED_EMBEDDABLES__.add(url),e))),fromNow=e=>(0,date_fns__WEBPACK_IMPORTED_MODULE_5__.A)(new Date(e),{addSuffix:!0}),numberFormat=(e,t,r,n)=>{t=t||0,"string"===typeof e&&(e=parseFloat(e)),r&&n||(r=".",n=",");let i=Math.round(Math.abs(e)*Math.pow(10,t))+"";i=1>e&&-1<e&&i.length<=t?Array(t-i.length+1).join("0")+i:i;let o=t?i.slice(0,-1*t):i.slice(0);const s=parseInt(o)||0;o=0==s?"0":o;const a=t?i.slice(-1*t):"";let c="";while(o.length>3)c=n+o.slice(-3)+c,o=o.slice(0,-3);return(e<0?"-":"")+o+c+(a?r+a:"")}},5156:function(){},7545:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:function(){return n}})},6096:function(e,t,r){"use strict";function n(){this.__data__=[],this.size=0}r.d(t,{A:function(){return w}});var i=n,o=r(6979);function s(e,t){var r=e.length;while(r--)if((0,o.A)(e[r][0],t))return r;return-1}var a=s,c=Array.prototype,u=c.splice;function l(e){var t=this.__data__,r=a(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():u.call(t,r,1),--this.size,!0}var h=l;function d(e){var t=this.__data__,r=a(t,e);return r<0?void 0:t[r][1]}var p=d;function f(e){return a(this.__data__,e)>-1}var m=f;function g(e,t){var r=this.__data__,n=a(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var v=g;function y(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}y.prototype.clear=i,y.prototype["delete"]=h,y.prototype.get=p,y.prototype.has=m,y.prototype.set=v;var w=y},5436:function(e,t,r){"use strict";var n=r(8869),i=r(9600),o=(0,n.A)(i.A,"Map");t.A=o},3269:function(e,t,r){"use strict";r.d(t,{A:function(){return z}});var n=r(8869),i=(0,n.A)(Object,"create"),o=i;function s(){this.__data__=o?o(null):{},this.size=0}var a=s;function c(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u=c,l="__lodash_hash_undefined__",h=Object.prototype,d=h.hasOwnProperty;function p(e){var t=this.__data__;if(o){var r=t[e];return r===l?void 0:r}return d.call(t,e)?t[e]:void 0}var f=p,m=Object.prototype,g=m.hasOwnProperty;function v(e){var t=this.__data__;return o?void 0!==t[e]:g.call(t,e)}var y=v,w="__lodash_hash_undefined__";function b(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=o&&void 0===t?w:t,this}var _=b;function k(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}k.prototype.clear=a,k.prototype["delete"]=u,k.prototype.get=f,k.prototype.has=y,k.prototype.set=_;var S=k,x=r(6096),C=r(5436);function E(){this.size=0,this.__data__={hash:new S,map:new(C.A||x.A),string:new S}}var A=E;function O(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var I=O;function T(e,t){var r=e.__data__;return I(t)?r["string"==typeof t?"string":"hash"]:r.map}var M=T;function R(e){var t=M(this,e)["delete"](e);return this.size-=t?1:0,t}var P=R;function D(e){return M(this,e).get(e)}var L=D;function B(e){return M(this,e).has(e)}var N=B;function j(e,t){var r=M(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var F=j;function U(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}U.prototype.clear=A,U.prototype["delete"]=P,U.prototype.get=L,U.prototype.has=N,U.prototype.set=F;var z=U},3516:function(e,t,r){"use strict";var n=r(9600),i=n.A.Symbol;t.A=i},6124:function(e,t,r){"use strict";var n=r(9271),i=r(6979),o=Object.prototype,s=o.hasOwnProperty;function a(e,t,r){var o=e[t];s.call(e,t)&&(0,i.A)(o,r)&&(void 0!==r||t in e)||(0,n.A)(e,t,r)}t.A=a},9271:function(e,t,r){"use strict";var n=r(1758);function i(e,t,r){"__proto__"==t&&n.A?(0,n.A)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.A=i},4044:function(e,t,r){"use strict";r.d(t,{A:function(){return y}});var n=r(3516),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n.A?n.A.toStringTag:void 0;function c(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(c){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}var u=c,l=Object.prototype,h=l.toString;function d(e){return h.call(e)}var p=d,f="[object Null]",m="[object Undefined]",g=n.A?n.A.toStringTag:void 0;function v(e){return null==e?void 0===e?m:f:g&&g in Object(e)?u(e):p(e)}var y=v},5118:function(e,t,r){"use strict";r.d(t,{A:function(){return M}});var n=r(6956),i=r(4089),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function a(e,t){if((0,n.A)(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!(0,i.A)(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}var c=a,u=r(3269),l="Expected a function";function h(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(l);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(h.Cache||u.A),r}h.Cache=u.A;var d=h,p=500;function f(e){var t=d(e,function(e){return r.size===p&&r.clear(),e}),r=t.cache;return t}var m=f,g=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g,y=m(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(g,function(e,r,n,i){t.push(n?i.replace(v,"$1"):r||e)}),t}),w=y,b=r(3516);function _(e,t){var r=-1,n=null==e?0:e.length,i=Array(n);while(++r<n)i[r]=t(e[r],r,e);return i}var k=_,S=1/0,x=b.A?b.A.prototype:void 0,C=x?x.toString:void 0;function E(e){if("string"==typeof e)return e;if((0,n.A)(e))return k(e,E)+"";if((0,i.A)(e))return C?C.call(e):"";var t=e+"";return"0"==t&&1/e==-S?"-0":t}var A=E;function O(e){return null==e?"":A(e)}var I=O;function T(e,t){return(0,n.A)(e)?e:c(e,t)?[e]:w(I(e))}var M=T},1758:function(e,t,r){"use strict";var n=r(8869),i=function(){try{var e=(0,n.A)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.A=i},6713:function(e,t,r){"use strict";var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.A=n},8869:function(e,t,r){"use strict";r.d(t,{A:function(){return A}});var n=r(405),i=r(9600),o=i.A["__core-js_shared__"],s=o,a=function(){var e=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function c(e){return!!a&&a in e}var u=c,l=r(7942),h=Function.prototype,d=h.toString;function p(e){if(null!=e){try{return d.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var f=p,m=/[\\^$.*+?()[\]{}|]/g,g=/^\[object .+?Constructor\]$/,v=Function.prototype,y=Object.prototype,w=v.toString,b=y.hasOwnProperty,_=RegExp("^"+w.call(b).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function k(e){if(!(0,l.A)(e)||u(e))return!1;var t=(0,n.A)(e)?_:g;return t.test(f(e))}var S=k;function x(e,t){return null==e?void 0:e[t]}var C=x;function E(e,t){var r=C(e,t);return S(r)?r:void 0}var A=E},7902:function(e,t,r){"use strict";function n(e,t){return function(r){return e(t(r))}}r.d(t,{A:function(){return s}});var i=n,o=i(Object.getPrototypeOf,Object),s=o},5378:function(e,t){"use strict";var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t=null==t?r:t,!!t&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<t}t.A=i},9600:function(e,t,r){"use strict";var n=r(6713),i="object"==typeof self&&self&&self.Object===Object&&self,o=n.A||i||Function("return this")();t.A=o},9322:function(e,t,r){"use strict";var n=r(4089),i=1/0;function o(e){if("string"==typeof e||(0,n.A)(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}t.A=o},6979:function(e,t){"use strict";function r(e,t){return e===t||e!==e&&t!==t}t.A=r},8552:function(e,t,r){"use strict";r.d(t,{A:function(){return c}});var n=r(5118),i=r(9322);function o(e,t){t=(0,n.A)(t,e);var r=0,o=t.length;while(null!=e&&r<o)e=e[(0,i.A)(t[r++])];return r&&r==o?e:void 0}var s=o;function a(e,t,r){var n=null==e?void 0:s(e,t);return void 0===n?r:n}var c=a},6956:function(e,t){"use strict";var r=Array.isArray;t.A=r},405:function(e,t,r){"use strict";var n=r(4044),i=r(7942),o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";function u(e){if(!(0,i.A)(e))return!1;var t=(0,n.A)(e);return t==s||t==a||t==o||t==c}t.A=u},7942:function(e,t){"use strict";function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.A=r},7313:function(e,t){"use strict";function r(e){return null!=e&&"object"==typeof e}t.A=r},8938:function(e,t,r){"use strict";var n=r(4044),i=r(7902),o=r(7313),s="[object Object]",a=Function.prototype,c=Object.prototype,u=a.toString,l=c.hasOwnProperty,h=u.call(Object);function d(e){if(!(0,o.A)(e)||(0,n.A)(e)!=s)return!1;var t=(0,i.A)(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==h}t.A=d},4089:function(e,t,r){"use strict";var n=r(4044),i=r(7313),o="[object Symbol]";function s(e){return"symbol"==typeof e||(0,i.A)(e)&&(0,n.A)(e)==o}t.A=s},4441:function(e,t,r){"use strict";r.d(t,{A:function(){return h}});var n=r(6124),i=r(5118),o=r(5378),s=r(7942),a=r(9322);function c(e,t,r,c){if(!(0,s.A)(e))return e;t=(0,i.A)(t,e);var u=-1,l=t.length,h=l-1,d=e;while(null!=d&&++u<l){var p=(0,a.A)(t[u]),f=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=h){var m=d[p];f=c?c(m,p,d):void 0,void 0===f&&(f=(0,s.A)(m)?m:(0,o.A)(t[u+1])?[]:{})}(0,n.A)(d,p,f),d=d[p]}return e}var u=c;function l(e,t,r){return null==e?e:u(e,t,r)}var h=l}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}!function(){__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return __webpack_require__.d(t,{a:t}),t}}(),function(){__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var __webpack_exports__={};return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AlertService:function(){return e},DataModifierService:function(){return r},DraggableService:function(){return i},EventBus:function(){return ki},HTTPBaseService:function(){return Ur},HelperService:function(){return h},HttpProcess:function(){return t},MixpanelService:function(){return kA},ShrEventBus:function(){return Si},ShrPusherService:function(){return Oi},default:function(){return SA}});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{alert:function(){return Nr},fire:function(){return Br},toast:function(){return jr}});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{makeRequest:function(){return wi},makeRequestToExecute:function(){return bi}});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{alterUsersForProfileStrip:function(){return _i}});const n={enableDragSort:e=>{window.onload=()=>{const t=document.querySelectorAll(e);Array.prototype.map.call(t,r=>{n.enableDragList(r),shrSafeLog(e,t)})}},enableDragList:e=>{Array.prototype.map.call(e.children,e=>{n.enableDragItem(e)})},enableDragItem:e=>{e.setAttribute("draggable",new Boolean(!0).toString()),e.ondrag=n.handleDrag,e.ondragend=n.handleDrop},handleDrag:e=>{const t=e.target,r=t.parentNode,n=e.clientX,i=e.clientY;t.classList.add("drag-sort-active");let o=null===document.elementFromPoint(n,i)?t:document.elementFromPoint(n,i);r===o?.parentNode&&(o=o!==t.nextSibling?o:o.nextSibling,r?.insertBefore(t,o))},handleDrop:e=>{e.target?.classList.remove("drag-sort-active")}};var i=n,o=__webpack_require__(6660),s=__webpack_require__.n(o);
|
|
32
32
|
/*! js-cookie v3.0.5 | MIT */
|
|
33
|
-
function a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var c={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function u(e,t){function r(r,n,i){if("undefined"!==typeof document){i=a({},t,i),"number"===typeof i.expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=r+"="+e.write(n,r)+o}}function n(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(n[a]=e.read(s,a),t===a)break}catch(c){}}return t?n[t]:n}}return Object.create({set:r,get:n,remove:function(e,t){r(e,"",a({},t,{expires:-1}))},withAttributes:function(e){return u(this.converter,a({},this.attributes,e))},withConverter:function(e){return u(a({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var l=u(c,{path:"/"}),h=__webpack_require__(6448);const d=new Map,p="@accessBreezeToken",f="@accessToken",m="idms_token",g="@refreshToken";class v{encryptionKey;constructor(e){this.encryptionKey=e}get(e){if(d.has(e))return JSON.parse(d.get(e));const t=l.get(e);if(!t)return"";let r="";try{r=JSON.parse(h.decrypt(t,this.encryptionKey))}catch{return l.remove(e),""}return d.set(e,JSON.stringify(r)),r}set(e,t,r){d.set(e,JSON.stringify(t)),t=h.encrypt(JSON.stringify(t),this.encryptionKey),l.set(e,t,r)}remove(e,t){d.delete(e),l.remove(e,t)}saveBreezeToken(e,t){const r=e.expires?Date.parse(e.expires):void 0;e.expires=r,this.set(p,e,t)}removeBreezeToken(e){this.remove(p,e)}getBreezeTokenKey(){return p}getBreezeToken(){return this.get(p)}getTokenKey(){return f}getToken(){return this.get(f)}saveToken(e,t){this.set(f,e,t)}removeToken(e){this.remove(f,e)}removeLocalStorageToken(){h.removeLocalStorageItem(m)}getRefreshTokenKey(){return g}getRefreshToken(){return this.get(g)}saveRefreshToken(e){this.set(g,e)}removeRefreshToken(e){this.remove(g,e)}}var y=v;const w="@appClient",b="@loggedInUser";class _{encryptionKey;tokenService;constructor(e){this.encryptionKey=e,this.tokenService=new y(e)}setClientDetails(e){h.setLocalStorageItem(w,e)}getClientDetails(){return h.getLocalStorageItem(w)}removeClientDetails(){h.removeLocalStorageItem(w)}setLoggedInUser(e){h.setLocalStorageItem(b,e)}getLoggedInUser(){return h.getLocalStorageItem(b)}removeLoggedInUser(){h.removeLocalStorageItem(b)}isLoggedIn(){return!!this.hasLoggedIn()}logOut(){this.tokenService.removeLocalStorageToken(),this.tokenService.removeToken(),this.tokenService.removeBreezeToken(),this.removeLoggedInUser()}hasLoggedIn(){const e=this.getLoggedInUser();return!!e?.id}}var k=_,S=__webpack_require__(6586),x=__webpack_require__.n(S),C=__webpack_require__(6096);function E(){this.__data__=new C.A,this.size=0}var A=E;function O(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}var I=O;function T(e){return this.__data__.get(e)}var M=T;function R(e){return this.__data__.has(e)}var P=R,D=__webpack_require__(5436),L=__webpack_require__(3269),B=200;function N(e,t){var r=this.__data__;if(r instanceof C.A){var n=r.__data__;if(!D.A||n.length<B-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new L.A(n)}return r.set(e,t),this.size=r.size,this}var j=N;function F(e){var t=this.__data__=new C.A(e);this.size=t.size}F.prototype.clear=A,F.prototype["delete"]=I,F.prototype.get=M,F.prototype.has=P,F.prototype.set=j;var U=F,z=__webpack_require__(9271),q=__webpack_require__(6979);function H(e,t,r){(void 0!==r&&!(0,q.A)(e[t],r)||void 0===r&&!(t in e))&&(0,z.A)(e,t,r)}var $=H;function W(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var c=s[e?a:++i];if(!1===r(o[c],c,o))break}return t}}var V=W,Y=V(),X=Y,J=__webpack_require__(9600),G="object"==typeof exports&&exports&&!exports.nodeType&&exports,K=G&&"object"==typeof module&&module&&!module.nodeType&&module,Z=K&&K.exports===G,Q=Z?J.A.Buffer:void 0,ee=Q?Q.allocUnsafe:void 0;function te(e,t){if(t)return e.slice();var r=e.length,n=ee?ee(r):new e.constructor(r);return e.copy(n),n}var re=te,ne=J.A.Uint8Array,ie=ne;function oe(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}var se=oe;function ae(e,t){var r=t?se(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ce=ae;function ue(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}var le=ue,he=__webpack_require__(7942),de=Object.create,pe=function(){function e(){}return function(t){if(!(0,he.A)(t))return{};if(de)return de(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),fe=pe,me=__webpack_require__(7902),ge=Object.prototype;function ve(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||ge;return e===r}var ye=ve;function we(e){return"function"!=typeof e.constructor||ye(e)?{}:fe((0,me.A)(e))}var be=we,_e=__webpack_require__(4044),ke=__webpack_require__(7313),Se="[object Arguments]";function xe(e){return(0,ke.A)(e)&&(0,_e.A)(e)==Se}var Ce=xe,Ee=Object.prototype,Ae=Ee.hasOwnProperty,Oe=Ee.propertyIsEnumerable,Ie=Ce(function(){return arguments}())?Ce:function(e){return(0,ke.A)(e)&&Ae.call(e,"callee")&&!Oe.call(e,"callee")},Te=Ie,Me=__webpack_require__(6956),Re=__webpack_require__(405),Pe=9007199254740991;function De(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Pe}var Le=De;function Be(e){return null!=e&&Le(e.length)&&!(0,Re.A)(e)}var Ne=Be;function je(e){return(0,ke.A)(e)&&Ne(e)}var Fe=je;function Ue(){return!1}var ze=Ue,qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,He=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=He&&He.exports===qe,We=$e?J.A.Buffer:void 0,Ve=We?We.isBuffer:void 0,Ye=Ve||ze,Xe=Ye,Je=__webpack_require__(8938),Ge="[object Arguments]",Ke="[object Array]",Ze="[object Boolean]",Qe="[object Date]",et="[object Error]",tt="[object Function]",rt="[object Map]",nt="[object Number]",it="[object Object]",ot="[object RegExp]",st="[object Set]",at="[object String]",ct="[object WeakMap]",ut="[object ArrayBuffer]",lt="[object DataView]",ht="[object Float32Array]",dt="[object Float64Array]",pt="[object Int8Array]",ft="[object Int16Array]",mt="[object Int32Array]",gt="[object Uint8Array]",vt="[object Uint8ClampedArray]",yt="[object Uint16Array]",wt="[object Uint32Array]",bt={};function _t(e){return(0,ke.A)(e)&&Le(e.length)&&!!bt[(0,_e.A)(e)]}bt[ht]=bt[dt]=bt[pt]=bt[ft]=bt[mt]=bt[gt]=bt[vt]=bt[yt]=bt[wt]=!0,bt[Ge]=bt[Ke]=bt[ut]=bt[Ze]=bt[lt]=bt[Qe]=bt[et]=bt[tt]=bt[rt]=bt[nt]=bt[it]=bt[ot]=bt[st]=bt[at]=bt[ct]=!1;var kt=_t;function St(e){return function(t){return e(t)}}var xt=St,Ct=__webpack_require__(6713),Et="object"==typeof exports&&exports&&!exports.nodeType&&exports,At=Et&&"object"==typeof module&&module&&!module.nodeType&&module,Ot=At&&At.exports===Et,It=Ot&&Ct.A.process,Tt=function(){try{var e=At&&At.require&&At.require("util").types;return e||It&&It.binding&&It.binding("util")}catch(t){}}(),Mt=Tt,Rt=Mt&&Mt.isTypedArray,Pt=Rt?xt(Rt):kt,Dt=Pt;function Lt(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Bt=Lt,Nt=__webpack_require__(6124);function jt(e,t,r,n){var i=!r;r||(r={});var o=-1,s=t.length;while(++o<s){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;void 0===c&&(c=e[a]),i?(0,z.A)(r,a,c):(0,Nt.A)(r,a,c)}return r}var Ft=jt;function Ut(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}var zt=Ut,qt=__webpack_require__(5378),Ht=Object.prototype,$t=Ht.hasOwnProperty;function Wt(e,t){var r=(0,Me.A)(e),n=!r&&Te(e),i=!r&&!n&&Xe(e),o=!r&&!n&&!i&&Dt(e),s=r||n||i||o,a=s?zt(e.length,String):[],c=a.length;for(var u in e)!t&&!$t.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||(0,qt.A)(u,c))||a.push(u);return a}var Vt=Wt;function Yt(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}var Xt=Yt,Jt=Object.prototype,Gt=Jt.hasOwnProperty;function Kt(e){if(!(0,he.A)(e))return Xt(e);var t=ye(e),r=[];for(var n in e)("constructor"!=n||!t&&Gt.call(e,n))&&r.push(n);return r}var Zt=Kt;function Qt(e){return Ne(e)?Vt(e,!0):Zt(e)}var er=Qt;function tr(e){return Ft(e,er(e))}var rr=tr;function nr(e,t,r,n,i,o,s){var a=Bt(e,r),c=Bt(t,r),u=s.get(c);if(u)$(e,r,u);else{var l=o?o(a,c,r+"",e,t,s):void 0,h=void 0===l;if(h){var d=(0,Me.A)(c),p=!d&&Xe(c),f=!d&&!p&&Dt(c);l=c,d||p||f?(0,Me.A)(a)?l=a:Fe(a)?l=le(a):p?(h=!1,l=re(c,!0)):f?(h=!1,l=ce(c,!0)):l=[]:(0,Je.A)(c)||Te(c)?(l=a,Te(a)?l=rr(a):(0,he.A)(a)&&!(0,Re.A)(a)||(l=be(c))):h=!1}h&&(s.set(c,l),i(l,c,n,o,s),s["delete"](c)),$(e,r,l)}}var ir=nr;function or(e,t,r,n,i){e!==t&&X(t,function(o,s){if(i||(i=new U),(0,he.A)(o))ir(e,t,s,r,or,n,i);else{var a=n?n(Bt(e,s),o,s+"",e,t,i):void 0;void 0===a&&(a=o),$(e,s,a)}},er)}var sr=or;function ar(e){return e}var cr=ar;function ur(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var lr=ur,hr=Math.max;function dr(e,t,r){return t=hr(void 0===t?e.length-1:t,0),function(){var n=arguments,i=-1,o=hr(n.length-t,0),s=Array(o);while(++i<o)s[i]=n[t+i];i=-1;var a=Array(t+1);while(++i<t)a[i]=n[i];return a[t]=r(s),lr(e,this,a)}}var pr=dr;function fr(e){return function(){return e}}var mr=fr,gr=__webpack_require__(1758),vr=gr.A?function(e,t){return(0,gr.A)(e,"toString",{configurable:!0,enumerable:!1,value:mr(t),writable:!0})}:cr,yr=vr,wr=800,br=16,_r=Date.now;function kr(e){var t=0,r=0;return function(){var n=_r(),i=br-(n-r);if(r=n,i>0){if(++t>=wr)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Sr=kr,xr=Sr(yr),Cr=xr;function Er(e,t){return Cr(pr(e,t,cr),e+"")}var Ar=Er;function Or(e,t,r){if(!(0,he.A)(r))return!1;var n=typeof t;return!!("number"==n?Ne(r)&&(0,qt.A)(t,r.length):"string"==n&&t in r)&&(0,q.A)(r[t],e)}var Ir=Or;function Tr(e){return Ar(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&Ir(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++n<i){var a=r[n];a&&e(t,a,n,o)}return t})}var Mr=Tr,Rr=Mr(function(e,t,r){sr(e,t,r)}),Pr=Rr;const Dr="calc(var(--sfe-stack-level-alert) + 1)",Lr=e=>{const t=e.closest(".swal2-container");t?.style.setProperty("z-index",Dr)},Br=e=>{const t=e.didOpen;return x().fire({...e,didOpen:e=>{Lr(e),t?.(e)}})},Nr=(e,t)=>{const r={confirmButtonText:"Yes",cancelButtonText:"No",customClass:{confirmButton:"btn btn-primary",cancelButton:"btn btn-danger"},reverseButtons:!0},n={showCancelButton:!t,showCloseButton:!1,buttonsStyling:!1},i=Pr(r,e,n);return Br({html:`<div class="d-flex flex-column">\n <div class="icon d-flex wpx-76 hpx-76 bg-${i.iconColor}-lt-2 rounded-circle mx-auto mt-4">\n <span class="material-icons fw-700 fs-40 text-${i.iconColor}-dk-1 my-auto mx-auto">\n ${i.iconName}\n </span>\n </div>\n <div class="title text-secondary fw-500 fs-20 lh-24 mx-auto mt-4 px-4 text-center">${i.subject}</div>\n <div class="message text-secondary-muted fw-400 fs-15 lh-23 mx-auto mt-2 px-4">${i.message}</div>\n </div>`,...i})},jr=(e,t,r)=>{let n,i;switch(e){case"success":n="check_circle",i="success";break;case"warning":n="error",i="warning";break;case"error":n="cancel",i="danger";break;case"info":default:n="help",i="primary";break}Br({toast:!0,position:"top",showConfirmButton:!1,timer:5e3,timerProgressBar:!1,showCancelButton:!1,didOpen:e=>{e.addEventListener("mouseenter",x().stopTimer),e.addEventListener("mouseleave",x().resumeTimer),e.querySelector(".swal2-cancel")?.addEventListener("click",()=>{x().close()})},html:`<div class="d-flex justify-content-between">\n <div class="d-flex flex-grow-1 align-items-start">\n <div class="me-2 mt-1">\n <span class="material-icons text-${i} fs-18">\n ${n}\n </span>\n </div>\n <div class="flex-grow-1 me-2 text-left mt-1 mb-2">\n <p class="text-${i} mb-1 fs-16 fw-500">${t}</p>\n <small class="m-0 text-secondary-muted fs-15 fw-normal">${r}</small>\n </div>\n </div>\n <span class="swal2-cancel material-icons small cursor-pointer text-secondary-lt-1"">clear</span>\n </div>`})},Fr={"X-Requested-With":"XMLHttpRequest","SHR-Client-URL":`${window?.location?.host}`};class Ur{tokenService;authService;instance;token;apiBaseUrl;refreshTokenPath;loginUrl;timeout;projectType;httpHeaders;showError;constructor(e){this.tokenService=new y(e?.encryptionKey),this.authService=new k(e?.encryptionKey),this.apiBaseUrl=e?.apiBaseUrl||"/",this.refreshTokenPath=e?.refreshTokenPath||"",this.loginUrl=e?.loginUrl,this.timeout=e?.timeout||2e4,this.projectType=e?.projectType,this.httpHeaders=e?.httpHeaders||{},this.showError=Object.assign({},{error500:!0,error400:!0,error422:!0,error404:!0,error401:!0,error403:!0},e?.showError),this.instance=s().create({baseURL:this.apiBaseUrl}),this.token=this.tokenService.getToken(),this.initializeRequestInterceptor(),this.initializeResponseInterceptor()}getInstance=()=>this.instance;interceptorCallbacks=(e,t)=>{if(!t||!Array.isArray(t))throw new Error("callbacks should be an array of functions");t.forEach(t=>{if("function"!==typeof t)throw new Error("callback should be a function");t(e)})};initializeRequestInterceptor=()=>{this.instance.interceptors.request.use(this.handleRequest,e=>{Promise.reject(e)})};handleRequest=e=>{this.token="breeze"===this.projectType?this.tokenService.getBreezeToken()?.token:this.tokenService.getToken();const t=Object.assign({},e.headers?.common||{},this.httpHeaders,{Authorization:`Bearer ${this.token}`},Fr);return e.timeout=this.timeout,this.token&&(e.headers=Object.assign({},e.headers,{Authorization:`Bearer ${this.token}`},{common:t})),navigator.onLine?e:(jr("error","Error","No internet access!"),Promise.reject(new Error("No internet access!")))};initializeResponseInterceptor=()=>{this.instance.interceptors.response.use(e=>{if(e.headers&&e.headers.authorization){const t=e.headers.authorization.split(" ")[1];this.token=t,this.tokenService.saveToken(this.token)}return e},this.handleError)};handleError=async e=>{const t=e.config;if(this.showError?.error403&&403===e.response?.status||this.showError?.error401&&401===e.response?.status&&!t?._retry){console.log("ATTEMPTING... REFRESHING TOKEN"),t._retry=!0;const e=await this.refreshToken();if(console.log("REFRESH TOKEN RESPONSE",e),e?.data?.access_token){const{access_token:r,refresh_token:n,token_expires_at:i}=e.data??{};return this.tokenService.saveToken(r),this.tokenService.saveBreezeToken({token:r,expires:i}),this.tokenService.saveRefreshToken(n),navigator.onLine?this.instance(t):(jr("error","Error","No internet access!"),Promise.reject(new Error("No internet access!")))}}return this.showError?.error500&&500==e.response?.status&&(e.response.data.message?jr("error","Error",e.response.data.message):jr("error","Error","Unable to process request at this time, please try again")),this.showError?.error400&&400==e.response?.status&&(e.response.data.message?jr("error","Error",e.response.data.message):jr("error","Error","Bad Request")),this.showError?.error422&&422===e.response?.status&&(e.response.data.message?jr("error","Error",e.response.data.message):jr("error","Error",Object.values(e?.response?.data?.error)[0][0])),this.showError?.error404&&404===e.response?.status&&jr("error","Error",`${e.config.url} not found`),this.showError?.error401&&401===e.response?.status&&(this.authService.logOut(),jr("error","Error","Your session has expired, you need to sign in again."),setTimeout(()=>{const e="function"===typeof this.loginUrl?this.loginUrl():this.loginUrl;location.href=e},1e3)),Promise.reject(e.response)};async refreshToken(){const e={refresh_token:this.tokenService.getRefreshToken(),ums_user_id:this.authService.getLoggedInUser()?.ums_user_id};return console.log("REFRESH TOKEN REQUEST",e),s().post(`${location.origin}/api/v2/auth/refresh-token-web`,e)}}
|
|
33
|
+
function a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var c={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function u(e,t){function r(r,n,i){if("undefined"!==typeof document){i=a({},t,i),"number"===typeof i.expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=r+"="+e.write(n,r)+o}}function n(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(n[a]=e.read(s,a),t===a)break}catch(c){}}return t?n[t]:n}}return Object.create({set:r,get:n,remove:function(e,t){r(e,"",a({},t,{expires:-1}))},withAttributes:function(e){return u(this.converter,a({},this.attributes,e))},withConverter:function(e){return u(a({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var l=u(c,{path:"/"}),h=__webpack_require__(6448);const d=new Map,p="@accessBreezeToken",f="@accessToken",m="idms_token",g="@refreshToken";class v{encryptionKey;constructor(e){this.encryptionKey=e}get(e){if(d.has(e))return JSON.parse(d.get(e));const t=l.get(e);if(!t)return"";let r="";try{r=JSON.parse(h.decrypt(t,this.encryptionKey))}catch{return l.remove(e),""}return d.set(e,JSON.stringify(r)),r}set(e,t,r){d.set(e,JSON.stringify(t)),t=h.encrypt(JSON.stringify(t),this.encryptionKey),l.set(e,t,r)}remove(e,t){d.delete(e),l.remove(e,t)}saveBreezeToken(e,t){const r=e.expires?Date.parse(e.expires):void 0;e.expires=r,this.set(p,e,t)}removeBreezeToken(e){this.remove(p,e)}getBreezeTokenKey(){return p}getBreezeToken(){return this.get(p)}getTokenKey(){return f}getToken(){return this.get(f)}saveToken(e,t){this.set(f,e,t)}removeToken(e){this.remove(f,e)}removeLocalStorageToken(){h.removeLocalStorageItem(m)}getRefreshTokenKey(){return g}getRefreshToken(){return this.get(g)}saveRefreshToken(e){this.set(g,e)}removeRefreshToken(e){this.remove(g,e)}}var y=v;const w="@appClient",b="@loggedInUser";class _{encryptionKey;tokenService;constructor(e){this.encryptionKey=e,this.tokenService=new y(e)}setClientDetails(e){h.setLocalStorageItem(w,e)}getClientDetails(){return h.getLocalStorageItem(w)}removeClientDetails(){h.removeLocalStorageItem(w)}setLoggedInUser(e){h.setLocalStorageItem(b,e)}getLoggedInUser(){return h.getLocalStorageItem(b)}removeLoggedInUser(){h.removeLocalStorageItem(b)}isLoggedIn(){return!!this.hasLoggedIn()}logOut(){this.tokenService.removeLocalStorageToken(),this.tokenService.removeToken(),this.tokenService.removeBreezeToken(),this.removeLoggedInUser()}hasLoggedIn(){const e=this.getLoggedInUser();return!!e?.id}}var k=_,S=__webpack_require__(6586),x=__webpack_require__.n(S),C=__webpack_require__(6096);function E(){this.__data__=new C.A,this.size=0}var A=E;function O(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}var I=O;function T(e){return this.__data__.get(e)}var M=T;function R(e){return this.__data__.has(e)}var P=R,D=__webpack_require__(5436),L=__webpack_require__(3269),B=200;function N(e,t){var r=this.__data__;if(r instanceof C.A){var n=r.__data__;if(!D.A||n.length<B-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new L.A(n)}return r.set(e,t),this.size=r.size,this}var j=N;function F(e){var t=this.__data__=new C.A(e);this.size=t.size}F.prototype.clear=A,F.prototype["delete"]=I,F.prototype.get=M,F.prototype.has=P,F.prototype.set=j;var U=F,z=__webpack_require__(9271),q=__webpack_require__(6979);function H(e,t,r){(void 0!==r&&!(0,q.A)(e[t],r)||void 0===r&&!(t in e))&&(0,z.A)(e,t,r)}var $=H;function W(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var c=s[e?a:++i];if(!1===r(o[c],c,o))break}return t}}var V=W,Y=V(),X=Y,J=__webpack_require__(9600),G="object"==typeof exports&&exports&&!exports.nodeType&&exports,K=G&&"object"==typeof module&&module&&!module.nodeType&&module,Z=K&&K.exports===G,Q=Z?J.A.Buffer:void 0,ee=Q?Q.allocUnsafe:void 0;function te(e,t){if(t)return e.slice();var r=e.length,n=ee?ee(r):new e.constructor(r);return e.copy(n),n}var re=te,ne=J.A.Uint8Array,ie=ne;function oe(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}var se=oe;function ae(e,t){var r=t?se(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ce=ae;function ue(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}var le=ue,he=__webpack_require__(7942),de=Object.create,pe=function(){function e(){}return function(t){if(!(0,he.A)(t))return{};if(de)return de(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),fe=pe,me=__webpack_require__(7902),ge=Object.prototype;function ve(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||ge;return e===r}var ye=ve;function we(e){return"function"!=typeof e.constructor||ye(e)?{}:fe((0,me.A)(e))}var be=we,_e=__webpack_require__(4044),ke=__webpack_require__(7313),Se="[object Arguments]";function xe(e){return(0,ke.A)(e)&&(0,_e.A)(e)==Se}var Ce=xe,Ee=Object.prototype,Ae=Ee.hasOwnProperty,Oe=Ee.propertyIsEnumerable,Ie=Ce(function(){return arguments}())?Ce:function(e){return(0,ke.A)(e)&&Ae.call(e,"callee")&&!Oe.call(e,"callee")},Te=Ie,Me=__webpack_require__(6956),Re=__webpack_require__(405),Pe=9007199254740991;function De(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Pe}var Le=De;function Be(e){return null!=e&&Le(e.length)&&!(0,Re.A)(e)}var Ne=Be;function je(e){return(0,ke.A)(e)&&Ne(e)}var Fe=je;function Ue(){return!1}var ze=Ue,qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,He=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=He&&He.exports===qe,We=$e?J.A.Buffer:void 0,Ve=We?We.isBuffer:void 0,Ye=Ve||ze,Xe=Ye,Je=__webpack_require__(8938),Ge="[object Arguments]",Ke="[object Array]",Ze="[object Boolean]",Qe="[object Date]",et="[object Error]",tt="[object Function]",rt="[object Map]",nt="[object Number]",it="[object Object]",ot="[object RegExp]",st="[object Set]",at="[object String]",ct="[object WeakMap]",ut="[object ArrayBuffer]",lt="[object DataView]",ht="[object Float32Array]",dt="[object Float64Array]",pt="[object Int8Array]",ft="[object Int16Array]",mt="[object Int32Array]",gt="[object Uint8Array]",vt="[object Uint8ClampedArray]",yt="[object Uint16Array]",wt="[object Uint32Array]",bt={};function _t(e){return(0,ke.A)(e)&&Le(e.length)&&!!bt[(0,_e.A)(e)]}bt[ht]=bt[dt]=bt[pt]=bt[ft]=bt[mt]=bt[gt]=bt[vt]=bt[yt]=bt[wt]=!0,bt[Ge]=bt[Ke]=bt[ut]=bt[Ze]=bt[lt]=bt[Qe]=bt[et]=bt[tt]=bt[rt]=bt[nt]=bt[it]=bt[ot]=bt[st]=bt[at]=bt[ct]=!1;var kt=_t;function St(e){return function(t){return e(t)}}var xt=St,Ct=__webpack_require__(6713),Et="object"==typeof exports&&exports&&!exports.nodeType&&exports,At=Et&&"object"==typeof module&&module&&!module.nodeType&&module,Ot=At&&At.exports===Et,It=Ot&&Ct.A.process,Tt=function(){try{var e=At&&At.require&&At.require("util").types;return e||It&&It.binding&&It.binding("util")}catch(t){}}(),Mt=Tt,Rt=Mt&&Mt.isTypedArray,Pt=Rt?xt(Rt):kt,Dt=Pt;function Lt(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Bt=Lt,Nt=__webpack_require__(6124);function jt(e,t,r,n){var i=!r;r||(r={});var o=-1,s=t.length;while(++o<s){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;void 0===c&&(c=e[a]),i?(0,z.A)(r,a,c):(0,Nt.A)(r,a,c)}return r}var Ft=jt;function Ut(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}var zt=Ut,qt=__webpack_require__(5378),Ht=Object.prototype,$t=Ht.hasOwnProperty;function Wt(e,t){var r=(0,Me.A)(e),n=!r&&Te(e),i=!r&&!n&&Xe(e),o=!r&&!n&&!i&&Dt(e),s=r||n||i||o,a=s?zt(e.length,String):[],c=a.length;for(var u in e)!t&&!$t.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||(0,qt.A)(u,c))||a.push(u);return a}var Vt=Wt;function Yt(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}var Xt=Yt,Jt=Object.prototype,Gt=Jt.hasOwnProperty;function Kt(e){if(!(0,he.A)(e))return Xt(e);var t=ye(e),r=[];for(var n in e)("constructor"!=n||!t&&Gt.call(e,n))&&r.push(n);return r}var Zt=Kt;function Qt(e){return Ne(e)?Vt(e,!0):Zt(e)}var er=Qt;function tr(e){return Ft(e,er(e))}var rr=tr;function nr(e,t,r,n,i,o,s){var a=Bt(e,r),c=Bt(t,r),u=s.get(c);if(u)$(e,r,u);else{var l=o?o(a,c,r+"",e,t,s):void 0,h=void 0===l;if(h){var d=(0,Me.A)(c),p=!d&&Xe(c),f=!d&&!p&&Dt(c);l=c,d||p||f?(0,Me.A)(a)?l=a:Fe(a)?l=le(a):p?(h=!1,l=re(c,!0)):f?(h=!1,l=ce(c,!0)):l=[]:(0,Je.A)(c)||Te(c)?(l=a,Te(a)?l=rr(a):(0,he.A)(a)&&!(0,Re.A)(a)||(l=be(c))):h=!1}h&&(s.set(c,l),i(l,c,n,o,s),s["delete"](c)),$(e,r,l)}}var ir=nr;function or(e,t,r,n,i){e!==t&&X(t,function(o,s){if(i||(i=new U),(0,he.A)(o))ir(e,t,s,r,or,n,i);else{var a=n?n(Bt(e,s),o,s+"",e,t,i):void 0;void 0===a&&(a=o),$(e,s,a)}},er)}var sr=or;function ar(e){return e}var cr=ar;function ur(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var lr=ur,hr=Math.max;function dr(e,t,r){return t=hr(void 0===t?e.length-1:t,0),function(){var n=arguments,i=-1,o=hr(n.length-t,0),s=Array(o);while(++i<o)s[i]=n[t+i];i=-1;var a=Array(t+1);while(++i<t)a[i]=n[i];return a[t]=r(s),lr(e,this,a)}}var pr=dr;function fr(e){return function(){return e}}var mr=fr,gr=__webpack_require__(1758),vr=gr.A?function(e,t){return(0,gr.A)(e,"toString",{configurable:!0,enumerable:!1,value:mr(t),writable:!0})}:cr,yr=vr,wr=800,br=16,_r=Date.now;function kr(e){var t=0,r=0;return function(){var n=_r(),i=br-(n-r);if(r=n,i>0){if(++t>=wr)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Sr=kr,xr=Sr(yr),Cr=xr;function Er(e,t){return Cr(pr(e,t,cr),e+"")}var Ar=Er;function Or(e,t,r){if(!(0,he.A)(r))return!1;var n=typeof t;return!!("number"==n?Ne(r)&&(0,qt.A)(t,r.length):"string"==n&&t in r)&&(0,q.A)(r[t],e)}var Ir=Or;function Tr(e){return Ar(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&Ir(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++n<i){var a=r[n];a&&e(t,a,n,o)}return t})}var Mr=Tr,Rr=Mr(function(e,t,r){sr(e,t,r)}),Pr=Rr;const Dr="calc(var(--sfe-stack-level-alert) + 1)",Lr=e=>{const t=e.closest(".swal2-container");t?.style.setProperty("z-index",Dr)},Br=e=>{const t=e.didOpen;return x().fire({...e,didOpen:e=>{Lr(e),t?.(e)}})},Nr=(e,t)=>{const r={confirmButtonText:"Yes",cancelButtonText:"No",customClass:{confirmButton:"btn btn-primary",cancelButton:"btn btn-danger"},reverseButtons:!0},n={showCancelButton:!t,showCloseButton:!1,buttonsStyling:!1},i=Pr(r,e,n);return Br({html:`<div class="d-flex flex-column">\n <div class="icon d-flex wpx-76 hpx-76 bg-${i.iconColor}-lt-2 rounded-circle mx-auto mt-4">\n <span class="material-icons fw-700 fs-40 text-${i.iconColor}-dk-1 my-auto mx-auto">\n ${i.iconName}\n </span>\n </div>\n <div class="title text-secondary fw-500 fs-20 lh-24 mx-auto mt-4 px-4 text-center">${i.subject}</div>\n <div class="message text-secondary-muted fw-400 fs-15 lh-23 mx-auto mt-2 px-4">${i.message}</div>\n </div>`,...i})},jr=(e,t,r)=>{let n,i;switch(e){case"success":n="check_circle",i="success";break;case"warning":n="error",i="warning";break;case"error":n="cancel",i="danger";break;case"info":default:n="help",i="primary";break}Br({toast:!0,position:"top",showConfirmButton:!1,timer:5e3,timerProgressBar:!1,showCancelButton:!1,didOpen:e=>{e.addEventListener("mouseenter",x().stopTimer),e.addEventListener("mouseleave",x().resumeTimer),e.querySelector(".swal2-cancel")?.addEventListener("click",()=>{x().close()})},html:`<div class="d-flex justify-content-between">\n <div class="d-flex flex-grow-1 align-items-start">\n <div class="me-2 mt-1">\n <span class="material-icons text-${i} fs-18">\n ${n}\n </span>\n </div>\n <div class="flex-grow-1 me-2 text-left mt-1 mb-2">\n <p class="text-${i} mb-1 fs-16 fw-500">${t}</p>\n <small class="m-0 text-secondary-muted fs-15 fw-normal">${r}</small>\n </div>\n </div>\n <span class="swal2-cancel material-icons small cursor-pointer text-secondary-lt-1"">clear</span>\n </div>`})},Fr={"X-Requested-With":"XMLHttpRequest","SHR-Client-URL":`${window?.location?.host}`};class Ur{tokenService;authService;instance;token;apiBaseUrl;refreshTokenPath;loginUrl;timeout;projectType;httpHeaders;showError;constructor(e){this.tokenService=new y(e?.encryptionKey),this.authService=new k(e?.encryptionKey),this.apiBaseUrl=e?.apiBaseUrl||"/",this.refreshTokenPath=e?.refreshTokenPath||"",this.loginUrl=e?.loginUrl,this.timeout=e?.timeout||2e4,this.projectType=e?.projectType,this.httpHeaders=e?.httpHeaders||{},this.showError=Object.assign({},{error500:!0,error400:!0,error422:!0,error404:!0,error401:!0,error403:!0},e?.showError),this.instance=s().create({baseURL:this.apiBaseUrl}),this.token=this.tokenService.getToken(),this.initializeRequestInterceptor(),this.initializeResponseInterceptor()}getInstance=()=>this.instance;interceptorCallbacks=(e,t)=>{if(!t||!Array.isArray(t))throw new Error("callbacks should be an array of functions");t.forEach(t=>{if("function"!==typeof t)throw new Error("callback should be a function");t(e)})};initializeRequestInterceptor=()=>{this.instance.interceptors.request.use(this.handleRequest,e=>{Promise.reject(e)})};handleRequest=e=>{this.token="breeze"===this.projectType?this.tokenService.getBreezeToken()?.token:this.tokenService.getToken(),console.log(this.httpHeaders,"Header passed",e,"config from axios interceptor");const t=Object.assign({},e.headers?.common||{},this.httpHeaders,{Authorization:`Bearer ${this.token}`},Fr);return e.timeout=this.timeout,this.token&&(e.headers=Object.assign({},e.headers,this.httpHeaders,{Authorization:`Bearer ${this.token}`},{common:t})),navigator.onLine?e:(jr("error","Error","No internet access!"),Promise.reject(new Error("No internet access!")))};initializeResponseInterceptor=()=>{this.instance.interceptors.response.use(e=>{if(e.headers&&e.headers.authorization){const t=e.headers.authorization.split(" ")[1];this.token=t,this.tokenService.saveToken(this.token)}return e},this.handleError)};handleError=async e=>{const t=e.config;if(this.showError?.error403&&403===e.response?.status||this.showError?.error401&&401===e.response?.status&&!t?._retry){console.log("ATTEMPTING... REFRESHING TOKEN"),t._retry=!0;const e=await this.refreshToken();if(console.log("REFRESH TOKEN RESPONSE",e),e?.data?.access_token){const{access_token:r,refresh_token:n,token_expires_at:i}=e.data??{};return this.tokenService.saveToken(r),this.tokenService.saveBreezeToken({token:r,expires:i}),this.tokenService.saveRefreshToken(n),navigator.onLine?this.instance(t):(jr("error","Error","No internet access!"),Promise.reject(new Error("No internet access!")))}}return this.showError?.error500&&500==e.response?.status&&(e.response.data.message?jr("error","Error",e.response.data.message):jr("error","Error","Unable to process request at this time, please try again")),this.showError?.error400&&400==e.response?.status&&(e.response.data.message?jr("error","Error",e.response.data.message):jr("error","Error","Bad Request")),this.showError?.error422&&422===e.response?.status&&(e.response.data.message?jr("error","Error",e.response.data.message):jr("error","Error",Object.values(e?.response?.data?.error)[0][0])),this.showError?.error404&&404===e.response?.status&&jr("error","Error",`${e.config.url} not found`),this.showError?.error401&&401===e.response?.status&&(this.authService.logOut(),jr("error","Error","Your session has expired, you need to sign in again."),setTimeout(()=>{const e="function"===typeof this.loginUrl?this.loginUrl():this.loginUrl;location.href=e},1e3)),Promise.reject(e.response)};async refreshToken(){const e={refresh_token:this.tokenService.getRefreshToken(),ums_user_id:this.authService.getLoggedInUser()?.ums_user_id};return console.log("REFRESH TOKEN REQUEST",e),s().post(`${location.origin}/api/v2/auth/refresh-token-web`,e)}}
|
|
34
34
|
/**
|
|
35
35
|
* @vue/shared v3.5.32
|
|
36
36
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|