66 lines
78 KiB
JavaScript
66 lines
78 KiB
JavaScript
import{m as Hn,a as Fn,u as jn,b as zn,c as qn,d as Rn,e as _n}from"./CyzTntOO.js";import{ar as Un,aQ as Wn,aR as Nn,aS as Kn,am as Zn,aN as Yn,r as xe,aT as de,aD as Re,i as j,aU as Xn,aM as Jn,aV as Gn,F as ke,ao as Qn,Q as wt,z as b,S as Pe,aW as eo,a3 as ne,aX as to,aY as ft,aZ as no,M as pt,a_ as oo,aP as so,B as io,a$ as ro,b0 as ao,b1 as lo,b2 as mt,$ as ht,b3 as co,b4 as uo}from"./DAwWkXNE.js";/*!
|
|
* sweetalert2 v11.14.5
|
|
* Released under the MIT License.
|
|
*/function Tt(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function wo(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function gt(e,t){return e.get(Tt(e,t))}function fo(e,t,n){wo(e,t),t.set(e,n)}function po(e,t,n){return e.set(Tt(e,t),n),n}const mo=100,l={},ho=()=>{l.previousActiveElement instanceof HTMLElement?(l.previousActiveElement.focus(),l.previousActiveElement=null):document.body&&document.body.focus()},go=e=>new Promise(t=>{if(!e)return t();const n=window.scrollX,o=window.scrollY;l.restoreFocusTimeout=setTimeout(()=>{ho(),t()},mo),window.scrollTo(n,o)}),$t="swal2-",bo=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"],i=bo.reduce((e,t)=>(e[t]=$t+t,e),{}),vo=["success","warning","info","question","error"],Ee=vo.reduce((e,t)=>(e[t]=$t+t,e),{}),It="SweetAlert2:",Ze=e=>e.charAt(0).toUpperCase()+e.slice(1),I=e=>{console.warn(`${It} ${typeof e=="object"?e.join(" "):e}`)},Q=e=>{console.error(`${It} ${e}`)},bt=[],yo=e=>{bt.includes(e)||(bt.push(e),I(e))},Lt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;yo(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},Le=e=>typeof e=="function"?e():e,Ye=e=>e&&typeof e.toPromise=="function",we=e=>Ye(e)?e.toPromise():Promise.resolve(e),Xe=e=>e&&Promise.resolve(e)===e,L=()=>document.body.querySelector(`.${i.container}`),fe=e=>{const t=L();return t?t.querySelector(e):null},D=e=>fe(`.${e}`),p=()=>D(i.popup),pe=()=>D(i.icon),Co=()=>D(i["icon-content"]),Mt=()=>D(i.title),Je=()=>D(i["html-container"]),Ot=()=>D(i.image),Ge=()=>D(i["progress-steps"]),Me=()=>D(i["validation-message"]),q=()=>fe(`.${i.actions} .${i.confirm}`),ae=()=>fe(`.${i.actions} .${i.cancel}`),ee=()=>fe(`.${i.actions} .${i.deny}`),xo=()=>D(i["input-label"]),le=()=>fe(`.${i.loader}`),me=()=>D(i.actions),Vt=()=>D(i.footer),Oe=()=>D(i["timer-progress-bar"]),Qe=()=>D(i.close),ko=`
|
|
a[href],
|
|
area[href],
|
|
input:not([disabled]),
|
|
select:not([disabled]),
|
|
textarea:not([disabled]),
|
|
button:not([disabled]),
|
|
iframe,
|
|
object,
|
|
embed,
|
|
[tabindex="0"],
|
|
[contenteditable],
|
|
audio[controls],
|
|
video[controls],
|
|
summary
|
|
`,et=()=>{const e=p();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((r,c)=>{const u=parseInt(r.getAttribute("tabindex")||"0"),h=parseInt(c.getAttribute("tabindex")||"0");return u>h?1:u<h?-1:0}),o=e.querySelectorAll(ko),s=Array.from(o).filter(r=>r.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(s))].filter(r=>$(r))},tt=()=>U(document.body,i.shown)&&!U(document.body,i["toast-shown"])&&!U(document.body,i["no-backdrop"]),Ve=()=>{const e=p();return e?U(e,i.toast):!1},Ao=()=>{const e=p();return e?e.hasAttribute("data-loading"):!1},H=(e,t)=>{if(e.textContent="",t){const o=new DOMParser().parseFromString(t,"text/html"),s=o.querySelector("head");s&&Array.from(s.childNodes).forEach(c=>{e.appendChild(c)});const r=o.querySelector("body");r&&Array.from(r.childNodes).forEach(c=>{c instanceof HTMLVideoElement||c instanceof HTMLAudioElement?e.appendChild(c.cloneNode(!0)):e.appendChild(c)})}},U=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let o=0;o<n.length;o++)if(!e.classList.contains(n[o]))return!1;return!0},Po=(e,t)=>{Array.from(e.classList).forEach(n=>{!Object.values(i).includes(n)&&!Object.values(Ee).includes(n)&&!Object.values(t.showClass||{}).includes(n)&&e.classList.remove(n)})},V=(e,t,n)=>{if(Po(e,t),!t.customClass)return;const o=t.customClass[n];if(o){if(typeof o!="string"&&!o.forEach){I(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof o}"`);return}w(e,o)}},De=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${i.popup} > .${i[t]}`);case"checkbox":return e.querySelector(`.${i.popup} > .${i.checkbox} input`);case"radio":return e.querySelector(`.${i.popup} > .${i.radio} input:checked`)||e.querySelector(`.${i.popup} > .${i.radio} input:first-child`);case"range":return e.querySelector(`.${i.popup} > .${i.range} input`);default:return e.querySelector(`.${i.popup} > .${i.input}`)}},Dt=e=>{if(e.focus(),e.type!=="file"){const t=e.value;e.value="",e.value=t}},Ht=(e,t,n)=>{!e||!t||(typeof t=="string"&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(o=>{Array.isArray(e)?e.forEach(s=>{n?s.classList.add(o):s.classList.remove(o)}):n?e.classList.add(o):e.classList.remove(o)}))},w=(e,t)=>{Ht(e,t,!0)},R=(e,t)=>{Ht(e,t,!1)},W=(e,t)=>{const n=Array.from(e.children);for(let o=0;o<n.length;o++){const s=n[o];if(s instanceof HTMLElement&&U(s,t))return s}},J=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?e.style.setProperty(t,typeof n=="number"?`${n}px`:n):e.style.removeProperty(t)},B=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";e&&(e.style.display=t)},T=e=>{e&&(e.style.display="none")},nt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";e&&new MutationObserver(()=>{he(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},vt=(e,t,n,o)=>{const s=e.querySelector(t);s&&s.style.setProperty(n,o)},he=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";t?B(e,n):T(e)},$=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),Eo=()=>!$(q())&&!$(ee())&&!$(ae()),yt=e=>e.scrollHeight>e.clientHeight,Ft=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},ot=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=Oe();n&&$(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"},10))},Bo=()=>{const e=Oe();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=parseInt(window.getComputedStyle(e).width),o=t/n*100;e.style.width=`${o}%`},So=()=>typeof window>"u"||typeof document>"u",To=`
|
|
<div aria-labelledby="${i.title}" aria-describedby="${i["html-container"]}" class="${i.popup}" tabindex="-1">
|
|
<button type="button" class="${i.close}"></button>
|
|
<ul class="${i["progress-steps"]}"></ul>
|
|
<div class="${i.icon}"></div>
|
|
<img class="${i.image}" />
|
|
<h2 class="${i.title}" id="${i.title}"></h2>
|
|
<div class="${i["html-container"]}" id="${i["html-container"]}"></div>
|
|
<input class="${i.input}" id="${i.input}" />
|
|
<input type="file" class="${i.file}" />
|
|
<div class="${i.range}">
|
|
<input type="range" />
|
|
<output></output>
|
|
</div>
|
|
<select class="${i.select}" id="${i.select}"></select>
|
|
<div class="${i.radio}"></div>
|
|
<label class="${i.checkbox}">
|
|
<input type="checkbox" id="${i.checkbox}" />
|
|
<span class="${i.label}"></span>
|
|
</label>
|
|
<textarea class="${i.textarea}" id="${i.textarea}"></textarea>
|
|
<div class="${i["validation-message"]}" id="${i["validation-message"]}"></div>
|
|
<div class="${i.actions}">
|
|
<div class="${i.loader}"></div>
|
|
<button type="button" class="${i.confirm}"></button>
|
|
<button type="button" class="${i.deny}"></button>
|
|
<button type="button" class="${i.cancel}"></button>
|
|
</div>
|
|
<div class="${i.footer}"></div>
|
|
<div class="${i["timer-progress-bar-container"]}">
|
|
<div class="${i["timer-progress-bar"]}"></div>
|
|
</div>
|
|
</div>
|
|
`.replace(/(^|\n)\s*/g,""),$o=()=>{const e=L();return e?(e.remove(),R([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1},X=()=>{l.currentInstance.resetValidationMessage()},Io=()=>{const e=p(),t=W(e,i.input),n=W(e,i.file),o=e.querySelector(`.${i.range} input`),s=e.querySelector(`.${i.range} output`),r=W(e,i.select),c=e.querySelector(`.${i.checkbox} input`),u=W(e,i.textarea);t.oninput=X,n.onchange=X,r.onchange=X,c.onchange=X,u.oninput=X,o.oninput=()=>{X(),s.value=o.value},o.onchange=()=>{X(),s.value=o.value}},Lo=e=>typeof e=="string"?document.querySelector(e):e,Mo=e=>{const t=p();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},Oo=e=>{window.getComputedStyle(e).direction==="rtl"&&w(L(),i.rtl)},Vo=e=>{const t=$o();if(So()){Q("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=i.container,t&&w(n,i["no-transition"]),H(n,To);const o=Lo(e.target);o.appendChild(n),Mo(e),Oo(o),Io()},st=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?Do(e,t):e&&H(t,e)},Do=(e,t)=>{e.jquery?Ho(t,e):H(t,e.toString())},Ho=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Fo=(e,t)=>{const n=me(),o=le();!n||!o||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?T(n):B(n),V(n,t,"actions"),jo(n,o,t),H(o,t.loaderHtml||""),V(o,t,"loader"))};function jo(e,t,n){const o=q(),s=ee(),r=ae();!o||!s||!r||(_e(o,"confirm",n),_e(s,"deny",n),_e(r,"cancel",n),zo(o,s,r,n),n.reverseButtons&&(n.toast?(e.insertBefore(r,o),e.insertBefore(s,o)):(e.insertBefore(r,t),e.insertBefore(s,t),e.insertBefore(o,t))))}function zo(e,t,n,o){if(!o.buttonsStyling){R([e,t,n],i.styled);return}w([e,t,n],i.styled),o.confirmButtonColor&&(e.style.backgroundColor=o.confirmButtonColor,w(e,i["default-outline"])),o.denyButtonColor&&(t.style.backgroundColor=o.denyButtonColor,w(t,i["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,w(n,i["default-outline"]))}function _e(e,t,n){const o=Ze(t);he(e,n[`show${o}Button`],"inline-block"),H(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=i[t],V(e,n,`${t}Button`)}const qo=(e,t)=>{const n=Qe();n&&(H(n,t.closeButtonHtml||""),V(n,t,"closeButton"),he(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Ro=(e,t)=>{const n=L();n&&(_o(n,t.backdrop),Uo(n,t.position),Wo(n,t.grow),V(n,t,"container"))};function _o(e,t){typeof t=="string"?e.style.background=t:t||w([document.documentElement,document.body],i["no-backdrop"])}function Uo(e,t){t&&(t in i?w(e,i[t]):(I('The "position" parameter is not valid, defaulting to "center"'),w(e,i.center)))}function Wo(e,t){t&&w(e,i[`grow-${t}`])}var g={innerParams:new WeakMap,domCache:new WeakMap};const No=["input","file","range","select","radio","checkbox","textarea"],Ko=(e,t)=>{const n=p();if(!n)return;const o=g.innerParams.get(e),s=!o||t.input!==o.input;No.forEach(r=>{const c=W(n,i[r]);c&&(Xo(r,t.inputAttributes),c.className=i[r],s&&T(c))}),t.input&&(s&&Zo(t),Jo(t))},Zo=e=>{if(!e.input)return;if(!y[e.input]){Q(`Unexpected type of input! Expected ${Object.keys(y).join(" | ")}, got "${e.input}"`);return}const t=jt(e.input);if(!t)return;const n=y[e.input](t,e);B(t),e.inputAutoFocus&&setTimeout(()=>{Dt(n)})},Yo=e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}},Xo=(e,t)=>{const n=p();if(!n)return;const o=De(n,e);if(o){Yo(o);for(const s in t)o.setAttribute(s,t[s])}},Jo=e=>{if(!e.input)return;const t=jt(e.input);t&&V(t,e,"input")},it=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},ge=(e,t,n)=>{if(n.inputLabel){const o=document.createElement("label"),s=i["input-label"];o.setAttribute("for",e.id),o.className=s,typeof n.customClass=="object"&&w(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},jt=e=>{const t=p();if(t)return W(t,i[e]||i.input)},Be=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:Xe(t)||I(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},y={};y.text=y.email=y.password=y.number=y.tel=y.url=y.search=y.date=y["datetime-local"]=y.time=y.week=y.month=(e,t)=>(Be(e,t.inputValue),ge(e,e,t),it(e,t),e.type=t.input,e);y.file=(e,t)=>(ge(e,e,t),it(e,t),e);y.range=(e,t)=>{const n=e.querySelector("input"),o=e.querySelector("output");return Be(n,t.inputValue),n.type=t.input,Be(o,t.inputValue),ge(n,e,t),e};y.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");H(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return ge(e,e,t),e};y.radio=e=>(e.textContent="",e);y.checkbox=(e,t)=>{const n=De(p(),"checkbox");n.value="1",n.checked=!!t.inputValue;const o=e.querySelector("span");return H(o,t.inputPlaceholder||t.inputLabel),n};y.textarea=(e,t)=>{Be(e,t.inputValue),it(e,t),ge(e,e,t);const n=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(p()).width),s=()=>{if(!document.body.contains(e))return;const r=e.offsetWidth+n(e);r>o?p().style.width=`${r}px`:J(p(),"width",t.width)};new MutationObserver(s).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const Go=(e,t)=>{const n=Je();n&&(nt(n),V(n,t,"htmlContainer"),t.html?(st(t.html,n),B(n,"block")):t.text?(n.textContent=t.text,B(n,"block")):T(n),Ko(e,t))},Qo=(e,t)=>{const n=Vt();n&&(nt(n),he(n,t.footer,"block"),t.footer&&st(t.footer,n),V(n,t,"footer"))},es=(e,t)=>{const n=g.innerParams.get(e),o=pe();if(o){if(n&&t.icon===n.icon){xt(o,t),Ct(o,t);return}if(!t.icon&&!t.iconHtml){T(o);return}if(t.icon&&Object.keys(Ee).indexOf(t.icon)===-1){Q(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),T(o);return}B(o),xt(o,t),Ct(o,t),w(o,t.showClass&&t.showClass.icon)}},Ct=(e,t)=>{for(const[n,o]of Object.entries(Ee))t.icon!==n&&R(e,o);w(e,t.icon&&Ee[t.icon]),ss(e,t),ts(),V(e,t,"icon")},ts=()=>{const e=p();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let o=0;o<n.length;o++)n[o].style.backgroundColor=t},ns=`
|
|
<div class="swal2-success-circular-line-left"></div>
|
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
|
|
<div class="swal2-success-circular-line-right"></div>
|
|
`,os=`
|
|
<span class="swal2-x-mark">
|
|
<span class="swal2-x-mark-line-left"></span>
|
|
<span class="swal2-x-mark-line-right"></span>
|
|
</span>
|
|
`,xt=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,o="";t.iconHtml?o=kt(t.iconHtml):t.icon==="success"?(o=ns,n=n.replace(/ style=".*?"/g,"")):t.icon==="error"?o=os:t.icon&&(o=kt({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==o.trim()&&H(e,o)},ss=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])vt(e,n,"background-color",t.iconColor);vt(e,".swal2-success-ring","border-color",t.iconColor)}},kt=e=>`<div class="${i["icon-content"]}">${e}</div>`,is=(e,t)=>{const n=Ot();if(n){if(!t.imageUrl){T(n);return}B(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),J(n,"width",t.imageWidth),J(n,"height",t.imageHeight),n.className=i.image,V(n,t,"image")}},rs=(e,t)=>{const n=L(),o=p();if(!(!n||!o)){if(t.toast){J(n,"width",t.width),o.style.width="100%";const s=le();s&&o.insertBefore(s,pe())}else J(o,"width",t.width);J(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),T(Me()),as(o,t)}},as=(e,t)=>{const n=t.showClass||{};e.className=`${i.popup} ${$(e)?n.popup:""}`,t.toast?(w([document.documentElement,document.body],i["toast-shown"]),w(e,i.toast)):w(e,i.modal),V(e,t,"popup"),typeof t.customClass=="string"&&w(e,t.customClass),t.icon&&w(e,i[`icon-${t.icon}`])},ls=(e,t)=>{const n=Ge();if(!n)return;const{progressSteps:o,currentProgressStep:s}=t;if(!o||o.length===0||s===void 0){T(n);return}B(n),n.textContent="",s>=o.length&&I("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((r,c)=>{const u=cs(r);if(n.appendChild(u),c===s&&w(u,i["active-progress-step"]),c!==o.length-1){const h=us(t);n.appendChild(h)}})},cs=e=>{const t=document.createElement("li");return w(t,i["progress-step"]),H(t,e),t},us=e=>{const t=document.createElement("li");return w(t,i["progress-step-line"]),e.progressStepsDistance&&J(t,"width",e.progressStepsDistance),t},ds=(e,t)=>{const n=Mt();n&&(nt(n),he(n,t.title||t.titleText,"block"),t.title&&st(t.title,n),t.titleText&&(n.innerText=t.titleText),V(n,t,"title"))},zt=(e,t)=>{rs(e,t),Ro(e,t),ls(e,t),es(e,t),is(e,t),ds(e,t),qo(e,t),Go(e,t),Fo(e,t),Qo(e,t);const n=p();typeof t.didRender=="function"&&n&&t.didRender(n),l.eventEmitter.emit("didRender",n)},ws=()=>$(p()),qt=()=>{var e;return(e=q())===null||e===void 0?void 0:e.click()},fs=()=>{var e;return(e=ee())===null||e===void 0?void 0:e.click()},ps=()=>{var e;return(e=ae())===null||e===void 0?void 0:e.click()},ce=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Rt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},ms=(e,t,n)=>{Rt(e),t.toast||(e.keydownHandler=o=>gs(t,o,n),e.keydownTarget=t.keydownListenerCapture?window:p(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},We=(e,t)=>{var n;const o=et();if(o.length){e=e+t,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();return}(n=p())===null||n===void 0||n.focus()},_t=["ArrowRight","ArrowDown"],hs=["ArrowLeft","ArrowUp"],gs=(e,t,n)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?bs(t,e):t.key==="Tab"?vs(t):[..._t,...hs].includes(t.key)?ys(t.key):t.key==="Escape"&&Cs(t,e,n)))},bs=(e,t)=>{if(!Le(t.allowEnterKey))return;const n=De(p(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;qt(),e.preventDefault()}},vs=e=>{const t=e.target,n=et();let o=-1;for(let s=0;s<n.length;s++)if(t===n[s]){o=s;break}e.shiftKey?We(o,-1):We(o,1),e.stopPropagation(),e.preventDefault()},ys=e=>{const t=me(),n=q(),o=ee(),s=ae();if(!t||!n||!o||!s)return;const r=[n,o,s];if(document.activeElement instanceof HTMLElement&&!r.includes(document.activeElement))return;const c=_t.includes(e)?"nextElementSibling":"previousElementSibling";let u=document.activeElement;if(u){for(let h=0;h<t.children.length;h++){if(u=u[c],!u)return;if(u instanceof HTMLButtonElement&&$(u))break}u instanceof HTMLButtonElement&&u.focus()}},Cs=(e,t,n)=>{Le(t.allowEscapeKey)&&(e.preventDefault(),n(ce.esc))};var ie={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const xs=()=>{const e=L();Array.from(document.body.children).forEach(n=>{n.contains(e)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},Ut=()=>{Array.from(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},Wt=typeof window<"u"&&!!window.GestureEvent,ks=()=>{if(Wt&&!U(document.body,i.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,w(document.body,i.iosfix),As()}},As=()=>{const e=L();if(!e)return;let t;e.ontouchstart=n=>{t=Ps(n)},e.ontouchmove=n=>{t&&(n.preventDefault(),n.stopPropagation())}},Ps=e=>{const t=e.target,n=L(),o=Je();return!n||!o||Es(e)||Bs(e)?!1:t===n||!yt(n)&&t instanceof HTMLElement&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!(yt(o)&&o.contains(t))},Es=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",Bs=e=>e.touches&&e.touches.length>1,Ss=()=>{if(U(document.body,i.iosfix)){const e=parseInt(document.body.style.top,10);R(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},Ts=()=>{const e=document.createElement("div");e.className=i["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let oe=null;const $s=e=>{oe===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(oe=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${oe+Ts()}px`)},Is=()=>{oe!==null&&(document.body.style.paddingRight=`${oe}px`,oe=null)};function Nt(e,t,n,o){Ve()?At(e,o):(go(n).then(()=>At(e,o)),Rt(l)),Wt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),tt()&&(Is(),Ss(),Ut()),Ls()}function Ls(){R([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]])}function N(e){e=Os(e);const t=ie.swalPromiseResolve.get(this),n=Ms(this);this.isAwaitingPromise?e.isDismissed||(be(this),t(e)):n&&t(e)}const Ms=e=>{const t=p();if(!t)return!1;const n=g.innerParams.get(e);if(!n||U(t,n.hideClass.popup))return!1;R(t,n.showClass.popup),w(t,n.hideClass.popup);const o=L();return R(o,n.showClass.backdrop),w(o,n.hideClass.backdrop),Vs(e,t,n),!0};function Kt(e){const t=ie.swalPromiseReject.get(this);be(this),t&&t(e)}const be=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,g.innerParams.get(e)||e._destroy())},Os=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Vs=(e,t,n)=>{var o;const s=L(),r=Ft(t);typeof n.willClose=="function"&&n.willClose(t),(o=l.eventEmitter)===null||o===void 0||o.emit("willClose",t),r?Ds(e,t,s,n.returnFocus,n.didClose):Nt(e,s,n.returnFocus,n.didClose)},Ds=(e,t,n,o,s)=>{l.swalCloseEventFinishedCallback=Nt.bind(null,e,n,o,s);const r=function(c){if(c.target===t){var u;(u=l.swalCloseEventFinishedCallback)===null||u===void 0||u.call(l),delete l.swalCloseEventFinishedCallback,t.removeEventListener("animationend",r),t.removeEventListener("transitionend",r)}};t.addEventListener("animationend",r),t.addEventListener("transitionend",r)},At=(e,t)=>{setTimeout(()=>{var n;typeof t=="function"&&t.bind(e.params)(),(n=l.eventEmitter)===null||n===void 0||n.emit("didClose"),e._destroy&&e._destroy()})},re=e=>{let t=p();if(t||new Ke,t=p(),!t)return;const n=le();Ve()?T(pe()):Hs(t,e),B(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},Hs=(e,t)=>{const n=me(),o=le();!n||!o||(!t&&$(q())&&(t=q()),B(n),t&&(T(t),o.setAttribute("data-button-to-replace",t.className),n.insertBefore(o,t)),w([e,n],i.loading))},Fs=(e,t)=>{t.input==="select"||t.input==="radio"?_s(e,t):["text","email","number","tel","textarea"].some(n=>n===t.input)&&(Ye(t.inputValue)||Xe(t.inputValue))&&(re(q()),Us(e,t))},js=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return zs(n);case"radio":return qs(n);case"file":return Rs(n);default:return t.inputAutoTrim?n.value.trim():n.value}},zs=e=>e.checked?1:0,qs=e=>e.checked?e.value:null,Rs=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,_s=(e,t)=>{const n=p();if(!n)return;const o=s=>{t.input==="select"?Ws(n,Se(s),t):t.input==="radio"&&Ns(n,Se(s),t)};Ye(t.inputOptions)||Xe(t.inputOptions)?(re(q()),we(t.inputOptions).then(s=>{e.hideLoading(),o(s)})):typeof t.inputOptions=="object"?o(t.inputOptions):Q(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},Us=(e,t)=>{const n=e.getInput();n&&(T(n),we(t.inputValue).then(o=>{n.value=t.input==="number"?`${parseFloat(o)||0}`:`${o}`,B(n),n.focus(),e.hideLoading()}).catch(o=>{Q(`Error in inputValue promise: ${o}`),n.value="",B(n),n.focus(),e.hideLoading()}))};function Ws(e,t,n){const o=W(e,i.select);if(!o)return;const s=(r,c,u)=>{const h=document.createElement("option");h.value=u,H(h,c),h.selected=Zt(u,n.inputValue),r.appendChild(h)};t.forEach(r=>{const c=r[0],u=r[1];if(Array.isArray(u)){const h=document.createElement("optgroup");h.label=c,h.disabled=!1,o.appendChild(h),u.forEach(F=>s(h,F[1],F[0]))}else s(o,u,c)}),o.focus()}function Ns(e,t,n){const o=W(e,i.radio);if(!o)return;t.forEach(r=>{const c=r[0],u=r[1],h=document.createElement("input"),F=document.createElement("label");h.type="radio",h.name=i.radio,h.value=c,Zt(c,n.inputValue)&&(h.checked=!0);const K=document.createElement("span");H(K,u),K.className=i.label,F.appendChild(h),F.appendChild(K),o.appendChild(F)});const s=o.querySelectorAll("input");s.length&&s[0].focus()}const Se=e=>{const t=[];return e instanceof Map?e.forEach((n,o)=>{let s=n;typeof s=="object"&&(s=Se(s)),t.push([o,s])}):Object.keys(e).forEach(n=>{let o=e[n];typeof o=="object"&&(o=Se(o)),t.push([n,o])}),t},Zt=(e,t)=>!!t&&t.toString()===e.toString(),Ks=e=>{const t=g.innerParams.get(e);e.disableButtons(),t.input?Yt(e,"confirm"):at(e,!0)},Zs=e=>{const t=g.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Yt(e,"deny"):rt(e,!1)},Ys=(e,t)=>{e.disableButtons(),t(ce.cancel)},Yt=(e,t)=>{const n=g.innerParams.get(e);if(!n.input){Q(`The "input" parameter is needed to be set when using returnInputValueOn${Ze(t)}`);return}const o=e.getInput(),s=js(e,n);n.inputValidator?Xs(e,s,t):o&&!o.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||o.validationMessage)):t==="deny"?rt(e,s):at(e,s)},Xs=(e,t,n)=>{const o=g.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>we(o.inputValidator(t,o.validationMessage))).then(r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):n==="deny"?rt(e,t):at(e,t)})},rt=(e,t)=>{const n=g.innerParams.get(e||void 0);n.showLoaderOnDeny&&re(ee()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>we(n.preDeny(t,n.validationMessage))).then(s=>{s===!1?(e.hideLoading(),be(e)):e.close({isDenied:!0,value:typeof s>"u"?t:s})}).catch(s=>Xt(e||void 0,s))):e.close({isDenied:!0,value:t})},Pt=(e,t)=>{e.close({isConfirmed:!0,value:t})},Xt=(e,t)=>{e.rejectPromise(t)},at=(e,t)=>{const n=g.innerParams.get(e||void 0);n.showLoaderOnConfirm&&re(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>we(n.preConfirm(t,n.validationMessage))).then(s=>{$(Me())||s===!1?(e.hideLoading(),be(e)):Pt(e,typeof s>"u"?t:s)}).catch(s=>Xt(e||void 0,s))):Pt(e,t)};function Te(){const e=g.innerParams.get(this);if(!e)return;const t=g.domCache.get(this);T(t.loader),Ve()?e.icon&&B(pe()):Js(t),R([t.popup,t.actions],i.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Js=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?B(t[0],"inline-block"):Eo()&&T(e.actions)};function Jt(){const e=g.innerParams.get(this),t=g.domCache.get(this);return t?De(t.popup,e.input):null}function Gt(e,t,n){const o=g.domCache.get(e);t.forEach(s=>{o[s].disabled=n})}function Qt(e,t){const n=p();if(!(!n||!e))if(e.type==="radio"){const o=n.querySelectorAll(`[name="${i.radio}"]`);for(let s=0;s<o.length;s++)o[s].disabled=t}else e.disabled=t}function en(){Gt(this,["confirmButton","denyButton","cancelButton"],!1)}function tn(){Gt(this,["confirmButton","denyButton","cancelButton"],!0)}function nn(){Qt(this.getInput(),!1)}function on(){Qt(this.getInput(),!0)}function sn(e){const t=g.domCache.get(this),n=g.innerParams.get(this);H(t.validationMessage,e),t.validationMessage.className=i["validation-message"],n.customClass&&n.customClass.validationMessage&&w(t.validationMessage,n.customClass.validationMessage),B(t.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid","true"),o.setAttribute("aria-describedby",i["validation-message"]),Dt(o),w(o,i.inputerror))}function rn(){const e=g.domCache.get(this);e.validationMessage&&T(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),R(t,i.inputerror))}const se={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",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},Gs=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Qs={allowEnterKey:void 0},ei=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],an=e=>Object.prototype.hasOwnProperty.call(se,e),ln=e=>Gs.indexOf(e)!==-1,cn=e=>Qs[e],ti=e=>{an(e)||I(`Unknown parameter "${e}"`)},ni=e=>{ei.includes(e)&&I(`The parameter "${e}" is incompatible with toasts`)},oi=e=>{const t=cn(e);t&&Lt(e,t)},si=e=>{e.backdrop===!1&&e.allowOutsideClick&&I('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)ti(t),e.toast&&ni(t),oi(t)};function un(e){const t=p(),n=g.innerParams.get(this);if(!t||U(t,n.hideClass.popup)){I("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 o=ii(e),s=Object.assign({},n,o);zt(this,s),g.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const ii=e=>{const t={};return Object.keys(e).forEach(n=>{ln(n)?t[n]=e[n]:I(`Invalid parameter to update: ${n}`)}),t};function dn(){const e=g.domCache.get(this),t=g.innerParams.get(this);if(!t){wn(this);return}e.popup&&l.swalCloseEventFinishedCallback&&(l.swalCloseEventFinishedCallback(),delete l.swalCloseEventFinishedCallback),typeof t.didDestroy=="function"&&t.didDestroy(),l.eventEmitter.emit("didDestroy"),ri(this)}const ri=e=>{wn(e),delete e.params,delete l.keydownHandler,delete l.keydownTarget,delete l.currentInstance},wn=e=>{e.isAwaitingPromise?(Ue(g,e),e.isAwaitingPromise=!0):(Ue(ie,e),Ue(g,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},Ue=(e,t)=>{for(const n in e)e[n].delete(t)};var ai=Object.freeze({__proto__:null,_destroy:dn,close:N,closeModal:N,closePopup:N,closeToast:N,disableButtons:tn,disableInput:on,disableLoading:Te,enableButtons:en,enableInput:nn,getInput:Jt,handleAwaitingPromise:be,hideLoading:Te,rejectPromise:Kt,resetValidationMessage:rn,showValidationMessage:sn,update:un});const li=(e,t,n)=>{e.toast?ci(e,t,n):(di(t),wi(t),fi(e,t,n))},ci=(e,t,n)=>{t.popup.onclick=()=>{e&&(ui(e)||e.timer||e.input)||n(ce.close)}},ui=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let $e=!1;const di=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&($e=!0)}}},wi=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(n){e.popup.onmouseup=()=>{},(n.target===e.popup||n.target instanceof HTMLElement&&e.popup.contains(n.target))&&($e=!0)}}},fi=(e,t,n)=>{t.container.onclick=o=>{if($e){$e=!1;return}o.target===t.container&&Le(e.allowOutsideClick)&&n(ce.backdrop)}},pi=e=>typeof e=="object"&&e.jquery,Et=e=>e instanceof Element||pi(e),mi=e=>{const t={};return typeof e[0]=="object"&&!Et(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((n,o)=>{const s=e[o];typeof s=="string"||Et(s)?t[n]=s:s!==void 0&&Q(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`)}),t};function hi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)}function gi(e){class t extends this{_main(o,s){return super._main(o,Object.assign({},e,s))}}return t}const bi=()=>l.timeout&&l.timeout.getTimerLeft(),fn=()=>{if(l.timeout)return Bo(),l.timeout.stop()},pn=()=>{if(l.timeout){const e=l.timeout.start();return ot(e),e}},vi=()=>{const e=l.timeout;return e&&(e.running?fn():pn())},yi=e=>{if(l.timeout){const t=l.timeout.increase(e);return ot(t,!0),t}},Ci=()=>!!(l.timeout&&l.timeout.isRunning());let Bt=!1;const Ne={};function xi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Ne[e]=this,Bt||(document.body.addEventListener("click",ki),Bt=!0)}const ki=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const n in Ne){const o=t.getAttribute(n);if(o){Ne[n].fire({template:o});return}}};class Ai{constructor(){this.events={}}_getHandlersByEventName(t){return typeof this.events[t]>"u"&&(this.events[t]=[]),this.events[t]}on(t,n){const o=this._getHandlersByEventName(t);o.includes(n)||o.push(n)}once(t,n){var o=this;const s=function(){o.removeListener(t,s);for(var r=arguments.length,c=new Array(r),u=0;u<r;u++)c[u]=arguments[u];n.apply(o,c)};this.on(t,s)}emit(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];this._getHandlersByEventName(t).forEach(r=>{try{r.apply(this,o)}catch(c){console.error(c)}})}removeListener(t,n){const o=this._getHandlersByEventName(t),s=o.indexOf(n);s>-1&&o.splice(s,1)}removeAllListeners(t){this.events[t]!==void 0&&(this.events[t].length=0)}reset(){this.events={}}}l.eventEmitter=new Ai;const Pi=(e,t)=>{l.eventEmitter.on(e,t)},Ei=(e,t)=>{l.eventEmitter.once(e,t)},Bi=(e,t)=>{if(!e){l.eventEmitter.reset();return}t?l.eventEmitter.removeListener(e,t):l.eventEmitter.removeAllListeners(e)};var Si=Object.freeze({__proto__:null,argsToParams:mi,bindClickHandler:xi,clickCancel:ps,clickConfirm:qt,clickDeny:fs,enableLoading:re,fire:hi,getActions:me,getCancelButton:ae,getCloseButton:Qe,getConfirmButton:q,getContainer:L,getDenyButton:ee,getFocusableElements:et,getFooter:Vt,getHtmlContainer:Je,getIcon:pe,getIconContent:Co,getImage:Ot,getInputLabel:xo,getLoader:le,getPopup:p,getProgressSteps:Ge,getTimerLeft:bi,getTimerProgressBar:Oe,getTitle:Mt,getValidationMessage:Me,increaseTimer:yi,isDeprecatedParameter:cn,isLoading:Ao,isTimerRunning:Ci,isUpdatableParameter:ln,isValidParameter:an,isVisible:ws,mixin:gi,off:Bi,on:Pi,once:Ei,resumeTimer:pn,showLoading:re,stopTimer:fn,toggleTimer:vi});class Ti{constructor(t,n){this.callback=t,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(t){const n=this.running;return n&&this.stop(),this.remaining+=t,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const mn=["swal-title","swal-html","swal-footer"],$i=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return Fi(n),Object.assign(Ii(n),Li(n),Mi(n),Oi(n),Vi(n),Di(n),Hi(n,mn))},Ii=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(o=>{G(o,["name","value"]);const s=o.getAttribute("name"),r=o.getAttribute("value");!s||!r||(typeof se[s]=="boolean"?t[s]=r!=="false":typeof se[s]=="object"?t[s]=JSON.parse(r):t[s]=r)}),t},Li=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(o=>{const s=o.getAttribute("name"),r=o.getAttribute("value");!s||!r||(t[s]=new Function(`return ${r}`)())}),t},Mi=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(o=>{G(o,["type","color","aria-label"]);const s=o.getAttribute("type");!s||!["confirm","cancel","deny"].includes(s)||(t[`${s}ButtonText`]=o.innerHTML,t[`show${Ze(s)}Button`]=!0,o.hasAttribute("color")&&(t[`${s}ButtonColor`]=o.getAttribute("color")),o.hasAttribute("aria-label")&&(t[`${s}ButtonAriaLabel`]=o.getAttribute("aria-label")))}),t},Oi=e=>{const t={},n=e.querySelector("swal-image");return n&&(G(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},Vi=e=>{const t={},n=e.querySelector("swal-icon");return n&&(G(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Di=e=>{const t={},n=e.querySelector("swal-input");n&&(G(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const o=Array.from(e.querySelectorAll("swal-input-option"));return o.length&&(t.inputOptions={},o.forEach(s=>{G(s,["value"]);const r=s.getAttribute("value");if(!r)return;const c=s.innerHTML;t.inputOptions[r]=c})),t},Hi=(e,t)=>{const n={};for(const o in t){const s=t[o],r=e.querySelector(s);r&&(G(r,[]),n[s.replace(/^swal-/,"")]=r.innerHTML.trim())}return n},Fi=e=>{const t=mn.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(n=>{const o=n.tagName.toLowerCase();t.includes(o)||I(`Unrecognized element <${o}>`)})},G=(e,t)=>{Array.from(e.attributes).forEach(n=>{t.indexOf(n.name)===-1&&I([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},hn=10,ji=e=>{const t=L(),n=p();typeof e.willOpen=="function"&&e.willOpen(n),l.eventEmitter.emit("willOpen",n);const s=window.getComputedStyle(document.body).overflowY;Ri(t,n,e),setTimeout(()=>{zi(t,n)},hn),tt()&&(qi(t,e.scrollbarPadding,s),xs()),!Ve()&&!l.previousActiveElement&&(l.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(n)),l.eventEmitter.emit("didOpen",n),R(t,i["no-transition"])},Ie=e=>{const t=p();if(e.target!==t)return;const n=L();t.removeEventListener("animationend",Ie),t.removeEventListener("transitionend",Ie),n.style.overflowY="auto"},zi=(e,t)=>{Ft(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",Ie),t.addEventListener("transitionend",Ie)):e.style.overflowY="auto"},qi=(e,t,n)=>{ks(),t&&n!=="hidden"&&$s(n),setTimeout(()=>{e.scrollTop=0})},Ri=(e,t,n)=>{w(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),B(t,"grid"),setTimeout(()=>{w(t,n.showClass.popup),t.style.removeProperty("opacity")},hn)):B(t,"grid"),w([document.documentElement,document.body],i.shown),n.heightAuto&&n.backdrop&&!n.toast&&w([document.documentElement,document.body],i["height-auto"])};var St={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function _i(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=St.email),e.input==="url"&&(e.inputValidator=St.url))}function Ui(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(I('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Wi(e){_i(e),e.showLoaderOnConfirm&&!e.preConfirm&&I(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
https://sweetalert2.github.io/#ajax-request`),Ui(e),typeof e.title=="string"&&(e.title=e.title.split(`
|
|
`).join("<br />")),Vo(e)}let z;var Ae=new WeakMap;class C{constructor(){if(fo(this,Ae,void 0),typeof window>"u")return;z=this;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];const s=Object.freeze(this.constructor.argsToParams(n));this.params=s,this.isAwaitingPromise=!1,po(Ae,this,this._main(z.params))}_main(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(si(Object.assign({},n,t)),l.currentInstance){const r=ie.swalPromiseResolve.get(l.currentInstance),{isAwaitingPromise:c}=l.currentInstance;l.currentInstance._destroy(),c||r({isDismissed:!0}),tt()&&Ut()}l.currentInstance=z;const o=Ki(t,n);Wi(o),Object.freeze(o),l.timeout&&(l.timeout.stop(),delete l.timeout),clearTimeout(l.restoreFocusTimeout);const s=Zi(z);return zt(z,o),g.innerParams.set(z,o),Ni(z,s,o)}then(t){return gt(Ae,this).then(t)}finally(t){return gt(Ae,this).finally(t)}}const Ni=(e,t,n)=>new Promise((o,s)=>{const r=c=>{e.close({isDismissed:!0,dismiss:c})};ie.swalPromiseResolve.set(e,o),ie.swalPromiseReject.set(e,s),t.confirmButton.onclick=()=>{Ks(e)},t.denyButton.onclick=()=>{Zs(e)},t.cancelButton.onclick=()=>{Ys(e,r)},t.closeButton.onclick=()=>{r(ce.close)},li(n,t,r),ms(l,n,r),Fs(e,n),ji(n),Yi(l,n,r),Xi(t,n),setTimeout(()=>{t.container.scrollTop=0})}),Ki=(e,t)=>{const n=$i(e),o=Object.assign({},se,t,n,e);return o.showClass=Object.assign({},se.showClass,o.showClass),o.hideClass=Object.assign({},se.hideClass,o.hideClass),o.animation===!1&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},Zi=e=>{const t={popup:p(),container:L(),actions:me(),confirmButton:q(),denyButton:ee(),cancelButton:ae(),loader:le(),closeButton:Qe(),validationMessage:Me(),progressSteps:Ge()};return g.domCache.set(e,t),t},Yi=(e,t,n)=>{const o=Oe();T(o),t.timer&&(e.timeout=new Ti(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(B(o),V(o,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ot(t.timer)})))},Xi=(e,t)=>{if(!t.toast){if(!Le(t.allowEnterKey)){Lt("allowEnterKey"),Qi();return}Ji(e)||Gi(e,t)||We(-1,1)}},Ji=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const n of t)if(n instanceof HTMLElement&&$(n))return n.focus(),!0;return!1},Gi=(e,t)=>t.focusDeny&&$(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&$(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&$(e.confirmButton)?(e.confirmButton.focus(),!0):!1,Qi=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const n=document.createElement("audio");n.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",n.loop=!0,document.body.appendChild(n),setTimeout(()=>{n.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}C.prototype.disableButtons=tn;C.prototype.enableButtons=en;C.prototype.getInput=Jt;C.prototype.disableInput=on;C.prototype.enableInput=nn;C.prototype.hideLoading=Te;C.prototype.disableLoading=Te;C.prototype.showValidationMessage=sn;C.prototype.resetValidationMessage=rn;C.prototype.close=N;C.prototype.closePopup=N;C.prototype.closeModal=N;C.prototype.closeToast=N;C.prototype.rejectPromise=Kt;C.prototype.update=un;C.prototype._destroy=dn;Object.assign(C,Si);Object.keys(ai).forEach(e=>{C[e]=function(){return z&&z[e]?z[e](...arguments):null}});C.DismissReason=ce;C.version="11.14.5";const Ke=C;Ke.default=Ke;typeof document<"u"&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch{n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:hsl(0,0%,33%);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid hsl(0,0%,85%);border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:hsl(0,0%,94%);color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:rgb(249.95234375,205.965625,167.74765625);color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:rgb(156.7033492823,224.2822966507,246.2966507177);color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:rgb(200.8064516129,217.9677419355,225.1935483871);color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}');function er(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?b(Pe,null,[b("span",{class:"v-autocomplete__unmask"},[e.substr(0,t)]),b("span",{class:"v-autocomplete__mask"},[e.substr(t,n)]),b("span",{class:"v-autocomplete__unmask"},[e.substr(t+n)])]):e}const tr=Un({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...Hn({filterKeys:["title"]}),...Fn(),...Wn(Nn({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Kn({transition:!1})},"VAutocomplete"),sr=Zn()({name:"VAutocomplete",props:tr(),emits:{"update:focused":e=>!0,"update:search":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:o}=Yn(),s=xe(),r=de(!1),c=de(!0),u=de(!1),h=xe(),F=xe(),K=Re(e,"menu"),A=j({get:()=>K.value,set:a=>{var d;K.value&&!a&&((d=h.value)!=null&&d.ΨopenChildren.size)||(K.value=a)}}),k=de(-1),gn=j(()=>{var a;return(a=s.value)==null?void 0:a.color}),lt=j(()=>A.value?e.closeText:e.openText),{items:ct,transformIn:bn,transformOut:vn}=Xn(e),{textColorClasses:yn,textColorStyles:Cn}=Jn(gn),P=Re(e,"search",""),m=Re(e,"modelValue",[],a=>bn(a===null?[null]:uo(a)),a=>{const d=vn(a);return e.multiple?d:d[0]??null}),xn=j(()=>typeof e.counterValue=="function"?e.counterValue(m.value):typeof e.counterValue=="number"?e.counterValue:m.value.length),te=Gn(),{filteredItems:He,getMatches:kn}=jn(e,ct,()=>c.value?"":P.value),_=j(()=>e.hideSelected?He.value.filter(a=>!m.value.some(d=>d.value===a.value)):He.value),ve=j(()=>!!(e.chips||n.chip)),ue=j(()=>ve.value||!!n.selection),An=j(()=>m.value.map(a=>a.props.value)),Fe=j(()=>{var d;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&P.value===((d=_.value[0])==null?void 0:d.title))&&_.value.length>0&&!c.value&&!u.value}),je=j(()=>e.hideNoData&&!_.value.length||e.readonly||(te==null?void 0:te.isReadonly.value)),ze=xe(),Pn=zn(ze,s);function En(a){e.openOnClear&&(A.value=!0),P.value=""}function Bn(){je.value||(A.value=!0)}function Sn(a){je.value||(r.value&&(a.preventDefault(),a.stopPropagation()),A.value=!A.value)}function Tn(a){var d;lo(a)&&((d=s.value)==null||d.focus())}function $n(a){var f,v,M;if(e.readonly||te!=null&&te.isReadonly.value)return;const d=s.value.selectionStart,x=m.value.length;if((k.value>-1||["Enter","ArrowDown","ArrowUp"].includes(a.key))&&a.preventDefault(),["Enter","ArrowDown"].includes(a.key)&&(A.value=!0),["Escape"].includes(a.key)&&(A.value=!1),Fe.value&&["Enter","Tab"].includes(a.key)&&!m.value.some(E=>{let{value:S}=E;return S===_.value[0].value})&&Z(_.value[0]),a.key==="ArrowDown"&&Fe.value&&((f=ze.value)==null||f.focus("next")),["Backspace","Delete"].includes(a.key)){if(!e.multiple&&ue.value&&m.value.length>0&&!P.value)return Z(m.value[0],!1);if(~k.value){const E=k.value;Z(m.value[k.value],!1),k.value=E>=x-1?x-2:E}else a.key==="Backspace"&&!P.value&&(k.value=x-1)}if(e.multiple){if(a.key==="ArrowLeft"){if(k.value<0&&d>0)return;const E=k.value>-1?k.value-1:x-1;m.value[E]?k.value=E:(k.value=-1,s.value.setSelectionRange((v=P.value)==null?void 0:v.length,(M=P.value)==null?void 0:M.length))}if(a.key==="ArrowRight"){if(k.value<0)return;const E=k.value+1;m.value[E]?k.value=E:(k.value=-1,s.value.setSelectionRange(0,0))}}}function In(a){if(mt(s.value,":autofill")||mt(s.value,":-webkit-autofill")){const d=ct.value.find(x=>x.title===a.target.value);d&&Z(d)}}function Ln(){var a;e.eager&&((a=F.value)==null||a.calculateVisibleItems())}function Mn(){var a;r.value&&(c.value=!0,(a=s.value)==null||a.focus())}function On(a){r.value=!0,setTimeout(()=>{u.value=!0})}function Vn(a){u.value=!1}function Dn(a){(a==null||a===""&&!e.multiple&&!ue.value)&&(m.value=[])}const qe=de(!1);function Z(a){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!a||a.props.disabled))if(e.multiple){const x=m.value.findIndex(v=>e.valueComparator(v.value,a.value)),f=d??!~x;if(~x){const v=f?[...m.value,a]:[...m.value];v.splice(x,1),m.value=v}else f&&(m.value=[...m.value,a]);e.clearOnSelect&&(P.value="")}else{const x=d!==!1;m.value=x?[a]:[],P.value=x&&!ue.value?a.title:"",ht(()=>{A.value=!1,c.value=!0})}}return ke(r,(a,d)=>{var x;a!==d&&(a?(qe.value=!0,P.value=e.multiple||ue.value?"":String(((x=m.value.at(-1))==null?void 0:x.props.title)??""),c.value=!0,ht(()=>qe.value=!1)):(!e.multiple&&P.value==null&&(m.value=[]),A.value=!1,m.value.some(f=>{let{title:v}=f;return v===P.value})||(P.value=""),k.value=-1))}),ke(P,a=>{!r.value||qe.value||(a&&(A.value=!0),c.value=!a)}),ke(A,()=>{if(!e.hideSelected&&A.value&&m.value.length){const a=_.value.findIndex(d=>m.value.some(x=>d.value===x.value));co&&window.requestAnimationFrame(()=>{var d;a>=0&&((d=F.value)==null||d.scrollToIndex(a))})}}),ke(()=>e.items,(a,d)=>{A.value||r.value&&!d.length&&a.length&&(A.value=!0)}),Qn(()=>{const a=!!(!e.hideNoData||_.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),d=m.value.length>0,x=wt.filterProps(e);return b(wt,ne({ref:s},x,{modelValue:P.value,"onUpdate:modelValue":[f=>P.value=f,Dn],focused:r.value,"onUpdate:focused":f=>r.value=f,validationValue:m.externalValue,counterValue:xn.value,dirty:d,onChange:In,class:["v-autocomplete",`v-autocomplete--${e.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":A.value,"v-autocomplete--chips":!!e.chips,"v-autocomplete--selection-slot":!!ue.value,"v-autocomplete--selecting-index":k.value>-1},e.class],style:e.style,readonly:e.readonly,placeholder:d?void 0:e.placeholder,"onClick:clear":En,"onMousedown:control":Bn,onKeydown:$n}),{...n,default:()=>b(Pe,null,[b(eo,ne({ref:h,modelValue:A.value,"onUpdate:modelValue":f=>A.value=f,activator:"parent",contentClass:"v-autocomplete__content",disabled:je.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:Ln,onAfterLeave:Mn},e.menuProps),{default:()=>[a&&b(to,ne({ref:ze,selected:An.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:f=>f.preventDefault(),onKeydown:Tn,onFocusin:On,onFocusout:Vn,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},Pn,e.listProps),{default:()=>{var f,v,M;return[(f=n["prepend-item"])==null?void 0:f.call(n),!_.value.length&&!e.hideNoData&&(((v=n["no-data"])==null?void 0:v.call(n))??b(ft,{title:o(e.noDataText)},null)),b(qn,{ref:F,renderless:!0,items:_.value},{default:E=>{var dt;let{item:S,index:Y,itemRef:O}=E;const ut=ne(S.props,{ref:O,key:Y,active:Fe.value&&Y===0?!0:void 0,onClick:()=>Z(S,null)});return((dt=n.item)==null?void 0:dt.call(n,{item:S,index:Y,props:ut}))??b(ft,ne(ut,{role:"option"}),{prepend:ye=>{let{isSelected:Ce}=ye;return b(Pe,null,[e.multiple&&!e.hideSelected?b(Rn,{key:S.value,modelValue:Ce,ripple:!1,tabindex:"-1"},null):void 0,S.props.prependAvatar&&b(no,{image:S.props.prependAvatar},null),S.props.prependIcon&&b(pt,{icon:S.props.prependIcon},null)])},title:()=>{var ye,Ce;return c.value?S.title:er(S.title,(ye=kn(S))==null?void 0:ye.title,((Ce=P.value)==null?void 0:Ce.length)??0)}})}}),(M=n["append-item"])==null?void 0:M.call(n)]}})]}),m.value.map((f,v)=>{function M(O){O.stopPropagation(),O.preventDefault(),Z(f,!1)}const E={"onClick:close":M,onKeydown(O){O.key!=="Enter"&&O.key!==" "||(O.preventDefault(),O.stopPropagation(),M(O))},onMousedown(O){O.preventDefault(),O.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},S=ve.value?!!n.chip:!!n.selection,Y=S?oo(ve.value?n.chip({item:f,index:v,props:E}):n.selection({item:f,index:v})):void 0;if(!(S&&!Y))return b("div",{key:f.value,class:["v-autocomplete__selection",v===k.value&&["v-autocomplete__selection--selected",yn.value]],style:v===k.value?Cn.value:{}},[ve.value?n.chip?b(so,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:f.title}}},{default:()=>[Y]}):b(_n,ne({key:"chip",closable:e.closableChips,size:"small",text:f.title,disabled:f.props.disabled},E),null):Y??b("span",{class:"v-autocomplete__selection-text"},[f.title,e.multiple&&v<m.value.length-1&&b("span",{class:"v-autocomplete__selection-comma"},[io(",")])])])})]),"append-inner":function(){var E;for(var f=arguments.length,v=new Array(f),M=0;M<f;M++)v[M]=arguments[M];return b(Pe,null,[(E=n["append-inner"])==null?void 0:E.call(n,...v),e.menuIcon?b(pt,{class:"v-autocomplete__menu-icon",icon:e.menuIcon,onMousedown:Sn,onClick:ro,"aria-label":o(lt.value),title:o(lt.value),tabindex:"-1"},null):void 0])}})}),ao({isFocused:r,isPristine:c,menu:A,search:P,filteredItems:He,select:Z},s)}});export{Ke as S,sr as V};
|