konnektive-engine 0.1.19

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.
@@ -0,0 +1 @@
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("jQuery"));else if("function"==typeof define&&define.amd)define(["jQuery"],e);else{var o="object"==typeof exports?e(require("jQuery")):e(t.jQuery);for(var a in o)("object"==typeof exports?exports:t)[a]=o[a]}}(this,(t=>(()=>{var e={244:(t,e,o)=>{"use strict";o(147).version,localStorage.getItem("session_id")},853:(t,e,o)=>{"use strict";o.d(e,{stickyGetCountryEnv:()=>s});var a=o(145),n=o.n(a);function s(t){var e,o=n()("*[name=".concat(t,"]"));return o?("input"==o.prop("tagName").toLowerCase()&&(e=o.val()),"select"==o.prop("tagName").toLowerCase()&&(e=o.val())):e="US",e}o(455),o(244)},455:function(t){t.exports=function(){"use strict";const t="SweetAlert2:",e=t=>t.charAt(0).toUpperCase()+t.slice(1),o=t=>Array.prototype.slice.call(t),a=e=>{console.warn("".concat(t," ").concat("object"==typeof e?e.join(" "):e))},n=e=>{console.error("".concat(t," ").concat(e))},s=[],i=(t,e)=>{var o;o='"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'),s.includes(o)||(s.push(o),a(o))},r=t=>"function"==typeof t?t():t,l=t=>t&&"function"==typeof t.toPromise,c=t=>l(t)?t.toPromise():Promise.resolve(t),d=t=>t&&Promise.resolve(t)===t,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},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},p=["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"],m={},w=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],g=t=>Object.prototype.hasOwnProperty.call(u,t),h=t=>-1!==p.indexOf(t),f=t=>m[t],b=t=>{g(t)||a('Unknown parameter "'.concat(t,'"'))},y=t=>{w.includes(t)&&a('The parameter "'.concat(t,'" is incompatible with toasts'))},v=t=>{f(t)&&i(t,f(t))},k=t=>{const e={};for(const o in t)e[t[o]]="swal2-"+t[o];return e},x=k(["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"]),C=k(["success","warning","info","question","error"]),A=()=>document.body.querySelector(".".concat(x.container)),P=t=>{const e=A();return e?e.querySelector(t):null},B=t=>P(".".concat(t)),S=()=>B(x.popup),E=()=>B(x.icon),T=()=>B(x.title),L=()=>B(x["html-container"]),j=()=>B(x.image),O=()=>B(x["progress-steps"]),I=()=>B(x["validation-message"]),z=()=>P(".".concat(x.actions," .").concat(x.confirm)),q=()=>P(".".concat(x.actions," .").concat(x.deny)),M=()=>P(".".concat(x.loader)),D=()=>P(".".concat(x.actions," .").concat(x.cancel)),Z=()=>B(x.actions),H=()=>B(x.footer),V=()=>B(x["timer-progress-bar"]),N=()=>B(x.close),R=()=>{const t=o(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((t,e)=>{const o=parseInt(t.getAttribute("tabindex")),a=parseInt(e.getAttribute("tabindex"));return o>a?1:o<a?-1:0})),e=o(S().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter((t=>"-1"!==t.getAttribute("tabindex")));return(t=>{const e=[];for(let o=0;o<t.length;o++)-1===e.indexOf(t[o])&&e.push(t[o]);return e})(t.concat(e)).filter((t=>it(t)))},U=()=>W(document.body,x.shown)&&!W(document.body,x["toast-shown"])&&!W(document.body,x["no-backdrop"]),F=()=>S()&&W(S(),x.toast),Y={previousBodyPadding:null},_=(t,e)=>{if(t.textContent="",e){const a=(new DOMParser).parseFromString(e,"text/html");o(a.querySelector("head").childNodes).forEach((e=>{t.appendChild(e)})),o(a.querySelector("body").childNodes).forEach((e=>{t.appendChild(e)}))}},W=(t,e)=>{if(!e)return!1;const o=e.split(/\s+/);for(let e=0;e<o.length;e++)if(!t.classList.contains(o[e]))return!1;return!0},X=(t,e,n)=>{if(((t,e)=>{o(t.classList).forEach((o=>{Object.values(x).includes(o)||Object.values(C).includes(o)||Object.values(e.showClass).includes(o)||t.classList.remove(o)}))})(t,e),e.customClass&&e.customClass[n]){if("string"!=typeof e.customClass[n]&&!e.customClass[n].forEach)return a("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof e.customClass[n],'"'));Q(t,e.customClass[n])}},$=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(".".concat(x.popup," > .").concat(x[e]));case"checkbox":return t.querySelector(".".concat(x.popup," > .").concat(x.checkbox," input"));case"radio":return t.querySelector(".".concat(x.popup," > .").concat(x.radio," input:checked"))||t.querySelector(".".concat(x.popup," > .").concat(x.radio," input:first-child"));case"range":return t.querySelector(".".concat(x.popup," > .").concat(x.range," input"));default:return t.querySelector(".".concat(x.popup," > .").concat(x.input))}},K=t=>{if(t.focus(),"file"!==t.type){const e=t.value;t.value="",t.value=e}},G=(t,e,o)=>{t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach((e=>{Array.isArray(t)?t.forEach((t=>{o?t.classList.add(e):t.classList.remove(e)})):o?t.classList.add(e):t.classList.remove(e)})))},Q=(t,e)=>{G(t,e,!0)},J=(t,e)=>{G(t,e,!1)},tt=(t,e)=>{const a=o(t.childNodes);for(let t=0;t<a.length;t++)if(W(a[t],e))return a[t]},et=(t,e,o)=>{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?t.style[e]="number"==typeof o?"".concat(o,"px"):o:t.style.removeProperty(e)},ot=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";t.style.display=e},at=t=>{t.style.display="none"},nt=(t,e,o,a)=>{const n=t.querySelector(e);n&&(n.style[o]=a)},st=(t,e,o)=>{e?ot(t,o):at(t)},it=t=>!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),rt=t=>!!(t.scrollHeight>t.clientHeight),lt=t=>{const e=window.getComputedStyle(t),o=parseFloat(e.getPropertyValue("animation-duration")||"0"),a=parseFloat(e.getPropertyValue("transition-duration")||"0");return o>0||a>0},ct=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=V();it(o)&&(e&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(t/1e3,"s linear"),o.style.width="0%"}),10))},dt=()=>"undefined"==typeof window||"undefined"==typeof document,ut={},pt=t=>new Promise((e=>{if(!t)return e();const o=window.scrollX,a=window.scrollY;ut.restoreFocusTimeout=setTimeout((()=>{ut.previousActiveElement&&ut.previousActiveElement.focus?(ut.previousActiveElement.focus(),ut.previousActiveElement=null):document.body&&document.body.focus(),e()}),100),window.scrollTo(o,a)})),mt='\n <div aria-labelledby="'.concat(x.title,'" aria-describedby="').concat(x["html-container"],'" class="').concat(x.popup,'" tabindex="-1">\n <button type="button" class="').concat(x.close,'"></button>\n <ul class="').concat(x["progress-steps"],'"></ul>\n <div class="').concat(x.icon,'"></div>\n <img class="').concat(x.image,'" />\n <h2 class="').concat(x.title,'" id="').concat(x.title,'"></h2>\n <div class="').concat(x["html-container"],'" id="').concat(x["html-container"],'"></div>\n <input class="').concat(x.input,'" />\n <input type="file" class="').concat(x.file,'" />\n <div class="').concat(x.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(x.select,'"></select>\n <div class="').concat(x.radio,'"></div>\n <label for="').concat(x.checkbox,'" class="').concat(x.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(x.label,'"></span>\n </label>\n <textarea class="').concat(x.textarea,'"></textarea>\n <div class="').concat(x["validation-message"],'" id="').concat(x["validation-message"],'"></div>\n <div class="').concat(x.actions,'">\n <div class="').concat(x.loader,'"></div>\n <button type="button" class="').concat(x.confirm,'"></button>\n <button type="button" class="').concat(x.deny,'"></button>\n <button type="button" class="').concat(x.cancel,'"></button>\n </div>\n <div class="').concat(x.footer,'"></div>\n <div class="').concat(x["timer-progress-bar-container"],'">\n <div class="').concat(x["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),wt=()=>{ut.currentInstance.resetValidationMessage()},gt=t=>{const e=(()=>{const t=A();return!!t&&(t.remove(),J([document.documentElement,document.body],[x["no-backdrop"],x["toast-shown"],x["has-column"]]),!0)})();if(dt())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=x.container,e&&Q(o,x["no-transition"]),_(o,mt);const a="string"==typeof(s=t.target)?document.querySelector(s):s;var s;a.appendChild(o),(t=>{const e=S();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")})(t),(t=>{"rtl"===window.getComputedStyle(t).direction&&Q(A(),x.rtl)})(a),(()=>{const t=S(),e=tt(t,x.input),o=tt(t,x.file),a=t.querySelector(".".concat(x.range," input")),n=t.querySelector(".".concat(x.range," output")),s=tt(t,x.select),i=t.querySelector(".".concat(x.checkbox," input")),r=tt(t,x.textarea);e.oninput=wt,o.onchange=wt,s.onchange=wt,i.onchange=wt,r.oninput=wt,a.oninput=()=>{wt(),n.value=a.value},a.onchange=()=>{wt(),a.nextSibling.value=a.value}})()},ht=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):"object"==typeof t?ft(t,e):t&&_(e,t)},ft=(t,e)=>{t.jquery?bt(e,t):_(e,t.toString())},bt=(t,e)=>{if(t.textContent="",0 in e)for(let o=0;o in e;o++)t.appendChild(e[o].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},yt=(()=>{if(dt())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&void 0!==t.style[o])return e[o];return!1})(),vt=(t,e)=>{const o=Z(),a=M();e.showConfirmButton||e.showDenyButton||e.showCancelButton?ot(o):at(o),X(o,e,"actions"),function(t,e,o){const a=z(),n=q(),s=D();kt(a,"confirm",o),kt(n,"deny",o),kt(s,"cancel",o),function(t,e,o,a){if(!a.buttonsStyling)return J([t,e,o],x.styled);Q([t,e,o],x.styled),a.confirmButtonColor&&(t.style.backgroundColor=a.confirmButtonColor,Q(t,x["default-outline"])),a.denyButtonColor&&(e.style.backgroundColor=a.denyButtonColor,Q(e,x["default-outline"])),a.cancelButtonColor&&(o.style.backgroundColor=a.cancelButtonColor,Q(o,x["default-outline"]))}(a,n,s,o),o.reverseButtons&&(o.toast?(t.insertBefore(s,a),t.insertBefore(n,a)):(t.insertBefore(s,e),t.insertBefore(n,e),t.insertBefore(a,e)))}(o,a,e),_(a,e.loaderHtml),X(a,e,"loader")};function kt(t,o,a){st(t,a["show".concat(e(o),"Button")],"inline-block"),_(t,a["".concat(o,"ButtonText")]),t.setAttribute("aria-label",a["".concat(o,"ButtonAriaLabel")]),t.className=x[o],X(t,a,"".concat(o,"Button")),Q(t,a["".concat(o,"ButtonClass")])}const xt=(t,e)=>{const o=A();o&&(function(t,e){"string"==typeof e?t.style.background=e:e||Q([document.documentElement,document.body],x["no-backdrop"])}(o,e.backdrop),function(t,e){e in x?Q(t,x[e]):(a('The "position" parameter is not valid, defaulting to "center"'),Q(t,x.center))}(o,e.position),function(t,e){if(e&&"string"==typeof e){const o="grow-".concat(e);o in x&&Q(t,x[o])}}(o,e.grow),X(o,e,"container"))};var Ct={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const At=["input","file","range","select","radio","checkbox","textarea"],Pt=t=>{if(!jt[t.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));const e=Lt(t.input),o=jt[t.input](e,t);ot(o),setTimeout((()=>{K(o)}))},Bt=(t,e)=>{const o=$(S(),t);if(o){(t=>{for(let e=0;e<t.attributes.length;e++){const o=t.attributes[e].name;["type","value","style"].includes(o)||t.removeAttribute(o)}})(o);for(const t in e)o.setAttribute(t,e[t])}},St=t=>{const e=Lt(t.input);t.customClass&&Q(e,t.customClass.input)},Et=(t,e)=>{t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)},Tt=(t,e,o)=>{if(o.inputLabel){t.id=x.input;const a=document.createElement("label"),n=x["input-label"];a.setAttribute("for",t.id),a.className=n,Q(a,o.customClass.inputLabel),a.innerText=o.inputLabel,e.insertAdjacentElement("beforebegin",a)}},Lt=t=>{const e=x[t]?x[t]:x.input;return tt(S(),e)},jt={};jt.text=jt.email=jt.password=jt.number=jt.tel=jt.url=(t,e)=>("string"==typeof e.inputValue||"number"==typeof e.inputValue?t.value=e.inputValue:d(e.inputValue)||a('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof e.inputValue,'"')),Tt(t,t,e),Et(t,e),t.type=e.input,t),jt.file=(t,e)=>(Tt(t,t,e),Et(t,e),t),jt.range=(t,e)=>{const o=t.querySelector("input"),a=t.querySelector("output");return o.value=e.inputValue,o.type=e.input,a.value=e.inputValue,Tt(o,t,e),t},jt.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const o=document.createElement("option");_(o,e.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,t.appendChild(o)}return Tt(t,t,e),t},jt.radio=t=>(t.textContent="",t),jt.checkbox=(t,e)=>{const o=$(S(),"checkbox");o.value="1",o.id=x.checkbox,o.checked=Boolean(e.inputValue);const a=t.querySelector("span");return _(a,e.inputPlaceholder),t},jt.textarea=(t,e)=>{t.value=e.inputValue,Et(t,e),Tt(t,t,e);return setTimeout((()=>{if("MutationObserver"in window){const e=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=t.offsetWidth+(a=t,parseInt(window.getComputedStyle(a).marginLeft)+parseInt(window.getComputedStyle(a).marginRight));var a;S().style.width=o>e?"".concat(o,"px"):null})).observe(t,{attributes:!0,attributeFilter:["style"]})}})),t};const Ot=(t,e)=>{const o=L();X(o,e,"htmlContainer"),e.html?(ht(e.html,o),ot(o,"block")):e.text?(o.textContent=e.text,ot(o,"block")):at(o),((t,e)=>{const o=S(),a=Ct.innerParams.get(t),n=!a||e.input!==a.input;At.forEach((t=>{const a=x[t],s=tt(o,a);Bt(t,e.inputAttributes),s.className=a,n&&at(s)})),e.input&&(n&&Pt(e),St(e))})(t,e)},It=(t,e)=>{for(const o in C)e.icon!==o&&J(t,C[o]);Q(t,C[e.icon]),Mt(t,e),zt(),X(t,e,"icon")},zt=()=>{const t=S(),e=window.getComputedStyle(t).getPropertyValue("background-color"),o=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let t=0;t<o.length;t++)o[t].style.backgroundColor=e},qt=(t,e)=>{t.textContent="",e.iconHtml?_(t,Dt(e.iconHtml)):"success"===e.icon?_(t,'\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n'):"error"===e.icon?_(t,'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n'):_(t,Dt({question:"?",warning:"!",info:"i"}[e.icon]))},Mt=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])nt(t,o,"backgroundColor",e.iconColor);nt(t,".swal2-success-ring","borderColor",e.iconColor)}},Dt=t=>'<div class="'.concat(x["icon-content"],'">').concat(t,"</div>"),Zt=(t,e)=>{const o=O();if(!e.progressSteps||0===e.progressSteps.length)return at(o);ot(o),o.textContent="",e.currentProgressStep>=e.progressSteps.length&&a("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach(((t,a)=>{const n=(t=>{const e=document.createElement("li");return Q(e,x["progress-step"]),_(e,t),e})(t);if(o.appendChild(n),a===e.currentProgressStep&&Q(n,x["active-progress-step"]),a!==e.progressSteps.length-1){const t=(t=>{const e=document.createElement("li");return Q(e,x["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e})(e);o.appendChild(t)}}))},Ht=(t,e)=>{t.className="".concat(x.popup," ").concat(it(t)?e.showClass.popup:""),e.toast?(Q([document.documentElement,document.body],x["toast-shown"]),Q(t,x.toast)):Q(t,x.modal),X(t,e,"popup"),"string"==typeof e.customClass&&Q(t,e.customClass),e.icon&&Q(t,x["icon-".concat(e.icon)])},Vt=(t,e)=>{((t,e)=>{const o=A(),a=S();e.toast?(et(o,"width",e.width),a.style.width="100%",a.insertBefore(M(),E())):et(a,"width",e.width),et(a,"padding",e.padding),e.color&&(a.style.color=e.color),e.background&&(a.style.background=e.background),at(I()),Ht(a,e)})(0,e),xt(0,e),Zt(0,e),((t,e)=>{const o=Ct.innerParams.get(t),a=E();o&&e.icon===o.icon?(qt(a,e),It(a,e)):e.icon||e.iconHtml?e.icon&&-1===Object.keys(C).indexOf(e.icon)?(n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.icon,'"')),at(a)):(ot(a),qt(a,e),It(a,e),Q(a,e.showClass.icon)):at(a)})(t,e),((t,e)=>{const o=j();if(!e.imageUrl)return at(o);ot(o,""),o.setAttribute("src",e.imageUrl),o.setAttribute("alt",e.imageAlt),et(o,"width",e.imageWidth),et(o,"height",e.imageHeight),o.className=x.image,X(o,e,"image")})(0,e),((t,e)=>{const o=T();st(o,e.title||e.titleText,"block"),e.title&&ht(e.title,o),e.titleText&&(o.innerText=e.titleText),X(o,e,"title")})(0,e),((t,e)=>{const o=N();_(o,e.closeButtonHtml),X(o,e,"closeButton"),st(o,e.showCloseButton),o.setAttribute("aria-label",e.closeButtonAriaLabel)})(0,e),Ot(t,e),vt(0,e),((t,e)=>{const o=H();st(o,e.footer),e.footer&&ht(e.footer,o),X(o,e,"footer")})(0,e),"function"==typeof e.didRender&&e.didRender(S())},Nt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Rt=()=>{o(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")}))},Ut=["swal-title","swal-html","swal-footer"],Ft=t=>{const e={};return o(t.querySelectorAll("swal-param")).forEach((t=>{Gt(t,["name","value"]);const o=t.getAttribute("name"),a=t.getAttribute("value");"boolean"==typeof u[o]&&"false"===a&&(e[o]=!1),"object"==typeof u[o]&&(e[o]=JSON.parse(a))})),e},Yt=t=>{const a={};return o(t.querySelectorAll("swal-button")).forEach((t=>{Gt(t,["type","color","aria-label"]);const o=t.getAttribute("type");a["".concat(o,"ButtonText")]=t.innerHTML,a["show".concat(e(o),"Button")]=!0,t.hasAttribute("color")&&(a["".concat(o,"ButtonColor")]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(a["".concat(o,"ButtonAriaLabel")]=t.getAttribute("aria-label"))})),a},_t=t=>{const e={},o=t.querySelector("swal-image");return o&&(Gt(o,["src","width","height","alt"]),o.hasAttribute("src")&&(e.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(e.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(e.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(e.imageAlt=o.getAttribute("alt"))),e},Wt=t=>{const e={},o=t.querySelector("swal-icon");return o&&(Gt(o,["type","color"]),o.hasAttribute("type")&&(e.icon=o.getAttribute("type")),o.hasAttribute("color")&&(e.iconColor=o.getAttribute("color")),e.iconHtml=o.innerHTML),e},Xt=t=>{const e={},a=t.querySelector("swal-input");a&&(Gt(a,["type","label","placeholder","value"]),e.input=a.getAttribute("type")||"text",a.hasAttribute("label")&&(e.inputLabel=a.getAttribute("label")),a.hasAttribute("placeholder")&&(e.inputPlaceholder=a.getAttribute("placeholder")),a.hasAttribute("value")&&(e.inputValue=a.getAttribute("value")));const n=t.querySelectorAll("swal-input-option");return n.length&&(e.inputOptions={},o(n).forEach((t=>{Gt(t,["value"]);const o=t.getAttribute("value"),a=t.innerHTML;e.inputOptions[o]=a}))),e},$t=(t,e)=>{const o={};for(const a in e){const n=e[a],s=t.querySelector(n);s&&(Gt(s,[]),o[n.replace(/^swal-/,"")]=s.innerHTML.trim())}return o},Kt=t=>{const e=Ut.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);o(t.children).forEach((t=>{const o=t.tagName.toLowerCase();-1===e.indexOf(o)&&a("Unrecognized element <".concat(o,">"))}))},Gt=(t,e)=>{o(t.attributes).forEach((o=>{-1===e.indexOf(o.name)&&a(['Unrecognized attribute "'.concat(o.name,'" on <').concat(t.tagName.toLowerCase(),">."),"".concat(e.length?"Allowed attributes are: ".concat(e.join(", ")):"To set the value, use HTML within the element.")])}))};var Qt={email:(t,e)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function Jt(t){(function(t){t.inputValidator||Object.keys(Qt).forEach((e=>{t.input===e&&(t.inputValidator=Qt[e])}))})(t),t.showLoaderOnConfirm&&!t.preConfirm&&a("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(t){(!t.target||"string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(a('Target parameter is not valid, defaulting to "body"'),t.target="body")}(t),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),gt(t)}class te{constructor(t,e){this.callback=t,this.remaining=e,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.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(t){const e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ee=()=>{null===Y.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(Y.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Y.previousBodyPadding+(()=>{const t=document.createElement("div");t.className=x["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e})(),"px"))},oe=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),o=!!t.match(/WebKit/i);if(e&&o&&!t.match(/CriOS/i)){const t=44;S().scrollHeight>window.innerHeight-t&&(A().style.paddingBottom="".concat(t,"px"))}},ae=()=>{const t=A();let e;t.ontouchstart=t=>{e=ne(t)},t.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}},ne=t=>{const e=t.target,o=A();return!(se(t)||ie(t)||e!==o&&(rt(o)||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||rt(L())&&L().contains(e)))},se=t=>t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType,ie=t=>t.touches&&t.touches.length>1,re=t=>{const e=A(),a=S();"function"==typeof t.willOpen&&t.willOpen(a);const n=window.getComputedStyle(document.body).overflowY;ue(e,a,t),setTimeout((()=>{ce(e,a)}),10),U()&&(de(e,t.scrollbarPadding,n),o(document.body.children).forEach((t=>{t===A()||t.contains(A())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}))),F()||ut.previousActiveElement||(ut.previousActiveElement=document.activeElement),"function"==typeof t.didOpen&&setTimeout((()=>t.didOpen(a))),J(e,x["no-transition"])},le=t=>{const e=S();if(t.target!==e)return;const o=A();e.removeEventListener(yt,le),o.style.overflowY="auto"},ce=(t,e)=>{yt&&lt(e)?(t.style.overflowY="hidden",e.addEventListener(yt,le)):t.style.overflowY="auto"},de=(t,e,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!W(document.body,x.iosfix)){const t=document.body.scrollTop;document.body.style.top="".concat(-1*t,"px"),Q(document.body,x.iosfix),ae(),oe()}})(),e&&"hidden"!==o&&ee(),setTimeout((()=>{t.scrollTop=0}))},ue=(t,e,o)=>{Q(t,o.showClass.backdrop),e.style.setProperty("opacity","0","important"),ot(e,"grid"),setTimeout((()=>{Q(e,o.showClass.popup),e.style.removeProperty("opacity")}),10),Q([document.documentElement,document.body],x.shown),o.heightAuto&&o.backdrop&&!o.toast&&Q([document.documentElement,document.body],x["height-auto"])},pe=t=>{let e=S();e||new Po,e=S();const o=M();F()?at(E()):me(e,t),ot(o),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},me=(t,e)=>{const o=Z(),a=M();!e&&it(z())&&(e=z()),ot(o),e&&(at(e),a.setAttribute("data-button-to-replace",e.className)),a.parentNode.insertBefore(a,e),Q([t,o],x.loading)},we=t=>t.checked?1:0,ge=t=>t.checked?t.value:null,he=t=>t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null,fe=(t,e)=>{const o=S(),a=t=>ye[e.input](o,ve(t),e);l(e.inputOptions)||d(e.inputOptions)?(pe(z()),c(e.inputOptions).then((e=>{t.hideLoading(),a(e)}))):"object"==typeof e.inputOptions?a(e.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof e.inputOptions))},be=(t,e)=>{const o=t.getInput();at(o),c(e.inputValue).then((a=>{o.value="number"===e.input?parseFloat(a)||0:"".concat(a),ot(o),o.focus(),t.hideLoading()})).catch((e=>{n("Error in inputValue promise: ".concat(e)),o.value="",ot(o),o.focus(),t.hideLoading()}))},ye={select:(t,e,o)=>{const a=tt(t,x.select),n=(t,e,a)=>{const n=document.createElement("option");n.value=a,_(n,e),n.selected=ke(a,o.inputValue),t.appendChild(n)};e.forEach((t=>{const e=t[0],o=t[1];if(Array.isArray(o)){const t=document.createElement("optgroup");t.label=e,t.disabled=!1,a.appendChild(t),o.forEach((e=>n(t,e[1],e[0])))}else n(a,o,e)})),a.focus()},radio:(t,e,o)=>{const a=tt(t,x.radio);e.forEach((t=>{const e=t[0],n=t[1],s=document.createElement("input"),i=document.createElement("label");s.type="radio",s.name=x.radio,s.value=e,ke(e,o.inputValue)&&(s.checked=!0);const r=document.createElement("span");_(r,n),r.className=x.label,i.appendChild(s),i.appendChild(r),a.appendChild(i)}));const n=a.querySelectorAll("input");n.length&&n[0].focus()}},ve=t=>{const e=[];return"undefined"!=typeof Map&&t instanceof Map?t.forEach(((t,o)=>{let a=t;"object"==typeof a&&(a=ve(a)),e.push([o,a])})):Object.keys(t).forEach((o=>{let a=t[o];"object"==typeof a&&(a=ve(a)),e.push([o,a])})),e},ke=(t,e)=>e&&e.toString()===t.toString();function xe(){const t=Ct.innerParams.get(this);if(!t)return;const e=Ct.domCache.get(this);at(e.loader),F()?t.icon&&ot(E()):Ce(e),J([e.popup,e.actions],x.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Ce=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ot(e[0],"inline-block"):!it(z())&&!it(q())&&!it(D())&&at(t.actions)};var Ae={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Pe=()=>z()&&z().click(),Be=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Se=(t,e,o)=>{const a=R();if(a.length)return(e+=o)===a.length?e=0:-1===e&&(e=a.length-1),a[e].focus();S().focus()},Ee=["ArrowRight","ArrowDown"],Te=["ArrowLeft","ArrowUp"],Le=(t,e,o)=>{const a=Ct.innerParams.get(t);a&&(e.isComposing||229===e.keyCode||(a.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?je(t,e,a):"Tab"===e.key?Oe(e,a):[...Ee,...Te].includes(e.key)?Ie(e.key):"Escape"===e.key&&ze(e,a,o)))},je=(t,e,o)=>{if(r(o.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;Pe(),e.preventDefault()}},Oe=(t,e)=>{const o=t.target,a=R();let n=-1;for(let t=0;t<a.length;t++)if(o===a[t]){n=t;break}t.shiftKey?Se(0,n,-1):Se(0,n,1),t.stopPropagation(),t.preventDefault()},Ie=t=>{if(![z(),q(),D()].includes(document.activeElement))return;const e=Ee.includes(t)?"nextElementSibling":"previousElementSibling";let o=document.activeElement;for(let t=0;t<Z().children.length;t++){if(o=o[e],!o)return;if(it(o)&&o instanceof HTMLButtonElement)break}o instanceof HTMLButtonElement&&o.focus()},ze=(t,e,o)=>{r(e.allowEscapeKey)&&(t.preventDefault(),o(Nt.esc))};function qe(t,e,o,a){F()?Re(t,a):(pt(o).then((()=>Re(t,a))),Be(ut)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),U()&&(null!==Y.previousBodyPadding&&(document.body.style.paddingRight="".concat(Y.previousBodyPadding,"px"),Y.previousBodyPadding=null),(()=>{if(W(document.body,x.iosfix)){const t=parseInt(document.body.style.top,10);J(document.body,x.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}})(),Rt()),J([document.documentElement,document.body],[x.shown,x["height-auto"],x["no-backdrop"],x["toast-shown"]])}function Me(t){t=He(t);const e=Ae.swalPromiseResolve.get(this),o=De(this);this.isAwaitingPromise()?t.isDismissed||(Ze(this),e(t)):o&&e(t)}const De=t=>{const e=S();if(!e)return!1;const o=Ct.innerParams.get(t);if(!o||W(e,o.hideClass.popup))return!1;J(e,o.showClass.popup),Q(e,o.hideClass.popup);const a=A();return J(a,o.showClass.backdrop),Q(a,o.hideClass.backdrop),Ve(t,e,o),!0};const Ze=t=>{t.isAwaitingPromise()&&(Ct.awaitingPromise.delete(t),Ct.innerParams.get(t)||t._destroy())},He=t=>void 0===t?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Ve=(t,e,o)=>{const a=A(),n=yt&&lt(e);"function"==typeof o.willClose&&o.willClose(e),n?Ne(t,e,a,o.returnFocus,o.didClose):qe(t,a,o.returnFocus,o.didClose)},Ne=(t,e,o,a,n)=>{ut.swalCloseEventFinishedCallback=qe.bind(null,t,o,a,n),e.addEventListener(yt,(function(t){t.target===e&&(ut.swalCloseEventFinishedCallback(),delete ut.swalCloseEventFinishedCallback)}))},Re=(t,e)=>{setTimeout((()=>{"function"==typeof e&&e.bind(t.params)(),t._destroy()}))};function Ue(t,e,o){const a=Ct.domCache.get(t);e.forEach((t=>{a[t].disabled=o}))}function Fe(t,e){if(!t)return!1;if("radio"===t.type){const o=t.parentNode.parentNode.querySelectorAll("input");for(let t=0;t<o.length;t++)o[t].disabled=e}else t.disabled=e}const Ye=t=>{const e={};return Object.keys(t).forEach((o=>{h(o)?e[o]=t[o]:a('Invalid parameter to update: "'.concat(o,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))})),e};const _e=t=>{We(t),delete t.params,delete ut.keydownHandler,delete ut.keydownTarget,delete ut.currentInstance},We=t=>{t.isAwaitingPromise()?(Xe(Ct,t),Ct.awaitingPromise.set(t,!0)):(Xe(Ae,t),Xe(Ct,t))},Xe=(t,e)=>{for(const o in t)t[o].delete(e)};var $e=Object.freeze({hideLoading:xe,disableLoading:xe,getInput:function(t){const e=Ct.innerParams.get(t||this),o=Ct.domCache.get(t||this);return o?$(o.popup,e.input):null},close:Me,isAwaitingPromise:function(){return!!Ct.awaitingPromise.get(this)},rejectPromise:function(t){const e=Ae.swalPromiseReject.get(this);Ze(this),e&&e(t)},handleAwaitingPromise:Ze,closePopup:Me,closeModal:Me,closeToast:Me,enableButtons:function(){Ue(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Ue(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Fe(this.getInput(),!1)},disableInput:function(){return Fe(this.getInput(),!0)},showValidationMessage:function(t){const e=Ct.domCache.get(this),o=Ct.innerParams.get(this);_(e.validationMessage,t),e.validationMessage.className=x["validation-message"],o.customClass&&o.customClass.validationMessage&&Q(e.validationMessage,o.customClass.validationMessage),ot(e.validationMessage);const a=this.getInput();a&&(a.setAttribute("aria-invalid",!0),a.setAttribute("aria-describedby",x["validation-message"]),K(a),Q(a,x.inputerror))},resetValidationMessage:function(){const t=Ct.domCache.get(this);t.validationMessage&&at(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),J(e,x.inputerror))},getProgressSteps:function(){return Ct.domCache.get(this).progressSteps},update:function(t){const e=S(),o=Ct.innerParams.get(this);if(!e||W(e,o.hideClass.popup))return a("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const n=Ye(t),s=Object.assign({},o,n);Vt(this,s),Ct.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})},_destroy:function(){const t=Ct.domCache.get(this),e=Ct.innerParams.get(this);e?(t.popup&&ut.swalCloseEventFinishedCallback&&(ut.swalCloseEventFinishedCallback(),delete ut.swalCloseEventFinishedCallback),ut.deferDisposalTimer&&(clearTimeout(ut.deferDisposalTimer),delete ut.deferDisposalTimer),"function"==typeof e.didDestroy&&e.didDestroy(),_e(this)):We(this)}});const Ke=(t,o)=>{const a=Ct.innerParams.get(t);if(!a.input)return n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(e(o)));const s=((t,e)=>{const o=t.getInput();if(!o)return null;switch(e.input){case"checkbox":return we(o);case"radio":return ge(o);case"file":return he(o);default:return e.inputAutoTrim?o.value.trim():o.value}})(t,a);a.inputValidator?Ge(t,s,o):t.getInput().checkValidity()?"deny"===o?Qe(t,s):eo(t,s):(t.enableButtons(),t.showValidationMessage(a.validationMessage))},Ge=(t,e,o)=>{const a=Ct.innerParams.get(t);t.disableInput(),Promise.resolve().then((()=>c(a.inputValidator(e,a.validationMessage)))).then((a=>{t.enableButtons(),t.enableInput(),a?t.showValidationMessage(a):"deny"===o?Qe(t,e):eo(t,e)}))},Qe=(t,e)=>{const o=Ct.innerParams.get(t||void 0);o.showLoaderOnDeny&&pe(q()),o.preDeny?(Ct.awaitingPromise.set(t||void 0,!0),Promise.resolve().then((()=>c(o.preDeny(e,o.validationMessage)))).then((o=>{!1===o?(t.hideLoading(),Ze(t)):t.closePopup({isDenied:!0,value:void 0===o?e:o})})).catch((e=>to(t||void 0,e)))):t.closePopup({isDenied:!0,value:e})},Je=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},to=(t,e)=>{t.rejectPromise(e)},eo=(t,e)=>{const o=Ct.innerParams.get(t||void 0);o.showLoaderOnConfirm&&pe(),o.preConfirm?(t.resetValidationMessage(),Ct.awaitingPromise.set(t||void 0,!0),Promise.resolve().then((()=>c(o.preConfirm(e,o.validationMessage)))).then((o=>{it(I())||!1===o?(t.hideLoading(),Ze(t)):Je(t,void 0===o?e:o)})).catch((e=>to(t||void 0,e)))):Je(t,e)},oo=(t,e,o)=>{e.popup.onclick=()=>{const e=Ct.innerParams.get(t);e&&(ao(e)||e.timer||e.input)||o(Nt.close)}},ao=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let no=!1;const so=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(no=!0)}}},io=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(no=!0)}}},ro=(t,e,o)=>{e.container.onclick=a=>{const n=Ct.innerParams.get(t);no?no=!1:a.target===e.container&&r(n.allowOutsideClick)&&o(Nt.backdrop)}},lo=t=>t instanceof Element||(t=>"object"==typeof t&&t.jquery)(t);const co=()=>{if(ut.timeout)return(()=>{const t=V(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const o=e/parseInt(window.getComputedStyle(t).width)*100;t.style.removeProperty("transition"),t.style.width="".concat(o,"%")})(),ut.timeout.stop()},uo=()=>{if(ut.timeout){const t=ut.timeout.start();return ct(t),t}};let po=!1;const mo={};const wo=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const t in mo){const o=e.getAttribute(t);if(o)return void mo[t].fire({template:o})}};var go=Object.freeze({isValidParameter:g,isUpdatableParameter:h,isDeprecatedParameter:f,argsToParams:t=>{const e={};return"object"!=typeof t[0]||lo(t[0])?["title","html","icon"].forEach(((o,a)=>{const s=t[a];"string"==typeof s||lo(s)?e[o]=s:void 0!==s&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof s))})):Object.assign(e,t[0]),e},isVisible:()=>it(S()),clickConfirm:Pe,clickDeny:()=>q()&&q().click(),clickCancel:()=>D()&&D().click(),getContainer:A,getPopup:S,getTitle:T,getHtmlContainer:L,getImage:j,getIcon:E,getInputLabel:()=>B(x["input-label"]),getCloseButton:N,getActions:Z,getConfirmButton:z,getDenyButton:q,getCancelButton:D,getLoader:M,getFooter:H,getTimerProgressBar:V,getFocusableElements:R,getValidationMessage:I,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const t=this;for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];return new t(...o)},mixin:function(t){return class extends(this){_main(e,o){return super._main(e,Object.assign({},t,o))}}},showLoading:pe,enableLoading:pe,getTimerLeft:()=>ut.timeout&&ut.timeout.getTimerLeft(),stopTimer:co,resumeTimer:uo,toggleTimer:()=>{const t=ut.timeout;return t&&(t.running?co():uo())},increaseTimer:t=>{if(ut.timeout){const e=ut.timeout.increase(t);return ct(e,!0),e}},isTimerRunning:()=>ut.timeout&&ut.timeout.isRunning(),bindClickHandler:function(){mo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,po||(document.body.addEventListener("click",wo),po=!0)}});let ho;class fo{constructor(){if("undefined"==typeof window)return;ho=this;for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];const a=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:a,writable:!1,enumerable:!0,configurable:!0}});const n=this._main(this.params);Ct.promise.set(this,n)}_main(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(t=>{!t.backdrop&&t.allowOutsideClick&&a('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)b(e),t.toast&&y(e),v(e)})(Object.assign({},e,t)),ut.currentInstance&&(ut.currentInstance._destroy(),U()&&Rt()),ut.currentInstance=this;const o=yo(t,e);Jt(o),Object.freeze(o),ut.timeout&&(ut.timeout.stop(),delete ut.timeout),clearTimeout(ut.restoreFocusTimeout);const n=vo(this);return Vt(this,o),Ct.innerParams.set(this,o),bo(this,n,o)}then(t){return Ct.promise.get(this).then(t)}finally(t){return Ct.promise.get(this).finally(t)}}const bo=(t,e,o)=>new Promise(((a,n)=>{const s=e=>{t.closePopup({isDismissed:!0,dismiss:e})};Ae.swalPromiseResolve.set(t,a),Ae.swalPromiseReject.set(t,n),e.confirmButton.onclick=()=>(t=>{const e=Ct.innerParams.get(t);t.disableButtons(),e.input?Ke(t,"confirm"):eo(t,!0)})(t),e.denyButton.onclick=()=>(t=>{const e=Ct.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Ke(t,"deny"):Qe(t,!1)})(t),e.cancelButton.onclick=()=>((t,e)=>{t.disableButtons(),e(Nt.cancel)})(t,s),e.closeButton.onclick=()=>s(Nt.close),((t,e,o)=>{Ct.innerParams.get(t).toast?oo(t,e,o):(so(e),io(e),ro(t,e,o))})(t,e,s),((t,e,o,a)=>{Be(e),o.toast||(e.keydownHandler=e=>Le(t,e,a),e.keydownTarget=o.keydownListenerCapture?window:S(),e.keydownListenerCapture=o.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)})(t,ut,o,s),((t,e)=>{"select"===e.input||"radio"===e.input?fe(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(l(e.inputValue)||d(e.inputValue))&&(pe(z()),be(t,e))})(t,o),re(o),ko(ut,o,s),xo(e,o),setTimeout((()=>{e.container.scrollTop=0}))})),yo=(t,e)=>{const o=(t=>{const e="string"==typeof t.template?document.querySelector(t.template):t.template;if(!e)return{};const o=e.content;return Kt(o),Object.assign(Ft(o),Yt(o),_t(o),Wt(o),Xt(o),$t(o,Ut))})(t),a=Object.assign({},u,e,o,t);return a.showClass=Object.assign({},u.showClass,a.showClass),a.hideClass=Object.assign({},u.hideClass,a.hideClass),a},vo=t=>{const e={popup:S(),container:A(),actions:Z(),confirmButton:z(),denyButton:q(),cancelButton:D(),loader:M(),closeButton:N(),validationMessage:I(),progressSteps:O()};return Ct.domCache.set(t,e),e},ko=(t,e,o)=>{const a=V();at(a),e.timer&&(t.timeout=new te((()=>{o("timer"),delete t.timeout}),e.timer),e.timerProgressBar&&(ot(a),X(a,e,"timerProgressBar"),setTimeout((()=>{t.timeout&&t.timeout.running&&ct(e.timer)}))))},xo=(t,e)=>{if(!e.toast)return r(e.allowEnterKey)?void(Co(t,e)||Se(0,-1,1)):Ao()},Co=(t,e)=>e.focusDeny&&it(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&it(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!it(t.confirmButton)||(t.confirmButton.focus(),0)),Ao=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};Object.assign(fo.prototype,$e),Object.assign(fo,go),Object.keys($e).forEach((t=>{fo[t]=function(){if(ho)return ho[t](...arguments)}})),fo.DismissReason=Nt,fo.version="11.4.8";const Po=fo;return Po.default=Po,Po}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(t,e){var o=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=e);else try{o.innerHTML=e}catch(t){o.innerText=e}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;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;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:700}.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;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.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:-.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{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left: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(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);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}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.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:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.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}.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}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.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}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.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:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.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}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.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}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.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)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.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}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;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}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-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:-.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-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-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-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}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-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:-.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-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-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-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}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-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-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):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{background-color:transparent!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):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.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:transparent;pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')},145:e=>{"use strict";e.exports=t},147:t=>{"use strict";t.exports=JSON.parse('{"name":"konnektive-engine","version":"0.1.19","description":"","files":["dist/*.js","dist/**/*.js"],"scripts":{"rm":"rimraf ./dist","build":"npm run rm && webpack --color --progress --mode=development","build:prod":"npm run rm && NODE_ENV=production webpack --color --progress --mode=production","watch":"npm run build -- --watch","dev":"concurrently \\"npm run serve\\" \\"npm run watch\\"","serve":"http-server ./dist -a 0.0.0.0 -p 3000","publish":"npm run build:prod && npm publish","lint":"eslint ./src","lint:fix":"eslint ./src --fix"},"author":"brunoferreiras","license":"ISC","dependencies":{"jquery":"1.11.2","sweetalert2":"^11.4.8"},"devDependencies":{"@babel/cli":"^7.17.6","@babel/core":"^7.17.9","@babel/preset-env":"^7.16.11","babel-loader":"^8.2.4","babel-preset-minify":"^0.5.1","concurrently":"^7.1.0","eslint":"^8.13.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.26.0","glob":"^7.2.0","http-server":"^14.1.0","npm-watch":"^0.11.0","rimraf":"^3.0.2","webpack":"^5.72.0","webpack-cli":"^4.10.0"}}')}},o={};function a(t){var n=o[t];if(void 0!==n)return n.exports;var s=o[t]={exports:{}};return e[t].call(s.exports,s,s.exports,a),s.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";a.r(n);var t=a(145),e=a.n(t),o=a(853),s="351HEALT5449";function i(t){for(var e,o=t.split(" "),a=0;a<o.length;a+=1)e=o[a].charAt(0).toUpperCase(),o[a]=e+o[a].substr(1);return o.join(" ")}e()((function(){e()("#cShipZip").keyup((function(){if(3<=e()(this).val().length&&!isNaN(e()(this).val())&&"US"===(0,o.stickyGetCountryEnv)("cShipCountry")){var t=e()(this).val(),a=e()(this),n='https://production.shippingapis.com/ShippingAPI.dll?API=CityStateLookup&XML=<CityStateLookupRequest USERID="'.concat(s,'"><ZipCode ID="0"><Zip5>').concat(t,"</Zip5></ZipCode></CityStateLookupRequest>");e().ajax({type:"GET",url:n,dataType:"text",success:function(t){var o=e()(e().parseXML(t)),n="";if(0===o.find("Error").length){var s=o.find("City").text().toLowerCase();n=o.find("State").text(),s=i(s),e()("#cShipCity").val("").removeClass("valid invalid").val(s),"true"===e()("#stickyZIPAutofill").attr("sticky-feedback")&&e()("#sticky-city-name").html(s),a.parents("form:first").validate().element("#cShipCity")}else{e()("#cShipCity").val("").addClass("invalid");var r=e()("#stickyZIPAutofill").attr("sticky-city-placeholder");e()("#cShipCity").attr("placeholder",r),"true"===e()("#stickyZIPAutofill").attr("sticky-feedback")&&e()("#sticky-city-name").html(""),a.parents("form:first").validate().element("#cShipCity")}e()("#cShipState").val(n),"true"===e()("#stickyZIPAutofill").attr("sticky-feedback")&&e()("#sticky-state-name").html(e()("#cShipState option:selected").val()),a.parents("form:first").validate().element("#cShipState")},done:function(){}})}else{var r=e()("#stickyZIPAutofill").attr("sticky-city-placeholder");e()("#cShipCity").attr("placeholder",r)}})),e()("#cBillZip").keyup((function(){if(3<=e()(this).val().length&&!isNaN(e()(this).val())&&"US"===(0,o.stickyGetCountryEnv)("cBillCountry")){var t=e()(this).val(),a=e()(this),n='https://production.shippingapis.com/ShippingAPI.dll?API=CityStateLookup&XML=<CityStateLookupRequest USERID="'.concat(s,'"><ZipCode ID="0"><Zip5>').concat(t,"</Zip5></ZipCode></CityStateLookupRequest>");e().ajax({type:"GET",url:n,dataType:"text",success:function(t){var o=e()(e().parseXML(t)),n="";if(0===o.find("Error").length){var s=o.find("City").text().toLowerCase();n=o.find("State").text(),s=i(s),e()("#cBillCity").val("").removeClass("valid invalid").val(s),a.parents("form:first").validate().element("#cBillCity")}else{e()("#cBillCity").val("").addClass("invalid");var r=e()("#stickyZIPAutofill").attr("sticky-city-placeholder");e()("#cBillCity").attr("placeholder",r),a.parents("form:first").validate().element("#cBillCity")}e()("#cBillState").val(n),a.parents("form:first").validate().element("#cBillState")},done:function(){}})}else{var r=e()("#stickyZIPAutofill").attr("sticky-city-placeholder");e()("#cBillCity").attr("placeholder",r)}})),e()("#cShipZip").keyup(),e()("#cShipZip").blur((function(){e()("#cShipZip").keyup()})),e()("#cBillZip").keyup(),e()("#cBillZip").blur((function(){e()("#cBillZip").keyup()}))}))})(),n})()));
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "konnektive-engine",
3
+ "version": "0.1.19",
4
+ "description": "",
5
+ "files": [
6
+ "dist/*.js",
7
+ "dist/**/*.js"
8
+ ],
9
+ "scripts": {
10
+ "rm": "rimraf ./dist",
11
+ "build": "npm run rm && webpack --color --progress --mode=development",
12
+ "build:prod": "npm run rm && NODE_ENV=production webpack --color --progress --mode=production",
13
+ "watch": "npm run build -- --watch",
14
+ "dev": "concurrently \"npm run serve\" \"npm run watch\"",
15
+ "serve": "http-server ./dist -a 0.0.0.0 -p 3000",
16
+ "publish": "npm run build:prod && npm publish",
17
+ "lint": "eslint ./src",
18
+ "lint:fix": "eslint ./src --fix"
19
+ },
20
+ "author": "brunoferreiras",
21
+ "license": "ISC",
22
+ "dependencies": {
23
+ "jquery": "1.11.2",
24
+ "sweetalert2": "^11.4.8"
25
+ },
26
+ "devDependencies": {
27
+ "@babel/cli": "^7.17.6",
28
+ "@babel/core": "^7.17.9",
29
+ "@babel/preset-env": "^7.16.11",
30
+ "babel-loader": "^8.2.4",
31
+ "babel-preset-minify": "^0.5.1",
32
+ "concurrently": "^7.1.0",
33
+ "eslint": "^8.13.0",
34
+ "eslint-config-airbnb-base": "^15.0.0",
35
+ "eslint-plugin-import": "^2.26.0",
36
+ "glob": "^7.2.0",
37
+ "http-server": "^14.1.0",
38
+ "npm-watch": "^0.11.0",
39
+ "rimraf": "^3.0.2",
40
+ "webpack": "^5.72.0",
41
+ "webpack-cli": "^4.10.0"
42
+ }
43
+ }
package/readme.md ADDED
@@ -0,0 +1,69 @@
1
+ # Payment Engine
2
+
3
+ ## Dependencies
4
+ - jquery: 1.12.4 (is needed you import the jquery before importing this library)
5
+ - [jsDelivr](https://www.jsdelivr.com/) (Create a CDN based on the npm package)
6
+
7
+ # Running on local
8
+
9
+ 1. Build the library
10
+ ```bash
11
+ npm run build # Compile files in development
12
+ npm run build:prod # Compile files optimized for production
13
+ ```
14
+
15
+ 2. Running a local server
16
+ ```bash
17
+ npm run serve # Start a new server on: http://localhost:3000
18
+ ```
19
+
20
+ 3. Running watch with the local server at the same time
21
+ ```bash
22
+ npm run dev # This command will execute `npm run watch` to see all modification files and start a new server.
23
+ ```
24
+
25
+ 4. Acessing the files
26
+ After that you started a local server, you can access the files on `http://localhost:3000`.
27
+
28
+ For example: `http://localhost:3000/index.js`, `http://localhost:3000/api.js`, and so on.
29
+
30
+ # Publish this lib
31
+ First, you need to sign in on npm: `npm login`.
32
+ When you create a new version, it is needly to update the version on `package.json` and execute this command: `npm run publish.` This command is responsible for building the application and publishing the files to npm.
33
+
34
+ The build will create all minified files on `dist` at the same level.
35
+
36
+ Obs.: You cannot override the version, so each version is unique.
37
+
38
+ # Using this lib
39
+ The `version` on URL is the version set on package.json and published on npm.
40
+
41
+ You need to import the file `index.js`. This file is responsible for creating the start function on the application.
42
+ ```
43
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/konnektive-engine@version/dist/index.js"></script>
44
+ ```
45
+
46
+ On the operation site, you need to create a file to set the configurations. In this file, you can override all default variables.
47
+ ```js
48
+ //engine-override.js
49
+ PaymentEngine.init({
50
+ debugMode: 1,
51
+ // others configs
52
+ })
53
+ ```
54
+
55
+ A comparing about the files:
56
+
57
+ | Last file | This lib | Comments
58
+ | ------ | ------ | ------ |
59
+ | 1.stickyConfig.js | https://cdn.jsdelivr.net/npm/konnektive-engine@version/dist/index.js | You need to create the engine-override.js |
60
+ | 1.stickyBaseConfig.js | https://cdn.jsdelivr.net/npm/konnektive-engine@version/dist/index.js | You need to create the engine-override.js |
61
+ | 2.stickyAPIFramework.js | https://cdn.jsdelivr.net/npm/konnektive-engine@version/dist/api.js | You need to import this only if the front is using some function there |
62
+ | 3.stickyUtils.js | https://cdn.jsdelivr.net/npm/konnektive-engine@version/dist/actions.js | |
63
+ | 4.stickyZIPAutofill.js | https://cdn.jsdelivr.net/npm/konnektive-engine@version/dist/zip-autofill.js | |
64
+ | 5.stickyValidations.js | https://cdn.jsdelivr.net/npm/konnektive-engine@version/dist/validation.js | |
65
+ | op-configure.php | It's not needed anymore. | |
66
+ | tracking.php | It's manual copy. | |
67
+ | Code php to set cookies | https://cdn.jsdelivr.net/npm/konnektive-engine@version/dist/cookies.js | Where was using php to set cookies, you can import this file. |
68
+ | ipify.org | You don't need to import anymore, because the IP is got when init the payment engine. | |
69
+ | firePostBack | https://cdn.jsdelivr.net/npm/konnektive-engine@version/dist/redtrack.js | You can use the function after importing this file. |