dolphin-components 2.2.26 → 2.2.27
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.
|
@@ -65914,17 +65914,16 @@ const Rc = (a) => Ql.mixin({
|
|
|
65914
65914
|
}
|
|
65915
65915
|
}), Hse = (a, e) => {
|
|
65916
65916
|
if (e.value) {
|
|
65917
|
-
a.classList.add("flex"), a.classList.add("flex-col");
|
|
65918
65917
|
const t = a.querySelector("input"), i = document.createElement("span");
|
|
65919
|
-
i.classList.add("
|
|
65918
|
+
i.classList.add("field-error", "error-message"), t?.classList.add("input-error"), i.textContent = e.value, a.appendChild(i);
|
|
65920
65919
|
}
|
|
65921
65920
|
}, zse = (a, e) => {
|
|
65922
65921
|
const t = a.querySelector("input"), i = a.querySelector(".error-message");
|
|
65923
65922
|
if (!i && e.value) {
|
|
65924
65923
|
const r = document.createElement("span");
|
|
65925
|
-
r.classList.add("
|
|
65924
|
+
r.classList.add("field-error", "error-message"), r.textContent = e.value, t?.classList.add("input-error"), a.appendChild(r);
|
|
65926
65925
|
} else
|
|
65927
|
-
e.value ? (a.classList.add("input-error"), t?.classList.add("
|
|
65926
|
+
e.value ? (a.classList.add("input-error"), t?.classList.add("input-error"), i && (i.textContent = e.value)) : (t?.classList.remove("input-error"), i && i.remove());
|
|
65928
65927
|
}, soe = {
|
|
65929
65928
|
mounted: Hse,
|
|
65930
65929
|
updated: zse
|
|
@@ -243,4 +243,4 @@ EOD`}return{to_workbook:i,to_sheet:t,from_sheet:s}})(),BR=(function(){function a
|
|
|
243
243
|
`,jz=(a,e)=>{if(!e.icon&&!e.iconHtml)return;let t=a.innerHTML,i="";e.iconHtml?i=_z(e.iconHtml):e.icon==="success"?(i=Iie(e),t=t.replace(/ style=".*?"/g,"")):e.icon==="error"?i=Fie:e.icon&&(i=_z({question:"?",warning:"!",info:"i"}[e.icon])),t.trim()!==i.trim()&&Oa(a,i)},Die=(a,e)=>{if(e.iconColor){a.style.color=e.iconColor,a.style.borderColor=e.iconColor;for(const t of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])Oz(a,t,"background-color",e.iconColor);Oz(a,".swal2-success-ring","border-color",e.iconColor)}},_z=a=>`<div class="${te["icon-content"]}">${a}</div>`,Aie=(a,e)=>{const t=Rz();if(t){if(!e.imageUrl){fa(t);return}Kt(t,""),t.setAttribute("src",e.imageUrl),t.setAttribute("alt",e.imageAlt||""),Wl(t,"width",e.imageWidth),Wl(t,"height",e.imageHeight),t.className=te.image,Va(t,e,"image")}};let dD=!1,Uz=0,Gz=0,Wz=0,Yz=0;const Rie=a=>{a.addEventListener("mousedown",HS),document.body.addEventListener("mousemove",zS),a.addEventListener("mouseup",OS),a.addEventListener("touchstart",HS),document.body.addEventListener("touchmove",zS),a.addEventListener("touchend",OS)},Pie=a=>{a.removeEventListener("mousedown",HS),document.body.removeEventListener("mousemove",zS),a.removeEventListener("mouseup",OS),a.removeEventListener("touchstart",HS),document.body.removeEventListener("touchmove",zS),a.removeEventListener("touchend",OS)},HS=a=>{const e=ot();if(a.target===e||b1().contains(a.target)){dD=!0;const t=Qz(a);Uz=t.clientX,Gz=t.clientY,Wz=parseInt(e.style.insetInlineStart)||0,Yz=parseInt(e.style.insetBlockStart)||0,ht(e,"swal2-dragging")}},zS=a=>{const e=ot();if(dD){let{clientX:t,clientY:i}=Qz(a);const r=t-Uz;e.style.insetInlineStart=`${Wz+(He.isRTL?-r:r)}px`,e.style.insetBlockStart=`${Yz+(i-Gz)}px`}},OS=()=>{const a=ot();dD=!1,Ja(a,"swal2-dragging")},Qz=a=>{let e=0,t=0;return a.type.startsWith("mouse")?(e=a.clientX,t=a.clientY):a.type.startsWith("touch")&&(e=a.touches[0].clientX,t=a.touches[0].clientY),{clientX:e,clientY:t}},Hie=(a,e)=>{const t=ba(),i=ot();if(!(!t||!i)){if(e.toast){Wl(t,"width",e.width),i.style.width="100%";const r=C1();r&&i.insertBefore(r,b1())}else Wl(i,"width",e.width);Wl(i,"padding",e.padding),e.color&&(i.style.color=e.color),e.background&&(i.style.background=e.background),fa(FS()),zie(i,e),e.draggable&&!e.toast?(ht(i,te.draggable),Rie(i)):(Ja(i,te.draggable),Pie(i))}},zie=(a,e)=>{const t=e.showClass||{};a.className=`${te.popup} ${Sa(a)?t.popup:""}`,e.toast?(ht([document.documentElement,document.body],te["toast-shown"]),ht(a,te.toast)):ht(a,te.modal),Va(a,e,"popup"),typeof e.customClass=="string"&&ht(a,e.customClass),e.icon&&ht(a,te[`icon-${e.icon}`])},Oie=(a,e)=>{const t=eD();if(!t)return;const{progressSteps:i,currentProgressStep:r}=e;if(!i||i.length===0||r===void 0){fa(t);return}Kt(t),t.textContent="",r>=i.length&&xa("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),i.forEach((n,s)=>{const o=Vie(n);if(t.appendChild(o),s===r&&ht(o,te["active-progress-step"]),s!==i.length-1){const l=Bie(e);t.appendChild(l)}})},Vie=a=>{const e=document.createElement("li");return ht(e,te["progress-step"]),Oa(e,a),e},Bie=a=>{const e=document.createElement("li");return ht(e,te["progress-step-line"]),a.progressStepsDistance&&Wl(e,"width",a.progressStepsDistance),e},Nie=(a,e)=>{const t=Az();t&&(rD(t),H0(t,!!(e.title||e.titleText),"block"),e.title&&oD(e.title,t),e.titleText&&(t.innerText=e.titleText),Va(t,e,"title"))},Xz=(a,e)=>{Hie(a,e),yie(a,e),Oie(a,e),Sie(a,e),Aie(a,e),Nie(a,e),mie(a,e),Lie(a,e),uie(a,e),Tie(a,e);const t=ot();typeof e.didRender=="function"&&t&&e.didRender(t),He.eventEmitter.emit("didRender",t)},qie=()=>Sa(ot()),Jz=()=>{var a;return(a=Ei())===null||a===void 0?void 0:a.click()},jie=()=>{var a;return(a=Gl())===null||a===void 0?void 0:a.click()},_ie=()=>{var a;return(a=M1())===null||a===void 0?void 0:a.click()},E1=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Kz=a=>{a.keydownTarget&&a.keydownHandlerAdded&&(a.keydownTarget.removeEventListener("keydown",a.keydownHandler,{capture:a.keydownListenerCapture}),a.keydownHandlerAdded=!1)},Uie=(a,e,t)=>{Kz(a),e.toast||(a.keydownHandler=i=>Wie(e,i,t),a.keydownTarget=e.keydownListenerCapture?window:ot(),a.keydownListenerCapture=e.keydownListenerCapture,a.keydownTarget.addEventListener("keydown",a.keydownHandler,{capture:a.keydownListenerCapture}),a.keydownHandlerAdded=!0)},uD=(a,e)=>{var t;const i=aD();if(i.length){a=a+e,a===-2&&(a=i.length-1),a===i.length?a=0:a===-1&&(a=i.length-1),i[a].focus();return}(t=ot())===null||t===void 0||t.focus()},Zz=["ArrowRight","ArrowDown"],Gie=["ArrowLeft","ArrowUp"],Wie=(a,e,t)=>{a&&(e.isComposing||e.keyCode===229||(a.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Yie(e,a):e.key==="Tab"?Qie(e):[...Zz,...Gie].includes(e.key)?Xie(e.key):e.key==="Escape"&&Jie(e,a,t)))},Yie=(a,e)=>{if(!IS(e.allowEnterKey))return;const t=RS(ot(),e.input);if(a.target&&t&&a.target instanceof HTMLElement&&a.target.outerHTML===t.outerHTML){if(["textarea","file"].includes(e.input))return;Jz(),a.preventDefault()}},Qie=a=>{const e=a.target,t=aD();let i=-1;for(let r=0;r<t.length;r++)if(e===t[r]){i=r;break}a.shiftKey?uD(i,-1):uD(i,1),a.stopPropagation(),a.preventDefault()},Xie=a=>{const e=P0(),t=Ei(),i=Gl(),r=M1();if(!e||!t||!i||!r)return;const n=[t,i,r];if(document.activeElement instanceof HTMLElement&&!n.includes(document.activeElement))return;const s=Zz.includes(a)?"nextElementSibling":"previousElementSibling";let o=document.activeElement;if(o){for(let l=0;l<e.children.length;l++){if(o=o[s],!o)return;if(o instanceof HTMLButtonElement&&Sa(o))break}o instanceof HTMLButtonElement&&o.focus()}},Jie=(a,e,t)=>{a.preventDefault(),IS(e.allowEscapeKey)&&t(E1.esc)};var L1={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Kie=()=>{const a=ba();Array.from(document.body.children).forEach(t=>{t.contains(a)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},$z=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},eO=typeof window<"u"&&!!window.GestureEvent,Zie=()=>{if(eO&&!ji(document.body,te.iosfix)){const a=document.body.scrollTop;document.body.style.top=`${a*-1}px`,ht(document.body,te.iosfix),$ie()}},$ie=()=>{const a=ba();if(!a)return;let e;a.ontouchstart=t=>{e=ere(t)},a.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}},ere=a=>{const e=a.target,t=ba(),i=$F();return!t||!i||tre(a)||are(a)?!1:e===t||!nD(t)&&e instanceof HTMLElement&&!eie(e,i)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(nD(i)&&i.contains(e))},tre=a=>a.touches&&a.touches.length&&a.touches[0].touchType==="stylus",are=a=>a.touches&&a.touches.length>1,ire=()=>{if(ji(document.body,te.iosfix)){const a=parseInt(document.body.style.top,10);Ja(document.body,te.iosfix),document.body.style.top="",document.body.scrollTop=a*-1}},rre=()=>{const a=document.createElement("div");a.className=te["scrollbar-measure"],document.body.appendChild(a);const e=a.getBoundingClientRect().width-a.clientWidth;return document.body.removeChild(a),e};let T1=null;const nre=a=>{T1===null&&(document.body.scrollHeight>window.innerHeight||a==="scroll")&&(T1=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${T1+rre()}px`)},sre=()=>{T1!==null&&(document.body.style.paddingRight=`${T1}px`,T1=null)};function tO(a,e,t,i){AS()?iO(a,i):(Wae(t).then(()=>iO(a,i)),Kz(He)),eO?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),iD()&&(sre(),ire(),$z()),ore()}function ore(){Ja([document.documentElement,document.body],[te.shown,te["height-auto"],te["no-backdrop"],te["toast-shown"]])}function or(a){a=cre(a);const e=L1.swalPromiseResolve.get(this),t=lre(this);this.isAwaitingPromise?a.isDismissed||(O0(this),e(a)):t&&e(a)}const lre=a=>{const e=ot();if(!e)return!1;const t=kt.innerParams.get(a);if(!t||ji(e,t.hideClass.popup))return!1;Ja(e,t.showClass.popup),ht(e,t.hideClass.popup);const i=ba();return Ja(i,t.showClass.backdrop),ht(i,t.hideClass.backdrop),hre(a,e,t),!0};function aO(a){const e=L1.swalPromiseReject.get(this);O0(this),e&&e(a)}const O0=a=>{a.isAwaitingPromise&&(delete a.isAwaitingPromise,kt.innerParams.get(a)||a._destroy())},cre=a=>typeof a>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},a),hre=(a,e,t)=>{var i;const r=ba(),n=Vz(e);typeof t.willClose=="function"&&t.willClose(e),(i=He.eventEmitter)===null||i===void 0||i.emit("willClose",e),n?dre(a,e,r,t.returnFocus,t.didClose):tO(a,r,t.returnFocus,t.didClose)},dre=(a,e,t,i,r)=>{He.swalCloseEventFinishedCallback=tO.bind(null,a,t,i,r);const n=function(s){if(s.target===e){var o;(o=He.swalCloseEventFinishedCallback)===null||o===void 0||o.call(He),delete He.swalCloseEventFinishedCallback,e.removeEventListener("animationend",n),e.removeEventListener("transitionend",n)}};e.addEventListener("animationend",n),e.addEventListener("transitionend",n)},iO=(a,e)=>{setTimeout(()=>{var t;typeof e=="function"&&e.bind(a.params)(),(t=He.eventEmitter)===null||t===void 0||t.emit("didClose"),a._destroy&&a._destroy()})},S1=a=>{let e=ot();if(e||new Xl,e=ot(),!e)return;const t=C1();AS()?fa(b1()):ure(e,a),Kt(t),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},ure=(a,e)=>{const t=P0(),i=C1();!t||!i||(!e&&Sa(Ei())&&(e=Ei()),Kt(t),e&&(fa(e),i.setAttribute("data-button-to-replace",e.className),t.insertBefore(i,e)),ht([a,t],te.loading))},fre=(a,e)=>{e.input==="select"||e.input==="radio"?kre(a,e):["text","email","number","tel","textarea"].some(t=>t===e.input)&&(KF(e.inputValue)||ZF(e.inputValue))&&(S1(Ei()),vre(a,e))},pre=(a,e)=>{const t=a.getInput();if(!t)return null;switch(e.input){case"checkbox":return mre(t);case"radio":return yre(t);case"file":return gre(t);default:return e.inputAutoTrim?t.value.trim():t.value}},mre=a=>a.checked?1:0,yre=a=>a.checked?a.value:null,gre=a=>a.files&&a.files.length?a.getAttribute("multiple")!==null?a.files:a.files[0]:null,kre=(a,e)=>{const t=ot();if(!t)return;const i=r=>{e.input==="select"?wre(t,VS(r),e):e.input==="radio"&&xre(t,VS(r),e)};KF(e.inputOptions)||ZF(e.inputOptions)?(S1(Ei()),A0(e.inputOptions).then(r=>{a.hideLoading(),i(r)})):typeof e.inputOptions=="object"?i(e.inputOptions):Ul(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},vre=(a,e)=>{const t=a.getInput();t&&(fa(t),A0(e.inputValue).then(i=>{t.value=e.input==="number"?`${parseFloat(i)||0}`:`${i}`,Kt(t),t.focus(),a.hideLoading()}).catch(i=>{Ul(`Error in inputValue promise: ${i}`),t.value="",Kt(t),t.focus(),a.hideLoading()}))};function wre(a,e,t){const i=sr(a,te.select);if(!i)return;const r=(n,s,o)=>{const l=document.createElement("option");l.value=o,Oa(l,s),l.selected=rO(o,t.inputValue),n.appendChild(l)};e.forEach(n=>{const s=n[0],o=n[1];if(Array.isArray(o)){const l=document.createElement("optgroup");l.label=s,l.disabled=!1,i.appendChild(l),o.forEach(h=>r(l,h[1],h[0]))}else r(i,o,s)}),i.focus()}function xre(a,e,t){const i=sr(a,te.radio);if(!i)return;e.forEach(n=>{const s=n[0],o=n[1],l=document.createElement("input"),h=document.createElement("label");l.type="radio",l.name=te.radio,l.value=s,rO(s,t.inputValue)&&(l.checked=!0);const d=document.createElement("span");Oa(d,o),d.className=te.label,h.appendChild(l),h.appendChild(d),i.appendChild(h)});const r=i.querySelectorAll("input");r.length&&r[0].focus()}const VS=a=>{const e=[];return a instanceof Map?a.forEach((t,i)=>{let r=t;typeof r=="object"&&(r=VS(r)),e.push([i,r])}):Object.keys(a).forEach(t=>{let i=a[t];typeof i=="object"&&(i=VS(i)),e.push([t,i])}),e},rO=(a,e)=>!!e&&e.toString()===a.toString(),bre=a=>{const e=kt.innerParams.get(a);a.disableButtons(),e.input?nO(a,"confirm"):pD(a,!0)},Mre=a=>{const e=kt.innerParams.get(a);a.disableButtons(),e.returnInputValueOnDeny?nO(a,"deny"):fD(a,!1)},Cre=(a,e)=>{a.disableButtons(),e(E1.cancel)},nO=(a,e)=>{const t=kt.innerParams.get(a);if(!t.input){Ul(`The "input" parameter is needed to be set when using returnInputValueOn${JF(e)}`);return}const i=a.getInput(),r=pre(a,t);t.inputValidator?Ere(a,r,e):i&&!i.checkValidity()?(a.enableButtons(),a.showValidationMessage(t.validationMessage||i.validationMessage)):e==="deny"?fD(a,r):pD(a,r)},Ere=(a,e,t)=>{const i=kt.innerParams.get(a);a.disableInput(),Promise.resolve().then(()=>A0(i.inputValidator(e,i.validationMessage))).then(n=>{a.enableButtons(),a.enableInput(),n?a.showValidationMessage(n):t==="deny"?fD(a,e):pD(a,e)})},fD=(a,e)=>{const t=kt.innerParams.get(a||void 0);t.showLoaderOnDeny&&S1(Gl()),t.preDeny?(a.isAwaitingPromise=!0,Promise.resolve().then(()=>A0(t.preDeny(e,t.validationMessage))).then(r=>{r===!1?(a.hideLoading(),O0(a)):a.close({isDenied:!0,value:typeof r>"u"?e:r})}).catch(r=>oO(a||void 0,r))):a.close({isDenied:!0,value:e})},sO=(a,e)=>{a.close({isConfirmed:!0,value:e})},oO=(a,e)=>{a.rejectPromise(e)},pD=(a,e)=>{const t=kt.innerParams.get(a||void 0);t.showLoaderOnConfirm&&S1(),t.preConfirm?(a.resetValidationMessage(),a.isAwaitingPromise=!0,Promise.resolve().then(()=>A0(t.preConfirm(e,t.validationMessage))).then(r=>{Sa(FS())||r===!1?(a.hideLoading(),O0(a)):sO(a,typeof r>"u"?e:r)}).catch(r=>oO(a||void 0,r))):sO(a,e)};function BS(){const a=kt.innerParams.get(this);if(!a)return;const e=kt.domCache.get(this);fa(e.loader),AS()?a.icon&&Kt(b1()):Lre(e),Ja([e.popup,e.actions],te.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Lre=a=>{const e=a.popup.getElementsByClassName(a.loader.getAttribute("data-button-to-replace"));e.length?Kt(e[0],"inline-block"):$ae()&&fa(a.actions)};function lO(){const a=kt.innerParams.get(this),e=kt.domCache.get(this);return e?RS(e.popup,a.input):null}function cO(a,e,t){const i=kt.domCache.get(a);e.forEach(r=>{i[r].disabled=t})}function hO(a,e){const t=ot();if(!(!t||!a))if(a.type==="radio"){const i=t.querySelectorAll(`[name="${te.radio}"]`);for(let r=0;r<i.length;r++)i[r].disabled=e}else a.disabled=e}function dO(){cO(this,["confirmButton","denyButton","cancelButton"],!1)}function uO(){cO(this,["confirmButton","denyButton","cancelButton"],!0)}function fO(){hO(this.getInput(),!1)}function pO(){hO(this.getInput(),!0)}function mO(a){const e=kt.domCache.get(this),t=kt.innerParams.get(this);Oa(e.validationMessage,a),e.validationMessage.className=te["validation-message"],t.customClass&&t.customClass.validationMessage&&ht(e.validationMessage,t.customClass.validationMessage),Kt(e.validationMessage);const i=this.getInput();i&&(i.setAttribute("aria-invalid","true"),i.setAttribute("aria-describedby",te["validation-message"]),Hz(i),ht(i,te.inputerror))}function yO(){const a=kt.domCache.get(this);a.validationMessage&&fa(a.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ja(e,te.inputerror))}const I1={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},Tre=["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"],Sre={allowEnterKey:void 0},Ire=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],gO=a=>Object.prototype.hasOwnProperty.call(I1,a),kO=a=>Tre.indexOf(a)!==-1,vO=a=>Sre[a],Fre=a=>{gO(a)||xa(`Unknown parameter "${a}"`)},Dre=a=>{Ire.includes(a)&&xa(`The parameter "${a}" is incompatible with toasts`)},Are=a=>{const e=vO(a);e&&Dz(a,e)},wO=a=>{a.backdrop===!1&&a.allowOutsideClick&&xa('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),a.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(a.theme)&&xa(`Invalid theme "${a.theme}"`);for(const e in a)Fre(e),a.toast&&Dre(e),Are(e)};function xO(a){const e=ba(),t=ot(),i=kt.innerParams.get(this);if(!t||ji(t,i.hideClass.popup)){xa("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const r=Rre(a),n=Object.assign({},i,r);wO(n),e.dataset.swal2Theme=n.theme,Xz(this,n),kt.innerParams.set(this,n),Object.defineProperties(this,{params:{value:Object.assign({},this.params,a),writable:!1,enumerable:!0}})}const Rre=a=>{const e={};return Object.keys(a).forEach(t=>{kO(t)?e[t]=a[t]:xa(`Invalid parameter to update: ${t}`)}),e};function bO(){const a=kt.domCache.get(this),e=kt.innerParams.get(this);if(!e){MO(this);return}a.popup&&He.swalCloseEventFinishedCallback&&(He.swalCloseEventFinishedCallback(),delete He.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),He.eventEmitter.emit("didDestroy"),Pre(this)}const Pre=a=>{MO(a),delete a.params,delete He.keydownHandler,delete He.keydownTarget,delete He.currentInstance},MO=a=>{a.isAwaitingPromise?(mD(kt,a),a.isAwaitingPromise=!0):(mD(L1,a),mD(kt,a),delete a.isAwaitingPromise,delete a.disableButtons,delete a.enableButtons,delete a.getInput,delete a.disableInput,delete a.enableInput,delete a.hideLoading,delete a.disableLoading,delete a.showValidationMessage,delete a.resetValidationMessage,delete a.close,delete a.closePopup,delete a.closeModal,delete a.closeToast,delete a.rejectPromise,delete a.update,delete a._destroy)},mD=(a,e)=>{for(const t in a)a[t].delete(e)};var Hre=Object.freeze({__proto__:null,_destroy:bO,close:or,closeModal:or,closePopup:or,closeToast:or,disableButtons:uO,disableInput:pO,disableLoading:BS,enableButtons:dO,enableInput:fO,getInput:lO,handleAwaitingPromise:O0,hideLoading:BS,rejectPromise:aO,resetValidationMessage:yO,showValidationMessage:mO,update:xO});const zre=(a,e,t)=>{a.toast?Ore(a,e,t):(Bre(e),Nre(e),qre(a,e,t))},Ore=(a,e,t)=>{e.popup.onclick=()=>{a&&(Vre(a)||a.timer||a.input)||t(E1.close)}},Vre=a=>!!(a.showConfirmButton||a.showDenyButton||a.showCancelButton||a.showCloseButton);let NS=!1;const Bre=a=>{a.popup.onmousedown=()=>{a.container.onmouseup=function(e){a.container.onmouseup=()=>{},e.target===a.container&&(NS=!0)}}},Nre=a=>{a.container.onmousedown=e=>{e.target===a.container&&e.preventDefault(),a.popup.onmouseup=function(t){a.popup.onmouseup=()=>{},(t.target===a.popup||t.target instanceof HTMLElement&&a.popup.contains(t.target))&&(NS=!0)}}},qre=(a,e,t)=>{e.container.onclick=i=>{if(NS){NS=!1;return}i.target===e.container&&IS(a.allowOutsideClick)&&t(E1.backdrop)}},jre=a=>typeof a=="object"&&a.jquery,CO=a=>a instanceof Element||jre(a),_re=a=>{const e={};return typeof a[0]=="object"&&!CO(a[0])?Object.assign(e,a[0]):["title","html","icon"].forEach((t,i)=>{const r=a[i];typeof r=="string"||CO(r)?e[t]=r:r!==void 0&&Ul(`Unexpected type of ${t}! Expected "string" or "Element", got ${typeof r}`)}),e};function Ure(...a){return new this(...a)}function Gre(a){class e extends this{_main(i,r){return super._main(i,Object.assign({},a,r))}}return e}const Wre=()=>He.timeout&&He.timeout.getTimerLeft(),EO=()=>{if(He.timeout)return tie(),He.timeout.stop()},LO=()=>{if(He.timeout){const a=He.timeout.start();return sD(a),a}},Yre=()=>{const a=He.timeout;return a&&(a.running?EO():LO())},Qre=a=>{if(He.timeout){const e=He.timeout.increase(a);return sD(e,!0),e}},Xre=()=>!!(He.timeout&&He.timeout.isRunning());let TO=!1;const yD={};function Jre(a="data-swal-template"){yD[a]=this,TO||(document.body.addEventListener("click",Kre),TO=!0)}const Kre=a=>{for(let e=a.target;e&&e!==document;e=e.parentNode)for(const t in yD){const i=e.getAttribute(t);if(i){yD[t].fire({template:i});return}}};class Zre{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,t){const i=this._getHandlersByEventName(e);i.includes(t)||i.push(t)}once(e,t){const i=(...r)=>{this.removeListener(e,i),t.apply(this,r)};this.on(e,i)}emit(e,...t){this._getHandlersByEventName(e).forEach(i=>{try{i.apply(this,t)}catch(r){console.error(r)}})}removeListener(e,t){const i=this._getHandlersByEventName(e),r=i.indexOf(t);r>-1&&i.splice(r,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}He.eventEmitter=new Zre;var $re=Object.freeze({__proto__:null,argsToParams:_re,bindClickHandler:Jre,clickCancel:_ie,clickConfirm:Jz,clickDeny:jie,enableLoading:S1,fire:Ure,getActions:P0,getCancelButton:M1,getCloseButton:tD,getConfirmButton:Ei,getContainer:ba,getDenyButton:Gl,getFocusableElements:aD,getFooter:Pz,getHtmlContainer:$F,getIcon:b1,getIconContent:Qae,getImage:Rz,getInputLabel:Xae,getLoader:C1,getPopup:ot,getProgressSteps:eD,getTimerLeft:Wre,getTimerProgressBar:DS,getTitle:Az,getValidationMessage:FS,increaseTimer:Qre,isDeprecatedParameter:vO,isLoading:Kae,isTimerRunning:Xre,isUpdatableParameter:kO,isValidParameter:gO,isVisible:qie,mixin:Gre,off:(a,e)=>{if(!a){He.eventEmitter.reset();return}e?He.eventEmitter.removeListener(a,e):He.eventEmitter.removeAllListeners(a)},on:(a,e)=>{He.eventEmitter.on(a,e)},once:(a,e)=>{He.eventEmitter.once(a,e)},resumeTimer:LO,showLoading:S1,stopTimer:EO,toggleTimer:Yre});class ene{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 SO=["swal-title","swal-html","swal-footer"],tne=a=>{const e=typeof a.template=="string"?document.querySelector(a.template):a.template;if(!e)return{};const t=e.content;return cne(t),Object.assign(ane(t),ine(t),rne(t),nne(t),sne(t),one(t),lne(t,SO))},ane=a=>{const e={};return Array.from(a.querySelectorAll("swal-param")).forEach(i=>{Ql(i,["name","value"]);const r=i.getAttribute("name"),n=i.getAttribute("value");!r||!n||(typeof I1[r]=="boolean"?e[r]=n!=="false":typeof I1[r]=="object"?e[r]=JSON.parse(n):e[r]=n)}),e},ine=a=>{const e={};return Array.from(a.querySelectorAll("swal-function-param")).forEach(i=>{const r=i.getAttribute("name"),n=i.getAttribute("value");!r||!n||(e[r]=new Function(`return ${n}`)())}),e},rne=a=>{const e={};return Array.from(a.querySelectorAll("swal-button")).forEach(i=>{Ql(i,["type","color","aria-label"]);const r=i.getAttribute("type");!r||!["confirm","cancel","deny"].includes(r)||(e[`${r}ButtonText`]=i.innerHTML,e[`show${JF(r)}Button`]=!0,i.hasAttribute("color")&&(e[`${r}ButtonColor`]=i.getAttribute("color")),i.hasAttribute("aria-label")&&(e[`${r}ButtonAriaLabel`]=i.getAttribute("aria-label")))}),e},nne=a=>{const e={},t=a.querySelector("swal-image");return t&&(Ql(t,["src","width","height","alt"]),t.hasAttribute("src")&&(e.imageUrl=t.getAttribute("src")||void 0),t.hasAttribute("width")&&(e.imageWidth=t.getAttribute("width")||void 0),t.hasAttribute("height")&&(e.imageHeight=t.getAttribute("height")||void 0),t.hasAttribute("alt")&&(e.imageAlt=t.getAttribute("alt")||void 0)),e},sne=a=>{const e={},t=a.querySelector("swal-icon");return t&&(Ql(t,["type","color"]),t.hasAttribute("type")&&(e.icon=t.getAttribute("type")),t.hasAttribute("color")&&(e.iconColor=t.getAttribute("color")),e.iconHtml=t.innerHTML),e},one=a=>{const e={},t=a.querySelector("swal-input");t&&(Ql(t,["type","label","placeholder","value"]),e.input=t.getAttribute("type")||"text",t.hasAttribute("label")&&(e.inputLabel=t.getAttribute("label")),t.hasAttribute("placeholder")&&(e.inputPlaceholder=t.getAttribute("placeholder")),t.hasAttribute("value")&&(e.inputValue=t.getAttribute("value")));const i=Array.from(a.querySelectorAll("swal-input-option"));return i.length&&(e.inputOptions={},i.forEach(r=>{Ql(r,["value"]);const n=r.getAttribute("value");if(!n)return;const s=r.innerHTML;e.inputOptions[n]=s})),e},lne=(a,e)=>{const t={};for(const i in e){const r=e[i],n=a.querySelector(r);n&&(Ql(n,[]),t[r.replace(/^swal-/,"")]=n.innerHTML.trim())}return t},cne=a=>{const e=SO.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(a.children).forEach(t=>{const i=t.tagName.toLowerCase();e.includes(i)||xa(`Unrecognized element <${i}>`)})},Ql=(a,e)=>{Array.from(a.attributes).forEach(t=>{e.indexOf(t.name)===-1&&xa([`Unrecognized attribute "${t.name}" on <${a.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},IO=10,hne=a=>{const e=ba(),t=ot();typeof a.willOpen=="function"&&a.willOpen(t),He.eventEmitter.emit("willOpen",t);const r=window.getComputedStyle(document.body).overflowY;fne(e,t,a),setTimeout(()=>{dne(e,t)},IO),iD()&&(une(e,a.scrollbarPadding,r),Kie()),!AS()&&!He.previousActiveElement&&(He.previousActiveElement=document.activeElement),typeof a.didOpen=="function"&&setTimeout(()=>a.didOpen(t)),He.eventEmitter.emit("didOpen",t)},qS=a=>{const e=ot();if(a.target!==e)return;const t=ba();e.removeEventListener("animationend",qS),e.removeEventListener("transitionend",qS),t.style.overflowY="auto",Ja(t,te["no-transition"])},dne=(a,e)=>{Vz(e)?(a.style.overflowY="hidden",e.addEventListener("animationend",qS),e.addEventListener("transitionend",qS)):a.style.overflowY="auto"},une=(a,e,t)=>{Zie(),e&&t!=="hidden"&&nre(t),setTimeout(()=>{a.scrollTop=0})},fne=(a,e,t)=>{ht(a,t.showClass.backdrop),t.animation?(e.style.setProperty("opacity","0","important"),Kt(e,"grid"),setTimeout(()=>{ht(e,t.showClass.popup),e.style.removeProperty("opacity")},IO)):Kt(e,"grid"),ht([document.documentElement,document.body],te.shown),t.heightAuto&&t.backdrop&&!t.toast&&ht([document.documentElement,document.body],te["height-auto"])};var FO={email:(a,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(a)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(a,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(a)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function pne(a){a.inputValidator||(a.input==="email"&&(a.inputValidator=FO.email),a.input==="url"&&(a.inputValidator=FO.url))}function mne(a){(!a.target||typeof a.target=="string"&&!document.querySelector(a.target)||typeof a.target!="string"&&!a.target.appendChild)&&(xa('Target parameter is not valid, defaulting to "body"'),a.target="body")}function yne(a){pne(a),a.showLoaderOnConfirm&&!a.preConfirm&&xa(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
244
244
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
245
245
|
https://sweetalert2.github.io/#ajax-request`),mne(a),typeof a.title=="string"&&(a.title=a.title.split(`
|
|
246
|
-
`).join("<br />")),cie(a)}let Li;var jS=new WeakMap;class Rt{constructor(...e){if(jae(this,jS,void 0),typeof window>"u")return;Li=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,_ae(jS,this,this._main(Li.params))}_main(e,t={}){if(wO(Object.assign({},t,e)),He.currentInstance){const n=L1.swalPromiseResolve.get(He.currentInstance),{isAwaitingPromise:s}=He.currentInstance;He.currentInstance._destroy(),s||n({isDismissed:!0}),iD()&&$z()}He.currentInstance=Li;const i=kne(e,t);yne(i),Object.freeze(i),He.timeout&&(He.timeout.stop(),delete He.timeout),clearTimeout(He.restoreFocusTimeout);const r=vne(Li);return Xz(Li,i),kt.innerParams.set(Li,i),gne(Li,r,i)}then(e){return Tz(jS,this).then(e)}finally(e){return Tz(jS,this).finally(e)}}const gne=(a,e,t)=>new Promise((i,r)=>{const n=s=>{a.close({isDismissed:!0,dismiss:s,isConfirmed:!1,isDenied:!1})};L1.swalPromiseResolve.set(a,i),L1.swalPromiseReject.set(a,r),e.confirmButton.onclick=()=>{bre(a)},e.denyButton.onclick=()=>{Mre(a)},e.cancelButton.onclick=()=>{Cre(a,n)},e.closeButton.onclick=()=>{n(E1.close)},zre(t,e,n),Uie(He,t,n),fre(a,t),hne(t),wne(He,t,n),xne(e,t),setTimeout(()=>{e.container.scrollTop=0})}),kne=(a,e)=>{const t=tne(a),i=Object.assign({},I1,e,t,a);return i.showClass=Object.assign({},I1.showClass,i.showClass),i.hideClass=Object.assign({},I1.hideClass,i.hideClass),i.animation===!1&&(i.showClass={backdrop:"swal2-noanimation"},i.hideClass={}),i},vne=a=>{const e={popup:ot(),container:ba(),actions:P0(),confirmButton:Ei(),denyButton:Gl(),cancelButton:M1(),loader:C1(),closeButton:tD(),validationMessage:FS(),progressSteps:eD()};return kt.domCache.set(a,e),e},wne=(a,e,t)=>{const i=DS();fa(i),e.timer&&(a.timeout=new ene(()=>{t("timer"),delete a.timeout},e.timer),e.timerProgressBar&&(Kt(i),Va(i,e,"timerProgressBar"),setTimeout(()=>{a.timeout&&a.timeout.running&&sD(e.timer)})))},xne=(a,e)=>{if(!e.toast){if(!IS(e.allowEnterKey)){Dz("allowEnterKey"),Cne();return}bne(a)||Mne(a,e)||uD(-1,1)}},bne=a=>{const e=Array.from(a.popup.querySelectorAll("[autofocus]"));for(const t of e)if(t instanceof HTMLElement&&Sa(t))return t.focus(),!0;return!1},Mne=(a,e)=>e.focusDeny&&Sa(a.denyButton)?(a.denyButton.focus(),!0):e.focusCancel&&Sa(a.cancelButton)?(a.cancelButton.focus(),!0):e.focusConfirm&&Sa(a.confirmButton)?(a.confirmButton.focus(),!0):!1,Cne=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Rt.prototype.disableButtons=uO,Rt.prototype.enableButtons=dO,Rt.prototype.getInput=lO,Rt.prototype.disableInput=pO,Rt.prototype.enableInput=fO,Rt.prototype.hideLoading=BS,Rt.prototype.disableLoading=BS,Rt.prototype.showValidationMessage=mO,Rt.prototype.resetValidationMessage=yO,Rt.prototype.close=or,Rt.prototype.closePopup=or,Rt.prototype.closeModal=or,Rt.prototype.closeToast=or,Rt.prototype.rejectPromise=aO,Rt.prototype.update=xO,Rt.prototype._destroy=bO,Object.assign(Rt,$re),Object.keys(Hre).forEach(a=>{Rt[a]=function(...e){return Li&&Li[a]?Li[a](...e):null}}),Rt.DismissReason=E1,Rt.version="11.26.10";const Xl=Rt;Xl.default=Xl,typeof document<"u"&&(function(a,e){var t=a.createElement("style");if(a.getElementsByTagName("head")[0].appendChild(t),t.styleSheet)t.styleSheet.disabled||(t.styleSheet.cssText=e);else try{t.innerHTML=e}catch{t.innerText=e}})(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.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:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform: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}}');const _S=a=>Xl.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:a||3e3,timerProgressBar:!0,didOpen:e=>{e.onmouseenter=Xl.stopTimer,e.onmouseleave=Xl.resumeTimer,e.onclick=()=>{Xl.close()}}}),gD={error(a,e){_S(e).fire({icon:"error",title:a})},warn(a,e){_S(e).fire({icon:"warning",title:a})},success(a,e){_S(e).fire({icon:"success",title:a})},info(a,e){_S(e).fire({icon:"info",title:a})}},Ene={install(a){a.config.globalProperties.$toast=gD}},Lne={key:0,class:"border-2 border-dashed border-gray-300 rounded-lg p-8 text-center hover:border-gray-400 transition-colors h-[300px] flex select-none"},Tne={class:"space-y-4 m-auto"},Sne={class:"text-sm text-gray-500 mt-2"},Ine={key:1,class:"select-none"},Fne=["src"],Dne=["onMousedown"],Ane={key:1,class:"absolute inset-0 pointer-events-none"},Rne=p.defineComponent({__name:"UploadImage",props:{show:{type:Boolean,default:!1},uploadSize:{default:2}},setup(a,{emit:e}){const t=a,i=p.ref([{name:"Upload Image",link:"#"}]),r=e,n=p.ref([{title:"Close",emit:"onClose"}]);p.ref(!0);const s=p.ref(),o=p.ref(""),l=p.ref(!1),h=p.ref(""),d=p.ref(570),f=p.ref(300),u=p.ref(null),m=p.ref({width:0,height:0,scaleX:1,scaleY:1}),y=p.ref({x:0,y:0,height:0,width:0}),v=p.ref(!1),k=p.ref({x:0,y:0}),g=p.ref(!1),x=p.ref(""),w=p.ref(1),b=p.ref(!1);p.ref({x:0,y:0});const L=p.ref({x:0,y:0}),F=()=>{s.value&&s.value.click()},C=p.computed(()=>{if(!y.value)return[];const{width:W,height:K}=y.value;return[{position:"nw",class:"cursor-nw-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{left:"-6px",top:"-6px"}},{position:"ne",class:"cursor-ne-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{right:"-6px",top:"-6px"}},{position:"sw",class:"cursor-sw-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{left:"-6px",bottom:"-6px"}},{position:"se",class:"cursor-se-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{right:"-6px",bottom:"-6px"}}]}),T=()=>{const W=w.value,K=L.value,B=m.value.width,ce=m.value.height,ee=B/ce,oe=d.value/f.value;let re=0,ue=0;ee>oe?(re=d.value*W,ue=d.value/ee*W):(ue=f.value*W,re=f.value*ee*W);const Me=(d.value-re)/2+K.x,Ce=(f.value-ue)/2+K.y;return{left:Me,top:Ce,right:Me+re,bottom:Ce+ue,width:re,height:ue}},H=W=>{const K=t.uploadSize,B=W.target.files[0];if(B&&B.type.startsWith("image/")&&s.value){if(B.size/1048576>K){gD.error(`Upload size mute be below ${t.uploadSize} MB.`),s.value.value="";return}const ee=new FileReader;ee.onload=oe=>{o.value=oe.target.result,l.value=!0,h.value=""},ee.readAsDataURL(B),n.value=[{title:"Cancel",emit:"onCancel",class:"btn btn-danger"},{title:"Reset",emit:"onReset",class:"btn-outline btn-danger"},{title:"Crop",emit:"onCrop"}]}},O=()=>{if(!u.value)return;const W=u.value,K=W.naturalWidth,B=W.naturalHeight;m.value={width:K,height:B,scaleX:K/d.value,scaleY:B/f.value},w.value=1,L.value={x:0,y:0};const ce=200,ee=200;y.value={x:(d.value-ce)/2,y:(f.value-ee)/2,width:ce,height:ee}},V=W=>{v.value=!0,k.value={x:W.clientX-y.value.x,y:W.clientY-y.value.y},W.preventDefault()},j=(W,K)=>{g.value=!0,x.value=W,k.value={x:K.clientX,y:K.clientY,cropX:y.value.x,cropY:y.value.y,cropWidth:y.value.width,cropHeight:y.value.height},K.preventDefault()},J=()=>{v.value=!1,g.value=!1,b.value=!1,x.value=""},he=W=>{if(v.value){const K=T(),B=W.clientX-k.value.x,ce=W.clientY-k.value.y,ee=Math.max(0,K.left),oe=Math.max(0,K.top),re=Math.min(d.value-y.value.width,K.right-y.value.width),ue=Math.min(f.value-y.value.height,K.bottom-y.value.height);y.value={...y.value,x:Math.min(Math.max(B,ee),re),y:Math.min(Math.max(ce,oe),ue)}}else if(g.value){const K=W.clientX-k.value.x,B=W.clientY-k.value.y,ce=T();let ee={...y.value};const oe=50;switch(x.value){case"nw":ee.x=Math.max(Math.max(0,ce.left),Math.min(k.value.cropX+K,k.value.cropX+k.value.cropWidth-oe)),ee.y=Math.max(Math.max(0,ce.top),Math.min(k.value.cropY+B,k.value.cropY+k.value.cropHeight-oe)),ee.width=k.value.cropWidth-(ee.x-k.value.cropX),ee.height=k.value.cropHeight-(ee.y-k.value.cropY);break;case"ne":ee.y=Math.max(Math.max(0,ce.top),Math.min(k.value.cropY+B,k.value.cropY+k.value.cropHeight-oe)),ee.height=k.value.cropHeight-(ee.y-k.value.cropY),ee.width=Math.min(Math.min(d.value-ee.x,ce.right-ee.x),Math.max(oe,k.value.cropWidth+K));break;case"sw":ee.x=Math.max(Math.max(0,ce.left),Math.min(k.value.cropX+K,k.value.cropX+k.value.cropWidth-oe)),ee.width=k.value.cropWidth-(ee.x-k.value.cropX),ee.height=Math.min(Math.min(f.value-ee.y,ce.bottom-ee.y),Math.max(oe,k.value.cropHeight+B));break;case"se":ee.width=Math.min(Math.min(d.value-ee.x,ce.right-ee.x),Math.max(oe,k.value.cropWidth+K)),ee.height=Math.min(Math.min(f.value-ee.y,ce.bottom-ee.y),Math.max(oe,k.value.cropHeight+B));break}y.value=ee}},Z=W=>{const K=y.value,B=W.currentTarget.getBoundingClientRect(),ce=W.clientX-B.left,ee=W.clientY-B.top;ce>=K.x&&ce<=K.x+K.width&&ee>=K.y&&ee<=K.y+K.height||(b.value=!0,k.value={x:W.clientX-L.value.x,y:W.clientY-L.value.y},W.preventDefault())},ge=()=>{if(!y.value||!u.value)return;const W=u.value,K=m.value.width,B=m.value.height,ce=w.value,ee=L.value.x,oe=L.value.y,re=d.value,ue=f.value,Me=K/B,Ce=re/ue;let A=0,_=0;Me>Ce?(A=re*ce,_=re/Me*ce):(_=ue*ce,A=ue*Me*ce);const q=(re-A)/2+ee,S=(ue-_)/2+oe,N=y.value.x-q,E=y.value.y-S,ne=K/A,ye=B/_,de=N*ne,Ie=E*ye,ve=y.value.width*ne,Re=y.value.height*ye,$e=Math.max(0,de),nt=Math.max(0,Ie),vt=Math.max(1,Math.min(K-$e,ve)),Le=Math.max(1,Math.min(B-nt,Re)),Je=document.createElement("canvas");Je.width=vt,Je.height=Le;const we=Je.getContext("2d");we&&(we.drawImage(W,$e,nt,vt,Le,0,0,vt,Le),h.value=Je.toDataURL("image/png"),r("onImageCrop",h.value),ie())},ie=()=>{l.value=!1,o.value="",y.value={},h.value="",L.value={x:0,y:0},w.value=1,s.value&&(s.value.value=""),n.value=[{title:"Close",emit:"onClose"}]};return p.onMounted(()=>{document.addEventListener("mousemove",he),document.addEventListener("mouseup",J)}),p.onUnmounted(()=>{document.removeEventListener("mousemove",he),document.removeEventListener("mouseup",J)}),(W,K)=>(p.openBlock(),p.createBlock(YS,{title:i.value,actions:n.value,show:a.show,onOnClose:K[0]||(K[0]=B=>r("onClose")),onOnCrop:ge,onOnReset:ie,onOnCancel:K[1]||(K[1]=B=>{ie(),r("onClose")})},{default:p.withCtx(()=>[l.value?(p.openBlock(),p.createElementBlock("div",Ine,[p.createElementVNode("div",{ref:"cropperContainer",class:"relative mx-auto shadow-sm overflow-hidden",style:p.normalizeStyle({width:d.value+"px",height:f.value+"px",backgroundImage:`url(${p.unref(Nae)})`}),onMousedown:Z},[p.createElementVNode("img",{ref_key:"cropperImage",ref:u,src:o.value,class:"w-full h-full object-contain",style:p.normalizeStyle({transform:`scale(${w.value}) translate(${L.value.x}px, ${L.value.y}px)`}),onLoad:O},null,44,Fne),y.value?(p.openBlock(),p.createElementBlock("div",{key:0,class:"absolute border-2 border-primary border-dashed cursor-move",style:p.normalizeStyle({left:y.value.x+"px",top:y.value.y+"px",width:y.value.width+"px",height:y.value.height+"px"}),onMousedown:V},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(C.value,B=>(p.openBlock(),p.createElementBlock("div",{key:B.position,class:p.normalizeClass(B.class),style:p.normalizeStyle(B.style),onMousedown:p.withModifiers(ce=>j(B.position,ce),["stop"])},null,46,Dne))),128))],36)):p.createCommentVNode("",!0),y.value?(p.openBlock(),p.createElementBlock("div",Ane,[p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:"0px",top:"0px",width:"100%",height:y.value.y+"px"})},null,4),p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:"0px",top:y.value.y+y.value.height+"px",width:"100%",height:f.value-y.value.y-y.value.height+"px"})},null,4),p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:"0px",top:y.value.y+"px",width:y.value.x+"px",height:y.value.height+"px"})},null,4),p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:y.value.x+y.value.width+"px",top:y.value.y+"px",width:d.value-y.value.x-y.value.width+"px",height:y.value.height+"px"})},null,4)])):p.createCommentVNode("",!0)],36)])):(p.openBlock(),p.createElementBlock("div",Lne,[p.createElementVNode("input",{ref_key:"fileInput",ref:s,type:"file",class:"hidden",onChange:H,accept:"image/png, image/jpeg, image/jpg, image/webp"},null,544),p.createElementVNode("div",Tne,[K[2]||(K[2]=p.createElementVNode("div",{class:"mx-auto w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center"},[p.createElementVNode("svg",{class:"w-8 h-8 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})])],-1)),p.createElementVNode("div",null,[p.createElementVNode("button",{class:"btn",onClick:F},"Choose Image"),p.createElementVNode("p",Sne,"PNG, JPG up to "+p.toDisplayString(a.uploadSize)+" MB",1)])])]))]),_:1},8,["title","actions","show"]))}}),Pne={mounted:(a,e)=>{if(e.value){a.classList.add("flex"),a.classList.add("flex-col");const t=a.querySelector("input"),i=document.createElement("span");i.classList.add("text-red-500","text-[12px]","error-message"),t?.classList.add("border-red-500"),a.classList.add("border-red-500"),i.textContent=e.value,a.appendChild(i)}},updated:(a,e)=>{const t=a.querySelector("input"),i=a.querySelector(".error-message");if(!i&&e.value){const r=document.createElement("span");r.classList.add("text-red-500","text-[12px]","error-message"),r.textContent=e.value,t?.classList.add("border-red-500"),a.appendChild(r)}else e.value?(a.classList.add("input-error"),t?.classList.add("border-red-500"),i&&(i.textContent=e.value)):(a.classList.remove("input-error"),a.classList.remove("border-red-500"),t?.classList.remove("border-red-500"),i&&i.remove())}},kD=new WeakMap,Hne={mounted(a,e){let t=null,i=0;a.classList.add("hide-scrollbar");const r=()=>{a.classList.remove("hide-scrollbar")},n=()=>{a.classList.add("hide-scrollbar"),i=Date.now()},s=()=>{Date.now()-i>=100&&r(),t&&clearTimeout(t),t=setTimeout(n,1e3)};a.addEventListener("scroll",s),kD.set(a,s)},unmounted(a){const e=kD.get(a);e&&(a.removeEventListener("scroll",e),kD.delete(a))}};var vD={exports:{}},DO;function zne(){if(DO)return vD.exports;DO=1;var a=vD.exports={},e,t;function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=i}catch{e=i}try{typeof clearTimeout=="function"?t=clearTimeout:t=r}catch{t=r}})();function n(v){if(e===setTimeout)return setTimeout(v,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(v,0);try{return e(v,0)}catch{try{return e.call(null,v,0)}catch{return e.call(this,v,0)}}}function s(v){if(t===clearTimeout)return clearTimeout(v);if((t===r||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(v);try{return t(v)}catch{try{return t.call(null,v)}catch{return t.call(this,v)}}}var o=[],l=!1,h,d=-1;function f(){!l||!h||(l=!1,h.length?o=h.concat(o):d=-1,o.length&&u())}function u(){if(!l){var v=n(f);l=!0;for(var k=o.length;k;){for(h=o,o=[];++d<k;)h&&h[d].run();d=-1,k=o.length}h=null,l=!1,s(v)}}a.nextTick=function(v){var k=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)k[g-1]=arguments[g];o.push(new m(v,k)),o.length===1&&!l&&n(u)};function m(v,k){this.fun=v,this.array=k}m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function y(){}return a.on=y,a.addListener=y,a.once=y,a.off=y,a.removeListener=y,a.removeAllListeners=y,a.emit=y,a.prependListener=y,a.prependOnceListener=y,a.listeners=function(v){return[]},a.binding=function(v){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(v){throw new Error("process.chdir is not supported")},a.umask=function(){return 0},vD.exports}var AO=zne();const wD=new WeakMap,One={mounted(a){AO.nextTick(()=>{const e=()=>{typeof a.select=="function"&&a.select()};a.addEventListener("focus",e),wD.set(a,e)})},unmounted(a){const e=wD.get(a);e&&(a.removeEventListener("focus",e),wD.delete(a))}},xD=(a,e,t="RS.",i="usa",r="nepali")=>{const n=parseFloat(a);if(isNaN(n))return"";const s=i==="euro",o=s?",":".",l=s?".":",",h=n.toFixed(2).split(".");let d=h[0];const f=h[1];if(r==="nepali"){const u=d.slice(-3),m=d.slice(0,-3),y=m.replace(/\B(?=(\d{2})+(?!\d))/g,l);d=m?y+l+u:u}else d=d.replace(/\B(?=(\d{3})+(?!\d))/g,l);return e&&t?`${t}${d}${o}${f}`:`${d}${o}${f}`},bD=(a,e,t="RS.",i="usa")=>{if(!a)return 0;const r=i==="euro",n=r?",":".",s=r?".":",";let o=a.trim();e&&t&&o.startsWith(t)&&(o=o.slice(t.length).trim());const l=new RegExp(`\\${s}(?=\\d{2,3})`,"g");o=o.replace(l,"");const h=o.lastIndexOf(n);h!==-1&&n!=="."&&(o=o.slice(0,h)+"."+o.slice(h+1));const d=parseFloat(o);return isNaN(d)?0:d},Vne={install(a){a.config.globalProperties.$currencyFormatter=xD,a.config.globalProperties.$currencyUnformatter=bD}},US=(a,e,t=!0)=>{t?a.value=xD(a.value,!1,"",e.format,e.structure):a.value=bD(a.value,!1,"",e.format).toString()},Bne={mounted(a,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};AO.nextTick(()=>{a.value&&US(a,t)});const i=()=>{US(a,t),a.removeEventListener("blur",i),a.removeEventListener("keydown",n)},r=()=>{US(a,t,!1),a.addEventListener("blur",i),a.addEventListener("keydown",n)},n=s=>{const o=/^\d$/.test(s.key),l=s.key===".",h=s.ctrlKey||s.metaKey,d=s.key==="Enter"||s.key==="Tab"||s.key==="Backspace",f=a.value.includes(".");if(l&&f){s.preventDefault();return}o||l&&!f||h||d||s.preventDefault()};a.addEventListener("focus",r),a.eventCleanUp=()=>{a.removeEventListener("focus",r),a.removeEventListener("blur",i),a.removeEventListener("keydown",n)}},updated(a,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};document.activeElement!=a&&US(a,t)},unmounted(a){}},Nne={mounted(a){const e=a.closest(".sidebar-dropdown");if(!e)return;const t=700,i=()=>{const s=a.scrollHeight,o=s*1e3/t;a.style.overflow="hidden",a.style.transition=`height ${o}ms linear`,a.style.height=`${s}px`,clearTimeout(a._timeout),a._timeout=window.setTimeout(()=>{a.style.height="",a.style.transition="",a.style.overflow=""},o)},r=()=>{const s=a.scrollHeight,o=s*1e3/t;a.style.transition=`height ${o}ms linear`,a.style.overflow="hidden",a.style.height=`${s}px`,a.offsetHeight,a.style.height="0px",clearTimeout(a._timeout),a._timeout=window.setTimeout(()=>{a.style.transition="",a.style.overflow=""},o)},n=new MutationObserver(()=>{e.classList.contains("sidebar-item-open")?i():r()});n.observe(e,{attributes:!0,attributeFilter:["class"]}),a._observer=n,e.classList.contains("sidebar-item-open")?a.style.height="auto":(a.style.height="0px",a.style.overflow="hidden")},unmounted(a){a._observer&&a._observer.disconnect(),clearTimeout(a._timeout)}},qne=["innerHTML"],jne={key:1},_ne=wH(p.defineComponent({__name:"Tooltip",props:{content:{},raw:{type:Boolean}},setup(a,{expose:e}){const t=p.ref(!1);p.onMounted(()=>{requestAnimationFrame(()=>{t.value=!0})});function i(){t.value=!1}return e({hide:i}),(r,n)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["tooltip-content",{visible:t.value}])},[a.raw?(p.openBlock(),p.createElementBlock("div",{key:0,innerHTML:a.content},null,8,qne)):(p.openBlock(),p.createElementBlock("span",jne,p.toDisplayString(a.content),1))],2))}}),[["__scopeId","data-v-3e0dd3fc"]]),Une={mounted(a,e){let t=null,i=null,r=null,n=e;function s(f,u,m){const y=window.innerWidth,v=window.innerHeight;switch(f){case"top":return u.top>=m.height;case"bottom":return v-u.bottom>=m.height;case"left":return u.left>=m.width;case"right":return y-u.right>=m.width;default:return!1}}const o=async()=>{if(!n.value||!n.value.content)return;const{content:f,raw:u=!1,preferredPosition:m="top"}=n.value;if(t&&i&&(t.unmount(),i.remove()),i=document.createElement("div"),i.style.position="absolute",i.style.zIndex="9999",document.body.appendChild(i),t=p.createApp(_ne,{content:f,raw:u}),t.mount(i),await p.nextTick(),!i)return;const y=a.getBoundingClientRect(),v=i.getBoundingClientRect(),x=[m,...["top","bottom","left","right"].filter(L=>L!==m)].find(L=>s(L,y,v))||"bottom";let w=0,b=0;switch(x){case"top":w=y.top-v.height+window.scrollY,b=y.left+(y.width-v.width)/2+window.scrollX;break;case"bottom":w=y.bottom+window.scrollY,b=y.left+(y.width-v.width)/2+window.scrollX;break;case"left":w=y.top+(y.height-v.height)/2+window.scrollY,b=y.left-v.width+window.scrollX;break;case"right":w=y.top+(y.height-v.height)/2+window.scrollY,b=y.right+window.scrollX;break}b=Math.max(0,Math.min(b,window.innerWidth-v.width)),w=Math.max(0,Math.min(w,window.innerHeight-v.height)),i.style.top=`${w}px`,i.style.left=`${b}px`},l=async()=>{r&&(clearTimeout(r),r=null),await o()},h=()=>{r&&(clearTimeout(r),r=null),t&&i&&(t.unmount(),i.remove(),t=null,i=null)},d=()=>{r||(r=window.setTimeout(()=>{l(),r=null},200))};a.__tooltipHandlers={showTooltip:d,hideTooltip:h,clearShowTimeout:()=>{r&&(clearTimeout(r),r=null)},createTooltip:o,updateBinding:f=>{n=f}},a.addEventListener("mouseenter",d),a.addEventListener("mouseleave",h)},updated(a,e){a.__tooltipHandlers&&(a.__tooltipHandlers.updateBinding(e),a.matches(":hover")&&a.__tooltipHandlers.createTooltip())},unmounted(a){a.__tooltipHandlers&&(a.__tooltipHandlers.hideTooltip(),a.removeEventListener("mouseenter",a.__tooltipHandlers.showTooltip),a.removeEventListener("mouseleave",a.__tooltipHandlers.hideTooltip),a.__tooltipHandlers.clearShowTimeout(),delete a.__tooltipHandlers)}};class Gne{constructor(){this.socket=null,this.url="",this.isConnected=!1}setURL(e){this.url=e}init(){return this.url==""?(console.log("❗WebSocket url not set!"),Promise.resolve(this)):this.socket&&this.socket.readyState!==WebSocket.CLOSED&&this.socket.readyState!==WebSocket.CLOSING?(console.log("❗WebSocket is already initialized"),Promise.resolve(this)):(this.socket=new WebSocket(this.url),new Promise((e,t)=>{this.socket.onopen=()=>{this.isConnected=!0,console.log("✅ WebSocket connected"),e(this)},this.socket.onclose=()=>{this.isConnected=!1,console.log("❌ WebSocket connection closed")},this.socket.onerror=i=>{this.close(),console.error("⛔ WebSocket error occurred:",i),t(i)}}))}onMessage(e){return this.socket?(this.socket.onmessage=t=>{e&&t.data&&e(t.data)},Promise.resolve(this)):(console.error("❗WebSocket is not initialized"),Promise.resolve(this))}sendMessage(e){return new Promise((t,i)=>{if(this.socket&&this.isConnected)try{this.socket.send(e),t()}catch(r){console.error("❗Error sending message:",r),i(r)}else{const r="❗WebSocket is not connected";console.error(r),i(new Error(r))}})}close(){this.socket&&(this.socket.close(),this.socket=null,this.isConnected=!1,console.log("❌ WebSocket connection closed"))}getConnectionStatus(){return this.isConnected}}const Wne=(a,e)=>{const t=a.toLowerCase().split("+").map(l=>l.trim()),i={ctrl:t.includes("ctrl"),alt:t.includes("alt"),shift:t.includes("shift"),meta:t.includes("meta")},r=t.filter(l=>!["ctrl","alt","shift","meta"].includes(l));if(r.length===0)throw new Error("No main keys specified in shortcut.");const n=new Set,s=l=>{n.add(l.key.toLowerCase());const h=l.ctrlKey===i.ctrl&&l.altKey===i.alt&&l.shiftKey===i.shift&&l.metaKey===i.meta,d=r.every(f=>n.has(f));h&&d&&(l.preventDefault(),e(l))},o=l=>{n.delete(l.key.toLowerCase())};return window.addEventListener("keydown",s),window.addEventListener("keyup",o),{destroy(){window.removeEventListener("keydown",s),window.removeEventListener("keyup",o)}}},Yne=(a,e)=>{let t=null;return{run:n=>{t&&clearTimeout(t),t=setTimeout(()=>{a(n),t=null},e)},cancel:()=>{t&&(clearTimeout(t),t=null)}}},RO=a=>{const t=(void 0).$refs?.[a];if(t&&typeof t.activate=="function"){t.activate();return}const i=document.getElementById(a);if(!i)return;const r=i.tagName;(r==="INPUT"||r==="TEXTAREA"||r==="BUTTON")&&i.focus()},Qne={install(a){a.config.globalProperties.$focusNext=RO}},PO=(a,e=!1,t=!0)=>{if(a==null||a==="")return"";const i=["","एक","दुई","तीन","चार","पाँच","छ","सात","आठ","नौ","दश","एघार","बाह्र","तेह्र","चौध","पन्ध्र","सोह्र","सत्र","अठार","उन्नाइस"],r=["","","बीस","एक्काइस","बाइस","तेइस","चौबीस","पच्चीस","छब्बीस","सत्ताइस","अठ्ठाइस","उनन्तिस","तीस","एकतीस","बत्तीस","तेत्तीस","चौँतीस","पैंतीस","छत्तीस","सैतीस","अठतीस","उनन्चालीस","चालीस","एकचालीस","बयालीस","त्रियालीस","चवालीस","पैंतालीस","छयालीस","सतचालीस","अठचालीस","उनन्चास","पचास","एकाउन्न","बाउन्न","त्रिपन्न","चवन्न","पचपन्न","छपन्न","सन्ताउन्न","अन्ठाउन्न","उनन्साठी","साठी","एकसठ्ठी","बयसठ्ठी","त्रिसठ्ठी","चौंसठ्ठी","पैंसठ्ठी","छयसठ्ठी","सतसठ्ठी","अठसठ्ठी","उनन्सत्तरी","सत्तरी","एकहत्तर","बहत्तर","त्रिहत्तर","चौहत्तर","पचहत्तर","छयहत्तर","सतहत्तर","अठहत्तर","उनासी","असी","एकासी","बयासी","त्रियासी","चौरासी","पचासी","छयासी","सतासी","अठासी","उनान्नब्बे","नब्बे","एकानब्बे","बयानब्बे","त्रियानब्बे","चौरानब्बे","पन्चानब्बे","छयानब्बे","सन्तानब्बे","अन्ठानब्बे","उनान्सय"],n=["","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"],s=["","","Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety"],o=e?["खर्ब","अर्ब","करोड","लाख","हजार","सय"]:["Kharaab","Arab","Crore","Lakh","Thousand","Hundred"],l=e?"ऋण":"Negative",h=e?"रुपैयाँ":"Rupees",d=e?"पैसा":"Paisa",f=e?"शून्य":"Zero",u=e?"दश":"Point";let m=String(a).trim(),y=!1;m.startsWith("-")&&(y=!0,m=m.slice(1));const[v,k]=m.split("."),g=parseInt(v,10);if(isNaN(g))return"";if(g===0&&!k)return f;function x(L){if(e)return L<20?i[L]:r[L];{if(L<20)return n[L];const F=Math.floor(L/10),C=L%10;return s[F]+(C?" "+n[C]:"")}}function w(L){if(L===0)return"";let F=L;const C=ie=>{const W=F%ie;return F=Math.floor(F/ie),W},T=C(1e3),H=C(100),O=C(100),V=C(100),j=C(100),he=[{value:C(100),label:o[0]},{value:j,label:o[1]},{value:V,label:o[2]},{value:O,label:o[3]},{value:H,label:o[4]},{value:Math.floor(T/100),label:o[5],suffix:!0}];let Z=[],ge=T%100;for(const ie of he)ie.value&&(ie.suffix?Z.push(e?i[ie.value]:n[ie.value],ie.label):Z.push(x(ie.value),ie.label));return ge&&Z.push(x(ge)),Z.filter(Boolean).join(" ")}let b=w(g);if(b&&t&&(b+=" "+h),k)if(t){const L=parseInt(k.substring(0,2).padEnd(2,"0"),10);if(L>0){const F=x(L);b+=" "+F+" "+d}}else{const L=k.split("").map(F=>e?i[parseInt(F,10)]||"":n[parseInt(F,10)]||"").join(" ");b+=" "+u+" "+L}return y&&(b=l+" "+b),b.trim().replace(/\s+/g," ")},Xne={install(a){a.config.globalProperties.$numToWords=PO}};et.ContentLayout=QO,et.CreateDebounce=Yne,et.CreateShortCutKey=Wne,et.CurrencyFormatterPlugin=Vne,et.DateRange=Dae,et.DateSelector=oae,et.FocusNextPlugin=Qne,et.Icons=ET,et.InputCurrency=Bne,et.InputError=Pne,et.InputSelect=One,et.Loader=Bae,et.Modal=YS,et.NumbertoWordPlugin=Xne,et.ScrollbarAnimateDropdown=Nne,et.ScrollbarScroll=Hne,et.Switch=nV,et.Tabulator=H$,et.ToastPlugin=Ene,et.Toggle=MF,et.Tooltip=Une,et.Towser=Y$,et.UploadImage=Rne,et.WebSocketWrapper=Gne,et.Wizard=Oae,et.currencyFormatter=xD,et.currencyUnformatter=bD,et.focusNext=RO,et.numToWord=PO,et.toast=gD,Object.defineProperty(et,Symbol.toStringTag,{value:"Module"})}));
|
|
246
|
+
`).join("<br />")),cie(a)}let Li;var jS=new WeakMap;class Rt{constructor(...e){if(jae(this,jS,void 0),typeof window>"u")return;Li=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,_ae(jS,this,this._main(Li.params))}_main(e,t={}){if(wO(Object.assign({},t,e)),He.currentInstance){const n=L1.swalPromiseResolve.get(He.currentInstance),{isAwaitingPromise:s}=He.currentInstance;He.currentInstance._destroy(),s||n({isDismissed:!0}),iD()&&$z()}He.currentInstance=Li;const i=kne(e,t);yne(i),Object.freeze(i),He.timeout&&(He.timeout.stop(),delete He.timeout),clearTimeout(He.restoreFocusTimeout);const r=vne(Li);return Xz(Li,i),kt.innerParams.set(Li,i),gne(Li,r,i)}then(e){return Tz(jS,this).then(e)}finally(e){return Tz(jS,this).finally(e)}}const gne=(a,e,t)=>new Promise((i,r)=>{const n=s=>{a.close({isDismissed:!0,dismiss:s,isConfirmed:!1,isDenied:!1})};L1.swalPromiseResolve.set(a,i),L1.swalPromiseReject.set(a,r),e.confirmButton.onclick=()=>{bre(a)},e.denyButton.onclick=()=>{Mre(a)},e.cancelButton.onclick=()=>{Cre(a,n)},e.closeButton.onclick=()=>{n(E1.close)},zre(t,e,n),Uie(He,t,n),fre(a,t),hne(t),wne(He,t,n),xne(e,t),setTimeout(()=>{e.container.scrollTop=0})}),kne=(a,e)=>{const t=tne(a),i=Object.assign({},I1,e,t,a);return i.showClass=Object.assign({},I1.showClass,i.showClass),i.hideClass=Object.assign({},I1.hideClass,i.hideClass),i.animation===!1&&(i.showClass={backdrop:"swal2-noanimation"},i.hideClass={}),i},vne=a=>{const e={popup:ot(),container:ba(),actions:P0(),confirmButton:Ei(),denyButton:Gl(),cancelButton:M1(),loader:C1(),closeButton:tD(),validationMessage:FS(),progressSteps:eD()};return kt.domCache.set(a,e),e},wne=(a,e,t)=>{const i=DS();fa(i),e.timer&&(a.timeout=new ene(()=>{t("timer"),delete a.timeout},e.timer),e.timerProgressBar&&(Kt(i),Va(i,e,"timerProgressBar"),setTimeout(()=>{a.timeout&&a.timeout.running&&sD(e.timer)})))},xne=(a,e)=>{if(!e.toast){if(!IS(e.allowEnterKey)){Dz("allowEnterKey"),Cne();return}bne(a)||Mne(a,e)||uD(-1,1)}},bne=a=>{const e=Array.from(a.popup.querySelectorAll("[autofocus]"));for(const t of e)if(t instanceof HTMLElement&&Sa(t))return t.focus(),!0;return!1},Mne=(a,e)=>e.focusDeny&&Sa(a.denyButton)?(a.denyButton.focus(),!0):e.focusCancel&&Sa(a.cancelButton)?(a.cancelButton.focus(),!0):e.focusConfirm&&Sa(a.confirmButton)?(a.confirmButton.focus(),!0):!1,Cne=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Rt.prototype.disableButtons=uO,Rt.prototype.enableButtons=dO,Rt.prototype.getInput=lO,Rt.prototype.disableInput=pO,Rt.prototype.enableInput=fO,Rt.prototype.hideLoading=BS,Rt.prototype.disableLoading=BS,Rt.prototype.showValidationMessage=mO,Rt.prototype.resetValidationMessage=yO,Rt.prototype.close=or,Rt.prototype.closePopup=or,Rt.prototype.closeModal=or,Rt.prototype.closeToast=or,Rt.prototype.rejectPromise=aO,Rt.prototype.update=xO,Rt.prototype._destroy=bO,Object.assign(Rt,$re),Object.keys(Hre).forEach(a=>{Rt[a]=function(...e){return Li&&Li[a]?Li[a](...e):null}}),Rt.DismissReason=E1,Rt.version="11.26.10";const Xl=Rt;Xl.default=Xl,typeof document<"u"&&(function(a,e){var t=a.createElement("style");if(a.getElementsByTagName("head")[0].appendChild(t),t.styleSheet)t.styleSheet.disabled||(t.styleSheet.cssText=e);else try{t.innerHTML=e}catch{t.innerText=e}})(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.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:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform: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}}');const _S=a=>Xl.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:a||3e3,timerProgressBar:!0,didOpen:e=>{e.onmouseenter=Xl.stopTimer,e.onmouseleave=Xl.resumeTimer,e.onclick=()=>{Xl.close()}}}),gD={error(a,e){_S(e).fire({icon:"error",title:a})},warn(a,e){_S(e).fire({icon:"warning",title:a})},success(a,e){_S(e).fire({icon:"success",title:a})},info(a,e){_S(e).fire({icon:"info",title:a})}},Ene={install(a){a.config.globalProperties.$toast=gD}},Lne={key:0,class:"border-2 border-dashed border-gray-300 rounded-lg p-8 text-center hover:border-gray-400 transition-colors h-[300px] flex select-none"},Tne={class:"space-y-4 m-auto"},Sne={class:"text-sm text-gray-500 mt-2"},Ine={key:1,class:"select-none"},Fne=["src"],Dne=["onMousedown"],Ane={key:1,class:"absolute inset-0 pointer-events-none"},Rne=p.defineComponent({__name:"UploadImage",props:{show:{type:Boolean,default:!1},uploadSize:{default:2}},setup(a,{emit:e}){const t=a,i=p.ref([{name:"Upload Image",link:"#"}]),r=e,n=p.ref([{title:"Close",emit:"onClose"}]);p.ref(!0);const s=p.ref(),o=p.ref(""),l=p.ref(!1),h=p.ref(""),d=p.ref(570),f=p.ref(300),u=p.ref(null),m=p.ref({width:0,height:0,scaleX:1,scaleY:1}),y=p.ref({x:0,y:0,height:0,width:0}),v=p.ref(!1),k=p.ref({x:0,y:0}),g=p.ref(!1),x=p.ref(""),w=p.ref(1),b=p.ref(!1);p.ref({x:0,y:0});const L=p.ref({x:0,y:0}),F=()=>{s.value&&s.value.click()},C=p.computed(()=>{if(!y.value)return[];const{width:W,height:K}=y.value;return[{position:"nw",class:"cursor-nw-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{left:"-6px",top:"-6px"}},{position:"ne",class:"cursor-ne-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{right:"-6px",top:"-6px"}},{position:"sw",class:"cursor-sw-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{left:"-6px",bottom:"-6px"}},{position:"se",class:"cursor-se-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{right:"-6px",bottom:"-6px"}}]}),T=()=>{const W=w.value,K=L.value,B=m.value.width,ce=m.value.height,ee=B/ce,oe=d.value/f.value;let re=0,ue=0;ee>oe?(re=d.value*W,ue=d.value/ee*W):(ue=f.value*W,re=f.value*ee*W);const Me=(d.value-re)/2+K.x,Ce=(f.value-ue)/2+K.y;return{left:Me,top:Ce,right:Me+re,bottom:Ce+ue,width:re,height:ue}},H=W=>{const K=t.uploadSize,B=W.target.files[0];if(B&&B.type.startsWith("image/")&&s.value){if(B.size/1048576>K){gD.error(`Upload size mute be below ${t.uploadSize} MB.`),s.value.value="";return}const ee=new FileReader;ee.onload=oe=>{o.value=oe.target.result,l.value=!0,h.value=""},ee.readAsDataURL(B),n.value=[{title:"Cancel",emit:"onCancel",class:"btn btn-danger"},{title:"Reset",emit:"onReset",class:"btn-outline btn-danger"},{title:"Crop",emit:"onCrop"}]}},O=()=>{if(!u.value)return;const W=u.value,K=W.naturalWidth,B=W.naturalHeight;m.value={width:K,height:B,scaleX:K/d.value,scaleY:B/f.value},w.value=1,L.value={x:0,y:0};const ce=200,ee=200;y.value={x:(d.value-ce)/2,y:(f.value-ee)/2,width:ce,height:ee}},V=W=>{v.value=!0,k.value={x:W.clientX-y.value.x,y:W.clientY-y.value.y},W.preventDefault()},j=(W,K)=>{g.value=!0,x.value=W,k.value={x:K.clientX,y:K.clientY,cropX:y.value.x,cropY:y.value.y,cropWidth:y.value.width,cropHeight:y.value.height},K.preventDefault()},J=()=>{v.value=!1,g.value=!1,b.value=!1,x.value=""},he=W=>{if(v.value){const K=T(),B=W.clientX-k.value.x,ce=W.clientY-k.value.y,ee=Math.max(0,K.left),oe=Math.max(0,K.top),re=Math.min(d.value-y.value.width,K.right-y.value.width),ue=Math.min(f.value-y.value.height,K.bottom-y.value.height);y.value={...y.value,x:Math.min(Math.max(B,ee),re),y:Math.min(Math.max(ce,oe),ue)}}else if(g.value){const K=W.clientX-k.value.x,B=W.clientY-k.value.y,ce=T();let ee={...y.value};const oe=50;switch(x.value){case"nw":ee.x=Math.max(Math.max(0,ce.left),Math.min(k.value.cropX+K,k.value.cropX+k.value.cropWidth-oe)),ee.y=Math.max(Math.max(0,ce.top),Math.min(k.value.cropY+B,k.value.cropY+k.value.cropHeight-oe)),ee.width=k.value.cropWidth-(ee.x-k.value.cropX),ee.height=k.value.cropHeight-(ee.y-k.value.cropY);break;case"ne":ee.y=Math.max(Math.max(0,ce.top),Math.min(k.value.cropY+B,k.value.cropY+k.value.cropHeight-oe)),ee.height=k.value.cropHeight-(ee.y-k.value.cropY),ee.width=Math.min(Math.min(d.value-ee.x,ce.right-ee.x),Math.max(oe,k.value.cropWidth+K));break;case"sw":ee.x=Math.max(Math.max(0,ce.left),Math.min(k.value.cropX+K,k.value.cropX+k.value.cropWidth-oe)),ee.width=k.value.cropWidth-(ee.x-k.value.cropX),ee.height=Math.min(Math.min(f.value-ee.y,ce.bottom-ee.y),Math.max(oe,k.value.cropHeight+B));break;case"se":ee.width=Math.min(Math.min(d.value-ee.x,ce.right-ee.x),Math.max(oe,k.value.cropWidth+K)),ee.height=Math.min(Math.min(f.value-ee.y,ce.bottom-ee.y),Math.max(oe,k.value.cropHeight+B));break}y.value=ee}},Z=W=>{const K=y.value,B=W.currentTarget.getBoundingClientRect(),ce=W.clientX-B.left,ee=W.clientY-B.top;ce>=K.x&&ce<=K.x+K.width&&ee>=K.y&&ee<=K.y+K.height||(b.value=!0,k.value={x:W.clientX-L.value.x,y:W.clientY-L.value.y},W.preventDefault())},ge=()=>{if(!y.value||!u.value)return;const W=u.value,K=m.value.width,B=m.value.height,ce=w.value,ee=L.value.x,oe=L.value.y,re=d.value,ue=f.value,Me=K/B,Ce=re/ue;let A=0,_=0;Me>Ce?(A=re*ce,_=re/Me*ce):(_=ue*ce,A=ue*Me*ce);const q=(re-A)/2+ee,S=(ue-_)/2+oe,N=y.value.x-q,E=y.value.y-S,ne=K/A,ye=B/_,de=N*ne,Ie=E*ye,ve=y.value.width*ne,Re=y.value.height*ye,$e=Math.max(0,de),nt=Math.max(0,Ie),vt=Math.max(1,Math.min(K-$e,ve)),Le=Math.max(1,Math.min(B-nt,Re)),Je=document.createElement("canvas");Je.width=vt,Je.height=Le;const we=Je.getContext("2d");we&&(we.drawImage(W,$e,nt,vt,Le,0,0,vt,Le),h.value=Je.toDataURL("image/png"),r("onImageCrop",h.value),ie())},ie=()=>{l.value=!1,o.value="",y.value={},h.value="",L.value={x:0,y:0},w.value=1,s.value&&(s.value.value=""),n.value=[{title:"Close",emit:"onClose"}]};return p.onMounted(()=>{document.addEventListener("mousemove",he),document.addEventListener("mouseup",J)}),p.onUnmounted(()=>{document.removeEventListener("mousemove",he),document.removeEventListener("mouseup",J)}),(W,K)=>(p.openBlock(),p.createBlock(YS,{title:i.value,actions:n.value,show:a.show,onOnClose:K[0]||(K[0]=B=>r("onClose")),onOnCrop:ge,onOnReset:ie,onOnCancel:K[1]||(K[1]=B=>{ie(),r("onClose")})},{default:p.withCtx(()=>[l.value?(p.openBlock(),p.createElementBlock("div",Ine,[p.createElementVNode("div",{ref:"cropperContainer",class:"relative mx-auto shadow-sm overflow-hidden",style:p.normalizeStyle({width:d.value+"px",height:f.value+"px",backgroundImage:`url(${p.unref(Nae)})`}),onMousedown:Z},[p.createElementVNode("img",{ref_key:"cropperImage",ref:u,src:o.value,class:"w-full h-full object-contain",style:p.normalizeStyle({transform:`scale(${w.value}) translate(${L.value.x}px, ${L.value.y}px)`}),onLoad:O},null,44,Fne),y.value?(p.openBlock(),p.createElementBlock("div",{key:0,class:"absolute border-2 border-primary border-dashed cursor-move",style:p.normalizeStyle({left:y.value.x+"px",top:y.value.y+"px",width:y.value.width+"px",height:y.value.height+"px"}),onMousedown:V},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(C.value,B=>(p.openBlock(),p.createElementBlock("div",{key:B.position,class:p.normalizeClass(B.class),style:p.normalizeStyle(B.style),onMousedown:p.withModifiers(ce=>j(B.position,ce),["stop"])},null,46,Dne))),128))],36)):p.createCommentVNode("",!0),y.value?(p.openBlock(),p.createElementBlock("div",Ane,[p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:"0px",top:"0px",width:"100%",height:y.value.y+"px"})},null,4),p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:"0px",top:y.value.y+y.value.height+"px",width:"100%",height:f.value-y.value.y-y.value.height+"px"})},null,4),p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:"0px",top:y.value.y+"px",width:y.value.x+"px",height:y.value.height+"px"})},null,4),p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:y.value.x+y.value.width+"px",top:y.value.y+"px",width:d.value-y.value.x-y.value.width+"px",height:y.value.height+"px"})},null,4)])):p.createCommentVNode("",!0)],36)])):(p.openBlock(),p.createElementBlock("div",Lne,[p.createElementVNode("input",{ref_key:"fileInput",ref:s,type:"file",class:"hidden",onChange:H,accept:"image/png, image/jpeg, image/jpg, image/webp"},null,544),p.createElementVNode("div",Tne,[K[2]||(K[2]=p.createElementVNode("div",{class:"mx-auto w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center"},[p.createElementVNode("svg",{class:"w-8 h-8 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})])],-1)),p.createElementVNode("div",null,[p.createElementVNode("button",{class:"btn",onClick:F},"Choose Image"),p.createElementVNode("p",Sne,"PNG, JPG up to "+p.toDisplayString(a.uploadSize)+" MB",1)])])]))]),_:1},8,["title","actions","show"]))}}),Pne={mounted:(a,e)=>{if(e.value){const t=a.querySelector("input"),i=document.createElement("span");i.classList.add("field-error","error-message"),t?.classList.add("input-error"),i.textContent=e.value,a.appendChild(i)}},updated:(a,e)=>{const t=a.querySelector("input"),i=a.querySelector(".error-message");if(!i&&e.value){const r=document.createElement("span");r.classList.add("field-error","error-message"),r.textContent=e.value,t?.classList.add("input-error"),a.appendChild(r)}else e.value?(a.classList.add("input-error"),t?.classList.add("input-error"),i&&(i.textContent=e.value)):(t?.classList.remove("input-error"),i&&i.remove())}},kD=new WeakMap,Hne={mounted(a,e){let t=null,i=0;a.classList.add("hide-scrollbar");const r=()=>{a.classList.remove("hide-scrollbar")},n=()=>{a.classList.add("hide-scrollbar"),i=Date.now()},s=()=>{Date.now()-i>=100&&r(),t&&clearTimeout(t),t=setTimeout(n,1e3)};a.addEventListener("scroll",s),kD.set(a,s)},unmounted(a){const e=kD.get(a);e&&(a.removeEventListener("scroll",e),kD.delete(a))}};var vD={exports:{}},DO;function zne(){if(DO)return vD.exports;DO=1;var a=vD.exports={},e,t;function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=i}catch{e=i}try{typeof clearTimeout=="function"?t=clearTimeout:t=r}catch{t=r}})();function n(v){if(e===setTimeout)return setTimeout(v,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(v,0);try{return e(v,0)}catch{try{return e.call(null,v,0)}catch{return e.call(this,v,0)}}}function s(v){if(t===clearTimeout)return clearTimeout(v);if((t===r||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(v);try{return t(v)}catch{try{return t.call(null,v)}catch{return t.call(this,v)}}}var o=[],l=!1,h,d=-1;function f(){!l||!h||(l=!1,h.length?o=h.concat(o):d=-1,o.length&&u())}function u(){if(!l){var v=n(f);l=!0;for(var k=o.length;k;){for(h=o,o=[];++d<k;)h&&h[d].run();d=-1,k=o.length}h=null,l=!1,s(v)}}a.nextTick=function(v){var k=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)k[g-1]=arguments[g];o.push(new m(v,k)),o.length===1&&!l&&n(u)};function m(v,k){this.fun=v,this.array=k}m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function y(){}return a.on=y,a.addListener=y,a.once=y,a.off=y,a.removeListener=y,a.removeAllListeners=y,a.emit=y,a.prependListener=y,a.prependOnceListener=y,a.listeners=function(v){return[]},a.binding=function(v){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(v){throw new Error("process.chdir is not supported")},a.umask=function(){return 0},vD.exports}var AO=zne();const wD=new WeakMap,One={mounted(a){AO.nextTick(()=>{const e=()=>{typeof a.select=="function"&&a.select()};a.addEventListener("focus",e),wD.set(a,e)})},unmounted(a){const e=wD.get(a);e&&(a.removeEventListener("focus",e),wD.delete(a))}},xD=(a,e,t="RS.",i="usa",r="nepali")=>{const n=parseFloat(a);if(isNaN(n))return"";const s=i==="euro",o=s?",":".",l=s?".":",",h=n.toFixed(2).split(".");let d=h[0];const f=h[1];if(r==="nepali"){const u=d.slice(-3),m=d.slice(0,-3),y=m.replace(/\B(?=(\d{2})+(?!\d))/g,l);d=m?y+l+u:u}else d=d.replace(/\B(?=(\d{3})+(?!\d))/g,l);return e&&t?`${t}${d}${o}${f}`:`${d}${o}${f}`},bD=(a,e,t="RS.",i="usa")=>{if(!a)return 0;const r=i==="euro",n=r?",":".",s=r?".":",";let o=a.trim();e&&t&&o.startsWith(t)&&(o=o.slice(t.length).trim());const l=new RegExp(`\\${s}(?=\\d{2,3})`,"g");o=o.replace(l,"");const h=o.lastIndexOf(n);h!==-1&&n!=="."&&(o=o.slice(0,h)+"."+o.slice(h+1));const d=parseFloat(o);return isNaN(d)?0:d},Vne={install(a){a.config.globalProperties.$currencyFormatter=xD,a.config.globalProperties.$currencyUnformatter=bD}},US=(a,e,t=!0)=>{t?a.value=xD(a.value,!1,"",e.format,e.structure):a.value=bD(a.value,!1,"",e.format).toString()},Bne={mounted(a,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};AO.nextTick(()=>{a.value&&US(a,t)});const i=()=>{US(a,t),a.removeEventListener("blur",i),a.removeEventListener("keydown",n)},r=()=>{US(a,t,!1),a.addEventListener("blur",i),a.addEventListener("keydown",n)},n=s=>{const o=/^\d$/.test(s.key),l=s.key===".",h=s.ctrlKey||s.metaKey,d=s.key==="Enter"||s.key==="Tab"||s.key==="Backspace",f=a.value.includes(".");if(l&&f){s.preventDefault();return}o||l&&!f||h||d||s.preventDefault()};a.addEventListener("focus",r),a.eventCleanUp=()=>{a.removeEventListener("focus",r),a.removeEventListener("blur",i),a.removeEventListener("keydown",n)}},updated(a,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};document.activeElement!=a&&US(a,t)},unmounted(a){}},Nne={mounted(a){const e=a.closest(".sidebar-dropdown");if(!e)return;const t=700,i=()=>{const s=a.scrollHeight,o=s*1e3/t;a.style.overflow="hidden",a.style.transition=`height ${o}ms linear`,a.style.height=`${s}px`,clearTimeout(a._timeout),a._timeout=window.setTimeout(()=>{a.style.height="",a.style.transition="",a.style.overflow=""},o)},r=()=>{const s=a.scrollHeight,o=s*1e3/t;a.style.transition=`height ${o}ms linear`,a.style.overflow="hidden",a.style.height=`${s}px`,a.offsetHeight,a.style.height="0px",clearTimeout(a._timeout),a._timeout=window.setTimeout(()=>{a.style.transition="",a.style.overflow=""},o)},n=new MutationObserver(()=>{e.classList.contains("sidebar-item-open")?i():r()});n.observe(e,{attributes:!0,attributeFilter:["class"]}),a._observer=n,e.classList.contains("sidebar-item-open")?a.style.height="auto":(a.style.height="0px",a.style.overflow="hidden")},unmounted(a){a._observer&&a._observer.disconnect(),clearTimeout(a._timeout)}},qne=["innerHTML"],jne={key:1},_ne=wH(p.defineComponent({__name:"Tooltip",props:{content:{},raw:{type:Boolean}},setup(a,{expose:e}){const t=p.ref(!1);p.onMounted(()=>{requestAnimationFrame(()=>{t.value=!0})});function i(){t.value=!1}return e({hide:i}),(r,n)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["tooltip-content",{visible:t.value}])},[a.raw?(p.openBlock(),p.createElementBlock("div",{key:0,innerHTML:a.content},null,8,qne)):(p.openBlock(),p.createElementBlock("span",jne,p.toDisplayString(a.content),1))],2))}}),[["__scopeId","data-v-3e0dd3fc"]]),Une={mounted(a,e){let t=null,i=null,r=null,n=e;function s(f,u,m){const y=window.innerWidth,v=window.innerHeight;switch(f){case"top":return u.top>=m.height;case"bottom":return v-u.bottom>=m.height;case"left":return u.left>=m.width;case"right":return y-u.right>=m.width;default:return!1}}const o=async()=>{if(!n.value||!n.value.content)return;const{content:f,raw:u=!1,preferredPosition:m="top"}=n.value;if(t&&i&&(t.unmount(),i.remove()),i=document.createElement("div"),i.style.position="absolute",i.style.zIndex="9999",document.body.appendChild(i),t=p.createApp(_ne,{content:f,raw:u}),t.mount(i),await p.nextTick(),!i)return;const y=a.getBoundingClientRect(),v=i.getBoundingClientRect(),x=[m,...["top","bottom","left","right"].filter(L=>L!==m)].find(L=>s(L,y,v))||"bottom";let w=0,b=0;switch(x){case"top":w=y.top-v.height+window.scrollY,b=y.left+(y.width-v.width)/2+window.scrollX;break;case"bottom":w=y.bottom+window.scrollY,b=y.left+(y.width-v.width)/2+window.scrollX;break;case"left":w=y.top+(y.height-v.height)/2+window.scrollY,b=y.left-v.width+window.scrollX;break;case"right":w=y.top+(y.height-v.height)/2+window.scrollY,b=y.right+window.scrollX;break}b=Math.max(0,Math.min(b,window.innerWidth-v.width)),w=Math.max(0,Math.min(w,window.innerHeight-v.height)),i.style.top=`${w}px`,i.style.left=`${b}px`},l=async()=>{r&&(clearTimeout(r),r=null),await o()},h=()=>{r&&(clearTimeout(r),r=null),t&&i&&(t.unmount(),i.remove(),t=null,i=null)},d=()=>{r||(r=window.setTimeout(()=>{l(),r=null},200))};a.__tooltipHandlers={showTooltip:d,hideTooltip:h,clearShowTimeout:()=>{r&&(clearTimeout(r),r=null)},createTooltip:o,updateBinding:f=>{n=f}},a.addEventListener("mouseenter",d),a.addEventListener("mouseleave",h)},updated(a,e){a.__tooltipHandlers&&(a.__tooltipHandlers.updateBinding(e),a.matches(":hover")&&a.__tooltipHandlers.createTooltip())},unmounted(a){a.__tooltipHandlers&&(a.__tooltipHandlers.hideTooltip(),a.removeEventListener("mouseenter",a.__tooltipHandlers.showTooltip),a.removeEventListener("mouseleave",a.__tooltipHandlers.hideTooltip),a.__tooltipHandlers.clearShowTimeout(),delete a.__tooltipHandlers)}};class Gne{constructor(){this.socket=null,this.url="",this.isConnected=!1}setURL(e){this.url=e}init(){return this.url==""?(console.log("❗WebSocket url not set!"),Promise.resolve(this)):this.socket&&this.socket.readyState!==WebSocket.CLOSED&&this.socket.readyState!==WebSocket.CLOSING?(console.log("❗WebSocket is already initialized"),Promise.resolve(this)):(this.socket=new WebSocket(this.url),new Promise((e,t)=>{this.socket.onopen=()=>{this.isConnected=!0,console.log("✅ WebSocket connected"),e(this)},this.socket.onclose=()=>{this.isConnected=!1,console.log("❌ WebSocket connection closed")},this.socket.onerror=i=>{this.close(),console.error("⛔ WebSocket error occurred:",i),t(i)}}))}onMessage(e){return this.socket?(this.socket.onmessage=t=>{e&&t.data&&e(t.data)},Promise.resolve(this)):(console.error("❗WebSocket is not initialized"),Promise.resolve(this))}sendMessage(e){return new Promise((t,i)=>{if(this.socket&&this.isConnected)try{this.socket.send(e),t()}catch(r){console.error("❗Error sending message:",r),i(r)}else{const r="❗WebSocket is not connected";console.error(r),i(new Error(r))}})}close(){this.socket&&(this.socket.close(),this.socket=null,this.isConnected=!1,console.log("❌ WebSocket connection closed"))}getConnectionStatus(){return this.isConnected}}const Wne=(a,e)=>{const t=a.toLowerCase().split("+").map(l=>l.trim()),i={ctrl:t.includes("ctrl"),alt:t.includes("alt"),shift:t.includes("shift"),meta:t.includes("meta")},r=t.filter(l=>!["ctrl","alt","shift","meta"].includes(l));if(r.length===0)throw new Error("No main keys specified in shortcut.");const n=new Set,s=l=>{n.add(l.key.toLowerCase());const h=l.ctrlKey===i.ctrl&&l.altKey===i.alt&&l.shiftKey===i.shift&&l.metaKey===i.meta,d=r.every(f=>n.has(f));h&&d&&(l.preventDefault(),e(l))},o=l=>{n.delete(l.key.toLowerCase())};return window.addEventListener("keydown",s),window.addEventListener("keyup",o),{destroy(){window.removeEventListener("keydown",s),window.removeEventListener("keyup",o)}}},Yne=(a,e)=>{let t=null;return{run:n=>{t&&clearTimeout(t),t=setTimeout(()=>{a(n),t=null},e)},cancel:()=>{t&&(clearTimeout(t),t=null)}}},RO=a=>{const t=(void 0).$refs?.[a];if(t&&typeof t.activate=="function"){t.activate();return}const i=document.getElementById(a);if(!i)return;const r=i.tagName;(r==="INPUT"||r==="TEXTAREA"||r==="BUTTON")&&i.focus()},Qne={install(a){a.config.globalProperties.$focusNext=RO}},PO=(a,e=!1,t=!0)=>{if(a==null||a==="")return"";const i=["","एक","दुई","तीन","चार","पाँच","छ","सात","आठ","नौ","दश","एघार","बाह्र","तेह्र","चौध","पन्ध्र","सोह्र","सत्र","अठार","उन्नाइस"],r=["","","बीस","एक्काइस","बाइस","तेइस","चौबीस","पच्चीस","छब्बीस","सत्ताइस","अठ्ठाइस","उनन्तिस","तीस","एकतीस","बत्तीस","तेत्तीस","चौँतीस","पैंतीस","छत्तीस","सैतीस","अठतीस","उनन्चालीस","चालीस","एकचालीस","बयालीस","त्रियालीस","चवालीस","पैंतालीस","छयालीस","सतचालीस","अठचालीस","उनन्चास","पचास","एकाउन्न","बाउन्न","त्रिपन्न","चवन्न","पचपन्न","छपन्न","सन्ताउन्न","अन्ठाउन्न","उनन्साठी","साठी","एकसठ्ठी","बयसठ्ठी","त्रिसठ्ठी","चौंसठ्ठी","पैंसठ्ठी","छयसठ्ठी","सतसठ्ठी","अठसठ्ठी","उनन्सत्तरी","सत्तरी","एकहत्तर","बहत्तर","त्रिहत्तर","चौहत्तर","पचहत्तर","छयहत्तर","सतहत्तर","अठहत्तर","उनासी","असी","एकासी","बयासी","त्रियासी","चौरासी","पचासी","छयासी","सतासी","अठासी","उनान्नब्बे","नब्बे","एकानब्बे","बयानब्बे","त्रियानब्बे","चौरानब्बे","पन्चानब्बे","छयानब्बे","सन्तानब्बे","अन्ठानब्बे","उनान्सय"],n=["","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"],s=["","","Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety"],o=e?["खर्ब","अर्ब","करोड","लाख","हजार","सय"]:["Kharaab","Arab","Crore","Lakh","Thousand","Hundred"],l=e?"ऋण":"Negative",h=e?"रुपैयाँ":"Rupees",d=e?"पैसा":"Paisa",f=e?"शून्य":"Zero",u=e?"दश":"Point";let m=String(a).trim(),y=!1;m.startsWith("-")&&(y=!0,m=m.slice(1));const[v,k]=m.split("."),g=parseInt(v,10);if(isNaN(g))return"";if(g===0&&!k)return f;function x(L){if(e)return L<20?i[L]:r[L];{if(L<20)return n[L];const F=Math.floor(L/10),C=L%10;return s[F]+(C?" "+n[C]:"")}}function w(L){if(L===0)return"";let F=L;const C=ie=>{const W=F%ie;return F=Math.floor(F/ie),W},T=C(1e3),H=C(100),O=C(100),V=C(100),j=C(100),he=[{value:C(100),label:o[0]},{value:j,label:o[1]},{value:V,label:o[2]},{value:O,label:o[3]},{value:H,label:o[4]},{value:Math.floor(T/100),label:o[5],suffix:!0}];let Z=[],ge=T%100;for(const ie of he)ie.value&&(ie.suffix?Z.push(e?i[ie.value]:n[ie.value],ie.label):Z.push(x(ie.value),ie.label));return ge&&Z.push(x(ge)),Z.filter(Boolean).join(" ")}let b=w(g);if(b&&t&&(b+=" "+h),k)if(t){const L=parseInt(k.substring(0,2).padEnd(2,"0"),10);if(L>0){const F=x(L);b+=" "+F+" "+d}}else{const L=k.split("").map(F=>e?i[parseInt(F,10)]||"":n[parseInt(F,10)]||"").join(" ");b+=" "+u+" "+L}return y&&(b=l+" "+b),b.trim().replace(/\s+/g," ")},Xne={install(a){a.config.globalProperties.$numToWords=PO}};et.ContentLayout=QO,et.CreateDebounce=Yne,et.CreateShortCutKey=Wne,et.CurrencyFormatterPlugin=Vne,et.DateRange=Dae,et.DateSelector=oae,et.FocusNextPlugin=Qne,et.Icons=ET,et.InputCurrency=Bne,et.InputError=Pne,et.InputSelect=One,et.Loader=Bae,et.Modal=YS,et.NumbertoWordPlugin=Xne,et.ScrollbarAnimateDropdown=Nne,et.ScrollbarScroll=Hne,et.Switch=nV,et.Tabulator=H$,et.ToastPlugin=Ene,et.Toggle=MF,et.Tooltip=Une,et.Towser=Y$,et.UploadImage=Rne,et.WebSocketWrapper=Gne,et.Wizard=Oae,et.currencyFormatter=xD,et.currencyUnformatter=bD,et.focusNext=RO,et.numToWord=PO,et.toast=gD,Object.defineProperty(et,Symbol.toStringTag,{value:"Module"})}));
|