/*! * sweetalert2 v7.15.1 * Released under the MIT License. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Sweetalert2=t()}(this,function(){"use strict";var e={title:"",titleText:"",text:"",html:"",footer:"",type:null,toast:!1,customClass:"",target:"body",backdrop:!0,animation:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:null,confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:null,cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageAlt:"",imageClass:null,timer:null,width:null,padding:null,background:null,input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,grow:!1,position:"center",progressSteps:[],currentProgressStep:null,progressStepsDistance:null,onBeforeOpen:null,onOpen:null,onClose:null,useRejections:!1,expectRejections:!1},t=["useRejections","expectRejections"],n=function(e){var t={};for(var n in e)t[e[n]]="swal2-"+e[n];return t},o=n(["container","shown","iosfix","popup","modal","no-backdrop","toast","toast-shown","fade","show","hide","noanimation","close","title","header","content","actions","confirm","cancel","footer","icon","icon-text","image","input","has-input","file","range","select","radio","checkbox","textarea","inputerror","validationerror","progresssteps","activeprogressstep","progresscircle","progressline","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"]),i=n(["success","warning","info","question","error"]),r="SweetAlert2:",a=function(e){console.warn(r+" "+e)},s=function(e){console.error(r+" "+e)},u=[],l=function(e){-1===u.indexOf(e)&&(u.push(e),a(e))},c=function(e){return"function"==typeof e?e():e},d={previousActiveElement:null,previousBodyPadding:null},p=function(e,t){return!!e.classList&&e.classList.contains(t)},f=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},m=function(e,t,n){e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(function(t){e.forEach?e.forEach(function(e){n?e.classList.add(t):e.classList.remove(t)}):n?e.classList.add(t):e.classList.remove(t)}))},g=function(e,t){m(e,t,!0)},v=function(e,t){m(e,t,!1)},h=function(e,t){for(var n=0;n(t=parseInt(t.getAttribute("tabindex")))?1:e\n
\n
    \n
    \n \n
    \n
    \n ?\n
    \n
    \n !\n
    \n
    \n i\n
    \n
    \n
    \n \n
    \n
    \n
    \n \n

    \n \n
    \n
    \n
    \n \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n \n').replace(/(^|\n)\s*/g,""),M=function(e){var t=B();if(t&&(t.parentNode.removeChild(t),v([document.documentElement,document.body],[o["no-backdrop"],o["has-input"],o["toast-shown"]])),!D()){var n=document.createElement("div");n.className=o.container,n.innerHTML=H,("string"==typeof e.target?document.querySelector(e.target):e.target).appendChild(n);var i=S(),r=P(),a=h(r,o.input),u=h(r,o.file),l=r.querySelector("."+o.range+" input"),c=r.querySelector("."+o.range+" output"),d=h(r,o.select),p=r.querySelector("."+o.checkbox+" input"),f=h(r,o.textarea);i.setAttribute("role",e.toast?"alert":"dialog"),i.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||i.setAttribute("aria-modal","true");var m=function(){ie.isVisible()&&ie.resetValidationError()};return a.oninput=m,u.onchange=m,d.onchange=m,p.onchange=m,f.oninput=m,l.oninput=function(){m(),c.value=l.value},l.onchange=function(){m(),l.nextSibling.value=l.value},i}s("SweetAlert2 requires document to initialize")},U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W=function(e,t){if(!e)return y(t);if("object"===(void 0===e?"undefined":U(e)))if(t.innerHTML="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0));else e&&(t.innerHTML=e);b(t)},z=function(){if(D())return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(t.hasOwnProperty(n)&&void 0!==e.style[n])return t[n];return!1}(),K={email:function(e){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.reject("Invalid email address")},url:function(e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/.test(e)?Promise.resolve():Promise.reject("Invalid URL")}};function Z(e){e.inputValidator||Object.keys(K).forEach(function(t){e.input===t&&(e.inputValidator=e.expectRejections?K[t]:ie.adaptInputValidator(K[t]))}),(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(a('Target parameter is not valid, defaulting to "body"'),e.target="body");var t=void 0,n=S(),r="string"==typeof e.target?document.querySelector(e.target):e.target;t=n&&r&&n.parentNode!==r.parentNode?M(e):n||M(e),e.width&&(t.style.width="number"==typeof e.width?e.width+"px":e.width),e.padding&&(t.style.padding="number"==typeof e.padding?e.padding+"px":e.padding),e.background&&(t.style.background=e.background);for(var u=window.getComputedStyle(t).getPropertyValue("background-color"),l=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),c=0;c")),"string"==typeof e.backdrop?B().style.background=e.backdrop:e.backdrop||g([document.documentElement,document.body],o["no-backdrop"]),e.html?W(e.html,f):e.text?(f.textContent=e.text,b(f)):y(f),e.position in o?g(d,o[e.position]):(a('The "position" parameter is not valid, defaulting to "center"'),g(d,o.center)),e.grow&&"string"==typeof e.grow){var N="grow-"+e.grow;N in o&&g(d,o[N])}"function"==typeof e.animation&&(e.animation=e.animation.call()),e.showCloseButton?(k.setAttribute("aria-label",e.closeButtonAriaLabel),b(k)):y(k),t.className=o.popup,e.toast?(g([document.documentElement,document.body],o["toast-shown"]),g(t,o.toast)):g(t,o.modal),e.customClass&&g(t,e.customClass);var D=T(),H=parseInt(null===e.currentProgressStep?ie.getQueueStep():e.currentProgressStep,10);e.progressSteps&&e.progressSteps.length?(b(D),w(D),H>=e.progressSteps.length&&a("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach(function(t,n){var i=document.createElement("li");if(g(i,o.progresscircle),i.innerHTML=t,n===H&&g(i,o.activeprogressstep),D.appendChild(i),n!==e.progressSteps.length-1){var r=document.createElement("li");g(r,o.progressline),e.progressStepsDistance&&(r.style.width=e.progressStepsDistance),D.appendChild(r)}})):y(D);for(var U=A(),z=0;zwindow.innerHeight&&(d.previousBodyPadding=document.body.style.paddingRight,document.body.style.paddingRight=function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}()+"px")},Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},F=Object.assign||function(e){for(var t=1;t