@shrfe/assets 1.0.57 → 1.0.59

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.
Files changed (27) hide show
  1. package/css/sfe-styles.css +1 -0
  2. package/js/shrfe-core-umd.js +2 -2
  3. package/package.json +1 -1
  4. package/wc-lib/{p-78b989ac.entry.js → p-060477b5.entry.js} +1 -1
  5. package/wc-lib/{p-563dbf1d.entry.js → p-09d3a2bb.entry.js} +1 -1
  6. package/wc-lib/{p-ab62980a.entry.js → p-1ee53e76.entry.js} +2 -2
  7. package/wc-lib/{p-7a9c3ed0.js → p-22b81781.js} +1 -1
  8. package/wc-lib/{p-56a35a98.entry.js → p-3f9ba416.entry.js} +1 -1
  9. package/wc-lib/{p-ac4e29a1.entry.js → p-519aee10.entry.js} +1 -1
  10. package/wc-lib/{p-6e0bd2ad.entry.js → p-5c7a11b5.entry.js} +1 -1
  11. package/wc-lib/{p-3b601f77.entry.js → p-6020e2ee.entry.js} +1 -1
  12. package/wc-lib/{p-35af33a7.entry.js → p-7f061876.entry.js} +1 -1
  13. package/wc-lib/{p-eb400dbb.entry.js → p-8830849d.entry.js} +1 -1
  14. package/wc-lib/{p-80803b9d.entry.js → p-987f43de.entry.js} +1 -1
  15. package/wc-lib/{p-f990ce59.entry.js → p-9b886706.entry.js} +1 -1
  16. package/wc-lib/p-9c8d03a1.entry.js +1 -0
  17. package/wc-lib/p-DdKztCEo.js +3 -0
  18. package/wc-lib/{p-7942b799.entry.js → p-a1096cc2.entry.js} +1 -1
  19. package/wc-lib/{p-dad2a7ad.entry.js → p-ad52fbd1.entry.js} +1 -1
  20. package/wc-lib/{p-07bd9e98.entry.js → p-baa72403.entry.js} +1 -1
  21. package/wc-lib/{p-08c14f8b.entry.js → p-bc2d52e1.entry.js} +1 -1
  22. package/wc-lib/{p-29d0d97f.entry.js → p-d2d7a599.entry.js} +1 -1
  23. package/wc-lib/{p-bbca04e1.entry.js → p-f30625eb.entry.js} +1 -1
  24. package/wc-lib/{p-3027bf0d.entry.js → p-fce8a77c.entry.js} +1 -1
  25. package/wc-lib/wc-lib.esm.js +1 -1
  26. package/wc-lib/p-646cfe8c.entry.js +0 -1
  27. package/wc-lib/p-sJYf_nlQ.js +0 -2
@@ -57,7 +57,7 @@
57
57
  <span class="swal2-x-mark-line-left"></span>
58
58
  <span class="swal2-x-mark-line-right"></span>
59
59
  </span>
60
- `,e3=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let r=e.innerHTML,n="";if(t.iconHtml)n=e9(t.iconHtml);else if("success"===t.icon)n=e8(t),r=r.replace(/ style=".*?"/g,"");else if("error"===t.icon)n=e6;else if(t.icon){let e={question:"?",warning:"!",info:"i"};n=e9(e[t.icon])}r.trim()!==n.trim()&&K(e,n)},e7=(e,t)=>{if(t.iconColor){for(let r of(e.style.color=t.iconColor,e.style.borderColor=t.iconColor,[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"]))eh(e,r,"background-color",t.iconColor);eh(e,".swal2-success-ring","border-color",t.iconColor)}},e9=e=>`<div class="${h["icon-content"]}">${e}</div>`,te=(e,t)=>{let r=L();if(r){if(!t.imageUrl)return void eu(r);ec(r,""),r.setAttribute("src",t.imageUrl),r.setAttribute("alt",t.imageAlt||""),ea(r,"width",t.imageWidth),ea(r,"height",t.imageHeight),r.className=h.image,ee(r,t,"image")}},tt=!1,tr=0,tn=0,ti=0,to=0,ts=e=>{e.addEventListener("mousedown",tc),document.body.addEventListener("mousemove",tu),e.addEventListener("mouseup",tl),e.addEventListener("touchstart",tc),document.body.addEventListener("touchmove",tu),e.addEventListener("touchend",tl)},ta=e=>{e.removeEventListener("mousedown",tc),document.body.removeEventListener("mousemove",tu),e.removeEventListener("mouseup",tl),e.removeEventListener("touchstart",tc),document.body.removeEventListener("touchmove",tu),e.removeEventListener("touchend",tl)},tc=e=>{let t=T();if(!t)return;let r=A();if(e.target===t||r&&r.contains(e.target)){tt=!0;let r=th(e);tr=r.clientX,tn=r.clientY,ti=parseInt(t.style.insetInlineStart)||0,to=parseInt(t.style.insetBlockStart)||0,ei(t,"swal2-dragging")}},tu=e=>{let t=T();if(t&&tt){let{clientX:r,clientY:n}=th(e),i=r-tr;t.style.insetInlineStart=`${ti+(s.isRTL?-i:i)}px`,t.style.insetBlockStart=`${to+(n-tn)}px`}},tl=()=>{let e=T();tt=!1,eo(e,"swal2-dragging")},th=e=>{let t=e.type.startsWith("touch")?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},td=(e,t)=>{let r=E(),n=T();if(r&&n){if(t.toast){ea(r,"width",t.width),n.style.width="100%";let e=z();e&&n.insertBefore(e,A())}else ea(n,"width",t.width);ea(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),eu(N()),tf(n,t),t.draggable&&!t.toast?(ei(n,h.draggable),ts(n)):(eo(n,h.draggable),ta(n))}},tf=(e,t)=>{let r=t.showClass||{};e.className=`${h.popup} ${ef(e)?r.popup:""}`,t.toast?(ei([document.documentElement,document.body],h["toast-shown"]),ei(e,h.toast)):ei(e,h.modal),ee(e,t,"popup"),"string"==typeof t.customClass&&ei(e,t.customClass),t.icon&&ei(e,h[`icon-${t.icon}`])},tp=(e,t)=>{let r=D();if(!r)return;let{progressSteps:n,currentProgressStep:i}=t;n&&0!==n.length&&void 0!==i?(ec(r),r.textContent="",i>=n.length&&m("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((e,o)=>{let s=tg(e);if(r.appendChild(s),o===i&&ei(s,h["active-progress-step"]),o!==n.length-1){let e=tm(t);r.appendChild(e)}})):eu(r)},tg=e=>{let t=document.createElement("li");return ei(t,h["progress-step"]),K(t,e),t},tm=e=>{let t=document.createElement("li");return ei(t,h["progress-step-line"]),e.progressStepsDistance&&ea(t,"width",e.progressStepsDistance),t},tv=(e,t)=>{let r=R();r&&(el(r),ed(r,!!(t.title||t.titleText),"block"),t.title&&eT(t.title,r),t.titleText&&(r.innerText=t.titleText),ee(r,t,"title"))},ty=(e,t)=>{var r;td(e,t),eF(e,t),tp(e,t),e2(e,t),te(e,t),tv(e,t),eB(e,t),e0(e,t),eR(e,t),e1(e,t);let n=T();"function"==typeof t.didRender&&n&&t.didRender(n),null==(r=s.eventEmitter)||r.emit("didRender",n)},tb=()=>ef(T()),tw=()=>{var e;return null==(e=B())?void 0:e.click()},tx=()=>{var e;return null==(e=j())?void 0:e.click()},t_=()=>{var e;return null==(e=F())?void 0:e.click()},tk=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),tS=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){let t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},tC=(e,t,r)=>{if(tS(e),!t.toast){let n=e=>tT(t,e,r);e.keydownHandler=n;let i=t.keydownListenerCapture?window:T();if(i){e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture;let r=n;e.keydownTarget.addEventListener("keydown",r,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},tE=(e,t)=>{var r;let n=Y();return n.length?(-2===(e+=t)&&(e=n.length-1),e===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus(),!(C()&&n[e]instanceof HTMLIFrameElement)):(null==(r=T())||r.focus(),!0)},tO=["ArrowRight","ArrowDown"],tI=["ArrowLeft","ArrowUp"],tT=(e,t,r)=>{!e||t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?tA(t,e):"Tab"===t.key?tM(t):[...tO,...tI].includes(t.key)?tR(t.key):"Escape"===t.key&&tP(t,e,r))},tA=(e,t)=>{if(!x(t.allowEnterKey))return;let r=T();if(!r||!t.input)return;let n=et(r,t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;tw(),e.preventDefault()}},tM=e=>{let t=e.target,r=Y(),n=r.findIndex(e=>e===t),i=!0;i=e.shiftKey?tE(n,-1):tE(n,1),e.stopPropagation(),i&&e.preventDefault()},tR=e=>{let t=q(),r=B(),n=j(),i=F();if(!t||!r||!n||!i)return;let o=[r,n,i];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;let s=tO.includes(e)?"nextElementSibling":"previousElementSibling",a=document.activeElement;if(a){for(let e=0;e<t.children.length;e++){if(!(a=a[s]))return;if(a instanceof HTMLButtonElement&&ef(a))break}a instanceof HTMLButtonElement&&a.focus()}},tP=(e,t,r)=>{e.preventDefault(),x(t.allowEscapeKey)&&r(tk.esc)};var tL={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};let tD=()=>{let e=E(),t=Array.from(document.body.children);t.forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},tN=()=>{let e=Array.from(document.body.children);e.forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},tB="u">typeof window&&!!window.GestureEvent,tF=tB&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,tj=()=>{if(tB&&!Z(document.body,h.iosfix)){let e=document.body.scrollTop;document.body.style.top=`${-1*e}px`,ei(document.body,h.iosfix),tU()}},tU=()=>{let e=E();if(!e)return;let t;e.ontouchstart=e=>{t=tz(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},tz=e=>{let t=e.target,r=E(),n=P();return!(!r||!n||tq(e)||tH(e))&&!!(t===r||!eg(r)&&t instanceof HTMLElement&&!em(t,n)&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!(eg(n)&&n.contains(t)))},tq=e=>!!(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),tH=e=>e.touches&&e.touches.length>1,t$=()=>{if(Z(document.body,h.iosfix)){let e=parseInt(document.body.style.top,10);eo(document.body,h.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},tW=()=>{let e=document.createElement("div");e.className=h["scrollbar-measure"],document.body.appendChild(e);let t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},tV=null,tY=e=>{null===tV&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(tV=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${tV+tW()}px`)},tX=()=>{null!==tV&&(document.body.style.paddingRight=`${tV}px`,tV=null)};function tJ(e,t,r,n){J()?t5(e,n):(c(r).then(()=>t5(e,n)),tS(s)),tB?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),X()&&(tX(),t$(),tN()),tG()}function tG(){eo([document.documentElement,document.body],[h.shown,h["height-auto"],h["no-backdrop"],h["toast-shown"]])}function tK(e){e=t1(e);let t=tL.swalPromiseResolve.get(this),r=tZ(this);this.isAwaitingPromise?e.isDismissed||(t0(this),t(e)):r&&t(e)}let tZ=e=>{let t=T();if(!t)return!1;let r=eq.innerParams.get(e);if(!r||Z(t,r.hideClass.popup))return!1;eo(t,r.showClass.popup),ei(t,r.hideClass.popup);let n=E();return eo(n,r.showClass.backdrop),ei(n,r.hideClass.backdrop),t2(e,t,r),!0};function tQ(e){let t=tL.swalPromiseReject.get(this);t0(this),t&&t(e)}let t0=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,eq.innerParams.get(e)||e._destroy())},t1=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),t2=(e,t,r)=>{var n;let i=E(),o=ev(t);"function"==typeof r.willClose&&r.willClose(t),null==(n=s.eventEmitter)||n.emit("willClose",t),o&&i?t4(e,t,i,!!r.returnFocus,r.didClose):i&&tJ(e,i,!!r.returnFocus,r.didClose)},t4=(e,t,r,n,i)=>{s.swalCloseEventFinishedCallback=tJ.bind(null,e,r,n,i);let o=function(e){if(e.target===t){var r;null==(r=s.swalCloseEventFinishedCallback)||r.call(s),delete s.swalCloseEventFinishedCallback,t.removeEventListener("animationend",o),t.removeEventListener("transitionend",o)}};t.addEventListener("animationend",o),t.addEventListener("transitionend",o)},t5=(e,t)=>{setTimeout(()=>{var r;"function"==typeof t&&t.bind(e.params)(),null==(r=s.eventEmitter)||r.emit("didClose"),e._destroy&&e._destroy()})},t8=e=>{let t=T();if(t||new nz,!(t=T()))return;let r=z();J()?eu(A()):t6(t,e),ec(r),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},t6=(e,t)=>{let r=q(),n=z();r&&n&&(!t&&ef(B())&&(t=B()),ec(r),t&&(eu(t),n.setAttribute("data-button-to-replace",t.className),r.insertBefore(n,t)),ei([e,r],h.loading))},t3=(e,t)=>{"select"===t.input||"radio"===t.input?rr(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(_(t.inputValue)||S(t.inputValue))&&(t8(B()),rn(e,t))},t7=(e,t)=>{let r=e.getInput();if(!r)return null;switch(t.input){case"checkbox":return t9(r);case"radio":return re(r);case"file":return rt(r);default:return t.inputAutoTrim?r.value.trim():r.value}},t9=e=>+!!e.checked,re=e=>e.checked?e.value:null,rt=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,rr=(e,t)=>{let r=T();if(!r)return;let n=e=>{"select"===t.input?ri(r,rs(e),t):"radio"===t.input&&ro(r,rs(e),t)};_(t.inputOptions)||S(t.inputOptions)?(t8(B()),k(t.inputOptions).then(t=>{e.hideLoading(),n(t)})):"object"==typeof t.inputOptions?n(t.inputOptions):v(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},rn=(e,t)=>{let r=e.getInput();r&&(eu(r),k(t.inputValue).then(n=>{r.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,ec(r),r.focus(),e.hideLoading()}).catch(t=>{v(`Error in inputValue promise: ${t}`),r.value="",ec(r),r.focus(),e.hideLoading()}))};function ri(e,t,r){let n=es(e,h.select);if(!n)return;let i=(e,t,n)=>{let i=document.createElement("option");i.value=n,K(i,t),i.selected=ra(n,r.inputValue),e.appendChild(i)};t.forEach(e=>{let t=e[0],r=e[1];if(Array.isArray(r)){let e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),r.forEach(t=>i(e,t[1],t[0]))}else i(n,r,t)}),n.focus()}function ro(e,t,r){let n=es(e,h.radio);if(!n)return;t.forEach(e=>{let t=e[0],i=e[1],o=document.createElement("input"),s=document.createElement("label");o.type="radio",o.name=h.radio,o.value=t,ra(t,r.inputValue)&&(o.checked=!0);let a=document.createElement("span");K(a,i),a.className=h.label,s.appendChild(o),s.appendChild(a),n.appendChild(s)});let i=n.querySelectorAll("input");i.length&&i[0].focus()}let rs=e=>{let t=e instanceof Map?Array.from(e):Object.entries(e);return t.map(([e,t])=>[e,"object"==typeof t?rs(t):t])},ra=(e,t)=>!!t&&null!=t&&t.toString()===e.toString(),rc=e=>{let t=eq.innerParams.get(e);e.disableButtons(),t.input?rh(e,"confirm"):rm(e,!0)},ru=e=>{let t=eq.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?rh(e,"deny"):rf(e,!1)},rl=(e,t)=>{e.disableButtons(),t(tk.cancel)},rh=(e,t)=>{let r=eq.innerParams.get(e);if(!r.input)return void v(`The "input" parameter is needed to be set when using returnInputValueOn${g(t)}`);let n=e.getInput(),i=t7(e,r);r.inputValidator?rd(e,i,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(r.validationMessage||n.validationMessage)):"deny"===t?rf(e,i):rm(e,i)},rd=(e,t,r)=>{let n=eq.innerParams.get(e);e.disableInput();let i=Promise.resolve().then(()=>k(n.inputValidator(t,n.validationMessage)));i.then(n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===r?rf(e,t):rm(e,t)})},rf=(e,t)=>{let r=eq.innerParams.get(e);if(r.showLoaderOnDeny&&t8(j()),r.preDeny){e.isAwaitingPromise=!0;let n=Promise.resolve().then(()=>k(r.preDeny(t,r.validationMessage)));n.then(r=>{!1===r?(e.hideLoading(),t0(e)):e.close({isDenied:!0,value:void 0===r?t:r})}).catch(t=>rg(e,t))}else e.close({isDenied:!0,value:t})},rp=(e,t)=>{e.close({isConfirmed:!0,value:t})},rg=(e,t)=>{e.rejectPromise(t)},rm=(e,t)=>{let r=eq.innerParams.get(e);if(r.showLoaderOnConfirm&&t8(),r.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;let n=Promise.resolve().then(()=>k(r.preConfirm(t,r.validationMessage)));n.then(r=>{ef(N())||!1===r?(e.hideLoading(),t0(e)):rp(e,void 0===r?t:r)}).catch(t=>rg(e,t))}else rp(e,t)};function rv(){let e=eq.innerParams.get(this);if(!e)return;let t=eq.domCache.get(this);eu(t.loader),J()?e.icon&&ec(A()):ry(t),eo([t.popup,t.actions],h.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),this.enableButtons()}let ry=e=>{let t=e.loader.getAttribute("data-button-to-replace"),r=t?e.popup.getElementsByClassName(t):[];r.length?ec(r[0],"inline-block"):ep()&&eu(e.actions)};function rb(){let e=eq.innerParams.get(this),t=eq.domCache.get(this);return t?et(t.popup,e.input):null}function rw(e,t,r){let n=eq.domCache.get(e);t.forEach(e=>{n[e].disabled=r})}function rx(e,t){let r=T();if(r&&e)if("radio"===e.type){let e=r.querySelectorAll(`[name="${h.radio}"]`);e.forEach(e=>{e.disabled=t})}else e.disabled=t}function r_(){rw(this,["confirmButton","denyButton","cancelButton"],!1);let e=eq.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),eq.focusedElement.delete(this)}function rk(){eq.focusedElement.set(this,document.activeElement),rw(this,["confirmButton","denyButton","cancelButton"],!0)}function rS(){rx(this.getInput(),!1)}function rC(){rx(this.getInput(),!0)}function rE(e){let t=eq.domCache.get(this),r=eq.innerParams.get(this);K(t.validationMessage,e),t.validationMessage.className=h["validation-message"],r.customClass&&r.customClass.validationMessage&&ei(t.validationMessage,r.customClass.validationMessage),ec(t.validationMessage);let n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",h["validation-message"]),er(n),ei(n,h.inputerror))}function rO(){let e=eq.domCache.get(this);e.validationMessage&&eu(e.validationMessage);let t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),eo(t,h.inputerror))}let rI={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&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:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},rT=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],rA={allowEnterKey:void 0},rM=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],rR=e=>Object.prototype.hasOwnProperty.call(rI,e),rP=e=>-1!==rT.indexOf(e),rL=e=>rA[e],rD=e=>{rR(e)||m(`Unknown parameter "${e}"`)},rN=e=>{rM.includes(e)&&m(`The parameter "${e}" is incompatible with toasts`)},rB=e=>{let t=rL(e);t&&w(e,t)},rF=e=>{for(let t in!1===e.backdrop&&e.allowOutsideClick&&m('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&m(`Invalid theme "${e.theme}"`),e)rD(t),e.toast&&rN(t),rB(t)};function rj(e){let t=E(),r=T(),n=eq.innerParams.get(this);if(!r||Z(r,n.hideClass.popup))return void m("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.");let i=rU(e),o=Object.assign({},n,i);rF(o),t&&(t.dataset["swal2Theme"]=o.theme),ty(this,o),eq.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}let rU=e=>{let t={};return Object.keys(e).forEach(r=>{if(rP(r)){let n=e;t[r]=n[r]}else m(`Invalid parameter to update: ${r}`)}),t};function rz(){var e;let t=eq.domCache.get(this),r=eq.innerParams.get(this);r?(t.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"==typeof r.didDestroy&&r.didDestroy(),null==(e=s.eventEmitter)||e.emit("didDestroy"),rq(this)):rH(this)}let rq=e=>{rH(e),delete e.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},rH=e=>{e.isAwaitingPromise?(r$(eq,e),e.isAwaitingPromise=!0):(r$(tL,e),r$(eq,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)},r$=(e,t)=>{for(let r in e)e[r].delete(t)};var rW=Object.freeze({__proto__:null,_destroy:rz,close:tK,closeModal:tK,closePopup:tK,closeToast:tK,disableButtons:rk,disableInput:rC,disableLoading:rv,enableButtons:r_,enableInput:rS,getInput:rb,handleAwaitingPromise:t0,hideLoading:rv,rejectPromise:tQ,resetValidationMessage:rO,showValidationMessage:rE,update:rj});let rV=(e,t,r)=>{e.toast?rY(e,t,r):(rG(t),rK(t),rZ(e,t,r))},rY=(e,t,r)=>{t.popup.onclick=()=>{e&&(rX(e)||e.timer||e.input)||r(tk.close)}},rX=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton),rJ=!1,rG=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(rJ=!0)}}},rK=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(rJ=!0)}}},rZ=(e,t,r)=>{t.container.onclick=n=>{if(rJ){rJ=!1;return}n.target===t.container&&x(e.allowOutsideClick)&&r(tk.backdrop)}},rQ=e=>"object"==typeof e&&null!==e&&"jquery"in e,r0=e=>e instanceof Element||rQ(e),r1=e=>{let t={};return"object"!=typeof e[0]||r0(e[0])?["title","html","icon"].forEach((r,n)=>{let i=e[n];"string"==typeof i||r0(i)?t[r]=i:void 0!==i&&v(`Unexpected type of ${r}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(t,e[0]),t};function r2(...e){return new this(...e)}function r4(e){class t extends this{_main(t,r){return super._main(t,Object.assign({},e,r))}}return t}let r5=()=>s.timeout&&s.timeout.getTimerLeft(),r8=()=>{if(s.timeout)return eb(),s.timeout.stop()},r6=()=>{if(s.timeout){let e=s.timeout.start();return ey(e),e}},r3=()=>{let e=s.timeout;return e&&(e.running?r8():r6())},r7=e=>{if(s.timeout){let t=s.timeout.increase(e);return ey(t,!0),t}},r9=()=>!!(s.timeout&&s.timeout.isRunning()),ne=!1,nt={};function nr(e="data-swal-template"){nt[e]=this,ne||(document.body.addEventListener("click",nn),ne=!0)}let nn=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(let e in nt){let r=t.getAttribute&&t.getAttribute(e);if(r)return void nt[e].fire({template:r})}};class ni{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){let r=this._getHandlersByEventName(e);r.includes(t)||r.push(t)}once(e,t){let r=(...n)=>{this.removeListener(e,r),t.apply(this,n)};this.on(e,r)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(e){console.error(e)}})}removeListener(e,t){let r=this._getHandlersByEventName(e),n=r.indexOf(t);n>-1&&r.splice(n,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}s.eventEmitter=new ni;let no=(e,t)=>{s.eventEmitter&&s.eventEmitter.on(e,t)},ns=(e,t)=>{s.eventEmitter&&s.eventEmitter.once(e,t)},na=(e,t)=>{if(s.eventEmitter){if(!e)return void s.eventEmitter.reset();t?s.eventEmitter.removeListener(e,t):s.eventEmitter.removeAllListeners(e)}};var nc=Object.freeze({__proto__:null,argsToParams:r1,bindClickHandler:nr,clickCancel:t_,clickConfirm:tw,clickDeny:tx,enableLoading:t8,fire:r2,getActions:q,getCancelButton:F,getCloseButton:W,getConfirmButton:B,getContainer:E,getDenyButton:j,getFocusableElements:Y,getFooter:H,getHtmlContainer:P,getIcon:A,getIconContent:M,getImage:L,getInputLabel:U,getLoader:z,getPopup:T,getProgressSteps:D,getTimerLeft:r5,getTimerProgressBar:$,getTitle:R,getValidationMessage:N,increaseTimer:r7,isDeprecatedParameter:rL,isLoading:G,isTimerRunning:r9,isUpdatableParameter:rP,isValidParameter:rR,isVisible:tb,mixin:r4,off:na,on:no,once:ns,resumeTimer:r6,showLoading:t8,stopTimer:r8,toggleTimer:r3});class nu{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){let t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}let nl=["swal-title","swal-html","swal-footer"],nh=e=>{let t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};let r=t.content;nb(r);let n=Object.assign(nd(r),nf(r),np(r),ng(r),nm(r),nv(r),ny(r,nl));return n},nd=e=>{let t={},r=Array.from(e.querySelectorAll("swal-param"));return r.forEach(e=>{nw(e,["name","value"]);let r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(r in rI&&"boolean"==typeof rI[r]?t[r]="false"!==n:r in rI&&"object"==typeof rI[r]?t[r]=JSON.parse(n):t[r]=n)}),t},nf=e=>{let t={},r=Array.from(e.querySelectorAll("swal-function-param"));return r.forEach(e=>{let r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(t[r]=Function(`return ${n}`)())}),t},np=e=>{let t={},r=Array.from(e.querySelectorAll("swal-button"));return r.forEach(e=>{nw(e,["type","color","aria-label"]);let r=e.getAttribute("type");if(!r||!["confirm","cancel","deny"].includes(r))return;t[`${r}ButtonText`]=e.innerHTML,t[`show${g(r)}Button`]=!0;let n=e.getAttribute("color");null!==n&&(t[`${r}ButtonColor`]=n);let i=e.getAttribute("aria-label");null!==i&&(t[`${r}ButtonAriaLabel`]=i)}),t},ng=e=>{let t={},r=e.querySelector("swal-image");if(r){nw(r,["src","width","height","alt"]);let e=r.getAttribute("src");null!==e&&(t.imageUrl=e||void 0);let n=r.getAttribute("width");null!==n&&(t.imageWidth=n||void 0);let i=r.getAttribute("height");null!==i&&(t.imageHeight=i||void 0);let o=r.getAttribute("alt");null!==o&&(t.imageAlt=o||void 0)}return t},nm=e=>{let t={},r=e.querySelector("swal-icon");return r&&(nw(r,["type","color"]),r.hasAttribute("type")&&(t.icon=r.getAttribute("type")),r.hasAttribute("color")&&(t.iconColor=r.getAttribute("color")),t.iconHtml=r.innerHTML),t},nv=e=>{let t={},r=e.querySelector("swal-input");r&&(nw(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));let n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(e=>{nw(e,["value"]);let r=e.getAttribute("value");if(!r)return;let n=e.innerHTML;t.inputOptions[r]=n})),t},ny=(e,t)=>{let r={};for(let n in t){let i=t[n],o=e.querySelector(i);o&&(nw(o,[]),r[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return r},nb=e=>{let t=nl.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{let r=e.tagName.toLowerCase();t.includes(r)||m(`Unrecognized element <${r}>`)})},nw=(e,t)=>{Array.from(e.attributes).forEach(r=>{-1===t.indexOf(r.name)&&m([`Unrecognized attribute "${r.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},nx=10,n_=e=>{var t,r;let n=E(),i=T();if(!n||!i)return;"function"==typeof e.willOpen&&e.willOpen(i),null==(t=s.eventEmitter)||t.emit("willOpen",i);let o=window.getComputedStyle(document.body),a=o.overflowY;if(nE(n,i,e),setTimeout(()=>{nS(n,i)},nx),X()&&(nC(n,void 0!==e.scrollbarPadding&&e.scrollbarPadding,a),tD()),tF&&!1===e.backdrop&&i.scrollHeight>n.clientHeight&&(n.style.pointerEvents="auto"),J()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"==typeof e.didOpen){let t=e.didOpen;setTimeout(()=>t(i))}null==(r=s.eventEmitter)||r.emit("didOpen",i)},nk=e=>{let t=T();if(!t||e.target!==t)return;let r=E();r&&(t.removeEventListener("animationend",nk),t.removeEventListener("transitionend",nk),r.style.overflowY="auto",eo(r,h["no-transition"]))},nS=(e,t)=>{ev(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",nk),t.addEventListener("transitionend",nk)):e.style.overflowY="auto"},nC=(e,t,r)=>{tj(),t&&"hidden"!==r&&tY(r),setTimeout(()=>{e.scrollTop=0})},nE=(e,t,r)=>{var n;null!=(n=r.showClass)&&n.backdrop&&ei(e,r.showClass.backdrop),r.animation?(t.style.setProperty("opacity","0","important"),ec(t,"grid"),setTimeout(()=>{var e;null!=(e=r.showClass)&&e.popup&&ei(t,r.showClass.popup),t.style.removeProperty("opacity")},nx)):ec(t,"grid"),ei([document.documentElement,document.body],h.shown),r.heightAuto&&r.backdrop&&!r.toast&&ei([document.documentElement,document.body],h["height-auto"])};var nO={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 nI(e){e.inputValidator||("email"===e.input&&(e.inputValidator=nO["email"]),"url"===e.input&&(e.inputValidator=nO["url"]))}function nT(e){e.target&&("string"!=typeof e.target||document.querySelector(e.target))&&("string"==typeof e.target||e.target.appendChild)||(m('Target parameter is not valid, defaulting to "body"'),e.target="body")}function nA(e){nI(e),e.showLoaderOnConfirm&&!e.preConfirm&&m("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"),nT(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),eI(e)}let nM;var nR=new WeakMap;class nP{constructor(...e){if(n(this,nR,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"u"<typeof window)return;nM=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,i(nR,this,this._main(nM.params))}_main(e,t={}){if(rF(Object.assign({},t,e)),s.currentInstance){let e=tL.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:t}=s.currentInstance;s.currentInstance._destroy(),t||e({isDismissed:!0}),X()&&tN()}s.currentInstance=nM;let r=nD(e,t);nA(r),Object.freeze(r),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);let n=nN(nM);return ty(nM,r),eq.innerParams.set(nM,r),nL(nM,n,r)}then(e){return r(nR,this).then(e)}finally(e){return r(nR,this).finally(e)}}let nL=(e,t,r)=>new Promise((n,i)=>{let o=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};tL.swalPromiseResolve.set(e,n),tL.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{rc(e)},t.denyButton.onclick=()=>{ru(e)},t.cancelButton.onclick=()=>{rl(e,o)},t.closeButton.onclick=()=>{o(tk.close)},rV(r,t,o),tC(s,r,o),t3(e,r),n_(r),nB(s,r,o),nF(t,r),setTimeout(()=>{t.container.scrollTop=0})}),nD=(e,t)=>{let r=nh(e),n=Object.assign({},rI,t,r,e);return n.showClass=Object.assign({},rI.showClass,n.showClass),n.hideClass=Object.assign({},rI.hideClass,n.hideClass),!1===n.animation&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},nN=e=>{let t={popup:T(),container:E(),actions:q(),confirmButton:B(),denyButton:j(),cancelButton:F(),loader:z(),closeButton:W(),validationMessage:N(),progressSteps:D()};return eq.domCache.set(e,t),t},nB=(e,t,r)=>{let n=$();eu(n),t.timer&&(e.timeout=new nu(()=>{r("timer"),delete e.timeout},t.timer),t.timerProgressBar&&n&&(ec(n),ee(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ey(t.timer)})))},nF=(e,t)=>{if(!t.toast){if(!x(t.allowEnterKey)){w("allowEnterKey","preConfirm: () => false"),e.popup.focus();return}nj(e)||nU(e,t)||tE(-1,1)}},nj=e=>{let t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(let e of t)if(e instanceof HTMLElement&&ef(e))return e.focus(),!0;return!1},nU=(e,t)=>t.focusDeny&&ef(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ef(e.cancelButton)?(e.cancelButton.focus(),!0):!!(t.focusConfirm&&ef(e.confirmButton))&&(e.confirmButton.focus(),!0);nP.prototype.disableButtons=rk,nP.prototype.enableButtons=r_,nP.prototype.getInput=rb,nP.prototype.disableInput=rC,nP.prototype.enableInput=rS,nP.prototype.hideLoading=rv,nP.prototype.disableLoading=rv,nP.prototype.showValidationMessage=rE,nP.prototype.resetValidationMessage=rO,nP.prototype.close=tK,nP.prototype.closePopup=tK,nP.prototype.closeModal=tK,nP.prototype.closeToast=tK,nP.prototype.rejectPromise=tQ,nP.prototype.update=rj,nP.prototype._destroy=rz,Object.assign(nP,nc),Object.keys(rW).forEach(e=>{nP[e]=function(...t){if(nM&&nM[e])return nM[e](...t)}}),nP.DismissReason=tk,nP.version="11.26.25";let nz=nP;return nz.default=nz,nz}),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"u">typeof document&&function(e,t){var r=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=t);else try{r.innerHTML=t}catch(e){r.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:auto}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}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:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:auto}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}')},891:function(){}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}!function(){r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,{a:t}),t}}(),function(){r.d=function(e,t,n){var i=function(t,n){for(var i in t)if(r.o(t,i)&&!r.o(e,i)){var o={enumerable:!0};o[n]=t[i],Object.defineProperty(e,i,o)}};i(t,"get"),i(n,"value")}}(),function(){r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var n={};return!function(){"use strict";r.r(n),r.d(n,{AlertService:function(){return t},DataModifierService:function(){return o},DraggableService:function(){return a},EventBus:function(){return cJ},HTTPBaseService:function(){return aI},HelperService:function(){return e},HttpProcess:function(){return i},MixpanelService:function(){return I_},ShrEventBus:function(){return cG},ShrPusherService:function(){return c0},default:function(){return Ik}});var e={};r.r(e),r.d(e,{allowOnlyNumber:function(){return iR},allowedDecimalPlaces:function(){return iP},customPasswordValidator:function(){return iM},dateFormatter:function(){return iF},decrypt:function(){return i_},decryptWithPrivateKey:function(){return iS},encrypt:function(){return ix},encryptWithPublicKey:function(){return ik},fromNow:function(){return iU},getBgColorFromName:function(){return ib},getLocalStorageItem:function(){return iE},getObjectProperty:function(){return iv},getSessionStorageItem:function(){return iT},getTextColorFromName:function(){return iw},highlightText:function(){return iL},httpBuildQuery:function(){return iN},imageExists:function(){return iD},isArray:function(){return ih},isEmptyObj:function(){return im},isFunction:function(){return id},isObject:function(){return ip},isString:function(){return il},loadRemoteEmbeddable:function(){return ij},numberFormat:function(){return iz},removeLocalStorageItem:function(){return iO},removeSessionStorageItem:function(){return iA},setLocalStorageItem:function(){return iC},setObjectProperty:function(){return iy},setSessionStorageItem:function(){return iI},ucFirst:function(){return ig},uuid:function(){return iB}});var t={};r.r(t),r.d(t,{alert:function(){return ag},fire:function(){return ap},toast:function(){return am}});var i={};r.r(i),r.d(i,{makeRequest:function(){return cV},makeRequestToExecute:function(){return cY}});var o={};r.r(o),r.d(o,{alterUsersForProfileStrip:function(){return cX}});let s={enableDragSort:e=>{window.onload=()=>{let t=document.querySelectorAll(e);Array.prototype.map.call(t,r=>{s.enableDragList(r),shrSafeLog(e,t)})}},enableDragList:e=>{Array.prototype.map.call(e.children,e=>{s.enableDragItem(e)})},enableDragItem:e=>{e.setAttribute("draggable",new Boolean(!0).toString()),e.ondrag=s.handleDrag,e.ondragend=s.handleDrop},handleDrag:e=>{let t=e.target,r=t.parentNode,n=e.clientX,i=e.clientY;t.classList.add("drag-sort-active");let o=null===document.elementFromPoint(n,i)?t:document.elementFromPoint(n,i);r===o?.parentNode&&(o=o!==t.nextSibling?o:o.nextSibling,r?.insertBefore(t,o))},handleDrop:e=>{e.target?.classList.remove("drag-sort-active")}};var a=s,c=r(6660),u=r.n(c);function l(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)"__proto__"!==n&&(e[n]=r[n])}return e}var h={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function d(e,t){function r(r,n,i){if("u">typeof document){"number"==typeof(i=l({},t,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=r+"="+e.write(n,r)+o}}return Object.create({set:r,get:function(t){if("u">typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(a in n||(n[a]=e.read(s,a)),t===a)break}catch(e){}}return t?n[t]:n}},remove:function(e,t){r(e,"",l({},t,{expires:-1}))},withAttributes:function(e){return d(this.converter,l({},this.attributes,e))},withConverter:function(e){return d(l({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var f=d(h,{path:"/"}),p="object"==typeof global&&global&&global.Object===Object&&global,g=p,m="object"==typeof self&&self&&self.Object===Object&&self,v=g||m||Function("return this")(),y=v,b=y.Symbol,w=b,x=Object.prototype,_=x.hasOwnProperty,k=x.toString,S=w?w.toStringTag:void 0;function C(e){var t=_.call(e,S),r=e[S];try{e[S]=void 0;var n=!0}catch(e){}var i=k.call(e);return n&&(t?e[S]=r:delete e[S]),i}var E=C,O=Object.prototype,I=O.toString;function T(e){return I.call(e)}var A=T,M="[object Null]",R="[object Undefined]",P=w?w.toStringTag:void 0;function L(e){return null==e?void 0===e?R:M:P&&P in Object(e)?E(e):A(e)}var D=L;function N(e,t){return function(r){return e(t(r))}}var B=N,F=B(Object.getPrototypeOf,Object),j=F;function U(e){return null!=e&&"object"==typeof e}var z=U,q="[object Object]",H=Function.prototype,$=Object.prototype,W=H.toString,V=$.hasOwnProperty,Y=W.call(Object);function X(e){if(!z(e)||D(e)!=q)return!1;var t=j(e);if(null===t)return!0;var r=V.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&W.call(r)==Y}var J=X,G=Array.isArray,K=G,Z="[object Symbol]";function Q(e){return"symbol"==typeof e||z(e)&&D(e)==Z}var ee=Q,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,er=/^\w*$/;function en(e,t){if(K(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||ee(e))||er.test(e)||!et.test(e)||null!=t&&e in Object(t)}var ei=en;function eo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var es=eo,ea="[object AsyncFunction]",ec="[object Function]",eu="[object GeneratorFunction]",el="[object Proxy]";function eh(e){if(!es(e))return!1;var t=D(e);return t==ec||t==eu||t==ea||t==el}var ed=eh,ef=y["__core-js_shared__"],ep=ef,eg=function(){var e=/[^.]+$/.exec(ep&&ep.keys&&ep.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function em(e){return!!eg&&eg in e}var ev=em,ey=Function.prototype,eb=ey.toString;function ew(e){if(null!=e){try{return eb.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ex=ew,e_=/[\\^$.*+?()[\]{}|]/g,ek=/^\[object .+?Constructor\]$/,eS=Function.prototype,eC=Object.prototype,eE=eS.toString,eO=eC.hasOwnProperty,eI=RegExp("^"+eE.call(eO).replace(e_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eT(e){if(!es(e)||ev(e))return!1;var t=ed(e)?eI:ek;return t.test(ex(e))}var eA=eT;function eM(e,t){return null==e?void 0:e[t]}var eR=eM;function eP(e,t){var r=eR(e,t);return eA(r)?r:void 0}var eL=eP,eD=eL(Object,"create"),eN=eD;function eB(){this.__data__=eN?eN(null):{},this.size=0}var eF=eB;function ej(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}var eU=ej,ez="__lodash_hash_undefined__",eq=Object.prototype,eH=eq.hasOwnProperty;function e$(e){var t=this.__data__;if(eN){var r=t[e];return r===ez?void 0:r}return eH.call(t,e)?t[e]:void 0}var eW=e$,eV=Object.prototype,eY=eV.hasOwnProperty;function eX(e){var t=this.__data__;return eN?void 0!==t[e]:eY.call(t,e)}var eJ=eX,eG="__lodash_hash_undefined__";function eK(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=eN&&void 0===t?eG:t,this}var eZ=eK;function eQ(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}eQ.prototype.clear=eF,eQ.prototype["delete"]=eU,eQ.prototype.get=eW,eQ.prototype.has=eJ,eQ.prototype.set=eZ;var e0=eQ;function e1(){this.__data__=[],this.size=0}var e2=e1;function e4(e,t){return e===t||e!==e&&t!==t}var e5=e4;function e8(e,t){var r=e.length;while(r--)if(e5(e[r][0],t))return r;return -1}var e6=e8,e3=Array.prototype,e7=e3.splice;function e9(e){var t=this.__data__,r=e6(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():e7.call(t,r,1),--this.size,!0}var te=e9;function tt(e){var t=this.__data__,r=e6(t,e);return r<0?void 0:t[r][1]}var tr=tt;function tn(e){return e6(this.__data__,e)>-1}var ti=tn;function to(e,t){var r=this.__data__,n=e6(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ts=to;function ta(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}ta.prototype.clear=e2,ta.prototype["delete"]=te,ta.prototype.get=tr,ta.prototype.has=ti,ta.prototype.set=ts;var tc=ta,tu=eL(y,"Map"),tl=tu;function th(){this.size=0,this.__data__={hash:new e0,map:new(tl||tc),string:new e0}}var td=th;function tf(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var tp=tf;function tg(e,t){var r=e.__data__;return tp(t)?r["string"==typeof t?"string":"hash"]:r.map}var tm=tg;function tv(e){var t=tm(this,e)["delete"](e);return this.size-=!!t,t}var ty=tv;function tb(e){return tm(this,e).get(e)}var tw=tb;function tx(e){return tm(this,e).has(e)}var t_=tx;function tk(e,t){var r=tm(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this}var tS=tk;function tC(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}tC.prototype.clear=td,tC.prototype["delete"]=ty,tC.prototype.get=tw,tC.prototype.has=t_,tC.prototype.set=tS;var tE=tC,tO="Expected a function";function tI(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError(tO);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(tI.Cache||tE),r}tI.Cache=tE;var tT=tI,tA=500;function tM(e){var t=tT(e,function(e){return r.size===tA&&r.clear(),e}),r=t.cache;return t}var tR=tM,tP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tL=/\\(\\)?/g,tD=tR(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(tP,function(e,r,n,i){t.push(n?i.replace(tL,"$1"):r||e)}),t}),tN=tD;function tB(e,t){var r=-1,n=null==e?0:e.length,i=Array(n);while(++r<n)i[r]=t(e[r],r,e);return i}var tF=tB,tj=1/0,tU=w?w.prototype:void 0,tz=tU?tU.toString:void 0;function tq(e){if("string"==typeof e)return e;if(K(e))return tF(e,tq)+"";if(ee(e))return tz?tz.call(e):"";var t=e+"";return"0"==t&&1/e==-tj?"-0":t}var tH=tq;function t$(e){return null==e?"":tH(e)}var tW=t$;function tV(e,t){return K(e)?e:ei(e,t)?[e]:tN(tW(e))}var tY=tV,tX=1/0;function tJ(e){if("string"==typeof e||ee(e))return e;var t=e+"";return"0"==t&&1/e==-tX?"-0":t}var tG=tJ;function tK(e,t){t=tY(t,e);var r=0,n=t.length;while(null!=e&&r<n)e=e[tG(t[r++])];return r&&r==n?e:void 0}var tZ=tK;function tQ(e,t,r){var n=null==e?void 0:tZ(e,t);return void 0===n?r:n}var t0=tQ,t1=function(){try{var e=eL(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),t2=t1;function t4(e,t,r){"__proto__"==t&&t2?t2(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var t5=t4,t8=Object.prototype,t6=t8.hasOwnProperty;function t3(e,t,r){var n=e[t];t6.call(e,t)&&e5(n,r)&&(void 0!==r||t in e)||t5(e,t,r)}var t7=t3,t9=0x1fffffffffffff,re=/^(?:0|[1-9]\d*)$/;function rt(e,t){var r=typeof e;return!!(t=null==t?t9:t)&&("number"==r||"symbol"!=r&&re.test(e))&&e>-1&&e%1==0&&e<t}var rr=rt;function rn(e,t,r,n){if(!es(e))return e;t=tY(t,e);var i=-1,o=t.length,s=o-1,a=e;while(null!=a&&++i<o){var c=tG(t[i]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)break;if(i!=s){var l=a[c];void 0===(u=n?n(l,c,a):void 0)&&(u=es(l)?l:rr(t[i+1])?[]:{})}t7(a,c,u),a=a[c]}return e}var ri=rn;function ro(e,t,r){return null==e?e:ri(e,t,r)}var rs=ro,ra=r(8705);let rc="AES-256-CBC",ru=parseInt(rc.match(/\d+/)?.[0]),rl=(e,t)=>{let r=ra.lib.WordArray.random(16),n=ra.lib.WordArray.random(256),i=999,o=ru/4,s=ra.PBKDF2(t,n,{hasher:ra.algo.SHA512,keySize:o/8,iterations:i}),a=ra.AES.encrypt(e,s,{mode:ra.mode.CBC,iv:r}),c=ra.enc.Base64.stringify(a.ciphertext),u={ciphertext:c,iv:ra.enc.Hex.stringify(r),salt:ra.enc.Hex.stringify(n),iterations:i};return ra.enc.Base64.stringify(ra.enc.Utf8.parse(JSON.stringify(u)))},rh=(e,t)=>{let r=JSON.parse(ra.enc.Utf8.stringify(ra.enc.Base64.parse(e))),n=ra.enc.Hex.parse(r.salt),i=ra.enc.Hex.parse(r.iv),o=r.ciphertext,s=parseInt(r.iterations);s<=0&&(s=999);let a=ru/4,c=ra.PBKDF2(t,n,{hasher:ra.algo.SHA512,keySize:a/8,iterations:s}),u=ra.AES.decrypt(o,c,{mode:ra.mode.CBC,iv:i});return u.toString(ra.enc.Utf8)},rd="-----BEGIN PUBLIC KEY-----",rf="-----END PUBLIC KEY-----",rp="-----BEGIN PRIVATE KEY-----",rg="-----END PRIVATE KEY-----",rm=()=>{if("u">typeof globalThis&&globalThis.crypto?.subtle)return globalThis.crypto.subtle;throw Error("Web Crypto API is not available in this environment")},rv=(e,t,r,n)=>{if(!e.includes(t)||!e.includes(r))throw Error(`Invalid ${n} key format: expected PEM`);let i=e.replace(t,"").replace(r,"").replace(/\s+/g,"");if("function"!=typeof atob)throw Error("Base64 decoding is not available in this environment");let o=atob(i),s=new Uint8Array(o.length);for(let e=0;e<o.length;e++)s[e]=o.charCodeAt(e);return s.buffer},ry=e=>{let t="",r=new Uint8Array(e);if(r.forEach(e=>{t+=String.fromCharCode(e)}),"function"!=typeof btoa)throw Error("Base64 encoding is not available in this environment");return btoa(t)},rb=e=>{if("function"!=typeof atob)throw Error("Base64 decoding is not available in this environment");let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer},rw=async(e,t)=>{let r=rm(),n="public"===t?rv(e,rd,rf,"public"):rv(e,rp,rg,"private");return r.importKey("public"===t?"spki":"pkcs8",n,{name:"RSA-OAEP",hash:"SHA-256"},!1,"public"===t?["encrypt"]:["decrypt"])},rx=async(e,t)=>{let r=rm(),n=await rw(t,"public"),i=new TextEncoder().encode(e),o=await r.encrypt({name:"RSA-OAEP"},n,i);return ry(o)},r_=async(e,t)=>{let r=rm(),n=await rw(t,"private"),i=rb(e),o=await r.decrypt({name:"RSA-OAEP"},n,i);return new TextDecoder().decode(o)};var rk={encrypt:rl,decrypt:rh,encryptWithPublicKey:rx,decryptWithPrivateKey:r_};function rS(e){return(rS="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})(e)}function rC(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function rE(e){return rC(1,arguments),e instanceof Date||"object"===rS(e)&&"[object Date]"===Object.prototype.toString.call(e)}function rO(e){rC(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===rS(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"u">typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}function rI(e){if(rC(1,arguments),!rE(e)&&"number"!=typeof e)return!1;var t=rO(e);return!isNaN(Number(t))}function rT(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function rA(e,t){rC(2,arguments);var r=rO(e).getTime(),n=rT(t);return new Date(r+n)}function rM(e,t){rC(2,arguments);var r=rT(t);return rA(e,-r)}var rR=864e5;function rP(e){rC(1,arguments);var t=rO(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/rR)+1}function rL(e){rC(1,arguments);var t=1,r=rO(e),n=r.getUTCDay(),i=7*(n<t)+n-t;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function rD(e){rC(1,arguments);var t=rO(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=rL(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var s=rL(o);return t.getTime()>=i.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function rN(e){rC(1,arguments);var t=rD(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=rL(r);return n}var rB=6048e5;function rF(e){rC(1,arguments);var t=rO(e),r=rL(t).getTime()-rN(t).getTime();return Math.round(r/rB)+1}var rj={};function rU(){return rj}function rz(e,t){var r,n,i,o,s,a,c,u;rC(1,arguments);var l=rU(),h=rT(null!=(r=null!=(n=null!=(i=null!=(o=null==t?void 0:t.weekStartsOn)?o:null==t||null==(s=t.locale)||null==(a=s.options)?void 0:a.weekStartsOn)?i:l.weekStartsOn)?n:null==(c=l.locale)||null==(u=c.options)?void 0:u.weekStartsOn)?r:0);if(!(h>=0&&h<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=rO(e),f=d.getUTCDay(),p=7*(f<h)+f-h;return d.setUTCDate(d.getUTCDate()-p),d.setUTCHours(0,0,0,0),d}function rq(e,t){var r,n,i,o,s,a,c,u;rC(1,arguments);var l=rO(e),h=l.getUTCFullYear(),d=rU(),f=rT(null!=(r=null!=(n=null!=(i=null!=(o=null==t?void 0:t.firstWeekContainsDate)?o:null==t||null==(s=t.locale)||null==(a=s.options)?void 0:a.firstWeekContainsDate)?i:d.firstWeekContainsDate)?n:null==(c=d.locale)||null==(u=c.options)?void 0:u.firstWeekContainsDate)?r:1);if(!(f>=1&&f<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(h+1,0,f),p.setUTCHours(0,0,0,0);var g=rz(p,t),m=new Date(0);m.setUTCFullYear(h,0,f),m.setUTCHours(0,0,0,0);var v=rz(m,t);return l.getTime()>=g.getTime()?h+1:l.getTime()>=v.getTime()?h:h-1}function rH(e,t){var r,n,i,o,s,a,c,u;rC(1,arguments);var l=rU(),h=rT(null!=(r=null!=(n=null!=(i=null!=(o=null==t?void 0:t.firstWeekContainsDate)?o:null==t||null==(s=t.locale)||null==(a=s.options)?void 0:a.firstWeekContainsDate)?i:l.firstWeekContainsDate)?n:null==(c=l.locale)||null==(u=c.options)?void 0:u.firstWeekContainsDate)?r:1),d=rq(e,t),f=new Date(0);f.setUTCFullYear(d,0,h),f.setUTCHours(0,0,0,0);var p=rz(f,t);return p}var r$=6048e5;function rW(e,t){rC(1,arguments);var r=rO(e),n=rz(r,t).getTime()-rH(r,t).getTime();return Math.round(n/r$)+1}function rV(e,t){var r=e<0?"-":"",n=Math.abs(e).toString();while(n.length<t)n="0"+n;return r+n}var rY={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return rV("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):rV(r+1,2)},d:function(e,t){return rV(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return rV(e.getUTCHours()%12||12,t.length)},H:function(e,t){return rV(e.getUTCHours(),t.length)},m:function(e,t){return rV(e.getUTCMinutes(),t.length)},s:function(e,t){return rV(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,r-3));return rV(i,t.length)}},rX=rY,rJ={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},rG={G:function(e,t,r){var n=+(e.getUTCFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return rX.y(e,t)},Y:function(e,t,r,n){var i=rq(e,n),o=i>0?i:1-i;if("YY"===t){var s=o%100;return rV(s,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):rV(o,t.length)},R:function(e,t){var r=rD(e);return rV(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return rV(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return rV(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return rV(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return rX.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return rV(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var i=rW(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):rV(i,t.length)},I:function(e,t,r){var n=rF(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):rV(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):rX.d(e,t)},D:function(e,t,r){var n=rP(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):rV(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return rV(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return rV(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return rV(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours(),i=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n=e.getUTCHours(),i;switch(i=12===n?rJ.noon:0===n?rJ.midnight:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n=e.getUTCHours(),i;switch(i=n>=17?rJ.evening:n>=12?rJ.afternoon:n>=4?rJ.morning:rJ.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return rX.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):rX.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):rV(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):rV(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):rX.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):rX.s(e,t)},S:function(e,t){return rX.S(e,t)},X:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return rZ(o);case"XXXX":case"XX":return rQ(o);case"XXXXX":case"XXX":default:return rQ(o,":")}},x:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return rZ(o);case"xxxx":case"xx":return rQ(o);case"xxxxx":case"xxx":default:return rQ(o,":")}},O:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+rK(o,":");case"OOOO":default:return"GMT"+rQ(o,":")}},z:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+rK(o,":");case"zzzz":default:return"GMT"+rQ(o,":")}},t:function(e,t,r,n){var i=n._originalDate||e,o=Math.floor(i.getTime()/1e3);return rV(o,t.length)},T:function(e,t,r,n){var i=n._originalDate||e,o=i.getTime();return rV(o,t.length)}};function rK(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(0===o)return r+String(i);var s=t||"";return r+String(i)+s+rV(o,2)}function rZ(e,t){if(e%60===0){var r=e>0?"-":"+";return r+rV(Math.abs(e)/60,2)}return rQ(e,t)}function rQ(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),o=rV(Math.floor(i/60),2),s=rV(i%60,2);return n+o+r+s}var r0=rG,r1=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},r2=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},r4=function(e,t){var r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return r1(e,t);var o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",r1(n,t)).replace("{{time}}",r2(i,t))},r5={p:r2,P:r4},r8=r5;function r6(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var r3=["D","DD"],r7=["YY","YYYY"];function r9(e){return -1!==r3.indexOf(e)}function ne(e){return -1!==r7.indexOf(e)}function nt(e,t,r){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var nr={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},nn=function(e,t,r){var n,i=nr[e];if(n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix)if(r.comparison&&r.comparison>0)return"in "+n;else return n+" ago";return n},ni=nn;function no(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var ns={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},na={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},nc={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nu={date:no({formats:ns,defaultWidth:"full"}),time:no({formats:na,defaultWidth:"full"}),dateTime:no({formats:nc,defaultWidth:"full"})},nl=nu,nh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},nd=function(e,t,r,n){return nh[e]},nf=nd;function np(e){return function(t,r){var n=null!=r&&r.context?String(r.context):"standalone",i;if("formatting"===n&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=null!=r&&r.width?String(r.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,c=null!=r&&r.width?String(r.width):e.defaultWidth;i=e.values[c]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var ng={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nm={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nv={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ny={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},nb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},nx=function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},n_={ordinalNumber:nx,era:np({values:ng,defaultWidth:"wide"}),quarter:np({values:nm,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:np({values:nv,defaultWidth:"wide"}),day:np({values:ny,defaultWidth:"wide"}),dayPeriod:np({values:nb,defaultWidth:"wide",formattingValues:nw,defaultFormattingWidth:"wide"})},nk=n_;function nS(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(a)?nE(a,function(e){return e.test(s)}):nC(a,function(e){return e.test(s)}),u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;var l=t.slice(s.length);return{value:u,rest:l}}}function nC(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function nE(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function nO(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=r.valueCallback?r.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var nI=/^(\d+)(th|st|nd|rd)?/i,nT=/\d+/i,nA={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},nM={any:[/^b/i,/^(a|c)/i]},nR={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nP={any:[/1/i,/2/i,/3/i,/4/i]},nL={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},nD={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},nN={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},nB={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},nF={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},nj={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},nU={ordinalNumber:nO({matchPattern:nI,parsePattern:nT,valueCallback:function(e){return parseInt(e,10)}}),era:nS({matchPatterns:nA,defaultMatchWidth:"wide",parsePatterns:nM,defaultParseWidth:"any"}),quarter:nS({matchPatterns:nR,defaultMatchWidth:"wide",parsePatterns:nP,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:nS({matchPatterns:nL,defaultMatchWidth:"wide",parsePatterns:nD,defaultParseWidth:"any"}),day:nS({matchPatterns:nN,defaultMatchWidth:"wide",parsePatterns:nB,defaultParseWidth:"any"}),dayPeriod:nS({matchPatterns:nF,defaultMatchWidth:"any",parsePatterns:nj,defaultParseWidth:"any"})},nz=nU,nq={code:"en-US",formatDistance:ni,formatLong:nl,formatRelative:nf,localize:nk,match:nz,options:{weekStartsOn:0,firstWeekContainsDate:1}},nH=nq,n$=nH,nW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nV=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nY=/^'([^]*?)'?$/,nX=/''/g,nJ=/[a-zA-Z]/;function nG(e,t,r){var n,i,o,s,a,c,u,l,h,d,f,p,g,m,v,y,b,w;rC(2,arguments);var x=String(t),_=rU(),k=null!=(n=null!=(i=null==r?void 0:r.locale)?i:_.locale)?n:n$,S=rT(null!=(o=null!=(s=null!=(a=null!=(c=null==r?void 0:r.firstWeekContainsDate)?c:null==r||null==(u=r.locale)||null==(l=u.options)?void 0:l.firstWeekContainsDate)?a:_.firstWeekContainsDate)?s:null==(h=_.locale)||null==(d=h.options)?void 0:d.firstWeekContainsDate)?o:1);if(!(S>=1&&S<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=rT(null!=(f=null!=(p=null!=(g=null!=(m=null==r?void 0:r.weekStartsOn)?m:null==r||null==(v=r.locale)||null==(y=v.options)?void 0:y.weekStartsOn)?g:_.weekStartsOn)?p:null==(b=_.locale)||null==(w=b.options)?void 0:w.weekStartsOn)?f:0);if(!(C>=0&&C<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw RangeError("locale must contain localize property");if(!k.formatLong)throw RangeError("locale must contain formatLong property");var E=rO(e);if(!rI(E))throw RangeError("Invalid time value");var O=r6(E),I=rM(E,O),T={firstWeekContainsDate:S,weekStartsOn:C,locale:k,_originalDate:E},A=x.match(nV).map(function(e){var t=e[0];if("p"===t||"P"===t){var r=r8[t];return r(e,k.formatLong)}return e}).join("").match(nW).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return nK(n);var o=r0[i];if(o)return!(null!=r&&r.useAdditionalWeekYearTokens)&&ne(n)&&nt(n,t,String(e)),!(null!=r&&r.useAdditionalDayOfYearTokens)&&r9(n)&&nt(n,t,String(e)),o(I,n,k.localize,T);if(i.match(nJ))throw RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("");return A}function nK(e){var t=e.match(nY);return t?t[1].replace(nX,"'"):e}function nZ(e,t){rC(2,arguments);var r=rO(e),n=rO(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function nQ(e,t){rC(2,arguments);var r=rO(e),n=rO(t),i=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return 12*i+o}function n0(e){rC(1,arguments);var t=rO(e);return t.setHours(23,59,59,999),t}function n1(e){rC(1,arguments);var t=rO(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function n2(e){rC(1,arguments);var t=rO(e);return n0(t).getTime()===n1(t).getTime()}function n4(e,t){rC(2,arguments);var r=rO(e),n=rO(t),i=nZ(r,n),o=Math.abs(nQ(r,n)),s;if(o<1)s=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);var a=nZ(r,n)===-i;n2(rO(e))&&1===o&&1===nZ(e,n)&&(a=!1),s=i*(o-Number(a))}return 0===s?0:s}function n5(e,t){return rC(2,arguments),rO(e).getTime()-rO(t).getTime()}var n8={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},n6="trunc";function n3(e){return e?n8[e]:n8[n6]}function n7(e,t,r){rC(2,arguments);var n=n5(e,t)/1e3;return n3(null==r?void 0:r.roundingMethod)(n)}function n9(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function ie(e){return n9({},e)}var it=1440,ir=2520,ii=43200,io=86400;function is(e,t,r){var n,i;rC(2,arguments);var o=rU(),s=null!=(n=null!=(i=null==r?void 0:r.locale)?i:o.locale)?n:n$;if(!s.formatDistance)throw RangeError("locale must contain formatDistance property");var a=nZ(e,t);if(isNaN(a))throw RangeError("Invalid time value");var c=n9(ie(r),{addSuffix:!!(null==r?void 0:r.addSuffix),comparison:a}),u,l;a>0?(u=rO(t),l=rO(e)):(u=rO(e),l=rO(t));var h=n7(l,u),d=(r6(l)-r6(u))/1e3,f=Math.round((h-d)/60),p;if(f<2)if(null!=r&&r.includeSeconds)if(h<5)return s.formatDistance("lessThanXSeconds",5,c);else if(h<10)return s.formatDistance("lessThanXSeconds",10,c);else if(h<20)return s.formatDistance("lessThanXSeconds",20,c);else if(h<40)return s.formatDistance("halfAMinute",0,c);else if(h<60)return s.formatDistance("lessThanXMinutes",1,c);else return s.formatDistance("xMinutes",1,c);else if(0===f)return s.formatDistance("lessThanXMinutes",1,c);else return s.formatDistance("xMinutes",f,c);if(f<45)return s.formatDistance("xMinutes",f,c);if(f<90)return s.formatDistance("aboutXHours",1,c);if(f<it){var g=Math.round(f/60);return s.formatDistance("aboutXHours",g,c)}if(f<ir)return s.formatDistance("xDays",1,c);else if(f<ii){var m=Math.round(f/it);return s.formatDistance("xDays",m,c)}else if(f<io)return p=Math.round(f/ii),s.formatDistance("aboutXMonths",p,c);if((p=n4(l,u))<12){var v=Math.round(f/ii);return s.formatDistance("xMonths",v,c)}var y=p%12,b=Math.floor(p/12);return y<3?s.formatDistance("aboutXYears",b,c):y<9?s.formatDistance("overXYears",b,c):s.formatDistance("almostXYears",b+1,c)}function ia(e,t){return rC(1,arguments),is(e,Date.now(),t)}let ic=new Map,iu=new Map,il=e=>"string"==typeof e||e instanceof String,ih=e=>Array.isArray(e),id=e=>"function"==typeof e,ip=e=>!!e&&e.constructor===Object,ig=e=>e[0].toUpperCase()+e.substring(1).toLowerCase(),im=e=>J(e)&&!Object.keys(e).length,iv=(e,t,r)=>{let n=t0(e,t,r);return n||r},iy=(e,t,r)=>rs(e,t,r),ib=e=>{let t=0;e.split("").forEach(e=>{t=e.charCodeAt(0)+((t<<5)-t)});let r="#";for(let e=0;e<3;e++){let n=t>>8*e&255;r+=n.toString(16).padStart(2,"0")}return r},iw=(e,t="#FFFFFF",r="#000000")=>{let n=ib(e),i="#"===n.charAt(0)?n.substring(1,7):n,o=parseInt(i.substring(0,2),16),s=parseInt(i.substring(2,4),16),a=parseInt(i.substring(4,6),16),c=[o/255,s/255,a/255],u=c.map(e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)),l=.2126*u[0]+.7152*u[1]+.0722*u[2];return l>.179?r:t},ix=(e,t="")=>rk.encrypt(e,t),i_=(e,t="")=>rk.decrypt(e,t),ik=async(e,t)=>await rk.encryptWithPublicKey(e,t),iS=async(e,t)=>await rk.decryptWithPrivateKey(e,t),iC=(e,t,r="production",n="")=>{ic.set(e,JSON.stringify(t));try{"production"===r?localStorage.setItem(e,ix(JSON.stringify(t),n)):localStorage.setItem(e,JSON.stringify(t))}catch{}},iE=(e,t="production",r="")=>{if(ic.has(e))return JSON.parse(ic.get(e));try{let n=localStorage.getItem(e);if(null==n)return null;let i;if("production"===t)try{i=JSON.parse(i_(n,r))}catch{try{i=JSON.parse(i_(n))}catch{i=JSON.parse(n)}}else i=JSON.parse(n);return ic.set(e,JSON.stringify(i)),i}catch{try{localStorage.removeItem(e)}catch{}return null}},iO=e=>{ic.delete(e);try{localStorage.removeItem(e)}catch{}},iI=(e,t,r="production",n="")=>{iu.set(e,JSON.stringify(t));try{"production"===r?sessionStorage.setItem(e,ix(JSON.stringify(t),n)):sessionStorage.setItem(e,JSON.stringify(t))}catch{}},iT=(e,t="production",r="")=>{if(iu.has(e))return JSON.parse(iu.get(e));try{let n=sessionStorage.getItem(e);if(null==n)return null;let i;if("production"===t)try{i=JSON.parse(i_(n,r))}catch{try{i=JSON.parse(i_(n))}catch{i=JSON.parse(n)}}else i=JSON.parse(n);return iu.set(e,JSON.stringify(i)),i}catch{try{sessionStorage.removeItem(e)}catch{}return null}},iA=e=>{iu.delete(e);try{sessionStorage.removeItem(e)}catch{}},iM=e=>{let t=/[A-Z]/.test(e),r=/[a-z]/.test(e),n=/[0-9]/.test(e),i=/[#?!@$%^&*-]/.test(e);return t&&r&&n&&i},iR=e=>{if("paste"==(e=e||window.event).type){let t=e,r=t.clipboardData?.getData("Text");return!isNaN(r)||t.preventDefault()}{let t=e,r=t.which?t.which:t.keyCode;return!(r>31)||!(r<48)&&!(r>57)||46===r||t.preventDefault()}},iP=(e,t)=>{if("paste"==(e=e||window.event).type){let r=e,n=r.clipboardData?.getData("Text"),i=n?.indexOf(".");return!(n.split(".").length>2)&&(!(t<=0)||2!==n.split(".").length)&&(2!==n.split(".").length||i+1==n.length-t)||r.preventDefault()}{let r=e,n=r.which?r.which:r.keyCode;if(t<=0)return(!["keyup","keydown"].includes(e.type)||190!==n)&&("keypress"!=r.type||46!==n)||r.preventDefault();{let e=r.target,i=e.value,o=i.indexOf(".");return(!(o>=0)||!(o<i.length-t))&&(46!==n||2!==i.split(".").length)||r.preventDefault()}}},iL=(e,t,r="success")=>e.replace(RegExp(t,"gi"),e=>`<span class='text-${r}'>${e}</span>`),iD=(e,t)=>{let r=new Image;if(r.src=e,r.complete)return t?.(!0),!0;r.onload=()=>(t?.(!0),!0),r.onerror=()=>(t?.(!1),!1)},iN=e=>{let t=encodeURIComponent,r=Object.keys(e).map(r=>t(r)+"="+t(e[r])).join("&");return r},iB=(e,t)=>{let r=e||"";return r+=Math.random().toString(36).substring(2,8)+Math.random().toString(36).substring(2,8),r+=t||""},iF=(e,t="dd-MM-yyyy")=>nG(new Date(e),t),ij=e=>(window.__LOADED_EMBEDDABLES__||(window.__LOADED_EMBEDDABLES__=new Set),window.__LOADED_EMBEDDABLES__.has(e))?Promise.resolve({}):Function("u","return import(u)")(e).then(t=>(window.__LOADED_EMBEDDABLES__.add(e),t)),iU=e=>ia(new Date(e),{addSuffix:!0}),iz=(e,t,r,n)=>{t=t||0,"string"==typeof e&&(e=parseFloat(e)),r&&n||(r=".",n=",");let i=Math.round(Math.abs(e)*Math.pow(10,t))+"";i=1>e&&-1<e&&i.length<=t?Array(t-i.length+1).join("0")+i:i;let o=t?i.slice(0,-1*t):i.slice(0),s=parseInt(o)||0;o=0==s?"0":o;let a=t?i.slice(-1*t):"",c="";while(o.length>3)c=n+o.slice(-3)+c,o=o.slice(0,-3);return(e<0?"-":"")+o+c+(a?r+a:"")},iq=new Map,iH="@accessToken",i$="idms_token",iW="@refreshToken";class iV{encryptionKey;constructor(e){e="",this.encryptionKey=e}get(e){if(iq.has(e))return JSON.parse(iq.get(e));let t=f.get(e);if(!t)return;let r="";try{r=JSON.parse(i_(t,this.encryptionKey))}catch{f.remove(e);return}return iq.set(e,JSON.stringify(r)),r}set(e,t,r){iq.set(e,JSON.stringify(t)),t=ix(JSON.stringify(t),this.encryptionKey),f.set(e,t,r)}remove(e,t){iq.delete(e),f.remove(e,t)}getToken(){return this.get(iH)}saveToken(e,t){this.set(iH,e,t)}removeToken(e){this.remove(iH,e)}removeLocalStorageToken(){iO(i$)}getRefreshToken(){return this.get(iW)}saveRefreshToken(e){this.set(iW,e)}removeRefreshToken(e){this.remove(iW,e)}clearAll(){Object.keys(f.get()).forEach(e=>{f.remove(e),f.remove(e,{path:"/"})}),iq.clear()}}var iY=iV,iX=r(6586),iJ=r.n(iX);function iG(){this.__data__=new tc,this.size=0}var iK=iG;function iZ(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}var iQ=iZ;function i0(e){return this.__data__.get(e)}var i1=i0;function i2(e){return this.__data__.has(e)}var i4=i2,i5=200;function i8(e,t){var r=this.__data__;if(r instanceof tc){var n=r.__data__;if(!tl||n.length<i5-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new tE(n)}return r.set(e,t),this.size=r.size,this}var i6=i8;function i3(e){var t=this.__data__=new tc(e);this.size=t.size}i3.prototype.clear=iK,i3.prototype["delete"]=iQ,i3.prototype.get=i1,i3.prototype.has=i4,i3.prototype.set=i6;var i7=i3;function i9(e,t,r){(void 0===r||e5(e[t],r))&&(void 0!==r||t in e)||t5(e,t,r)}var oe=i9;function ot(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var c=s[e?a:++i];if(!1===r(o[c],c,o))break}return t}}var or=ot,on=or(),oi=on,oo="object"==typeof exports&&exports&&!exports.nodeType&&exports,os=oo&&"object"==typeof module&&module&&!module.nodeType&&module,oa=os&&os.exports===oo,oc=oa?y.Buffer:void 0,ou=oc?oc.allocUnsafe:void 0;function ol(e,t){if(t)return e.slice();var r=e.length,n=ou?ou(r):new e.constructor(r);return e.copy(n),n}var oh=ol,od=y.Uint8Array,of=od;function op(e){var t=new e.constructor(e.byteLength);return new of(t).set(new of(e)),t}var og=op;function om(e,t){var r=t?og(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ov=om;function oy(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}var ob=oy,ow=Object.create,ox=function(){function e(){}return function(t){if(!es(t))return{};if(ow)return ow(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),o_=ox,ok=Object.prototype;function oS(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||ok;return e===r}var oC=oS;function oE(e){return"function"!=typeof e.constructor||oC(e)?{}:o_(j(e))}var oO=oE,oI="[object Arguments]";function oT(e){return z(e)&&D(e)==oI}var oA=oT,oM=Object.prototype,oR=oM.hasOwnProperty,oP=oM.propertyIsEnumerable,oL=oA(function(){return arguments}())?oA:function(e){return z(e)&&oR.call(e,"callee")&&!oP.call(e,"callee")},oD=oL,oN=0x1fffffffffffff;function oB(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=oN}var oF=oB;function oj(e){return null!=e&&oF(e.length)&&!ed(e)}var oU=oj;function oz(e){return z(e)&&oU(e)}var oq=oz;function oH(){return!1}var o$=oH,oW="object"==typeof exports&&exports&&!exports.nodeType&&exports,oV=oW&&"object"==typeof module&&module&&!module.nodeType&&module,oY=oV&&oV.exports===oW,oX=oY?y.Buffer:void 0,oJ=oX?oX.isBuffer:void 0,oG=oJ||o$,oK=oG,oZ="[object Arguments]",oQ="[object Array]",o0="[object Boolean]",o1="[object Date]",o2="[object Error]",o4="[object Function]",o5="[object Map]",o8="[object Number]",o6="[object Object]",o3="[object RegExp]",o7="[object Set]",o9="[object String]",se="[object WeakMap]",st="[object ArrayBuffer]",sr="[object DataView]",sn="[object Float32Array]",si="[object Float64Array]",so="[object Int8Array]",ss="[object Int16Array]",sa="[object Int32Array]",sc="[object Uint8Array]",su="[object Uint8ClampedArray]",sl="[object Uint16Array]",sh="[object Uint32Array]",sd={};function sf(e){return z(e)&&oF(e.length)&&!!sd[D(e)]}sd[sn]=sd[si]=sd[so]=sd[ss]=sd[sa]=sd[sc]=sd[su]=sd[sl]=sd[sh]=!0,sd[oZ]=sd[oQ]=sd[st]=sd[o0]=sd[sr]=sd[o1]=sd[o2]=sd[o4]=sd[o5]=sd[o8]=sd[o6]=sd[o3]=sd[o7]=sd[o9]=sd[se]=!1;var sp=sf;function sg(e){return function(t){return e(t)}}var sm=sg,sv="object"==typeof exports&&exports&&!exports.nodeType&&exports,sy=sv&&"object"==typeof module&&module&&!module.nodeType&&module,sb=sy&&sy.exports===sv,sw=sb&&g.process,sx=function(){try{var e=sy&&sy.require&&sy.require("util").types;if(e)return e;return sw&&sw.binding&&sw.binding("util")}catch(e){}}(),s_=sx,sk=s_&&s_.isTypedArray,sS=sk?sm(sk):sp,sC=sS;function sE(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var sO=sE;function sI(e,t,r,n){var i=!r;r||(r={});var o=-1,s=t.length;while(++o<s){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;void 0===c&&(c=e[a]),i?t5(r,a,c):t7(r,a,c)}return r}var sT=sI;function sA(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}var sM=sA,sR=Object.prototype,sP=sR.hasOwnProperty;function sL(e,t){var r=K(e),n=!r&&oD(e),i=!r&&!n&&oK(e),o=!r&&!n&&!i&&sC(e),s=r||n||i||o,a=s?sM(e.length,String):[],c=a.length;for(var u in e)(t||sP.call(e,u))&&!(s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||rr(u,c)))&&a.push(u);return a}var sD=sL;function sN(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}var sB=sN,sF=Object.prototype,sj=sF.hasOwnProperty;function sU(e){if(!es(e))return sB(e);var t=oC(e),r=[];for(var n in e)"constructor"==n&&(t||!sj.call(e,n))||r.push(n);return r}var sz=sU;function sq(e){return oU(e)?sD(e,!0):sz(e)}var sH=sq;function s$(e){return sT(e,sH(e))}var sW=s$;function sV(e,t,r,n,i,o,s){var a=sO(e,r),c=sO(t,r),u=s.get(c);if(u)return void oe(e,r,u);var l=o?o(a,c,r+"",e,t,s):void 0,h=void 0===l;if(h){var d=K(c),f=!d&&oK(c),p=!d&&!f&&sC(c);l=c,d||f||p?K(a)?l=a:oq(a)?l=ob(a):f?(h=!1,l=oh(c,!0)):p?(h=!1,l=ov(c,!0)):l=[]:J(c)||oD(c)?(l=a,oD(a)?l=sW(a):(!es(a)||ed(a))&&(l=oO(c))):h=!1}h&&(s.set(c,l),i(l,c,n,o,s),s["delete"](c)),oe(e,r,l)}var sY=sV;function sX(e,t,r,n,i){e!==t&&oi(t,function(o,s){if(i||(i=new i7),es(o))sY(e,t,s,r,sX,n,i);else{var a=n?n(sO(e,s),o,s+"",e,t,i):void 0;void 0===a&&(a=o),oe(e,s,a)}},sH)}var sJ=sX;function sG(e){return e}var sK=sG;function sZ(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var sQ=sZ,s0=Math.max;function s1(e,t,r){return t=s0(void 0===t?e.length-1:t,0),function(){var n=arguments,i=-1,o=s0(n.length-t,0),s=Array(o);while(++i<o)s[i]=n[t+i];i=-1;var a=Array(t+1);while(++i<t)a[i]=n[i];return a[t]=r(s),sQ(e,this,a)}}var s2=s1;function s4(e){return function(){return e}}var s5=s4,s8=t2?function(e,t){return t2(e,"toString",{configurable:!0,enumerable:!1,value:s5(t),writable:!0})}:sK,s6=s8,s3=800,s7=16,s9=Date.now;function ae(e){var t=0,r=0;return function(){var n=s9(),i=s7-(n-r);if(r=n,i>0){if(++t>=s3)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var at=ae,ar=at(s6),an=ar;function ai(e,t){return an(s2(e,t,sK),e+"")}var ao=ai;function as(e,t,r){if(!es(r))return!1;var n=typeof t;return("number"==n?!!(oU(r)&&rr(t,r.length)):"string"==n&&t in r)&&e5(r[t],e)}var aa=as;function ac(e){return ao(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&aa(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++n<i){var a=r[n];a&&e(t,a,n,o)}return t})}var au=ac,al=au(function(e,t,r){sJ(e,t,r)}),ah=al;let ad="calc(var(--sfe-stack-level-alert) + 1)",af=e=>{let t=e.closest(".swal2-container");t?.style.setProperty("z-index",ad)},ap=e=>{let t=e.didOpen;return iJ().fire({...e,didOpen:e=>{af(e),t?.(e)}})},ag=(e,t)=>{let r={confirmButtonText:"Yes",cancelButtonText:"No",customClass:{confirmButton:"btn btn-primary",cancelButton:"btn btn-danger"},reverseButtons:!0},n={showCancelButton:!t,showCloseButton:!1,buttonsStyling:!1},i=ah(r,e,n);return ap({html:`<div class="d-flex flex-column">
60
+ `,e3=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let r=e.innerHTML,n="";if(t.iconHtml)n=e9(t.iconHtml);else if("success"===t.icon)n=e8(t),r=r.replace(/ style=".*?"/g,"");else if("error"===t.icon)n=e6;else if(t.icon){let e={question:"?",warning:"!",info:"i"};n=e9(e[t.icon])}r.trim()!==n.trim()&&K(e,n)},e7=(e,t)=>{if(t.iconColor){for(let r of(e.style.color=t.iconColor,e.style.borderColor=t.iconColor,[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"]))eh(e,r,"background-color",t.iconColor);eh(e,".swal2-success-ring","border-color",t.iconColor)}},e9=e=>`<div class="${h["icon-content"]}">${e}</div>`,te=(e,t)=>{let r=L();if(r){if(!t.imageUrl)return void eu(r);ec(r,""),r.setAttribute("src",t.imageUrl),r.setAttribute("alt",t.imageAlt||""),ea(r,"width",t.imageWidth),ea(r,"height",t.imageHeight),r.className=h.image,ee(r,t,"image")}},tt=!1,tr=0,tn=0,ti=0,to=0,ts=e=>{e.addEventListener("mousedown",tc),document.body.addEventListener("mousemove",tu),e.addEventListener("mouseup",tl),e.addEventListener("touchstart",tc),document.body.addEventListener("touchmove",tu),e.addEventListener("touchend",tl)},ta=e=>{e.removeEventListener("mousedown",tc),document.body.removeEventListener("mousemove",tu),e.removeEventListener("mouseup",tl),e.removeEventListener("touchstart",tc),document.body.removeEventListener("touchmove",tu),e.removeEventListener("touchend",tl)},tc=e=>{let t=T();if(!t)return;let r=A();if(e.target===t||r&&r.contains(e.target)){tt=!0;let r=th(e);tr=r.clientX,tn=r.clientY,ti=parseInt(t.style.insetInlineStart)||0,to=parseInt(t.style.insetBlockStart)||0,ei(t,"swal2-dragging")}},tu=e=>{let t=T();if(t&&tt){let{clientX:r,clientY:n}=th(e),i=r-tr;t.style.insetInlineStart=`${ti+(s.isRTL?-i:i)}px`,t.style.insetBlockStart=`${to+(n-tn)}px`}},tl=()=>{let e=T();tt=!1,eo(e,"swal2-dragging")},th=e=>{let t=e.type.startsWith("touch")?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},td=(e,t)=>{let r=E(),n=T();if(r&&n){if(t.toast){ea(r,"width",t.width),n.style.width="100%";let e=z();e&&n.insertBefore(e,A())}else ea(n,"width",t.width);ea(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),eu(N()),tf(n,t),t.draggable&&!t.toast?(ei(n,h.draggable),ts(n)):(eo(n,h.draggable),ta(n))}},tf=(e,t)=>{let r=t.showClass||{};e.className=`${h.popup} ${ef(e)?r.popup:""}`,t.toast?(ei([document.documentElement,document.body],h["toast-shown"]),ei(e,h.toast)):ei(e,h.modal),ee(e,t,"popup"),"string"==typeof t.customClass&&ei(e,t.customClass),t.icon&&ei(e,h[`icon-${t.icon}`])},tp=(e,t)=>{let r=D();if(!r)return;let{progressSteps:n,currentProgressStep:i}=t;n&&0!==n.length&&void 0!==i?(ec(r),r.textContent="",i>=n.length&&m("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((e,o)=>{let s=tg(e);if(r.appendChild(s),o===i&&ei(s,h["active-progress-step"]),o!==n.length-1){let e=tm(t);r.appendChild(e)}})):eu(r)},tg=e=>{let t=document.createElement("li");return ei(t,h["progress-step"]),K(t,e),t},tm=e=>{let t=document.createElement("li");return ei(t,h["progress-step-line"]),e.progressStepsDistance&&ea(t,"width",e.progressStepsDistance),t},tv=(e,t)=>{let r=R();r&&(el(r),ed(r,!!(t.title||t.titleText),"block"),t.title&&eT(t.title,r),t.titleText&&(r.innerText=t.titleText),ee(r,t,"title"))},ty=(e,t)=>{var r;td(e,t),eF(e,t),tp(e,t),e2(e,t),te(e,t),tv(e,t),eB(e,t),e0(e,t),eR(e,t),e1(e,t);let n=T();"function"==typeof t.didRender&&n&&t.didRender(n),null==(r=s.eventEmitter)||r.emit("didRender",n)},tb=()=>ef(T()),tw=()=>{var e;return null==(e=B())?void 0:e.click()},tx=()=>{var e;return null==(e=j())?void 0:e.click()},t_=()=>{var e;return null==(e=F())?void 0:e.click()},tk=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),tS=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){let t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},tC=(e,t,r)=>{if(tS(e),!t.toast){let n=e=>tT(t,e,r);e.keydownHandler=n;let i=t.keydownListenerCapture?window:T();if(i){e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture;let r=n;e.keydownTarget.addEventListener("keydown",r,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},tE=(e,t)=>{var r;let n=Y();return n.length?(-2===(e+=t)&&(e=n.length-1),e===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus(),!(C()&&n[e]instanceof HTMLIFrameElement)):(null==(r=T())||r.focus(),!0)},tO=["ArrowRight","ArrowDown"],tI=["ArrowLeft","ArrowUp"],tT=(e,t,r)=>{!e||t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?tA(t,e):"Tab"===t.key?tM(t):[...tO,...tI].includes(t.key)?tR(t.key):"Escape"===t.key&&tP(t,e,r))},tA=(e,t)=>{if(!x(t.allowEnterKey))return;let r=T();if(!r||!t.input)return;let n=et(r,t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;tw(),e.preventDefault()}},tM=e=>{let t=e.target,r=Y(),n=r.findIndex(e=>e===t),i=!0;i=e.shiftKey?tE(n,-1):tE(n,1),e.stopPropagation(),i&&e.preventDefault()},tR=e=>{let t=q(),r=B(),n=j(),i=F();if(!t||!r||!n||!i)return;let o=[r,n,i];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;let s=tO.includes(e)?"nextElementSibling":"previousElementSibling",a=document.activeElement;if(a){for(let e=0;e<t.children.length;e++){if(!(a=a[s]))return;if(a instanceof HTMLButtonElement&&ef(a))break}a instanceof HTMLButtonElement&&a.focus()}},tP=(e,t,r)=>{e.preventDefault(),x(t.allowEscapeKey)&&r(tk.esc)};var tL={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};let tD=()=>{let e=E(),t=Array.from(document.body.children);t.forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},tN=()=>{let e=Array.from(document.body.children);e.forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},tB="u">typeof window&&!!window.GestureEvent,tF=tB&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,tj=()=>{if(tB&&!Z(document.body,h.iosfix)){let e=document.body.scrollTop;document.body.style.top=`${-1*e}px`,ei(document.body,h.iosfix),tU()}},tU=()=>{let e=E();if(!e)return;let t;e.ontouchstart=e=>{t=tz(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},tz=e=>{let t=e.target,r=E(),n=P();return!(!r||!n||tq(e)||tH(e))&&!!(t===r||!eg(r)&&t instanceof HTMLElement&&!em(t,n)&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!(eg(n)&&n.contains(t)))},tq=e=>!!(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),tH=e=>e.touches&&e.touches.length>1,t$=()=>{if(Z(document.body,h.iosfix)){let e=parseInt(document.body.style.top,10);eo(document.body,h.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},tW=()=>{let e=document.createElement("div");e.className=h["scrollbar-measure"],document.body.appendChild(e);let t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},tV=null,tY=e=>{null===tV&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(tV=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${tV+tW()}px`)},tX=()=>{null!==tV&&(document.body.style.paddingRight=`${tV}px`,tV=null)};function tJ(e,t,r,n){J()?t5(e,n):(c(r).then(()=>t5(e,n)),tS(s)),tB?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),X()&&(tX(),t$(),tN()),tG()}function tG(){eo([document.documentElement,document.body],[h.shown,h["height-auto"],h["no-backdrop"],h["toast-shown"]])}function tK(e){e=t1(e);let t=tL.swalPromiseResolve.get(this),r=tZ(this);this.isAwaitingPromise?e.isDismissed||(t0(this),t(e)):r&&t(e)}let tZ=e=>{let t=T();if(!t)return!1;let r=eq.innerParams.get(e);if(!r||Z(t,r.hideClass.popup))return!1;eo(t,r.showClass.popup),ei(t,r.hideClass.popup);let n=E();return eo(n,r.showClass.backdrop),ei(n,r.hideClass.backdrop),t2(e,t,r),!0};function tQ(e){let t=tL.swalPromiseReject.get(this);t0(this),t&&t(e)}let t0=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,eq.innerParams.get(e)||e._destroy())},t1=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),t2=(e,t,r)=>{var n;let i=E(),o=ev(t);"function"==typeof r.willClose&&r.willClose(t),null==(n=s.eventEmitter)||n.emit("willClose",t),o&&i?t4(e,t,i,!!r.returnFocus,r.didClose):i&&tJ(e,i,!!r.returnFocus,r.didClose)},t4=(e,t,r,n,i)=>{s.swalCloseEventFinishedCallback=tJ.bind(null,e,r,n,i);let o=function(e){if(e.target===t){var r;null==(r=s.swalCloseEventFinishedCallback)||r.call(s),delete s.swalCloseEventFinishedCallback,t.removeEventListener("animationend",o),t.removeEventListener("transitionend",o)}};t.addEventListener("animationend",o),t.addEventListener("transitionend",o)},t5=(e,t)=>{setTimeout(()=>{var r;"function"==typeof t&&t.bind(e.params)(),null==(r=s.eventEmitter)||r.emit("didClose"),e._destroy&&e._destroy()})},t8=e=>{let t=T();if(t||new nz,!(t=T()))return;let r=z();J()?eu(A()):t6(t,e),ec(r),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},t6=(e,t)=>{let r=q(),n=z();r&&n&&(!t&&ef(B())&&(t=B()),ec(r),t&&(eu(t),n.setAttribute("data-button-to-replace",t.className),r.insertBefore(n,t)),ei([e,r],h.loading))},t3=(e,t)=>{"select"===t.input||"radio"===t.input?rr(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(_(t.inputValue)||S(t.inputValue))&&(t8(B()),rn(e,t))},t7=(e,t)=>{let r=e.getInput();if(!r)return null;switch(t.input){case"checkbox":return t9(r);case"radio":return re(r);case"file":return rt(r);default:return t.inputAutoTrim?r.value.trim():r.value}},t9=e=>+!!e.checked,re=e=>e.checked?e.value:null,rt=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,rr=(e,t)=>{let r=T();if(!r)return;let n=e=>{"select"===t.input?ri(r,rs(e),t):"radio"===t.input&&ro(r,rs(e),t)};_(t.inputOptions)||S(t.inputOptions)?(t8(B()),k(t.inputOptions).then(t=>{e.hideLoading(),n(t)})):"object"==typeof t.inputOptions?n(t.inputOptions):v(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},rn=(e,t)=>{let r=e.getInput();r&&(eu(r),k(t.inputValue).then(n=>{r.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,ec(r),r.focus(),e.hideLoading()}).catch(t=>{v(`Error in inputValue promise: ${t}`),r.value="",ec(r),r.focus(),e.hideLoading()}))};function ri(e,t,r){let n=es(e,h.select);if(!n)return;let i=(e,t,n)=>{let i=document.createElement("option");i.value=n,K(i,t),i.selected=ra(n,r.inputValue),e.appendChild(i)};t.forEach(e=>{let t=e[0],r=e[1];if(Array.isArray(r)){let e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),r.forEach(t=>i(e,t[1],t[0]))}else i(n,r,t)}),n.focus()}function ro(e,t,r){let n=es(e,h.radio);if(!n)return;t.forEach(e=>{let t=e[0],i=e[1],o=document.createElement("input"),s=document.createElement("label");o.type="radio",o.name=h.radio,o.value=t,ra(t,r.inputValue)&&(o.checked=!0);let a=document.createElement("span");K(a,i),a.className=h.label,s.appendChild(o),s.appendChild(a),n.appendChild(s)});let i=n.querySelectorAll("input");i.length&&i[0].focus()}let rs=e=>{let t=e instanceof Map?Array.from(e):Object.entries(e);return t.map(([e,t])=>[e,"object"==typeof t?rs(t):t])},ra=(e,t)=>!!t&&null!=t&&t.toString()===e.toString(),rc=e=>{let t=eq.innerParams.get(e);e.disableButtons(),t.input?rh(e,"confirm"):rm(e,!0)},ru=e=>{let t=eq.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?rh(e,"deny"):rf(e,!1)},rl=(e,t)=>{e.disableButtons(),t(tk.cancel)},rh=(e,t)=>{let r=eq.innerParams.get(e);if(!r.input)return void v(`The "input" parameter is needed to be set when using returnInputValueOn${g(t)}`);let n=e.getInput(),i=t7(e,r);r.inputValidator?rd(e,i,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(r.validationMessage||n.validationMessage)):"deny"===t?rf(e,i):rm(e,i)},rd=(e,t,r)=>{let n=eq.innerParams.get(e);e.disableInput();let i=Promise.resolve().then(()=>k(n.inputValidator(t,n.validationMessage)));i.then(n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===r?rf(e,t):rm(e,t)})},rf=(e,t)=>{let r=eq.innerParams.get(e);if(r.showLoaderOnDeny&&t8(j()),r.preDeny){e.isAwaitingPromise=!0;let n=Promise.resolve().then(()=>k(r.preDeny(t,r.validationMessage)));n.then(r=>{!1===r?(e.hideLoading(),t0(e)):e.close({isDenied:!0,value:void 0===r?t:r})}).catch(t=>rg(e,t))}else e.close({isDenied:!0,value:t})},rp=(e,t)=>{e.close({isConfirmed:!0,value:t})},rg=(e,t)=>{e.rejectPromise(t)},rm=(e,t)=>{let r=eq.innerParams.get(e);if(r.showLoaderOnConfirm&&t8(),r.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;let n=Promise.resolve().then(()=>k(r.preConfirm(t,r.validationMessage)));n.then(r=>{ef(N())||!1===r?(e.hideLoading(),t0(e)):rp(e,void 0===r?t:r)}).catch(t=>rg(e,t))}else rp(e,t)};function rv(){let e=eq.innerParams.get(this);if(!e)return;let t=eq.domCache.get(this);eu(t.loader),J()?e.icon&&ec(A()):ry(t),eo([t.popup,t.actions],h.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),this.enableButtons()}let ry=e=>{let t=e.loader.getAttribute("data-button-to-replace"),r=t?e.popup.getElementsByClassName(t):[];r.length?ec(r[0],"inline-block"):ep()&&eu(e.actions)};function rb(){let e=eq.innerParams.get(this),t=eq.domCache.get(this);return t?et(t.popup,e.input):null}function rw(e,t,r){let n=eq.domCache.get(e);t.forEach(e=>{n[e].disabled=r})}function rx(e,t){let r=T();if(r&&e)if("radio"===e.type){let e=r.querySelectorAll(`[name="${h.radio}"]`);e.forEach(e=>{e.disabled=t})}else e.disabled=t}function r_(){rw(this,["confirmButton","denyButton","cancelButton"],!1);let e=eq.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),eq.focusedElement.delete(this)}function rk(){eq.focusedElement.set(this,document.activeElement),rw(this,["confirmButton","denyButton","cancelButton"],!0)}function rS(){rx(this.getInput(),!1)}function rC(){rx(this.getInput(),!0)}function rE(e){let t=eq.domCache.get(this),r=eq.innerParams.get(this);K(t.validationMessage,e),t.validationMessage.className=h["validation-message"],r.customClass&&r.customClass.validationMessage&&ei(t.validationMessage,r.customClass.validationMessage),ec(t.validationMessage);let n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",h["validation-message"]),er(n),ei(n,h.inputerror))}function rO(){let e=eq.domCache.get(this);e.validationMessage&&eu(e.validationMessage);let t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),eo(t,h.inputerror))}let rI={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&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:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},rT=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],rA={allowEnterKey:void 0},rM=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],rR=e=>Object.prototype.hasOwnProperty.call(rI,e),rP=e=>-1!==rT.indexOf(e),rL=e=>rA[e],rD=e=>{rR(e)||m(`Unknown parameter "${e}"`)},rN=e=>{rM.includes(e)&&m(`The parameter "${e}" is incompatible with toasts`)},rB=e=>{let t=rL(e);t&&w(e,t)},rF=e=>{for(let t in!1===e.backdrop&&e.allowOutsideClick&&m('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&m(`Invalid theme "${e.theme}"`),e)rD(t),e.toast&&rN(t),rB(t)};function rj(e){let t=E(),r=T(),n=eq.innerParams.get(this);if(!r||Z(r,n.hideClass.popup))return void m("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.");let i=rU(e),o=Object.assign({},n,i);rF(o),t&&(t.dataset["swal2Theme"]=o.theme),ty(this,o),eq.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}let rU=e=>{let t={};return Object.keys(e).forEach(r=>{if(rP(r)){let n=e;t[r]=n[r]}else m(`Invalid parameter to update: ${r}`)}),t};function rz(){var e;let t=eq.domCache.get(this),r=eq.innerParams.get(this);r?(t.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"==typeof r.didDestroy&&r.didDestroy(),null==(e=s.eventEmitter)||e.emit("didDestroy"),rq(this)):rH(this)}let rq=e=>{rH(e),delete e.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},rH=e=>{e.isAwaitingPromise?(r$(eq,e),e.isAwaitingPromise=!0):(r$(tL,e),r$(eq,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)},r$=(e,t)=>{for(let r in e)e[r].delete(t)};var rW=Object.freeze({__proto__:null,_destroy:rz,close:tK,closeModal:tK,closePopup:tK,closeToast:tK,disableButtons:rk,disableInput:rC,disableLoading:rv,enableButtons:r_,enableInput:rS,getInput:rb,handleAwaitingPromise:t0,hideLoading:rv,rejectPromise:tQ,resetValidationMessage:rO,showValidationMessage:rE,update:rj});let rV=(e,t,r)=>{e.toast?rY(e,t,r):(rG(t),rK(t),rZ(e,t,r))},rY=(e,t,r)=>{t.popup.onclick=()=>{e&&(rX(e)||e.timer||e.input)||r(tk.close)}},rX=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton),rJ=!1,rG=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(rJ=!0)}}},rK=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(rJ=!0)}}},rZ=(e,t,r)=>{t.container.onclick=n=>{if(rJ){rJ=!1;return}n.target===t.container&&x(e.allowOutsideClick)&&r(tk.backdrop)}},rQ=e=>"object"==typeof e&&null!==e&&"jquery"in e,r0=e=>e instanceof Element||rQ(e),r1=e=>{let t={};return"object"!=typeof e[0]||r0(e[0])?["title","html","icon"].forEach((r,n)=>{let i=e[n];"string"==typeof i||r0(i)?t[r]=i:void 0!==i&&v(`Unexpected type of ${r}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(t,e[0]),t};function r2(...e){return new this(...e)}function r4(e){class t extends this{_main(t,r){return super._main(t,Object.assign({},e,r))}}return t}let r5=()=>s.timeout&&s.timeout.getTimerLeft(),r8=()=>{if(s.timeout)return eb(),s.timeout.stop()},r6=()=>{if(s.timeout){let e=s.timeout.start();return ey(e),e}},r3=()=>{let e=s.timeout;return e&&(e.running?r8():r6())},r7=e=>{if(s.timeout){let t=s.timeout.increase(e);return ey(t,!0),t}},r9=()=>!!(s.timeout&&s.timeout.isRunning()),ne=!1,nt={};function nr(e="data-swal-template"){nt[e]=this,ne||(document.body.addEventListener("click",nn),ne=!0)}let nn=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(let e in nt){let r=t.getAttribute&&t.getAttribute(e);if(r)return void nt[e].fire({template:r})}};class ni{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){let r=this._getHandlersByEventName(e);r.includes(t)||r.push(t)}once(e,t){let r=(...n)=>{this.removeListener(e,r),t.apply(this,n)};this.on(e,r)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(e){console.error(e)}})}removeListener(e,t){let r=this._getHandlersByEventName(e),n=r.indexOf(t);n>-1&&r.splice(n,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}s.eventEmitter=new ni;let no=(e,t)=>{s.eventEmitter&&s.eventEmitter.on(e,t)},ns=(e,t)=>{s.eventEmitter&&s.eventEmitter.once(e,t)},na=(e,t)=>{if(s.eventEmitter){if(!e)return void s.eventEmitter.reset();t?s.eventEmitter.removeListener(e,t):s.eventEmitter.removeAllListeners(e)}};var nc=Object.freeze({__proto__:null,argsToParams:r1,bindClickHandler:nr,clickCancel:t_,clickConfirm:tw,clickDeny:tx,enableLoading:t8,fire:r2,getActions:q,getCancelButton:F,getCloseButton:W,getConfirmButton:B,getContainer:E,getDenyButton:j,getFocusableElements:Y,getFooter:H,getHtmlContainer:P,getIcon:A,getIconContent:M,getImage:L,getInputLabel:U,getLoader:z,getPopup:T,getProgressSteps:D,getTimerLeft:r5,getTimerProgressBar:$,getTitle:R,getValidationMessage:N,increaseTimer:r7,isDeprecatedParameter:rL,isLoading:G,isTimerRunning:r9,isUpdatableParameter:rP,isValidParameter:rR,isVisible:tb,mixin:r4,off:na,on:no,once:ns,resumeTimer:r6,showLoading:t8,stopTimer:r8,toggleTimer:r3});class nu{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){let t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}let nl=["swal-title","swal-html","swal-footer"],nh=e=>{let t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};let r=t.content;nb(r);let n=Object.assign(nd(r),nf(r),np(r),ng(r),nm(r),nv(r),ny(r,nl));return n},nd=e=>{let t={},r=Array.from(e.querySelectorAll("swal-param"));return r.forEach(e=>{nw(e,["name","value"]);let r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(r in rI&&"boolean"==typeof rI[r]?t[r]="false"!==n:r in rI&&"object"==typeof rI[r]?t[r]=JSON.parse(n):t[r]=n)}),t},nf=e=>{let t={},r=Array.from(e.querySelectorAll("swal-function-param"));return r.forEach(e=>{let r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(t[r]=Function(`return ${n}`)())}),t},np=e=>{let t={},r=Array.from(e.querySelectorAll("swal-button"));return r.forEach(e=>{nw(e,["type","color","aria-label"]);let r=e.getAttribute("type");if(!r||!["confirm","cancel","deny"].includes(r))return;t[`${r}ButtonText`]=e.innerHTML,t[`show${g(r)}Button`]=!0;let n=e.getAttribute("color");null!==n&&(t[`${r}ButtonColor`]=n);let i=e.getAttribute("aria-label");null!==i&&(t[`${r}ButtonAriaLabel`]=i)}),t},ng=e=>{let t={},r=e.querySelector("swal-image");if(r){nw(r,["src","width","height","alt"]);let e=r.getAttribute("src");null!==e&&(t.imageUrl=e||void 0);let n=r.getAttribute("width");null!==n&&(t.imageWidth=n||void 0);let i=r.getAttribute("height");null!==i&&(t.imageHeight=i||void 0);let o=r.getAttribute("alt");null!==o&&(t.imageAlt=o||void 0)}return t},nm=e=>{let t={},r=e.querySelector("swal-icon");return r&&(nw(r,["type","color"]),r.hasAttribute("type")&&(t.icon=r.getAttribute("type")),r.hasAttribute("color")&&(t.iconColor=r.getAttribute("color")),t.iconHtml=r.innerHTML),t},nv=e=>{let t={},r=e.querySelector("swal-input");r&&(nw(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));let n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(e=>{nw(e,["value"]);let r=e.getAttribute("value");if(!r)return;let n=e.innerHTML;t.inputOptions[r]=n})),t},ny=(e,t)=>{let r={};for(let n in t){let i=t[n],o=e.querySelector(i);o&&(nw(o,[]),r[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return r},nb=e=>{let t=nl.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{let r=e.tagName.toLowerCase();t.includes(r)||m(`Unrecognized element <${r}>`)})},nw=(e,t)=>{Array.from(e.attributes).forEach(r=>{-1===t.indexOf(r.name)&&m([`Unrecognized attribute "${r.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},nx=10,n_=e=>{var t,r;let n=E(),i=T();if(!n||!i)return;"function"==typeof e.willOpen&&e.willOpen(i),null==(t=s.eventEmitter)||t.emit("willOpen",i);let o=window.getComputedStyle(document.body),a=o.overflowY;if(nE(n,i,e),setTimeout(()=>{nS(n,i)},nx),X()&&(nC(n,void 0!==e.scrollbarPadding&&e.scrollbarPadding,a),tD()),tF&&!1===e.backdrop&&i.scrollHeight>n.clientHeight&&(n.style.pointerEvents="auto"),J()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"==typeof e.didOpen){let t=e.didOpen;setTimeout(()=>t(i))}null==(r=s.eventEmitter)||r.emit("didOpen",i)},nk=e=>{let t=T();if(!t||e.target!==t)return;let r=E();r&&(t.removeEventListener("animationend",nk),t.removeEventListener("transitionend",nk),r.style.overflowY="auto",eo(r,h["no-transition"]))},nS=(e,t)=>{ev(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",nk),t.addEventListener("transitionend",nk)):e.style.overflowY="auto"},nC=(e,t,r)=>{tj(),t&&"hidden"!==r&&tY(r),setTimeout(()=>{e.scrollTop=0})},nE=(e,t,r)=>{var n;null!=(n=r.showClass)&&n.backdrop&&ei(e,r.showClass.backdrop),r.animation?(t.style.setProperty("opacity","0","important"),ec(t,"grid"),setTimeout(()=>{var e;null!=(e=r.showClass)&&e.popup&&ei(t,r.showClass.popup),t.style.removeProperty("opacity")},nx)):ec(t,"grid"),ei([document.documentElement,document.body],h.shown),r.heightAuto&&r.backdrop&&!r.toast&&ei([document.documentElement,document.body],h["height-auto"])};var nO={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 nI(e){e.inputValidator||("email"===e.input&&(e.inputValidator=nO["email"]),"url"===e.input&&(e.inputValidator=nO["url"]))}function nT(e){e.target&&("string"!=typeof e.target||document.querySelector(e.target))&&("string"==typeof e.target||e.target.appendChild)||(m('Target parameter is not valid, defaulting to "body"'),e.target="body")}function nA(e){nI(e),e.showLoaderOnConfirm&&!e.preConfirm&&m("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"),nT(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),eI(e)}let nM;var nR=new WeakMap;class nP{constructor(...e){if(n(this,nR,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"u"<typeof window)return;nM=this;let t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,i(nR,this,this._main(nM.params))}_main(e,t={}){if(rF(Object.assign({},t,e)),s.currentInstance){let e=tL.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:t}=s.currentInstance;s.currentInstance._destroy(),t||e({isDismissed:!0}),X()&&tN()}s.currentInstance=nM;let r=nD(e,t);nA(r),Object.freeze(r),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);let n=nN(nM);return ty(nM,r),eq.innerParams.set(nM,r),nL(nM,n,r)}then(e){return r(nR,this).then(e)}finally(e){return r(nR,this).finally(e)}}let nL=(e,t,r)=>new Promise((n,i)=>{let o=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};tL.swalPromiseResolve.set(e,n),tL.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{rc(e)},t.denyButton.onclick=()=>{ru(e)},t.cancelButton.onclick=()=>{rl(e,o)},t.closeButton.onclick=()=>{o(tk.close)},rV(r,t,o),tC(s,r,o),t3(e,r),n_(r),nB(s,r,o),nF(t,r),setTimeout(()=>{t.container.scrollTop=0})}),nD=(e,t)=>{let r=nh(e),n=Object.assign({},rI,t,r,e);return n.showClass=Object.assign({},rI.showClass,n.showClass),n.hideClass=Object.assign({},rI.hideClass,n.hideClass),!1===n.animation&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},nN=e=>{let t={popup:T(),container:E(),actions:q(),confirmButton:B(),denyButton:j(),cancelButton:F(),loader:z(),closeButton:W(),validationMessage:N(),progressSteps:D()};return eq.domCache.set(e,t),t},nB=(e,t,r)=>{let n=$();eu(n),t.timer&&(e.timeout=new nu(()=>{r("timer"),delete e.timeout},t.timer),t.timerProgressBar&&n&&(ec(n),ee(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ey(t.timer)})))},nF=(e,t)=>{if(!t.toast){if(!x(t.allowEnterKey)){w("allowEnterKey","preConfirm: () => false"),e.popup.focus();return}nj(e)||nU(e,t)||tE(-1,1)}},nj=e=>{let t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(let e of t)if(e instanceof HTMLElement&&ef(e))return e.focus(),!0;return!1},nU=(e,t)=>t.focusDeny&&ef(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ef(e.cancelButton)?(e.cancelButton.focus(),!0):!!(t.focusConfirm&&ef(e.confirmButton))&&(e.confirmButton.focus(),!0);nP.prototype.disableButtons=rk,nP.prototype.enableButtons=r_,nP.prototype.getInput=rb,nP.prototype.disableInput=rC,nP.prototype.enableInput=rS,nP.prototype.hideLoading=rv,nP.prototype.disableLoading=rv,nP.prototype.showValidationMessage=rE,nP.prototype.resetValidationMessage=rO,nP.prototype.close=tK,nP.prototype.closePopup=tK,nP.prototype.closeModal=tK,nP.prototype.closeToast=tK,nP.prototype.rejectPromise=tQ,nP.prototype.update=rj,nP.prototype._destroy=rz,Object.assign(nP,nc),Object.keys(rW).forEach(e=>{nP[e]=function(...t){if(nM&&nM[e])return nM[e](...t)}}),nP.DismissReason=tk,nP.version="11.26.25";let nz=nP;return nz.default=nz,nz}),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"u">typeof document&&function(e,t){var r=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=t);else try{r.innerHTML=t}catch(e){r.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:auto}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}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:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:auto}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}')},891:function(){}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}!function(){r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,{a:t}),t}}(),function(){r.d=function(e,t,n){var i=function(t,n){for(var i in t)if(r.o(t,i)&&!r.o(e,i)){var o={enumerable:!0};o[n]=t[i],Object.defineProperty(e,i,o)}};i(t,"get"),i(n,"value")}}(),function(){r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var n={};return!function(){"use strict";r.r(n),r.d(n,{AlertService:function(){return t},DataModifierService:function(){return o},DraggableService:function(){return a},EventBus:function(){return cJ},HTTPBaseService:function(){return aI},HelperService:function(){return e},HttpProcess:function(){return i},MixpanelService:function(){return IC},ShrEventBus:function(){return cG},ShrPusherService:function(){return c0},default:function(){return IE}});var e={};r.r(e),r.d(e,{allowOnlyNumber:function(){return iR},allowedDecimalPlaces:function(){return iP},customPasswordValidator:function(){return iM},dateFormatter:function(){return iF},decrypt:function(){return i_},decryptWithPrivateKey:function(){return iS},encrypt:function(){return ix},encryptWithPublicKey:function(){return ik},fromNow:function(){return iU},getBgColorFromName:function(){return ib},getLocalStorageItem:function(){return iE},getObjectProperty:function(){return iv},getSessionStorageItem:function(){return iT},getTextColorFromName:function(){return iw},highlightText:function(){return iL},httpBuildQuery:function(){return iN},imageExists:function(){return iD},isArray:function(){return ih},isEmptyObj:function(){return im},isFunction:function(){return id},isObject:function(){return ip},isString:function(){return il},loadRemoteEmbeddable:function(){return ij},numberFormat:function(){return iz},removeLocalStorageItem:function(){return iO},removeSessionStorageItem:function(){return iA},setLocalStorageItem:function(){return iC},setObjectProperty:function(){return iy},setSessionStorageItem:function(){return iI},ucFirst:function(){return ig},uuid:function(){return iB}});var t={};r.r(t),r.d(t,{alert:function(){return ag},fire:function(){return ap},toast:function(){return am}});var i={};r.r(i),r.d(i,{makeRequest:function(){return cV},makeRequestToExecute:function(){return cY}});var o={};r.r(o),r.d(o,{alterUsersForProfileStrip:function(){return cX}});let s={enableDragSort:e=>{window.onload=()=>{let t=document.querySelectorAll(e);Array.prototype.map.call(t,r=>{s.enableDragList(r),shrSafeLog(e,t)})}},enableDragList:e=>{Array.prototype.map.call(e.children,e=>{s.enableDragItem(e)})},enableDragItem:e=>{e.setAttribute("draggable",new Boolean(!0).toString()),e.ondrag=s.handleDrag,e.ondragend=s.handleDrop},handleDrag:e=>{let t=e.target,r=t.parentNode,n=e.clientX,i=e.clientY;t.classList.add("drag-sort-active");let o=null===document.elementFromPoint(n,i)?t:document.elementFromPoint(n,i);r===o?.parentNode&&(o=o!==t.nextSibling?o:o.nextSibling,r?.insertBefore(t,o))},handleDrop:e=>{e.target?.classList.remove("drag-sort-active")}};var a=s,c=r(6660),u=r.n(c);function l(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)"__proto__"!==n&&(e[n]=r[n])}return e}var h={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function d(e,t){function r(r,n,i){if("u">typeof document){"number"==typeof(i=l({},t,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=r+"="+e.write(n,r)+o}}return Object.create({set:r,get:function(t){if("u">typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(a in n||(n[a]=e.read(s,a)),t===a)break}catch(e){}}return t?n[t]:n}},remove:function(e,t){r(e,"",l({},t,{expires:-1}))},withAttributes:function(e){return d(this.converter,l({},this.attributes,e))},withConverter:function(e){return d(l({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var f=d(h,{path:"/"}),p="object"==typeof global&&global&&global.Object===Object&&global,g=p,m="object"==typeof self&&self&&self.Object===Object&&self,v=g||m||Function("return this")(),y=v,b=y.Symbol,w=b,x=Object.prototype,_=x.hasOwnProperty,k=x.toString,S=w?w.toStringTag:void 0;function C(e){var t=_.call(e,S),r=e[S];try{e[S]=void 0;var n=!0}catch(e){}var i=k.call(e);return n&&(t?e[S]=r:delete e[S]),i}var E=C,O=Object.prototype,I=O.toString;function T(e){return I.call(e)}var A=T,M="[object Null]",R="[object Undefined]",P=w?w.toStringTag:void 0;function L(e){return null==e?void 0===e?R:M:P&&P in Object(e)?E(e):A(e)}var D=L;function N(e,t){return function(r){return e(t(r))}}var B=N,F=B(Object.getPrototypeOf,Object),j=F;function U(e){return null!=e&&"object"==typeof e}var z=U,q="[object Object]",H=Function.prototype,$=Object.prototype,W=H.toString,V=$.hasOwnProperty,Y=W.call(Object);function X(e){if(!z(e)||D(e)!=q)return!1;var t=j(e);if(null===t)return!0;var r=V.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&W.call(r)==Y}var J=X,G=Array.isArray,K=G,Z="[object Symbol]";function Q(e){return"symbol"==typeof e||z(e)&&D(e)==Z}var ee=Q,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,er=/^\w*$/;function en(e,t){if(K(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||ee(e))||er.test(e)||!et.test(e)||null!=t&&e in Object(t)}var ei=en;function eo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var es=eo,ea="[object AsyncFunction]",ec="[object Function]",eu="[object GeneratorFunction]",el="[object Proxy]";function eh(e){if(!es(e))return!1;var t=D(e);return t==ec||t==eu||t==ea||t==el}var ed=eh,ef=y["__core-js_shared__"],ep=ef,eg=function(){var e=/[^.]+$/.exec(ep&&ep.keys&&ep.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function em(e){return!!eg&&eg in e}var ev=em,ey=Function.prototype,eb=ey.toString;function ew(e){if(null!=e){try{return eb.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ex=ew,e_=/[\\^$.*+?()[\]{}|]/g,ek=/^\[object .+?Constructor\]$/,eS=Function.prototype,eC=Object.prototype,eE=eS.toString,eO=eC.hasOwnProperty,eI=RegExp("^"+eE.call(eO).replace(e_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eT(e){if(!es(e)||ev(e))return!1;var t=ed(e)?eI:ek;return t.test(ex(e))}var eA=eT;function eM(e,t){return null==e?void 0:e[t]}var eR=eM;function eP(e,t){var r=eR(e,t);return eA(r)?r:void 0}var eL=eP,eD=eL(Object,"create"),eN=eD;function eB(){this.__data__=eN?eN(null):{},this.size=0}var eF=eB;function ej(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}var eU=ej,ez="__lodash_hash_undefined__",eq=Object.prototype,eH=eq.hasOwnProperty;function e$(e){var t=this.__data__;if(eN){var r=t[e];return r===ez?void 0:r}return eH.call(t,e)?t[e]:void 0}var eW=e$,eV=Object.prototype,eY=eV.hasOwnProperty;function eX(e){var t=this.__data__;return eN?void 0!==t[e]:eY.call(t,e)}var eJ=eX,eG="__lodash_hash_undefined__";function eK(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=eN&&void 0===t?eG:t,this}var eZ=eK;function eQ(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}eQ.prototype.clear=eF,eQ.prototype["delete"]=eU,eQ.prototype.get=eW,eQ.prototype.has=eJ,eQ.prototype.set=eZ;var e0=eQ;function e1(){this.__data__=[],this.size=0}var e2=e1;function e4(e,t){return e===t||e!==e&&t!==t}var e5=e4;function e8(e,t){var r=e.length;while(r--)if(e5(e[r][0],t))return r;return -1}var e6=e8,e3=Array.prototype,e7=e3.splice;function e9(e){var t=this.__data__,r=e6(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():e7.call(t,r,1),--this.size,!0}var te=e9;function tt(e){var t=this.__data__,r=e6(t,e);return r<0?void 0:t[r][1]}var tr=tt;function tn(e){return e6(this.__data__,e)>-1}var ti=tn;function to(e,t){var r=this.__data__,n=e6(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ts=to;function ta(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}ta.prototype.clear=e2,ta.prototype["delete"]=te,ta.prototype.get=tr,ta.prototype.has=ti,ta.prototype.set=ts;var tc=ta,tu=eL(y,"Map"),tl=tu;function th(){this.size=0,this.__data__={hash:new e0,map:new(tl||tc),string:new e0}}var td=th;function tf(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var tp=tf;function tg(e,t){var r=e.__data__;return tp(t)?r["string"==typeof t?"string":"hash"]:r.map}var tm=tg;function tv(e){var t=tm(this,e)["delete"](e);return this.size-=!!t,t}var ty=tv;function tb(e){return tm(this,e).get(e)}var tw=tb;function tx(e){return tm(this,e).has(e)}var t_=tx;function tk(e,t){var r=tm(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this}var tS=tk;function tC(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}tC.prototype.clear=td,tC.prototype["delete"]=ty,tC.prototype.get=tw,tC.prototype.has=t_,tC.prototype.set=tS;var tE=tC,tO="Expected a function";function tI(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError(tO);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(tI.Cache||tE),r}tI.Cache=tE;var tT=tI,tA=500;function tM(e){var t=tT(e,function(e){return r.size===tA&&r.clear(),e}),r=t.cache;return t}var tR=tM,tP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tL=/\\(\\)?/g,tD=tR(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(tP,function(e,r,n,i){t.push(n?i.replace(tL,"$1"):r||e)}),t}),tN=tD;function tB(e,t){var r=-1,n=null==e?0:e.length,i=Array(n);while(++r<n)i[r]=t(e[r],r,e);return i}var tF=tB,tj=1/0,tU=w?w.prototype:void 0,tz=tU?tU.toString:void 0;function tq(e){if("string"==typeof e)return e;if(K(e))return tF(e,tq)+"";if(ee(e))return tz?tz.call(e):"";var t=e+"";return"0"==t&&1/e==-tj?"-0":t}var tH=tq;function t$(e){return null==e?"":tH(e)}var tW=t$;function tV(e,t){return K(e)?e:ei(e,t)?[e]:tN(tW(e))}var tY=tV,tX=1/0;function tJ(e){if("string"==typeof e||ee(e))return e;var t=e+"";return"0"==t&&1/e==-tX?"-0":t}var tG=tJ;function tK(e,t){t=tY(t,e);var r=0,n=t.length;while(null!=e&&r<n)e=e[tG(t[r++])];return r&&r==n?e:void 0}var tZ=tK;function tQ(e,t,r){var n=null==e?void 0:tZ(e,t);return void 0===n?r:n}var t0=tQ,t1=function(){try{var e=eL(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),t2=t1;function t4(e,t,r){"__proto__"==t&&t2?t2(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var t5=t4,t8=Object.prototype,t6=t8.hasOwnProperty;function t3(e,t,r){var n=e[t];t6.call(e,t)&&e5(n,r)&&(void 0!==r||t in e)||t5(e,t,r)}var t7=t3,t9=0x1fffffffffffff,re=/^(?:0|[1-9]\d*)$/;function rt(e,t){var r=typeof e;return!!(t=null==t?t9:t)&&("number"==r||"symbol"!=r&&re.test(e))&&e>-1&&e%1==0&&e<t}var rr=rt;function rn(e,t,r,n){if(!es(e))return e;t=tY(t,e);var i=-1,o=t.length,s=o-1,a=e;while(null!=a&&++i<o){var c=tG(t[i]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)break;if(i!=s){var l=a[c];void 0===(u=n?n(l,c,a):void 0)&&(u=es(l)?l:rr(t[i+1])?[]:{})}t7(a,c,u),a=a[c]}return e}var ri=rn;function ro(e,t,r){return null==e?e:ri(e,t,r)}var rs=ro,ra=r(8705);let rc="AES-256-CBC",ru=parseInt(rc.match(/\d+/)?.[0]),rl=(e,t)=>{let r=ra.lib.WordArray.random(16),n=ra.lib.WordArray.random(256),i=999,o=ru/4,s=ra.PBKDF2(t,n,{hasher:ra.algo.SHA512,keySize:o/8,iterations:i}),a=ra.AES.encrypt(e,s,{mode:ra.mode.CBC,iv:r}),c=ra.enc.Base64.stringify(a.ciphertext),u={ciphertext:c,iv:ra.enc.Hex.stringify(r),salt:ra.enc.Hex.stringify(n),iterations:i};return ra.enc.Base64.stringify(ra.enc.Utf8.parse(JSON.stringify(u)))},rh=(e,t)=>{let r=JSON.parse(ra.enc.Utf8.stringify(ra.enc.Base64.parse(e))),n=ra.enc.Hex.parse(r.salt),i=ra.enc.Hex.parse(r.iv),o=r.ciphertext,s=parseInt(r.iterations);s<=0&&(s=999);let a=ru/4,c=ra.PBKDF2(t,n,{hasher:ra.algo.SHA512,keySize:a/8,iterations:s}),u=ra.AES.decrypt(o,c,{mode:ra.mode.CBC,iv:i});return u.toString(ra.enc.Utf8)},rd="-----BEGIN PUBLIC KEY-----",rf="-----END PUBLIC KEY-----",rp="-----BEGIN PRIVATE KEY-----",rg="-----END PRIVATE KEY-----",rm=()=>{if("u">typeof globalThis&&globalThis.crypto?.subtle)return globalThis.crypto.subtle;throw Error("Web Crypto API is not available in this environment")},rv=(e,t,r,n)=>{if(!e.includes(t)||!e.includes(r))throw Error(`Invalid ${n} key format: expected PEM`);let i=e.replace(t,"").replace(r,"").replace(/\s+/g,"");if("function"!=typeof atob)throw Error("Base64 decoding is not available in this environment");let o=atob(i),s=new Uint8Array(o.length);for(let e=0;e<o.length;e++)s[e]=o.charCodeAt(e);return s.buffer},ry=e=>{let t="",r=new Uint8Array(e);if(r.forEach(e=>{t+=String.fromCharCode(e)}),"function"!=typeof btoa)throw Error("Base64 encoding is not available in this environment");return btoa(t)},rb=e=>{if("function"!=typeof atob)throw Error("Base64 decoding is not available in this environment");let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer},rw=async(e,t)=>{let r=rm(),n="public"===t?rv(e,rd,rf,"public"):rv(e,rp,rg,"private");return r.importKey("public"===t?"spki":"pkcs8",n,{name:"RSA-OAEP",hash:"SHA-256"},!1,"public"===t?["encrypt"]:["decrypt"])},rx=async(e,t)=>{let r=rm(),n=await rw(t,"public"),i=new TextEncoder().encode(e),o=await r.encrypt({name:"RSA-OAEP"},n,i);return ry(o)},r_=async(e,t)=>{let r=rm(),n=await rw(t,"private"),i=rb(e),o=await r.decrypt({name:"RSA-OAEP"},n,i);return new TextDecoder().decode(o)};var rk={encrypt:rl,decrypt:rh,encryptWithPublicKey:rx,decryptWithPrivateKey:r_};function rS(e){return(rS="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})(e)}function rC(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function rE(e){return rC(1,arguments),e instanceof Date||"object"===rS(e)&&"[object Date]"===Object.prototype.toString.call(e)}function rO(e){rC(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===rS(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"u">typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(0/0))}function rI(e){if(rC(1,arguments),!rE(e)&&"number"!=typeof e)return!1;var t=rO(e);return!isNaN(Number(t))}function rT(e){if(null===e||!0===e||!1===e)return 0/0;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function rA(e,t){rC(2,arguments);var r=rO(e).getTime(),n=rT(t);return new Date(r+n)}function rM(e,t){rC(2,arguments);var r=rT(t);return rA(e,-r)}var rR=864e5;function rP(e){rC(1,arguments);var t=rO(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/rR)+1}function rL(e){rC(1,arguments);var t=1,r=rO(e),n=r.getUTCDay(),i=7*(n<t)+n-t;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function rD(e){rC(1,arguments);var t=rO(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=rL(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var s=rL(o);return t.getTime()>=i.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function rN(e){rC(1,arguments);var t=rD(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=rL(r);return n}var rB=6048e5;function rF(e){rC(1,arguments);var t=rO(e),r=rL(t).getTime()-rN(t).getTime();return Math.round(r/rB)+1}var rj={};function rU(){return rj}function rz(e,t){var r,n,i,o,s,a,c,u;rC(1,arguments);var l=rU(),h=rT(null!=(r=null!=(n=null!=(i=null!=(o=null==t?void 0:t.weekStartsOn)?o:null==t||null==(s=t.locale)||null==(a=s.options)?void 0:a.weekStartsOn)?i:l.weekStartsOn)?n:null==(c=l.locale)||null==(u=c.options)?void 0:u.weekStartsOn)?r:0);if(!(h>=0&&h<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=rO(e),f=d.getUTCDay(),p=7*(f<h)+f-h;return d.setUTCDate(d.getUTCDate()-p),d.setUTCHours(0,0,0,0),d}function rq(e,t){var r,n,i,o,s,a,c,u;rC(1,arguments);var l=rO(e),h=l.getUTCFullYear(),d=rU(),f=rT(null!=(r=null!=(n=null!=(i=null!=(o=null==t?void 0:t.firstWeekContainsDate)?o:null==t||null==(s=t.locale)||null==(a=s.options)?void 0:a.firstWeekContainsDate)?i:d.firstWeekContainsDate)?n:null==(c=d.locale)||null==(u=c.options)?void 0:u.firstWeekContainsDate)?r:1);if(!(f>=1&&f<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(h+1,0,f),p.setUTCHours(0,0,0,0);var g=rz(p,t),m=new Date(0);m.setUTCFullYear(h,0,f),m.setUTCHours(0,0,0,0);var v=rz(m,t);return l.getTime()>=g.getTime()?h+1:l.getTime()>=v.getTime()?h:h-1}function rH(e,t){var r,n,i,o,s,a,c,u;rC(1,arguments);var l=rU(),h=rT(null!=(r=null!=(n=null!=(i=null!=(o=null==t?void 0:t.firstWeekContainsDate)?o:null==t||null==(s=t.locale)||null==(a=s.options)?void 0:a.firstWeekContainsDate)?i:l.firstWeekContainsDate)?n:null==(c=l.locale)||null==(u=c.options)?void 0:u.firstWeekContainsDate)?r:1),d=rq(e,t),f=new Date(0);f.setUTCFullYear(d,0,h),f.setUTCHours(0,0,0,0);var p=rz(f,t);return p}var r$=6048e5;function rW(e,t){rC(1,arguments);var r=rO(e),n=rz(r,t).getTime()-rH(r,t).getTime();return Math.round(n/r$)+1}function rV(e,t){var r=e<0?"-":"",n=Math.abs(e).toString();while(n.length<t)n="0"+n;return r+n}var rY={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return rV("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):rV(r+1,2)},d:function(e,t){return rV(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return rV(e.getUTCHours()%12||12,t.length)},H:function(e,t){return rV(e.getUTCHours(),t.length)},m:function(e,t){return rV(e.getUTCMinutes(),t.length)},s:function(e,t){return rV(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,r-3));return rV(i,t.length)}},rX=rY,rJ={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},rG={G:function(e,t,r){var n=+(e.getUTCFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return rX.y(e,t)},Y:function(e,t,r,n){var i=rq(e,n),o=i>0?i:1-i;if("YY"===t){var s=o%100;return rV(s,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):rV(o,t.length)},R:function(e,t){var r=rD(e);return rV(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return rV(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return rV(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return rV(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return rX.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return rV(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var i=rW(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):rV(i,t.length)},I:function(e,t,r){var n=rF(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):rV(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):rX.d(e,t)},D:function(e,t,r){var n=rP(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):rV(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return rV(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return rV(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return rV(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours(),i=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n=e.getUTCHours(),i;switch(i=12===n?rJ.noon:0===n?rJ.midnight:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n=e.getUTCHours(),i;switch(i=n>=17?rJ.evening:n>=12?rJ.afternoon:n>=4?rJ.morning:rJ.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return rX.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):rX.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):rV(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):rV(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):rX.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):rX.s(e,t)},S:function(e,t){return rX.S(e,t)},X:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return rZ(o);case"XXXX":case"XX":return rQ(o);case"XXXXX":case"XXX":default:return rQ(o,":")}},x:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return rZ(o);case"xxxx":case"xx":return rQ(o);case"xxxxx":case"xxx":default:return rQ(o,":")}},O:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+rK(o,":");case"OOOO":default:return"GMT"+rQ(o,":")}},z:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+rK(o,":");case"zzzz":default:return"GMT"+rQ(o,":")}},t:function(e,t,r,n){var i=n._originalDate||e,o=Math.floor(i.getTime()/1e3);return rV(o,t.length)},T:function(e,t,r,n){var i=n._originalDate||e,o=i.getTime();return rV(o,t.length)}};function rK(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(0===o)return r+String(i);var s=t||"";return r+String(i)+s+rV(o,2)}function rZ(e,t){if(e%60===0){var r=e>0?"-":"+";return r+rV(Math.abs(e)/60,2)}return rQ(e,t)}function rQ(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),o=rV(Math.floor(i/60),2),s=rV(i%60,2);return n+o+r+s}var r0=rG,r1=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},r2=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},r4=function(e,t){var r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return r1(e,t);var o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",r1(n,t)).replace("{{time}}",r2(i,t))},r5={p:r2,P:r4},r8=r5;function r6(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var r3=["D","DD"],r7=["YY","YYYY"];function r9(e){return -1!==r3.indexOf(e)}function ne(e){return -1!==r7.indexOf(e)}function nt(e,t,r){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var nr={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},nn=function(e,t,r){var n,i=nr[e];if(n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix)if(r.comparison&&r.comparison>0)return"in "+n;else return n+" ago";return n},ni=nn;function no(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var ns={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},na={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},nc={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nu={date:no({formats:ns,defaultWidth:"full"}),time:no({formats:na,defaultWidth:"full"}),dateTime:no({formats:nc,defaultWidth:"full"})},nl=nu,nh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},nd=function(e,t,r,n){return nh[e]},nf=nd;function np(e){return function(t,r){var n=null!=r&&r.context?String(r.context):"standalone",i;if("formatting"===n&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=null!=r&&r.width?String(r.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,c=null!=r&&r.width?String(r.width):e.defaultWidth;i=e.values[c]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var ng={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nm={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nv={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ny={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},nb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},nx=function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},n_={ordinalNumber:nx,era:np({values:ng,defaultWidth:"wide"}),quarter:np({values:nm,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:np({values:nv,defaultWidth:"wide"}),day:np({values:ny,defaultWidth:"wide"}),dayPeriod:np({values:nb,defaultWidth:"wide",formattingValues:nw,defaultFormattingWidth:"wide"})},nk=n_;function nS(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(a)?nE(a,function(e){return e.test(s)}):nC(a,function(e){return e.test(s)}),u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;var l=t.slice(s.length);return{value:u,rest:l}}}function nC(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function nE(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function nO(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=r.valueCallback?r.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var nI=/^(\d+)(th|st|nd|rd)?/i,nT=/\d+/i,nA={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},nM={any:[/^b/i,/^(a|c)/i]},nR={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nP={any:[/1/i,/2/i,/3/i,/4/i]},nL={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},nD={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},nN={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},nB={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},nF={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},nj={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},nU={ordinalNumber:nO({matchPattern:nI,parsePattern:nT,valueCallback:function(e){return parseInt(e,10)}}),era:nS({matchPatterns:nA,defaultMatchWidth:"wide",parsePatterns:nM,defaultParseWidth:"any"}),quarter:nS({matchPatterns:nR,defaultMatchWidth:"wide",parsePatterns:nP,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:nS({matchPatterns:nL,defaultMatchWidth:"wide",parsePatterns:nD,defaultParseWidth:"any"}),day:nS({matchPatterns:nN,defaultMatchWidth:"wide",parsePatterns:nB,defaultParseWidth:"any"}),dayPeriod:nS({matchPatterns:nF,defaultMatchWidth:"any",parsePatterns:nj,defaultParseWidth:"any"})},nz=nU,nq={code:"en-US",formatDistance:ni,formatLong:nl,formatRelative:nf,localize:nk,match:nz,options:{weekStartsOn:0,firstWeekContainsDate:1}},nH=nq,n$=nH,nW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nV=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nY=/^'([^]*?)'?$/,nX=/''/g,nJ=/[a-zA-Z]/;function nG(e,t,r){var n,i,o,s,a,c,u,l,h,d,f,p,g,m,v,y,b,w;rC(2,arguments);var x=String(t),_=rU(),k=null!=(n=null!=(i=null==r?void 0:r.locale)?i:_.locale)?n:n$,S=rT(null!=(o=null!=(s=null!=(a=null!=(c=null==r?void 0:r.firstWeekContainsDate)?c:null==r||null==(u=r.locale)||null==(l=u.options)?void 0:l.firstWeekContainsDate)?a:_.firstWeekContainsDate)?s:null==(h=_.locale)||null==(d=h.options)?void 0:d.firstWeekContainsDate)?o:1);if(!(S>=1&&S<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=rT(null!=(f=null!=(p=null!=(g=null!=(m=null==r?void 0:r.weekStartsOn)?m:null==r||null==(v=r.locale)||null==(y=v.options)?void 0:y.weekStartsOn)?g:_.weekStartsOn)?p:null==(b=_.locale)||null==(w=b.options)?void 0:w.weekStartsOn)?f:0);if(!(C>=0&&C<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw RangeError("locale must contain localize property");if(!k.formatLong)throw RangeError("locale must contain formatLong property");var E=rO(e);if(!rI(E))throw RangeError("Invalid time value");var O=r6(E),I=rM(E,O),T={firstWeekContainsDate:S,weekStartsOn:C,locale:k,_originalDate:E},A=x.match(nV).map(function(e){var t=e[0];if("p"===t||"P"===t){var r=r8[t];return r(e,k.formatLong)}return e}).join("").match(nW).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return nK(n);var o=r0[i];if(o)return!(null!=r&&r.useAdditionalWeekYearTokens)&&ne(n)&&nt(n,t,String(e)),!(null!=r&&r.useAdditionalDayOfYearTokens)&&r9(n)&&nt(n,t,String(e)),o(I,n,k.localize,T);if(i.match(nJ))throw RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("");return A}function nK(e){var t=e.match(nY);return t?t[1].replace(nX,"'"):e}function nZ(e,t){rC(2,arguments);var r=rO(e),n=rO(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function nQ(e,t){rC(2,arguments);var r=rO(e),n=rO(t),i=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return 12*i+o}function n0(e){rC(1,arguments);var t=rO(e);return t.setHours(23,59,59,999),t}function n1(e){rC(1,arguments);var t=rO(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function n2(e){rC(1,arguments);var t=rO(e);return n0(t).getTime()===n1(t).getTime()}function n4(e,t){rC(2,arguments);var r=rO(e),n=rO(t),i=nZ(r,n),o=Math.abs(nQ(r,n)),s;if(o<1)s=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);var a=nZ(r,n)===-i;n2(rO(e))&&1===o&&1===nZ(e,n)&&(a=!1),s=i*(o-Number(a))}return 0===s?0:s}function n5(e,t){return rC(2,arguments),rO(e).getTime()-rO(t).getTime()}var n8={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},n6="trunc";function n3(e){return e?n8[e]:n8[n6]}function n7(e,t,r){rC(2,arguments);var n=n5(e,t)/1e3;return n3(null==r?void 0:r.roundingMethod)(n)}function n9(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function ie(e){return n9({},e)}var it=1440,ir=2520,ii=43200,io=86400;function is(e,t,r){var n,i;rC(2,arguments);var o=rU(),s=null!=(n=null!=(i=null==r?void 0:r.locale)?i:o.locale)?n:n$;if(!s.formatDistance)throw RangeError("locale must contain formatDistance property");var a=nZ(e,t);if(isNaN(a))throw RangeError("Invalid time value");var c=n9(ie(r),{addSuffix:!!(null==r?void 0:r.addSuffix),comparison:a}),u,l;a>0?(u=rO(t),l=rO(e)):(u=rO(e),l=rO(t));var h=n7(l,u),d=(r6(l)-r6(u))/1e3,f=Math.round((h-d)/60),p;if(f<2)if(null!=r&&r.includeSeconds)if(h<5)return s.formatDistance("lessThanXSeconds",5,c);else if(h<10)return s.formatDistance("lessThanXSeconds",10,c);else if(h<20)return s.formatDistance("lessThanXSeconds",20,c);else if(h<40)return s.formatDistance("halfAMinute",0,c);else if(h<60)return s.formatDistance("lessThanXMinutes",1,c);else return s.formatDistance("xMinutes",1,c);else if(0===f)return s.formatDistance("lessThanXMinutes",1,c);else return s.formatDistance("xMinutes",f,c);if(f<45)return s.formatDistance("xMinutes",f,c);if(f<90)return s.formatDistance("aboutXHours",1,c);if(f<it){var g=Math.round(f/60);return s.formatDistance("aboutXHours",g,c)}if(f<ir)return s.formatDistance("xDays",1,c);else if(f<ii){var m=Math.round(f/it);return s.formatDistance("xDays",m,c)}else if(f<io)return p=Math.round(f/ii),s.formatDistance("aboutXMonths",p,c);if((p=n4(l,u))<12){var v=Math.round(f/ii);return s.formatDistance("xMonths",v,c)}var y=p%12,b=Math.floor(p/12);return y<3?s.formatDistance("aboutXYears",b,c):y<9?s.formatDistance("overXYears",b,c):s.formatDistance("almostXYears",b+1,c)}function ia(e,t){return rC(1,arguments),is(e,Date.now(),t)}let ic=new Map,iu=new Map,il=e=>"string"==typeof e||e instanceof String,ih=e=>Array.isArray(e),id=e=>"function"==typeof e,ip=e=>!!e&&e.constructor===Object,ig=e=>e[0].toUpperCase()+e.substring(1).toLowerCase(),im=e=>J(e)&&!Object.keys(e).length,iv=(e,t,r)=>{let n=t0(e,t,r);return n||r},iy=(e,t,r)=>rs(e,t,r),ib=e=>{let t=0;e.split("").forEach(e=>{t=e.charCodeAt(0)+((t<<5)-t)});let r="#";for(let e=0;e<3;e++){let n=t>>8*e&255;r+=n.toString(16).padStart(2,"0")}return r},iw=(e,t="#FFFFFF",r="#000000")=>{let n=ib(e),i="#"===n.charAt(0)?n.substring(1,7):n,o=parseInt(i.substring(0,2),16),s=parseInt(i.substring(2,4),16),a=parseInt(i.substring(4,6),16),c=[o/255,s/255,a/255],u=c.map(e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)),l=.2126*u[0]+.7152*u[1]+.0722*u[2];return l>.179?r:t},ix=(e,t="")=>rk.encrypt(e,t),i_=(e,t="")=>rk.decrypt(e,t),ik=async(e,t)=>await rk.encryptWithPublicKey(e,t),iS=async(e,t)=>await rk.decryptWithPrivateKey(e,t),iC=(e,t,r="production",n="")=>{ic.set(e,JSON.stringify(t));try{"production"===r?localStorage.setItem(e,ix(JSON.stringify(t),n)):localStorage.setItem(e,JSON.stringify(t))}catch{}},iE=(e,t="production",r="")=>{if(ic.has(e))return JSON.parse(ic.get(e));try{let n=localStorage.getItem(e);if(null==n)return null;let i;if("production"===t)try{i=JSON.parse(i_(n,r))}catch{try{i=JSON.parse(i_(n))}catch{i=JSON.parse(n)}}else i=JSON.parse(n);return ic.set(e,JSON.stringify(i)),i}catch{try{localStorage.removeItem(e)}catch{}return null}},iO=e=>{ic.delete(e);try{localStorage.removeItem(e)}catch{}},iI=(e,t,r="production",n="")=>{iu.set(e,JSON.stringify(t));try{"production"===r?sessionStorage.setItem(e,ix(JSON.stringify(t),n)):sessionStorage.setItem(e,JSON.stringify(t))}catch{}},iT=(e,t="production",r="")=>{if(iu.has(e))return JSON.parse(iu.get(e));try{let n=sessionStorage.getItem(e);if(null==n)return null;let i;if("production"===t)try{i=JSON.parse(i_(n,r))}catch{try{i=JSON.parse(i_(n))}catch{i=JSON.parse(n)}}else i=JSON.parse(n);return iu.set(e,JSON.stringify(i)),i}catch{try{sessionStorage.removeItem(e)}catch{}return null}},iA=e=>{iu.delete(e);try{sessionStorage.removeItem(e)}catch{}},iM=e=>{let t=/[A-Z]/.test(e),r=/[a-z]/.test(e),n=/[0-9]/.test(e),i=/[#?!@$%^&*-]/.test(e);return t&&r&&n&&i},iR=e=>{if("paste"==(e=e||window.event).type){let t=e,r=t.clipboardData?.getData("Text");return!isNaN(r)||t.preventDefault()}{let t=e,r=t.which?t.which:t.keyCode;return!(r>31)||!(r<48)&&!(r>57)||46===r||t.preventDefault()}},iP=(e,t)=>{if("paste"==(e=e||window.event).type){let r=e,n=r.clipboardData?.getData("Text"),i=n?.indexOf(".");return!(n.split(".").length>2)&&(!(t<=0)||2!==n.split(".").length)&&(2!==n.split(".").length||i+1==n.length-t)||r.preventDefault()}{let r=e,n=r.which?r.which:r.keyCode;if(t<=0)return(!["keyup","keydown"].includes(e.type)||190!==n)&&("keypress"!=r.type||46!==n)||r.preventDefault();{let e=r.target,i=e.value,o=i.indexOf(".");return(!(o>=0)||!(o<i.length-t))&&(46!==n||2!==i.split(".").length)||r.preventDefault()}}},iL=(e,t,r="success")=>e.replace(RegExp(t,"gi"),e=>`<span class='text-${r}'>${e}</span>`),iD=(e,t)=>{let r=new Image;if(r.src=e,r.complete)return t?.(!0),!0;r.onload=()=>(t?.(!0),!0),r.onerror=()=>(t?.(!1),!1)},iN=e=>{let t=encodeURIComponent,r=Object.keys(e).map(r=>t(r)+"="+t(e[r])).join("&");return r},iB=(e,t)=>{let r=e||"";return r+=Math.random().toString(36).substring(2,8)+Math.random().toString(36).substring(2,8),r+=t||""},iF=(e,t="dd-MM-yyyy")=>nG(new Date(e),t),ij=e=>(window.__LOADED_EMBEDDABLES__||(window.__LOADED_EMBEDDABLES__=new Set),window.__LOADED_EMBEDDABLES__.has(e))?Promise.resolve({}):Function("u","return import(u)")(e).then(t=>(window.__LOADED_EMBEDDABLES__.add(e),t)),iU=e=>ia(new Date(e),{addSuffix:!0}),iz=(e,t,r,n)=>{t=t||0,"string"==typeof e&&(e=parseFloat(e)),r&&n||(r=".",n=",");let i=Math.round(Math.abs(e)*Math.pow(10,t))+"";i=1>e&&-1<e&&i.length<=t?Array(t-i.length+1).join("0")+i:i;let o=t?i.slice(0,-1*t):i.slice(0),s=parseInt(o)||0;o=0==s?"0":o;let a=t?i.slice(-1*t):"",c="";while(o.length>3)c=n+o.slice(-3)+c,o=o.slice(0,-3);return(e<0?"-":"")+o+c+(a?r+a:"")},iq=new Map,iH="@accessToken",i$="idms_token",iW="@refreshToken";class iV{encryptionKey;constructor(e){e="",this.encryptionKey=e}get(e){if(iq.has(e))return JSON.parse(iq.get(e));let t=f.get(e);if(!t)return;let r="";try{r=JSON.parse(i_(t,this.encryptionKey))}catch{f.remove(e);return}return iq.set(e,JSON.stringify(r)),r}set(e,t,r){iq.set(e,JSON.stringify(t)),t=ix(JSON.stringify(t),this.encryptionKey),f.set(e,t,r)}remove(e,t){iq.delete(e),f.remove(e,t)}getToken(){return this.get(iH)}saveToken(e,t){this.set(iH,e,t)}removeToken(e){this.remove(iH,e)}removeLocalStorageToken(){iO(i$)}getRefreshToken(){return this.get(iW)}saveRefreshToken(e){this.set(iW,e)}removeRefreshToken(e){this.remove(iW,e)}clearAll(){Object.keys(f.get()).forEach(e=>{f.remove(e),f.remove(e,{path:"/"})}),iq.clear()}}var iY=iV,iX=r(6586),iJ=r.n(iX);function iG(){this.__data__=new tc,this.size=0}var iK=iG;function iZ(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}var iQ=iZ;function i0(e){return this.__data__.get(e)}var i1=i0;function i2(e){return this.__data__.has(e)}var i4=i2,i5=200;function i8(e,t){var r=this.__data__;if(r instanceof tc){var n=r.__data__;if(!tl||n.length<i5-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new tE(n)}return r.set(e,t),this.size=r.size,this}var i6=i8;function i3(e){var t=this.__data__=new tc(e);this.size=t.size}i3.prototype.clear=iK,i3.prototype["delete"]=iQ,i3.prototype.get=i1,i3.prototype.has=i4,i3.prototype.set=i6;var i7=i3;function i9(e,t,r){(void 0===r||e5(e[t],r))&&(void 0!==r||t in e)||t5(e,t,r)}var oe=i9;function ot(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var c=s[e?a:++i];if(!1===r(o[c],c,o))break}return t}}var or=ot,on=or(),oi=on,oo="object"==typeof exports&&exports&&!exports.nodeType&&exports,os=oo&&"object"==typeof module&&module&&!module.nodeType&&module,oa=os&&os.exports===oo,oc=oa?y.Buffer:void 0,ou=oc?oc.allocUnsafe:void 0;function ol(e,t){if(t)return e.slice();var r=e.length,n=ou?ou(r):new e.constructor(r);return e.copy(n),n}var oh=ol,od=y.Uint8Array,of=od;function op(e){var t=new e.constructor(e.byteLength);return new of(t).set(new of(e)),t}var og=op;function om(e,t){var r=t?og(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ov=om;function oy(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}var ob=oy,ow=Object.create,ox=function(){function e(){}return function(t){if(!es(t))return{};if(ow)return ow(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),o_=ox,ok=Object.prototype;function oS(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||ok;return e===r}var oC=oS;function oE(e){return"function"!=typeof e.constructor||oC(e)?{}:o_(j(e))}var oO=oE,oI="[object Arguments]";function oT(e){return z(e)&&D(e)==oI}var oA=oT,oM=Object.prototype,oR=oM.hasOwnProperty,oP=oM.propertyIsEnumerable,oL=oA(function(){return arguments}())?oA:function(e){return z(e)&&oR.call(e,"callee")&&!oP.call(e,"callee")},oD=oL,oN=0x1fffffffffffff;function oB(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=oN}var oF=oB;function oj(e){return null!=e&&oF(e.length)&&!ed(e)}var oU=oj;function oz(e){return z(e)&&oU(e)}var oq=oz;function oH(){return!1}var o$=oH,oW="object"==typeof exports&&exports&&!exports.nodeType&&exports,oV=oW&&"object"==typeof module&&module&&!module.nodeType&&module,oY=oV&&oV.exports===oW,oX=oY?y.Buffer:void 0,oJ=oX?oX.isBuffer:void 0,oG=oJ||o$,oK=oG,oZ="[object Arguments]",oQ="[object Array]",o0="[object Boolean]",o1="[object Date]",o2="[object Error]",o4="[object Function]",o5="[object Map]",o8="[object Number]",o6="[object Object]",o3="[object RegExp]",o7="[object Set]",o9="[object String]",se="[object WeakMap]",st="[object ArrayBuffer]",sr="[object DataView]",sn="[object Float32Array]",si="[object Float64Array]",so="[object Int8Array]",ss="[object Int16Array]",sa="[object Int32Array]",sc="[object Uint8Array]",su="[object Uint8ClampedArray]",sl="[object Uint16Array]",sh="[object Uint32Array]",sd={};function sf(e){return z(e)&&oF(e.length)&&!!sd[D(e)]}sd[sn]=sd[si]=sd[so]=sd[ss]=sd[sa]=sd[sc]=sd[su]=sd[sl]=sd[sh]=!0,sd[oZ]=sd[oQ]=sd[st]=sd[o0]=sd[sr]=sd[o1]=sd[o2]=sd[o4]=sd[o5]=sd[o8]=sd[o6]=sd[o3]=sd[o7]=sd[o9]=sd[se]=!1;var sp=sf;function sg(e){return function(t){return e(t)}}var sm=sg,sv="object"==typeof exports&&exports&&!exports.nodeType&&exports,sy=sv&&"object"==typeof module&&module&&!module.nodeType&&module,sb=sy&&sy.exports===sv,sw=sb&&g.process,sx=function(){try{var e=sy&&sy.require&&sy.require("util").types;if(e)return e;return sw&&sw.binding&&sw.binding("util")}catch(e){}}(),s_=sx,sk=s_&&s_.isTypedArray,sS=sk?sm(sk):sp,sC=sS;function sE(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var sO=sE;function sI(e,t,r,n){var i=!r;r||(r={});var o=-1,s=t.length;while(++o<s){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;void 0===c&&(c=e[a]),i?t5(r,a,c):t7(r,a,c)}return r}var sT=sI;function sA(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}var sM=sA,sR=Object.prototype,sP=sR.hasOwnProperty;function sL(e,t){var r=K(e),n=!r&&oD(e),i=!r&&!n&&oK(e),o=!r&&!n&&!i&&sC(e),s=r||n||i||o,a=s?sM(e.length,String):[],c=a.length;for(var u in e)(t||sP.call(e,u))&&!(s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||rr(u,c)))&&a.push(u);return a}var sD=sL;function sN(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}var sB=sN,sF=Object.prototype,sj=sF.hasOwnProperty;function sU(e){if(!es(e))return sB(e);var t=oC(e),r=[];for(var n in e)"constructor"==n&&(t||!sj.call(e,n))||r.push(n);return r}var sz=sU;function sq(e){return oU(e)?sD(e,!0):sz(e)}var sH=sq;function s$(e){return sT(e,sH(e))}var sW=s$;function sV(e,t,r,n,i,o,s){var a=sO(e,r),c=sO(t,r),u=s.get(c);if(u)return void oe(e,r,u);var l=o?o(a,c,r+"",e,t,s):void 0,h=void 0===l;if(h){var d=K(c),f=!d&&oK(c),p=!d&&!f&&sC(c);l=c,d||f||p?K(a)?l=a:oq(a)?l=ob(a):f?(h=!1,l=oh(c,!0)):p?(h=!1,l=ov(c,!0)):l=[]:J(c)||oD(c)?(l=a,oD(a)?l=sW(a):(!es(a)||ed(a))&&(l=oO(c))):h=!1}h&&(s.set(c,l),i(l,c,n,o,s),s["delete"](c)),oe(e,r,l)}var sY=sV;function sX(e,t,r,n,i){e!==t&&oi(t,function(o,s){if(i||(i=new i7),es(o))sY(e,t,s,r,sX,n,i);else{var a=n?n(sO(e,s),o,s+"",e,t,i):void 0;void 0===a&&(a=o),oe(e,s,a)}},sH)}var sJ=sX;function sG(e){return e}var sK=sG;function sZ(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var sQ=sZ,s0=Math.max;function s1(e,t,r){return t=s0(void 0===t?e.length-1:t,0),function(){var n=arguments,i=-1,o=s0(n.length-t,0),s=Array(o);while(++i<o)s[i]=n[t+i];i=-1;var a=Array(t+1);while(++i<t)a[i]=n[i];return a[t]=r(s),sQ(e,this,a)}}var s2=s1;function s4(e){return function(){return e}}var s5=s4,s8=t2?function(e,t){return t2(e,"toString",{configurable:!0,enumerable:!1,value:s5(t),writable:!0})}:sK,s6=s8,s3=800,s7=16,s9=Date.now;function ae(e){var t=0,r=0;return function(){var n=s9(),i=s7-(n-r);if(r=n,i>0){if(++t>=s3)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var at=ae,ar=at(s6),an=ar;function ai(e,t){return an(s2(e,t,sK),e+"")}var ao=ai;function as(e,t,r){if(!es(r))return!1;var n=typeof t;return("number"==n?!!(oU(r)&&rr(t,r.length)):"string"==n&&t in r)&&e5(r[t],e)}var aa=as;function ac(e){return ao(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&aa(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++n<i){var a=r[n];a&&e(t,a,n,o)}return t})}var au=ac,al=au(function(e,t,r){sJ(e,t,r)}),ah=al;let ad="calc(var(--sfe-stack-level-alert) + 1)",af=e=>{let t=e.closest(".swal2-container");t?.style.setProperty("z-index",ad)},ap=e=>{let t=e.didOpen;return iJ().fire({...e,didOpen:e=>{af(e),t?.(e)}})},ag=(e,t)=>{let r={confirmButtonText:"Yes",cancelButtonText:"No",customClass:{confirmButton:"btn btn-primary",cancelButton:"btn btn-danger"},reverseButtons:!0},n={showCancelButton:!t,showCloseButton:!1,buttonsStyling:!1},i=ah(r,e,n);return ap({html:`<div class="d-flex flex-column">
61
61
  <div class="icon d-flex wpx-76 hpx-76 bg-${i.iconColor}-lt-2 rounded-circle mx-auto mt-4">
62
62
  <span class="material-icons fw-700 fs-40 text-${i.iconColor}-dk-1 my-auto mx-auto">
63
63
  ${i.iconName}
@@ -78,4 +78,4 @@
78
78
  </div>
79
79
  </div>
80
80
  <span class="swal2-cancel material-icons small cursor-pointer text-secondary-lt-1"">clear</span>
81
- </div>`})},av="@appClient",ay="@loggedInUser",ab="@refreshTokenPath",aw="@appLoginUrl",ax="@redirectUrl";class a_{encryptionKey;tokenService;constructor(e){this.encryptionKey=e,this.tokenService=new iY(e)}redirectToLogin(){this.logOut(),am("error","Error","You need to sign in."),setTimeout(()=>{location.href="/login"},2e3)}hasValidToken(e){if(e.meta?.protected!==!0)return!0;let t=this.tokenService.getToken();return!!t||(this.redirectToLogin(),!1)}setClientDetails(e){iC(av,e)}getClientDetails(){return iE(av)}removeClientDetails(){iO(av)}setLoggedInUser(e){iC(ay,e)}getLoggedInUser(){return iE(ay)}removeLoggedInUser(){iO(ay)}isLoggedIn(){return this.hasLoggedIn()&&!!this.tokenService.getToken()}logOut(e){e?this.clearAll():(this.tokenService.removeLocalStorageToken(),this.tokenService.removeToken(),this.tokenService.removeRefreshToken(),this.removeLoggedInUser(),this.removeRefreshTokenPath(),this.removeLoginUrl(),this.clearGlobaThis())}hasLoggedIn(){let e=this.getLoggedInUser();return!!e?.id}clearAll(){localStorage.clear(),sessionStorage.clear(),this.tokenService.clearAll(),this.clearGlobaThis()}clearGlobaThis(){let e=globalThis,t=e["__shr_http_refresh_state__"];t&&(t.accessToken=null)}getLoginUrl(){return iE(aw)}saveLoginUrl(e){iC(aw,e)}removeLoginUrl(){iO(aw)}getRefreshTokenPath(){return iE(ab)}saveRefreshTokenPath(e){iC(ab,e)}removeRefreshTokenPath(){iO(ab)}getRedirectUrl(){return iE(ax)}saveRedirectUrl(e){let t=new URL(window.location.href),r=t.searchParams.get("intended_url")||t.searchParams.get("referer"),n=e||r||window.location.href;iC(ax,decodeURIComponent(n))}removeRedirectUrl(){iO(ax)}}var ak=a_;let aS={"X-Requested-With":"XMLHttpRequest"},aC="__shr_http_refresh_state__";function aE(){let e=globalThis;return e[aC]||(e[aC]={isRefreshing:!1,failedQueue:[],accessToken:null}),e[aC]}function aO(e,t=null){let r=aE();r.failedQueue.forEach(({resolve:r,reject:n})=>{e?n(e):r(t)}),r.failedQueue=[]}class aI{tokenService;authService;instance;token;apiBaseUrl;loginUrl;timeout;projectType;httpHeaders;defaultError;constructor(e){this.tokenService=new iY(e?.encryptionKey),this.authService=new ak(e?.encryptionKey),this.apiBaseUrl=e?.apiBaseUrl||"/",this.loginUrl=e?.loginUrl,this.timeout=e?.timeout||2e4,this.projectType=e?.projectType,this.httpHeaders=e?.httpHeaders||{},this.defaultError=e?.defaultError,this.instance=u().create({baseURL:this.apiBaseUrl}),this.token=this.tokenService.getToken(),this.initializeRequestInterceptor(),this.initializeResponseInterceptor()}getInstance=()=>this.instance;getInstance2=()=>({get:this.get,post:this.post,put:this.put,patch:this.patch,delete:this.delete,request:this.request,defaults:this.instance.defaults,instance:this.instance});get=(e,t)=>this.instance.get(e,t);post=(e,t,r)=>this.instance.post(e,t,r);put=(e,t,r)=>this.instance.put(e,t,r);patch=(e,t,r)=>this.instance.patch(e,t,r);delete=(e,t)=>this.instance.delete(e,t);request=e=>this.instance.request(e);resolveError(e,t,r){if(!r)return{showMessage:!0,defaultMessage:t};if("string"==typeof r)return{showMessage:!0,defaultMessage:r};let n=r(e);return"string"==typeof n&&""!==n.trim()?{showMessage:!0,defaultMessage:n}:{showMessage:!1!==n,defaultMessage:t}}rejectIfOffline(){if("u">typeof navigator&&!navigator.onLine){let e=Error("No internet access!"),{showMessage:t,defaultMessage:r}=this.resolveError(e,"No internet access!",this.defaultError?.onNetworkError);return t&&am("error","Error",r),e}return null}initializeRequestInterceptor=()=>{this.instance.interceptors.request.use(this.handleRequest,e=>Promise.reject(e))};handleRequest=e=>{let t=aE();this.token=t.accessToken??this.tokenService.getToken(),this.token&&!t.accessToken&&(t.accessToken=this.token),e.timeout=this.timeout,e.headers={...e.headers||{},...this.httpHeaders||{},...aS},this.token&&(e.headers.Authorization=`Bearer ${this.token}`);let r=this.rejectIfOffline();return r?Promise.reject(r):e};initializeResponseInterceptor=()=>{this.instance.interceptors.response.use(e=>{if(e.headers&&e.headers.authorization){let t=e.headers.authorization.split(" ")[1];this.token=t,this.tokenService.saveToken(this.token),aE().accessToken=t}return e},this.handleError)};handleError=async e=>{if(!e.config)return Promise.reject(e);let t=e.config,r=t?._skipAuthRedirect===!0,n=t?._hideDefaultMessage===!0,i=e.response?.status;if(401===i&&!t?._retry&&!r){let r=aE();if(r.isRefreshing)return new Promise((e,t)=>{r.failedQueue.push({resolve:e,reject:t})}).then(e=>(t.headers.Authorization=`Bearer ${e}`,this.instance(t)));t._retry=!0,r.isRefreshing=!0;try{let e=await this.refreshToken(),{access_token:n,refresh_token:i}=e.data?.data??{};this.tokenService.saveToken(n),this.tokenService.saveRefreshToken(i),r.accessToken=n,aO(null,n),r.isRefreshing=!1;let o=this.rejectIfOffline();if(o)return Promise.reject(o);return t.headers.Authorization=`Bearer ${n}`,this.instance(t)}catch(i){aO(i,null),r.isRefreshing=!1,r.accessToken=null;let{showMessage:t,defaultMessage:n}=this.resolveError(e,"Your session has expired, you need to sign in again.");return t&&(am("error","Error",n),setTimeout(()=>{let e=this.authService.getLoginUrl();e||(e="function"==typeof this.loginUrl?this.loginUrl():this.loginUrl),e&&(location.href=e)},1e3)),this.authService.logOut(),Promise.reject(e.response||e)}}let o={403:this.defaultError?.onForbidden,500:this.defaultError?.onServerError,400:this.defaultError?.onBadRequest,422:this.defaultError?.onValidationError,404:this.defaultError?.onNotFound},s=e.response?.data?.message,a={403:"You do not have permission to perform this action",500:s||"Unable to process request at this time, please try again",400:s||"Bad Request",422:s||"Validation error",404:"Resource not found"};if(i&&o[i]){let{showMessage:t,defaultMessage:r}=this.resolveError(e,a[i],o[i]);t&&!n&&am("error","Error",r)}return Promise.reject(e.response||e)};async refreshToken(){let e=this.authService.getRefreshTokenPath();e||(iC("refresh-token-path-not-found",!0),e=`${location.origin}/api/v2/auth/refresh-token-web`);let t={refresh_token:this.tokenService.getRefreshToken(),ums_user_id:this.authService.getLoggedInUser()?.ums_user_id};return u().post(e,t)}}function aT(e){let t=Object.create(null);for(let r of e.split(","))t[r]=1;return e=>e in t}let aA=Object.assign,aM=Object.prototype.hasOwnProperty,aR=(e,t)=>aM.call(e,t),aP=Array.isArray,aL=e=>"[object Map]"===aj(e),aD=e=>"string"==typeof e,aN=e=>"symbol"==typeof e,aB=e=>null!==e&&"object"==typeof e,aF=Object.prototype.toString,aj=e=>aF.call(e),aU=e=>aj(e).slice(8,-1),az=e=>aD(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,aq=(e,t)=>!Object.is(e,t),aH,a$=0,aW,aV;function aY(){a$++}function aX(){if(--a$>0)return;if(aV){let e=aV;aV=void 0;while(e){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;while(aW){let t=aW;aW=void 0;while(t){let r=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=r}}if(e)throw e}let aJ=!0,aG=[];function aK(){aG.push(aJ),aJ=!1}function aZ(){let e=aG.pop();aJ=void 0===e||e}let aQ=0;class a0{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class a1{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!aH||!aJ||aH===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==aH)t=this.activeLink=new a0(aH,this),aH.deps?(t.prevDep=aH.depsTail,aH.depsTail.nextDep=t,aH.depsTail=t):aH.deps=aH.depsTail=t,a2(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=aH.depsTail,t.nextDep=void 0,aH.depsTail.nextDep=t,aH.depsTail=t,aH.deps===t&&(aH.deps=e)}return t}trigger(e){this.version++,aQ++,this.notify(e)}notify(e){aY();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{aX()}}}function a2(e){if(e.dep.sc++,4&e.sub.flags){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)a2(e)}let r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}let a4=new WeakMap,a5=Symbol(""),a8=Symbol(""),a6=Symbol("");function a3(e,t,r){if(aJ&&aH){let t=a4.get(e);t||a4.set(e,t=new Map);let n=t.get(r);n||(t.set(r,n=new a1),n.map=t,n.key=r),n.track()}}function a7(e,t,r,n,i,o){let s=a4.get(e);if(!s)return void aQ++;let a=e=>{e&&e.trigger()};if(aY(),"clear"===t)s.forEach(a);else{let i=aP(e),o=i&&az(r);if(i&&"length"===r){let e=Number(n);s.forEach((t,r)=>{("length"===r||r===a6||!aN(r)&&r>=e)&&a(t)})}else switch((void 0!==r||s.has(void 0))&&a(s.get(r)),o&&a(s.get(a6)),t){case"add":i?o&&a(s.get("length")):(a(s.get(a5)),aL(e)&&a(s.get(a8)));break;case"delete":!i&&(a(s.get(a5)),aL(e)&&a(s.get(a8)));break;case"set":aL(e)&&a(s.get(a5));break}}aX()}function a9(e,t){let r=a4.get(e);return r&&r.get(t)}function ce(e){let t=cF(e);return t===e?t:(a3(t,"iterate",a6),cN(e)?t:t.map(cj))}function ct(e){return a3(e=cF(e),"iterate",a6),e}function cr(e,t){return cD(e)?cL(e)?cU(cj(t)):cU(t):cj(t)}let cn={__proto__:null,[Symbol.iterator](){return ci(this,Symbol.iterator,e=>cr(this,e))},concat(...e){return ce(this).concat(...e.map(e=>aP(e)?ce(e):e))},entries(){return ci(this,"entries",e=>(e[1]=cr(this,e[1]),e))},every(e,t){return cs(this,"every",e,t,void 0,arguments)},filter(e,t){return cs(this,"filter",e,t,e=>e.map(e=>cr(this,e)),arguments)},find(e,t){return cs(this,"find",e,t,e=>cr(this,e),arguments)},findIndex(e,t){return cs(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return cs(this,"findLast",e,t,e=>cr(this,e),arguments)},findLastIndex(e,t){return cs(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return cs(this,"forEach",e,t,void 0,arguments)},includes(...e){return cc(this,"includes",e)},indexOf(...e){return cc(this,"indexOf",e)},join(e){return ce(this).join(e)},lastIndexOf(...e){return cc(this,"lastIndexOf",e)},map(e,t){return cs(this,"map",e,t,void 0,arguments)},pop(){return cu(this,"pop")},push(...e){return cu(this,"push",e)},reduce(e,...t){return ca(this,"reduce",e,t)},reduceRight(e,...t){return ca(this,"reduceRight",e,t)},shift(){return cu(this,"shift")},some(e,t){return cs(this,"some",e,t,void 0,arguments)},splice(...e){return cu(this,"splice",e)},toReversed(){return ce(this).toReversed()},toSorted(e){return ce(this).toSorted(e)},toSpliced(...e){return ce(this).toSpliced(...e)},unshift(...e){return cu(this,"unshift",e)},values(){return ci(this,"values",e=>cr(this,e))}};function ci(e,t,r){let n=ct(e),i=n[t]();return n===e||cN(e)||(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=r(e.value)),e}),i}let co=Array.prototype;function cs(e,t,r,n,i,o){let s=ct(e),a=s!==e&&!cN(e),c=s[t];if(c!==co[t]){let t=c.apply(e,o);return a?cj(t):t}let u=r;s!==e&&(a?u=function(t,n){return r.call(this,cr(e,t),n,e)}:r.length>2&&(u=function(t,n){return r.call(this,t,n,e)}));let l=c.call(s,u,n);return a&&i?i(l):l}function ca(e,t,r,n){let i=ct(e),o=i!==e&&!cN(e),s=r,a=!1;i!==e&&(o?(a=0===n.length,s=function(t,n,i){return a&&(a=!1,t=cr(e,t)),r.call(this,t,cr(e,n),i,e)}):r.length>3&&(s=function(t,n,i){return r.call(this,t,n,i,e)}));let c=i[t](s,...n);return a?cr(e,c):c}function cc(e,t,r){let n=cF(e);a3(n,"iterate",a6);let i=n[t](...r);return(-1===i||!1===i)&&cB(r[0])?(r[0]=cF(r[0]),n[t](...r)):i}function cu(e,t,r=[]){aK(),aY();let n=cF(e)[t].apply(e,r);return aX(),aZ(),n}let cl=aT("__proto__,__v_isRef,__isVue"),ch=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(aN));function cd(e){aN(e)||(e=String(e));let t=cF(this);return a3(t,"has",e),t.hasOwnProperty(e)}class cf{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if("__v_skip"===t)return e["__v_skip"];let n=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!n;if("__v_isReadonly"===t)return n;if("__v_isShallow"===t)return i;if("__v_raw"===t)return r===(n?i?cT:cI:i?cO:cE).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;let o=aP(e);if(!n){let e;if(o&&(e=cn[t]))return e;if("hasOwnProperty"===t)return cd}let s=Reflect.get(e,t,cz(e)?e:r);if((aN(t)?ch.has(t):cl(t))||(n||a3(e,"get",t),i))return s;if(cz(s)){let e=o&&az(t)?s:s.value;return n&&aB(e)?cR(e):e}return aB(s)?n?cR(s):cM(s):s}}class cp extends cf{constructor(e=!1){super(!1,e)}set(e,t,r,n){let i=e[t],o=aP(e)&&az(t);if(!this._isShallow){let e=cD(i);if(cN(r)||cD(r)||(i=cF(i),r=cF(r)),!o&&cz(i)&&!cz(r))if(e)return!0;else return i.value=r,!0}let s=o?Number(t)<e.length:aR(e,t),a=Reflect.set(e,t,r,cz(e)?e:n);return e===cF(n)&&a&&(s?aq(r,i)&&a7(e,"set",t,r,i):a7(e,"add",t,r)),a}deleteProperty(e,t){let r=aR(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&a7(e,"delete",t,void 0,n),i}has(e,t){let r=Reflect.has(e,t);return aN(t)&&ch.has(t)||a3(e,"has",t),r}ownKeys(e){return a3(e,"iterate",aP(e)?"length":a5),Reflect.ownKeys(e)}}class cg extends cf{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let cm=new cp,cv=new cg,cy=e=>e,cb=e=>Reflect.getPrototypeOf(e);function cw(e,t,r){return function(...n){let i=this["__v_raw"],o=cF(i),s=aL(o),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=i[e](...n),l=r?cy:t?cU:cj;return t||a3(o,"iterate",c?a8:a5),aA(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[l(e[0]),l(e[1])]:l(e),done:t}}})}}function cx(e){return function(){return"delete"!==e&&("clear"===e?void 0:this)}}function c_(e,t){let r={get(r){let n=this["__v_raw"],i=cF(n),o=cF(r);e||(aq(r,o)&&a3(i,"get",r),a3(i,"get",o));let{has:s}=cb(i),a=t?cy:e?cU:cj;return s.call(i,r)?a(n.get(r)):s.call(i,o)?a(n.get(o)):void(n!==i&&n.get(r))},get size(){let t=this["__v_raw"];return e||a3(cF(t),"iterate",a5),t.size},has(t){let r=this["__v_raw"],n=cF(r),i=cF(t);return e||(aq(t,i)&&a3(n,"has",t),a3(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)},forEach(r,n){let i=this,o=i["__v_raw"],s=cF(o),a=t?cy:e?cU:cj;return e||a3(s,"iterate",a5),o.forEach((e,t)=>r.call(n,a(e),a(t),i))}};aA(r,e?{add:cx("add"),set:cx("set"),delete:cx("delete"),clear:cx("clear")}:{add(e){let r=cF(this),n=cb(r),i=cF(e),o=t||cN(e)||cD(e)?e:i,s=n.has.call(r,o)||aq(e,o)&&n.has.call(r,e)||aq(i,o)&&n.has.call(r,i);return s||(r.add(o),a7(r,"add",o,o)),this},set(e,r){t||cN(r)||cD(r)||(r=cF(r));let n=cF(this),{has:i,get:o}=cb(n),s=i.call(n,e);s||(e=cF(e),s=i.call(n,e));let a=o.call(n,e);return n.set(e,r),s?aq(r,a)&&a7(n,"set",e,r,a):a7(n,"add",e,r),this},delete(e){let t=cF(this),{has:r,get:n}=cb(t),i=r.call(t,e);i||(e=cF(e),i=r.call(t,e));let o=n?n.call(t,e):void 0,s=t.delete(e);return i&&a7(t,"delete",e,void 0,o),s},clear(){let e=cF(this),t=0!==e.size,r,n=e.clear();return t&&a7(e,"clear",void 0,void 0,r),n}});let n=["keys","values","entries",Symbol.iterator];return n.forEach(n=>{r[n]=cw(n,e,t)}),r}function ck(e,t){let r=c_(e,t);return(t,n,i)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(aR(r,n)&&n in t?r:t,n,i)}let cS={get:ck(!1,!1)},cC={get:ck(!0,!1)},cE=new WeakMap,cO=new WeakMap,cI=new WeakMap,cT=new WeakMap;function cA(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function cM(e){return cD(e)?e:cP(e,!1,cm,cS,cE)}function cR(e){return cP(e,!0,cv,cC,cI)}function cP(e,t,r,n,i){if(!aB(e)||e["__v_raw"]&&!(t&&e["__v_isReactive"])||e["__v_skip"]||!Object.isExtensible(e))return e;let o=i.get(e);if(o)return o;let s=cA(aU(e));if(0===s)return e;let a=new Proxy(e,2===s?n:r);return i.set(e,a),a}function cL(e){return cD(e)?cL(e["__v_raw"]):!!(e&&e["__v_isReactive"])}function cD(e){return!!(e&&e["__v_isReadonly"])}function cN(e){return!!(e&&e["__v_isShallow"])}function cB(e){return!!e&&!!e["__v_raw"]}function cF(e){let t=e&&e["__v_raw"];return t?cF(t):e}let cj=e=>aB(e)?cM(e):e,cU=e=>aB(e)?cR(e):e;function cz(e){return!!e&&!0===e["__v_isRef"]}function cq(e){return cz(e)?e.value:e}function cH(e){let t=aP(e)?Array(e.length):{};for(let r in e)t[r]=cW(e,r);return t}class c${constructor(e,t,r){this._object=e,this._defaultValue=r,this["__v_isRef"]=!0,this._value=void 0,this._key=aN(t)?t:String(t),this._raw=cF(e);let n=!0,i=e;if(!aP(e)||aN(this._key)||!az(this._key))do n=!cB(i)||cN(i);while(n&&(i=i["__v_raw"]))this._shallow=n}get value(){let e=this._object[this._key];return this._shallow&&(e=cq(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&cz(this._raw[this._key])){let t=this._object[this._key];if(cz(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return a9(this._raw,this._key)}}function cW(e,t,r){return new c$(e,t,r)}function cV(e,t,r){let n=cM({isLoading:!1,isSuccessful:!1,hasError:!1,response:null,error:null});return n.isLoading=!0,n.error=null,e.request(t).then(r).then(e=>{n.response=e,n.isSuccessful=!0}).catch(e=>{n.error=e?.data,n.hasError=!0}).finally(()=>{n.isLoading=!1}),n}function cY(e,t,r){let n=cM({response:null,error:null,isLoading:!1,isSuccessful:!1,hasError:!1}),i=async i=>{let o=e.request(i?{...t,...i}:t);n.isLoading=!0;try{let e=await o.then(r);return n.response=e,n.error=null,n.isSuccessful=!0,n.hasError=!1,e}catch(e){throw n.response=null,n.error=e?.data,n.isSuccessful=!1,n.hasError=!0,Error(e?.data)}finally{n.isLoading=!1}};return{...cH(n),execute:i}}let cX=(e,t,r)=>{if(!Array.isArray(e))return e.___group_name=iv(e,t,""),e.___identity=iv(e,r,""),e;{let n=[];return e.forEach(e=>{n.push(cX(e,t,r))}),n}};class cJ{eventTarget;constructor(e=""){this.eventTarget=document.appendChild(document.createComment(e))}on(e,t){this.eventTarget.addEventListener(e,t)}once(e,t){this.eventTarget.addEventListener(e,t,{once:!0})}off(e,t){this.eventTarget.removeEventListener(e,t)}emit(e,t){let r=new CustomEvent(e,{detail:t});return this.eventTarget.dispatchEvent(r)}}let cG=new cJ("shr-event-bus");var cK=r(2242),cZ=r.n(cK);class cQ{pusher;setupPusherConnection(e,t){this.pusher=new(cZ())(e,t)}}var c0=new cQ,c1;if("u"<typeof window){var c2={hostname:""};c1={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:c2,referrer:""},screen:{width:0,height:0},location:c2,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else c1=window;var c4={DEBUG:!1,LIB_VERSION:"2.81.0"},c5="__mp_targeting",c8="__mp_recorder",c6="__MP_RECORDER_FILENAME__",c3="__MP_TARGETING_FILENAME__";function c7(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c9(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,i)}function ue(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){c9(o,n,i,s,a,"next",e)}function a(e){c9(o,n,i,s,a,"throw",e)}s(void 0)})}}function ut(e,t,r){return(ut=up()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=Function.bind.apply(e,n),o=new i;return r&&ul(o,r.prototype),o}).apply(null,arguments)}function ur(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function un(e,t,r){return t&&ur(e.prototype,t),e}function ui(){return(ui=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function uo(e){return(uo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function us(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ul(e,t)}function ua(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function uc(e){return -1!==Function.toString.call(e).indexOf("[native code]")}function uu(e,t){if(null==e)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],t.indexOf(i)>=0||(r[i]=e[i]);return r}function ul(e,t){return(ul=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function uh(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ud(e,t){if(e){if("string"==typeof e)return c7(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c7(e,t)}}function uf(e){var t="function"==typeof Map?new Map:void 0;return(uf=function(e){if(null===e||!uc(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ut(e,arguments,uo(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ul(r,e)})(e)}function up(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(up=function(){return!!e})()}function ug(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=ud(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function um(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function uv(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var uy=Object.defineProperty,ub=function(e,t,r){return t in e?uy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},uw=function(e,t,r){return ub(e,(void 0===t?"undefined":uh(t))!=="symbol"?t+"":t,r)},ux,u_=Object.defineProperty,uk=function(e,t,r){return t in e?u_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},uS=function(e,t,r){return uk(e,(void 0===t?"undefined":uh(t))!=="symbol"?t+"":t,r)},uC=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(uC||{}),uE={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},uO={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},uI={},uT=function(){return!!globalThis.Zone};function uA(e){if(uI[e])return uI[e];var t=globalThis[e],r=t.prototype,n=e in uE?uE[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in uO?uO[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!uT())return uI[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return uI[e]=u}catch(e){return r}}var uM={};function uR(e,t,r){var n,i=e+"."+String(r);if(uM[i])return uM[i].call(t);var o=uA(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(uM[i]=s,s.call(t)):t[r]}var uP={};function uL(e,t,r){var n=e+"."+String(r);if(uP[n])return uP[n].bind(t);var i=uA(e),o=i[r];return"function"!=typeof o?t[r]:(uP[n]=o,o.bind(t))}function uD(e){return uR("Node",e,"childNodes")}function uN(e){return uR("Node",e,"parentNode")}function uB(e){return uR("Node",e,"parentElement")}function uF(e){return uR("Node",e,"textContent")}function uj(e,t){return uL("Node",e,"contains")(t)}function uU(e){return uL("Node",e,"getRootNode")()}function uz(e){return e&&"host"in e?uR("ShadowRoot",e,"host"):null}function uq(e){return e.styleSheets}function uH(e){return e&&"shadowRoot"in e?uR("Element",e,"shadowRoot"):null}function u$(e,t){return uR("Element",e,"querySelector")(t)}function uW(e,t){return uR("Element",e,"querySelectorAll")(t)}function uV(){return uA("MutationObserver").constructor}function uY(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var uX={childNodes:uD,parentNode:uN,parentElement:uB,textContent:uF,contains:uj,getRootNode:uU,host:uz,styleSheets:uq,shadowRoot:uH,querySelector:u$,querySelectorAll:uW,mutationObserver:uV,patch:uY};function uJ(e){return e.nodeType===e.ELEMENT_NODE}function uG(e){var t=e&&"host"in e&&"mode"in e&&uX.host(e)||null;return!!(t&&"shadowRoot"in t&&uX.shadowRoot(t)===e)}function uK(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function uZ(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function uQ(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function u0(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,function(e){return u1(e,r)}).join("");return uZ(n)}catch(e){return null}}function u1(e,t){if(u4(e)){var r;try{r=u0(e.styleSheet)||uQ(e)}catch(t){r=e.cssText}return e.styleSheet.href?lc(r,e.styleSheet.href):r}var n=e.cssText;return(u5(e)&&e.selectorText.includes(":")&&(n=u2(n)),t)?lc(n,t):n}function u2(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function u4(e){return"styleSheet"in e}function u5(e){return"selectorText"in e}var u8=function(){function e(){uS(this,"idNodeMap",new Map),uS(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return -1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function u6(){return new u8}function u3(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&u7(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function u7(e){return e.toLowerCase()}var u9="__rrweb_original__";function le(e){var t=e.getContext("2d");if(!t)return!0;for(var r=50,n=0;n<e.width;n+=r)for(var i=0;i<e.height;i+=r){var o=t.getImageData,s=u9 in o?o[u9]:o,a=new Uint32Array(s.call(t,n,i,Math.min(r,e.width-n),Math.min(r,e.height-i)).data.buffer);if(a.some(function(e){return 0!==e}))return!1}return!0}function lt(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?u7(t):null}function lr(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n=/\.([0-9a-z]+)(?:$)/i,i=r.pathname.match(n),o;return null!=(o=null==i?void 0:i[1])?o:null}function ln(e){return(e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}var li=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,lo=/^(?:[a-z+]+:)?\/\//i,ls=/^www\..*/i,la=/^(data:)([^,]*),(.*)/i;function lc(e,t){return(e||"").replace(li,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;if(lo.test(a)||ls.test(a)||la.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+(ln(t)+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h=ug(l),d;!(d=h()).done;){var f=d.value;"."!==f&&(".."===f?u.pop():u.push(f))}return"url("+c+u.join("/")+c+")"})}function lu(e,t){return(void 0===t&&(t=!1),t)?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function ll(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e){for(var s=lu(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"==typeof n[c].textContent){for(var u=lu(n[c].textContent,r),l=100,h=3;h<u.length&&(u[h].match(/[a-zA-Z0-9]/)||-1!==u.indexOf(u.substring(0,h),1));h++);for(;h<u.length;h++){var d=u.substring(0,h),f=s.split(d),p=-1;if(2===f.length)p=f[0].length;else if(f.length>2&&""===f[0]&&""!==n[c-1].textContent)p=s.indexOf(d,1);else if(1===f.length){if(d=d.substring(0,d.length-1),(f=s.split(d)).length<=1)return i.push(e),i;h=l+1}else h===u.length-1&&(p=s.indexOf(d));if(f.length>=2&&h>l){var g=n[c-1].textContent;if(g&&"string"==typeof g){var m=lu(g).length;p=s.indexOf(d,m)}-1===p&&(p=f[0].length)}if(-1!==p){for(var v=Math.floor(p/a);v>0&&v<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var y=lu(e.substring(0,v),r);if(y.length===p){i.push(e.substring(0,v)),e=e.substring(v),s=s.substring(p);break}y.length<p?v+=Math.max(1,Math.floor((p-y.length)/a)):v-=Math.max(1,Math.floor((y.length-p)*a))}break}}}}return i.push(e),i}function lh(e,t){return ll(e,t).join("/* rr_split */")}var ld=1,lf=RegExp("[^a-z0-9-_:]"),lp=-2;function lg(){return ld++}function lm(e){if(ua(e,HTMLFormElement))return"form";var t=u7(e.tagName);return lf.test(t)?"div":t}var lv,ly,lb=/^[^ \t\n\r\u000c]+/,lw=/^[, \t\n\r\u000c]+/;function lx(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}var i=[];while(1){if(n(lw),r>=t.length)break;var o=n(lb);if(","===o.slice(-1))o=lk(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=lk(e,o);var a=!1;while(1){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else if(","===c){r+=1,i.push((o+s).trim());break}else"("===c&&(a=!0);s+=c,r+=1}}}return i.join(", ")}var l_=new WeakMap;function lk(e,t){return t&&""!==t.trim()?lC(e,t):t}function lS(e){return!!("svg"===e.tagName||e.ownerSVGElement)}function lC(e,t){var r=l_.get(e);if(r||(r=e.createElement("a"),l_.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function lE(e,t,r,n){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return lk(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return lk(e,n);if("srcset"===r)return lx(e,n);if("style"===r)return lc(n,lC(e));else if("object"===t&&"data"===r)return lk(e,n);return n}function lO(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function lI(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}function lT(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&lT(uX.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&lT(uX.parentNode(e),t,r)}function lA(e,t,r,n){var i;if(uJ(e)){if(i=e,!uX.childNodes(i).length)return!1}else{if(null===uX.parentElement(e))return!1;i=uX.parentElement(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(lT(i,t,n))return!0;if(r){if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}}catch(e){}return!1}function lM(e,t,r){var n=e.contentWindow;if(n){var i=!1,o;try{o=n.document.readyState}catch(e){return}if("complete"!==o){var s=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(s),i=!0,t()});return}var a="about:blank";if(n.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}function lR(e,t,r){var n=!1,i;try{i=e.sheet}catch(e){return}if(!i){var o=setTimeout(function(){n||(t(),n=!0)},r);e.addEventListener("load",function(){clearTimeout(o),n=!0,t()})}}function lP(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskTextFn,h=t.maskInputFn,d=t.dataURLOptions,f=void 0===d?{}:d,p=t.inlineImages,g=t.recordCanvas,m=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,b=t.cssCaptured,w=void 0!==b&&b,x=lL(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:uC.Document,childNodes:[],compatMode:e.compatMode};return{type:uC.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:uC.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return lN(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:f,inlineImages:p,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:y,rootId:x});case e.TEXT_NODE:return lD(e,{doc:r,needsMask:s,maskTextFn:l,rootId:x,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:uC.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:uC.Comment,textContent:uX.textContent(e)||"",rootId:x};default:return!1}}function lL(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}function lD(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=uX.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":!o&&(c=uX.textContent(e),u&&c&&(c=lc(c,lC(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,uX.parentElement(e)):c.replace(/[\S]/g,"*")),{type:uC.Text,textContent:c||"",rootId:i}}function lN(e,t){for(var r=t.doc,n=t.blockClass,i=t.blockSelector,o=t.inlineStylesheet,s=t.maskInputOptions,a=void 0===s?{}:s,c=t.maskInputFn,u=t.dataURLOptions,l=void 0===u?{}:u,h=t.inlineImages,d=t.recordCanvas,f=t.keepIframeSrcFn,p=t.newlyAddedElement,g=void 0!==p&&p,m=t.rootId,v=lI(e,n,i),y=lm(e),b={},w=e.attributes.length,x=0;x<w;x++){var _=e.attributes[x];lO(y,_.name,_.value)||(b[_.name]=lE(r,y,u7(_.name),_.value))}if("link"===y&&o){var k=Array.from(r.styleSheets).find(function(t){return t.href===e.href}),S=null;k&&(S=u0(k)),S&&(delete b.rel,delete b.href,b._cssText=S)}if("style"===y&&e.sheet){var C=u0(e.sheet);C&&(e.childNodes.length>1&&(C=lh(C,e)),b._cssText=C)}if("input"===y||"textarea"===y||"select"===y){var E=e.value,O=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&E?b.value=u3({element:e,type:lt(e),tagName:y,value:E,maskInputOptions:a,maskInputFn:c}):O&&(b.checked=O)}if("option"===y&&(e.selected&&!a["select"]?b.selected=!0:delete b.selected),"dialog"===y&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===y&&d){if("2d"===e.__context)le(e)||(b.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){var I=e.toDataURL(l.type,l.quality),T=r.createElement("canvas");T.width=e.width,T.height=e.height;var A=T.toDataURL(l.type,l.quality);I!==A&&(b.rr_dataURL=I)}}if("img"===y&&h){lv||(ly=(lv=r.createElement("canvas")).getContext("2d"));var M=e,R=M.currentSrc||M.getAttribute("src")||"<unknown-src>",P=M.crossOrigin,L=function(){M.removeEventListener("load",L);try{lv.width=M.naturalWidth,lv.height=M.naturalHeight,ly.drawImage(M,0,0),b.rr_dataURL=lv.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==M.crossOrigin){M.crossOrigin="anonymous",M.complete&&0!==M.naturalWidth?L():M.addEventListener("load",L);return}console.warn("Cannot inline img src="+R+"! Error: "+e)}"anonymous"===M.crossOrigin&&(P?b.crossOrigin=P:M.removeAttribute("crossorigin"))};M.complete&&0!==M.naturalWidth?L():M.addEventListener("load",L)}if("audio"===y||"video"===y){var D=b;D.rr_mediaState=e.paused?"paused":"played",D.rr_mediaCurrentTime=e.currentTime,D.rr_mediaPlaybackRate=e.playbackRate,D.rr_mediaMuted=e.muted,D.rr_mediaLoop=e.loop,D.rr_mediaVolume=e.volume}if(!g&&(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),v){var N=e.getBoundingClientRect(),B=N.width,F=N.height;b={class:b.class,rr_width:""+B+"px",rr_height:""+F+"px"}}var j;"iframe"!==y||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(y)&&(j=!0)}catch(e){}return{type:uC.Element,tagName:y,attributes:b,childNodes:[],isSVG:lS(e)||void 0,needBlock:v,rootId:m,isCustom:j}}function lB(e){return null==e?"":e.toLowerCase()}function lF(e,t){if(t.comment&&e.type===uC.Comment)return!0;if(e.type===uC.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===lr(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(lB(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===lB(e.attributes.name)||"icon"===lB(e.attributes.rel)||"apple-touch-icon"===lB(e.attributes.rel)||"shortcut icon"===lB(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&lB(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(lB(e.attributes.property).match(/^(og|twitter|fb):/)||lB(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===lB(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===lB(e.attributes.name)||"googlebot"===lB(e.attributes.name)||"bingbot"===lB(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===lB(e.attributes.name)||"generator"===lB(e.attributes.name)||"framework"===lB(e.attributes.name)||"publisher"===lB(e.attributes.name)||"progid"===lB(e.attributes.name)||lB(e.attributes.property).match(/^article:/)||lB(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===lB(e.attributes.name)||"yandex-verification"===lB(e.attributes.name)||"csrf-token"===lB(e.attributes.name)||"p:domain_verify"===lB(e.attributes.name)||"verify-v1"===lB(e.attributes.name)||"verification"===lB(e.attributes.name)||"shopify-checkout-api-token"===lB(e.attributes.name)))return!0}}return!1}function lj(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,d=t.maskInputOptions,f=void 0===d?{}:d,p=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,b=t.inlineImages,w=void 0!==b&&b,x=t.recordCanvas,_=void 0!==x&&x,k=t.onSerialize,S=t.onIframeLoad,C=t.iframeLoadTimeout,E=void 0===C?5e3:C,O=t.onStylesheetLoad,I=t.stylesheetLoadTimeout,T=void 0===I?5e3:I,A=t.keepIframeSrcFn,M=void 0===A?function(){return!1}:A,R=t.newlyAddedElement,P=void 0!==R&&R,L=t.cssCaptured,D=void 0!==L&&L,N=t.needsMask,B=t.preserveWhiteSpace,F=void 0===B||B;if(!N){var j=void 0===N;N=lA(e,s,a,j)}var U=lP(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:g,dataURLOptions:y,inlineImages:w,recordCanvas:_,keepIframeSrcFn:M,newlyAddedElement:P,cssCaptured:D});if(!U)return console.warn(e,"not serialized"),null;var z;z=n.hasNode(e)?n.getId(e):!lF(U,m)&&(F||U.type!==uC.Text||U.textContent.replace(/^\s+|\s+$/gm,"").length)?lg():lp;var q=Object.assign(U,{id:z});if(n.add(e,q),z===lp)return null;k&&k(e);var H=!u;if(q.type===uC.Element){H=H&&!q.needBlock,delete q.needBlock;var $=uX.shadowRoot(e);$&&uK($)&&(q.isShadowHost=!0)}if((q.type===uC.Document||q.type===uC.Element)&&H){m.headWhitespace&&q.type===uC.Element&&"head"===q.tagName&&(F=!1);var W={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:_,preserveWhiteSpace:F,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:O,stylesheetLoadTimeout:T,keepIframeSrcFn:M,cssCaptured:!1};if(q.type===uC.Element&&"textarea"===q.tagName&&void 0!==q.attributes.value);else{q.type===uC.Element&&void 0!==q.attributes._cssText&&"string"==typeof q.attributes._cssText&&(W.cssCaptured=!0);for(var V=ug(Array.from(uX.childNodes(e))),Y;!(Y=V()).done;){var X=Y.value,J=lj(X,W);J&&q.childNodes.push(J)}}var G=null;if(uJ(e)&&(G=uX.shadowRoot(e)))for(var K=ug(Array.from(uX.childNodes(G))),Z;!(Z=K()).done;){var Q=Z.value,ee=lj(Q,W);ee&&(uK(G)&&(ee.isShadow=!0),q.childNodes.push(ee))}}var et=uX.parentNode(e);return et&&uG(et)&&uK(et)&&(q.isShadow=!0),q.type===uC.Element&&"iframe"===q.tagName&&lM(e,function(){var t=e.contentDocument;if(t&&S){var r=lj(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:_,preserveWhiteSpace:F,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:O,stylesheetLoadTimeout:T,keepIframeSrcFn:M});r&&S(e,r)}},E),q.type===uC.Element&&"link"===q.tagName&&"string"==typeof q.attributes.rel&&("stylesheet"===q.attributes.rel||"preload"===q.attributes.rel&&"string"==typeof q.attributes.href&&"css"===lr(q.attributes.href))&&lR(e,function(){if(O){var t=lj(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:_,preserveWhiteSpace:F,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:O,stylesheetLoadTimeout:T,keepIframeSrcFn:M});t&&O(e,t)}},T),q}function lU(e,t){var r=t||{},n=r.mirror,i=void 0===n?new u8:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,c=void 0===a?null:a,u=r.maskTextClass,l=void 0===u?"rr-mask":u,h=r.maskTextSelector,d=void 0===h?null:h,f=r.inlineStylesheet,p=void 0===f||f,g=r.inlineImages,m=void 0!==g&&g,v=r.recordCanvas,y=void 0!==v&&v,b=r.maskAllInputs,w=void 0!==b&&b,x=r.maskTextFn,_=r.maskInputFn,k=r.slimDOM,S=void 0!==k&&k,C=r.dataURLOptions,E=r.preserveWhiteSpace,O=r.onSerialize,I=r.onIframeLoad,T=r.iframeLoadTimeout,A=r.onStylesheetLoad,M=r.stylesheetLoadTimeout,R=r.keepIframeSrcFn,P=void 0===R?function(){return!1}:R,L=!0===w?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===w?{password:!0}:w,D=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===S,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===S?{}:S;return lj(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:L,maskTextFn:x,maskInputFn:_,slimDOMOptions:D,dataURLOptions:C,inlineImages:m,recordCanvas:y,preserveWhiteSpace:E,onSerialize:O,onIframeLoad:I,iframeLoadTimeout:T,onStylesheetLoad:A,stylesheetLoadTimeout:M,keepIframeSrcFn:P,newlyAddedElement:!1})}function lz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function lq(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return ua(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var lH={exports:{}},l$=String,lW=function(){return{isColorSupported:!1,reset:l$,bold:l$,dim:l$,italic:l$,underline:l$,inverse:l$,hidden:l$,strikethrough:l$,black:l$,red:l$,green:l$,yellow:l$,blue:l$,magenta:l$,cyan:l$,white:l$,gray:l$,bgBlack:l$,bgRed:l$,bgGreen:l$,bgYellow:l$,bgBlue:l$,bgMagenta:l$,bgCyan:l$,bgWhite:l$}};lH.exports=lW(),lH.exports.createColors=lW;var lV=lH.exports,lY={},lX=Object.freeze(Object.defineProperty({__proto__:null,default:lY},Symbol.toStringTag,{value:"Module"})),lJ=lq(lX),lG=lV,lK=lJ,lZ=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}us(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=lG.isColorSupported),lK&&e&&(r=lK(r));var n=r.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),s=String(o).length,a,c;if(e){var u=lG.createColors(!0),l=u.bold,h=u.gray,d=u.red;a=function(e){return l(d(e))},c=function(e){return h(e)}}else a=c=function(e){return e};return n.slice(i,o).map(function(e,r){var n=i+1+r,o=" "+(" "+n).slice(-s)+" | ";if(n===t.line){var u=c(o.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return a(">")+c(o)+e+"\n "+u+a("^")}return" "+c(o)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(uf(Error)),lQ=lZ;lZ.default=lZ;var l0={};l0.isClean=Symbol("isClean"),l0.my=Symbol("my");var l1={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function l2(e){return e[0].toUpperCase()+e.slice(1)}var l4=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r=this.raw(e,"between","beforeOpen"),n;this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return l1[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+l2(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=l1[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),l5=l4;l4.default=l4;var l8=l5;function l6(e,t){var r=new l8(t);r.stringify(e)}var l3=l6;l6.default=l6;var l7=l0.isClean,l9=l0.my,he=lQ,ht=l5,hr=l3;function hn(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":uh(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return hn(e,r)}):("object"===o&&null!==i&&(i=hn(i)),r[n]=i)}return r}var hi=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[l7]=!1,this[l9]=!0,e)if("nodes"===t){this.nodes=[];for(var r=ug(e[t]),n;!(n=r()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=hn(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new he(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[l7]){this[l7]=!1;var e=this;while(e=e.parent)e[l7]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new ht;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n=this,i=!1,o=ug(t),s;!(s=o()).done;){var a=s.value;a===this?i=!0:i?(this.parent.insertAfter(n,a),n=a):this.parent.insertBefore(n,a)}i||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":uh(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=hr),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},un(e,[{key:"proxyOf",get:function(){return this}}]),e}(),ho=hi;hi.default=hi;var hs=ho,ha=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=ui({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return us(t,e),un(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(hs),hc=ha;ha.default=ha;var hu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",hl=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=hu[64*Math.random()|0];return t},hh={nanoid:hl},hd=lJ.SourceMapConsumer,hf=lJ.SourceMapGenerator,hp=lJ.existsSync,hg=lJ.readFileSync,hm=lJ.dirname,hv=lJ.join;function hy(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var hb=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=hm(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new hd(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return hy(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":uh(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=hm(e),hp(e))return this.mapFile=e,hg(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(ua(t,hd))return hf.fromSourceMap(t).toString();else if(ua(t,hf))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=hv(hm(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),hw=hb;hb.default=hb;var hx=lJ.SourceMapConsumer,h_=lJ.SourceMapGenerator,hk=lJ.fileURLToPath,hS=lJ.pathToFileURL,hC=lJ.isAbsolute,hE=lJ.resolve,hO=hh.nanoid,hI=lJ,hT=lQ,hA=hw,hM=Symbol("fromOffsetCache"),hR=!!(hx&&h_),hP=!!(hE&&hC),hL=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":uh(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!hP||/^\w+:\/\//.test(t.from)||hC(t.from)?this.file=t.from:this.file=hE(t.from)),hP&&hR){var r=new hA(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+hO(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&(void 0===t?"undefined":uh(t))==="object"){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return(i=d?new hT(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new hT(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(hS&&(i.input.url=hS(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[hM])r=this[hM];else{var n=this.css.split("\n");r=Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[hM]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c=r.length-2,u;while(a<c)if(e<r[u=a+(c-a>>1)])c=u-1;else if(e>=r[u+1])a=u+1;else{a=u;break}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:hE(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i=this.map.consumer(),o=i.originalPositionFor({column:t,line:e});if(!o.source)return!1;var s,a;"number"==typeof r&&(s=i.originalPositionFor({column:n,line:r})),a=hC(o.source)?hS(o.source):new URL(o.source,this.map.consumer().sourceRoot||hS(this.map.mapFile));var c={column:o.column,endColumn:s&&s.column,endLine:s&&s.line,line:o.line,url:a.toString()};if("file:"===a.protocol)if(hk)c.file=hk(a);else throw Error("file: protocol is not available in this PostCSS build");var u=i.sourceContentFor(o.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=ui({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},un(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),hD=hL;hL.default=hL,hI&&hI.registerInput&&hI.registerInput(hL);var hN=lJ.SourceMapConsumer,hB=lJ.SourceMapGenerator,hF=lJ.dirname,hj=lJ.relative,hU=lJ.resolve,hz=lJ.sep,hq=lJ.pathToFileURL,hH=hD,h$=!!(hN&&hB),hW=!!(hF&&hU&&hj&&hz),hV=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e=ug(this.previous()),t;!(t=e()).done;){var r=t.value,n=this.toUrl(this.path(r.file)),i=r.root||hF(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new hN(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),hW&&h$&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=hB.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new hB({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new hB({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(i.generated.line=t,i.generated.column=r-1,c.source&&c.source.start?(i.source=e.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1):(i.source=n,i.original.line=1,i.original.column=0),e.map.addMapping(i)),(o=a.match(/\n/g))?(t+=o.length,s=a.lastIndexOf("\n"),r=a.length-s):r+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;(!h||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(i.source=e.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=r-2):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=r-1),e.map.addMapping(i))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?hF(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=hF(hU(r,this.mapOpts.annotation)));var n=hj(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new hH(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(hq){var r=hq(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===hz&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),hY=hV,hX=ho,hJ=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return us(t,e),t}(hX),hG=hJ;hJ.default=hJ;var hK=l0.isClean,hZ=l0.my,hQ=hc,h0=hG,h1=ho,h2,h4,h5,h8;function h6(e){return e.map(function(e){return e.nodes&&(e.nodes=h6(e.nodes)),delete e.source,e})}function h3(e){if(e[hK]=!1,e.proxyOf.nodes)for(var t=ug(e.proxyOf.nodes),r;!(r=t()).done;){var n=r.value;h3(n)}}var h7=function(e){function t(){return e.apply(this,arguments)||this}us(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=ug(t),i;!(i=n()).done;)for(var o=i.value,s=this.normalize(o,this.last),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r=ug(this.nodes),n;!(n=r()).done;){var i=n.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t=this.getIterator(),r,n;while(this.indexes[t]<this.proxyOf.nodes.length){if(r=this.indexes[t],!1===(n=e(this.proxyOf.nodes[r],r)))break;this.indexes[t]+=1}return delete this.indexes[t],n}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(var i=ug(n),o;!(o=i()).done;){var s=o.value;this.proxyOf.nodes.splice(r+1,0,s)}var a;for(var c in this.indexes)r<(a=this.indexes[c])&&(this.indexes[c]=a+n.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r=this.index(e),n=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(var o=ug(i),s;!(s=o()).done;){var a=s.value;this.proxyOf.nodes.splice(r,0,a)}var c;for(var u in this.indexes)r<=(c=this.indexes[u])&&(this.indexes[u]=c+i.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=h6(h2(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i=ug(e),o;!(o=i()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a=ug(e),c;!(c=a()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new hQ(e)]}else if(e.selector)e=[new h4(e)];else if(e.name)e=[new h5(e)];else if(e.text)e=[new h0(e)];else throw Error("Unknown node type in node creation");var l=e.map(function(e){return e[hZ]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[hK]&&h3(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n=ug(t),i;!(i=n()).done;){for(var o=i.value,s=this.normalize(o,this.first,"prepend").reverse(),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+s.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e=ug(this.proxyOf.nodes),t;!(t=e()).done;){var r=t.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},un(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(h1);h7.registerParse=function(e){h2=e},h7.registerRule=function(e){h4=e},h7.registerAtRule=function(e){h5=e},h7.registerRoot=function(e){h8=e};var h9=h7;h7.default=h7,h7.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,h5.prototype):"rule"===e.type?Object.setPrototypeOf(e,h4.prototype):"decl"===e.type?Object.setPrototypeOf(e,hQ.prototype):"comment"===e.type?Object.setPrototypeOf(e,h0.prototype):"root"===e.type&&Object.setPrototypeOf(e,h8.prototype),e[hZ]=!0,e.nodes&&e.nodes.forEach(function(e){h7.rebuild(e)})};var de=h9,dt,dr,dn=function(e){function t(t){var r;return(r=e.call(this,ui({type:"document"},t))||this).nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new dt(new dr,this,e);return t.stringify()},t}(de);dn.registerLazyResult=function(e){dt=e},dn.registerProcessor=function(e){dr=e};var di=dn;dn.default=dn;var ds=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),da=ds;ds.default=ds;var dc=da,du=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new dc(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},un(e,[{key:"content",get:function(){return this.css}}]),e}(),dl=du;du.default=du;var dh=39,dd=34,df=92,dp=47,dg=10,dm=32,dv=12,dy=9,db=13,dw=91,dx=93,d_=40,dk=41,dS=123,dC=125,dE=59,dO=42,dI=58,dT=64,dA=/[\t\n\f\r "#'()/;[\\\]{}]/g,dM=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,dR=/.[\r\n"'(/\\]/,dP=/[\da-f]/i,dL=function(e,t){void 0===t&&(t={});var r=e.css.valueOf(),n=t.ignoreErrors,i,o,s,a,c,u,l,h,d,f,p=r.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=p},nextToken:function(e){if(v.length)return v.pop();if(!(g>=p)){var t=!!e&&e.ignoreUnclosed;switch(i=r.charCodeAt(g)){case dg:case dm:case dy:case db:case dv:o=g;do o+=1,i=r.charCodeAt(o);while(i===dm||i===dg||i===dy||i===db||i===dv)f=["space",r.slice(g,o)],g=o-1;break;case dw:case dx:case dS:case dC:case dI:case dE:case dk:var b=String.fromCharCode(i);f=[b,b,g];break;case d_:if(h=m.length?m.pop()[1]:"",d=r.charCodeAt(g+1),"url"===h&&d!==dh&&d!==dd&&d!==dm&&d!==dg&&d!==dy&&d!==dv&&d!==db){o=g;do{if(u=!1,-1===(o=r.indexOf(")",o+1)))if(n||t){o=g;break}else y("bracket");l=o;while(r.charCodeAt(l-1)===df)l-=1,u=!u}while(u)f=["brackets",r.slice(g,o+1),g,o],g=o}else o=r.indexOf(")",g+1),a=r.slice(g,o+1),-1===o||dR.test(a)?f=["(","(",g]:(f=["brackets",a,g,o],g=o);break;case dh:case dd:s=i===dh?"'":'"',o=g;do{if(u=!1,-1===(o=r.indexOf(s,o+1)))if(n||t){o=g+1;break}else y("string");l=o;while(r.charCodeAt(l-1)===df)l-=1,u=!u}while(u)f=["string",r.slice(g,o+1),g,o],g=o;break;case dT:dA.lastIndex=g+1,dA.test(r),o=0===dA.lastIndex?r.length-1:dA.lastIndex-2,f=["at-word",r.slice(g,o+1),g,o],g=o;break;case df:o=g,c=!0;while(r.charCodeAt(o+1)===df)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==dp&&i!==dm&&i!==dg&&i!==dy&&i!==db&&i!==dv&&(o+=1,dP.test(r.charAt(o)))){while(dP.test(r.charAt(o+1)))o+=1;r.charCodeAt(o+1)===dm&&(o+=1)}f=["word",r.slice(g,o+1),g,o],g=o;break;default:i===dp&&r.charCodeAt(g+1)===dO?(0===(o=r.indexOf("*/",g+2)+1)&&(n||t?o=r.length:y("comment")),f=["comment",r.slice(g,o+1),g,o]):(dM.lastIndex=g+1,dM.test(r),o=0===dM.lastIndex?r.length-1:dM.lastIndex-2,f=["word",r.slice(g,o+1),g,o],m.push(f)),g=o;break}return g++,f}},position:function(){return g}}},dD=h9,dN=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}us(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(dD),dB=dN;dN.default=dN,dD.registerAtRule(dN);var dF=h9,dj,dU,dz=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o=ug(i),s;!(s=o()).done;){var a=s.value;a.raws.before=r.raws.before}}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new dj(new dU,this,e);return t.stringify()},t}(dF);dz.registerLazyResult=function(e){dj=e},dz.registerProcessor=function(e){dU=e};var dq=dz;dz.default=dz,dF.registerRoot(dz);var dH={comma:function(e){return dH.split(e,[","],!0)},space:function(e){var t=[" ","\n"," "];return dH.split(e,t)},split:function(e,t,r){for(var n=[],i="",o=!1,s=0,a=!1,c="",u=!1,l=ug(e),h;!(h=l()).done;){var d=h.value;u?u=!1:"\\"===d?u=!0:a?d===c&&(a=!1):'"'===d||"'"===d?(a=!0,c=d):"("===d?s+=1:")"===d?s>0&&(s-=1):0===s&&t.includes(d)&&(o=!0),o?(""!==i&&n.push(i.trim()),i="",o=!1):i+=d}return(r||""!==i)&&n.push(i.trim()),n}},d$=dH;dH.default=dH;var dW=h9,dV=d$,dY=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return us(t,e),un(t,[{key:"selectors",get:function(){return dV.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(dW),dX=dY;dY.default=dY,dW.registerRule(dY);var dJ=hc,dG=dL,dK=hG,dZ=dB,dQ=dq,d0=dX,d1={empty:!0,space:!0};function d2(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var d4=function(){function e(e){this.input=e,this.root=new dQ,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t=new dZ,r,n,i;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if("("===(r=(e=this.tokenizer.nextToken())[0])||"["===r?c.push("("===r?")":"]"):"{"===r&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),0===c.length)if(";"===r){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if("{"===r){s=!0;break}else if("}"===r){if(a.length>0){i=a.length-1,n=a[i];while(n&&"space"===n[0])n=a[--i];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),s&&(t.nodes=[],this.current=t)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r=0,n,i=t-1;i>=0&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}},t.colon=function(e){for(var t=0,r,n,i,o=ug(e.entries()),s;!(s=o()).done;){var a=s.value,c=a[0],u=a[1];if("("===(n=(r=u)[0])&&(t+=1),")"===n&&(t-=1),0===t&&":"===n)if(i)if("word"===i[0]&&"progid"===i[1])continue;else return c;else this.doubleColon(r);i=r}return!1},t.comment=function(e){var t=new dK;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=dG(this.input)},t.decl=function(e,t){var r=new dJ;this.init(r,e[0][2]);var n=e[e.length-1];";"===n[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||d2(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}var o;r.raws.between="";while(e.length){if(":"===(o=e.shift())[0]){r.raws.between+=o[1];break}"word"===o[0]&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1]}("_"===r.prop[0]||"*"===r.prop[0])&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s=[],a;while(e.length){if("space"!==(a=e[0][0])&&"comment"!==a)break;s.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(o=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===o[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var f=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==o[0]&&"comment"!==o[0])break}var p=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});p&&(r.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new d0;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if("space"!==(c=a[a.length-1][0])&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s=r.length,a="",c=!0,u,l,h=0;h<s;h+=1)"space"!==(o=(i=r[h])[0])||h!==s-1||n?"comment"===o?(l=r[h-1]?r[h-1][0]:"empty",u=r[h+1]?r[h+1][0]:"empty",d1[l]||d1[u]||","===a.slice(-1)?c=!1:a+=i[1]):a+=i[1]:c=!1;if(!c){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:a}}e[t]=a},t.rule=function(e){e.pop();var t=new d0;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if("space"!==(t=e[e.length-1][0])&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if("space"!==(t=e[0][0])&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t="";while(e.length){if("space"!==e[e.length-1][0])break;t=e.pop()[1]+t}return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),d5=d4,d8=h9,d6=d5,d3=hD;function d7(e,t){var r=new d3(e,t),n=new d6(r);try{n.parse()}catch(e){throw e}return n.root}var d9=d7;d7.default=d7,d8.registerParse(d7);var fe=l0.isClean,ft=l0.my,fr=hY,fn=l3,fi=h9,fo=di,fs=dl,fa=d9,fc=dq,fu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},fl={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},fh={Once:!0,postcssPlugin:!0,prepare:!0},fd=0;function ff(e){return(void 0===e?"undefined":uh(e))==="object"&&"function"==typeof e.then}function fp(e){var t=!1,r=fu[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,fd,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,fd,r+"Exit"]:[r,r+"Exit"]}function fg(e){return{eventIndex:0,events:"document"===e.type?["Document",fd,"DocumentExit"]:"root"===e.type?["Root",fd,"RootExit"]:fp(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function fm(e){return e[fe]=!1,e.nodes&&e.nodes.forEach(function(e){return fm(e)}),e}var fv={},fy=function(){function e(t,r,n){var i=this,o;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":uh(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))o=fm(r);else if(ua(r,e)||ua(r,fs))o=fm(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=fa;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(r,n)}catch(e){this.processed=!0,this.error=e}o&&!o[ft]&&fi.rebuild(o)}this.result=new fs(t,o,n),this.helpers=ui({},fv,{postcss:fv,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.prepare?ui({},e,e.prepare(i.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},r=ug(this.plugins),n;!(n=r()).done;){var i=n.value;if((void 0===i?"undefined":uh(i))==="object")for(var o in i){if(!fl[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!fh[o])if("object"===uh(i[o]))for(var s in i[o])t(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&t(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return ue(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return um(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!ff(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[fe])return[3,14];o[fe]=!0,s=[fg(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!ff(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return um(this,function(s){switch(s.label){case 0:r=(t=d.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=ug(e.listeners.OnceExit),f.label=15;case 15:if((d=h()).done)return[3,18];return[5,uv(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":uh(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(ff(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=fn;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new fr(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=ug(this.plugins),t;!(t=e()).done;){var r=t.value,n=this.runOnRoot(r);if(ff(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[fe])i[fe]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o=ug(i.nodes),s;!(s=o()).done;){var a=s.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r=ug(e),n;!(n=r()).done;){var i=n.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(ff(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){var a=t.iterator,c;while(c=r.nodes[r.indexes[a]])if(r.indexes[a]+=1,!c[fe]){c[fe]=!0,e.push(fg(c));return}t.iterator=0,delete r.indexes[a]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===fd){r.nodes&&r.nodes.length&&(r[fe]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[fe]=!0;for(var r=fp(e),n=ug(r),i;!(i=n()).done;){var o=i.value;if(o===fd)e.nodes&&e.each(function(e){e[fe]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},un(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();fy.registerPostcss=function(e){fv=e};var fb=fy;fy.default=fy,fc.registerLazyResult(fy),fo.registerLazyResult(fy);var fw=hY,fx=l3,f_=d9,fk=dl,fS=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=fx;this.result=new fk(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new fw(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},un(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=f_;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),fC=fS;fS.default=fS;var fE=fC,fO=fb,fI=di,fT=dq,fA=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t=[],r=ug(e),n;!(n=r()).done;){var i=n.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":uh(i))==="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if((void 0===i?"undefined":uh(i))==="object"&&i.postcssPlugin)t.push(i);else if("function"==typeof i)t.push(i);else if((void 0===i?"undefined":uh(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return t},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new fO(this,e,t):new fE(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),fM=fA;fA.default=fA,fT.registerProcessor(fA),fI.registerProcessor(fA);var fR=hc,fP=hw,fL=hG,fD=dB,fN=hD,fB=dq,fF=dX;function fj(e,t){if(Array.isArray(e))return e.map(function(e){return fj(e)});var r=e.inputs,n=uu(e,["inputs"]);if(r){t=[];for(var i=ug(r),o;!(o=i()).done;){var s=o.value,a=ui({},s,{__proto__:fN.prototype});a.map&&(a.map=ui({},a.map,{__proto__:fP.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return fj(e,t)})),n.source){var c=n.source,u=c.inputId,l=uu(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new fB(n);if("decl"===n.type)return new fR(n);if("rule"===n.type)return new fF(n);if("comment"===n.type)return new fL(n);if("atrule"===n.type)return new fD(n);else throw Error("Unknown node type: "+e.type)}var fU=fj;fj.default=fj;var fz=lQ,fq=hc,fH=fb,f$=h9,fW=fM,fV=l3,fY=fU,fX=di,fJ=da,fG=hG,fK=dB,fZ=dl,fQ=hD,f0=d9,f1=d$,f2=dX,f4=dq,f5=ho;function f8(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new fW(t)}f8.plugin=function(e,t){var r=!1;function n(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new fW().version,s}var i;return Object.defineProperty(n,"postcss",{get:function(){return i||(i=n()),i}}),n.process=function(e,t,r){return f8([n(r)]).process(e,t)},n},f8.stringify=fV,f8.parse=f0,f8.fromJSON=fY,f8.list=f1,f8.comment=function(e){return new fG(e)},f8.atRule=function(e){return new fK(e)},f8.decl=function(e){return new fq(e)},f8.rule=function(e){return new f2(e)},f8.root=function(e){return new f4(e)},f8.document=function(e){return new fX(e)},f8.CssSyntaxError=fz,f8.Declaration=fq,f8.Container=f$,f8.Processor=fW,f8.Document=fX,f8.Comment=fG,f8.Warning=fJ,f8.AtRule=fK,f8.Result=fZ,f8.Input=fQ,f8.Rule=f2,f8.Root=f4,f8.Node=f5,fH.registerPostcss(f8);var f6=f8;f8.default=f8;var f3=lz(f6);f3.stringify,f3.fromJSON,f3.plugin,f3.parse,f3.list,f3.document,f3.comment,f3.atRule,f3.rule,f3.decl,f3.root,f3.CssSyntaxError,f3.Declaration,f3.Container,f3.Processor,f3.Document,f3.Comment,f3.Warning,f3.AtRule,f3.Result,f3.Input,f3.Rule,f3.Root,f3.Node;var f7=Object.defineProperty,f9=function(e,t,r){return t in e?f7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},pe=function(e,t,r){return f9(e,(void 0===t?"undefined":uh(t))!=="symbol"?t+"":t,r)};function pt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function pr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return ua(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var pn={exports:{}},pi=String,po=function(){return{isColorSupported:!1,reset:pi,bold:pi,dim:pi,italic:pi,underline:pi,inverse:pi,hidden:pi,strikethrough:pi,black:pi,red:pi,green:pi,yellow:pi,blue:pi,magenta:pi,cyan:pi,white:pi,gray:pi,bgBlack:pi,bgRed:pi,bgGreen:pi,bgYellow:pi,bgBlue:pi,bgMagenta:pi,bgCyan:pi,bgWhite:pi}};pn.exports=po(),pn.exports.createColors=po;var ps=pn.exports,pa={},pc=Object.freeze(Object.defineProperty({__proto__:null,default:pa},Symbol.toStringTag,{value:"Module"})),pu=pr(pc),pl=ps,ph=pu,pd=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}us(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=pl.isColorSupported),ph&&e&&(r=ph(r));var n=r.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),s=String(o).length,a,c;if(e){var u=pl.createColors(!0),l=u.bold,h=u.gray,d=u.red;a=function(e){return l(d(e))},c=function(e){return h(e)}}else a=c=function(e){return e};return n.slice(i,o).map(function(e,r){var n=i+1+r,o=" "+(" "+n).slice(-s)+" | ";if(n===t.line){var u=c(o.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return a(">")+c(o)+e+"\n "+u+a("^")}return" "+c(o)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(uf(Error)),pf=pd;pd.default=pd;var pp={};pp.isClean=Symbol("isClean"),pp.my=Symbol("my");var pg={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function pm(e){return e[0].toUpperCase()+e.slice(1)}var pv=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r=this.raw(e,"between","beforeOpen"),n;this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return pg[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+pm(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=pg[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),py=pv;pv.default=pv;var pb=py;function pw(e,t){var r=new pb(t);r.stringify(e)}var px=pw;pw.default=pw;var p_=pp.isClean,pk=pp.my,pS=pf,pC=py,pE=px;function pO(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":uh(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return pO(e,r)}):("object"===o&&null!==i&&(i=pO(i)),r[n]=i)}return r}var pI=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[p_]=!1,this[pk]=!0,e)if("nodes"===t){this.nodes=[];for(var r=ug(e[t]),n;!(n=r()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=pO(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new pS(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[p_]){this[p_]=!1;var e=this;while(e=e.parent)e[p_]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new pC;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n=this,i=!1,o=ug(t),s;!(s=o()).done;){var a=s.value;a===this?i=!0:i?(this.parent.insertAfter(n,a),n=a):this.parent.insertBefore(n,a)}i||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":uh(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=pE),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},un(e,[{key:"proxyOf",get:function(){return this}}]),e}(),pT=pI;pI.default=pI;var pA=pT,pM=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=ui({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return us(t,e),un(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(pA),pR=pM;pM.default=pM;var pP="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",pL=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=pP[64*Math.random()|0];return t},pD={nanoid:pL},pN=pu.SourceMapConsumer,pB=pu.SourceMapGenerator,pF=pu.existsSync,pj=pu.readFileSync,pU=pu.dirname,pz=pu.join;function pq(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var pH=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=pU(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new pN(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return pq(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":uh(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=pU(e),pF(e))return this.mapFile=e,pj(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(ua(t,pN))return pB.fromSourceMap(t).toString();else if(ua(t,pB))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=pz(pU(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),p$=pH;pH.default=pH;var pW=pu.SourceMapConsumer,pV=pu.SourceMapGenerator,pY=pu.fileURLToPath,pX=pu.pathToFileURL,pJ=pu.isAbsolute,pG=pu.resolve,pK=pD.nanoid,pZ=pu,pQ=pf,p0=p$,p1=Symbol("fromOffsetCache"),p2=!!(pW&&pV),p4=!!(pG&&pJ),p5=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":uh(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!p4||/^\w+:\/\//.test(t.from)||pJ(t.from)?this.file=t.from:this.file=pG(t.from)),p4&&p2){var r=new p0(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+pK(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&(void 0===t?"undefined":uh(t))==="object"){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return(i=d?new pQ(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new pQ(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(pX&&(i.input.url=pX(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[p1])r=this[p1];else{var n=this.css.split("\n");r=Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[p1]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c=r.length-2,u;while(a<c)if(e<r[u=a+(c-a>>1)])c=u-1;else if(e>=r[u+1])a=u+1;else{a=u;break}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:pG(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i=this.map.consumer(),o=i.originalPositionFor({column:t,line:e});if(!o.source)return!1;var s,a;"number"==typeof r&&(s=i.originalPositionFor({column:n,line:r})),a=pJ(o.source)?pX(o.source):new URL(o.source,this.map.consumer().sourceRoot||pX(this.map.mapFile));var c={column:o.column,endColumn:s&&s.column,endLine:s&&s.line,line:o.line,url:a.toString()};if("file:"===a.protocol)if(pY)c.file=pY(a);else throw Error("file: protocol is not available in this PostCSS build");var u=i.sourceContentFor(o.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=ui({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},un(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),p8=p5;p5.default=p5,pZ&&pZ.registerInput&&pZ.registerInput(p5);var p6=pu.SourceMapConsumer,p3=pu.SourceMapGenerator,p7=pu.dirname,p9=pu.relative,ge=pu.resolve,gt=pu.sep,gr=pu.pathToFileURL,gn=p8,gi=!!(p6&&p3),go=!!(p7&&ge&&p9&&gt),gs=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e=ug(this.previous()),t;!(t=e()).done;){var r=t.value,n=this.toUrl(this.path(r.file)),i=r.root||p7(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new p6(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),go&&gi&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=p3.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new p3({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new p3({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(i.generated.line=t,i.generated.column=r-1,c.source&&c.source.start?(i.source=e.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1):(i.source=n,i.original.line=1,i.original.column=0),e.map.addMapping(i)),(o=a.match(/\n/g))?(t+=o.length,s=a.lastIndexOf("\n"),r=a.length-s):r+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;(!h||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(i.source=e.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=r-2):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=r-1),e.map.addMapping(i))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?p7(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=p7(ge(r,this.mapOpts.annotation)));var n=p9(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new gn(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(gr){var r=gr(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===gt&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),ga=gs,gc=pT,gu=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return us(t,e),t}(gc),gl=gu;gu.default=gu;var gh=pp.isClean,gd=pp.my,gf=pR,gp=gl,gg=pT,gm,gv,gy,gb;function gw(e){return e.map(function(e){return e.nodes&&(e.nodes=gw(e.nodes)),delete e.source,e})}function gx(e){if(e[gh]=!1,e.proxyOf.nodes)for(var t=ug(e.proxyOf.nodes),r;!(r=t()).done;){var n=r.value;gx(n)}}var g_=function(e){function t(){return e.apply(this,arguments)||this}us(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=ug(t),i;!(i=n()).done;)for(var o=i.value,s=this.normalize(o,this.last),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r=ug(this.nodes),n;!(n=r()).done;){var i=n.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t=this.getIterator(),r,n;while(this.indexes[t]<this.proxyOf.nodes.length){if(r=this.indexes[t],!1===(n=e(this.proxyOf.nodes[r],r)))break;this.indexes[t]+=1}return delete this.indexes[t],n}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(var i=ug(n),o;!(o=i()).done;){var s=o.value;this.proxyOf.nodes.splice(r+1,0,s)}var a;for(var c in this.indexes)r<(a=this.indexes[c])&&(this.indexes[c]=a+n.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r=this.index(e),n=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(var o=ug(i),s;!(s=o()).done;){var a=s.value;this.proxyOf.nodes.splice(r,0,a)}var c;for(var u in this.indexes)r<=(c=this.indexes[u])&&(this.indexes[u]=c+i.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=gw(gm(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i=ug(e),o;!(o=i()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a=ug(e),c;!(c=a()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new gf(e)]}else if(e.selector)e=[new gv(e)];else if(e.name)e=[new gy(e)];else if(e.text)e=[new gp(e)];else throw Error("Unknown node type in node creation");var l=e.map(function(e){return e[gd]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[gh]&&gx(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n=ug(t),i;!(i=n()).done;){for(var o=i.value,s=this.normalize(o,this.first,"prepend").reverse(),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+s.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e=ug(this.proxyOf.nodes),t;!(t=e()).done;){var r=t.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},un(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(gg);g_.registerParse=function(e){gm=e},g_.registerRule=function(e){gv=e},g_.registerAtRule=function(e){gy=e},g_.registerRoot=function(e){gb=e};var gk=g_;g_.default=g_,g_.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,gy.prototype):"rule"===e.type?Object.setPrototypeOf(e,gv.prototype):"decl"===e.type?Object.setPrototypeOf(e,gf.prototype):"comment"===e.type?Object.setPrototypeOf(e,gp.prototype):"root"===e.type&&Object.setPrototypeOf(e,gb.prototype),e[gd]=!0,e.nodes&&e.nodes.forEach(function(e){g_.rebuild(e)})};var gS=gk,gC,gE,gO=function(e){function t(t){var r;return(r=e.call(this,ui({type:"document"},t))||this).nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new gC(new gE,this,e);return t.stringify()},t}(gS);gO.registerLazyResult=function(e){gC=e},gO.registerProcessor=function(e){gE=e};var gI=gO;gO.default=gO;var gT=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),gA=gT;gT.default=gT;var gM=gA,gR=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new gM(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},un(e,[{key:"content",get:function(){return this.css}}]),e}(),gP=gR;gR.default=gR;var gL=39,gD=34,gN=92,gB=47,gF=10,gj=32,gU=12,gz=9,gq=13,gH=91,g$=93,gW=40,gV=41,gY=123,gX=125,gJ=59,gG=42,gK=58,gZ=64,gQ=/[\t\n\f\r "#'()/;[\\\]{}]/g,g0=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,g1=/.[\r\n"'(/\\]/,g2=/[\da-f]/i,g4=function(e,t){void 0===t&&(t={});var r=e.css.valueOf(),n=t.ignoreErrors,i,o,s,a,c,u,l,h,d,f,p=r.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=p},nextToken:function(e){if(v.length)return v.pop();if(!(g>=p)){var t=!!e&&e.ignoreUnclosed;switch(i=r.charCodeAt(g)){case gF:case gj:case gz:case gq:case gU:o=g;do o+=1,i=r.charCodeAt(o);while(i===gj||i===gF||i===gz||i===gq||i===gU)f=["space",r.slice(g,o)],g=o-1;break;case gH:case g$:case gY:case gX:case gK:case gJ:case gV:var b=String.fromCharCode(i);f=[b,b,g];break;case gW:if(h=m.length?m.pop()[1]:"",d=r.charCodeAt(g+1),"url"===h&&d!==gL&&d!==gD&&d!==gj&&d!==gF&&d!==gz&&d!==gU&&d!==gq){o=g;do{if(u=!1,-1===(o=r.indexOf(")",o+1)))if(n||t){o=g;break}else y("bracket");l=o;while(r.charCodeAt(l-1)===gN)l-=1,u=!u}while(u)f=["brackets",r.slice(g,o+1),g,o],g=o}else o=r.indexOf(")",g+1),a=r.slice(g,o+1),-1===o||g1.test(a)?f=["(","(",g]:(f=["brackets",a,g,o],g=o);break;case gL:case gD:s=i===gL?"'":'"',o=g;do{if(u=!1,-1===(o=r.indexOf(s,o+1)))if(n||t){o=g+1;break}else y("string");l=o;while(r.charCodeAt(l-1)===gN)l-=1,u=!u}while(u)f=["string",r.slice(g,o+1),g,o],g=o;break;case gZ:gQ.lastIndex=g+1,gQ.test(r),o=0===gQ.lastIndex?r.length-1:gQ.lastIndex-2,f=["at-word",r.slice(g,o+1),g,o],g=o;break;case gN:o=g,c=!0;while(r.charCodeAt(o+1)===gN)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==gB&&i!==gj&&i!==gF&&i!==gz&&i!==gq&&i!==gU&&(o+=1,g2.test(r.charAt(o)))){while(g2.test(r.charAt(o+1)))o+=1;r.charCodeAt(o+1)===gj&&(o+=1)}f=["word",r.slice(g,o+1),g,o],g=o;break;default:i===gB&&r.charCodeAt(g+1)===gG?(0===(o=r.indexOf("*/",g+2)+1)&&(n||t?o=r.length:y("comment")),f=["comment",r.slice(g,o+1),g,o]):(g0.lastIndex=g+1,g0.test(r),o=0===g0.lastIndex?r.length-1:g0.lastIndex-2,f=["word",r.slice(g,o+1),g,o],m.push(f)),g=o;break}return g++,f}},position:function(){return g}}},g5=gk,g8=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}us(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(g5),g6=g8;g8.default=g8,g5.registerAtRule(g8);var g3=gk,g7,g9,me=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o=ug(i),s;!(s=o()).done;){var a=s.value;a.raws.before=r.raws.before}}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new g7(new g9,this,e);return t.stringify()},t}(g3);me.registerLazyResult=function(e){g7=e},me.registerProcessor=function(e){g9=e};var mt=me;me.default=me,g3.registerRoot(me);var mr={comma:function(e){return mr.split(e,[","],!0)},space:function(e){var t=[" ","\n"," "];return mr.split(e,t)},split:function(e,t,r){for(var n=[],i="",o=!1,s=0,a=!1,c="",u=!1,l=ug(e),h;!(h=l()).done;){var d=h.value;u?u=!1:"\\"===d?u=!0:a?d===c&&(a=!1):'"'===d||"'"===d?(a=!0,c=d):"("===d?s+=1:")"===d?s>0&&(s-=1):0===s&&t.includes(d)&&(o=!0),o?(""!==i&&n.push(i.trim()),i="",o=!1):i+=d}return(r||""!==i)&&n.push(i.trim()),n}},mn=mr;mr.default=mr;var mi=gk,mo=mn,ms=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return us(t,e),un(t,[{key:"selectors",get:function(){return mo.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(mi),ma=ms;ms.default=ms,mi.registerRule(ms);var mc=pR,mu=g4,ml=gl,mh=g6,md=mt,mf=ma,mp={empty:!0,space:!0};function mg(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var mm=function(){function e(e){this.input=e,this.root=new md,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t=new mh,r,n,i;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if("("===(r=(e=this.tokenizer.nextToken())[0])||"["===r?c.push("("===r?")":"]"):"{"===r&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),0===c.length)if(";"===r){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if("{"===r){s=!0;break}else if("}"===r){if(a.length>0){i=a.length-1,n=a[i];while(n&&"space"===n[0])n=a[--i];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),s&&(t.nodes=[],this.current=t)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r=0,n,i=t-1;i>=0&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}},t.colon=function(e){for(var t=0,r,n,i,o=ug(e.entries()),s;!(s=o()).done;){var a=s.value,c=a[0],u=a[1];if("("===(n=(r=u)[0])&&(t+=1),")"===n&&(t-=1),0===t&&":"===n)if(i)if("word"===i[0]&&"progid"===i[1])continue;else return c;else this.doubleColon(r);i=r}return!1},t.comment=function(e){var t=new ml;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=mu(this.input)},t.decl=function(e,t){var r=new mc;this.init(r,e[0][2]);var n=e[e.length-1];";"===n[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||mg(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}var o;r.raws.between="";while(e.length){if(":"===(o=e.shift())[0]){r.raws.between+=o[1];break}"word"===o[0]&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1]}("_"===r.prop[0]||"*"===r.prop[0])&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s=[],a;while(e.length){if("space"!==(a=e[0][0])&&"comment"!==a)break;s.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(o=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===o[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var f=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==o[0]&&"comment"!==o[0])break}var p=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});p&&(r.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new mf;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if("space"!==(c=a[a.length-1][0])&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s=r.length,a="",c=!0,u,l,h=0;h<s;h+=1)"space"!==(o=(i=r[h])[0])||h!==s-1||n?"comment"===o?(l=r[h-1]?r[h-1][0]:"empty",u=r[h+1]?r[h+1][0]:"empty",mp[l]||mp[u]||","===a.slice(-1)?c=!1:a+=i[1]):a+=i[1]:c=!1;if(!c){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:a}}e[t]=a},t.rule=function(e){e.pop();var t=new mf;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if("space"!==(t=e[e.length-1][0])&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if("space"!==(t=e[0][0])&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t="";while(e.length){if("space"!==e[e.length-1][0])break;t=e.pop()[1]+t}return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),mv=mm,my=gk,mb=mv,mw=p8;function mx(e,t){var r=new mw(e,t),n=new mb(r);try{n.parse()}catch(e){throw e}return n.root}var m_=mx;mx.default=mx,my.registerParse(mx);var mk=pp.isClean,mS=pp.my,mC=ga,mE=px,mO=gk,mI=gI,mT=gP,mA=m_,mM=mt,mR={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},mP={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},mL={Once:!0,postcssPlugin:!0,prepare:!0},mD=0;function mN(e){return(void 0===e?"undefined":uh(e))==="object"&&"function"==typeof e.then}function mB(e){var t=!1,r=mR[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,mD,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,mD,r+"Exit"]:[r,r+"Exit"]}function mF(e){return{eventIndex:0,events:"document"===e.type?["Document",mD,"DocumentExit"]:"root"===e.type?["Root",mD,"RootExit"]:mB(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function mj(e){return e[mk]=!1,e.nodes&&e.nodes.forEach(function(e){return mj(e)}),e}var mU={},mz=function(){function e(t,r,n){var i=this,o;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":uh(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))o=mj(r);else if(ua(r,e)||ua(r,mT))o=mj(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=mA;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(r,n)}catch(e){this.processed=!0,this.error=e}o&&!o[mS]&&mO.rebuild(o)}this.result=new mT(t,o,n),this.helpers=ui({},mU,{postcss:mU,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.prepare?ui({},e,e.prepare(i.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},r=ug(this.plugins),n;!(n=r()).done;){var i=n.value;if((void 0===i?"undefined":uh(i))==="object")for(var o in i){if(!mP[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!mL[o])if("object"===uh(i[o]))for(var s in i[o])t(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&t(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return ue(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return um(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!mN(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[mk])return[3,14];o[mk]=!0,s=[mF(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!mN(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return um(this,function(s){switch(s.label){case 0:r=(t=d.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=ug(e.listeners.OnceExit),f.label=15;case 15:if((d=h()).done)return[3,18];return[5,uv(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":uh(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(mN(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=mE;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new mC(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=ug(this.plugins),t;!(t=e()).done;){var r=t.value,n=this.runOnRoot(r);if(mN(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[mk])i[mk]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o=ug(i.nodes),s;!(s=o()).done;){var a=s.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r=ug(e),n;!(n=r()).done;){var i=n.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(mN(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){var a=t.iterator,c;while(c=r.nodes[r.indexes[a]])if(r.indexes[a]+=1,!c[mk]){c[mk]=!0,e.push(mF(c));return}t.iterator=0,delete r.indexes[a]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===mD){r.nodes&&r.nodes.length&&(r[mk]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[mk]=!0;for(var r=mB(e),n=ug(r),i;!(i=n()).done;){var o=i.value;if(o===mD)e.nodes&&e.each(function(e){e[mk]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},un(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();mz.registerPostcss=function(e){mU=e};var mq=mz;mz.default=mz,mM.registerLazyResult(mz),mI.registerLazyResult(mz);var mH=ga,m$=px,mW=m_,mV=gP,mY=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=m$;this.result=new mV(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new mH(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},un(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=mW;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),mX=mY;mY.default=mY;var mJ=mX,mG=mq,mK=gI,mZ=mt,mQ=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t=[],r=ug(e),n;!(n=r()).done;){var i=n.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":uh(i))==="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if((void 0===i?"undefined":uh(i))==="object"&&i.postcssPlugin)t.push(i);else if("function"==typeof i)t.push(i);else if((void 0===i?"undefined":uh(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return t},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new mG(this,e,t):new mJ(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),m0=mQ;mQ.default=mQ,mZ.registerProcessor(mQ),mK.registerProcessor(mQ);var m1=pR,m2=p$,m4=gl,m5=g6,m8=p8,m6=mt,m3=ma;function m7(e,t){if(Array.isArray(e))return e.map(function(e){return m7(e)});var r=e.inputs,n=uu(e,["inputs"]);if(r){t=[];for(var i=ug(r),o;!(o=i()).done;){var s=o.value,a=ui({},s,{__proto__:m8.prototype});a.map&&(a.map=ui({},a.map,{__proto__:m2.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return m7(e,t)})),n.source){var c=n.source,u=c.inputId,l=uu(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new m6(n);if("decl"===n.type)return new m1(n);if("rule"===n.type)return new m3(n);if("comment"===n.type)return new m4(n);if("atrule"===n.type)return new m5(n);else throw Error("Unknown node type: "+e.type)}var m9=m7;m7.default=m7;var ve=pf,vt=pR,vr=mq,vn=gk,vi=m0,vo=px,vs=m9,va=gI,vc=gA,vu=gl,vl=g6,vh=gP,vd=p8,vf=m_,vp=mn,vg=ma,vm=mt,vv=pT;function vy(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new vi(t)}vy.plugin=function(e,t){var r=!1;function n(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new vi().version,s}var i;return Object.defineProperty(n,"postcss",{get:function(){return i||(i=n()),i}}),n.process=function(e,t,r){return vy([n(r)]).process(e,t)},n},vy.stringify=vo,vy.parse=vf,vy.fromJSON=vs,vy.list=vp,vy.comment=function(e){return new vu(e)},vy.atRule=function(e){return new vl(e)},vy.decl=function(e){return new vt(e)},vy.rule=function(e){return new vg(e)},vy.root=function(e){return new vm(e)},vy.document=function(e){return new va(e)},vy.CssSyntaxError=ve,vy.Declaration=vt,vy.Container=vn,vy.Processor=vi,vy.Document=va,vy.Comment=vu,vy.Warning=vc,vy.AtRule=vl,vy.Result=vh,vy.Input=vd,vy.Rule=vg,vy.Root=vm,vy.Node=vv,vr.registerPostcss(vy);var vb=vy;vy.default=vy;var vw=pt(vb);vw.stringify,vw.fromJSON,vw.plugin,vw.parse,vw.list,vw.document,vw.comment,vw.atRule,vw.rule,vw.decl,vw.root,vw.CssSyntaxError,vw.Declaration,vw.Container,vw.Processor,vw.Document,vw.Comment,vw.Warning,vw.AtRule,vw.Result,vw.Input,vw.Rule,vw.Root,vw.Node;var vx=function(){function e(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];pe(this,"parentElement",null),pe(this,"parentNode",null),pe(this,"ownerDocument"),pe(this,"firstChild",null),pe(this,"lastChild",null),pe(this,"previousSibling",null),pe(this,"nextSibling",null),pe(this,"ELEMENT_NODE",1),pe(this,"TEXT_NODE",3),pe(this,"nodeType"),pe(this,"nodeName"),pe(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!ua(t,e)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;while(t.parentNode){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},un(e,[{key:"childNodes",get:function(){var e=[],t=this.firstChild;while(t)e.push(t),t=t.nextSibling;return e}}]),e}(),v_={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},vk={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},vS={},vC=function(){return!!globalThis.Zone};function vE(e){if(vS[e])return vS[e];var t=globalThis[e],r=t.prototype,n=e in v_?v_[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in vk?vk[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!vC())return vS[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return vS[e]=u}catch(e){return r}}var vO={};function vI(e,t,r){var n,i=e+"."+String(r);if(vO[i])return vO[i].call(t);var o=vE(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(vO[i]=s,s.call(t)):t[r]}var vT={};function vA(e,t,r){var n=e+"."+String(r);if(vT[n])return vT[n].bind(t);var i=vE(e),o=i[r];return"function"!=typeof o?t[r]:(vT[n]=o,o.bind(t))}function vM(e){return vI("Node",e,"childNodes")}function vR(e){return vI("Node",e,"parentNode")}function vP(e){return vI("Node",e,"parentElement")}function vL(e){return vI("Node",e,"textContent")}function vD(e,t){return vA("Node",e,"contains")(t)}function vN(e){return vA("Node",e,"getRootNode")()}function vB(e){return e&&"host"in e?vI("ShadowRoot",e,"host"):null}function vF(e){return e.styleSheets}function vj(e){return e&&"shadowRoot"in e?vI("Element",e,"shadowRoot"):null}function vU(e,t){return vI("Element",e,"querySelector")(t)}function vz(e,t){return vI("Element",e,"querySelectorAll")(t)}function vq(){return vE("MutationObserver").constructor}function vH(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var v$={childNodes:vM,parentNode:vR,parentElement:vP,textContent:vL,contains:vD,getRootNode:vN,host:vB,styleSheets:vF,shadowRoot:vj,querySelector:vU,querySelectorAll:vz,mutationObserver:vq,patch:vH};function vW(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var vV="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",vY={map:{},getId:function(){return console.error(vV),-1},getNode:function(){return console.error(vV),null},removeNodeFromMap:function(){console.error(vV)},has:function(){return console.error(vV),!1},reset:function(){console.error(vV)}};function vX(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>t?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},u))}}function vJ(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return vJ(e,t,o||{},!0)}}"u">typeof window&&window.Proxy&&window.Reflect&&(vY=new Proxy(vY,{get:function(e,t,r){return"map"===t&&console.error(vV),Reflect.get(e,t,r)}}));var vG=Date.now;function vK(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=v$.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=v$.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function vZ(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function vQ(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function v0(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:v$.parentElement(e);return t}function v1(e,t,r,n){if(!e)return!1;var i=v0(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||n&&null!==i.closest("."+t))return!0}else if(lT(i,t,n))return!0}catch(e){}return!!(r&&(i.matches(r)||n&&null!==i.closest(r)))||!1}function v2(e,t){return -1!==t.getId(e)}function v4(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||t.getId(e)===lp}function v5(e,t){if(uG(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=v$.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||v5(n,t))}function v8(e){return!!e.changedTouches}function v6(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function v3(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function v7(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function v9(e){return!!e&&(ua(e,vx)&&"shadowRoot"in e?!!e.shadowRoot:!!v$.shadowRoot(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(vG=function(){return new Date().getTime()});var ye=function(){function e(){uw(this,"id",1),uw(this,"styleIDMap",new WeakMap),uw(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){if(this.has(e))return this.getId(e);var r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function yt(e){var t,r=null;return"getRootNode"in e&&(null==(t=v$.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&v$.host(v$.getRootNode(e))&&(r=v$.host(v$.getRootNode(e))),r}function yr(e){var t=e,r;while(r=yt(t))t=r;return t}function yn(e){var t=e.ownerDocument;if(!t)return!1;var r=yr(e);return v$.contains(t,r)}function yi(e){var t=e.ownerDocument;return!!t&&(v$.contains(t,e)||yn(e))}var yo=function(e){return e[e["DomContentLoaded"]=0]="DomContentLoaded",e[e["Load"]=1]="Load",e[e["FullSnapshot"]=2]="FullSnapshot",e[e["IncrementalSnapshot"]=3]="IncrementalSnapshot",e[e["Meta"]=4]="Meta",e[e["Custom"]=5]="Custom",e[e["Plugin"]=6]="Plugin",e}(yo||{}),ys=function(e){return e[e["Mutation"]=0]="Mutation",e[e["MouseMove"]=1]="MouseMove",e[e["MouseInteraction"]=2]="MouseInteraction",e[e["Scroll"]=3]="Scroll",e[e["ViewportResize"]=4]="ViewportResize",e[e["Input"]=5]="Input",e[e["TouchMove"]=6]="TouchMove",e[e["MediaInteraction"]=7]="MediaInteraction",e[e["StyleSheetRule"]=8]="StyleSheetRule",e[e["CanvasMutation"]=9]="CanvasMutation",e[e["Font"]=10]="Font",e[e["Log"]=11]="Log",e[e["Drag"]=12]="Drag",e[e["StyleDeclaration"]=13]="StyleDeclaration",e[e["Selection"]=14]="Selection",e[e["AdoptedStyleSheet"]=15]="AdoptedStyleSheet",e[e["CustomElement"]=16]="CustomElement",e}(ys||{}),ya=function(e){return e[e["MouseUp"]=0]="MouseUp",e[e["MouseDown"]=1]="MouseDown",e[e["Click"]=2]="Click",e[e["ContextMenu"]=3]="ContextMenu",e[e["DblClick"]=4]="DblClick",e[e["Focus"]=5]="Focus",e[e["Blur"]=6]="Blur",e[e["TouchStart"]=7]="TouchStart",e[e["TouchMove_Departed"]=8]="TouchMove_Departed",e[e["TouchEnd"]=9]="TouchEnd",e[e["TouchCancel"]=10]="TouchCancel",e}(ya||{}),yc=function(e){return e[e["Mouse"]=0]="Mouse",e[e["Pen"]=1]="Pen",e[e["Touch"]=2]="Touch",e}(yc||{}),yu=function(e){return e[e["2D"]=0]="2D",e[e["WebGL"]=1]="WebGL",e[e["WebGL2"]=2]="WebGL2",e}(yu||{}),yl=function(e){return e[e["Play"]=0]="Play",e[e["Pause"]=1]="Pause",e[e["Seeked"]=2]="Seeked",e[e["VolumeChange"]=3]="VolumeChange",e[e["RateChange"]=4]="RateChange",e}(yl||{}),yh=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(yh||{});function yd(e){return"__ln"in e}var yf=function(){function e(){uw(this,"length",0),uw(this,"head",null),uw(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&yd(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&yd(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),yp=function(e,t){return e+"@"+t},yg=function(){function e(){var e=this;uw(this,"frozen",!1),uw(this,"locked",!1),uw(this,"texts",[]),uw(this,"attributes",[]),uw(this,"attributeMap",new WeakMap),uw(this,"removes",[]),uw(this,"mapRemoves",[]),uw(this,"movedMap",{}),uw(this,"addedSet",new Set),uw(this,"movedSet",new Set),uw(this,"droppedSet",new Set),uw(this,"removesSubTreeCache",new Set),uw(this,"mutationCb"),uw(this,"blockClass"),uw(this,"blockSelector"),uw(this,"maskTextClass"),uw(this,"maskTextSelector"),uw(this,"inlineStylesheet"),uw(this,"maskInputOptions"),uw(this,"maskTextFn"),uw(this,"maskInputFn"),uw(this,"keepIframeSrcFn"),uw(this,"recordCanvas"),uw(this,"inlineImages"),uw(this,"slimDOMOptions"),uw(this,"dataURLOptions"),uw(this,"doc"),uw(this,"mirror"),uw(this,"iframeManager"),uw(this,"stylesheetManager"),uw(this,"shadowDomManager"),uw(this,"canvasManager"),uw(this,"processedNodeManager"),uw(this,"unattachedDoc"),uw(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),uw(this,"emit",function(){if(!e.frozen&&!e.locked){var t=[],r=new Set,n=new yf,i=function(t){var r=t,n=lp;while(n===lp)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=v$.parentNode(o);if(s&&yi(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var c=s.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(s)&&(a=!0)}var u=uG(s)?e.mirror.getId(yt(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=lj(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){v3(t,e.mirror)&&e.iframeManager.addIframe(t),v7(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),v9(o)&&e.shadowDomManager.addShadowRoot(v$.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};while(e.mapRemoves.length){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a=ug(e.movedSet),c;!(c=a()).done;){var u=c.value;(!yy(e.removesSubTreeCache,u,e.mirror)||e.movedSet.has(v$.parentNode(u)))&&o(u)}for(var l=ug(e.addedSet),h;!(h=l()).done;){var d=h.value;yw(e.droppedSet,d)||yy(e.removesSubTreeCache,d,e.mirror)?yw(e.movedSet,d)?o(d):e.droppedSet.add(d):o(d)}var f=null;while(n.length){var p=null;if(f){var g=e.mirror.getId(v$.parentNode(f.value)),m=i(f.value);-1!==g&&-1!==m&&(p=f)}if(!p){var v=n.tail;while(v){var y=v;if(v=v.previous,y){var b=e.mirror.getId(v$.parentNode(y.value)),w=i(y.value);if(-1===w)continue;if(-1!==b){p=y;break}var x=y.value,_=v$.parentNode(x);if(_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=v$.host(_),S=e.mirror.getId(k);if(-1!==S){p=y;break}}}}}if(!p){while(n.head)n.removeNode(n.head.value);break}f=p.previous,n.removeNode(p.value),o(p.value)}var C={texts:e.texts.map(function(t){var r=t.node,n=v$.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(C.texts.length||C.attributes.length||C.removes.length||C.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(C))}}),uw(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(v$.childNodes(t),function(e){return v$.textContent(e)||""}).join("");r.attributes.value=u3({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:lt(t),value:n,maskInputFn:e.maskInputFn})}),uw(this,"processMutation",function(t){if(!v4(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=v$.textContent(t.target);v1(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:lA(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,v0(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=lt(n);o=u3({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(v1(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o))if(n.contentDocument)return;else i="rr_src";if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!lO(n.tagName,i))if(a.attributes[i]=lE(e.doc,u7(n.tagName),u7(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u=ug(Array.from(n.style)),l;!(l=u()).done;){var h=l.value,d=n.style.getPropertyValue(h),f=n.style.getPropertyPriority(h);d!==c.style.getPropertyValue(h)||f!==c.style.getPropertyPriority(h)?""===f?a.styleDiff[h]=d:a.styleDiff[h]=[d,f]:a._unchangedStyles[h]=[d,f]}for(var p=ug(Array.from(c.style)),g;!(g=p()).done;){var m=g.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes["rr_open_mode"]="modal":a.attributes["rr_open_mode"]="non-modal");break;case"childList":if(v1(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=uG(t.target)?e.mirror.getId(v$.host(t.target)):e.mirror.getId(t.target);!(v1(t.target,e.blockClass,e.blockSelector,!1)||v4(r,e.mirror,e.slimDOMOptions))&&v2(r,e.mirror)&&(e.addedSet.has(r)?(ym(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||v5(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[yp(n,i)]?ym(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!!(uG(t.target)&&uK(t.target))||void 0}),yv(r,e.removesSubTreeCache))),e.mapRemoves.push(r))});break}}),uw(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!(e.addedSet.has(t)||e.movedSet.has(t))){if(e.mirror.hasNode(t)){if(v4(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[yp(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);!v1(t,e.blockClass,e.blockSelector,!1)&&(v$.childNodes(t).forEach(function(t){return e.genAdds(t)}),v9(t)&&v$.childNodes(v$.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}}),uw(this,"cleanupRemovedNode",function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(e){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(e){}t.childNodes.forEach(function(t){e.cleanupRemovedNode(t)})})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function ym(e,t){e.delete(t),v$.childNodes(t).forEach(function(t){return ym(e,t)})}function yv(e,t){var r=[e];while(r.length){var n=r.pop();if(t.has(n))continue;t.add(n),v$.childNodes(n).forEach(function(e){return r.push(e)})}}function yy(e,t,r){return 0!==e.size&&yb(e,t)}function yb(e,t,r){var n=v$.parentNode(t);return!!n&&e.has(n)}function yw(e,t){return 0!==e.size&&yx(e,t)}function yx(e,t){var r=v$.parentNode(t);return!!r&&(!!e.has(r)||yx(e,r))}var y_;function yk(e){y_=e}function yS(){y_=void 0}var yC=function(e){if(!y_)return e;var t=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(y_&&!0===y_(e))return;throw e}};return t},yE=[];function yO(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function yI(e,t){var r=new yg;yE.push(r),r.init(e);var n=new(vq())(yC(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function yT(e){for(var t=yE.length-1;t>=0;t--){var r=yE[t];r.getDoc()===e&&yE.splice(t,1)}}function yA(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o="number"==typeof r.mousemove?r.mousemove:50,s="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,a=[],c,u=vX(yC(function(e){var r=Date.now()-c;t(a.map(function(e){return e.timeOffset-=r,e}),e),a=[],c=null}),s),l=yC(vX(yC(function(e){var t=yO(e),r=v8(e)?e.changedTouches[0]:e,n=r.clientX,o=r.clientY;c||(c=vG()),a.push({x:n,y:o,id:i.getId(t),timeOffset:vG()-c}),u("u">typeof DragEvent&&ua(e,DragEvent)?ys.Drag:ua(e,MouseEvent)?ys.MouseMove:ys.TouchMove)}),o,{trailing:!1})),h=[vW("mousemove",l,n),vW("touchmove",l,n),vW("drag",l,n)];return yC(function(){h.forEach(function(e){return e()})})}function yM(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null,l=function(e){return function(r){var s=yO(r);if(!v1(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=yc.Mouse;break;case"touch":a=yc.Touch;break;case"pen":a=yc.Pen;break}a===yc.Touch?ya[e]===ya.MouseDown?c="TouchStart":ya[e]===ya.MouseUp&&(c="TouchEnd"):yc.Pen}else v8(r)&&(a=yc.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===yc.Touch||c.startsWith("Mouse")&&a===yc.Mouse)&&(a=null)):ya[e]===ya.Click&&(a=u,u=null);var l=v8(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),d=l.clientX,f=l.clientY;yC(t)(ui({type:ya[c],id:h,x:d,y:f},null!==a&&{pointerType:a}))}}}};return Object.keys(ya).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var t=u7(e),n=l(e);if(window.PointerEvent)switch(ya[e]){case ya.MouseDown:case ya.MouseUp:t=t.replace("mouse","pointer");break;case ya.TouchStart:case ya.TouchEnd:return}c.push(vW(t,n,r))}),yC(function(){c.forEach(function(e){return e()})})}function yR(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=yC(vX(yC(function(e){var s=yO(e);if(!(!s||v1(s,i,o,!0))){var a=n.getId(s);if(s===r&&r.defaultView){var c=vK(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100));return vW("scroll",a,r)}function yP(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1,s=yC(vX(yC(function(){var e=vZ(),t=vQ();(i!==e||o!==t)&&(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200));return vW("resize",s,n)}var yL=["INPUT","TEXTAREA","SELECT"],yD=new WeakMap;function yN(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function d(e){var t=yO(e),n=e.isTrusted,l=t&&t.tagName;if((t&&"OPTION"===l&&(t=v$.parentElement(t)),!(!t||!l||yL.indexOf(l)<0||v1(t,i,o,!0)))&&!(t.classList.contains(s)||a&&t.matches(a))){var d=t.value,p=!1,g=lt(t)||"";"radio"===g||"checkbox"===g?p=t.checked:(c[l.toLowerCase()]||c[g])&&(d=u3({element:t,maskInputOptions:c,tagName:l,type:g,value:d,maskInputFn:u})),f(t,h?{text:d,isChecked:p,userTriggered:n}:{text:d,isChecked:p});var m=t.name;"radio"===g&&m&&p&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(function(e){if(e!==t){var r=e.value;f(e,h?{text:r,isChecked:!p,userTriggered:!1}:{text:r,isChecked:!p})}})}}function f(e,r){var i=yD.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){yD.set(e,r);var o=n.getId(e);yC(t)(ui({},r,{id:o}))}}var p="last"===l.input?["change"]:["input","change"],g=p.map(function(e){return vW(e,yC(d),r)}),m=r.defaultView;if(!m)return function(){g.forEach(function(e){return e()})};var v=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),y=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];if(v&&v.set){var b;(b=g).push.apply(b,[].concat(y.map(function(e){return vJ(e[0],e[1],{set:function(){yC(d)({target:this,isTrusted:!1})}},!1,m)})))}return yC(function(){g.forEach(function(e){return e()})})}function yB(e){var t=[];return function(e,t){if(yX("CSSGroupingRule")&&ua(e.parentRule,CSSGroupingRule)||yX("CSSMediaRule")&&ua(e.parentRule,CSSMediaRule)||yX("CSSSupportsRule")&&ua(e.parentRule,CSSSupportsRule)||yX("CSSConditionRule")&&ua(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules),n=r.indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var i=Array.from(e.parentStyleSheet.cssRules),o=i.indexOf(e);t.unshift(o)}return t}(e,t)}function yF(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function yj(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:yC(function(e,t,o){var s=o[0],a=o[1],c=yF(t,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a=o.CSSStyleSheet.prototype.deleteRule,c,u;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:yC(function(e,t,o){var s=o[0],a=yF(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(c=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:yC(function(e,t,o){var s=o[0],a=yF(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replace:s}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(u=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:yC(function(e,t,o){var s=o[0],a=yF(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replaceSync:s}),e.apply(t,o)})}));var l={};yJ("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(yJ("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),yJ("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),yJ("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:yC(function(e,t,o){var s=o[0],a=o[1],c=yF(t.parentStyleSheet,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:[].concat(yB(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:yC(function(e,t,o){var s=o[0],a=yF(t.parentStyleSheet,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:[].concat(yB(t),[s])}]}),e.apply(t,o)})})}),yC(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=a,c&&(o.CSSStyleSheet.prototype.replace=c),u&&(o.CSSStyleSheet.prototype.replaceSync=u),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}function yU(e,t){var r=e.mirror,n=e.stylesheetManager,i,o,s,a=null;a="#document"===t.nodeName?r.getId(t):r.getId(v$.host(t));var c="#document"===t.nodeName?null==(i=t.defaultView)?void 0:i.Document:null==(s=null==(o=t.ownerDocument)?void 0:o.defaultView)?void 0:s.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{n.adoptStyleSheets(e,a)}catch(e){}return r}}),yC(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function yz(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:yC(function(e,t,s){var c,u=s[0],l=s[1],h=s[2];if(i.has(u))return a.apply(t,[u,l,h]);var d=yF(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),f=d.id,p=d.styleId;return(f&&-1!==f||p&&-1!==p)&&r({id:f,styleId:p,set:{property:u,value:l,priority:h},index:yB(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:yC(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=yF(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,d=l.styleId;return(h&&-1!==h||d&&-1!==d)&&r({id:h,styleId:d,remove:{property:u},index:yB(t.parentRule)}),e.apply(t,s)})}),yC(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}function yq(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=yC(function(e){return vX(yC(function(o){var s=yO(o);if(!(!s||v1(s,r,n,!0))){var a=s.currentTime,c=s.volume,u=s.muted,l=s.playbackRate,h=s.loop;t({type:e,id:i.getId(s),currentTime:a,volume:c,muted:u,playbackRate:l,loop:h})}}),o.media||500)}),c=[vW("play",a(yl.Play),s),vW("pause",a(yl.Pause),s),vW("seeked",a(yl.Seeked),s),vW("volumechange",a(yl.VolumeChange),s),vW("ratechange",a(yl.RateChange),s)];return yC(function(){c.forEach(function(e){return e()})})}function yH(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=vH(r.fonts,"add",function(e){return function(r){return setTimeout(yC(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),yC(function(){i.forEach(function(e){return e()})})}function y$(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=yC(function(){var e=t.getSelection();if(e&&(!s||null==e||!e.isCollapsed)){s=e.isCollapsed||!1;for(var a=[],c=e.rangeCount||0,u=0;u<c;u++){var l=e.getRangeAt(u),h=l.startContainer,d=l.startOffset,f=l.endContainer,p=l.endOffset,g=v1(h,n,i,!0)||v1(f,n,i,!0);g||a.push({start:r.getId(h),startOffset:d,end:r.getId(f),endOffset:p})}o({ranges:a})}});return a(),vW("selectionchange",a)}function yW(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;if(!n||!n.customElements)return function(){};var i=vH(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}});return i}function yV(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,d=e.fontCb,f=e.selectionCb,p=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];if(t.mutation){var o;(o=t).mutation.apply(o,[].concat(n))}r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];if(t.mousemove){var o;(o=t).mousemove.apply(o,[].concat(r))}n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.mouseInteraction){var o;(o=t).mouseInteraction.apply(o,[].concat(r))}i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.scroll){var i;(i=t).scroll.apply(i,[].concat(r))}o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.viewportResize){var i;(i=t).viewportResize.apply(i,[].concat(r))}s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.input){var i;(i=t).input.apply(i,[].concat(r))}a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.mediaInteaction){var i;(i=t).mediaInteaction.apply(i,[].concat(r))}c.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.styleSheetRule){var i;(i=t).styleSheetRule.apply(i,[].concat(r))}u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.styleDeclaration){var i;(i=t).styleDeclaration.apply(i,[].concat(r))}l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.canvasMutation){var i;(i=t).canvasMutation.apply(i,[].concat(r))}h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.font){var i;(i=t).font.apply(i,[].concat(r))}d.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.selection){var i;(i=t).selection.apply(i,[].concat(r))}f.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.customElement){var i;(i=t).customElement.apply(i,[].concat(r))}p.apply(void 0,[].concat(r))}}function yY(e,t){void 0===t&&(t={});var r=e.doc.defaultView;if(!r)return function(){};var n;yV(e,t),e.recordDOM&&(n=yI(e,e.doc));var i=yA(e),o=yM(e),s=yR(e),a=yP(e,{win:r}),c=yN(e),u=yq(e),l=function(){},h=function(){},d=function(){},f=function(){};e.recordDOM&&(l=yj(e,{win:r}),h=yU(e,e.doc),d=yz(e,{win:r}),e.collectFonts&&(f=yH(e)));for(var p=y$(e),g=yW(e),m=[],v=ug(e.plugins),y;!(y=v()).done;){var b=y.value;m.push(b.observer(b.callback,r,b.options))}return yC(function(){yE.forEach(function(e){return e.reset()}),null==n||n.disconnect(),i(),o(),s(),a(),c(),u(),l(),h(),d(),f(),p(),g(),m.forEach(function(e){return e()})})}function yX(e){return void 0!==window[e]}function yJ(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var yG=function(){function e(e){uw(this,"iframeIdToRemoteIdMap",new WeakMap),uw(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),yK=function(){function e(e){uw(this,"iframes",new WeakMap),uw(this,"crossOriginIframeMap",new WeakMap),uw(this,"crossOriginIframeMirror",new yG(lg)),uw(this,"crossOriginIframeStyleMirror"),uw(this,"crossOriginIframeRootIdMap",new WeakMap),uw(this,"iframeContentDocumentMap",new WeakMap),uw(this,"iframeObserverCleanupMap",new WeakMap),uw(this,"mirror"),uw(this,"mutationCb"),uw(this,"wrappedEmit"),uw(this,"loadListener"),uw(this,"stylesheetManager"),uw(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new yG(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin){var r=e.source;if(r){var n=this.crossOriginIframeMap.get(e.source);if(n){var i=this.transformCrossOriginEvent(n,t.data.event);i&&this.wrappedEmit(i,t.data.isCheckout)}}}},t.transformCrossOriginEvent=function(e,t){var r=this,n;switch(t.type){case yo.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:yo.IncrementalSnapshot,data:{source:ys.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case yo.Meta:case yo.Load:case yo.DomContentLoaded:break;case yo.Plugin:return t;case yo.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case yo.IncrementalSnapshot:switch(t.data.source){case ys.Mutation:return t.data.adds.forEach(function(t){r.replaceIds(t,e,["parentId","nextId","previousId"]),r.replaceIdOnNode(t.node,e);var n=r.crossOriginIframeRootIdMap.get(e);n&&r.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(function(t){r.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){r.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){r.replaceIds(t,e,["id"])}),t;case ys.Drag:case ys.TouchMove:case ys.MouseMove:return t.data.positions.forEach(function(t){r.replaceIds(t,e,["id"])}),t;case ys.ViewportResize:return!1;case ys.MediaInteraction:case ys.MouseInteraction:case ys.Scroll:case ys.CanvasMutation:case ys.Input:return this.replaceIds(t.data,e,["id"]),t;case ys.StyleSheetRule:case ys.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ys.Font:return t;case ys.Selection:return t.data.ranges.forEach(function(t){r.replaceIds(t,e,["start","end"])}),t;case ys.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach(function(t){r.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i=ug(n),o;!(o=i()).done;){var s=o.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===yh.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),yZ=function(){function e(e){uw(this,"shadowDoms",new WeakSet),uw(this,"mutationCb"),uw(this,"scrollCb"),uw(this,"bypassOptions"),uw(this,"mirror"),uw(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(uK(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=yI(ui({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(yR(ui({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(v$.host(e))),r.restoreHandlers.push(yU({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(vH(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=v$.shadowRoot(this);return o&&yi(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),yQ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y0="u"<typeof Uint8Array?[]:new Uint8Array(256),y1=0;y1<yQ.length;y1++)y0[yQ.charCodeAt(y1)]=y1;var y2=function(e){var t=new Uint8Array(e),r,n=t.length,i="";for(r=0;r<n;r+=3)i+=yQ[t[r]>>2],i+=yQ[(3&t[r])<<4|t[r+1]>>4],i+=yQ[(15&t[r+1])<<2|t[r+2]>>6],i+=yQ[63&t[r+2]];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i},y4=new Map;function y5(e,t){var r=y4.get(e);return r||(r=new Map,y4.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var y8=function(e,t,r){if(e&&(y7(e,t)||(void 0===e?"undefined":uh(e))==="object")){var n=e.constructor.name,i=y5(r,n),o=i.indexOf(e);return -1===o&&(o=i.length,i.push(e)),o}};function y6(e,t,r){if(ua(e,Array))return e.map(function(e){return y6(e,t,r)});if(null===e);else if(ua(e,Float32Array)||ua(e,Float64Array)||ua(e,Int32Array)||ua(e,Uint32Array)||ua(e,Uint8Array)||ua(e,Uint16Array)||ua(e,Int16Array)||ua(e,Int8Array)||ua(e,Uint8ClampedArray)){var n=e.constructor.name;return{rr_type:n,args:[Object.values(e)]}}else if(ua(e,ArrayBuffer)){var i=e.constructor.name,o=y2(e);return{rr_type:i,base64:o}}else if(ua(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[y6(e.buffer,t,r),e.byteOffset,e.byteLength]}}else if(ua(e,HTMLImageElement)){var a=e.constructor.name,c=e.src;return{rr_type:a,src:c}}else if(ua(e,HTMLCanvasElement)){var u="HTMLImageElement",l=e.toDataURL();return{rr_type:u,src:l}}else if(ua(e,ImageData)){var h=e.constructor.name;return{rr_type:h,args:[y6(e.data,t,r),e.width,e.height]}}else if(y7(e,t)||(void 0===e?"undefined":uh(e))==="object"){var d=e.constructor.name,f=y8(e,t,r);return{rr_type:d,index:f}}return e}var y3=function(e,t,r){return e.map(function(e){return y6(e,t,r)})},y7=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],n=r.filter(function(e){return"function"==typeof t[e]});return!!n.find(function(r){return ua(e,t[r])})};function y9(e,t,r,n){for(var i=function(){var i=c.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])return"continue";var s=vH(t.CanvasRenderingContext2D.prototype,i,function(o){return function(){for(var s=this,a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];return v1(this.canvas,r,n,!0)||setTimeout(function(){var r=y3(c,t,s);e(s.canvas,{type:yu["2D"],property:i,args:r})},0),o.apply(this,c)}});o.push(s)}catch(r){var a=vJ(t.CanvasRenderingContext2D.prototype,i,{set:function(t){e(this.canvas,{type:yu["2D"],property:i,args:[t],setter:!0})}});o.push(a)}},o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=ug(s),c;!(c=a()).done;)i();return function(){o.forEach(function(e){return e()})}}function be(e){return"experimental-webgl"===e?"webgl":e}function bt(e,t,r,n){var i=[];try{var o=vH(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!v1(this,t,r,!0)){var c=be(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===uh(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function br(e,t,r,n,i,o){for(var s=function(){var s=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(s))return"continue";try{if("function"!=typeof e[s])return"continue";var c=vH(e,s,function(e){return function(){for(var a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];var l=e.apply(this,c);if(y8(l,o,this),"tagName"in this.canvas&&!v1(this.canvas,n,i,!0)){var h=y3(c,o,this),d={type:t,property:s,args:h};r(this.canvas,d)}return l}});a.push(c)}catch(n){var u=vJ(e,s,{set:function(e){r(this.canvas,{type:t,property:s,args:[e],setter:!0})}});a.push(u)}},a=[],c=Object.getOwnPropertyNames(e),u=ug(c),l;!(l=u()).done;)s();return a}function bn(e,t,r,n){var i,o=[];if((i=o).push.apply(i,[].concat(br(t.WebGLRenderingContext.prototype,yu.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext){var s;(s=o).push.apply(s,[].concat(br(t.WebGL2RenderingContext.prototype,yu.WebGL2,e,r,n,t)))}return function(){o.forEach(function(e){return e()})}}var bi="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",bo=function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})},bs="u">typeof window&&window.Blob&&new Blob([bo(bi)],{type:"text/javascript;charset=utf-8"});function ba(e){var t;try{if(!(t=bs&&(window.URL||window.webkitURL).createObjectURL(bs)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+bi,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var bc=function(){function e(e){var t=this;uw(this,"pendingCanvasMutations",new Map),uw(this,"rafStamps",{latestId:0,invokeId:null}),uw(this,"mirror"),uw(this,"mutationCb"),uw(this,"resetObservers"),uw(this,"frozen",!1),uw(this,"locked",!1),uw(this,"processMutation",function(e,r){var n=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;(n||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=bt(t,r,n,!0),a=new Map,c=new ba;c.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,c=r.height;o.mutationCb({id:t,type:yu["2D"],commands:[{property:"clearRect",args:[0,0,s,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var u=1e3/e,l=0,h,d=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){v1(t,r,n,!0)||e.push(t)}),e},f=function(e){if(l&&e-l<u){h=requestAnimationFrame(f);return}l=e;var t=o;d().forEach(ue(function(e){var r,n,o,s;return um(this,function(u){switch(u.label){case 0:if(n=t.mirror.getId(e),a.get(n)||0===e.width||0===e.height)return[2];return a.set(n,!0),["webgl","webgl2"].includes(e.__context)&&(null==(r=null==(o=e.getContext(e.__context))?void 0:o.getContextAttributes())?void 0:r.preserveDrawingBuffer)===!1&&o.clear(o.COLOR_BUFFER_BIT),[4,createImageBitmap(e)];case 1:return s=u.sent(),c.postMessage({id:n,bitmap:s,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[s]),[2]}})})),h=requestAnimationFrame(f)};h=requestAnimationFrame(f),this.resetObservers=function(){s(),cancelAnimationFrame(h)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=bt(e,t,r,!1),i=y9(this.processMutation.bind(this),e,t,r),o=bn(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){e.type;var t=uu(e,["type"]);return t}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),bu=function(){function e(e){uw(this,"trackedLinkElements",new WeakSet),uw(this,"mutationCb"),uw(this,"adoptedStyleSheetCb"),uw(this,"styleMirror",new ye),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=a.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),o.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:u1(t,e.href),index:r}})})),i.styleIds.push(t)};if(0!==e.length){for(var i={id:t,styleIds:[]},o=[],s=ug(e),a;!(a=s()).done;)r=this,n();o.length>0&&(i.styles=o),this.adoptedStyleSheetCb(i)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n=ug(r.adoptedStyleSheets),i;!(i=n()).done;){var o=i.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),bl=function(){function e(){uw(this,"nodeMap",new WeakMap),uw(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}();function bh(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(e){return null}}function bd(e){if(!Array.isArray(e)||0===e.length)throw Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!=typeof n)throw Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+(void 0===n?"undefined":uh(n))+".");var i=bh(n);i&&t.add(i)}return Object.freeze(t)}var bf,bp,bg,bm=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var bv=document.createElement("iframe");document.body.appendChild(bv),Array.from=(null==(ux=bv.contentWindow)?void 0:ux.Array.from)||Array.from,document.body.removeChild(bv)}}catch(e){console.debug("Unable to override Array.from",e)}var by=u6();function bb(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,l=e.ignoreSelector,h=void 0===l?null:l,d=e.maskTextClass,f=void 0===d?"rr-mask":d,p=e.maskTextSelector,g=void 0===p?null:p,m=e.inlineStylesheet,v=void 0===m||m,y=e.maskAllInputs,b=e.maskInputOptions,w=e.slimDOMOptions,x=e.maskInputFn,_=e.maskTextFn,k=e.hooks,S=e.packFn,C=e.sampling,E=void 0===C?{}:C,O=e.dataURLOptions,I=void 0===O?{}:O,T=e.mousemoveWait,A=e.recordDOM,M=void 0===A||A,R=e.recordCanvas,P=void 0!==R&&R,L=e.recordCrossOriginIframes,D=void 0!==L&&L,N=e.allowedIframeOrigins,B=e.recordAfter,F=void 0===B?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":B,j=e.userTriggeredOnInput,U=void 0!==j&&j,z=e.collectFonts,q=void 0!==z&&z,H=e.inlineImages,$=void 0!==H&&H,W=e.plugins,V=e.keepIframeSrcFn,Y=void 0===V?function(){return!1}:V,X=e.ignoreCSSAttributes,J=void 0===X?new Set([]):X,G=e.errorHandler,K;yk(G),D&&N&&N.length>0&&0===(K=bd(N)).size&&(K=void 0);var Z=!D||window.parent===window,Q=!1;if(!Z)try{window.parent.document&&(Q=!1)}catch(e){Q=!0}if(Z&&!t)throw Error("emit function is required");if(!Z&&!Q)return function(){};void 0!==T&&void 0===E.mousemove&&(E.mousemove=T),by.reset();var ee=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==b?b:{password:!0},et=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w,headTitleMutations:"all"===w}:w||{},er;v6();var en=0,ei=function(e){for(var t=ug(W||[]),r;!(r=t()).done;){var n=r.value;n.eventProcessor&&(e=n.eventProcessor(e))}return S&&!Q&&(e=S(e)),e};bf=function(e,i){var o,s=e;if(s.timestamp=vG(),(null==(o=yE[0])?void 0:o.isFrozen())&&s.type!==yo.FullSnapshot&&(s.type!==yo.IncrementalSnapshot||s.data.source!==ys.Mutation)&&yE.forEach(function(e){return e.unfreeze()}),Z)null==t||t(ei(s),i);else if(Q){var a={type:"rrweb",event:ei(s),origin:window.location.origin,isCheckout:i};if(K)for(var c=ug(K),u;!(u=c()).done;){var l=u.value;window.parent.postMessage(a,l)}else window.parent.postMessage(a,"*")}if(s.type===yo.FullSnapshot)er=s,en=0;else if(s.type===yo.IncrementalSnapshot){if(s.data.source===ys.Mutation&&s.data.isAttachIframe)return;en++;var h=n&&en>=n,d=r&&s.timestamp-er.timestamp>r;(h||d)&&bp(!0)}};for(var eo=function(e){bf({type:yo.IncrementalSnapshot,data:ui({source:ys.Mutation},e)})},es=function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.Scroll},e)})},ea=function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.CanvasMutation},e)})},ec=function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.AdoptedStyleSheet},e)})},eu=new bu({mutationCb:eo,adoptedStyleSheetCb:ec}),el=new yK({mirror:by,mutationCb:eo,stylesheetManager:eu,recordCrossOriginIframes:D,wrappedEmit:bf}),eh=ug(W||[]),ed;!(ed=eh()).done;){var ef=ed.value;ef.getMirror&&ef.getMirror({nodeMirror:by,crossOriginIframeMirror:el.crossOriginIframeMirror,crossOriginIframeStyleMirror:el.crossOriginIframeStyleMirror})}var ep=new bl;bg=new bc({recordCanvas:P,mutationCb:ea,win:window,blockClass:o,blockSelector:a,mirror:by,sampling:E.canvas,dataURLOptions:I});var eg=new yZ({mutationCb:eo,scrollCb:es,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:ee,dataURLOptions:I,maskTextFn:_,maskInputFn:x,recordCanvas:P,inlineImages:$,sampling:E,slimDOMOptions:et,iframeManager:el,stylesheetManager:eu,canvasManager:bg,keepIframeSrcFn:Y,processedNodeManager:ep},mirror:by});bp=function(e){if(void 0===e&&(e=!1),M){bf({type:yo.Meta,data:{href:window.location.href,width:vQ(),height:vZ()}},e),eu.reset(),eg.init(),yE.forEach(function(e){return e.lock()});var t=lU(document,{mirror:by,blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:ee,maskTextFn:_,maskInputFn:x,slimDOM:et,dataURLOptions:I,recordCanvas:P,inlineImages:$,onSerialize:function(e){v3(e,by)&&el.addIframe(e),v7(e,by)&&eu.trackLinkElement(e),v9(e)&&eg.addShadowRoot(v$.shadowRoot(e),document)},onIframeLoad:function(e,t){el.attachIframe(e,t),eg.observeAttachShadow(e)},onStylesheetLoad:function(e,t){eu.attachLinkElement(e,t)},keepIframeSrcFn:Y});if(!t)return console.warn("Failed to snapshot the document");bf({type:yo.FullSnapshot,data:{node:t,initialOffset:vK(window)}},e),yE.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&eu.adoptStyleSheets(document.adoptedStyleSheets,by.getId(document))}};try{var em=[],ev=function(e){var t;return yC(yY)({mutationCb:eo,mousemoveCb:function(e,t){return bf({type:yo.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.MouseInteraction},e)})},scrollCb:es,viewportResizeCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.ViewportResize},e)})},inputCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.Input},e)})},mediaInteractionCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.MediaInteraction},e)})},styleSheetRuleCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.StyleSheetRule},e)})},styleDeclarationCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.StyleDeclaration},e)})},canvasMutationCb:ea,fontCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.Font},e)})},selectionCb:function(e){bf({type:yo.IncrementalSnapshot,data:ui({source:ys.Selection},e)})},customElementCb:function(e){bf({type:yo.IncrementalSnapshot,data:ui({source:ys.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:h,maskTextClass:f,maskTextSelector:g,maskInputOptions:ee,inlineStylesheet:v,sampling:E,recordDOM:M,recordCanvas:P,inlineImages:$,userTriggeredOnInput:U,collectFonts:q,doc:e,maskInputFn:x,maskTextFn:_,keepIframeSrcFn:Y,blockSelector:a,slimDOMOptions:et,dataURLOptions:I,mirror:by,iframeManager:el,stylesheetManager:eu,shadowDomManager:eg,processedNodeManager:ep,canvasManager:bg,ignoreCSSAttributes:J,plugins:(null==(t=null==W?void 0:W.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return bf({type:yo.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},k)};el.addLoadListener(function(e){try{var t=e.contentDocument,r=ev(t);em.push(r);var n=el.getObserverCleanup(e);el.setObserverCleanup(e,function(){if(n)try{n()}catch(e){}try{r();var e=em.indexOf(r);-1!==e&&em.splice(e,1),yT(t)}catch(e){}})}catch(e){console.warn(e)}});var ey=function(){bp(),em.push(ev(document)),bm=!0};return"interactive"===document.readyState||"complete"===document.readyState?ey():(em.push(vW("DOMContentLoaded",function(){bf({type:yo.DomContentLoaded,data:{}}),"DOMContentLoaded"===F&&ey()})),em.push(vW("load",function(){bf({type:yo.Load,data:{}}),"load"===F&&ey()},window))),function(){em.forEach(function(e){try{e()}catch(e){var t=String(e).toLowerCase();t.includes("cross-origin")||console.warn(e)}}),ep.destroy(),bm=!1,yS()}}catch(e){console.warn(e)}}var bw;bb.addCustomEvent=function(e,t){if(!bm)throw Error("please add custom event after start recording");bf({type:yo.Custom,data:{tag:e,payload:t}})},bb.freezePage=function(){yE.forEach(function(e){return e.freeze()})},bb.takeFullSnapshot=function(e){if(!bm)throw Error("please take full snapshot after start recording");bp(e)},bb.mirror=by,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(bw||(bw={})),bb.addCustomEvent,bb.freezePage,bb.takeFullSnapshot;var bx={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},b_={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},bk={},bS=function(){return!!globalThis.Zone};function bC(e){if(bk[e])return bk[e];var t=globalThis[e],r=t.prototype,n=e in bx?bx[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in b_?b_[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!bS())return bk[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return bk[e]=u}catch(e){return r}}var bE={};function bO(e,t,r){var n,i=e+"."+String(r);if(bE[i])return bE[i].call(t);var o=bC(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(bE[i]=s,s.call(t)):t[r]}var bI={};function bT(e,t,r){var n=e+"."+String(r);if(bI[n])return bI[n].bind(t);var i=bC(e),o=i[r];return"function"!=typeof o?t[r]:(bI[n]=o,o.bind(t))}function bA(e){return bO("Node",e,"childNodes")}function bM(e){return bO("Node",e,"parentNode")}function bR(e){return bO("Node",e,"parentElement")}function bP(e){return bO("Node",e,"textContent")}function bL(e,t){return bT("Node",e,"contains")(t)}function bD(e){return bT("Node",e,"getRootNode")()}function bN(e){return e&&"host"in e?bO("ShadowRoot",e,"host"):null}function bB(e){return e.styleSheets}function bF(e){return e&&"shadowRoot"in e?bO("Element",e,"shadowRoot"):null}function bj(e,t){return bO("Element",e,"querySelector")(t)}function bU(e,t){return bO("Element",e,"querySelectorAll")(t)}function bz(){return bC("MutationObserver").constructor}function bq(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var bH={childNodes:bA,parentNode:bM,parentElement:bR,textContent:bP,contains:bL,getRootNode:bD,host:bN,styleSheets:bB,shadowRoot:bF,querySelector:bj,querySelectorAll:bU,mutationObserver:bz,patch:bq};function b$(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return b$(bH.parentNode(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return b$(bH.parentNode(e),t)}function bW(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function bV(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return ua(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var bY={exports:{}},bX=String,bJ=function(){return{isColorSupported:!1,reset:bX,bold:bX,dim:bX,italic:bX,underline:bX,inverse:bX,hidden:bX,strikethrough:bX,black:bX,red:bX,green:bX,yellow:bX,blue:bX,magenta:bX,cyan:bX,white:bX,gray:bX,bgBlack:bX,bgRed:bX,bgGreen:bX,bgYellow:bX,bgBlue:bX,bgMagenta:bX,bgCyan:bX,bgWhite:bX}};bY.exports=bJ(),bY.exports.createColors=bJ;var bG=bY.exports,bK={},bZ=Object.freeze(Object.defineProperty({__proto__:null,default:bK},Symbol.toStringTag,{value:"Module"})),bQ=bV(bZ),b0=bG,b1=bQ,b2=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}us(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=b0.isColorSupported),b1&&e&&(r=b1(r));var n=r.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),s=String(o).length,a,c;if(e){var u=b0.createColors(!0),l=u.bold,h=u.gray,d=u.red;a=function(e){return l(d(e))},c=function(e){return h(e)}}else a=c=function(e){return e};return n.slice(i,o).map(function(e,r){var n=i+1+r,o=" "+(" "+n).slice(-s)+" | ";if(n===t.line){var u=c(o.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return a(">")+c(o)+e+"\n "+u+a("^")}return" "+c(o)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(uf(Error)),b4=b2;b2.default=b2;var b5={};b5.isClean=Symbol("isClean"),b5.my=Symbol("my");var b8={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function b6(e){return e[0].toUpperCase()+e.slice(1)}var b3=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r=this.raw(e,"between","beforeOpen"),n;this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return b8[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+b6(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=b8[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),b7=b3;b3.default=b3;var b9=b7;function we(e,t){var r=new b9(t);r.stringify(e)}var wt=we;we.default=we;var wr=b5.isClean,wn=b5.my,wi=b4,wo=b7,ws=wt;function wa(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":uh(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return wa(e,r)}):("object"===o&&null!==i&&(i=wa(i)),r[n]=i)}return r}var wc=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[wr]=!1,this[wn]=!0,e)if("nodes"===t){this.nodes=[];for(var r=ug(e[t]),n;!(n=r()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=wa(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new wi(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[wr]){this[wr]=!1;var e=this;while(e=e.parent)e[wr]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new wo;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n=this,i=!1,o=ug(t),s;!(s=o()).done;){var a=s.value;a===this?i=!0:i?(this.parent.insertAfter(n,a),n=a):this.parent.insertBefore(n,a)}i||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":uh(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=ws),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},un(e,[{key:"proxyOf",get:function(){return this}}]),e}(),wu=wc;wc.default=wc;var wl=wu,wh=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=ui({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return us(t,e),un(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(wl),wd=wh;wh.default=wh;var wf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",wp=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=wf[64*Math.random()|0];return t},wg={nanoid:wp},wm=bQ.SourceMapConsumer,wv=bQ.SourceMapGenerator,wy=bQ.existsSync,wb=bQ.readFileSync,ww=bQ.dirname,wx=bQ.join;function w_(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var wk=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ww(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new wm(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return w_(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":uh(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=ww(e),wy(e))return this.mapFile=e,wb(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(ua(t,wm))return wv.fromSourceMap(t).toString();else if(ua(t,wv))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=wx(ww(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),wS=wk;wk.default=wk;var wC=bQ.SourceMapConsumer,wE=bQ.SourceMapGenerator,wO=bQ.fileURLToPath,wI=bQ.pathToFileURL,wT=bQ.isAbsolute,wA=bQ.resolve,wM=wg.nanoid,wR=bQ,wP=b4,wL=wS,wD=Symbol("fromOffsetCache"),wN=!!(wC&&wE),wB=!!(wA&&wT),wF=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":uh(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!wB||/^\w+:\/\//.test(t.from)||wT(t.from)?this.file=t.from:this.file=wA(t.from)),wB&&wN){var r=new wL(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+wM(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&(void 0===t?"undefined":uh(t))==="object"){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return(i=d?new wP(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new wP(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(wI&&(i.input.url=wI(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[wD])r=this[wD];else{var n=this.css.split("\n");r=Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[wD]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c=r.length-2,u;while(a<c)if(e<r[u=a+(c-a>>1)])c=u-1;else if(e>=r[u+1])a=u+1;else{a=u;break}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:wA(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i=this.map.consumer(),o=i.originalPositionFor({column:t,line:e});if(!o.source)return!1;var s,a;"number"==typeof r&&(s=i.originalPositionFor({column:n,line:r})),a=wT(o.source)?wI(o.source):new URL(o.source,this.map.consumer().sourceRoot||wI(this.map.mapFile));var c={column:o.column,endColumn:s&&s.column,endLine:s&&s.line,line:o.line,url:a.toString()};if("file:"===a.protocol)if(wO)c.file=wO(a);else throw Error("file: protocol is not available in this PostCSS build");var u=i.sourceContentFor(o.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=ui({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},un(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),wj=wF;wF.default=wF,wR&&wR.registerInput&&wR.registerInput(wF);var wU=bQ.SourceMapConsumer,wz=bQ.SourceMapGenerator,wq=bQ.dirname,wH=bQ.relative,w$=bQ.resolve,wW=bQ.sep,wV=bQ.pathToFileURL,wY=wj,wX=!!(wU&&wz),wJ=!!(wq&&w$&&wH&&wW),wG=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e=ug(this.previous()),t;!(t=e()).done;){var r=t.value,n=this.toUrl(this.path(r.file)),i=r.root||wq(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new wU(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),wJ&&wX&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=wz.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new wz({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new wz({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(i.generated.line=t,i.generated.column=r-1,c.source&&c.source.start?(i.source=e.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1):(i.source=n,i.original.line=1,i.original.column=0),e.map.addMapping(i)),(o=a.match(/\n/g))?(t+=o.length,s=a.lastIndexOf("\n"),r=a.length-s):r+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;(!h||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(i.source=e.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=r-2):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=r-1),e.map.addMapping(i))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?wq(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=wq(w$(r,this.mapOpts.annotation)));var n=wH(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new wY(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(wV){var r=wV(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===wW&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),wK=wG,wZ=wu,wQ=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return us(t,e),t}(wZ),w0=wQ;wQ.default=wQ;var w1=b5.isClean,w2=b5.my,w4=wd,w5=w0,w8=wu,w6,w3,w7,w9;function xe(e){return e.map(function(e){return e.nodes&&(e.nodes=xe(e.nodes)),delete e.source,e})}function xt(e){if(e[w1]=!1,e.proxyOf.nodes)for(var t=ug(e.proxyOf.nodes),r;!(r=t()).done;){var n=r.value;xt(n)}}var xr=function(e){function t(){return e.apply(this,arguments)||this}us(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=ug(t),i;!(i=n()).done;)for(var o=i.value,s=this.normalize(o,this.last),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r=ug(this.nodes),n;!(n=r()).done;){var i=n.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t=this.getIterator(),r,n;while(this.indexes[t]<this.proxyOf.nodes.length){if(r=this.indexes[t],!1===(n=e(this.proxyOf.nodes[r],r)))break;this.indexes[t]+=1}return delete this.indexes[t],n}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(var i=ug(n),o;!(o=i()).done;){var s=o.value;this.proxyOf.nodes.splice(r+1,0,s)}var a;for(var c in this.indexes)r<(a=this.indexes[c])&&(this.indexes[c]=a+n.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r=this.index(e),n=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(var o=ug(i),s;!(s=o()).done;){var a=s.value;this.proxyOf.nodes.splice(r,0,a)}var c;for(var u in this.indexes)r<=(c=this.indexes[u])&&(this.indexes[u]=c+i.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=xe(w6(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i=ug(e),o;!(o=i()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a=ug(e),c;!(c=a()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new w4(e)]}else if(e.selector)e=[new w3(e)];else if(e.name)e=[new w7(e)];else if(e.text)e=[new w5(e)];else throw Error("Unknown node type in node creation");var l=e.map(function(e){return e[w2]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[w1]&&xt(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n=ug(t),i;!(i=n()).done;){for(var o=i.value,s=this.normalize(o,this.first,"prepend").reverse(),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+s.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e=ug(this.proxyOf.nodes),t;!(t=e()).done;){var r=t.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},un(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(w8);xr.registerParse=function(e){w6=e},xr.registerRule=function(e){w3=e},xr.registerAtRule=function(e){w7=e},xr.registerRoot=function(e){w9=e};var xn=xr;xr.default=xr,xr.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,w7.prototype):"rule"===e.type?Object.setPrototypeOf(e,w3.prototype):"decl"===e.type?Object.setPrototypeOf(e,w4.prototype):"comment"===e.type?Object.setPrototypeOf(e,w5.prototype):"root"===e.type&&Object.setPrototypeOf(e,w9.prototype),e[w2]=!0,e.nodes&&e.nodes.forEach(function(e){xr.rebuild(e)})};var xi=xn,xo,xs,xa=function(e){function t(t){var r;return(r=e.call(this,ui({type:"document"},t))||this).nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new xo(new xs,this,e);return t.stringify()},t}(xi);xa.registerLazyResult=function(e){xo=e},xa.registerProcessor=function(e){xs=e};var xc=xa;xa.default=xa;var xu=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),xl=xu;xu.default=xu;var xh=xl,xd=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new xh(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},un(e,[{key:"content",get:function(){return this.css}}]),e}(),xf=xd;xd.default=xd;var xp=39,xg=34,xm=92,xv=47,xy=10,xb=32,xw=12,xx=9,x_=13,xk=91,xS=93,xC=40,xE=41,xO=123,xI=125,xT=59,xA=42,xM=58,xR=64,xP=/[\t\n\f\r "#'()/;[\\\]{}]/g,xL=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,xD=/.[\r\n"'(/\\]/,xN=/[\da-f]/i,xB=function(e,t){void 0===t&&(t={});var r=e.css.valueOf(),n=t.ignoreErrors,i,o,s,a,c,u,l,h,d,f,p=r.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=p},nextToken:function(e){if(v.length)return v.pop();if(!(g>=p)){var t=!!e&&e.ignoreUnclosed;switch(i=r.charCodeAt(g)){case xy:case xb:case xx:case x_:case xw:o=g;do o+=1,i=r.charCodeAt(o);while(i===xb||i===xy||i===xx||i===x_||i===xw)f=["space",r.slice(g,o)],g=o-1;break;case xk:case xS:case xO:case xI:case xM:case xT:case xE:var b=String.fromCharCode(i);f=[b,b,g];break;case xC:if(h=m.length?m.pop()[1]:"",d=r.charCodeAt(g+1),"url"===h&&d!==xp&&d!==xg&&d!==xb&&d!==xy&&d!==xx&&d!==xw&&d!==x_){o=g;do{if(u=!1,-1===(o=r.indexOf(")",o+1)))if(n||t){o=g;break}else y("bracket");l=o;while(r.charCodeAt(l-1)===xm)l-=1,u=!u}while(u)f=["brackets",r.slice(g,o+1),g,o],g=o}else o=r.indexOf(")",g+1),a=r.slice(g,o+1),-1===o||xD.test(a)?f=["(","(",g]:(f=["brackets",a,g,o],g=o);break;case xp:case xg:s=i===xp?"'":'"',o=g;do{if(u=!1,-1===(o=r.indexOf(s,o+1)))if(n||t){o=g+1;break}else y("string");l=o;while(r.charCodeAt(l-1)===xm)l-=1,u=!u}while(u)f=["string",r.slice(g,o+1),g,o],g=o;break;case xR:xP.lastIndex=g+1,xP.test(r),o=0===xP.lastIndex?r.length-1:xP.lastIndex-2,f=["at-word",r.slice(g,o+1),g,o],g=o;break;case xm:o=g,c=!0;while(r.charCodeAt(o+1)===xm)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==xv&&i!==xb&&i!==xy&&i!==xx&&i!==x_&&i!==xw&&(o+=1,xN.test(r.charAt(o)))){while(xN.test(r.charAt(o+1)))o+=1;r.charCodeAt(o+1)===xb&&(o+=1)}f=["word",r.slice(g,o+1),g,o],g=o;break;default:i===xv&&r.charCodeAt(g+1)===xA?(0===(o=r.indexOf("*/",g+2)+1)&&(n||t?o=r.length:y("comment")),f=["comment",r.slice(g,o+1),g,o]):(xL.lastIndex=g+1,xL.test(r),o=0===xL.lastIndex?r.length-1:xL.lastIndex-2,f=["word",r.slice(g,o+1),g,o],m.push(f)),g=o;break}return g++,f}},position:function(){return g}}},xF=xn,xj=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}us(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(xF),xU=xj;xj.default=xj,xF.registerAtRule(xj);var xz=xn,xq,xH,x$=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o=ug(i),s;!(s=o()).done;){var a=s.value;a.raws.before=r.raws.before}}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new xq(new xH,this,e);return t.stringify()},t}(xz);x$.registerLazyResult=function(e){xq=e},x$.registerProcessor=function(e){xH=e};var xW=x$;x$.default=x$,xz.registerRoot(x$);var xV={comma:function(e){return xV.split(e,[","],!0)},space:function(e){var t=[" ","\n"," "];return xV.split(e,t)},split:function(e,t,r){for(var n=[],i="",o=!1,s=0,a=!1,c="",u=!1,l=ug(e),h;!(h=l()).done;){var d=h.value;u?u=!1:"\\"===d?u=!0:a?d===c&&(a=!1):'"'===d||"'"===d?(a=!0,c=d):"("===d?s+=1:")"===d?s>0&&(s-=1):0===s&&t.includes(d)&&(o=!0),o?(""!==i&&n.push(i.trim()),i="",o=!1):i+=d}return(r||""!==i)&&n.push(i.trim()),n}},xY=xV;xV.default=xV;var xX=xn,xJ=xY,xG=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return us(t,e),un(t,[{key:"selectors",get:function(){return xJ.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(xX),xK=xG;xG.default=xG,xX.registerRule(xG);var xZ=wd,xQ=xB,x0=w0,x1=xU,x2=xW,x4=xK,x5={empty:!0,space:!0};function x8(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var x6=function(){function e(e){this.input=e,this.root=new x2,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t=new x1,r,n,i;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if("("===(r=(e=this.tokenizer.nextToken())[0])||"["===r?c.push("("===r?")":"]"):"{"===r&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),0===c.length)if(";"===r){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if("{"===r){s=!0;break}else if("}"===r){if(a.length>0){i=a.length-1,n=a[i];while(n&&"space"===n[0])n=a[--i];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),s&&(t.nodes=[],this.current=t)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r=0,n,i=t-1;i>=0&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}},t.colon=function(e){for(var t=0,r,n,i,o=ug(e.entries()),s;!(s=o()).done;){var a=s.value,c=a[0],u=a[1];if("("===(n=(r=u)[0])&&(t+=1),")"===n&&(t-=1),0===t&&":"===n)if(i)if("word"===i[0]&&"progid"===i[1])continue;else return c;else this.doubleColon(r);i=r}return!1},t.comment=function(e){var t=new x0;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=xQ(this.input)},t.decl=function(e,t){var r=new xZ;this.init(r,e[0][2]);var n=e[e.length-1];";"===n[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||x8(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}var o;r.raws.between="";while(e.length){if(":"===(o=e.shift())[0]){r.raws.between+=o[1];break}"word"===o[0]&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1]}("_"===r.prop[0]||"*"===r.prop[0])&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s=[],a;while(e.length){if("space"!==(a=e[0][0])&&"comment"!==a)break;s.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(o=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===o[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var f=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==o[0]&&"comment"!==o[0])break}var p=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});p&&(r.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new x4;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if("space"!==(c=a[a.length-1][0])&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s=r.length,a="",c=!0,u,l,h=0;h<s;h+=1)"space"!==(o=(i=r[h])[0])||h!==s-1||n?"comment"===o?(l=r[h-1]?r[h-1][0]:"empty",u=r[h+1]?r[h+1][0]:"empty",x5[l]||x5[u]||","===a.slice(-1)?c=!1:a+=i[1]):a+=i[1]:c=!1;if(!c){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:a}}e[t]=a},t.rule=function(e){e.pop();var t=new x4;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if("space"!==(t=e[e.length-1][0])&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if("space"!==(t=e[0][0])&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t="";while(e.length){if("space"!==e[e.length-1][0])break;t=e.pop()[1]+t}return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),x3=x6,x7=xn,x9=x3,_e=wj;function _t(e,t){var r=new _e(e,t),n=new x9(r);try{n.parse()}catch(e){throw e}return n.root}var _r=_t;_t.default=_t,x7.registerParse(_t);var _n=b5.isClean,_i=b5.my,_o=wK,_s=wt,_a=xn,_c=xc,_u=xf,_l=_r,_h=xW,_d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},_f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},_p={Once:!0,postcssPlugin:!0,prepare:!0},_g=0;function _m(e){return(void 0===e?"undefined":uh(e))==="object"&&"function"==typeof e.then}function _v(e){var t=!1,r=_d[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,_g,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,_g,r+"Exit"]:[r,r+"Exit"]}function _y(e){return{eventIndex:0,events:"document"===e.type?["Document",_g,"DocumentExit"]:"root"===e.type?["Root",_g,"RootExit"]:_v(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function _b(e){return e[_n]=!1,e.nodes&&e.nodes.forEach(function(e){return _b(e)}),e}var _w={},_x=function(){function e(t,r,n){var i=this,o;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":uh(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))o=_b(r);else if(ua(r,e)||ua(r,_u))o=_b(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=_l;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(r,n)}catch(e){this.processed=!0,this.error=e}o&&!o[_i]&&_a.rebuild(o)}this.result=new _u(t,o,n),this.helpers=ui({},_w,{postcss:_w,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.prepare?ui({},e,e.prepare(i.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},r=ug(this.plugins),n;!(n=r()).done;){var i=n.value;if((void 0===i?"undefined":uh(i))==="object")for(var o in i){if(!_f[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!_p[o])if("object"===uh(i[o]))for(var s in i[o])t(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&t(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return ue(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return um(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!_m(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[_n])return[3,14];o[_n]=!0,s=[_y(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!_m(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return um(this,function(s){switch(s.label){case 0:r=(t=d.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=ug(e.listeners.OnceExit),f.label=15;case 15:if((d=h()).done)return[3,18];return[5,uv(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":uh(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(_m(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=_s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new _o(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=ug(this.plugins),t;!(t=e()).done;){var r=t.value,n=this.runOnRoot(r);if(_m(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[_n])i[_n]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o=ug(i.nodes),s;!(s=o()).done;){var a=s.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r=ug(e),n;!(n=r()).done;){var i=n.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(_m(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){var a=t.iterator,c;while(c=r.nodes[r.indexes[a]])if(r.indexes[a]+=1,!c[_n]){c[_n]=!0,e.push(_y(c));return}t.iterator=0,delete r.indexes[a]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===_g){r.nodes&&r.nodes.length&&(r[_n]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[_n]=!0;for(var r=_v(e),n=ug(r),i;!(i=n()).done;){var o=i.value;if(o===_g)e.nodes&&e.each(function(e){e[_n]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},un(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();_x.registerPostcss=function(e){_w=e};var __=_x;_x.default=_x,_h.registerLazyResult(_x),_c.registerLazyResult(_x);var _k=wK,_S=wt,_C=_r,_E=xf,_O=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=_S;this.result=new _E(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new _k(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},un(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=_C;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),_I=_O;_O.default=_O;var _T=_I,_A=__,_M=xc,_R=xW,_P=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t=[],r=ug(e),n;!(n=r()).done;){var i=n.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":uh(i))==="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if((void 0===i?"undefined":uh(i))==="object"&&i.postcssPlugin)t.push(i);else if("function"==typeof i)t.push(i);else if((void 0===i?"undefined":uh(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return t},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new _A(this,e,t):new _T(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),_L=_P;_P.default=_P,_R.registerProcessor(_P),_M.registerProcessor(_P);var _D=wd,_N=wS,_B=w0,_F=xU,_j=wj,_U=xW,_z=xK;function _q(e,t){if(Array.isArray(e))return e.map(function(e){return _q(e)});var r=e.inputs,n=uu(e,["inputs"]);if(r){t=[];for(var i=ug(r),o;!(o=i()).done;){var s=o.value,a=ui({},s,{__proto__:_j.prototype});a.map&&(a.map=ui({},a.map,{__proto__:_N.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return _q(e,t)})),n.source){var c=n.source,u=c.inputId,l=uu(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new _U(n);if("decl"===n.type)return new _D(n);if("rule"===n.type)return new _z(n);if("comment"===n.type)return new _B(n);if("atrule"===n.type)return new _F(n);else throw Error("Unknown node type: "+e.type)}var _H=_q;_q.default=_q;var _$=b4,_W=wd,_V=__,_Y=xn,_X=_L,_J=wt,_G=_H,_K=xc,_Z=xl,_Q=w0,_0=xU,_1=xf,_2=wj,_4=_r,_5=xY,_8=xK,_6=xW,_3=wu;function _7(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new _X(t)}_7.plugin=function(e,t){var r=!1;function n(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new _X().version,s}var i;return Object.defineProperty(n,"postcss",{get:function(){return i||(i=n()),i}}),n.process=function(e,t,r){return _7([n(r)]).process(e,t)},n},_7.stringify=_J,_7.parse=_4,_7.fromJSON=_G,_7.list=_5,_7.comment=function(e){return new _Q(e)},_7.atRule=function(e){return new _0(e)},_7.decl=function(e){return new _W(e)},_7.rule=function(e){return new _8(e)},_7.root=function(e){return new _6(e)},_7.document=function(e){return new _K(e)},_7.CssSyntaxError=_$,_7.Declaration=_W,_7.Container=_Y,_7.Processor=_X,_7.Document=_K,_7.Comment=_Q,_7.Warning=_Z,_7.AtRule=_0,_7.Result=_1,_7.Input=_2,_7.Rule=_8,_7.Root=_6,_7.Node=_3,_V.registerPostcss(_7);var _9=_7;_7.default=_7;var ke=bW(_9);ke.stringify,ke.fromJSON,ke.plugin,ke.parse,ke.list,ke.document,ke.comment,ke.atRule,ke.rule,ke.decl,ke.root,ke.CssSyntaxError,ke.Declaration,ke.Container,ke.Processor,ke.Document,ke.Comment,ke.Warning,ke.AtRule,ke.Result,ke.Input,ke.Rule,ke.Root,ke.Node;var kt=Object.defineProperty,kr=function(e,t,r){return t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},kn=function(e,t,r){return kr(e,(void 0===t?"undefined":uh(t))!=="symbol"?t+"":t,r)};function ki(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var ko=function(){function e(e){kn(this,"fileName"),kn(this,"functionName"),kn(this,"lineNumber"),kn(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}var t=e.prototype;return t.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),ks=/(^|@)\S+:\d+/,ka=/^\s*at .*(\S+:\d+|\(native\))/m,kc=/^(eval@)?(\[native code])?$/,ku={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(ka)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/,r=t.exec(e.replace(/[()]/g,""));if(!r)throw Error("Cannot parse given url: "+e);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(ka)},this);return t.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=r?t.replace(r[0],""):t;var n=t.split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new ko({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){var t=e.stack.split("\n").filter(function(e){return!e.match(kc)},this);return t.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new ko({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new ko({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new ko({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new ko({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(ks)&&!e.match(/^Error created at/)},this);return t.map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=t.shift()||"",i=n.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new ko({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function kl(e){if(!e||!e.outerHTML)return"";var t="";while(e.parentElement){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function kh(e){return"[object Object]"===Object.prototype.toString.call(e)}function kd(e,t){if(0===t)return!0;for(var r=Object.keys(e),n=ug(r),i;!(i=n()).done;){var o=i.value;if(kh(e[o])&&kd(e[o],t-1))return!0}return!1}function kf(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var r=n.indexOf(this);~r?n.splice(r+1):n.push(this),~r?i.splice(r,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(o(t))return s(t);if((void 0===t?"undefined":uh(t))==="bigint")return t.toString()+"n";if(ua(t,Event)){var a={};for(var c in t){var u=t[c];Array.isArray(u)?a[c]=kl(u.length?u[0]:null):a[c]=u}return a}return ua(t,Node)?ua(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:ua(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t});function o(e){return!!(kh(e)&&Object.keys(e).length>r.numOfKeysLimit||"function"==typeof e||kh(e)&&kd(e,r.depthOfLimit))}function s(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=""+t.slice(0,r.stringLengthLimit)+"..."),t}}var kp={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function kg(e,t,r){var n=r?Object.assign({},kp,r):kp,i=n.logger;if(!i)return function(){};var o;o="string"==typeof i?t[i]:i;var s=0,a=!1,c=[];if(n.level.includes("error")){var u=function(t){var r=t.message,i=t.error,o=ku.parse(i).map(function(e){return e.toString()}),s=[kf(r,n.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",u),c.push(function(){t.removeEventListener("error",u)});var l=function(t){var r,i;ua(t.reason,Error)?i=[kf("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,n.stringifyOptions)]:(r=Error(),i=[kf("Uncaught (in promise)",n.stringifyOptions),kf(t.reason,n.stringifyOptions)]);var o=ku.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:i})};t.addEventListener("unhandledrejection",l),c.push(function(){t.removeEventListener("unhandledrejection",l)})}for(var h=ug(n.level),d;!(d=h()).done;){var f=d.value;c.push(p(o,f))}return function(){c.forEach(function(e){return e()})};function p(t,r){var i=this;return t[r]?ki(t,r,function(t){var o=i;return function(){for(var i=arguments.length,c=Array(i),u=0;u<i;u++)c[u]=arguments[u];if((t.apply(o,c),"assert"!==r||!c[0])&&!a){a=!0;try{var l=ku.parse(Error()).map(function(e){return e.toString()}).splice(1),h="assert"===r?c.slice(1):c,d=h.map(function(e){return kf(e,n.stringifyOptions)});++s<n.lengthThreshold?e({level:r,trace:l,payload:d}):s===n.lengthThreshold&&e({level:"warn",trace:[],payload:[kf("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],c))}finally{a=!1}}}}):function(){}}}var km="rrweb/console@1",kv=function(e){return{name:km,observer:kg,options:e}},ky=c1["setImmediate"],kb,kw,kx,k_=Object.prototype.toString,kk=void 0!==ky?function(e){return ky(e)}:setTimeout;try{Object.defineProperty({},"x",{}),kb=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){kb=function(e,t,r){return e[t]=r,e}}function kS(e,t){kx.add(e,t),kw||(kw=kk(kx.drain))}function kC(e){var t,r=typeof e;return null!==e&&("object"===r||"function"===r)&&(t=e.then),"function"==typeof t&&t}function kE(){for(var e=0;e<this.chain.length;e++)kO(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function kO(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=kC(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function kI(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=kC(e))?kS(function(){var n=new kM(r);try{t.call(e,function(){kI.apply(n,arguments)},function(){kT.apply(n,arguments)})}catch(e){kT.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&kS(kE,r))}catch(e){kT.call(new kM(r),e)}}}function kT(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&kS(kE,t))}function kA(e,t,r,n){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)})(i)}function kM(e){this.def=e,this.triggered=!1}function kR(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function kP(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this["__NPO__"])throw TypeError("Not a promise");this["__NPO__"]=1;var t=new kR(this);this["then"]=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&kS(kE,t),n.promise},this["catch"]=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){kI.call(t,e)},function(e){kT.call(t,e)})}catch(e){kT.call(t,e)}}kx=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;e=t=kw=void 0;while(r)r.fn.call(r.self),r=r.next}}}();var kL=kb({},"constructor",kP,!1),kD;kP.prototype=kL,kb(kL,"__NPO__",0,!1),kb(kP,"resolve",function(e){var t=this;return e&&"object"==typeof e&&1===e["__NPO__"]?e:new t(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),kb(kP,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),kb(kP,"all",function(e){var t=this;return"[object Array]"!==k_.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;kA(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),kb(kP,"race",function(e){var t=this;return"[object Array]"!==k_.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");kA(t,e,function(e,t){r(t)},n)})}),kD="u">typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:kP;var kN=864e5,kB=8e3,kF=Array.prototype,kj=Function.prototype,kU=Object.prototype,kz=kF.slice,kq=kU.toString,kH=kU.hasOwnProperty,k$=c1.console,kW=c1.navigator,kV=c1.document,kY=c1.opera,kX=c1.screen,kJ=kW.userAgent,kG=kj.bind,kK=kF.forEach,kZ=kF.indexOf,kQ=kF.map,k0=Array.isArray,k1={},k2={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},k4={log:function(){if(c4.DEBUG&&!k2.isUndefined(k$)&&k$)try{k$.log.apply(k$,arguments)}catch(e){k2.each(arguments,function(e){k$.log(e)})}},warn:function(){if(c4.DEBUG&&!k2.isUndefined(k$)&&k$){var e=["Mixpanel warning:"].concat(k2.toArray(arguments));try{k$.warn.apply(k$,e)}catch(t){k2.each(e,function(e){k$.warn(e)})}}},error:function(){if(c4.DEBUG&&!k2.isUndefined(k$)&&k$){var e=["Mixpanel error:"].concat(k2.toArray(arguments));try{k$.error.apply(k$,e)}catch(t){k2.each(e,function(e){k$.error(e)})}}},critical:function(){if(!k2.isUndefined(k$)&&k$){var e=["Mixpanel error:"].concat(k2.toArray(arguments));try{k$.error.apply(k$,e)}catch(t){k2.each(e,function(e){k$.error(e)})}}}},k5=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(k4,arguments)}},k8=function(e){return{log:k5(k4.log,e),warn:k5(k4.warn,e),error:k5(k4.error,e),critical:k5(k4.critical,e)}},k6=function(e){return function(){try{return e.apply(this,arguments)}catch(e){k4.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),c4.DEBUG&&k4.critical(e)}}},k3=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=k6(t[r]))};k2.bind=function(e,t){var r,n;if(kG&&e.bind===kG)return kG.apply(e,kz.call(arguments,1));if(!k2.isFunction(e))throw TypeError();return r=kz.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(kz.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(kz.call(arguments)));return Object(s)===s?s:o}},k2.each=function(e,t,r){if(null!=e){if(kK&&e.forEach===kK)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===k1)return}else for(var o in e)if(kH.call(e,o)&&t.call(r,e[o],o,e)===k1)return}},k2.extend=function(e){return k2.each(kz.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},k2.isArray=k0||function(e){return"[object Array]"===kq.call(e)},k2.isFunction=function(e){return"function"==typeof e},k2.isArguments=function(e){return!!(e&&kH.call(e,"callee"))},k2.toArray=function(e){return e?e.toArray?e.toArray():k2.isArray(e)||k2.isArguments(e)?kz.call(e):k2.values(e):[]},k2.map=function(e,t,r){if(kQ&&e.map===kQ)return e.map(t,r);var n=[];return k2.each(e,function(e){n.push(t.call(r,e))}),n},k2.keys=function(e){var t=[];return null===e||k2.each(e,function(e,r){t[t.length]=r}),t},k2.values=function(e){var t=[];return null===e||k2.each(e,function(e){t[t.length]=e}),t},k2.include=function(e,t){var r=!1;return null===e?r:kZ&&e.indexOf===kZ?-1!=e.indexOf(t):(k2.each(e,function(e){if(r||(r=e===t))return k1}),r)},k2.includes=function(e,t){return -1!==e.indexOf(t)},k2.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},k2.isObject=function(e){return e===Object(e)&&!k2.isArray(e)},k2.isEmptyObject=function(e){if(k2.isObject(e)){for(var t in e)if(kH.call(e,t))return!1;return!0}return!1},k2.isUndefined=function(e){return void 0===e},k2.isString=function(e){return"[object String]"==kq.call(e)},k2.isDate=function(e){return"[object Date]"==kq.call(e)},k2.isNumber=function(e){return"[object Number]"==kq.call(e)},k2.isElement=function(e){return!!(e&&1===e.nodeType)},k2.encodeDates=function(e){return k2.each(e,function(t,r){k2.isDate(t)?e[r]=k2.formatDate(t):k2.isObject(t)&&(e[r]=k2.encodeDates(t))}),e},k2.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},k2.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},k2.strip_empty_properties=function(e){var t={};return k2.each(e,function(e,r){k2.isString(e)&&e.length>0&&(t[r]=e)}),t},k2.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):k2.isArray(e)?(r=[],k2.each(e,function(e){r.push(k2.truncate(e,t))})):k2.isObject(e)?(r={},k2.each(e,function(e,n){r[n]=k2.truncate(e,t)})):r=e,r},k2.JSONEncode=function(){return function(e){var t=e,r=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},n=function(e,t){var i="",o=" ",s=0,a="",c="",u=0,l=i,h=[],d=t[e];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return r(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i+=o,h=[],"[object Array]"===kq.apply(d)){for(u=d.length,s=0;s<u;s+=1)h[s]=n(s,d)||"null";return c=0===h.length?"[]":i?"[\n"+i+h.join(",\n"+i)+"\n"+l+"]":"["+h.join(",")+"]",i=l,c}for(a in d)kH.call(d,a)&&(c=n(a,d))&&h.push(r(a)+(i?": ":":")+c);return c=0===h.length?"{}":i?"{"+h.join(",")+l+"}":"{"+h.join(",")+"}",i=l,c}};return n("",{"":t})}}(),k2.JSONDecode=function(){var e,t,r={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},n,i=function(t){var r=SyntaxError(t);throw r.at=e,r.text=n,r},o=function(r){return r&&r!==t&&i("Expected '"+r+"' instead of '"+t+"'"),t=n.charAt(e),e+=1,t},s=function(){var e,r="";"-"===t&&(r="-",o("-"));while(t>="0"&&t<="9")r+=t,o();if("."===t){r+=".";while(o()&&t>="0"&&t<="9")r+=t}if("e"===t||"E"===t){r+=t,o(),("-"===t||"+"===t)&&(r+=t,o());while(t>="0"&&t<="9")r+=t,o()}if(isFinite(e=+r))return e;i("Bad number")},a=function(){var e,n,s="",a;if('"'===t)while(o()){if('"'===t)return o(),s;if("\\"===t)if(o(),"u"===t){for(n=0,a=0;n<4;n+=1){if(!isFinite(e=parseInt(o(),16)))break;a=16*a+e}s+=String.fromCharCode(a)}else if("string"==typeof r[t])s+=r[t];else break;else s+=t}i("Bad string")},c=function(){while(t&&t<=" ")o()},u=function(){switch(t){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}i('Unexpected "'+t+'"')},l,h=function(){var e=[];if("["===t){if(o("["),c(),"]"===t)return o("]"),e;while(t){if(e.push(l()),c(),"]"===t)return o("]"),e;o(","),c()}}i("Bad array")},d=function(){var e,r={};if("{"===t){if(o("{"),c(),"}"===t)return o("}"),r;while(t){if(e=a(),c(),o(":"),Object.hasOwnProperty.call(r,e)&&i('Duplicate key "'+e+'"'),r[e]=l(),c(),"}"===t)return o("}"),r;o(","),c()}}i("Bad object")};return l=function(){switch(c(),t){case"{":return d();case"[":return h();case'"':return a();case"-":return s();default:return t>="0"&&t<="9"?s():u()}},function(r){var o;return n=r,e=0,t=" ",o=l(),c(),t&&i("Syntax error"),o}}(),k2.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,n,i,o,s,a,c=0,u=0,l="",h=[];if(!e)return e;e=k2.utf8Encode(e);do r=e.charCodeAt(c++),n=(a=r<<16|e.charCodeAt(c++)<<8|e.charCodeAt(c++))>>18&63,i=a>>12&63,o=a>>6&63,s=63&a,h[u++]=t.charAt(n)+t.charAt(i)+t.charAt(o)+t.charAt(s);while(c<e.length)switch(l=h.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"=";break}return l},k2.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t="",r,n,i=0,o;for(r=n=0,i=e.length,o=0;o<i;o++){var s=e.charCodeAt(o),a=null;s<128?n++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(n>r&&(t+=e.substring(r,n)),t+=a,r=n=o+1)}return n>r&&(t+=e.substring(r,e.length)),t},k2.UUID=function(){try{return c1["crypto"]["randomUUID"]()}catch(r){for(var e=Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",k2.map(e,function(e){return e.toString(16)}).join("")}};var k7=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];k2.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<k7.length;t++)if(-1!==e.indexOf(k7[t]))return!0;return!1},k2.HTTPBuildQuery=function(e,t){var r,n,i=[];return k2.isUndefined(t)&&(t="&"),k2.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},k2.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r="[\\?&]"+t+"=([^&#]*)",n=new RegExp(r),i=n.exec(e);if(null===i||i&&"string"!=typeof i[1]&&i[1].length)return"";var o=i[1];try{o=decodeURIComponent(o)}catch(e){k4.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},k2.cookie={get:function(e){for(var t=e+"=",r=kV.cookie.split(";"),n=0;n<r.length;n++){var i=r[n];while(" "==i.charAt(0))i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=k2.JSONDecode(k2.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=Sg(kV.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),kV.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=Sg(kV.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*36e5),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return kV.cookie=d,d},remove:function(e,t,r){k2.cookie.set(e,"",-1,t,!1,!1,r)}};var k9=function(e){var t=!0;try{var r="__mplss_"+Sh(8),n="xyz";e.setItem(r,n),e.getItem(r)!==n&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},Se=null,St=function(e,t){return null===Se||t?Se=k9(e):Se},Sr=null,Sn=function(e,t){return null===Sr||t?Sr=k9(e):Sr};function Si(e,t,r){var n=function(e){k4.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||k4.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return k2.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}var So=function(){try{return c1.localStorage}catch(e){return null}},Ss=function(){try{return c1.sessionStorage}catch(e){return null}};k2.localStorage=Si(So(),"localStorage",St),k2.sessionStorage=Si(Ss(),"sessionStorage",Sn),k2.register_event=function(){var e=function(e,r,n,i,o){if(!e)return void k4.error("No valid element provided to register_event");if(e.addEventListener&&!i)e.addEventListener(r,n,!!o);else{var s="on"+r,a=e[s];e[s]=t(e,n,a)}};function t(e,t,n){var i=function(i){if(i=i||r(c1.event)){var o=!0,s,a;return k2.isFunction(n)&&(s=n(i)),a=t.call(e,i),(!1===s||!1===a)&&(o=!1),o}};return i}function r(e){return e&&(e.preventDefault=r.preventDefault,e.stopPropagation=r.stopPropagation),e}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},e}();var Sa=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');k2.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!kV.getElementsByTagName)return[];var n=t.split(" "),i,o,s,a,c,u,l,h,d,f,p=[kV];for(u=0;u<n.length;u++){if((i=n[u].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){s=(o=i.split("#"))[0];var g=o[1],m=kV.getElementById(g);if(!m||s&&m.nodeName.toLowerCase()!=s)return[];p=[m];continue}if(i.indexOf(".")>-1){s=(o=i.split("."))[0];var v=o[1];for(!s&&(s="*"),a=[],c=0,l=0;l<p.length;l++)for(d="*"==s?e(p[l]):p[l].getElementsByTagName(s),h=0;h<d.length;h++)a[c++]=d[h];for(l=0,p=[],f=0;l<a.length;l++)a[l].className&&k2.isString(a[l].className)&&r(a[l],v)&&(p[f++]=a[l]);continue}var y=i.match(Sa);if(y){s=y[1];var b=y[2],w=y[3],x=y[4];for(!s&&(s="*"),a=[],c=0,l=0;l<p.length;l++)for(d="*"==s?e(p[l]):p[l].getElementsByTagName(s),h=0;h<d.length;h++)a[c++]=d[h];var _;switch(p=[],f=0,w){case"=":_=function(e){return e.getAttribute(b)==x};break;case"~":_=function(e){return e.getAttribute(b).match(RegExp("\\b"+x+"\\b"))};break;case"|":_=function(e){return e.getAttribute(b).match(RegExp("^"+x+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(b).indexOf(x)};break;case"$":_=function(e){return e.getAttribute(b).lastIndexOf(x)==e.getAttribute(b).length-x.length};break;case"*":_=function(e){return e.getAttribute(b).indexOf(x)>-1};break;default:_=function(e){return e.getAttribute(b)}}for(l=0,p=[],f=0;l<a.length;l++)_(a[l])&&(p[f++]=a[l]);continue}for(s=i,a=[],c=0,l=0;l<p.length;l++)for(d=p[l].getElementsByTagName(s),h=0;h<d.length;h++)a[c++]=d[h];p=a}return p}return function(e){return k2.isElement(e)?[e]:k2.isObject(e)&&!k2.isUndefined(e.length)?e:n.call(this,e)}}();var Sc=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Su=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];k2.info={campaignParams:function(e){var t="",r={};return k2.each(Sc,function(n){(t=k2.getQueryParam(kV.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return k2.each(Su,function(r){(e=k2.getQueryParam(kV.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return k2.extend(k2.info.campaignParams(),k2.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=k2.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n["$search_engine"]=t;var i=k2.getQueryParam(e,r);i.length&&(n["mp_keyword"]=i)}return n},browser:function(e,t,r){if(t=t||"",r||k2.includes(e," OPR/"))return k2.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(k2.includes(e,"IEMobile")||k2.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(k2.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(k2.includes(e,"Edge")||k2.includes(e,"Edg/"))return"Microsoft Edge";else if(k2.includes(e,"FBIOS"))return"Facebook Mobile";else if(k2.includes(e,"Whale/"))return"Whale Browser";else if(k2.includes(e,"Chrome"))return"Chrome";else if(k2.includes(e,"CriOS"))return"Chrome iOS";else if(k2.includes(e,"UCWEB")||k2.includes(e,"UCBrowser"))return"UC Browser";else if(k2.includes(e,"FxiOS"))return"Firefox iOS";else if(k2.includes(t,"Apple"))return k2.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(k2.includes(e,"Android"))return"Android Mobile";else if(k2.includes(e,"Konqueror"))return"Konqueror";else if(k2.includes(e,"Firefox"))return"Firefox";else if(k2.includes(e,"MSIE")||k2.includes(e,"Trident/"))return"Internet Explorer";else if(k2.includes(e,"Gecko"))return"Mozilla";else return""},browserVersion:function(e,t,r){var n=k2.info.browser(e,t,r),i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},o=i[n];if(void 0===o)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=kJ;if(/Windows/i.test(e))return/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(e))return"iOS";if(/Android/.test(e))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(/Mac/i.test(e))return"Mac OS X";else if(/Linux/.test(e))return"Linux";else if(/CrOS/.test(e))return"Chrome OS";else return""},device:function(e){if(/Windows Phone/i.test(e)||/WPDesktop/.test(e))return"Windows Phone";if(/iPad/.test(e))return"iPad";if(/iPod/.test(e))return"iPod Touch";if(/iPhone/.test(e))return"iPhone";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";else if(/Android/.test(e))return"Android";else return""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return c1.location.href},properties:function(e){return"object"!=typeof e&&(e={}),k2.extend(k2.strip_empty_properties({$os:k2.info.os(),$browser:k2.info.browser(kJ,kW.vendor,kY),$referrer:kV.referrer,$referring_domain:k2.info.referringDomain(kV.referrer),$device:k2.info.device(kJ)}),{$current_url:k2.info.currentUrl(),$browser_version:k2.info.browserVersion(kJ,kW.vendor,kY),$screen_height:kX.height,$screen_width:kX.width,mp_lib:"web",$lib_version:c4.LIB_VERSION,$insert_id:Sh(),time:k2.timestamp()/1e3},k2.strip_empty_properties(e))},people_properties:function(){return k2.extend(k2.strip_empty_properties({$os:k2.info.os(),$browser:k2.info.browser(kJ,kW.vendor,kY)}),{$browser_version:k2.info.browserVersion(kJ,kW.vendor,kY)})},mpPageViewProperties:function(){return k2.strip_empty_properties({current_page_title:kV.title,current_domain:c1.location.hostname,current_url_path:c1.location.pathname,current_url_protocol:c1.location.protocol,current_url_search:c1.location.search})}};var Sl=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new kD(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)})),r}},Sh=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Sd=function(){var e=k2.UUID().replace(/-/g,""),t=k2.UUID().replace(/-/g,"").substring(0,16),r="01";return"00-"+e+"-"+t+"-"+r},Sf=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Sp=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Sg=function(e){var t=Sp,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Sf);var i=e.match(t);return i?i[0]:""},Sm=function(){var e=c1.navigator["onLine"];return k2.isUndefined(e)||e},Sv=function(){},Sy=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},Sb=null,Sw=null;"u">typeof JSON&&(Sb=JSON.stringify,Sw=JSON.parse),Sb=Sb||k2.JSONEncode,Sw=Sw||k2.JSONDecode;var Sx=function(e,t,r){if(!c1.CompressionStream)return!1;var n=k2.info.browser(e,t,r),i=k2.info.browserVersion(e,t,r);return"Safari"!==n&&"Mobile Safari"!==n||!(i>=16.4)||!(i<16.6)};k2["info"]=k2.info,k2["info"]["browser"]=k2.info.browser,k2["info"]["browserVersion"]=k2.info.browserVersion,k2["info"]["device"]=k2.info.device,k2["info"]["properties"]=k2.info.properties,k2["isBlockedUA"]=k2.isBlockedUA,k2["isEmptyObject"]=k2.isEmptyObject,k2["isObject"]=k2.isObject,k2["JSONDecode"]=k2.JSONDecode,k2["JSONEncode"]=k2.JSONEncode,k2["toArray"]=k2.toArray,k2["NPO"]=kP;var S_=function(e,t,r){this.dbName=e,this.storeName=t,this.version=r.version,this.storeNamesInDb=r.storeNames,this.dbPromise=null};S_.prototype._openDb=function(){var e=this.dbName,t=this.version,r=this.storeNamesInDb;return new kD(function(n,i){var o=c1.indexedDB.open(e,t);o["onerror"]=function(){i(o.error)},o["onsuccess"]=function(){n(o.result)},o["onupgradeneeded"]=function(e){var t=e.target.result;r.forEach(function(e){t.objectStoreNames.contains(e)||t.createObjectStore(e)})}})},S_.prototype.init=function(){return c1.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof c1["IDBDatabase"]?kD.resolve():kD.reject(e)})):kD.reject("indexedDB is not supported in this browser")},S_.prototype.isInitialized=function(){return!!this.dbPromise},S_.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new kD(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch((function(e){return e&&"InvalidStateError"===e["name"]?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):kD.reject(e)}).bind(this))},S_.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},S_.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},S_.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},S_.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var Sk="mixpanelBrowserDb",SS="mixpanelRecordingEvents",SC="mixpanelRecordingRegistry",SE={version:1,storeNames:[SS,SC]},SO="__mp_opt_in_out_";function SI(e,t){SU(!0,e,t)}function ST(e,t){SU(!1,e,t)}function SA(e,t){return"1"===SF(e,t)}function SM(e,t){if(Sj(t))return k4.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===SF(e,t);return r&&k4.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function SR(e){return Sz(e,function(e){return this.get_config(e)})}function SP(e){return Sz(e,function(e){return this._get_config(e)})}function SL(e){return Sz(e,function(e){return this._get_config(e)})}function SD(e,t){SN(t=t||{}).remove(SB(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function SN(e){return"localStorage"===(e=e||{}).persistenceType?k2.localStorage:k2.cookie}function SB(e,t){return((t=t||{}).persistencePrefix||SO)+e}function SF(e,t){return SN(t).get(SB(e,t))}function Sj(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||c1,r=t["navigator"]||{},n=!1;return k2.each([r["doNotTrack"],r["msDoNotTrack"],t["doNotTrack"]],function(e){k2.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}function SU(e,t,r){k2.isString(t)&&t.length?(SN(r=r||{}).set(SB(t,r),+!!e,k2.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):k4.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function Sz(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=SM(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){k4.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}var Sq=k8("lock"),SH=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||So(),this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||kD};SH.prototype.withLock=function(e,t){var r=this.promiseImpl;return new r(k2.bind(function(r,n){var i=t||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",h=s+":Y",d=s+":Z",f=function(e){if(new Date().getTime()-o>c){Sq.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(d),u.removeItem(h),m();return}setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},p=function(e,t){e()?t():f(function(){p(e,t)})},g=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(St(u,!0)||n(Error("localStorage support dropped while acquiring lock")),!1))},m=function(){u.setItem(l,i),p(g,function(){u.getItem(l)===i?v():f(function(){u.getItem(h)!==i?m():p(function(){return!u.getItem(d)},v)})})},v=function(){u.setItem(d,"1");var t=function(){u.removeItem(d),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(St(u,!0))m();else throw Error("localStorage support check failed")}catch(e){n(e)}},this))};var S$=function(e){this.storage=e||So()};S$.prototype.init=function(){return this.storage?kD.resolve():kD.reject(Error("localStorage is not available"))},S$.prototype.isInitialized=function(){return!0},S$.prototype.setItem=function(e,t){return new kD(k2.bind(function(r,n){try{this.storage.setItem(e,Sb(t))}catch(e){n(e)}r()},this))},S$.prototype.getItem=function(e){return new kD(k2.bind(function(t,r){var n;try{n=Sw(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},S$.prototype.removeItem=function(e){return new kD(k2.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var SW=k8("batch"),SV=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new S$,this.lock=new SH(e,{storage:t.sharedLockStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||k2.bind(SW.error,SW),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=Sl(k2.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=k2.bind(function(e){return this._enqueuePersisted([e])},this)};SV.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?kD.resolve():this.queueStorage.init().then(k2.bind(function(){this.initialized=!0},this)).catch(k2.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},SV.prototype.enqueue=function(e,t){var r={id:Sh(),flushAfter:new Date().getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),kD.resolve(!0))},SV.prototype._enqueuePersisted=function(e){var t=k2.bind(function(){return this.ensureInit().then(k2.bind(function(){return this.readFromStorage()},this)).then(k2.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(k2.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(k2.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(k2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},SV.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(k2.bind(function(){return this.readFromStorage()},this)).then(k2.bind(function(r){if(r.length){var n={};k2.each(t,function(e){n[e["id"]]=!0});for(var i=0;i<r.length;i++){var o=r[i];if(new Date().getTime()>o["flushAfter"]&&!n[o["id"]]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):kD.resolve(t)};var SY=function(e,t){var r=[];return k2.each(e,function(e){e["id"]&&!t[e["id"]]&&r.push(e)}),r};SV.prototype.removeItemsByID=function(e){var t={};if(k2.each(e,function(e){t[e]=!0}),this.memQueue=SY(this.memQueue,t),!this.usePersistence)return kD.resolve(!0);var r=k2.bind(function(){return this.ensureInit().then(k2.bind(function(){return this.readFromStorage()},this)).then(k2.bind(function(e){return e=SY(e,t),this.saveToStorage(e)},this)).then(k2.bind(function(){return this.readFromStorage()},this)).then(k2.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n["id"]&&t[n["id"]])throw Error("Item not removed from storage")}return!0},this)).catch(k2.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(k2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!St(this.lock.storage,!0)&&r().then(k2.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(k2.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))};var SX=function(e,t){var r=[];return k2.each(e,function(e){var n=e["id"];if(n in t){var i=t[n];null!==i&&(e["payload"]=i,r.push(e))}else r.push(e)}),r};SV.prototype.updatePayloads=function(e){return(this.memQueue=SX(this.memQueue,e),this.usePersistence)?this.lock.withLock(k2.bind(function(){return this.ensureInit().then(k2.bind(function(){return this.readFromStorage()},this)).then(k2.bind(function(t){return t=SX(t,e),this.saveToStorage(t)},this)).catch(k2.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(k2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):kD.resolve(!0)},SV.prototype.readFromStorage=function(){return this.ensureInit().then(k2.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(k2.bind(function(e){return e&&!k2.isArray(e)&&(this.reportError("Invalid storage entry:",e),e=null),e||[]},this)).catch(k2.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},SV.prototype.saveToStorage=function(e){return this.ensureInit().then(k2.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(k2.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},SV.prototype.clear=function(){return(this.memQueue=[],this.usePersistence)?this.ensureInit().then(k2.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):kD.resolve()};var SJ=6e5,SG=k8("batch"),SK=function(e,t){this.errorReporter=t.errorReporter,this.queue=new SV(e,{errorReporter:k2.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig["batch_size"],this.flushInterval=this.libConfig["batch_flush_interval_ms"],this.stopped=!this.libConfig["batch_autostart"],this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};SK.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},SK.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},SK.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},SK.prototype.clear=function(){return this.queue.clear()},SK.prototype.resetBatchSize=function(){this.batchSize=this.libConfig["batch_size"]},SK.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig["batch_flush_interval_ms"])},SK.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(k2.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},SK.prototype.sendRequestPromise=function(e,t){return new kD(k2.bind(function(r){this.sendRequest(e,t,r)},this))},SK.prototype.flush=function(e){if(this.requestInProgress)return SG.log("Flush: Request already in progress"),kD.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig["batch_request_timeout_ms"],r=new Date().getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(k2.bind(function(i){var o=i.length===n,s=[],a={};if(k2.each(i,function(e){var t=e["payload"];if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t["event"]&&t["properties"]&&(t["properties"]=k2.extend({},t["properties"],{mp_sent_by_lib_version:c4.LIB_VERSION}));var r=!0,n=e["id"];n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e["id"]]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),kD.resolve();var c=k2.bind(function(){return this.queue.removeItemsByID(k2.map(i,function(e){return e["id"]})).then(k2.bind(function(e){return(k2.each(i,k2.bind(function(e){var t=e["id"];t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e)?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o)?(this.resetFlush(),kD.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),kD.resolve())},this))},this),u=k2.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(k2.isObject(o)&&"timeout"===o.error&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(k2.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!Sm()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(SJ,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),kD.resolve()}else{if(!k2.isObject(o)||413!==o.httpStatusCode)return c();if(!(i.length>1))return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c();var u=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),kD.resolve()}}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),SG.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(k2.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},SK.prototype.reportError=function(e,t){if(SG.error.apply(SG.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){SG.error(e)}};var SZ=function(e){var t=Date.now();return!e||t>e["maxExpires"]||t>e["idleExpires"]},SQ=250,S0=function(e,t){if(!k2.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(r){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},S1="change",S2="click",S4="hashchange",S5="input",S8="load",S6="mp_locationchange",S3="popstate",S7="scrollend",S9="scroll",Ce="select",Ct="submit",Cr="toggle",Cn="visibilitychange",Ci=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Co=["mp-include"],Cs=["mp-no-track"],Ca=Cs.concat(["mp-sensitive"]),Cc=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Cu={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},Cl={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},Ch={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Cd=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Cf=5,Cp=k8("autocapture");function Cg(e){for(var t={},r=Cm(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function Cm(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Cv(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!CS(e))return e}function Cy(e,t,r,n,i,o){var s={$classes:Cm(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s["$id"]=a),CM(e,t,i,o)&&k2.each(Cc.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);CR(n)&&(s["$attr-"+t]=n)}});var c=1,u=1,l=e;while(l=Cv(l))c++,l.tagName===e.tagName&&u++;return s["$nth_child"]=c,s["$nth_of_type"]=u,s}function Cb(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};k2.each(i,function(e){l[e]=!0});var h=null,d=void 0===e.target?e.srcElement:e.target;if(CE(d)&&(d=d.parentNode),CT(d,e)&&C_(d,e,r,n)&&!Ck(d,e,o,s)){var f=[d],p=d;while(p.parentNode&&!CC(p,"body"))f.push(p.parentNode),p=p.parentNode;var g=[],m,v=!1;if(k2.each(f,function(t){var i=CM(t,e,r,n);l["href"]||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&CR(m)&&m),Ck(t,e,o,s)&&(v=!0),g.push(Cy(t,e,l,c,r,n))},this),!v){var y=kV["documentElement"];if(h={$event_type:e.type,$host:c1.location.host,$pathname:c1.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y["clientHeight"],c1["innerHeight"]||0),$viewportWidth:Math.max(y["clientWidth"],c1["innerWidth"]||0),$pageHeight:kV["body"]["offsetHeight"]||0,$pageWidth:kV["body"]["offsetWidth"]||0},k2.each(c,function(e){if(!l[e]&&d.hasAttribute(e)){var t=d.getAttribute(e);CR(t)&&(h["$el_attr__"+e]=t)}}),a&&(b=Cw(d,e,r,n))&&b.length&&(h["$el_text"]=b),e.type===S2&&(k2.each(Ci,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h["$captured_for_heatmap"]=!0),d=Cx(e)),a){var b=Cw(d,e,r,n);b&&b.length&&(h["$el_text"]=b)}if(d){if(!C_(d,e,r,n)||Ck(d,e,o,s))return null;var w=Cy(d,e,l,c,r,n);h["$target"]=w,h["$el_classes"]=w["$classes"],k2.extend(h,k2.strip_empty_properties({$el_id:w["$id"],$el_tag_name:w["$tag_name"]}))}}}return h}function Cw(e,t,r,n){var i="";return CM(e,t,r,n)&&e.childNodes&&e.childNodes.length&&k2.each(e.childNodes,function(e){CE(e)&&e.textContent&&(i+=k2.trim(e.textContent).split(/(\s+)/).filter(CR).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),k2.trim(i)}function Cx(e){for(var t=e.target,r=e["composedPath"](),n=0;n<r.length;n++){var i=r[n];if(CC(i,"a")||CC(i,"button")||CC(i,"input")||CC(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}function C_(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return Cp.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(e){Cp.critical("Error while checking selector: "+o,e)}}return!1}function Ck(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(e){return Cp.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(e){Cp.critical("Error while checking selector: "+o,e)}}var s=Cg(e);for(i=0;i<Cs.length;i++)if(s[Cs[i]])return!0;return!1}function CS(e){return e&&1===e.nodeType}function CC(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function CE(e){return e&&3===e.nodeType}function CO(){try{var e=kV.createElement("div");return!!e["matches"]}catch(e){return!1}}function CI(){return"u">typeof WeakSet}function CT(e,t){if(!e||CC(e,"html")||!CS(e))return!1;var r=e.tagName.toLowerCase();switch(r){case"form":return t.type===Ct;case"input":if(-1===["button","submit"].indexOf(e.getAttribute("type")))return t.type===S1;return t.type===S2;case"select":case"textarea":return t.type===S1;default:return t.type===S2}}function CA(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"==typeof t){var r=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(r.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function CM(e,t,r,n){var i;if(!C_(e,t,r,n))return!1;for(var o=e;o.parentNode&&!CC(o,"body");o=o.parentNode){var s=Cg(o);for(i=0;i<Ca.length;i++)if(s[Ca[i]])return!1}var a=Cg(e);for(i=0;i<Co.length;i++)if(a[Co[i]])return!0;if(CC(e,"input")||CC(e,"select")||CC(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}return!CA(e)}function CR(e){if(null===e||k2.isUndefined(e))return!1;if("string"==typeof e){e=k2.trim(e);var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var r=/(^\d{3}-?\d{2}-?\d{4}$)/;if(r.test(e))return!1}return!0}function CP(e){var t="onscrollend"in c1,r=k6(e),n=S7;if(!t){var i=null,o=100;r=k6(function(){clearTimeout(i),i=setTimeout(e,o)}),n=S9}return{listener:r,eventType:n}}function CL(e){for(var t=0;t<Cd.length;t++)if(e.hasAttribute(Cd[t]))return!0;return!1}function CD(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return Cu[r]}function CN(e){var t=e.tagName.toLowerCase();return!!("button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||CL(e)||CD(e)||"a"===t&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function CB(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(Cl[t])return!0;if(CN(e))return!1;var r=e.parentElement,n=0;while(r&&n<Cf){if(CN(r))return!1;if(r.getRootNode&&r.getRootNode()!==kV){var i=r.getRootNode();if(i.host&&CN(i.host))return!1}r=r.parentElement,n++}return!!Ch[t]}function CF(e){return"composedPath"in e?e["composedPath"]():[]}function Cj(e){var t=CF(e);return t&&t.length>0?t[0]:e["target"]||e["srcElement"]}var CU=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",Cz="data-rr-is-password",Cq=["password","email","tel","hidden"];function CH(e){return e?Array.isArray(e)?e:[e]:[]}function C$(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=CH(r).join(","),t.input.unmaskingSelector=CH(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=CH(o);if(c)if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=CH(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}function CW(e,t){return!!t&&!!e.closest(t)}function CV(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==Cq.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!!(n&&""!==n&&"off"!==n||e.hasAttribute(Cz)||CA(e))||(t.input.maskAll?!CW(e,t.input.unmaskingSelector):!!(CW(e,t.input.maskingSelector)||CW(e,CU)))}function CY(e,t){return!!e&&(!!(t.text._legacyClassRegex&&b$(e,t.text._legacyClassRegex))||(t.text.maskAll?!CW(e,t.text.unmaskingSelector):!!(CW(e,t.text.maskingSelector)||CW(e,CU))))}var CX=k8("network-plugin");function CJ(e){return Math.round(Date.now()-e.performance.now())}var CG={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function CK(e){return"navigation"===e.entryType}function CZ(e){return"resource"===e.entryType}function CQ(e,t){for(var r=e.length,n=r-1;n>=0;n-=1)if(t(e[n]))return e[n]}function C0(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}var C1=1048576;function C2(e){return e&&"string"==typeof e&&e.length>C1?(CX.error("Body truncated from "+e.length+" to "+C1+" characters"),e.substring(0,C1)+"... [truncated]"):e}function C4(e,t,r){if(!t.PerformanceObserver)return CX.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return CK(e)||CZ(e)&&r.initiatorTypes.includes(e.initiatorType)});e({requests:n.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:CJ(t)}}),isInitial:!0})}var i=new t.PerformanceObserver(function(n){var i=n.getEntries().filter(function(e){return CZ(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType});e({requests:i.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:CJ(t)}})})});return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}function C5(e,t,r){return!!t[e]&&0!==t[e].length&&t[e].includes(r.toLowerCase())}function C8(e,t,r){return!!t[e]&&0!==t[e].length&&Sy(r,t[e])}function C6(e){if(null==e)return null;var t;if("string"==typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=k2.HTTPBuildQuery(e);else if(!k2.isObject(e))return"Cannot read body of type "+typeof e;else try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}return C2(t)}function C3(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(C2(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}})}function C7(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return CX.error("Cannot find performance entry"),Promise.resolve(null);var s=e.performance.getEntriesByName(r),a=CQ(s,function(e){return CZ(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return a?Promise.resolve(a):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return C7(e,t,r,n,i,o+1)})}function C9(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=C0(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,c){void 0===s&&(s=!0);var u=this,l=new Request(o,{method:i}),h={},d,f,p={},g=u.setRequestHeader.bind(u);u.setRequestHeader=function(e,t){return C5("request",r.recordHeaders,e)&&(p[e]=t),g(e,t)},h.requestHeaders=p;var m=u.send.bind(u);u.send=function(e){return C8("request",r.recordBodyUrls,l.url)&&(h.requestBody=C6(e)),d=t.performance.now(),m(e)},u.addEventListener("readystatechange",function(){if(u.readyState===u.DONE){f=t.performance.now();var n={},i=u.getAllResponseHeaders();if(i){var o=i.trim().split(/[\r\n]+/);o.forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&C5("response",r.recordHeaders,i)&&(n[i]=o)}}})}h.responseHeaders=n,C8("response",r.recordBodyUrls,l.url)&&(h.responseBody=C6(u.response)),C7(t,"xmlhttprequest",l.url,d,f).then(function(r){if(!r)return void CX.error("Failed to get performance entry for XHR request to "+l.url);var n={url:r.name,method:l.method,initiatorType:r.initiatorType,status:u.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:CJ(t),requestHeaders:h.requestHeaders,requestBody:h.requestBody,responseHeaders:h.responseHeaders,responseBody:h.responseBody};e({requests:[n]})}).catch(function(e){CX.error("Error recording XHR request to "+l.url+": "+String(e))})}}),n.call(u,i,o,s,a,c)}});return function(){n()}}function Ee(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=C0(t,"fetch",function(n){return function(){var i=new Request(arguments[0],arguments[1]),o,s={},a,c,u,l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var d={};i.headers.forEach(function(e,t){C5("request",r.recordHeaders,t)&&(d[t]=e)}),s.requestHeaders=d,C8("request",r.recordBodyUrls,i.url)&&(l=C3(i).then(function(e){s.requestBody=e})),a=t.performance.now(),u=n.apply(t,arguments).then(function(e){o=e,c=t.performance.now();var n={};return o.headers.forEach(function(e,t){C5("response",r.recordHeaders,t)&&(n[t]=e)}),s.responseHeaders=n,C8("response",r.recordBodyUrls,i.url)&&(h=C3(o).then(function(e){s.responseBody=e})),o})}catch(e){u=Promise.reject(e)}return Promise.all([l,h,u]).then(function(){return C7(t,"fetch",i.url,a,c)}).then(function(r){if(!r)return void CX.error("Failed to get performance entry for fetch request to "+i.url);var n={url:r.name,method:i.method,initiatorType:r.initiatorType,status:o?o.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:CJ(t),requestHeaders:s.requestHeaders,requestBody:s.requestBody,responseHeaders:s.responseHeaders,responseBody:s.responseBody};e({requests:[n]})}).catch(function(e){CX.error("Error recording fetch request to "+i.url+": "+String(e))}),u}});return function(){n()}}function Et(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},CG.recordHeaders,r.recordHeaders||{}),i=Object.assign({},CG.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},CG,r),s=function(t){var r=t.requests.filter(function(e){var t=Sy(e.url,o.ignoreRequestUrls||[]);return!t&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=C4(s,t,o),c=C9(s,t,o),u=Ee(s,t,o);return function(){a(),c(),u()}}var Er="rrweb/network@1.mp",En=function(e){return{name:Er,observer:Et,options:e}},Ei=k8("recorder"),Eo=c1["CompressionStream"],Es={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Ea=new Set([ys.MouseMove,ys.MouseInteraction,ys.Scroll,ys.ViewportResize,ys.Input,ys.TouchMove,ys.MediaInteraction,ys.Drag,ys.Selection]);function Ec(e){return e.type===yo.IncrementalSnapshot&&Ea.has(e.data.source)}var Eu=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Sv,this._onMaxLengthReached=e.onMaxLengthReached||Sv,this._onBatchSent=e.onBatchSent||Sv,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=kN,this.recordMinMs=0,this._recordMinMsCheckStart=null;var t=St(e.sharedLockStorage||So(),!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new S_(Sk,SS,SE),this.batcher=new SK(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Es,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:SQ,sharedLockTimeoutMS:1e4})};Eu.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e["$device_id"]=t);var r=this._mixpanel.get_property("$user_id");return r&&(e["$user_id"]=r),e},Eu.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch((function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}).bind(this)).then((function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))}).bind(this))},Eu.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Eu.prototype.get_config=function(e){return this.getConfig(e)},Eu.prototype.startRecording=function(e){if(null===this._rrwebRecord)return void this.reportError("rrweb record function not provided. ");if(null!==this._stopRecording)return void Ei.log("Recording already in progress, skipping startRecording.");this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>kN&&(this.recordMaxMs=kN,Ei.critical("record_max_ms cannot be greater than "+kN+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=k2.info.currentUrl(),this.replayStartUrl=k2.info.currentUrl()),e||this.recordMinMs>0?(this.batcher.stop(),this._recordMinMsCheckStart=null):this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}).bind(this);t();var r=this.getConfig("record_block_selector");(""===r||null===r)&&(r=void 0);var n=C$(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push(En(o))}this.getConfig("record_console")&&i.push(kv({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=S0(this.getConfig("record_allowed_iframe_origins"),Ei);try{this._stopRecording=this._rrwebRecord({emit:(function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(null===this._recordMinMsCheckStart&&(this._recordMinMsCheckStart=e.timestamp),Ec(e)&&(this.batcher.stopped&&e.timestamp-this._recordMinMsCheckStart>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(CV,n),maskTextFn:this._getMaskFn(CY,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var c=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),c)},Eu.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Eu.prototype.isRrwebStopped=function(){return null===this._stopRecording},Eu.prototype.flushEventsWithOptOut=function(e,t,r){var n=(function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,r,n)},Eu.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},Eu.deserialize=function(e,t){var r=new Eu(k2.extend({},t,{replayId:e["replayId"],batchStartUrl:e["batchStartUrl"],replayStartUrl:e["replayStartUrl"],idleExpires:e["idleExpires"],maxExpires:e["maxExpires"],replayStartTime:e["replayStartTime"],lastEventTimestamp:e["lastEventTimestamp"],seqNo:e["seqNo"],sharedLockStorage:t.sharedLockStorage}));return r},Eu.prototype._getApiRoute=function(){return this.getConfig("api_routes")["record"]},Eu.prototype._sendRequest=function(e,t,r,n){var i=(function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=k2.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}).bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");c1["fetch"](o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},Eu.prototype._flushEvents=SR(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,c=0;c<n;c++)o=Math.min(o,e[c].timestamp),s=Math.max(s,e[c].timestamp),e[c].type===yo.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a){r({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var u=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:c4.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),Sx(kJ,kW.vendor,kY)){var d=new Blob([h],{type:"application/json"}).stream(),f=d.pipeThrough(new Eo("gzip"));new Response(f).blob().then((function(e){l["format"]="gzip",this._sendRequest(i,l,e,r)}).bind(this))}else l["format"]="body",this._sendRequest(i,l,h,r)}}),Eu.prototype.reportError=function(e,t){Ei.error.apply(Ei.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){Ei.error(e)}},Eu.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Eu.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>kB?(Ei.critical("record_min_ms cannot be greater than "+kB+"ms. Capping value."),kB):e},Eu.prototype._getMaskFn=function(e,t){return(function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(!i)return r;var o=Math.min(r.length,1e4);return"*".repeat(o)}).bind(this)};var El=function(e){this.idb=new S_(Sk,SC,SE),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};El.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},El.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},El.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return kD.resolve();var t=e["tabId"];return t?this.idb.init().then((function(){return this.idb.setItem(t,e)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),kD.resolve())},El.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return SZ(e)?null:e}).bind(this)).catch(this.handleError.bind(this)):kD.resolve(null)},El.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},El.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(e){if(e)return e["maxExpires"]=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))},El.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):kD.resolve()},El.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(e){return SZ(e)}).map((function(e){var t=Eu.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return t.unloadPersistedData().then((function(){return this.idb.removeItem(e["tabId"])}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return kD.all(t)}).bind(this)).catch(this.handleError.bind(this)):kD.resolve([])};var Eh=k8("recorder"),Ed=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||bb,this.sharedLockStorage=r,this.recordingRegistry=new El({mixpanelInstance:this.mixpanelInstance,errorReporter:Eh.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function Ef(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}Ed.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped())return void Eh.log("Recording already in progress, skipping startRecording.");var t=(function(){Eh.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),r=(function(){Eh.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),n=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this["__flushPromise"]=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:k2.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Eu.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Eu(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Ed.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then((function(){return this.recordingRegistry.clearActiveRecording()}).bind(this)).then((function(){this.stopRecordingInProgress=!1}).bind(this))},Ed.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Ed.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return kD.resolve()},Ed.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),kD.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Eh.log("No resumable recording found."),null)}).bind(this))},Ed.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Ed.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},Ed.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(Ed.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),c1[c8]=Ed;var Ep={exports:{}},Eg;function Em(){return Eg||(Eg=1,function(e,t){(function(t,r){e.exports=r()})(0,function(){function e(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var t={},r={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!!t&&void 0!==t.indexOf&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++)if(null==n||void 0===(n=n[i[o]]))return r;return n},missing:function(){for(var e=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=t.apply({var:i},this);(null===o||""===o)&&e.push(i)}return e},missing_some:function(e,r){var n=t.apply({missing:r},this);return r.length-n.length>=e?[]:n}};return t.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},t.truthy=function(e){return(!Array.isArray(e)||0!==e.length)&&!!e},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,n){if(Array.isArray(e))return e.map(function(e){return t.apply(e,n)});if(!t.is_logic(e))return e;var i=t.get_operator(e),o=e[i],s,a,c,u,l;if(Array.isArray(o)||(o=[o]),"if"===i||"?:"==i){for(s=0;s<o.length-1;s+=2)if(t.truthy(t.apply(o[s],n)))return t.apply(o[s+1],n);return o.length===s+1?t.apply(o[s],n):null}if("and"===i){for(s=0;s<o.length&&(a=t.apply(o[s],n),t.truthy(a));s+=1);return a}if("or"===i){for(s=0;s<o.length&&(a=t.apply(o[s],n),!t.truthy(a));s+=1);return a}if("filter"===i)return(u=t.apply(o[0],n),c=o[1],Array.isArray(u))?u.filter(function(e){return t.truthy(t.apply(c,e))}):[];if("map"===i)return(u=t.apply(o[0],n),c=o[1],Array.isArray(u))?u.map(function(e){return t.apply(c,e)}):[];else if("reduce"===i)return(u=t.apply(o[0],n),c=o[1],l=void 0!==o[2]?t.apply(o[2],n):null,Array.isArray(u))?u.reduce(function(e,r){return t.apply(c,{current:r,accumulator:e})},l):l;else if("all"===i){if(u=t.apply(o[0],n),c=o[1],!Array.isArray(u)||!u.length)return!1;for(s=0;s<u.length;s+=1)if(!t.truthy(t.apply(c,u[s])))return!1;return!0}else if("none"===i){if(u=t.apply(o[0],n),c=o[1],!Array.isArray(u)||!u.length)return!0;for(s=0;s<u.length;s+=1)if(t.truthy(t.apply(c,u[s])))return!1;return!0}else if("some"===i){if(u=t.apply(o[0],n),c=o[1],!Array.isArray(u)||!u.length)return!1;for(s=0;s<u.length;s+=1)if(t.truthy(t.apply(c,u[s])))return!0;return!1}if(o=o.map(function(e){return t.apply(e,n)}),r.hasOwnProperty(i)&&"function"==typeof r[i])return r[i].apply(n,o);if(i.indexOf(".")>0){var h=String(i).split("."),d=r;for(s=0;s<h.length;s++){if(!d.hasOwnProperty(h[s]))throw Error("Unrecognized operation "+i+" (failed at "+h.slice(0,s+1).join(".")+")");d=d[h[s]]}return d.apply(n,o)}throw Error("Unrecognized operation "+i)},t.uses_data=function(r){var n=[];if(t.is_logic(r)){var i=t.get_operator(r),o=r[i];Array.isArray(o)||(o=[o]),"var"===i?n.push(o[0]):o.forEach(function(e){n.push.apply(n,t.uses_data(e))})}return e(n)},t.add_operation=function(e,t){r[e]=t},t.rm_operation=function(e){delete r[e]},t.rule_like=function(e,r){if(r===e||"@"===r)return!0;if("number"===r)return"number"==typeof e;if("string"===r)return"string"==typeof e;if("array"===r)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(r)){if(t.is_logic(e)){var n=t.get_operator(r),i=t.get_operator(e);if("@"===n||n===i)return t.rule_like(t.get_values(e,!1),t.get_values(r,!1))}return!1}if(Array.isArray(r)&&Array.isArray(e)){if(r.length!==e.length)return!1;for(var o=0;o<r.length;o+=1)if(!t.rule_like(e[o],r[o]))return!1;return!0}return!1},t})}(Ep)),Ep.exports}Ep.exports;var Ev=Em(),Ey=Ef(Ev),Eb=function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!k2.isEmptyObject(n))try{i=Ey.apply(n,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}},Ew={};Ew["eventMatchesCriteria"]=Eb,c1[c5]=Promise.resolve(Ew);var Ex=30,E_=1e3,Ek=4,ES=!1;function EC(){this.clicks=[]}function EE(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}EC.prototype.isRageClick=function(e,t){t=t||{};var r=t["threshold_px"]||Ex,n=t["timeout_ms"]||E_,i=t["click_count"]||Ek,o=t["interactive_elements_only"]||ES;if(o){var s=Cj(e);if(!s||CB(s))return!1}var a=Date.now(),c=e["pageX"],u=e["pageY"],l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<n&&Math.sqrt(Math.pow(c-l.x,2)+Math.pow(u-l.y,2))<r){if(this.clicks.push({x:c,y:u,timestamp:a}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:c,y:u,timestamp:a}];return!1},EE.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return Cj(e)},EE.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=CF(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},EE.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){Cp.critical("Error while observing shadow root",e)}}},EE.prototype.start=function(){if(!this.observedShadowRoots){if(!CI())return void Cp.critical("Shadow DOM observation unavailable: WeakSet not supported");this.observedShadowRoots=new WeakSet}},EE.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){Cp.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var EO=500,EI=[S1,S5,Ct,Ce,Cr],ET=[S7],EA=[S4],EM={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function ER(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}ER.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e["target"]||e["srcElement"]),!(!t||CB(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},ER.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},ER.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e["timeout_ms"],r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},ER.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},ER.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},ER.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},ER.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e["timeout_ms"],r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)},ER.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;EI.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),EA.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),ET.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,EM)}catch(e){Cp.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new EE(function(){e.recordChangeEvent()},EM),this.shadowDOMObserver.start()}catch(e){Cp.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},ER.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){Cp.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){Cp.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){Cp.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var EP="autocapture",EL="track_pageview",ED="full-url",EN="url-with-path-and-query-string",EB="url-with-path",EF="allow_element_callback",Ej="allow_selectors",EU="allow_url_regexes",Ez="block_attrs",Eq="block_element_callback",EH="block_selectors",E$="block_url_regexes",EW="capture_extra_attrs",EV="capture_text_content",EY="scroll_capture_all",EX="scroll_depth_percent_checkpoints",EJ="click",EG="dead_click",EK="input",EZ="pageview",EQ="rage_click",E0="scroll",E1="page_leave",E2="submit",E4={};E4[Ej]=[],E4[EU]=[],E4[Ez]=[],E4[Eq]=null,E4[EH]=[],E4[E$]=[],E4[EW]=[],E4[EV]=!1,E4[EY]=!1,E4[EX]=[25,50,75,100],E4[EJ]=!0,E4[EG]=!0,E4[EK]=!0,E4[EZ]=ED,E4[EQ]=!0,E4[E0]=!0,E4[E1]=!1,E4[E2]=!0;var E5={$mp_autocapture:!0},E8="$mp_click",E6="$mp_dead_click",E3="$mp_input_change",E7="$mp_rage_click",E9="$mp_scroll",Oe="$mp_submit",Ot="$mp_page_leave",Or=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};Or.prototype.init=function(){CO()?(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()):Cp.critical("Autocapture unavailable: missing required DOM APIs")},Or.prototype.getFullConfig=function(){var e=this.mp.get_config(EP);return e?k2.isObject(e)?k2.extend({},E4,e):E4:{}},Or.prototype.getConfig=function(e){return this.getFullConfig()[e]},Or.prototype.currentUrlBlocked=function(){var e=k2.info.currentUrl(),t=this.getConfig(EU)||[];if(t.length)try{return!Sy(e,t)}catch(e){return Cp.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(E$)||[];if(!r||!r.length)return!1;try{return Sy(e,r)}catch(e){return Cp.critical("Error while checking block URL regexes: ",e),!0}},Or.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(EP)?this.getConfig(EZ):this.mp.get_config(EL)},Or.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===E8&&!this.getConfig(EJ)||t===E7&&!this._getClickTrackingConfig(EQ)||t===E6&&!this._getClickTrackingConfig(EG)),n=Cb(e,{allowElementCallback:this.getConfig(EF),allowSelectors:this.getConfig(Ej),blockAttrs:this.getConfig(Ez),blockElementCallback:this.getConfig(Eq),blockSelectors:this.getConfig(EH),captureExtraAttrs:this.getConfig(EW),captureTextContent:this.getConfig(EV),capturedForHeatMap:r});n&&(k2.extend(n,E5),this.mp.track(t,n))}},Or.prototype.initPageListeners=function(){if(c1.removeEventListener(S3,this.listenerPopstate),c1.removeEventListener(S4,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(E1)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){c1.dispatchEvent(new Event(S6))},this.listenerHashchange=function(){c1.dispatchEvent(new Event(S6))},c1.addEventListener(S3,this.listenerPopstate),c1.addEventListener(S4,this.listenerHashchange);var e=c1.history.pushState;"function"==typeof e&&(c1.history.pushState=function(t,r,n){e.call(c1.history,t,r,n),c1.dispatchEvent(new Event(S6))});var t=c1.history.replaceState;"function"==typeof t&&(c1.history.replaceState=function(e,r,n){t.call(c1.history,e,r,n),c1.dispatchEvent(new Event(S6))})}},Or.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},Or.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(E1)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(kV.documentElement.clientHeight,c1.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=k2.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||k2.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(kV.documentElement.clientWidth,c1.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},E5);this.mp.track(Ot,s,{transport:"sendBeacon"})}},Or.prototype._initScrollDepthTracking=function(){if(c1.removeEventListener(S9,this.listenerScrollDepth),c1.removeEventListener(S7,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){Cp.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(kV.documentElement.clientHeight,c1.innerHeight||0);var e=(function(){if(!this.currentUrlBlocked()){var e=Math.max(kV.documentElement.clientHeight,c1.innerHeight||0)+c1.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=kV.body.scrollHeight}}).bind(this),t=CP(e);this.listenerScrollDepth=t.listener,c1.addEventListener(t.eventType,this.listenerScrollDepth)}},Or.prototype.initClickTracking=function(){c1.removeEventListener(S2,this.listenerClick,!0),(this.getConfig(EJ)||this.mp.get_config("record_heatmap_data"))&&(Cp.log("Initializing click tracking"),this.listenerClick=(function(e){(this.getConfig(EJ)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,E8)}).bind(this),c1.addEventListener(S2,this.listenerClick,!0))},Or.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(EG);e||this.mp.get_config("record_heatmap_data")?(Cp.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new ER((function(e){this.trackDomEvent(e,E6)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(e){var t=this._getClickTrackingConfig(EG);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r["timeout_ms"]||(r["timeout_ms"]=EO),this._deadClickTracker.trackClick(e,r)}}).bind(this),c1.addEventListener(S2,this.listenerDeadClick,!0))):this.stopDeadClickTracking()},Or.prototype.initInputTracking=function(){c1.removeEventListener(S1,this.listenerChange,!0),this.getConfig(EK)&&(Cp.log("Initializing input tracking"),this.listenerChange=(function(e){this.getConfig(EK)&&this.trackDomEvent(e,E3)}).bind(this),c1.addEventListener(S1,this.listenerChange,!0))},Or.prototype.initPageviewTracking=function(){if(c1.removeEventListener(S6,this.listenerLocationchange),this.pageviewTrackingConfig()||this.mp.get_config("record_heatmap_data")){Cp.log("Initializing pageview tracking");var e="",t=!1;(this.pageviewTrackingConfig()||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&(t=this.mp.track_pageview(E5)),t&&(e=k2.info.currentUrl()),this.listenerLocationchange=k6((function(){if(!this.currentUrlBlocked()){var t=k2.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(!i&&this.mp.is_recording_heatmap_data()&&(i=ED),i===ED?r=t!==e:i===EN?r=t.split("#")[0]!==e.split("#")[0]:i===EB&&(r=n),r){var o=this.mp.track_pageview(E5);o&&(e=t),n&&(this.lastScrollCheckpoint=0,Cp.log("Path change: re-initializing scroll depth checkpoints"))}}}).bind(this)),c1.addEventListener(S6,this.listenerLocationchange)}},Or.prototype.initRageClickTracking=function(){c1.removeEventListener(S2,this.listenerRageClick,!0);var e=this._getClickTrackingConfig(EQ);(e||this.mp.get_config("record_heatmap_data"))&&(Cp.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new EC),this.listenerRageClick=(function(e){var t=this._getClickTrackingConfig(EQ);(t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,E7)}).bind(this),c1.addEventListener(S2,this.listenerRageClick,!0))},Or.prototype.initScrollTracking=function(){if(c1.removeEventListener(S7,this.listenerScroll),c1.removeEventListener(S9,this.listenerScroll),this.getConfig(E0)){Cp.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=(function(){if(this.getConfig(E0)&&!this.currentUrlBlocked()){var e=this.getConfig(EY),t=(this.getConfig(EX)||[]).slice().sort(function(e,t){return e-t}),r=c1.scrollY,n=k2.extend({$scroll_top:r},E5);try{var i=kV.body.scrollHeight,o=Math.round(r/(i-c1.innerHeight)*100);if(n["$scroll_height"]=i,n["$scroll_percentage"]=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n["$scroll_checkpoint"]=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){Cp.critical("Error while calculating scroll percentage",e)}e&&this.mp.track(E9,n)}}).bind(this),t=CP(e);this.listenerScroll=t.listener,c1.addEventListener(t.eventType,this.listenerScroll)}},Or.prototype.initSubmitTracking=function(){c1.removeEventListener(Ct,this.listenerSubmit,!0),this.getConfig(E2)&&(Cp.log("Initializing submit tracking"),this.listenerSubmit=(function(e){this.getConfig(E2)&&this.trackDomEvent(e,Oe)}).bind(this),c1.addEventListener(Ct,this.listenerSubmit,!0))},Or.prototype.initPageLeaveTracking=function(){if(kV.removeEventListener(Cn,this.listenerPageLeaveVisibilitychange),c1.removeEventListener(S6,this.listenerPageLeaveLocationchange),c1.removeEventListener(S8,this.listenerPageLoad),this.getConfig(E1)||this.mp.get_config("record_heatmap_data")){Cp.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=k2.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=kV.body.scrollHeight}).bind(this),c1.addEventListener(S8,this.listenerPageLoad),this.listenerPageLeaveLocationchange=k6((function(t){if(!this.currentUrlBlocked()){var r=k2.info.currentUrl(),n=r!==e;n&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(kV.documentElement.clientHeight,c1.innerHeight||0),this.previousScrollHeight=kV.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),c1.addEventListener(S6,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){kV.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}).bind(this),kV.addEventListener(Cn,this.listenerPageLeaveVisibilitychange)}},Or.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(c1.removeEventListener(S2,this.listenerDeadClick,!0),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},k3(Or);var On=function(e,t){return c1[c5]&&"function"==typeof c1[c5].then||(c1[c5]=new Promise(function(r){e(t,r)}).then(function(){var e=c1[c5];if(e&&"function"==typeof e.then)return e;throw Error("targeting failed to load")}).catch(function(e){throw delete c1[c5],e})),c1[c5]},Oi=k8("flags"),Oo="mixpanelFlagsDb",Os="mixpanelFlags",Oa={version:1,storeNames:[Os]},Oc="persisted_variants_for_",Ou=864e5,Ol=Object.freeze({NETWORK_ONLY:"networkOnly",NETWORK_FIRST:"networkFirst",PERSISTENCE_UNTIL_NETWORK_SUCCESS:"persistenceUntilNetworkSuccess"}),Oh=[Ol.NETWORK_ONLY,Ol.NETWORK_FIRST,Ol.PERSISTENCE_UNTIL_NETWORK_SUCCESS],Od=function(e,t,r){this.idb=new S_(Oo,Os,Oa),this.persistenceConfig=e,this.persistedVariantsKey=Oc+t,this.isGloballyDisabled=r||function(){return!1}};Od.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?Ol.NETWORK_ONLY:this.persistenceConfig["variantLookupPolicy"]},Od.prototype.getTtlMs=function(){if(!this._isConfigValid())return Ou;var e=this.persistenceConfig["persistenceTtlMs"];return null==e?Ou:e},Od.prototype._isConfigValid=function(){var e=this.persistenceConfig;return!!e&&(-1===Oh.indexOf(e["variantLookupPolicy"])?(Oi.error("Invalid variantLookupPolicy:",e["variantLookupPolicy"]),!1):void 0===e["persistenceTtlMs"]||null===e["persistenceTtlMs"]||!(e["persistenceTtlMs"]<=0)||(Oi.error("If provided, persistenceTtlMs must be a positive number. Provided value:",e["persistenceTtlMs"]),!1))},Od.prototype.loadFlagsFromStorage=function(e){var t=k2.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===Ol.NETWORK_ONLY)return t();var r=this.getTtlMs();return this.idb.init().then(k2.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(k2.bind(function(n){if(!n)return Oi.log("No persisted variants found in IndexedDB"),null;if(r&&Date.now()-n["persistedAt"]>=r)return Oi.log("Persisted variants are expiring"),null;if(!e||n["distinctId"]!==e["distinct_id"])return Oi.log("Persisted variants found, but for a different distinct_id so clearing."),t();var i=new Map;return k2.each(n["flagVariants"],function(e,t){i.set(t,{key:e["variant_key"],value:e["variant_value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"],variant_source:"persistence",persisted_at_in_ms:n["persistedAt"],ttl_in_ms:r})}),Oi.log("Loaded",i.size,"variants from IndexedDB for distinct_id",n["distinctId"]),{flags:i,pendingFirstTimeEvents:n["pendingFirstTimeEvents"]||{},persistedAtMs:n["persistedAt"],ttlMs:r}},this)).catch(k2.bind(function(e){return Oi.error("Failed to load persisted variants from IndexedDB, so clearing",e),t()},this))},Od.prototype.save=function(e,t,r){if(this.getPolicy()===Ol.NETWORK_ONLY)return Promise.resolve();var n={};t.forEach(function(e,t){n[t]={variant_key:e["key"],variant_value:e["value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"]}});var i={persistedAt:Date.now(),distinctId:e&&e["distinct_id"],context:e,flagVariants:n,pendingFirstTimeEvents:r||{}};return this.idb.init().then(k2.bind(function(){return this.idb.setItem(this.persistedVariantsKey,i)},this)).then(function(){Oi.log("Saved",t.size,"variants to IndexedDB for distinct_id",i["distinctId"])}).catch(function(e){Oi.error("Failed to persist variants to IndexedDB:",e)})},Od.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(k2.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){Oi.log("Cleared persisted variants from IndexedDB")}).catch(function(e){Oi.error("Failed to clear persisted variants from IndexedDB:",e)})};var Of=k8("flags"),Op="flags",Og="context",Om="persistence",Ov={};Ov[Og]={};var Oy=function(e,t){return e+":"+t},Ob=function(e){return e.split(":")[0]},Ow=function(e){return k2.isObject(e)?k2.extend({},e,{variant_source:"fallback"}):{value:e,variant_source:"fallback"}},Ox=function(e){this.fetch=c1["fetch"],this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};function O_(e){return null!=e}Ox.prototype.init=function(){return this.minApisSupported()?(this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new Od(this.getConfig(Om),this.getMpConfig("token"),k2.bind(function(){return this.getMpConfig("disable_persistence")},this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(k2.bind(function(e){e&&(this.flags=e.flags,this.pendingFirstTimeEvents=e.pendingFirstTimeEvents,this._loadedPersistedAtMs=e.persistedAtMs,this._loadedTtlMs=e.ttlMs)},this)),this.persistenceLoadedPromise.then(k2.bind(function(){return this.fetchFlags()},this)).catch(function(){Of.error("Error initializing feature flags")})):void Of.critical("Feature Flags unavailable: missing minimum required APIs")},Ox.prototype._buildContext=function(){return k2.extend({distinct_id:this.getMpProperty("distinct_id"),device_id:this.getMpProperty("$device_id")},this.getConfig(Og))},Ox.prototype.reset=function(){return this.persistence?(this.flags=null,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this.trackedFeatures=new Set,this.fetchPromise=null,this._fetchInProgressStartTime=null,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence.clear().then(k2.bind(function(){return this.fetchFlags()},this)).catch(function(){Of.error("Error during flags reset")})):Promise.resolve()},Ox.prototype.getFullConfig=function(){var e=this.getMpConfig(Op);return e?k2.isObject(e)?k2.extend({},Ov,e):Ov:{}},Ox.prototype.getConfig=function(e){return this.getFullConfig()[e]},Ox.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Op)},Ox.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return Of.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(Op);k2.isObject(r)||(r={});var n=t&&t["replace"]?{}:this.getConfig(Og);r[Og]=k2.extend({},n,e);var i={};return i[Op]=r,this.setMpConfig(i),this.fetchFlags().catch(function(){Of.error("Error fetching flags during updateContext")})},Ox.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Of.error("Feature Flags not enabled"),!!this.flags},Ox.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this._buildContext(),t=e["distinct_id"],r=Sd();Of.log("Fetching flags for distinct ID: "+t);var n=new URLSearchParams;n.set("context",JSON.stringify(e)),n.set("token",this.getMpConfig("token")),n.set("mp_lib","web"),n.set("$lib_version",c4.LIB_VERSION);var i=this.getFullApiRoute()+"?"+n.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(c1,i,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then((function(e){return this.markFetchComplete(),e.json()}).bind(this)).then((function(t){var n=t["flags"];if(!n)throw Error("No flags in API response");var i=new Map,o={};k2.each(n,function(e,t){var r=!1,n=t+":";if(k2.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(n)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&i.set(t,o)}else i.set(t,{key:e["variant_key"],value:e["variant_value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"],variant_source:"network"})},this);var s=t["pending_first_time_events"];s&&s.length>0&&k2.each(s,function(e){var t=e["flag_key"],r=Oy(t,e["first_time_event_hash"]);this.activatedFirstTimeEvents[r]||(o[r]={flag_key:t,flag_id:e["flag_id"],project_id:e["project_id"],first_time_event_hash:e["first_time_event_hash"],event_name:e["event_name"],property_filters:e["property_filters"],pending_variant:e["pending_variant"]})},this),this.activatedFirstTimeEvents&&k2.each(this.activatedFirstTimeEvents,function(e,t){var r=Ob(t);e&&!i.has(r)&&this.flags&&this.flags.has(r)&&i.set(r,this.flags.get(r))},this),this.flags=i,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=o,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=r,this._loadTargetingIfNeeded(),this.persistence.save(e,this.flags,this.pendingFirstTimeEvents)}).bind(this)).catch((function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),Of.error(e),e}).bind(this)),this.fetchPromise},Ox.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(Of.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},Ox.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):Of.error("Fetch in progress started time not set, cannot mark fetch complete")},Ox.prototype._loadTargetingIfNeeded=function(){var e=!1;k2.each(this.pendingFirstTimeEvents,function(t){t["property_filters"]&&!k2.isEmptyObject(t["property_filters"])&&(e=!0)}),e&&this.getTargeting().then(function(){Of.log("targeting loaded for property filter evaluation")})},Ox.prototype.getTargeting=function(){return On(this.loadExtraBundle.bind(this),this.targetingSrc).catch((function(e){Of.error("Failed to load targeting: "+e)}).bind(this))},Ox.prototype.checkFirstTimeEvents=function(e,t){!this.pendingFirstTimeEvents||k2.isEmptyObject(this.pendingFirstTimeEvents)||(c1[c5]&&k2.isFunction(c1[c5].then)?c1[c5].then((function(r){this._processFirstTimeEventCheck(e,t,r)}).bind(this)).catch((function(){this._processFirstTimeEventCheck(e,t,null)}).bind(this)):this._processFirstTimeEventCheck(e,t,null))},Ox.prototype._processFirstTimeEventCheck=function(e,t,r){k2.each(this.pendingFirstTimeEvents,function(n,i){if(!this.activatedFirstTimeEvents[i]){var o=n["flag_key"],s;if(!r&&n["property_filters"]&&!k2.isEmptyObject(n["property_filters"]))return void Of.warn('Skipping event check for "'+o+'" - property filters require targeting library');if(r){var a={event_name:n["event_name"],property_filters:n["property_filters"]};s=r["eventMatchesCriteria"](e,t,a)}else s={matches:e===n["event_name"],error:null};if(s.error)return void Of.error('Error checking first-time event for flag "'+o+'": '+s.error);if(s.matches){Of.log('First-time event matched for flag "'+o+'": '+e);var c={key:n["pending_variant"]["variant_key"],value:n["pending_variant"]["variant_value"],experiment_id:n["pending_variant"]["experiment_id"],is_experiment_active:n["pending_variant"]["is_experiment_active"]};this.flags.set(o,c),this.trackedFeatures.delete(o),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n["flag_id"],n["project_id"],n["first_time_event_hash"])}}},this)},Ox.prototype.getFirstTimeEventApiRoute=function(e){var t=this.getFullApiRoute().replace(/\/$/,"");return t+"/"+e+"/first-time-events"},Ox.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=Sd(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",c4.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};Of.log("Recording first-time event for flag: "+e),this.fetch.call(c1,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch(function(t){Of.error("Failed to record first-time event for flag "+e+": "+t)})},Ox.prototype.getVariant=function(e,t){if(!this.persistenceLoadedPromise)return new Promise(function(e){Of.critical("Feature Flags not initialized"),e(Ow(t))});var r=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(k2.bind(function(){if(r===Ol.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(e,t):this.fetchPromise?this.fetchPromise.then(k2.bind(function(){return this.getVariantSync(e,t)},this)).catch(function(e){return Of.error(e),Ow(t)}):Ow(t);var n=k2.bind(function(){return this.getVariantSync(e,t)},this);return this.fetchPromise?this.fetchPromise.then(n).catch(n):Ow(t)},this))},Ox.prototype._loadedPersistenceIsStale=function(){return!!this._loadedPersistedAtMs&&!!this._loadedTtlMs&&Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},Ox.prototype.getVariantSync=function(e,t){if(this._loadedPersistenceIsStale())return Of.log('Loaded persisted variants are past TTL so returning fallback for "'+e+'"'),Ow(t);if(!this.areFlagsReady())return Of.log("Flags not loaded yet"),Ow(t);var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(Of.log('No flag found: "'+e+'"'),Ow(t))},Ox.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return Of.critical("Feature Flags not initialized"),Promise.resolve(new Map);var e=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(k2.bind(function(){if(e===Ol.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(k2.bind(function(){return this.getAllVariantsSync()},this)).catch(function(e){return Of.error(e),new Map}):new Map;var t=k2.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(t).catch(t):new Map},this))},Ox.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(Of.log("Loaded persisted variants are past TTL so returning empty Map"),new Map):this.flags||new Map},Ox.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e["value"]}).catch(function(e){return Of.error(e),t})},Ox.prototype.getFeatureData=function(e,t){return Of.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},Ox.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t})["value"]},Ox.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(e){return Of.error(e),t})},Ox.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(Of.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},Ox.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t["key"],$experiment_type:"feature_flag","Variant fetch start time":O_(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":O_(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};O_(t["experiment_id"])&&(r["$experiment_id"]=t["experiment_id"]),O_(t["is_experiment_active"])&&(r["$is_experiment_active"]=t["is_experiment_active"]),O_(t["is_qa_tester"])&&(r["$is_qa_tester"]=t["is_qa_tester"]),O_(t["variant_source"])&&(r["$variant_source"]=t["variant_source"]),O_(t["persisted_at_in_ms"])&&(r["$persisted_at_in_ms"]=t["persisted_at_in_ms"]),O_(t["ttl_in_ms"])&&(r["$ttl_in_ms"]=t["ttl_in_ms"]),this.track("$experiment_started",r)}},Ox.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},Ox.prototype.minApisSupported=function(){return!!this.fetch&&"u">typeof Promise&&"u">typeof Map&&"u">typeof Set},k3(Ox),Ox.prototype["are_flags_ready"]=Ox.prototype.areFlagsReady,Ox.prototype["get_variant"]=Ox.prototype.getVariant,Ox.prototype["get_variant_sync"]=Ox.prototype.getVariantSync,Ox.prototype["get_all_variants"]=Ox.prototype.getAllVariants,Ox.prototype["get_all_variants_sync"]=Ox.prototype.getAllVariantsSync,Ox.prototype["get_variant_value"]=Ox.prototype.getVariantValue,Ox.prototype["get_variant_value_sync"]=Ox.prototype.getVariantValueSync,Ox.prototype["is_enabled"]=Ox.prototype.isEnabled,Ox.prototype["is_enabled_sync"]=Ox.prototype.isEnabledSync,Ox.prototype["load_flags"]=Ox.prototype.loadFlags,Ox.prototype["update_context"]=Ox.prototype.updateContext,Ox.prototype["when_ready"]=Ox.prototype.whenReady,Ox.prototype["get_feature_data"]=Ox.prototype.getFeatureData,Ox.prototype["getTargeting"]=Ox.prototype.getTargeting;var Ok=k8("recorder"),OS="mp_iframe_handshake_request",OC="mp_iframe_handshake_response",OE=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};OE.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return k4.log("Load recorder check skipped due to disable_persistence config"),kD.resolve(!1);var e=new S_(Sk,SC,SE),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(SZ(e[r])||e[r]["tabId"]===t)return!0;return!1}).catch(k2.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},OE.prototype.checkAndStartSessionRecording=function(e,t){if(!c1["MutationObserver"])return k4.critical("Browser does not support MutationObserver; skipping session recording"),kD.resolve();var r=k2.bind(function(e){return new kD(k2.bind(function(t){var r=k6(k2.bind(function(){this._recorder=this._recorder||new c1[c8](this.mixpanelInstance),this._recorder["resumeRecording"](e),t()},this));if(k2.isUndefined(c1[c8])){var n=this.recorderSrc||this.libBasePath+c6;this.loadExtraBundle(n,r)}else r()},this))},this),n=S0(this.getMpConfig("record_allowed_iframe_origins"),Ok),i=n.length>0;if(i&&(this._setupParentFrameListener(n),c1.parent!==c1))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),kD.resolve();var o=k2.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,s=o>0&&100*Math.random()<=o;return e||s?r(!0):this.shouldLoadRecorder().then(k2.bind(function(e){return e?r(!1):kD.resolve()},this))},OE.prototype.isRecording=function(){if(!this._recorder||!k2.isFunction(this._recorder["isRecording"]))return!1;try{return this._recorder["isRecording"]()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},OE.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"==typeof i["percentage"]){var o=i["percentage"],s=i["property_filters"];if(s&&!k2.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+c3;On(this.loadExtraBundle,a).then((function(r){try{var n=r["eventMatchesCriteria"](e,t,{event_name:e,property_filters:s});n["matches"]&&this.checkAndStartSessionRecording(!1,o)}catch(e){k4.critical("Could not parse recording event trigger properties logic:",e)}}).bind(this)).catch(function(e){k4.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},OE.prototype.stopSessionRecording=function(){return this._recorder?this._recorder["stopRecording"]():kD.resolve()},OE.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder["pauseRecording"]():kD.resolve()},OE.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder["resumeRecording"]():kD.resolve()},OE.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},OE.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e["$mp_replay_id"]=t),e},OE.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();if(t){var r=k2.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")});e="https://mixpanel.com/projects/replay-redirect?"+r}return e},OE.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder["replayId"]),e||null},OE.prototype.getRecorder=function(){return this._recorder},OE.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var i=n.data;i&&i["type"]===OC&&i["token"]===r.getMpConfig("token")&&i["replayId"]&&(r._parentReplayId=i["replayId"],i["distinctId"]&&r.mixpanelInstance["identify"](i["distinctId"]),r._parentFrameRetryActive=!1,c1.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},c1.addEventListener("message",this._childFrameMessageHandler)}},OE.prototype._sendParentFrameRequest=function(e){var t={};t["type"]=OS,t["token"]=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{c1.parent.postMessage(t,e[r])}catch(e){}},OE.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=10,n=0,i=50;function o(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++n>=r||(t._sendParentFrameRequest(e),i*=2,o())},i)}this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),o()},OE.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n["type"]===OS&&n["token"]===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o["type"]=OC,o["token"]=t.getMpConfig("token"),o["replayId"]=i,o["distinctId"]=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},c1.addEventListener("message",this._parentFrameMessageHandler)}},k3(OE);var OO=function(){};OO.prototype.create_properties=function(){},OO.prototype.event_handler=function(){},OO.prototype.after_track_handler=function(){},OO.prototype.init=function(e){return this.mp=e,this},OO.prototype.track=function(e,t,r,n){var i=this,o=k2.dom_query(e);return 0===o.length?void k4.error("The DOM query ("+e+") returned 0 elements"):(k2.each(o,function(e){k2.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0)},OO.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},OO.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):k2.extend({},e)};var OI=function(){this.override_event="click"};k2.inherit(OI,OO),OI.prototype.create_properties=function(e,t){var r=OI.superclass.create_properties.apply(this,arguments);return t.href&&(r["url"]=t.href),r},OI.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},OI.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var OT=function(){this.override_event="submit"};k2.inherit(OT,OO),OT.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},OT.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var OA="$set",OM="$set_once",OR="$unset",OP="$add",OL="$append",OD="$union",ON="$remove",OB="$delete",OF={set_action:function(e,t){var r={},n={};return k2.isObject(e)?k2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[OA]=n,r},unset_action:function(e){var t={},r=[];return k2.isArray(e)||(e=[e]),k2.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[OR]=r,t},set_once_action:function(e,t){var r={},n={};return k2.isObject(e)?k2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[OM]=n,r},union_action:function(e,t){var r={},n={};return k2.isObject(e)?k2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=k2.isArray(e)?e:[e])},this):n[e]=k2.isArray(t)?t:[t],r[OD]=n,r},append_action:function(e,t){var r={},n={};return k2.isObject(e)?k2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[OL]=n,r},remove_action:function(e,t){var r={},n={};return k2.isObject(e)?k2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[ON]=n,r},delete_action:function(){var e={};return e[OB]="",e}},Oj=function(){};k2.extend(Oj.prototype,OF),Oj.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Oj.prototype.set=SL(function(e,t,r){var n=this.set_action(e,t);return k2.isObject(e)&&(r=t),this._send_request(n,r)}),Oj.prototype.set_once=SL(function(e,t,r){var n=this.set_once_action(e,t);return k2.isObject(e)&&(r=t),this._send_request(n,r)}),Oj.prototype.unset=SL(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Oj.prototype.union=SL(function(e,t,r){k2.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Oj.prototype["delete"]=SL(function(e){var t=this.delete_action();return this._send_request(t,e)}),Oj.prototype.remove=SL(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),Oj.prototype._send_request=function(e,t){e["$group_key"]=this._group_key,e["$group_id"]=this._group_id,e["$token"]=this._get_config("token");var r=k2.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes")["groups"],batcher:this._mixpanel.request_batchers.groups},t)},Oj.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Oj.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Oj.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Oj.prototype["remove"]=Oj.prototype.remove,Oj.prototype["set"]=Oj.prototype.set,Oj.prototype["set_once"]=Oj.prototype.set_once,Oj.prototype["union"]=Oj.prototype.union,Oj.prototype["unset"]=Oj.prototype.unset,Oj.prototype["toString"]=Oj.prototype.toString;var OU=function(){};k2.extend(OU.prototype,OF),OU.prototype._init=function(e){this._mixpanel=e},OU.prototype.set=SP(function(e,t,r){var n=this.set_action(e,t);return k2.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel["persistence"].update_referrer_info(document.referrer),n[OA]=k2.extend({},k2.info.people_properties(),n[OA]),this._send_request(n,r)}),OU.prototype.set_once=SP(function(e,t,r){var n=this.set_once_action(e,t);return k2.isObject(e)&&(r=t),this._send_request(n,r)}),OU.prototype.unset=SP(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),OU.prototype.increment=SP(function(e,t,r){var n={},i={};return k2.isObject(e)?(k2.each(e,function(e,t){if(!this._is_reserved_property(t))if(isNaN(parseFloat(e)))return void k4.error("Invalid increment value passed to mixpanel.people.increment - must be a number");else i[t]=e},this),r=t):(k2.isUndefined(t)&&(t=1),i[e]=t),n[OP]=i,this._send_request(n,r)}),OU.prototype.append=SP(function(e,t,r){k2.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),OU.prototype.remove=SP(function(e,t,r){k2.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),OU.prototype.union=SP(function(e,t,r){k2.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),OU.prototype.track_charge=SP(function(){k4.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),OU.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},OU.prototype.delete_user=function(){if(!this._identify_called())return void k4.error("mixpanel.people.delete_user() requires you to call identify() first");var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},OU.prototype.toString=function(){return this._mixpanel.toString()+".people"},OU.prototype._send_request=function(e,t){e["$token"]=this._get_config("token"),e["$distinct_id"]=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e["$device_id"]=r),n&&(e["$user_id"]=n),i&&(e["$had_persisted_distinct_id"]=i);var o=k2.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes")["engage"],batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),k2.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),k2.truncate(o,255))},OU.prototype._get_config=function(e){return this._mixpanel.get_config(e)},OU.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},OU.prototype._enqueue=function(e){OA in e?this._mixpanel["persistence"]._add_to_people_queue(OA,e):OM in e?this._mixpanel["persistence"]._add_to_people_queue(OM,e):OR in e?this._mixpanel["persistence"]._add_to_people_queue(OR,e):OP in e?this._mixpanel["persistence"]._add_to_people_queue(OP,e):OL in e?this._mixpanel["persistence"]._add_to_people_queue(OL,e):ON in e?this._mixpanel["persistence"]._add_to_people_queue(ON,e):OD in e?this._mixpanel["persistence"]._add_to_people_queue(OD,e):k4.error("Invalid call to _enqueue():",e)},OU.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=k2.extend({},this._mixpanel["persistence"].load_queue(e)),s=o;!k2.isUndefined(o)&&k2.isObject(o)&&!k2.isEmptyObject(o)&&(i._mixpanel["persistence"]._pop_from_people_queue(e,o),i._mixpanel["persistence"].save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel["persistence"]._add_to_people_queue(e,o),k2.isUndefined(r)||r(t,n)}))},OU.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(OA,this.set,e),this._flush_one_queue(OM,this.set_once,n),this._flush_one_queue(OR,this.unset,o,function(e){return k2.keys(e)}),this._flush_one_queue(OP,this.increment,t),this._flush_one_queue(OD,this.union,i);var c=this._mixpanel["persistence"].load_queue(OL);if(!k2.isUndefined(c)&&k2.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(OL,u),k2.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)u=(c=this._mixpanel["persistence"].load_queue(OL)).pop(),a._mixpanel["persistence"].save(),k2.isEmptyObject(u)||a.append(u,l);var d=this._mixpanel["persistence"].load_queue(ON);if(!k2.isUndefined(d)&&k2.isArray(d)&&d.length)for(var f,p=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(ON,f),k2.isUndefined(s)||s(e,t)},g=d.length-1;g>=0;g--)f=(d=this._mixpanel["persistence"].load_queue(ON)).pop(),a._mixpanel["persistence"].save(),k2.isEmptyObject(f)||a.remove(f,p)},OU.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},OU.prototype["set"]=OU.prototype.set,OU.prototype["set_once"]=OU.prototype.set_once,OU.prototype["unset"]=OU.prototype.unset,OU.prototype["increment"]=OU.prototype.increment,OU.prototype["append"]=OU.prototype.append,OU.prototype["remove"]=OU.prototype.remove,OU.prototype["union"]=OU.prototype.union,OU.prototype["track_charge"]=OU.prototype.track_charge,OU.prototype["clear_charges"]=OU.prototype.clear_charges,OU.prototype["delete_user"]=OU.prototype.delete_user,OU.prototype["toString"]=OU.prototype.toString;var Oz="__mps",Oq="__mpso",OH="__mpus",O$="__mpa",OW="__mpap",OV="__mpr",OY="__mpu",OX="$people_distinct_id",OJ="__alias",OG="__timers",OK=[Oz,Oq,OH,O$,OW,OV,OY,OX,OJ,OG],OZ=function(e){this["props"]={},this.campaign_params_saved=!1,e["persistence_name"]?this.name="mp_"+e["persistence_name"]:this.name="mp_"+e["token"]+"_mixpanel";var t=e["persistence"];"cookie"!==t&&"localStorage"!==t&&(k4.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e["persistence"]="cookie"),"localStorage"===t&&k2.localStorage.is_supported()?this.storage=k2.localStorage:this.storage=k2.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()},OQ;OZ.prototype.properties=function(){var e={};return this.load(),k2.each(this["props"],function(t,r){k2.include(OK,r)||(e[r]=t)}),e},OZ.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this["props"]=k2.extend({},e))}},OZ.prototype.upgrade=function(){var e,t;this.storage===k2.localStorage?(e=k2.cookie.parse(this.name),k2.cookie.remove(this.name),k2.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===k2.cookie&&(t=k2.localStorage.parse(this.name),k2.localStorage.remove(this.name),t&&this.register_once(t))},OZ.prototype.save=function(){this.disabled||this.storage.set(this.name,Sb(this["props"]),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},OZ.prototype.load_prop=function(e){return this.load(),this["props"][e]},OZ.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},OZ.prototype.clear=function(){this.remove(),this["props"]={}},OZ.prototype.register_once=function(e,t,r){return!!k2.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),k2.each(e,function(e,r){this["props"].hasOwnProperty(r)&&this["props"][r]!==t||(this["props"][r]=e)},this),this.save(),!0)},OZ.prototype.register=function(e,t){return!!k2.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),k2.extend(this["props"],e),this.save(),!0)},OZ.prototype.unregister=function(e){this.load(),e in this["props"]&&(delete this["props"][e],this.save())},OZ.prototype.update_search_keyword=function(e){this.register(k2.info.searchInfo(e))},OZ.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:k2.info.referringDomain(e)||"$direct"},"")},OZ.prototype.get_referrer_info=function(){return k2.strip_empty_properties({$initial_referrer:this["props"]["$initial_referrer"],$initial_referring_domain:this["props"]["$initial_referring_domain"]})},OZ.prototype.update_config=function(e){this.default_expiry=this.expire_days=e["cookie_expiration"],this.set_disabled(e["disable_persistence"]),this.set_cookie_domain(e["cookie_domain"]),this.set_cross_site(e["cross_site_cookie"]),this.set_cross_subdomain(e["cross_subdomain_cookie"]),this.set_secure(e["secure_cookie"])},OZ.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},OZ.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},OZ.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},OZ.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},OZ.prototype.get_cross_subdomain=function(){return this.cross_subdomain},OZ.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},OZ.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(OA),o=this._get_or_create_queue(OM),s=this._get_or_create_queue(OR),a=this._get_or_create_queue(OP),c=this._get_or_create_queue(OD),u=this._get_or_create_queue(ON,[]),l=this._get_or_create_queue(OL,[]);r===Oz?(k2.extend(i,n),this._pop_from_people_queue(OP,n),this._pop_from_people_queue(OD,n),this._pop_from_people_queue(OR,n)):r===Oq?(k2.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(OR,n)):r===OH?k2.each(n,function(e){k2.each([i,o,a,c],function(t){e in t&&delete t[e]}),k2.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===O$?(k2.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(OR,n)):r===OY?(k2.each(n,function(e,t){k2.isArray(e)&&(t in c||(c[t]=[]),k2.each(e,function(e){k2.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(OR,n)):r===OV?(u.push(n),this._pop_from_people_queue(OL,n)):r===OW&&(l.push(n),this._pop_from_people_queue(OR,n)),k4.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),k4.log(t),this.save()},OZ.prototype._pop_from_people_queue=function(e,t){var r=this["props"][this._get_queue_key(e)];k2.isUndefined(r)||k2.each(t,function(t,n){e===OL||e===ON?k2.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},OZ.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},OZ.prototype._get_queue_key=function(e){return e===OA?Oz:e===OM?Oq:e===OR?OH:e===OP?O$:e===OL?OW:e===ON?OV:e===OD?OY:void k4.error("Invalid queue:",e)},OZ.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=k2.isUndefined(t)?{}:t,this["props"][r]||(this["props"][r]=t)},OZ.prototype.set_event_timer=function(e,t){var r=this.load_prop(OG)||{};r[e]=t,this["props"][OG]=r,this.save()},OZ.prototype.remove_event_timer=function(e){var t=this.load_prop(OG)||{},r=t[e];return k2.isUndefined(r)||(delete this["props"][OG][e],this.save()),r};var O0=function(e,t){throw Error(e+" not available in this build.")},O1,O2=0,O4=1,O5="mixpanel",O8="base64",O6="json",O3="$device:",O7="strict",O9="fallback",Ie="disabled",It=c1.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Ir=!It&&-1===kJ.indexOf("MSIE")&&-1===kJ.indexOf("Mozilla"),In=null;kW["sendBeacon"]&&(In=function(){return kW["sendBeacon"].apply(kW,arguments)});var Ii={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},Io={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Ii,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:O8,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Sv,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Sv,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:kN,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:Ie},Is=!1,Ia=function(){},Ic=function(e,t,r){var n,i=r===O5?O1:O1[r];if(i&&OQ===O2)n=i;else{if(i&&!k2.isArray(i))return void k4.error("You have already initialized "+r);n=new Ia}if(n._cached_groups={},n._init(e,t,r),n["people"]=new OU,n["people"]._init(n),!n.get_config("skip_first_touch_marketing")){var o=k2.info.campaignParams(null),s={},a=!1;k2.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n["people"].set_once(s)}c4.DEBUG=c4.DEBUG||n.get_config("debug");var c=OQ===O2?"module":"snippet";return c1.dispatchEvent(new c1.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:k2.info}})),!k2.isUndefined(i)&&k2.isArray(i)&&(n._execute_array.call(n["people"],i["people"]),n._execute_array(i)),n};Ia.prototype.init=function(e,t,r){if(k2.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===O5)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var n=Ic(e,t,r);return O1[r]=n,n._loaded(),n},Ia.prototype._init=function(e,t,r){t=t||{},this["__loaded"]=!0,this["config"]={};var n={};if(!("api_payload_format"in t)){var i=t["api_host"]||Io["api_host"];i.match(/\.mixpanel\.com/)&&(n["api_payload_format"]=O6)}if(this.hooks={},this.set_config(k2.extend({},Io,n,t,{name:r,token:e,callback_fn:(r===O5?r:O5+"."+r)+"._jsc"})),this.recorderManager=new OE({mixpanelInstance:this,getConfigFunc:k2.bind(this.get_config,this),setConfigFunc:k2.bind(this.set_config,this),getTabIdFunc:k2.bind(this.get_tab_id,this),reportErrorFunc:k2.bind(this.report_error,this),getDistinctIdFunc:k2.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:O0}),this["_jsc"]=Sv,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this._remote_settings_strict_disabled=!1,this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(k2.localStorage.is_supported(!0)&&It){if(this.init_batchers(),In&&c1.addEventListener){var o=k2.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);c1.addEventListener("pagehide",function(e){e["persisted"]&&o()}),c1.addEventListener("visibilitychange",function(){"hidden"===kV["visibilityState"]&&o()})}}else this._batch_requests=!1,k4.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),k2.each(this.get_batcher_configs(),function(e){k4.log("Clearing batch queue "+e.queue_key),k2.localStorage.remove(e.queue_key)});this["persistence"]=this["cookie"]=new OZ(this["config"]),this.unpersisted_superprops={},this._gdpr_init();var s=k2.UUID();this.get_distinct_id()||this.register_once({distinct_id:O3+s,$device_id:s},""),this.flags=new Ox({getFullApiRoute:k2.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes")["flags"]},this),getConfigFunc:k2.bind(this.get_config,this),setConfigFunc:k2.bind(this.set_config,this),getPropertyFunc:k2.bind(this.get_property,this),trackingFunc:k2.bind(this.track,this),loadExtraBundle:O0,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+c3}),this.flags.init(),this["flags"]=this.flags,this._init_tab_id();var a=this.get_config("remote_settings_mode");a===O7||a===O9?this.__session_recording_init_promise=this._fetch_remote_settings(a).then(k2.bind(function(){return this._check_and_start_session_recording()},this)):this.__session_recording_init_promise=this._check_and_start_session_recording(),this.autocapture=new Or(this),this.autocapture.init()},Ia.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))k4.log("Tab ID initialization skipped due to disable_persistence config");else if(k2.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;(k2.sessionStorage.get(r)||!k2.sessionStorage.get(t))&&k2.sessionStorage.set(t,"$tab-"+k2.UUID()),k2.sessionStorage.set(r,"1"),this.tab_id=k2.sessionStorage.get(t),c1.addEventListener("beforeunload",function(){k2.sessionStorage.remove(r)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},Ia.prototype.get_tab_id=function(){return this.tab_id||null},Ia.prototype._check_and_start_session_recording=SR(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),Ia.prototype._start_recording_on_event=k6(function(e,t){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(k2.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(e,t)},this))}),Ia.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},Ia.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},Ia.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},Ia.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},Ia.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},Ia.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},Ia.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},Ia.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},Ia.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},Ia.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this["people"].set_once(this["persistence"].get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=k2.info.campaignParams(null);k2.each(e,(function(e,t){this.unregister(t)}).bind(this))}},Ia.prototype._set_default_superprops=function(){this["persistence"].update_search_keyword(kV.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(k2.info.campaignParams()),this.get_config("save_referrer")&&this["persistence"].update_referrer_info(kV.referrer)},Ia.prototype._dom_loaded=function(){k2.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||k2.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},Ia.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Is)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},Ia.prototype._prepare_callback=function(e,t){if(k2.isUndefined(e))return null;if(It){var r=function(r){e(r,t)};return r}var n=this["_jsc"],i=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+i+"]";return n[i]=function(r){delete n[i],e(r,t)},o},Ia.prototype._send_request=function(e,t,r,n){var i=!0;if(Ir)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!n&&(k2.isFunction(r)||"string"==typeof r)&&(n=r,r=null),r=k2.extend(o,r||{}),It||(r.method="GET");var a="POST"===r.method,c=In&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t["verbose"]&&(u=!0),this.get_config("test")&&(t["test"]=1),u&&(t["verbose"]=1),this.get_config("img")&&(t["img"]=1),!It&&(n?t["callback"]=n:(u||this.get_config("test"))&&(t["callback"]="(function(){})")),t["ip"]=+!!this.get_config("ip"),t["_"]=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t["data"]),delete t["data"]),k2.extend(t,this.get_config("api_extra_query_params")),e+="?"+k2.HTTPBuildQuery(t);var l=this;if("img"in t){var h=kV.createElement("img");h.src=e,kV.body.appendChild(h)}else if(c){try{i=In(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(+!!i)}catch(e){l.report_error(e)}}else if(It)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),k2.each(f,function(e,t){d.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==d.timeout){d.timeout=r.timeout_ms;var p=new Date().getTime()}d.withCredentials=!0,d.onreadystatechange=function(){if(4===d.readyState)if(200===d.status){if(n)if(u){var e;try{e=k2.JSONDecode(d.responseText)}catch(t){if(l.report_error(t),!r.ignore_json_errors)return;e=d.responseText}n(e)}else n(Number(d.responseText))}else{var t;if(t=d.timeout&&!d.status&&new Date().getTime()-p>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,l.report_error(t),n)if(u){var i=d["responseHeaders"]||{};n({status:0,httpStatusCode:d["status"],error:t,retryAfter:i["Retry-After"]})}else n(0)}},d.send(s)}catch(e){l.report_error(e),i=!1}else{var g=kV.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=kV.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},Ia.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&(t.set_config({record_sessions_percent:0}),t._remote_settings_strict_disabled=!0)};if(!c1["AbortController"])return k4.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes")["settings"],i={$lib_version:c4.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=k2.HTTPBuildQuery(i),s=n+"?"+o,a=new AbortController,c=setTimeout(function(){a.abort()},500),u={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:a.signal};return c1["fetch"](s,u).then(function(e){if(clearTimeout(c),!e["ok"]){k4.critical("Network response was not ok"),r();return}return e.json()}).then(function(e){if(e&&e["sdk_config"]&&e["sdk_config"]["config"]){var n=e["sdk_config"]["config"],i={};k2.each(n,function(e,t){Io.hasOwnProperty(t)&&(i[t]=e)}),k2.isEmptyObject(i)?(k4.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(c),k4.critical("Failed to fetch remote settings",e),r()})},Ia.prototype._execute_array=function(e){var t,r=[],n=[],i=[];k2.each(e,function(e){e&&(t=e[0],k2.isArray(t)?i.push(e):"function"==typeof e?e.call(this):k2.isArray(e)&&"alias"===t?r.push(e):k2.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){k2.each(e,function(e){if(k2.isArray(e[0])){var r=t;k2.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},Ia.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Ia.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},Ia.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=k2.bind(function(e){return new SK(e.queue_key,{libConfig:this["config"],errorReporter:this.get_config("error_reporter"),sendRequestFunc:k2.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:k2.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:k2.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},Ia.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,k2.each(this.request_batchers,function(e){e.start()}))},Ia.prototype.stop_batch_senders=function(){this._batch_requests=!1,k2.each(this.request_batchers,function(e){e.stop(),e.clear()})},Ia.prototype.push=function(e){this._execute_array([e])},Ia.prototype.enable=function(e){var t,r,n,i;if(void 0===e)this._flags.disable_all_events=!1;else{for(n=0,t={},r=[];n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},Ia.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Ia.prototype._encode_data_for_request=function(e){var t=Sb(e);return this.get_config("api_payload_format")===O8&&(t=k2.base64Encode(t)),{data:t}},Ia.prototype._track_or_batch=function(e,t){var r=k2.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Sv;var a=!0,c=k2.bind(function(){return(!s.skip_hooks&&(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r)?(k4.log("MIXPANEL REQUEST:"),k4.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},Ia.prototype.track=SR(function(e,t,r,n){var i;if(!(r&&r.skip_hooks)){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null),r=r||{};var o=r["transport"];o&&(r.transport=o);var s=r["send_immediately"];if("function"!=typeof n&&(n=Sv),k2.isUndefined(e))return void this.report_error("No event name provided to mixpanel.track");if(this._event_is_disabled(e))return void n(0);(t=k2.extend({},t))["token"]=this.get_config("token");var a=this["persistence"].remove_event_timer(e);if(!k2.isUndefined(a)){var c=new Date().getTime()-a;t["$duration"]=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?k2.info.marketingParams():{};t=k2.extend({},k2.info.properties({mp_loader:this.get_config("mp_loader")}),u,this["persistence"].properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");k2.isArray(l)?k2.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes")["track"],batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}),Ia.prototype.set_group=SR(function(e,t,r){k2.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this["people"].set(e,t,r)}),Ia.prototype.add_group=SR(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this["people"].union(e,t,r)}),Ia.prototype.remove_group=SR(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this["people"].remove(e,t,r)}),Ia.prototype.track_with_groups=SR(function(e,t,r,n){var i=k2.extend({},t||{});return k2.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),Ia.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},Ia.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Ia.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(void 0===n||n._group_key!==e||n._group_id!==t)&&((n=new Oj)._init(this,e,t),this._cached_groups[r]=n),n},Ia.prototype.track_pageview=SR(function(e,t){"object"!=typeof e&&(e={}),t=t||{};var r=t["event_name"]||"$mp_web_page_view",n=k2.extend(k2.info.mpPageViewProperties(),k2.info.campaignParams(),k2.info.clickParams()),i=k2.extend({},n,e);return this.is_recording_heatmap_data()&&(i["$captured_for_heatmap"]=!0),this.track(r,i)}),Ia.prototype.track_links=function(){return this._track_dom.call(this,OI,arguments)},Ia.prototype.track_forms=function(){return this._track_dom.call(this,OT,arguments)},Ia.prototype.time_event=function(e){k2.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this["persistence"].set_event_timer(e,new Date().getTime())};var Iu={persistent:!0},Il=function(e){var t;return t=k2.isObject(e)?e:k2.isUndefined(e)?{}:{days:e},k2.extend({},Iu,t)};Ia.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=Il(t);n["persistent"]?this["persistence"].register(e,n["days"]):k2.extend(this.unpersisted_superprops,e)}},Ia.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=Il(r);i["persistent"]?this["persistence"].register_once(e,t,i["days"]):(void 0===t&&(t="None"),k2.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},Ia.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],(t=Il(t=r[1]))["persistent"]?this["persistence"].unregister(e):delete this.unpersisted_superprops[e])},Ia.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},Ia.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return -1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(O3))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(OJ)&&(this.unregister(OJ),this.register({distinct_id:e})),this._flags.identify_called=!0,this["people"]._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags().catch(function(){k4.error("[flags] Error fetching flags during identify")})},Ia.prototype.reset=function(){this.stop_session_recording(),this["persistence"].clear(),this._flags.identify_called=!1;var e=k2.UUID();this.register_once({distinct_id:O3+e,$device_id:e},""),this._check_and_start_session_recording(),this.flags.reset()},Ia.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},Ia.prototype.alias=function(e,t){if(e===this.get_property(OX))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(k2.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(OJ,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},Ia.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},Ia.prototype.set_config=function(e){if(k2.isObject(e)){k2.extend(this["config"],e);var t=e["batch_size"];t&&k2.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this["config"]["persistence_name"]=this["config"]["cookie_name"]),this.get_config("disable_persistence")||(this["config"]["disable_persistence"]=this["config"]["disable_cookie"]),this["persistence"]&&this["persistence"].update_config(this["config"]),c4.DEBUG=c4.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),k2.isObject(e["hooks"])&&(this.hooks={},k2.each(e["hooks"],function(e,t){if(k2.isFunction(e))this.hooks[t]=[e];else if(k2.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)k2.isFunction(e[r])||k4.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else k4.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},Ia.prototype.get_config=function(e){return this["config"][e]},Ia.prototype._run_hook=function(e){var t=kz.call(arguments,1);return k2.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(k2.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},Ia.prototype.get_property=function(e){return this["persistence"].load_prop([e])},Ia.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},Ia.prototype.toString=function(){var e=this.get_config("name");return e!==O5&&(e=O5+"."+e),e},Ia.prototype._event_is_disabled=function(e){return k2.isBlockedUA(kJ)||this._flags.disable_all_events||k2.include(this.__disabled_events,e)},Ia.prototype._gdpr_init=function(){var e="localStorage"===this.get_config("opt_out_tracking_persistence_type");e&&k2.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||k2.cookie.get("mp_optout"))&&(k2.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},Ia.prototype._gdpr_update_persistence=function(e){var t;if(e&&e["clear_persistence"])t=!0;else{if(!e||!e["enable_persistence"])return;t=!1}this.get_config("disable_persistence")||this["persistence"].disabled===t||this["persistence"].set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},Ia.prototype._gdpr_call_func=function(e,t){return t=k2.extend({track:k2.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),k2.localStorage.is_supported()||(t["persistence_type"]="cookie"),e(this.get_config("token"),{track:t["track"],trackEventName:t["track_event_name"],trackProperties:t["track_properties"],persistenceType:t["persistence_type"],persistencePrefix:t["cookie_prefix"],cookieDomain:t["cookie_domain"],cookieExpiration:t["cookie_expiration"],crossSiteCookie:t["cross_site_cookie"],crossSubdomainCookie:t["cross_subdomain_cookie"],secureCookie:t["secure_cookie"],ignoreDnt:t["ignore_dnt"]})},Ia.prototype.opt_in_tracking=function(e){e=k2.extend({enable_persistence:!0},e),this._gdpr_call_func(SI,e),this._gdpr_update_persistence(e)},Ia.prototype.opt_out_tracking=function(e){(e=k2.extend({clear_persistence:!0,delete_user:!0},e))["delete_user"]&&this["people"]&&this["people"]._identify_called()&&(this["people"].delete_user(),this["people"].clear_charges()),this._gdpr_call_func(ST,e),this._gdpr_update_persistence(e)},Ia.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(SA,e)},Ia.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(SM,e)},Ia.prototype.clear_opt_in_out_tracking=function(e){e=k2.extend({enable_persistence:!0},e),this._gdpr_call_func(SD,e),this._gdpr_update_persistence(e)},Ia.prototype.report_error=function(e,t){k4.error.apply(k4.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){k4.error(e)}},Ia.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},Ia.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):k4.log("remove_hook failed. Matching hook was not found"))},Ia.prototype["init"]=Ia.prototype.init,Ia.prototype["reset"]=Ia.prototype.reset,Ia.prototype["enable"]=Ia.prototype.enable,Ia.prototype["disable"]=Ia.prototype.disable,Ia.prototype["time_event"]=Ia.prototype.time_event,Ia.prototype["track"]=Ia.prototype.track,Ia.prototype["track_links"]=Ia.prototype.track_links,Ia.prototype["track_forms"]=Ia.prototype.track_forms,Ia.prototype["track_pageview"]=Ia.prototype.track_pageview,Ia.prototype["register"]=Ia.prototype.register,Ia.prototype["register_once"]=Ia.prototype.register_once,Ia.prototype["unregister"]=Ia.prototype.unregister,Ia.prototype["identify"]=Ia.prototype.identify,Ia.prototype["alias"]=Ia.prototype.alias,Ia.prototype["name_tag"]=Ia.prototype.name_tag,Ia.prototype["set_config"]=Ia.prototype.set_config,Ia.prototype["get_config"]=Ia.prototype.get_config,Ia.prototype["get_api_host"]=Ia.prototype.get_api_host,Ia.prototype["get_property"]=Ia.prototype.get_property,Ia.prototype["get_distinct_id"]=Ia.prototype.get_distinct_id,Ia.prototype["toString"]=Ia.prototype.toString,Ia.prototype["opt_out_tracking"]=Ia.prototype.opt_out_tracking,Ia.prototype["opt_in_tracking"]=Ia.prototype.opt_in_tracking,Ia.prototype["has_opted_out_tracking"]=Ia.prototype.has_opted_out_tracking,Ia.prototype["has_opted_in_tracking"]=Ia.prototype.has_opted_in_tracking,Ia.prototype["clear_opt_in_out_tracking"]=Ia.prototype.clear_opt_in_out_tracking,Ia.prototype["get_group"]=Ia.prototype.get_group,Ia.prototype["set_group"]=Ia.prototype.set_group,Ia.prototype["add_group"]=Ia.prototype.add_group,Ia.prototype["remove_group"]=Ia.prototype.remove_group,Ia.prototype["add_hook"]=Ia.prototype.add_hook,Ia.prototype["remove_hook"]=Ia.prototype.remove_hook,Ia.prototype["track_with_groups"]=Ia.prototype.track_with_groups,Ia.prototype["start_batch_senders"]=Ia.prototype.start_batch_senders,Ia.prototype["stop_batch_senders"]=Ia.prototype.stop_batch_senders,Ia.prototype["start_session_recording"]=Ia.prototype.start_session_recording,Ia.prototype["stop_session_recording"]=Ia.prototype.stop_session_recording,Ia.prototype["pause_session_recording"]=Ia.prototype.pause_session_recording,Ia.prototype["resume_session_recording"]=Ia.prototype.resume_session_recording,Ia.prototype["get_session_recording_properties"]=Ia.prototype.get_session_recording_properties,Ia.prototype["get_session_replay_url"]=Ia.prototype.get_session_replay_url,Ia.prototype["get_tab_id"]=Ia.prototype.get_tab_id,Ia.prototype["DEFAULT_API_ROUTES"]=Ii,Ia.prototype["__get_recorder"]=Ia.prototype.__get_recorder,Ia.prototype["__get_recording_init_promise"]=Ia.prototype.__get_recording_init_promise,OZ.prototype["properties"]=OZ.prototype.properties,OZ.prototype["update_search_keyword"]=OZ.prototype.update_search_keyword,OZ.prototype["update_referrer_info"]=OZ.prototype.update_referrer_info,OZ.prototype["get_cross_subdomain"]=OZ.prototype.get_cross_subdomain,OZ.prototype["clear"]=OZ.prototype.clear;var Ih={},Id=function(){k2.each(Ih,function(e,t){t!==O5&&(O1[t]=e)}),O1["_"]=k2},If=function(){O1["init"]=function(e,t,r){if(r)return O1[r]||(O1[r]=Ih[r]=Ic(e,t,r),O1[r]._loaded()),O1[r];var n=O1;Ih[O5]?n=Ih[O5]:e&&((n=Ic(e,t,O5))._loaded(),Ih[O5]=n),O1=n,OQ===O4&&(c1[O5]=O1),Id()}},Ip=function(){function e(){e.done||(e.done=!0,Is=!0,Ir=!1,k2.each(Ih,function(e){e._dom_loaded()}))}function t(){try{kV.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}if(kV.addEventListener)"complete"===kV.readyState?e():kV.addEventListener("DOMContentLoaded",e,!1);else if(kV.attachEvent){kV.attachEvent("onreadystatechange",e);var r=!1;try{r=null===c1.frameElement}catch(e){}kV.documentElement.doScroll&&r&&t()}k2.register_event(c1,"load",e,!0)};function Ig(e){return O0=e,OQ=O2,O1=new Ia,If(),O1["init"](),Ip(),O1}function Im(e,t){t()}var Iv=Ig(Im);let Iy="@mixpanelIdentificationData",Ib=!1,Iw=e=>{let t={...e},r={};return t.name?(r["$name"]=t.name,delete t.name):(r["$first_name"]=t.first_name,r["$last_name"]=t.last_name,delete t.first_name,delete t.last_name),t.email&&(r["$email"]=t.email,delete t.email),t.phone&&(r["$phone"]=t.phone,delete t.phone),r=Object.assign({},r,t)},Ix={};Ix.setMixpanelIdentificationData=(e,t="",r="production")=>{iI(Iy,e,r,t)},Ix.getMixpanelIdentificationData=(e="",t="production")=>{let r=iT(Iy,t,e);if(r)return r;let n=iE(Iy,t,e);return n&&(iI(Iy,n,t,e),iO(Iy)),n},Ix.hasMixpanelIdentificationData=(e="",t="production")=>!!Ix.getMixpanelIdentificationData(e,t),Ix.init=(e,t)=>{e&&(Iv.init(e,Object.assign({},t,{ignore_dnt:!0})),Ib=!0,t?.debug&&console.info("[Mixpanel] initialized"))},Ix.initIdentify=(e,t,r,n,i="")=>{if(t)try{Ix.init(t,n);let o=r||Ix.getMixpanelIdentificationData(i,e);if(!o)return;let s=Iw(o),a=window.location.hostname,c=`${a}`;s?.company&&(c+=`.${s?.company?.name}`),s?.employee_code&&(c+=`.${s?.employee_code}`),(s?.name||s?.first_name&&s?.last_name)&&(c+=s?.name?`.${s.name}`:`.${s?.first_name}.${s?.last_name}`),Iv.identify(c),Iv.people.set({...s,company_domain:a})}catch{}},Ix.trackEvent=(e,t,r)=>{if("production"===e||Ib)try{return Iv.track(t,r)}catch{}};var I_=Ix,Ik={}}(),n}()});
81
+ </div>`})},av="@appClient",ay="@loggedInUser",ab="@refreshTokenPath",aw="@appLoginUrl",ax="@redirectUrl";class a_{encryptionKey;tokenService;constructor(e){this.encryptionKey=e,this.tokenService=new iY(e)}redirectToLogin(){this.logOut(),am("error","Error","You need to sign in."),setTimeout(()=>{location.href="/login"},2e3)}hasValidToken(e){if(e.meta?.protected!==!0)return!0;let t=this.tokenService.getToken();return!!t||(this.redirectToLogin(),!1)}setClientDetails(e){iC(av,e)}getClientDetails(){return iE(av)}removeClientDetails(){iO(av)}setLoggedInUser(e){iC(ay,e)}getLoggedInUser(){return iE(ay)}removeLoggedInUser(){iO(ay)}isLoggedIn(){return this.hasLoggedIn()&&!!this.tokenService.getToken()}logOut(e){e?this.clearAll():(this.tokenService.removeLocalStorageToken(),this.tokenService.removeToken(),this.tokenService.removeRefreshToken(),this.removeLoggedInUser(),this.removeRefreshTokenPath(),this.removeLoginUrl(),this.clearGlobaThis())}hasLoggedIn(){let e=this.getLoggedInUser();return!!e?.id}clearAll(){localStorage.clear(),sessionStorage.clear(),this.tokenService.clearAll(),this.clearGlobaThis()}clearGlobaThis(){let e=globalThis,t=e["__shr_http_refresh_state__"];t&&(t.accessToken=null)}getLoginUrl(){return iE(aw)}saveLoginUrl(e){iC(aw,e)}removeLoginUrl(){iO(aw)}getRefreshTokenPath(){return iE(ab)}saveRefreshTokenPath(e){iC(ab,e)}removeRefreshTokenPath(){iO(ab)}getRedirectUrl(){return iE(ax)}saveRedirectUrl(e){let t=new URL(window.location.href),r=t.searchParams.get("intended_url")||t.searchParams.get("referer"),n=e||r||window.location.href;iC(ax,decodeURIComponent(n))}removeRedirectUrl(){iO(ax)}}var ak=a_;let aS={"X-Requested-With":"XMLHttpRequest"},aC="__shr_http_refresh_state__";function aE(){let e=globalThis;return e[aC]||(e[aC]={isRefreshing:!1,failedQueue:[],accessToken:null}),e[aC]}function aO(e,t=null){let r=aE();r.failedQueue.forEach(({resolve:r,reject:n})=>{e?n(e):r(t)}),r.failedQueue=[]}class aI{tokenService;authService;instance;token;apiBaseUrl;loginUrl;timeout;projectType;httpHeaders;defaultError;constructor(e){this.tokenService=new iY(e?.encryptionKey),this.authService=new ak(e?.encryptionKey),this.apiBaseUrl=e?.apiBaseUrl||"/",this.loginUrl=e?.loginUrl,this.timeout=e?.timeout||2e4,this.projectType=e?.projectType,this.httpHeaders=e?.httpHeaders||{},this.defaultError=e?.defaultError,this.instance=u().create({baseURL:this.apiBaseUrl,timeout:this.timeout}),this.token=this.tokenService.getToken(),this.initializeRequestInterceptor(),this.initializeResponseInterceptor()}getInstance=()=>this.instance;getInstance2=()=>({get:this.get,post:this.post,put:this.put,patch:this.patch,delete:this.delete,request:this.request,defaults:this.instance.defaults,instance:this.instance});get=(e,t)=>this.instance.get(e,t);post=(e,t,r)=>this.instance.post(e,t,r);put=(e,t,r)=>this.instance.put(e,t,r);patch=(e,t,r)=>this.instance.patch(e,t,r);delete=(e,t)=>this.instance.delete(e,t);request=e=>this.instance.request(e);resolveError(e,t,r){if(!r)return{showMessage:!0,defaultMessage:t};if("string"==typeof r)return{showMessage:!0,defaultMessage:r};let n=r(e);return"string"==typeof n&&""!==n.trim()?{showMessage:!0,defaultMessage:n}:{showMessage:!1!==n,defaultMessage:t}}rejectIfOffline(){if("u">typeof navigator&&!navigator.onLine){let e=Error("No internet access!"),{showMessage:t,defaultMessage:r}=this.resolveError(e,"No internet access!",this.defaultError?.onNetworkError);return t&&am("error","Error",r),e}return null}initializeRequestInterceptor=()=>{this.instance.interceptors.request.use(this.handleRequest,e=>Promise.reject(e))};handleRequest=e=>{let t=aE();this.token=t.accessToken??this.tokenService.getToken(),this.token&&!t.accessToken&&(t.accessToken=this.token),e.headers={...e.headers||{},...this.httpHeaders||{},...aS},this.token&&(e.headers.Authorization=`Bearer ${this.token}`);let r=this.rejectIfOffline();return r?Promise.reject(r):e};initializeResponseInterceptor=()=>{this.instance.interceptors.response.use(e=>{if(e.headers&&e.headers.authorization){let t=e.headers.authorization.split(" ")[1];this.token=t,this.tokenService.saveToken(this.token),aE().accessToken=t}return e},this.handleError)};handleError=async e=>{if(!e.config)return Promise.reject(e);let t=e.config,r=t?._skipAuthRedirect===!0,n=t?._hideDefaultMessage===!0,i=e.response?.status;if(401===i&&!t?._retry&&!r){let r=aE();if(r.isRefreshing)return new Promise((e,t)=>{r.failedQueue.push({resolve:e,reject:t})}).then(e=>(t.headers.Authorization=`Bearer ${e}`,this.instance(t)));t._retry=!0,r.isRefreshing=!0;try{let e=await this.refreshToken(),{access_token:n,refresh_token:i}=e.data?.data??{};this.tokenService.saveToken(n),this.tokenService.saveRefreshToken(i),r.accessToken=n,aO(null,n),r.isRefreshing=!1;let o=this.rejectIfOffline();if(o)return Promise.reject(o);return t.headers.Authorization=`Bearer ${n}`,this.instance(t)}catch(i){aO(i,null),r.isRefreshing=!1,r.accessToken=null;let{showMessage:t,defaultMessage:n}=this.resolveError(e,"Your session has expired, you need to sign in again.");return t&&(am("error","Error",n),setTimeout(()=>{let e=this.authService.getLoginUrl();e||(e="function"==typeof this.loginUrl?this.loginUrl():this.loginUrl),e&&(location.href=e)},1e3)),this.authService.logOut(),Promise.reject(e.response||e)}}let o={403:this.defaultError?.onForbidden,500:this.defaultError?.onServerError,400:this.defaultError?.onBadRequest,422:this.defaultError?.onValidationError,404:this.defaultError?.onNotFound},s=e.response?.data?.message,a={403:"You do not have permission to perform this action",500:s||"Unable to process request at this time, please try again",400:s||"Bad Request",422:s||"Validation error",404:"Resource not found"};if(i&&o[i]){let{showMessage:t,defaultMessage:r}=this.resolveError(e,a[i],o[i]);t&&!n&&am("error","Error",r)}return Promise.reject(e.response||e)};async refreshToken(){let e=this.authService.getRefreshTokenPath();e||(iC("refresh-token-path-not-found",!0),e=`${location.origin}/api/v2/auth/refresh-token-web`);let t={refresh_token:this.tokenService.getRefreshToken(),ums_user_id:this.authService.getLoggedInUser()?.ums_user_id};return u().post(e,t)}}function aT(e){let t=Object.create(null);for(let r of e.split(","))t[r]=1;return e=>e in t}let aA=Object.assign,aM=Object.prototype.hasOwnProperty,aR=(e,t)=>aM.call(e,t),aP=Array.isArray,aL=e=>"[object Map]"===aj(e),aD=e=>"string"==typeof e,aN=e=>"symbol"==typeof e,aB=e=>null!==e&&"object"==typeof e,aF=Object.prototype.toString,aj=e=>aF.call(e),aU=e=>aj(e).slice(8,-1),az=e=>aD(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,aq=(e,t)=>!Object.is(e,t),aH,a$=0,aW,aV;function aY(){a$++}function aX(){if(--a$>0)return;if(aV){let e=aV;aV=void 0;while(e){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;while(aW){let t=aW;aW=void 0;while(t){let r=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=r}}if(e)throw e}let aJ=!0,aG=[];function aK(){aG.push(aJ),aJ=!1}function aZ(){let e=aG.pop();aJ=void 0===e||e}let aQ=0;class a0{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class a1{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!aH||!aJ||aH===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==aH)t=this.activeLink=new a0(aH,this),aH.deps?(t.prevDep=aH.depsTail,aH.depsTail.nextDep=t,aH.depsTail=t):aH.deps=aH.depsTail=t,a2(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=aH.depsTail,t.nextDep=void 0,aH.depsTail.nextDep=t,aH.depsTail=t,aH.deps===t&&(aH.deps=e)}return t}trigger(e){this.version++,aQ++,this.notify(e)}notify(e){aY();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{aX()}}}function a2(e){if(e.dep.sc++,4&e.sub.flags){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)a2(e)}let r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}let a4=new WeakMap,a5=Symbol(""),a8=Symbol(""),a6=Symbol("");function a3(e,t,r){if(aJ&&aH){let t=a4.get(e);t||a4.set(e,t=new Map);let n=t.get(r);n||(t.set(r,n=new a1),n.map=t,n.key=r),n.track()}}function a7(e,t,r,n,i,o){let s=a4.get(e);if(!s)return void aQ++;let a=e=>{e&&e.trigger()};if(aY(),"clear"===t)s.forEach(a);else{let i=aP(e),o=i&&az(r);if(i&&"length"===r){let e=Number(n);s.forEach((t,r)=>{("length"===r||r===a6||!aN(r)&&r>=e)&&a(t)})}else switch((void 0!==r||s.has(void 0))&&a(s.get(r)),o&&a(s.get(a6)),t){case"add":i?o&&a(s.get("length")):(a(s.get(a5)),aL(e)&&a(s.get(a8)));break;case"delete":!i&&(a(s.get(a5)),aL(e)&&a(s.get(a8)));break;case"set":aL(e)&&a(s.get(a5));break}}aX()}function a9(e,t){let r=a4.get(e);return r&&r.get(t)}function ce(e){let t=cF(e);return t===e?t:(a3(t,"iterate",a6),cN(e)?t:t.map(cj))}function ct(e){return a3(e=cF(e),"iterate",a6),e}function cr(e,t){return cD(e)?cL(e)?cU(cj(t)):cU(t):cj(t)}let cn={__proto__:null,[Symbol.iterator](){return ci(this,Symbol.iterator,e=>cr(this,e))},concat(...e){return ce(this).concat(...e.map(e=>aP(e)?ce(e):e))},entries(){return ci(this,"entries",e=>(e[1]=cr(this,e[1]),e))},every(e,t){return cs(this,"every",e,t,void 0,arguments)},filter(e,t){return cs(this,"filter",e,t,e=>e.map(e=>cr(this,e)),arguments)},find(e,t){return cs(this,"find",e,t,e=>cr(this,e),arguments)},findIndex(e,t){return cs(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return cs(this,"findLast",e,t,e=>cr(this,e),arguments)},findLastIndex(e,t){return cs(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return cs(this,"forEach",e,t,void 0,arguments)},includes(...e){return cc(this,"includes",e)},indexOf(...e){return cc(this,"indexOf",e)},join(e){return ce(this).join(e)},lastIndexOf(...e){return cc(this,"lastIndexOf",e)},map(e,t){return cs(this,"map",e,t,void 0,arguments)},pop(){return cu(this,"pop")},push(...e){return cu(this,"push",e)},reduce(e,...t){return ca(this,"reduce",e,t)},reduceRight(e,...t){return ca(this,"reduceRight",e,t)},shift(){return cu(this,"shift")},some(e,t){return cs(this,"some",e,t,void 0,arguments)},splice(...e){return cu(this,"splice",e)},toReversed(){return ce(this).toReversed()},toSorted(e){return ce(this).toSorted(e)},toSpliced(...e){return ce(this).toSpliced(...e)},unshift(...e){return cu(this,"unshift",e)},values(){return ci(this,"values",e=>cr(this,e))}};function ci(e,t,r){let n=ct(e),i=n[t]();return n===e||cN(e)||(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=r(e.value)),e}),i}let co=Array.prototype;function cs(e,t,r,n,i,o){let s=ct(e),a=s!==e&&!cN(e),c=s[t];if(c!==co[t]){let t=c.apply(e,o);return a?cj(t):t}let u=r;s!==e&&(a?u=function(t,n){return r.call(this,cr(e,t),n,e)}:r.length>2&&(u=function(t,n){return r.call(this,t,n,e)}));let l=c.call(s,u,n);return a&&i?i(l):l}function ca(e,t,r,n){let i=ct(e),o=i!==e&&!cN(e),s=r,a=!1;i!==e&&(o?(a=0===n.length,s=function(t,n,i){return a&&(a=!1,t=cr(e,t)),r.call(this,t,cr(e,n),i,e)}):r.length>3&&(s=function(t,n,i){return r.call(this,t,n,i,e)}));let c=i[t](s,...n);return a?cr(e,c):c}function cc(e,t,r){let n=cF(e);a3(n,"iterate",a6);let i=n[t](...r);return(-1===i||!1===i)&&cB(r[0])?(r[0]=cF(r[0]),n[t](...r)):i}function cu(e,t,r=[]){aK(),aY();let n=cF(e)[t].apply(e,r);return aX(),aZ(),n}let cl=aT("__proto__,__v_isRef,__isVue"),ch=new Set((((Object.getOwnPropertyNames(Symbol)).filter(e=>"arguments"!==e&&"caller"!==e)).map(e=>Symbol[e])).filter(aN));function cd(e){aN(e)||(e=String(e));let t=cF(this);return a3(t,"has",e),t.hasOwnProperty(e)}class cf{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if("__v_skip"===t)return e["__v_skip"];let n=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!n;if("__v_isReadonly"===t)return n;if("__v_isShallow"===t)return i;if("__v_raw"===t)return r===(n?i?cT:cI:i?cO:cE).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;let o=aP(e);if(!n){let e;if(o&&(e=cn[t]))return e;if("hasOwnProperty"===t)return cd}let s=Reflect.get(e,t,cz(e)?e:r);if((aN(t)?ch.has(t):cl(t))||(n||a3(e,"get",t),i))return s;if(cz(s)){let e=o&&az(t)?s:s.value;return n&&aB(e)?cR(e):e}return aB(s)?n?cR(s):cM(s):s}}class cp extends cf{constructor(e=!1){super(!1,e)}set(e,t,r,n){let i=e[t],o=aP(e)&&az(t);if(!this._isShallow){let e=cD(i);if(cN(r)||cD(r)||(i=cF(i),r=cF(r)),!o&&cz(i)&&!cz(r))if(e)return!0;else return i.value=r,!0}let s=o?Number(t)<e.length:aR(e,t),a=Reflect.set(e,t,r,cz(e)?e:n);return e===cF(n)&&a&&(s?aq(r,i)&&a7(e,"set",t,r,i):a7(e,"add",t,r)),a}deleteProperty(e,t){let r=aR(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&a7(e,"delete",t,void 0,n),i}has(e,t){let r=Reflect.has(e,t);return aN(t)&&ch.has(t)||a3(e,"has",t),r}ownKeys(e){return a3(e,"iterate",aP(e)?"length":a5),Reflect.ownKeys(e)}}class cg extends cf{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let cm=new cp,cv=new cg,cy=e=>e,cb=e=>Reflect.getPrototypeOf(e);function cw(e,t,r){return function(...n){let i=this["__v_raw"],o=cF(i),s=aL(o),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=i[e](...n),l=r?cy:t?cU:cj;return t||a3(o,"iterate",c?a8:a5),aA(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[l(e[0]),l(e[1])]:l(e),done:t}}})}}function cx(e){return function(){return"delete"!==e&&("clear"===e?void 0:this)}}function c_(e,t){let r={get(r){let n=this["__v_raw"],i=cF(n),o=cF(r);e||(aq(r,o)&&a3(i,"get",r),a3(i,"get",o));let{has:s}=cb(i),a=t?cy:e?cU:cj;return s.call(i,r)?a(n.get(r)):s.call(i,o)?a(n.get(o)):void(n!==i&&n.get(r))},get size(){let t=this["__v_raw"];return e||a3(cF(t),"iterate",a5),t.size},has(t){let r=this["__v_raw"],n=cF(r),i=cF(t);return e||(aq(t,i)&&a3(n,"has",t),a3(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)},forEach(r,n){let i=this,o=i["__v_raw"],s=cF(o),a=t?cy:e?cU:cj;return e||a3(s,"iterate",a5),o.forEach((e,t)=>r.call(n,a(e),a(t),i))}};aA(r,e?{add:cx("add"),set:cx("set"),delete:cx("delete"),clear:cx("clear")}:{add(e){let r=cF(this),n=cb(r),i=cF(e),o=t||cN(e)||cD(e)?e:i,s=n.has.call(r,o)||aq(e,o)&&n.has.call(r,e)||aq(i,o)&&n.has.call(r,i);return s||(r.add(o),a7(r,"add",o,o)),this},set(e,r){t||cN(r)||cD(r)||(r=cF(r));let n=cF(this),{has:i,get:o}=cb(n),s=i.call(n,e);s||(e=cF(e),s=i.call(n,e));let a=o.call(n,e);return n.set(e,r),s?aq(r,a)&&a7(n,"set",e,r,a):a7(n,"add",e,r),this},delete(e){let t=cF(this),{has:r,get:n}=cb(t),i=r.call(t,e);i||(e=cF(e),i=r.call(t,e));let o=n?n.call(t,e):void 0,s=t.delete(e);return i&&a7(t,"delete",e,void 0,o),s},clear(){let e=cF(this),t=0!==e.size,r,n=e.clear();return t&&a7(e,"clear",void 0,void 0,r),n}});let n=["keys","values","entries",Symbol.iterator];return n.forEach(n=>{r[n]=cw(n,e,t)}),r}function ck(e,t){let r=c_(e,t);return(t,n,i)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(aR(r,n)&&n in t?r:t,n,i)}let cS={get:ck(!1,!1)},cC={get:ck(!0,!1)},cE=new WeakMap,cO=new WeakMap,cI=new WeakMap,cT=new WeakMap;function cA(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function cM(e){return cD(e)?e:cP(e,!1,cm,cS,cE)}function cR(e){return cP(e,!0,cv,cC,cI)}function cP(e,t,r,n,i){if(!aB(e)||e["__v_raw"]&&!(t&&e["__v_isReactive"])||e["__v_skip"]||!Object.isExtensible(e))return e;let o=i.get(e);if(o)return o;let s=cA(aU(e));if(0===s)return e;let a=new Proxy(e,2===s?n:r);return i.set(e,a),a}function cL(e){return cD(e)?cL(e["__v_raw"]):!!(e&&e["__v_isReactive"])}function cD(e){return!!(e&&e["__v_isReadonly"])}function cN(e){return!!(e&&e["__v_isShallow"])}function cB(e){return!!e&&!!e["__v_raw"]}function cF(e){let t=e&&e["__v_raw"];return t?cF(t):e}let cj=e=>aB(e)?cM(e):e,cU=e=>aB(e)?cR(e):e;function cz(e){return!!e&&!0===e["__v_isRef"]}function cq(e){return cz(e)?e.value:e}function cH(e){let t=aP(e)?Array(e.length):{};for(let r in e)t[r]=cW(e,r);return t}class c${constructor(e,t,r){this._object=e,this._defaultValue=r,this["__v_isRef"]=!0,this._value=void 0,this._key=aN(t)?t:String(t),this._raw=cF(e);let n=!0,i=e;if(!aP(e)||aN(this._key)||!az(this._key))do n=!cB(i)||cN(i);while(n&&(i=i["__v_raw"]))this._shallow=n}get value(){let e=this._object[this._key];return this._shallow&&(e=cq(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&cz(this._raw[this._key])){let t=this._object[this._key];if(cz(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return a9(this._raw,this._key)}}function cW(e,t,r){return new c$(e,t,r)}function cV(e,t,r){let n=cM({isLoading:!1,isSuccessful:!1,hasError:!1,response:null,error:null});return n.isLoading=!0,n.error=null,e.request(t).then(r).then(e=>{n.response=e,n.isSuccessful=!0}).catch(e=>{n.error=e?.data,n.hasError=!0}).finally(()=>{n.isLoading=!1}),n}function cY(e,t,r){let n=cM({response:null,error:null,isLoading:!1,isSuccessful:!1,hasError:!1}),i=async i=>{let o=e.request(i?{...t,...i}:t);n.isLoading=!0;try{let e=await o.then(r);return n.response=e,n.error=null,n.isSuccessful=!0,n.hasError=!1,e}catch(e){throw n.response=null,n.error=e?.data,n.isSuccessful=!1,n.hasError=!0,Error(e?.data)}finally{n.isLoading=!1}};return{...cH(n),execute:i}}let cX=(e,t,r)=>{if(!Array.isArray(e))return e.___group_name=iv(e,t,""),e.___identity=iv(e,r,""),e;{let n=[];return e.forEach(e=>{n.push(cX(e,t,r))}),n}};class cJ{eventTarget;constructor(e=""){this.eventTarget=document.appendChild(document.createComment(e))}on(e,t){this.eventTarget.addEventListener(e,t)}once(e,t){this.eventTarget.addEventListener(e,t,{once:!0})}off(e,t){this.eventTarget.removeEventListener(e,t)}emit(e,t){let r=new CustomEvent(e,{detail:t});return this.eventTarget.dispatchEvent(r)}}let cG=new cJ("shr-event-bus");var cK=r(2242),cZ=r.n(cK);class cQ{pusher;setupPusherConnection(e,t){this.pusher=new(cZ())(e,t)}}var c0=new cQ,c1;if("u"<typeof window){var c2={hostname:""};c1={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:c2,referrer:""},screen:{width:0,height:0},location:c2,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else c1=window;var c4={DEBUG:!1,LIB_VERSION:"2.82.1"},c5="__mp_targeting",c8="__mp_recorder",c6="__MP_RECORDER_FILENAME__",c3="__MP_TARGETING_FILENAME__";function c7(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c9(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,i)}function ue(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){c9(o,n,i,s,a,"next",e)}function a(e){c9(o,n,i,s,a,"throw",e)}s(void 0)})}}function ut(e,t,r){return(ut=up()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=Function.bind.apply(e,n),o=new i;return r&&ul(o,r.prototype),o}).apply(null,arguments)}function ur(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function un(e,t,r){return t&&ur(e.prototype,t),e}function ui(){return(ui=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function uo(e){return(uo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function us(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ul(e,t)}function ua(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function uc(e){return -1!==Function.toString.call(e).indexOf("[native code]")}function uu(e,t){if(null==e)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],t.indexOf(i)>=0||(r[i]=e[i]);return r}function ul(e,t){return(ul=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function uh(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ud(e,t){if(e){if("string"==typeof e)return c7(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c7(e,t)}}function uf(e){var t="function"==typeof Map?new Map:void 0;return(uf=function(e){if(null===e||!uc(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ut(e,arguments,uo(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ul(r,e)})(e)}function up(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(up=function(){return!!e})()}function ug(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=ud(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function um(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function uv(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var uy=Object.defineProperty,ub=function(e,t,r){return t in e?uy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},uw=function(e,t,r){return ub(e,(void 0===t?"undefined":uh(t))!=="symbol"?t+"":t,r)},ux,u_=Object.defineProperty,uk=function(e,t,r){return t in e?u_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},uS=function(e,t,r){return uk(e,(void 0===t?"undefined":uh(t))!=="symbol"?t+"":t,r)},uC=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(uC||{}),uE={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},uO={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},uI={},uT=function(){return!!globalThis.Zone};function uA(e){if(uI[e])return uI[e];var t=globalThis[e],r=t.prototype,n=e in uE?uE[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in uO?uO[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!uT())return uI[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return uI[e]=u}catch(e){return r}}var uM={};function uR(e,t,r){var n,i=e+"."+String(r);if(uM[i])return uM[i].call(t);var o=uA(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(uM[i]=s,s.call(t)):t[r]}var uP={};function uL(e,t,r){var n=e+"."+String(r);if(uP[n])return uP[n].bind(t);var i=uA(e),o=i[r];return"function"!=typeof o?t[r]:(uP[n]=o,o.bind(t))}function uD(e){return uR("Node",e,"childNodes")}function uN(e){return uR("Node",e,"parentNode")}function uB(e){return uR("Node",e,"parentElement")}function uF(e){return uR("Node",e,"textContent")}function uj(e,t){return uL("Node",e,"contains")(t)}function uU(e){return uL("Node",e,"getRootNode")()}function uz(e){return e&&"host"in e?uR("ShadowRoot",e,"host"):null}function uq(e){return e.styleSheets}function uH(e){return e&&"shadowRoot"in e?uR("Element",e,"shadowRoot"):null}function u$(e,t){return uR("Element",e,"querySelector")(t)}function uW(e,t){return uR("Element",e,"querySelectorAll")(t)}function uV(){return uA("MutationObserver").constructor}function uY(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var uX={childNodes:uD,parentNode:uN,parentElement:uB,textContent:uF,contains:uj,getRootNode:uU,host:uz,styleSheets:uq,shadowRoot:uH,querySelector:u$,querySelectorAll:uW,mutationObserver:uV,patch:uY};function uJ(e){return e.nodeType===e.ELEMENT_NODE}function uG(e){var t=e&&"host"in e&&"mode"in e&&uX.host(e)||null;return!!(t&&"shadowRoot"in t&&uX.shadowRoot(t)===e)}function uK(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function uZ(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function uQ(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function u0(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,function(e){return u1(e,r)}).join("");return uZ(n)}catch(e){return null}}function u1(e,t){if(u4(e)){var r;try{r=u0(e.styleSheet)||uQ(e)}catch(t){r=e.cssText}return e.styleSheet.href?lc(r,e.styleSheet.href):r}var n=e.cssText;return(u5(e)&&e.selectorText.includes(":")&&(n=u2(n)),t)?lc(n,t):n}function u2(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function u4(e){return"styleSheet"in e}function u5(e){return"selectorText"in e}var u8=function(){function e(){uS(this,"idNodeMap",new Map),uS(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return -1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function u6(){return new u8}function u3(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&u7(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function u7(e){return e.toLowerCase()}var u9="__rrweb_original__";function le(e){var t=e.getContext("2d");if(!t)return!0;for(var r=50,n=0;n<e.width;n+=r)for(var i=0;i<e.height;i+=r){var o=t.getImageData,s=u9 in o?o[u9]:o,a=new Uint32Array(s.call(t,n,i,Math.min(r,e.width-n),Math.min(r,e.height-i)).data.buffer);if(a.some(function(e){return 0!==e}))return!1}return!0}function lt(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?u7(t):null}function lr(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n=/\.([0-9a-z]+)(?:$)/i,i=r.pathname.match(n),o;return null!=(o=null==i?void 0:i[1])?o:null}function ln(e){return(e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}var li=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,lo=/^(?:[a-z+]+:)?\/\//i,ls=/^www\..*/i,la=/^(data:)([^,]*),(.*)/i;function lc(e,t){return(e||"").replace(li,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;if(lo.test(a)||ls.test(a)||la.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+(ln(t)+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h=ug(l),d;!(d=h()).done;){var f=d.value;"."!==f&&(".."===f?u.pop():u.push(f))}return"url("+c+u.join("/")+c+")"})}function lu(e,t){return(void 0===t&&(t=!1),t)?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function ll(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e){for(var s=lu(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"==typeof n[c].textContent){for(var u=lu(n[c].textContent,r),l=100,h=3;h<u.length&&(u[h].match(/[a-zA-Z0-9]/)||-1!==u.indexOf(u.substring(0,h),1));h++);for(;h<u.length;h++){var d=u.substring(0,h),f=s.split(d),p=-1;if(2===f.length)p=f[0].length;else if(f.length>2&&""===f[0]&&""!==n[c-1].textContent)p=s.indexOf(d,1);else if(1===f.length){if(d=d.substring(0,d.length-1),(f=s.split(d)).length<=1)return i.push(e),i;h=l+1}else h===u.length-1&&(p=s.indexOf(d));if(f.length>=2&&h>l){var g=n[c-1].textContent;if(g&&"string"==typeof g){var m=lu(g).length;p=s.indexOf(d,m)}-1===p&&(p=f[0].length)}if(-1!==p){for(var v=Math.floor(p/a);v>0&&v<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var y=lu(e.substring(0,v),r);if(y.length===p){i.push(e.substring(0,v)),e=e.substring(v),s=s.substring(p);break}y.length<p?v+=Math.max(1,Math.floor((p-y.length)/a)):v-=Math.max(1,Math.floor((y.length-p)*a))}break}}}}return i.push(e),i}function lh(e,t){return ll(e,t).join("/* rr_split */")}var ld=1,lf=RegExp("[^a-z0-9-_:]"),lp=-2;function lg(){return ld++}function lm(e){if(ua(e,HTMLFormElement))return"form";var t=u7(e.tagName);return lf.test(t)?"div":t}var lv,ly,lb=/^[^ \t\n\r\u000c]+/,lw=/^[, \t\n\r\u000c]+/;function lx(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}var i=[];while(1){if(n(lw),r>=t.length)break;var o=n(lb);if(","===o.slice(-1))o=lk(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=lk(e,o);var a=!1;while(1){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else if(","===c){r+=1,i.push((o+s).trim());break}else"("===c&&(a=!0);s+=c,r+=1}}}return i.join(", ")}var l_=new WeakMap;function lk(e,t){return t&&""!==t.trim()?lC(e,t):t}function lS(e){return!!("svg"===e.tagName||e.ownerSVGElement)}function lC(e,t){var r=l_.get(e);if(r||(r=e.createElement("a"),l_.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function lE(e,t,r,n){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return lk(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return lk(e,n);if("srcset"===r)return lx(e,n);if("style"===r)return lc(n,lC(e));else if("object"===t&&"data"===r)return lk(e,n);return n}function lO(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function lI(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}function lT(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&lT(uX.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&lT(uX.parentNode(e),t,r)}function lA(e,t,r,n){var i;if(uJ(e)){if(i=e,!uX.childNodes(i).length)return!1}else{if(null===uX.parentElement(e))return!1;i=uX.parentElement(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(lT(i,t,n))return!0;if(r){if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}}catch(e){}return!1}function lM(e,t,r){var n=e.contentWindow;if(n){var i=!1,o;try{o=n.document.readyState}catch(e){return}if("complete"!==o){var s=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(s),i=!0,t()});return}var a="about:blank";if(n.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}function lR(e,t,r){var n=!1,i;try{i=e.sheet}catch(e){return}if(!i){var o=setTimeout(function(){n||(t(),n=!0)},r);e.addEventListener("load",function(){clearTimeout(o),n=!0,t()})}}function lP(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskTextFn,h=t.maskInputFn,d=t.dataURLOptions,f=void 0===d?{}:d,p=t.inlineImages,g=t.recordCanvas,m=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,b=t.cssCaptured,w=void 0!==b&&b,x=lL(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:uC.Document,childNodes:[],compatMode:e.compatMode};return{type:uC.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:uC.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return lN(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:f,inlineImages:p,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:y,rootId:x});case e.TEXT_NODE:return lD(e,{doc:r,needsMask:s,maskTextFn:l,rootId:x,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:uC.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:uC.Comment,textContent:uX.textContent(e)||"",rootId:x};default:return!1}}function lL(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}function lD(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=uX.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":!o&&(c=uX.textContent(e),u&&c&&(c=lc(c,lC(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,uX.parentElement(e)):c.replace(/[\S]/g,"*")),{type:uC.Text,textContent:c||"",rootId:i}}function lN(e,t){for(var r=t.doc,n=t.blockClass,i=t.blockSelector,o=t.inlineStylesheet,s=t.maskInputOptions,a=void 0===s?{}:s,c=t.maskInputFn,u=t.dataURLOptions,l=void 0===u?{}:u,h=t.inlineImages,d=t.recordCanvas,f=t.keepIframeSrcFn,p=t.newlyAddedElement,g=void 0!==p&&p,m=t.rootId,v=lI(e,n,i),y=lm(e),b={},w=e.attributes.length,x=0;x<w;x++){var _=e.attributes[x];lO(y,_.name,_.value)||(b[_.name]=lE(r,y,u7(_.name),_.value))}if("link"===y&&o){var k=Array.from(r.styleSheets).find(function(t){return t.href===e.href}),S=null;k&&(S=u0(k)),S&&(delete b.rel,delete b.href,b._cssText=S)}if("style"===y&&e.sheet){var C=u0(e.sheet);C&&(e.childNodes.length>1&&(C=lh(C,e)),b._cssText=C)}if("input"===y||"textarea"===y||"select"===y){var E=e.value,O=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&E?b.value=u3({element:e,type:lt(e),tagName:y,value:E,maskInputOptions:a,maskInputFn:c}):O&&(b.checked=O)}if("option"===y&&(e.selected&&!a["select"]?b.selected=!0:delete b.selected),"dialog"===y&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===y&&d){if("2d"===e.__context)le(e)||(b.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){var I=e.toDataURL(l.type,l.quality),T=r.createElement("canvas");T.width=e.width,T.height=e.height;var A=T.toDataURL(l.type,l.quality);I!==A&&(b.rr_dataURL=I)}}if("img"===y&&h){lv||(ly=(lv=r.createElement("canvas")).getContext("2d"));var M=e,R=M.currentSrc||M.getAttribute("src")||"<unknown-src>",P=M.crossOrigin,L=function(){M.removeEventListener("load",L);try{lv.width=M.naturalWidth,lv.height=M.naturalHeight,ly.drawImage(M,0,0),b.rr_dataURL=lv.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==M.crossOrigin){M.crossOrigin="anonymous",M.complete&&0!==M.naturalWidth?L():M.addEventListener("load",L);return}console.warn("Cannot inline img src="+R+"! Error: "+e)}"anonymous"===M.crossOrigin&&(P?b.crossOrigin=P:M.removeAttribute("crossorigin"))};M.complete&&0!==M.naturalWidth?L():M.addEventListener("load",L)}if("audio"===y||"video"===y){var D=b;D.rr_mediaState=e.paused?"paused":"played",D.rr_mediaCurrentTime=e.currentTime,D.rr_mediaPlaybackRate=e.playbackRate,D.rr_mediaMuted=e.muted,D.rr_mediaLoop=e.loop,D.rr_mediaVolume=e.volume}if(!g&&(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),v){var N=e.getBoundingClientRect(),B=N.width,F=N.height;b={class:b.class,rr_width:""+B+"px",rr_height:""+F+"px"}}var j;"iframe"!==y||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(y)&&(j=!0)}catch(e){}return{type:uC.Element,tagName:y,attributes:b,childNodes:[],isSVG:lS(e)||void 0,needBlock:v,rootId:m,isCustom:j}}function lB(e){return null==e?"":e.toLowerCase()}function lF(e,t){if(t.comment&&e.type===uC.Comment)return!0;if(e.type===uC.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===lr(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(lB(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===lB(e.attributes.name)||"icon"===lB(e.attributes.rel)||"apple-touch-icon"===lB(e.attributes.rel)||"shortcut icon"===lB(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&lB(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(lB(e.attributes.property).match(/^(og|twitter|fb):/)||lB(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===lB(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===lB(e.attributes.name)||"googlebot"===lB(e.attributes.name)||"bingbot"===lB(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===lB(e.attributes.name)||"generator"===lB(e.attributes.name)||"framework"===lB(e.attributes.name)||"publisher"===lB(e.attributes.name)||"progid"===lB(e.attributes.name)||lB(e.attributes.property).match(/^article:/)||lB(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===lB(e.attributes.name)||"yandex-verification"===lB(e.attributes.name)||"csrf-token"===lB(e.attributes.name)||"p:domain_verify"===lB(e.attributes.name)||"verify-v1"===lB(e.attributes.name)||"verification"===lB(e.attributes.name)||"shopify-checkout-api-token"===lB(e.attributes.name)))return!0}}return!1}function lj(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,d=t.maskInputOptions,f=void 0===d?{}:d,p=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,b=t.inlineImages,w=void 0!==b&&b,x=t.recordCanvas,_=void 0!==x&&x,k=t.onSerialize,S=t.onIframeLoad,C=t.iframeLoadTimeout,E=void 0===C?5e3:C,O=t.onStylesheetLoad,I=t.stylesheetLoadTimeout,T=void 0===I?5e3:I,A=t.keepIframeSrcFn,M=void 0===A?function(){return!1}:A,R=t.newlyAddedElement,P=void 0!==R&&R,L=t.cssCaptured,D=void 0!==L&&L,N=t.needsMask,B=t.preserveWhiteSpace,F=void 0===B||B;if(!N){var j=void 0===N;N=lA(e,s,a,j)}var U=lP(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:g,dataURLOptions:y,inlineImages:w,recordCanvas:_,keepIframeSrcFn:M,newlyAddedElement:P,cssCaptured:D});if(!U)return console.warn(e,"not serialized"),null;var z;z=n.hasNode(e)?n.getId(e):!lF(U,m)&&(F||U.type!==uC.Text||U.textContent.replace(/^\s+|\s+$/gm,"").length)?lg():lp;var q=Object.assign(U,{id:z});if(n.add(e,q),z===lp)return null;k&&k(e);var H=!u;if(q.type===uC.Element){H=H&&!q.needBlock,delete q.needBlock;var $=uX.shadowRoot(e);$&&uK($)&&(q.isShadowHost=!0)}if((q.type===uC.Document||q.type===uC.Element)&&H){m.headWhitespace&&q.type===uC.Element&&"head"===q.tagName&&(F=!1);var W={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:_,preserveWhiteSpace:F,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:O,stylesheetLoadTimeout:T,keepIframeSrcFn:M,cssCaptured:!1};if(q.type===uC.Element&&"textarea"===q.tagName&&void 0!==q.attributes.value);else{q.type===uC.Element&&void 0!==q.attributes._cssText&&"string"==typeof q.attributes._cssText&&(W.cssCaptured=!0);for(var V=ug(Array.from(uX.childNodes(e))),Y;!(Y=V()).done;){var X=Y.value,J=lj(X,W);J&&q.childNodes.push(J)}}var G=null;if(uJ(e)&&(G=uX.shadowRoot(e)))for(var K=ug(Array.from(uX.childNodes(G))),Z;!(Z=K()).done;){var Q=Z.value,ee=lj(Q,W);ee&&(uK(G)&&(ee.isShadow=!0),q.childNodes.push(ee))}}var et=uX.parentNode(e);return et&&uG(et)&&uK(et)&&(q.isShadow=!0),q.type===uC.Element&&"iframe"===q.tagName&&lM(e,function(){var t=e.contentDocument;if(t&&S){var r=lj(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:_,preserveWhiteSpace:F,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:O,stylesheetLoadTimeout:T,keepIframeSrcFn:M});r&&S(e,r)}},E),q.type===uC.Element&&"link"===q.tagName&&"string"==typeof q.attributes.rel&&("stylesheet"===q.attributes.rel||"preload"===q.attributes.rel&&"string"==typeof q.attributes.href&&"css"===lr(q.attributes.href))&&lR(e,function(){if(O){var t=lj(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:_,preserveWhiteSpace:F,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:O,stylesheetLoadTimeout:T,keepIframeSrcFn:M});t&&O(e,t)}},T),q}function lU(e,t){var r=t||{},n=r.mirror,i=void 0===n?new u8:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,c=void 0===a?null:a,u=r.maskTextClass,l=void 0===u?"rr-mask":u,h=r.maskTextSelector,d=void 0===h?null:h,f=r.inlineStylesheet,p=void 0===f||f,g=r.inlineImages,m=void 0!==g&&g,v=r.recordCanvas,y=void 0!==v&&v,b=r.maskAllInputs,w=void 0!==b&&b,x=r.maskTextFn,_=r.maskInputFn,k=r.slimDOM,S=void 0!==k&&k,C=r.dataURLOptions,E=r.preserveWhiteSpace,O=r.onSerialize,I=r.onIframeLoad,T=r.iframeLoadTimeout,A=r.onStylesheetLoad,M=r.stylesheetLoadTimeout,R=r.keepIframeSrcFn,P=void 0===R?function(){return!1}:R,L=!0===w?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===w?{password:!0}:w,D=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===S,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===S?{}:S;return lj(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:L,maskTextFn:x,maskInputFn:_,slimDOMOptions:D,dataURLOptions:C,inlineImages:m,recordCanvas:y,preserveWhiteSpace:E,onSerialize:O,onIframeLoad:I,iframeLoadTimeout:T,onStylesheetLoad:A,stylesheetLoadTimeout:M,keepIframeSrcFn:P,newlyAddedElement:!1})}function lz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function lq(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return ua(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var lH={exports:{}},l$=String,lW=function(){return{isColorSupported:!1,reset:l$,bold:l$,dim:l$,italic:l$,underline:l$,inverse:l$,hidden:l$,strikethrough:l$,black:l$,red:l$,green:l$,yellow:l$,blue:l$,magenta:l$,cyan:l$,white:l$,gray:l$,bgBlack:l$,bgRed:l$,bgGreen:l$,bgYellow:l$,bgBlue:l$,bgMagenta:l$,bgCyan:l$,bgWhite:l$}};lH.exports=lW(),lH.exports.createColors=lW;var lV=lH.exports,lY={},lX=Object.freeze(Object.defineProperty({__proto__:null,default:lY},Symbol.toStringTag,{value:"Module"})),lJ=lq(lX),lG=lV,lK=lJ,lZ=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}us(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=lG.isColorSupported),lK&&e&&(r=lK(r));var n=r.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),s=String(o).length,a,c;if(e){var u=lG.createColors(!0),l=u.bold,h=u.gray,d=u.red;a=function(e){return l(d(e))},c=function(e){return h(e)}}else a=c=function(e){return e};return n.slice(i,o).map(function(e,r){var n=i+1+r,o=" "+(" "+n).slice(-s)+" | ";if(n===t.line){var u=c(o.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return a(">")+c(o)+e+"\n "+u+a("^")}return" "+c(o)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(uf(Error)),lQ=lZ;lZ.default=lZ;var l0={};l0.isClean=Symbol("isClean"),l0.my=Symbol("my");var l1={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function l2(e){return e[0].toUpperCase()+e.slice(1)}var l4=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r=this.raw(e,"between","beforeOpen"),n;this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return l1[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+l2(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=l1[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),l5=l4;l4.default=l4;var l8=l5;function l6(e,t){var r=new l8(t);r.stringify(e)}var l3=l6;l6.default=l6;var l7=l0.isClean,l9=l0.my,he=lQ,ht=l5,hr=l3;function hn(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":uh(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return hn(e,r)}):("object"===o&&null!==i&&(i=hn(i)),r[n]=i)}return r}var hi=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[l7]=!1,this[l9]=!0,e)if("nodes"===t){this.nodes=[];for(var r=ug(e[t]),n;!(n=r()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=hn(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new he(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[l7]){this[l7]=!1;var e=this;while(e=e.parent)e[l7]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new ht;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n=this,i=!1,o=ug(t),s;!(s=o()).done;){var a=s.value;a===this?i=!0:i?(this.parent.insertAfter(n,a),n=a):this.parent.insertBefore(n,a)}i||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":uh(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=hr),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},un(e,[{key:"proxyOf",get:function(){return this}}]),e}(),ho=hi;hi.default=hi;var hs=ho,ha=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=ui({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return us(t,e),un(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(hs),hc=ha;ha.default=ha;var hu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",hl=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=hu[64*Math.random()|0];return t},hh={nanoid:hl},hd=lJ.SourceMapConsumer,hf=lJ.SourceMapGenerator,hp=lJ.existsSync,hg=lJ.readFileSync,hm=lJ.dirname,hv=lJ.join;function hy(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var hb=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=hm(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new hd(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return hy(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":uh(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=hm(e),hp(e))return this.mapFile=e,hg(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(ua(t,hd))return hf.fromSourceMap(t).toString();else if(ua(t,hf))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=hv(hm(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),hw=hb;hb.default=hb;var hx=lJ.SourceMapConsumer,h_=lJ.SourceMapGenerator,hk=lJ.fileURLToPath,hS=lJ.pathToFileURL,hC=lJ.isAbsolute,hE=lJ.resolve,hO=hh.nanoid,hI=lJ,hT=lQ,hA=hw,hM=Symbol("fromOffsetCache"),hR=!!(hx&&h_),hP=!!(hE&&hC),hL=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":uh(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!hP||/^\w+:\/\//.test(t.from)||hC(t.from)?this.file=t.from:this.file=hE(t.from)),hP&&hR){var r=new hA(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+hO(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&(void 0===t?"undefined":uh(t))==="object"){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return(i=d?new hT(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new hT(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(hS&&(i.input.url=hS(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[hM])r=this[hM];else{var n=this.css.split("\n");r=Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[hM]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c=r.length-2,u;while(a<c)if(e<r[u=a+(c-a>>1)])c=u-1;else if(e>=r[u+1])a=u+1;else{a=u;break}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:hE(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i=this.map.consumer(),o=i.originalPositionFor({column:t,line:e});if(!o.source)return!1;var s,a;"number"==typeof r&&(s=i.originalPositionFor({column:n,line:r})),a=hC(o.source)?hS(o.source):new URL(o.source,this.map.consumer().sourceRoot||hS(this.map.mapFile));var c={column:o.column,endColumn:s&&s.column,endLine:s&&s.line,line:o.line,url:a.toString()};if("file:"===a.protocol)if(hk)c.file=hk(a);else throw Error("file: protocol is not available in this PostCSS build");var u=i.sourceContentFor(o.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=ui({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},un(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),hD=hL;hL.default=hL,hI&&hI.registerInput&&hI.registerInput(hL);var hN=lJ.SourceMapConsumer,hB=lJ.SourceMapGenerator,hF=lJ.dirname,hj=lJ.relative,hU=lJ.resolve,hz=lJ.sep,hq=lJ.pathToFileURL,hH=hD,h$=!!(hN&&hB),hW=!!(hF&&hU&&hj&&hz),hV=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e=ug(this.previous()),t;!(t=e()).done;){var r=t.value,n=this.toUrl(this.path(r.file)),i=r.root||hF(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new hN(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),hW&&h$&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=hB.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new hB({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new hB({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(i.generated.line=t,i.generated.column=r-1,c.source&&c.source.start?(i.source=e.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1):(i.source=n,i.original.line=1,i.original.column=0),e.map.addMapping(i)),(o=a.match(/\n/g))?(t+=o.length,s=a.lastIndexOf("\n"),r=a.length-s):r+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;(!h||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(i.source=e.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=r-2):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=r-1),e.map.addMapping(i))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?hF(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=hF(hU(r,this.mapOpts.annotation)));var n=hj(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new hH(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(hq){var r=hq(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===hz&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),hY=hV,hX=ho,hJ=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return us(t,e),t}(hX),hG=hJ;hJ.default=hJ;var hK=l0.isClean,hZ=l0.my,hQ=hc,h0=hG,h1=ho,h2,h4,h5,h8;function h6(e){return e.map(function(e){return e.nodes&&(e.nodes=h6(e.nodes)),delete e.source,e})}function h3(e){if(e[hK]=!1,e.proxyOf.nodes)for(var t=ug(e.proxyOf.nodes),r;!(r=t()).done;){var n=r.value;h3(n)}}var h7=function(e){function t(){return e.apply(this,arguments)||this}us(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=ug(t),i;!(i=n()).done;)for(var o=i.value,s=this.normalize(o,this.last),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r=ug(this.nodes),n;!(n=r()).done;){var i=n.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t=this.getIterator(),r,n;while(this.indexes[t]<this.proxyOf.nodes.length){if(r=this.indexes[t],!1===(n=e(this.proxyOf.nodes[r],r)))break;this.indexes[t]+=1}return delete this.indexes[t],n}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(var i=ug(n),o;!(o=i()).done;){var s=o.value;this.proxyOf.nodes.splice(r+1,0,s)}var a;for(var c in this.indexes)r<(a=this.indexes[c])&&(this.indexes[c]=a+n.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r=this.index(e),n=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(var o=ug(i),s;!(s=o()).done;){var a=s.value;this.proxyOf.nodes.splice(r,0,a)}var c;for(var u in this.indexes)r<=(c=this.indexes[u])&&(this.indexes[u]=c+i.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=h6(h2(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i=ug(e),o;!(o=i()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a=ug(e),c;!(c=a()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new hQ(e)]}else if(e.selector)e=[new h4(e)];else if(e.name)e=[new h5(e)];else if(e.text)e=[new h0(e)];else throw Error("Unknown node type in node creation");var l=e.map(function(e){return e[hZ]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[hK]&&h3(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n=ug(t),i;!(i=n()).done;){for(var o=i.value,s=this.normalize(o,this.first,"prepend").reverse(),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+s.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e=ug(this.proxyOf.nodes),t;!(t=e()).done;){var r=t.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},un(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(h1);h7.registerParse=function(e){h2=e},h7.registerRule=function(e){h4=e},h7.registerAtRule=function(e){h5=e},h7.registerRoot=function(e){h8=e};var h9=h7;h7.default=h7,h7.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,h5.prototype):"rule"===e.type?Object.setPrototypeOf(e,h4.prototype):"decl"===e.type?Object.setPrototypeOf(e,hQ.prototype):"comment"===e.type?Object.setPrototypeOf(e,h0.prototype):"root"===e.type&&Object.setPrototypeOf(e,h8.prototype),e[hZ]=!0,e.nodes&&e.nodes.forEach(function(e){h7.rebuild(e)})};var de=h9,dt,dr,dn=function(e){function t(t){var r;return(r=e.call(this,ui({type:"document"},t))||this).nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new dt(new dr,this,e);return t.stringify()},t}(de);dn.registerLazyResult=function(e){dt=e},dn.registerProcessor=function(e){dr=e};var di=dn;dn.default=dn;var ds=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),da=ds;ds.default=ds;var dc=da,du=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new dc(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},un(e,[{key:"content",get:function(){return this.css}}]),e}(),dl=du;du.default=du;var dh=39,dd=34,df=92,dp=47,dg=10,dm=32,dv=12,dy=9,db=13,dw=91,dx=93,d_=40,dk=41,dS=123,dC=125,dE=59,dO=42,dI=58,dT=64,dA=/[\t\n\f\r "#'()/;[\\\]{}]/g,dM=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,dR=/.[\r\n"'(/\\]/,dP=/[\da-f]/i,dL=function(e,t){void 0===t&&(t={});var r=e.css.valueOf(),n=t.ignoreErrors,i,o,s,a,c,u,l,h,d,f,p=r.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=p},nextToken:function(e){if(v.length)return v.pop();if(!(g>=p)){var t=!!e&&e.ignoreUnclosed;switch(i=r.charCodeAt(g)){case dg:case dm:case dy:case db:case dv:o=g;do o+=1,i=r.charCodeAt(o);while(i===dm||i===dg||i===dy||i===db||i===dv)f=["space",r.slice(g,o)],g=o-1;break;case dw:case dx:case dS:case dC:case dI:case dE:case dk:var b=String.fromCharCode(i);f=[b,b,g];break;case d_:if(h=m.length?m.pop()[1]:"",d=r.charCodeAt(g+1),"url"===h&&d!==dh&&d!==dd&&d!==dm&&d!==dg&&d!==dy&&d!==dv&&d!==db){o=g;do{if(u=!1,-1===(o=r.indexOf(")",o+1)))if(n||t){o=g;break}else y("bracket");l=o;while(r.charCodeAt(l-1)===df)l-=1,u=!u}while(u)f=["brackets",r.slice(g,o+1),g,o],g=o}else o=r.indexOf(")",g+1),a=r.slice(g,o+1),-1===o||dR.test(a)?f=["(","(",g]:(f=["brackets",a,g,o],g=o);break;case dh:case dd:s=i===dh?"'":'"',o=g;do{if(u=!1,-1===(o=r.indexOf(s,o+1)))if(n||t){o=g+1;break}else y("string");l=o;while(r.charCodeAt(l-1)===df)l-=1,u=!u}while(u)f=["string",r.slice(g,o+1),g,o],g=o;break;case dT:dA.lastIndex=g+1,dA.test(r),o=0===dA.lastIndex?r.length-1:dA.lastIndex-2,f=["at-word",r.slice(g,o+1),g,o],g=o;break;case df:o=g,c=!0;while(r.charCodeAt(o+1)===df)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==dp&&i!==dm&&i!==dg&&i!==dy&&i!==db&&i!==dv&&(o+=1,dP.test(r.charAt(o)))){while(dP.test(r.charAt(o+1)))o+=1;r.charCodeAt(o+1)===dm&&(o+=1)}f=["word",r.slice(g,o+1),g,o],g=o;break;default:i===dp&&r.charCodeAt(g+1)===dO?(0===(o=r.indexOf("*/",g+2)+1)&&(n||t?o=r.length:y("comment")),f=["comment",r.slice(g,o+1),g,o]):(dM.lastIndex=g+1,dM.test(r),o=0===dM.lastIndex?r.length-1:dM.lastIndex-2,f=["word",r.slice(g,o+1),g,o],m.push(f)),g=o;break}return g++,f}},position:function(){return g}}},dD=h9,dN=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}us(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(dD),dB=dN;dN.default=dN,dD.registerAtRule(dN);var dF=h9,dj,dU,dz=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o=ug(i),s;!(s=o()).done;){var a=s.value;a.raws.before=r.raws.before}}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new dj(new dU,this,e);return t.stringify()},t}(dF);dz.registerLazyResult=function(e){dj=e},dz.registerProcessor=function(e){dU=e};var dq=dz;dz.default=dz,dF.registerRoot(dz);var dH={comma:function(e){return dH.split(e,[","],!0)},space:function(e){var t=[" ","\n"," "];return dH.split(e,t)},split:function(e,t,r){for(var n=[],i="",o=!1,s=0,a=!1,c="",u=!1,l=ug(e),h;!(h=l()).done;){var d=h.value;u?u=!1:"\\"===d?u=!0:a?d===c&&(a=!1):'"'===d||"'"===d?(a=!0,c=d):"("===d?s+=1:")"===d?s>0&&(s-=1):0===s&&t.includes(d)&&(o=!0),o?(""!==i&&n.push(i.trim()),i="",o=!1):i+=d}return(r||""!==i)&&n.push(i.trim()),n}},d$=dH;dH.default=dH;var dW=h9,dV=d$,dY=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return us(t,e),un(t,[{key:"selectors",get:function(){return dV.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(dW),dX=dY;dY.default=dY,dW.registerRule(dY);var dJ=hc,dG=dL,dK=hG,dZ=dB,dQ=dq,d0=dX,d1={empty:!0,space:!0};function d2(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var d4=function(){function e(e){this.input=e,this.root=new dQ,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t=new dZ,r,n,i;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if("("===(r=(e=this.tokenizer.nextToken())[0])||"["===r?c.push("("===r?")":"]"):"{"===r&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),0===c.length)if(";"===r){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if("{"===r){s=!0;break}else if("}"===r){if(a.length>0){i=a.length-1,n=a[i];while(n&&"space"===n[0])n=a[--i];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),s&&(t.nodes=[],this.current=t)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r=0,n,i=t-1;i>=0&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}},t.colon=function(e){for(var t=0,r,n,i,o=ug(e.entries()),s;!(s=o()).done;){var a=s.value,c=a[0],u=a[1];if("("===(n=(r=u)[0])&&(t+=1),")"===n&&(t-=1),0===t&&":"===n)if(i)if("word"===i[0]&&"progid"===i[1])continue;else return c;else this.doubleColon(r);i=r}return!1},t.comment=function(e){var t=new dK;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=dG(this.input)},t.decl=function(e,t){var r=new dJ;this.init(r,e[0][2]);var n=e[e.length-1];";"===n[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||d2(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}var o;r.raws.between="";while(e.length){if(":"===(o=e.shift())[0]){r.raws.between+=o[1];break}"word"===o[0]&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1]}("_"===r.prop[0]||"*"===r.prop[0])&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s=[],a;while(e.length){if("space"!==(a=e[0][0])&&"comment"!==a)break;s.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(o=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===o[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var f=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==o[0]&&"comment"!==o[0])break}var p=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});p&&(r.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new d0;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if("space"!==(c=a[a.length-1][0])&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s=r.length,a="",c=!0,u,l,h=0;h<s;h+=1)"space"!==(o=(i=r[h])[0])||h!==s-1||n?"comment"===o?(l=r[h-1]?r[h-1][0]:"empty",u=r[h+1]?r[h+1][0]:"empty",d1[l]||d1[u]||","===a.slice(-1)?c=!1:a+=i[1]):a+=i[1]:c=!1;if(!c){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:a}}e[t]=a},t.rule=function(e){e.pop();var t=new d0;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if("space"!==(t=e[e.length-1][0])&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if("space"!==(t=e[0][0])&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t="";while(e.length){if("space"!==e[e.length-1][0])break;t=e.pop()[1]+t}return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),d5=d4,d8=h9,d6=d5,d3=hD;function d7(e,t){var r=new d3(e,t),n=new d6(r);try{n.parse()}catch(e){throw e}return n.root}var d9=d7;d7.default=d7,d8.registerParse(d7);var fe=l0.isClean,ft=l0.my,fr=hY,fn=l3,fi=h9,fo=di,fs=dl,fa=d9,fc=dq,fu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},fl={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},fh={Once:!0,postcssPlugin:!0,prepare:!0},fd=0;function ff(e){return(void 0===e?"undefined":uh(e))==="object"&&"function"==typeof e.then}function fp(e){var t=!1,r=fu[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,fd,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,fd,r+"Exit"]:[r,r+"Exit"]}function fg(e){return{eventIndex:0,events:"document"===e.type?["Document",fd,"DocumentExit"]:"root"===e.type?["Root",fd,"RootExit"]:fp(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function fm(e){return e[fe]=!1,e.nodes&&e.nodes.forEach(function(e){return fm(e)}),e}var fv={},fy=function(){function e(t,r,n){var i=this,o;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":uh(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))o=fm(r);else if(ua(r,e)||ua(r,fs))o=fm(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=fa;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(r,n)}catch(e){this.processed=!0,this.error=e}o&&!o[ft]&&fi.rebuild(o)}this.result=new fs(t,o,n),this.helpers=ui({},fv,{postcss:fv,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.prepare?ui({},e,e.prepare(i.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},r=ug(this.plugins),n;!(n=r()).done;){var i=n.value;if((void 0===i?"undefined":uh(i))==="object")for(var o in i){if(!fl[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!fh[o])if("object"===uh(i[o]))for(var s in i[o])t(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&t(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return ue(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return um(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!ff(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[fe])return[3,14];o[fe]=!0,s=[fg(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!ff(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return um(this,function(s){switch(s.label){case 0:r=(t=d.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=ug(e.listeners.OnceExit),f.label=15;case 15:if((d=h()).done)return[3,18];return[5,uv(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":uh(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(ff(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=fn;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new fr(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=ug(this.plugins),t;!(t=e()).done;){var r=t.value,n=this.runOnRoot(r);if(ff(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[fe])i[fe]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o=ug(i.nodes),s;!(s=o()).done;){var a=s.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r=ug(e),n;!(n=r()).done;){var i=n.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(ff(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){var a=t.iterator,c;while(c=r.nodes[r.indexes[a]])if(r.indexes[a]+=1,!c[fe]){c[fe]=!0,e.push(fg(c));return}t.iterator=0,delete r.indexes[a]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===fd){r.nodes&&r.nodes.length&&(r[fe]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[fe]=!0;for(var r=fp(e),n=ug(r),i;!(i=n()).done;){var o=i.value;if(o===fd)e.nodes&&e.each(function(e){e[fe]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},un(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();fy.registerPostcss=function(e){fv=e};var fb=fy;fy.default=fy,fc.registerLazyResult(fy),fo.registerLazyResult(fy);var fw=hY,fx=l3,f_=d9,fk=dl,fS=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=fx;this.result=new fk(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new fw(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},un(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=f_;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),fC=fS;fS.default=fS;var fE=fC,fO=fb,fI=di,fT=dq,fA=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t=[],r=ug(e),n;!(n=r()).done;){var i=n.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":uh(i))==="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if((void 0===i?"undefined":uh(i))==="object"&&i.postcssPlugin)t.push(i);else if("function"==typeof i)t.push(i);else if((void 0===i?"undefined":uh(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return t},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new fO(this,e,t):new fE(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),fM=fA;fA.default=fA,fT.registerProcessor(fA),fI.registerProcessor(fA);var fR=hc,fP=hw,fL=hG,fD=dB,fN=hD,fB=dq,fF=dX;function fj(e,t){if(Array.isArray(e))return e.map(function(e){return fj(e)});var r=e.inputs,n=uu(e,["inputs"]);if(r){t=[];for(var i=ug(r),o;!(o=i()).done;){var s=o.value,a=ui({},s,{__proto__:fN.prototype});a.map&&(a.map=ui({},a.map,{__proto__:fP.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return fj(e,t)})),n.source){var c=n.source,u=c.inputId,l=uu(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new fB(n);if("decl"===n.type)return new fR(n);if("rule"===n.type)return new fF(n);if("comment"===n.type)return new fL(n);if("atrule"===n.type)return new fD(n);else throw Error("Unknown node type: "+e.type)}var fU=fj;fj.default=fj;var fz=lQ,fq=hc,fH=fb,f$=h9,fW=fM,fV=l3,fY=fU,fX=di,fJ=da,fG=hG,fK=dB,fZ=dl,fQ=hD,f0=d9,f1=d$,f2=dX,f4=dq,f5=ho;function f8(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new fW(t)}f8.plugin=function(e,t){var r=!1;function n(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new fW().version,s}var i;return Object.defineProperty(n,"postcss",{get:function(){return i||(i=n()),i}}),n.process=function(e,t,r){return f8([n(r)]).process(e,t)},n},f8.stringify=fV,f8.parse=f0,f8.fromJSON=fY,f8.list=f1,f8.comment=function(e){return new fG(e)},f8.atRule=function(e){return new fK(e)},f8.decl=function(e){return new fq(e)},f8.rule=function(e){return new f2(e)},f8.root=function(e){return new f4(e)},f8.document=function(e){return new fX(e)},f8.CssSyntaxError=fz,f8.Declaration=fq,f8.Container=f$,f8.Processor=fW,f8.Document=fX,f8.Comment=fG,f8.Warning=fJ,f8.AtRule=fK,f8.Result=fZ,f8.Input=fQ,f8.Rule=f2,f8.Root=f4,f8.Node=f5,fH.registerPostcss(f8);var f6=f8;f8.default=f8;var f3=lz(f6);f3.stringify,f3.fromJSON,f3.plugin,f3.parse,f3.list,f3.document,f3.comment,f3.atRule,f3.rule,f3.decl,f3.root,f3.CssSyntaxError,f3.Declaration,f3.Container,f3.Processor,f3.Document,f3.Comment,f3.Warning,f3.AtRule,f3.Result,f3.Input,f3.Rule,f3.Root,f3.Node;var f7=Object.defineProperty,f9=function(e,t,r){return t in e?f7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},pe=function(e,t,r){return f9(e,(void 0===t?"undefined":uh(t))!=="symbol"?t+"":t,r)};function pt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function pr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return ua(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var pn={exports:{}},pi=String,po=function(){return{isColorSupported:!1,reset:pi,bold:pi,dim:pi,italic:pi,underline:pi,inverse:pi,hidden:pi,strikethrough:pi,black:pi,red:pi,green:pi,yellow:pi,blue:pi,magenta:pi,cyan:pi,white:pi,gray:pi,bgBlack:pi,bgRed:pi,bgGreen:pi,bgYellow:pi,bgBlue:pi,bgMagenta:pi,bgCyan:pi,bgWhite:pi}};pn.exports=po(),pn.exports.createColors=po;var ps=pn.exports,pa={},pc=Object.freeze(Object.defineProperty({__proto__:null,default:pa},Symbol.toStringTag,{value:"Module"})),pu=pr(pc),pl=ps,ph=pu,pd=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}us(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=pl.isColorSupported),ph&&e&&(r=ph(r));var n=r.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),s=String(o).length,a,c;if(e){var u=pl.createColors(!0),l=u.bold,h=u.gray,d=u.red;a=function(e){return l(d(e))},c=function(e){return h(e)}}else a=c=function(e){return e};return n.slice(i,o).map(function(e,r){var n=i+1+r,o=" "+(" "+n).slice(-s)+" | ";if(n===t.line){var u=c(o.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return a(">")+c(o)+e+"\n "+u+a("^")}return" "+c(o)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(uf(Error)),pf=pd;pd.default=pd;var pp={};pp.isClean=Symbol("isClean"),pp.my=Symbol("my");var pg={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function pm(e){return e[0].toUpperCase()+e.slice(1)}var pv=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r=this.raw(e,"between","beforeOpen"),n;this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return pg[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+pm(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=pg[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),py=pv;pv.default=pv;var pb=py;function pw(e,t){var r=new pb(t);r.stringify(e)}var px=pw;pw.default=pw;var p_=pp.isClean,pk=pp.my,pS=pf,pC=py,pE=px;function pO(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":uh(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return pO(e,r)}):("object"===o&&null!==i&&(i=pO(i)),r[n]=i)}return r}var pI=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[p_]=!1,this[pk]=!0,e)if("nodes"===t){this.nodes=[];for(var r=ug(e[t]),n;!(n=r()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=pO(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new pS(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[p_]){this[p_]=!1;var e=this;while(e=e.parent)e[p_]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new pC;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n=this,i=!1,o=ug(t),s;!(s=o()).done;){var a=s.value;a===this?i=!0:i?(this.parent.insertAfter(n,a),n=a):this.parent.insertBefore(n,a)}i||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":uh(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=pE),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},un(e,[{key:"proxyOf",get:function(){return this}}]),e}(),pT=pI;pI.default=pI;var pA=pT,pM=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=ui({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return us(t,e),un(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(pA),pR=pM;pM.default=pM;var pP="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",pL=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=pP[64*Math.random()|0];return t},pD={nanoid:pL},pN=pu.SourceMapConsumer,pB=pu.SourceMapGenerator,pF=pu.existsSync,pj=pu.readFileSync,pU=pu.dirname,pz=pu.join;function pq(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var pH=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=pU(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new pN(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return pq(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":uh(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=pU(e),pF(e))return this.mapFile=e,pj(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(ua(t,pN))return pB.fromSourceMap(t).toString();else if(ua(t,pB))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=pz(pU(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),p$=pH;pH.default=pH;var pW=pu.SourceMapConsumer,pV=pu.SourceMapGenerator,pY=pu.fileURLToPath,pX=pu.pathToFileURL,pJ=pu.isAbsolute,pG=pu.resolve,pK=pD.nanoid,pZ=pu,pQ=pf,p0=p$,p1=Symbol("fromOffsetCache"),p2=!!(pW&&pV),p4=!!(pG&&pJ),p5=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":uh(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!p4||/^\w+:\/\//.test(t.from)||pJ(t.from)?this.file=t.from:this.file=pG(t.from)),p4&&p2){var r=new p0(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+pK(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&(void 0===t?"undefined":uh(t))==="object"){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return(i=d?new pQ(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new pQ(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(pX&&(i.input.url=pX(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[p1])r=this[p1];else{var n=this.css.split("\n");r=Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[p1]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c=r.length-2,u;while(a<c)if(e<r[u=a+(c-a>>1)])c=u-1;else if(e>=r[u+1])a=u+1;else{a=u;break}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:pG(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i=this.map.consumer(),o=i.originalPositionFor({column:t,line:e});if(!o.source)return!1;var s,a;"number"==typeof r&&(s=i.originalPositionFor({column:n,line:r})),a=pJ(o.source)?pX(o.source):new URL(o.source,this.map.consumer().sourceRoot||pX(this.map.mapFile));var c={column:o.column,endColumn:s&&s.column,endLine:s&&s.line,line:o.line,url:a.toString()};if("file:"===a.protocol)if(pY)c.file=pY(a);else throw Error("file: protocol is not available in this PostCSS build");var u=i.sourceContentFor(o.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=ui({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},un(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),p8=p5;p5.default=p5,pZ&&pZ.registerInput&&pZ.registerInput(p5);var p6=pu.SourceMapConsumer,p3=pu.SourceMapGenerator,p7=pu.dirname,p9=pu.relative,ge=pu.resolve,gt=pu.sep,gr=pu.pathToFileURL,gn=p8,gi=!!(p6&&p3),go=!!(p7&&ge&&p9&&gt),gs=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e=ug(this.previous()),t;!(t=e()).done;){var r=t.value,n=this.toUrl(this.path(r.file)),i=r.root||p7(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new p6(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),go&&gi&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=p3.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new p3({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new p3({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(i.generated.line=t,i.generated.column=r-1,c.source&&c.source.start?(i.source=e.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1):(i.source=n,i.original.line=1,i.original.column=0),e.map.addMapping(i)),(o=a.match(/\n/g))?(t+=o.length,s=a.lastIndexOf("\n"),r=a.length-s):r+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;(!h||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(i.source=e.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=r-2):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=r-1),e.map.addMapping(i))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?p7(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=p7(ge(r,this.mapOpts.annotation)));var n=p9(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new gn(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(gr){var r=gr(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===gt&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),ga=gs,gc=pT,gu=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return us(t,e),t}(gc),gl=gu;gu.default=gu;var gh=pp.isClean,gd=pp.my,gf=pR,gp=gl,gg=pT,gm,gv,gy,gb;function gw(e){return e.map(function(e){return e.nodes&&(e.nodes=gw(e.nodes)),delete e.source,e})}function gx(e){if(e[gh]=!1,e.proxyOf.nodes)for(var t=ug(e.proxyOf.nodes),r;!(r=t()).done;){var n=r.value;gx(n)}}var g_=function(e){function t(){return e.apply(this,arguments)||this}us(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=ug(t),i;!(i=n()).done;)for(var o=i.value,s=this.normalize(o,this.last),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r=ug(this.nodes),n;!(n=r()).done;){var i=n.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t=this.getIterator(),r,n;while(this.indexes[t]<this.proxyOf.nodes.length){if(r=this.indexes[t],!1===(n=e(this.proxyOf.nodes[r],r)))break;this.indexes[t]+=1}return delete this.indexes[t],n}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(var i=ug(n),o;!(o=i()).done;){var s=o.value;this.proxyOf.nodes.splice(r+1,0,s)}var a;for(var c in this.indexes)r<(a=this.indexes[c])&&(this.indexes[c]=a+n.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r=this.index(e),n=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(var o=ug(i),s;!(s=o()).done;){var a=s.value;this.proxyOf.nodes.splice(r,0,a)}var c;for(var u in this.indexes)r<=(c=this.indexes[u])&&(this.indexes[u]=c+i.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=gw(gm(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i=ug(e),o;!(o=i()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a=ug(e),c;!(c=a()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new gf(e)]}else if(e.selector)e=[new gv(e)];else if(e.name)e=[new gy(e)];else if(e.text)e=[new gp(e)];else throw Error("Unknown node type in node creation");var l=e.map(function(e){return e[gd]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[gh]&&gx(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n=ug(t),i;!(i=n()).done;){for(var o=i.value,s=this.normalize(o,this.first,"prepend").reverse(),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+s.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e=ug(this.proxyOf.nodes),t;!(t=e()).done;){var r=t.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},un(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(gg);g_.registerParse=function(e){gm=e},g_.registerRule=function(e){gv=e},g_.registerAtRule=function(e){gy=e},g_.registerRoot=function(e){gb=e};var gk=g_;g_.default=g_,g_.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,gy.prototype):"rule"===e.type?Object.setPrototypeOf(e,gv.prototype):"decl"===e.type?Object.setPrototypeOf(e,gf.prototype):"comment"===e.type?Object.setPrototypeOf(e,gp.prototype):"root"===e.type&&Object.setPrototypeOf(e,gb.prototype),e[gd]=!0,e.nodes&&e.nodes.forEach(function(e){g_.rebuild(e)})};var gS=gk,gC,gE,gO=function(e){function t(t){var r;return(r=e.call(this,ui({type:"document"},t))||this).nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new gC(new gE,this,e);return t.stringify()},t}(gS);gO.registerLazyResult=function(e){gC=e},gO.registerProcessor=function(e){gE=e};var gI=gO;gO.default=gO;var gT=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),gA=gT;gT.default=gT;var gM=gA,gR=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new gM(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},un(e,[{key:"content",get:function(){return this.css}}]),e}(),gP=gR;gR.default=gR;var gL=39,gD=34,gN=92,gB=47,gF=10,gj=32,gU=12,gz=9,gq=13,gH=91,g$=93,gW=40,gV=41,gY=123,gX=125,gJ=59,gG=42,gK=58,gZ=64,gQ=/[\t\n\f\r "#'()/;[\\\]{}]/g,g0=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,g1=/.[\r\n"'(/\\]/,g2=/[\da-f]/i,g4=function(e,t){void 0===t&&(t={});var r=e.css.valueOf(),n=t.ignoreErrors,i,o,s,a,c,u,l,h,d,f,p=r.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=p},nextToken:function(e){if(v.length)return v.pop();if(!(g>=p)){var t=!!e&&e.ignoreUnclosed;switch(i=r.charCodeAt(g)){case gF:case gj:case gz:case gq:case gU:o=g;do o+=1,i=r.charCodeAt(o);while(i===gj||i===gF||i===gz||i===gq||i===gU)f=["space",r.slice(g,o)],g=o-1;break;case gH:case g$:case gY:case gX:case gK:case gJ:case gV:var b=String.fromCharCode(i);f=[b,b,g];break;case gW:if(h=m.length?m.pop()[1]:"",d=r.charCodeAt(g+1),"url"===h&&d!==gL&&d!==gD&&d!==gj&&d!==gF&&d!==gz&&d!==gU&&d!==gq){o=g;do{if(u=!1,-1===(o=r.indexOf(")",o+1)))if(n||t){o=g;break}else y("bracket");l=o;while(r.charCodeAt(l-1)===gN)l-=1,u=!u}while(u)f=["brackets",r.slice(g,o+1),g,o],g=o}else o=r.indexOf(")",g+1),a=r.slice(g,o+1),-1===o||g1.test(a)?f=["(","(",g]:(f=["brackets",a,g,o],g=o);break;case gL:case gD:s=i===gL?"'":'"',o=g;do{if(u=!1,-1===(o=r.indexOf(s,o+1)))if(n||t){o=g+1;break}else y("string");l=o;while(r.charCodeAt(l-1)===gN)l-=1,u=!u}while(u)f=["string",r.slice(g,o+1),g,o],g=o;break;case gZ:gQ.lastIndex=g+1,gQ.test(r),o=0===gQ.lastIndex?r.length-1:gQ.lastIndex-2,f=["at-word",r.slice(g,o+1),g,o],g=o;break;case gN:o=g,c=!0;while(r.charCodeAt(o+1)===gN)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==gB&&i!==gj&&i!==gF&&i!==gz&&i!==gq&&i!==gU&&(o+=1,g2.test(r.charAt(o)))){while(g2.test(r.charAt(o+1)))o+=1;r.charCodeAt(o+1)===gj&&(o+=1)}f=["word",r.slice(g,o+1),g,o],g=o;break;default:i===gB&&r.charCodeAt(g+1)===gG?(0===(o=r.indexOf("*/",g+2)+1)&&(n||t?o=r.length:y("comment")),f=["comment",r.slice(g,o+1),g,o]):(g0.lastIndex=g+1,g0.test(r),o=0===g0.lastIndex?r.length-1:g0.lastIndex-2,f=["word",r.slice(g,o+1),g,o],m.push(f)),g=o;break}return g++,f}},position:function(){return g}}},g5=gk,g8=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}us(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(g5),g6=g8;g8.default=g8,g5.registerAtRule(g8);var g3=gk,g7,g9,me=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o=ug(i),s;!(s=o()).done;){var a=s.value;a.raws.before=r.raws.before}}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new g7(new g9,this,e);return t.stringify()},t}(g3);me.registerLazyResult=function(e){g7=e},me.registerProcessor=function(e){g9=e};var mt=me;me.default=me,g3.registerRoot(me);var mr={comma:function(e){return mr.split(e,[","],!0)},space:function(e){var t=[" ","\n"," "];return mr.split(e,t)},split:function(e,t,r){for(var n=[],i="",o=!1,s=0,a=!1,c="",u=!1,l=ug(e),h;!(h=l()).done;){var d=h.value;u?u=!1:"\\"===d?u=!0:a?d===c&&(a=!1):'"'===d||"'"===d?(a=!0,c=d):"("===d?s+=1:")"===d?s>0&&(s-=1):0===s&&t.includes(d)&&(o=!0),o?(""!==i&&n.push(i.trim()),i="",o=!1):i+=d}return(r||""!==i)&&n.push(i.trim()),n}},mn=mr;mr.default=mr;var mi=gk,mo=mn,ms=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return us(t,e),un(t,[{key:"selectors",get:function(){return mo.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(mi),ma=ms;ms.default=ms,mi.registerRule(ms);var mc=pR,mu=g4,ml=gl,mh=g6,md=mt,mf=ma,mp={empty:!0,space:!0};function mg(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var mm=function(){function e(e){this.input=e,this.root=new md,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t=new mh,r,n,i;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if("("===(r=(e=this.tokenizer.nextToken())[0])||"["===r?c.push("("===r?")":"]"):"{"===r&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),0===c.length)if(";"===r){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if("{"===r){s=!0;break}else if("}"===r){if(a.length>0){i=a.length-1,n=a[i];while(n&&"space"===n[0])n=a[--i];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),s&&(t.nodes=[],this.current=t)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r=0,n,i=t-1;i>=0&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}},t.colon=function(e){for(var t=0,r,n,i,o=ug(e.entries()),s;!(s=o()).done;){var a=s.value,c=a[0],u=a[1];if("("===(n=(r=u)[0])&&(t+=1),")"===n&&(t-=1),0===t&&":"===n)if(i)if("word"===i[0]&&"progid"===i[1])continue;else return c;else this.doubleColon(r);i=r}return!1},t.comment=function(e){var t=new ml;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=mu(this.input)},t.decl=function(e,t){var r=new mc;this.init(r,e[0][2]);var n=e[e.length-1];";"===n[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||mg(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}var o;r.raws.between="";while(e.length){if(":"===(o=e.shift())[0]){r.raws.between+=o[1];break}"word"===o[0]&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1]}("_"===r.prop[0]||"*"===r.prop[0])&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s=[],a;while(e.length){if("space"!==(a=e[0][0])&&"comment"!==a)break;s.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(o=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===o[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var f=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==o[0]&&"comment"!==o[0])break}var p=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});p&&(r.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new mf;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if("space"!==(c=a[a.length-1][0])&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s=r.length,a="",c=!0,u,l,h=0;h<s;h+=1)"space"!==(o=(i=r[h])[0])||h!==s-1||n?"comment"===o?(l=r[h-1]?r[h-1][0]:"empty",u=r[h+1]?r[h+1][0]:"empty",mp[l]||mp[u]||","===a.slice(-1)?c=!1:a+=i[1]):a+=i[1]:c=!1;if(!c){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:a}}e[t]=a},t.rule=function(e){e.pop();var t=new mf;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if("space"!==(t=e[e.length-1][0])&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if("space"!==(t=e[0][0])&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t="";while(e.length){if("space"!==e[e.length-1][0])break;t=e.pop()[1]+t}return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),mv=mm,my=gk,mb=mv,mw=p8;function mx(e,t){var r=new mw(e,t),n=new mb(r);try{n.parse()}catch(e){throw e}return n.root}var m_=mx;mx.default=mx,my.registerParse(mx);var mk=pp.isClean,mS=pp.my,mC=ga,mE=px,mO=gk,mI=gI,mT=gP,mA=m_,mM=mt,mR={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},mP={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},mL={Once:!0,postcssPlugin:!0,prepare:!0},mD=0;function mN(e){return(void 0===e?"undefined":uh(e))==="object"&&"function"==typeof e.then}function mB(e){var t=!1,r=mR[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,mD,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,mD,r+"Exit"]:[r,r+"Exit"]}function mF(e){return{eventIndex:0,events:"document"===e.type?["Document",mD,"DocumentExit"]:"root"===e.type?["Root",mD,"RootExit"]:mB(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function mj(e){return e[mk]=!1,e.nodes&&e.nodes.forEach(function(e){return mj(e)}),e}var mU={},mz=function(){function e(t,r,n){var i=this,o;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":uh(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))o=mj(r);else if(ua(r,e)||ua(r,mT))o=mj(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=mA;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(r,n)}catch(e){this.processed=!0,this.error=e}o&&!o[mS]&&mO.rebuild(o)}this.result=new mT(t,o,n),this.helpers=ui({},mU,{postcss:mU,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.prepare?ui({},e,e.prepare(i.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},r=ug(this.plugins),n;!(n=r()).done;){var i=n.value;if((void 0===i?"undefined":uh(i))==="object")for(var o in i){if(!mP[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!mL[o])if("object"===uh(i[o]))for(var s in i[o])t(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&t(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return ue(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return um(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!mN(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[mk])return[3,14];o[mk]=!0,s=[mF(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!mN(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return um(this,function(s){switch(s.label){case 0:r=(t=d.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=ug(e.listeners.OnceExit),f.label=15;case 15:if((d=h()).done)return[3,18];return[5,uv(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":uh(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(mN(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=mE;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new mC(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=ug(this.plugins),t;!(t=e()).done;){var r=t.value,n=this.runOnRoot(r);if(mN(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[mk])i[mk]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o=ug(i.nodes),s;!(s=o()).done;){var a=s.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r=ug(e),n;!(n=r()).done;){var i=n.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(mN(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){var a=t.iterator,c;while(c=r.nodes[r.indexes[a]])if(r.indexes[a]+=1,!c[mk]){c[mk]=!0,e.push(mF(c));return}t.iterator=0,delete r.indexes[a]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===mD){r.nodes&&r.nodes.length&&(r[mk]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[mk]=!0;for(var r=mB(e),n=ug(r),i;!(i=n()).done;){var o=i.value;if(o===mD)e.nodes&&e.each(function(e){e[mk]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},un(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();mz.registerPostcss=function(e){mU=e};var mq=mz;mz.default=mz,mM.registerLazyResult(mz),mI.registerLazyResult(mz);var mH=ga,m$=px,mW=m_,mV=gP,mY=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=m$;this.result=new mV(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new mH(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},un(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=mW;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),mX=mY;mY.default=mY;var mJ=mX,mG=mq,mK=gI,mZ=mt,mQ=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t=[],r=ug(e),n;!(n=r()).done;){var i=n.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":uh(i))==="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if((void 0===i?"undefined":uh(i))==="object"&&i.postcssPlugin)t.push(i);else if("function"==typeof i)t.push(i);else if((void 0===i?"undefined":uh(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return t},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new mG(this,e,t):new mJ(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),m0=mQ;mQ.default=mQ,mZ.registerProcessor(mQ),mK.registerProcessor(mQ);var m1=pR,m2=p$,m4=gl,m5=g6,m8=p8,m6=mt,m3=ma;function m7(e,t){if(Array.isArray(e))return e.map(function(e){return m7(e)});var r=e.inputs,n=uu(e,["inputs"]);if(r){t=[];for(var i=ug(r),o;!(o=i()).done;){var s=o.value,a=ui({},s,{__proto__:m8.prototype});a.map&&(a.map=ui({},a.map,{__proto__:m2.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return m7(e,t)})),n.source){var c=n.source,u=c.inputId,l=uu(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new m6(n);if("decl"===n.type)return new m1(n);if("rule"===n.type)return new m3(n);if("comment"===n.type)return new m4(n);if("atrule"===n.type)return new m5(n);else throw Error("Unknown node type: "+e.type)}var m9=m7;m7.default=m7;var ve=pf,vt=pR,vr=mq,vn=gk,vi=m0,vo=px,vs=m9,va=gI,vc=gA,vu=gl,vl=g6,vh=gP,vd=p8,vf=m_,vp=mn,vg=ma,vm=mt,vv=pT;function vy(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new vi(t)}vy.plugin=function(e,t){var r=!1;function n(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new vi().version,s}var i;return Object.defineProperty(n,"postcss",{get:function(){return i||(i=n()),i}}),n.process=function(e,t,r){return vy([n(r)]).process(e,t)},n},vy.stringify=vo,vy.parse=vf,vy.fromJSON=vs,vy.list=vp,vy.comment=function(e){return new vu(e)},vy.atRule=function(e){return new vl(e)},vy.decl=function(e){return new vt(e)},vy.rule=function(e){return new vg(e)},vy.root=function(e){return new vm(e)},vy.document=function(e){return new va(e)},vy.CssSyntaxError=ve,vy.Declaration=vt,vy.Container=vn,vy.Processor=vi,vy.Document=va,vy.Comment=vu,vy.Warning=vc,vy.AtRule=vl,vy.Result=vh,vy.Input=vd,vy.Rule=vg,vy.Root=vm,vy.Node=vv,vr.registerPostcss(vy);var vb=vy;vy.default=vy;var vw=pt(vb);vw.stringify,vw.fromJSON,vw.plugin,vw.parse,vw.list,vw.document,vw.comment,vw.atRule,vw.rule,vw.decl,vw.root,vw.CssSyntaxError,vw.Declaration,vw.Container,vw.Processor,vw.Document,vw.Comment,vw.Warning,vw.AtRule,vw.Result,vw.Input,vw.Rule,vw.Root,vw.Node;var vx=function(){function e(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];pe(this,"parentElement",null),pe(this,"parentNode",null),pe(this,"ownerDocument"),pe(this,"firstChild",null),pe(this,"lastChild",null),pe(this,"previousSibling",null),pe(this,"nextSibling",null),pe(this,"ELEMENT_NODE",1),pe(this,"TEXT_NODE",3),pe(this,"nodeType"),pe(this,"nodeName"),pe(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!ua(t,e)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;while(t.parentNode){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},un(e,[{key:"childNodes",get:function(){var e=[],t=this.firstChild;while(t)e.push(t),t=t.nextSibling;return e}}]),e}(),v_={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},vk={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},vS={},vC=function(){return!!globalThis.Zone};function vE(e){if(vS[e])return vS[e];var t=globalThis[e],r=t.prototype,n=e in v_?v_[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in vk?vk[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!vC())return vS[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return vS[e]=u}catch(e){return r}}var vO={};function vI(e,t,r){var n,i=e+"."+String(r);if(vO[i])return vO[i].call(t);var o=vE(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(vO[i]=s,s.call(t)):t[r]}var vT={};function vA(e,t,r){var n=e+"."+String(r);if(vT[n])return vT[n].bind(t);var i=vE(e),o=i[r];return"function"!=typeof o?t[r]:(vT[n]=o,o.bind(t))}function vM(e){return vI("Node",e,"childNodes")}function vR(e){return vI("Node",e,"parentNode")}function vP(e){return vI("Node",e,"parentElement")}function vL(e){return vI("Node",e,"textContent")}function vD(e,t){return vA("Node",e,"contains")(t)}function vN(e){return vA("Node",e,"getRootNode")()}function vB(e){return e&&"host"in e?vI("ShadowRoot",e,"host"):null}function vF(e){return e.styleSheets}function vj(e){return e&&"shadowRoot"in e?vI("Element",e,"shadowRoot"):null}function vU(e,t){return vI("Element",e,"querySelector")(t)}function vz(e,t){return vI("Element",e,"querySelectorAll")(t)}function vq(){return vE("MutationObserver").constructor}function vH(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var v$={childNodes:vM,parentNode:vR,parentElement:vP,textContent:vL,contains:vD,getRootNode:vN,host:vB,styleSheets:vF,shadowRoot:vj,querySelector:vU,querySelectorAll:vz,mutationObserver:vq,patch:vH};function vW(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var vV="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",vY={map:{},getId:function(){return console.error(vV),-1},getNode:function(){return console.error(vV),null},removeNodeFromMap:function(){console.error(vV)},has:function(){return console.error(vV),!1},reset:function(){console.error(vV)}};function vX(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>t?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},u))}}function vJ(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return vJ(e,t,o||{},!0)}}"u">typeof window&&window.Proxy&&window.Reflect&&(vY=new Proxy(vY,{get:function(e,t,r){return"map"===t&&console.error(vV),Reflect.get(e,t,r)}}));var vG=Date.now;function vK(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=v$.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=v$.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function vZ(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function vQ(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function v0(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:v$.parentElement(e);return t}function v1(e,t,r,n){if(!e)return!1;var i=v0(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||n&&null!==i.closest("."+t))return!0}else if(lT(i,t,n))return!0}catch(e){}return!!(r&&(i.matches(r)||n&&null!==i.closest(r)))||!1}function v2(e,t){return -1!==t.getId(e)}function v4(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||t.getId(e)===lp}function v5(e,t){if(uG(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=v$.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||v5(n,t))}function v8(e){return!!e.changedTouches}function v6(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function v3(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function v7(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function v9(e){return!!e&&(ua(e,vx)&&"shadowRoot"in e?!!e.shadowRoot:!!v$.shadowRoot(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(vG=function(){return(new Date).getTime()});var ye=function(){function e(){uw(this,"id",1),uw(this,"styleIDMap",new WeakMap),uw(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){if(this.has(e))return this.getId(e);var r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function yt(e){var t,r=null;return"getRootNode"in e&&(null==(t=v$.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&v$.host(v$.getRootNode(e))&&(r=v$.host(v$.getRootNode(e))),r}function yr(e){var t=e,r;while(r=yt(t))t=r;return t}function yn(e){var t=e.ownerDocument;if(!t)return!1;var r=yr(e);return v$.contains(t,r)}function yi(e){var t=e.ownerDocument;return!!t&&(v$.contains(t,e)||yn(e))}var yo=function(e){return e[e["DomContentLoaded"]=0]="DomContentLoaded",e[e["Load"]=1]="Load",e[e["FullSnapshot"]=2]="FullSnapshot",e[e["IncrementalSnapshot"]=3]="IncrementalSnapshot",e[e["Meta"]=4]="Meta",e[e["Custom"]=5]="Custom",e[e["Plugin"]=6]="Plugin",e}(yo||{}),ys=function(e){return e[e["Mutation"]=0]="Mutation",e[e["MouseMove"]=1]="MouseMove",e[e["MouseInteraction"]=2]="MouseInteraction",e[e["Scroll"]=3]="Scroll",e[e["ViewportResize"]=4]="ViewportResize",e[e["Input"]=5]="Input",e[e["TouchMove"]=6]="TouchMove",e[e["MediaInteraction"]=7]="MediaInteraction",e[e["StyleSheetRule"]=8]="StyleSheetRule",e[e["CanvasMutation"]=9]="CanvasMutation",e[e["Font"]=10]="Font",e[e["Log"]=11]="Log",e[e["Drag"]=12]="Drag",e[e["StyleDeclaration"]=13]="StyleDeclaration",e[e["Selection"]=14]="Selection",e[e["AdoptedStyleSheet"]=15]="AdoptedStyleSheet",e[e["CustomElement"]=16]="CustomElement",e}(ys||{}),ya=function(e){return e[e["MouseUp"]=0]="MouseUp",e[e["MouseDown"]=1]="MouseDown",e[e["Click"]=2]="Click",e[e["ContextMenu"]=3]="ContextMenu",e[e["DblClick"]=4]="DblClick",e[e["Focus"]=5]="Focus",e[e["Blur"]=6]="Blur",e[e["TouchStart"]=7]="TouchStart",e[e["TouchMove_Departed"]=8]="TouchMove_Departed",e[e["TouchEnd"]=9]="TouchEnd",e[e["TouchCancel"]=10]="TouchCancel",e}(ya||{}),yc=function(e){return e[e["Mouse"]=0]="Mouse",e[e["Pen"]=1]="Pen",e[e["Touch"]=2]="Touch",e}(yc||{}),yu=function(e){return e[e["2D"]=0]="2D",e[e["WebGL"]=1]="WebGL",e[e["WebGL2"]=2]="WebGL2",e}(yu||{}),yl=function(e){return e[e["Play"]=0]="Play",e[e["Pause"]=1]="Pause",e[e["Seeked"]=2]="Seeked",e[e["VolumeChange"]=3]="VolumeChange",e[e["RateChange"]=4]="RateChange",e}(yl||{}),yh=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(yh||{});function yd(e){return"__ln"in e}var yf=function(){function e(){uw(this,"length",0),uw(this,"head",null),uw(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&yd(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&yd(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),yp=function(e,t){return e+"@"+t},yg=function(){function e(){var e=this;uw(this,"frozen",!1),uw(this,"locked",!1),uw(this,"texts",[]),uw(this,"attributes",[]),uw(this,"attributeMap",new WeakMap),uw(this,"removes",[]),uw(this,"mapRemoves",[]),uw(this,"movedMap",{}),uw(this,"addedSet",new Set),uw(this,"movedSet",new Set),uw(this,"droppedSet",new Set),uw(this,"removesSubTreeCache",new Set),uw(this,"mutationCb"),uw(this,"blockClass"),uw(this,"blockSelector"),uw(this,"maskTextClass"),uw(this,"maskTextSelector"),uw(this,"inlineStylesheet"),uw(this,"maskInputOptions"),uw(this,"maskTextFn"),uw(this,"maskInputFn"),uw(this,"keepIframeSrcFn"),uw(this,"recordCanvas"),uw(this,"inlineImages"),uw(this,"slimDOMOptions"),uw(this,"dataURLOptions"),uw(this,"doc"),uw(this,"mirror"),uw(this,"iframeManager"),uw(this,"stylesheetManager"),uw(this,"shadowDomManager"),uw(this,"canvasManager"),uw(this,"processedNodeManager"),uw(this,"unattachedDoc"),uw(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),uw(this,"emit",function(){if(!e.frozen&&!e.locked){var t=[],r=new Set,n=new yf,i=function(t){var r=t,n=lp;while(n===lp)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=v$.parentNode(o);if(s&&yi(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var c=s.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(s)&&(a=!0)}var u=uG(s)?e.mirror.getId(yt(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=lj(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){v3(t,e.mirror)&&e.iframeManager.addIframe(t),v7(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),v9(o)&&e.shadowDomManager.addShadowRoot(v$.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};while(e.mapRemoves.length){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a=ug(e.movedSet),c;!(c=a()).done;){var u=c.value;(!yy(e.removesSubTreeCache,u,e.mirror)||e.movedSet.has(v$.parentNode(u)))&&o(u)}for(var l=ug(e.addedSet),h;!(h=l()).done;){var d=h.value;yw(e.droppedSet,d)||yy(e.removesSubTreeCache,d,e.mirror)?yw(e.movedSet,d)?o(d):e.droppedSet.add(d):o(d)}var f=null;while(n.length){var p=null;if(f){var g=e.mirror.getId(v$.parentNode(f.value)),m=i(f.value);-1!==g&&-1!==m&&(p=f)}if(!p){var v=n.tail;while(v){var y=v;if(v=v.previous,y){var b=e.mirror.getId(v$.parentNode(y.value)),w=i(y.value);if(-1===w)continue;if(-1!==b){p=y;break}var x=y.value,_=v$.parentNode(x);if(_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=v$.host(_),S=e.mirror.getId(k);if(-1!==S){p=y;break}}}}}if(!p){while(n.head)n.removeNode(n.head.value);break}f=p.previous,n.removeNode(p.value),o(p.value)}var C={texts:e.texts.map(function(t){var r=t.node,n=v$.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(C.texts.length||C.attributes.length||C.removes.length||C.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(C))}}),uw(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(v$.childNodes(t),function(e){return v$.textContent(e)||""}).join("");r.attributes.value=u3({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:lt(t),value:n,maskInputFn:e.maskInputFn})}),uw(this,"processMutation",function(t){if(!v4(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=v$.textContent(t.target);v1(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:lA(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,v0(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=lt(n);o=u3({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(v1(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o))if(n.contentDocument)return;else i="rr_src";if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!lO(n.tagName,i))if(a.attributes[i]=lE(e.doc,u7(n.tagName),u7(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u=ug(Array.from(n.style)),l;!(l=u()).done;){var h=l.value,d=n.style.getPropertyValue(h),f=n.style.getPropertyPriority(h);d!==c.style.getPropertyValue(h)||f!==c.style.getPropertyPriority(h)?""===f?a.styleDiff[h]=d:a.styleDiff[h]=[d,f]:a._unchangedStyles[h]=[d,f]}for(var p=ug(Array.from(c.style)),g;!(g=p()).done;){var m=g.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes["rr_open_mode"]="modal":a.attributes["rr_open_mode"]="non-modal");break;case"childList":if(v1(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=uG(t.target)?e.mirror.getId(v$.host(t.target)):e.mirror.getId(t.target);!(v1(t.target,e.blockClass,e.blockSelector,!1)||v4(r,e.mirror,e.slimDOMOptions))&&v2(r,e.mirror)&&(e.addedSet.has(r)?(ym(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||v5(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[yp(n,i)]?ym(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!!(uG(t.target)&&uK(t.target))||void 0}),yv(r,e.removesSubTreeCache))),e.mapRemoves.push(r))});break}}),uw(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!(e.addedSet.has(t)||e.movedSet.has(t))){if(e.mirror.hasNode(t)){if(v4(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[yp(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);!v1(t,e.blockClass,e.blockSelector,!1)&&(v$.childNodes(t).forEach(function(t){return e.genAdds(t)}),v9(t)&&v$.childNodes(v$.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}}),uw(this,"cleanupRemovedNode",function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(e){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(e){}t.childNodes.forEach(function(t){e.cleanupRemovedNode(t)})})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function ym(e,t){e.delete(t),v$.childNodes(t).forEach(function(t){return ym(e,t)})}function yv(e,t){var r=[e];while(r.length){var n=r.pop();if(t.has(n))continue;t.add(n),v$.childNodes(n).forEach(function(e){return r.push(e)})}}function yy(e,t,r){return 0!==e.size&&yb(e,t)}function yb(e,t,r){var n=v$.parentNode(t);return!!n&&e.has(n)}function yw(e,t){return 0!==e.size&&yx(e,t)}function yx(e,t){var r=v$.parentNode(t);return!!r&&(!!e.has(r)||yx(e,r))}var y_;function yk(e){y_=e}function yS(){y_=void 0}var yC=function(e){if(!y_)return e;var t=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(y_&&!0===y_(e))return;throw e}};return t},yE=[];function yO(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function yI(e,t){var r=new yg;yE.push(r),r.init(e);var n=new(vq())(yC(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function yT(e){for(var t=yE.length-1;t>=0;t--){var r=yE[t];r.getDoc()===e&&yE.splice(t,1)}}function yA(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o="number"==typeof r.mousemove?r.mousemove:50,s="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,a=[],c,u=vX(yC(function(e){var r=Date.now()-c;t(a.map(function(e){return e.timeOffset-=r,e}),e),a=[],c=null}),s),l=yC(vX(yC(function(e){var t=yO(e),r=v8(e)?e.changedTouches[0]:e,n=r.clientX,o=r.clientY;c||(c=vG()),a.push({x:n,y:o,id:i.getId(t),timeOffset:vG()-c}),u("u">typeof DragEvent&&ua(e,DragEvent)?ys.Drag:ua(e,MouseEvent)?ys.MouseMove:ys.TouchMove)}),o,{trailing:!1})),h=[vW("mousemove",l,n),vW("touchmove",l,n),vW("drag",l,n)];return yC(function(){h.forEach(function(e){return e()})})}function yM(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null,l=function(e){return function(r){var s=yO(r);if(!v1(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=yc.Mouse;break;case"touch":a=yc.Touch;break;case"pen":a=yc.Pen;break}a===yc.Touch?ya[e]===ya.MouseDown?c="TouchStart":ya[e]===ya.MouseUp&&(c="TouchEnd"):yc.Pen}else v8(r)&&(a=yc.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===yc.Touch||c.startsWith("Mouse")&&a===yc.Mouse)&&(a=null)):ya[e]===ya.Click&&(a=u,u=null);var l=v8(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),d=l.clientX,f=l.clientY;yC(t)(ui({type:ya[c],id:h,x:d,y:f},null!==a&&{pointerType:a}))}}}};return Object.keys(ya).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var t=u7(e),n=l(e);if(window.PointerEvent)switch(ya[e]){case ya.MouseDown:case ya.MouseUp:t=t.replace("mouse","pointer");break;case ya.TouchStart:case ya.TouchEnd:return}c.push(vW(t,n,r))}),yC(function(){c.forEach(function(e){return e()})})}function yR(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=yC(vX(yC(function(e){var s=yO(e);if(!(!s||v1(s,i,o,!0))){var a=n.getId(s);if(s===r&&r.defaultView){var c=vK(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100));return vW("scroll",a,r)}function yP(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1,s=yC(vX(yC(function(){var e=vZ(),t=vQ();(i!==e||o!==t)&&(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200));return vW("resize",s,n)}var yL=["INPUT","TEXTAREA","SELECT"],yD=new WeakMap;function yN(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function d(e){var t=yO(e),n=e.isTrusted,l=t&&t.tagName;if((t&&"OPTION"===l&&(t=v$.parentElement(t)),!(!t||!l||yL.indexOf(l)<0||v1(t,i,o,!0)))&&!(t.classList.contains(s)||a&&t.matches(a))){var d=t.value,p=!1,g=lt(t)||"";"radio"===g||"checkbox"===g?p=t.checked:(c[l.toLowerCase()]||c[g])&&(d=u3({element:t,maskInputOptions:c,tagName:l,type:g,value:d,maskInputFn:u})),f(t,h?{text:d,isChecked:p,userTriggered:n}:{text:d,isChecked:p});var m=t.name;"radio"===g&&m&&p&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(function(e){if(e!==t){var r=e.value;f(e,h?{text:r,isChecked:!p,userTriggered:!1}:{text:r,isChecked:!p})}})}}function f(e,r){var i=yD.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){yD.set(e,r);var o=n.getId(e);yC(t)(ui({},r,{id:o}))}}var p="last"===l.input?["change"]:["input","change"],g=p.map(function(e){return vW(e,yC(d),r)}),m=r.defaultView;if(!m)return function(){g.forEach(function(e){return e()})};var v=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),y=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];if(v&&v.set){var b;(b=g).push.apply(b,[].concat(y.map(function(e){return vJ(e[0],e[1],{set:function(){yC(d)({target:this,isTrusted:!1})}},!1,m)})))}return yC(function(){g.forEach(function(e){return e()})})}function yB(e){var t=[];return function(e,t){if(yX("CSSGroupingRule")&&ua(e.parentRule,CSSGroupingRule)||yX("CSSMediaRule")&&ua(e.parentRule,CSSMediaRule)||yX("CSSSupportsRule")&&ua(e.parentRule,CSSSupportsRule)||yX("CSSConditionRule")&&ua(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules),n=r.indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var i=Array.from(e.parentStyleSheet.cssRules),o=i.indexOf(e);t.unshift(o)}return t}(e,t)}function yF(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function yj(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:yC(function(e,t,o){var s=o[0],a=o[1],c=yF(t,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a=o.CSSStyleSheet.prototype.deleteRule,c,u;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:yC(function(e,t,o){var s=o[0],a=yF(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(c=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:yC(function(e,t,o){var s=o[0],a=yF(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replace:s}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(u=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:yC(function(e,t,o){var s=o[0],a=yF(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replaceSync:s}),e.apply(t,o)})}));var l={};yJ("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(yJ("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),yJ("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),yJ("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:yC(function(e,t,o){var s=o[0],a=o[1],c=yF(t.parentStyleSheet,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:[].concat(yB(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:yC(function(e,t,o){var s=o[0],a=yF(t.parentStyleSheet,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:[].concat(yB(t),[s])}]}),e.apply(t,o)})})}),yC(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=a,c&&(o.CSSStyleSheet.prototype.replace=c),u&&(o.CSSStyleSheet.prototype.replaceSync=u),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}function yU(e,t){var r=e.mirror,n=e.stylesheetManager,i,o,s,a=null;a="#document"===t.nodeName?r.getId(t):r.getId(v$.host(t));var c="#document"===t.nodeName?null==(i=t.defaultView)?void 0:i.Document:null==(s=null==(o=t.ownerDocument)?void 0:o.defaultView)?void 0:s.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{n.adoptStyleSheets(e,a)}catch(e){}return r}}),yC(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function yz(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:yC(function(e,t,s){var c,u=s[0],l=s[1],h=s[2];if(i.has(u))return a.apply(t,[u,l,h]);var d=yF(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),f=d.id,p=d.styleId;return(f&&-1!==f||p&&-1!==p)&&r({id:f,styleId:p,set:{property:u,value:l,priority:h},index:yB(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:yC(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=yF(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,d=l.styleId;return(h&&-1!==h||d&&-1!==d)&&r({id:h,styleId:d,remove:{property:u},index:yB(t.parentRule)}),e.apply(t,s)})}),yC(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}function yq(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=yC(function(e){return vX(yC(function(o){var s=yO(o);if(!(!s||v1(s,r,n,!0))){var a=s.currentTime,c=s.volume,u=s.muted,l=s.playbackRate,h=s.loop;t({type:e,id:i.getId(s),currentTime:a,volume:c,muted:u,playbackRate:l,loop:h})}}),o.media||500)}),c=[vW("play",a(yl.Play),s),vW("pause",a(yl.Pause),s),vW("seeked",a(yl.Seeked),s),vW("volumechange",a(yl.VolumeChange),s),vW("ratechange",a(yl.RateChange),s)];return yC(function(){c.forEach(function(e){return e()})})}function yH(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=vH(r.fonts,"add",function(e){return function(r){return setTimeout(yC(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),yC(function(){i.forEach(function(e){return e()})})}function y$(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=yC(function(){var e=t.getSelection();if(e&&(!s||null==e||!e.isCollapsed)){s=e.isCollapsed||!1;for(var a=[],c=e.rangeCount||0,u=0;u<c;u++){var l=e.getRangeAt(u),h=l.startContainer,d=l.startOffset,f=l.endContainer,p=l.endOffset,g=v1(h,n,i,!0)||v1(f,n,i,!0);g||a.push({start:r.getId(h),startOffset:d,end:r.getId(f),endOffset:p})}o({ranges:a})}});return a(),vW("selectionchange",a)}function yW(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;if(!n||!n.customElements)return function(){};var i=vH(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}});return i}function yV(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,d=e.fontCb,f=e.selectionCb,p=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];if(t.mutation){var o;(o=t).mutation.apply(o,[].concat(n))}r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];if(t.mousemove){var o;(o=t).mousemove.apply(o,[].concat(r))}n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.mouseInteraction){var o;(o=t).mouseInteraction.apply(o,[].concat(r))}i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.scroll){var i;(i=t).scroll.apply(i,[].concat(r))}o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.viewportResize){var i;(i=t).viewportResize.apply(i,[].concat(r))}s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.input){var i;(i=t).input.apply(i,[].concat(r))}a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.mediaInteaction){var i;(i=t).mediaInteaction.apply(i,[].concat(r))}c.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.styleSheetRule){var i;(i=t).styleSheetRule.apply(i,[].concat(r))}u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.styleDeclaration){var i;(i=t).styleDeclaration.apply(i,[].concat(r))}l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.canvasMutation){var i;(i=t).canvasMutation.apply(i,[].concat(r))}h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.font){var i;(i=t).font.apply(i,[].concat(r))}d.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.selection){var i;(i=t).selection.apply(i,[].concat(r))}f.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.customElement){var i;(i=t).customElement.apply(i,[].concat(r))}p.apply(void 0,[].concat(r))}}function yY(e,t){void 0===t&&(t={});var r=e.doc.defaultView;if(!r)return function(){};var n;yV(e,t),e.recordDOM&&(n=yI(e,e.doc));var i=yA(e),o=yM(e),s=yR(e),a=yP(e,{win:r}),c=yN(e),u=yq(e),l=function(){},h=function(){},d=function(){},f=function(){};e.recordDOM&&(l=yj(e,{win:r}),h=yU(e,e.doc),d=yz(e,{win:r}),e.collectFonts&&(f=yH(e)));for(var p=y$(e),g=yW(e),m=[],v=ug(e.plugins),y;!(y=v()).done;){var b=y.value;m.push(b.observer(b.callback,r,b.options))}return yC(function(){yE.forEach(function(e){return e.reset()}),null==n||n.disconnect(),i(),o(),s(),a(),c(),u(),l(),h(),d(),f(),p(),g(),m.forEach(function(e){return e()})})}function yX(e){return void 0!==window[e]}function yJ(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var yG=function(){function e(e){uw(this,"iframeIdToRemoteIdMap",new WeakMap),uw(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),yK=function(){function e(e){uw(this,"iframes",new WeakMap),uw(this,"crossOriginIframeMap",new WeakMap),uw(this,"crossOriginIframeMirror",new yG(lg)),uw(this,"crossOriginIframeStyleMirror"),uw(this,"crossOriginIframeRootIdMap",new WeakMap),uw(this,"iframeContentDocumentMap",new WeakMap),uw(this,"iframeObserverCleanupMap",new WeakMap),uw(this,"mirror"),uw(this,"mutationCb"),uw(this,"wrappedEmit"),uw(this,"loadListener"),uw(this,"stylesheetManager"),uw(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new yG(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin){var r=e.source;if(r){var n=this.crossOriginIframeMap.get(e.source);if(n){var i=this.transformCrossOriginEvent(n,t.data.event);i&&this.wrappedEmit(i,t.data.isCheckout)}}}},t.transformCrossOriginEvent=function(e,t){var r=this,n;switch(t.type){case yo.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:yo.IncrementalSnapshot,data:{source:ys.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case yo.Meta:case yo.Load:case yo.DomContentLoaded:break;case yo.Plugin:return t;case yo.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case yo.IncrementalSnapshot:switch(t.data.source){case ys.Mutation:return t.data.adds.forEach(function(t){r.replaceIds(t,e,["parentId","nextId","previousId"]),r.replaceIdOnNode(t.node,e);var n=r.crossOriginIframeRootIdMap.get(e);n&&r.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(function(t){r.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){r.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){r.replaceIds(t,e,["id"])}),t;case ys.Drag:case ys.TouchMove:case ys.MouseMove:return t.data.positions.forEach(function(t){r.replaceIds(t,e,["id"])}),t;case ys.ViewportResize:return!1;case ys.MediaInteraction:case ys.MouseInteraction:case ys.Scroll:case ys.CanvasMutation:case ys.Input:return this.replaceIds(t.data,e,["id"]),t;case ys.StyleSheetRule:case ys.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ys.Font:return t;case ys.Selection:return t.data.ranges.forEach(function(t){r.replaceIds(t,e,["start","end"])}),t;case ys.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach(function(t){r.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i=ug(n),o;!(o=i()).done;){var s=o.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===yh.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),yZ=function(){function e(e){uw(this,"shadowDoms",new WeakSet),uw(this,"mutationCb"),uw(this,"scrollCb"),uw(this,"bypassOptions"),uw(this,"mirror"),uw(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(uK(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=yI(ui({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(yR(ui({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(v$.host(e))),r.restoreHandlers.push(yU({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(vH(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=v$.shadowRoot(this);return o&&yi(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),yQ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y0="u"<typeof Uint8Array?[]:new Uint8Array(256),y1=0;y1<yQ.length;y1++)y0[yQ.charCodeAt(y1)]=y1;var y2=function(e){var t=new Uint8Array(e),r,n=t.length,i="";for(r=0;r<n;r+=3)i+=yQ[t[r]>>2],i+=yQ[(3&t[r])<<4|t[r+1]>>4],i+=yQ[(15&t[r+1])<<2|t[r+2]>>6],i+=yQ[63&t[r+2]];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i},y4=new Map;function y5(e,t){var r=y4.get(e);return r||(r=new Map,y4.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var y8=function(e,t,r){if(e&&(y7(e,t)||(void 0===e?"undefined":uh(e))==="object")){var n=e.constructor.name,i=y5(r,n),o=i.indexOf(e);return -1===o&&(o=i.length,i.push(e)),o}};function y6(e,t,r){if(ua(e,Array))return e.map(function(e){return y6(e,t,r)});if(null===e);else if(ua(e,Float32Array)||ua(e,Float64Array)||ua(e,Int32Array)||ua(e,Uint32Array)||ua(e,Uint8Array)||ua(e,Uint16Array)||ua(e,Int16Array)||ua(e,Int8Array)||ua(e,Uint8ClampedArray)){var n=e.constructor.name;return{rr_type:n,args:[Object.values(e)]}}else if(ua(e,ArrayBuffer)){var i=e.constructor.name,o=y2(e);return{rr_type:i,base64:o}}else if(ua(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[y6(e.buffer,t,r),e.byteOffset,e.byteLength]}}else if(ua(e,HTMLImageElement)){var a=e.constructor.name,c=e.src;return{rr_type:a,src:c}}else if(ua(e,HTMLCanvasElement)){var u="HTMLImageElement",l=e.toDataURL();return{rr_type:u,src:l}}else if(ua(e,ImageData)){var h=e.constructor.name;return{rr_type:h,args:[y6(e.data,t,r),e.width,e.height]}}else if(y7(e,t)||(void 0===e?"undefined":uh(e))==="object"){var d=e.constructor.name,f=y8(e,t,r);return{rr_type:d,index:f}}return e}var y3=function(e,t,r){return e.map(function(e){return y6(e,t,r)})},y7=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],n=r.filter(function(e){return"function"==typeof t[e]});return!!n.find(function(r){return ua(e,t[r])})};function y9(e,t,r,n){for(var i=function(){var i=c.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])return"continue";var s=vH(t.CanvasRenderingContext2D.prototype,i,function(o){return function(){for(var s=this,a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];return v1(this.canvas,r,n,!0)||setTimeout(function(){var r=y3(c,t,s);e(s.canvas,{type:yu["2D"],property:i,args:r})},0),o.apply(this,c)}});o.push(s)}catch(r){var a=vJ(t.CanvasRenderingContext2D.prototype,i,{set:function(t){e(this.canvas,{type:yu["2D"],property:i,args:[t],setter:!0})}});o.push(a)}},o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=ug(s),c;!(c=a()).done;)i();return function(){o.forEach(function(e){return e()})}}function be(e){return"experimental-webgl"===e?"webgl":e}function bt(e,t,r,n){var i=[];try{var o=vH(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!v1(this,t,r,!0)){var c=be(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===uh(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function br(e,t,r,n,i,o){for(var s=function(){var s=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(s))return"continue";try{if("function"!=typeof e[s])return"continue";var c=vH(e,s,function(e){return function(){for(var a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];var l=e.apply(this,c);if(y8(l,o,this),"tagName"in this.canvas&&!v1(this.canvas,n,i,!0)){var h=y3(c,o,this),d={type:t,property:s,args:h};r(this.canvas,d)}return l}});a.push(c)}catch(n){var u=vJ(e,s,{set:function(e){r(this.canvas,{type:t,property:s,args:[e],setter:!0})}});a.push(u)}},a=[],c=Object.getOwnPropertyNames(e),u=ug(c),l;!(l=u()).done;)s();return a}function bn(e,t,r,n){var i,o=[];if((i=o).push.apply(i,[].concat(br(t.WebGLRenderingContext.prototype,yu.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext){var s;(s=o).push.apply(s,[].concat(br(t.WebGL2RenderingContext.prototype,yu.WebGL2,e,r,n,t)))}return function(){o.forEach(function(e){return e()})}}var bi="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",bo=function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})},bs="u">typeof window&&window.Blob&&new Blob([bo(bi)],{type:"text/javascript;charset=utf-8"});function ba(e){var t;try{if(!(t=bs&&(window.URL||window.webkitURL).createObjectURL(bs)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+bi,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var bc=function(){function e(e){var t=this;uw(this,"pendingCanvasMutations",new Map),uw(this,"rafStamps",{latestId:0,invokeId:null}),uw(this,"mirror"),uw(this,"mutationCb"),uw(this,"resetObservers"),uw(this,"frozen",!1),uw(this,"locked",!1),uw(this,"processMutation",function(e,r){var n=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;(n||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=bt(t,r,n,!0),a=new Map,c=new ba;c.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,c=r.height;o.mutationCb({id:t,type:yu["2D"],commands:[{property:"clearRect",args:[0,0,s,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var u=1e3/e,l=0,h,d=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){v1(t,r,n,!0)||e.push(t)}),e},f=function(e){if(l&&e-l<u){h=requestAnimationFrame(f);return}l=e;var t=o;d().forEach(ue(function(e){var r,n,o,s;return um(this,function(u){switch(u.label){case 0:if(n=t.mirror.getId(e),a.get(n)||0===e.width||0===e.height)return[2];return a.set(n,!0),["webgl","webgl2"].includes(e.__context)&&(null==(r=null==(o=e.getContext(e.__context))?void 0:o.getContextAttributes())?void 0:r.preserveDrawingBuffer)===!1&&o.clear(o.COLOR_BUFFER_BIT),[4,createImageBitmap(e)];case 1:return s=u.sent(),c.postMessage({id:n,bitmap:s,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[s]),[2]}})})),h=requestAnimationFrame(f)};h=requestAnimationFrame(f),this.resetObservers=function(){s(),cancelAnimationFrame(h)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=bt(e,t,r,!1),i=y9(this.processMutation.bind(this),e,t,r),o=bn(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){e.type;var t=uu(e,["type"]);return t}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),bu=function(){function e(e){uw(this,"trackedLinkElements",new WeakSet),uw(this,"mutationCb"),uw(this,"adoptedStyleSheetCb"),uw(this,"styleMirror",new ye),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=a.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),o.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:u1(t,e.href),index:r}})})),i.styleIds.push(t)};if(0!==e.length){for(var i={id:t,styleIds:[]},o=[],s=ug(e),a;!(a=s()).done;)r=this,n();o.length>0&&(i.styles=o),this.adoptedStyleSheetCb(i)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n=ug(r.adoptedStyleSheets),i;!(i=n()).done;){var o=i.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),bl=function(){function e(){uw(this,"nodeMap",new WeakMap),uw(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}();function bh(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(e){return null}}function bd(e){if(!Array.isArray(e)||0===e.length)throw Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!=typeof n)throw Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+(void 0===n?"undefined":uh(n))+".");var i=bh(n);i&&t.add(i)}return Object.freeze(t)}var bf,bp,bg,bm=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var bv=document.createElement("iframe");document.body.appendChild(bv),Array.from=(null==(ux=bv.contentWindow)?void 0:ux.Array.from)||Array.from,document.body.removeChild(bv)}}catch(e){console.debug("Unable to override Array.from",e)}var by=u6();function bb(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,l=e.ignoreSelector,h=void 0===l?null:l,d=e.maskTextClass,f=void 0===d?"rr-mask":d,p=e.maskTextSelector,g=void 0===p?null:p,m=e.inlineStylesheet,v=void 0===m||m,y=e.maskAllInputs,b=e.maskInputOptions,w=e.slimDOMOptions,x=e.maskInputFn,_=e.maskTextFn,k=e.hooks,S=e.packFn,C=e.sampling,E=void 0===C?{}:C,O=e.dataURLOptions,I=void 0===O?{}:O,T=e.mousemoveWait,A=e.recordDOM,M=void 0===A||A,R=e.recordCanvas,P=void 0!==R&&R,L=e.recordCrossOriginIframes,D=void 0!==L&&L,N=e.allowedIframeOrigins,B=e.recordAfter,F=void 0===B?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":B,j=e.userTriggeredOnInput,U=void 0!==j&&j,z=e.collectFonts,q=void 0!==z&&z,H=e.inlineImages,$=void 0!==H&&H,W=e.plugins,V=e.keepIframeSrcFn,Y=void 0===V?function(){return!1}:V,X=e.ignoreCSSAttributes,J=void 0===X?new Set([]):X,G=e.errorHandler,K;yk(G),D&&N&&N.length>0&&0===(K=bd(N)).size&&(K=void 0);var Z=!D||window.parent===window,Q=!1;if(!Z)try{window.parent.document&&(Q=!1)}catch(e){Q=!0}if(Z&&!t)throw Error("emit function is required");if(!Z&&!Q)return function(){};void 0!==T&&void 0===E.mousemove&&(E.mousemove=T),by.reset();var ee=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==b?b:{password:!0},et=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w,headTitleMutations:"all"===w}:w||{},er;v6();var en=0,ei=function(e){for(var t=ug(W||[]),r;!(r=t()).done;){var n=r.value;n.eventProcessor&&(e=n.eventProcessor(e))}return S&&!Q&&(e=S(e)),e};bf=function(e,i){var o,s=e;if(s.timestamp=vG(),(null==(o=yE[0])?void 0:o.isFrozen())&&s.type!==yo.FullSnapshot&&(s.type!==yo.IncrementalSnapshot||s.data.source!==ys.Mutation)&&yE.forEach(function(e){return e.unfreeze()}),Z)null==t||t(ei(s),i);else if(Q){var a={type:"rrweb",event:ei(s),origin:window.location.origin,isCheckout:i};if(K)for(var c=ug(K),u;!(u=c()).done;){var l=u.value;window.parent.postMessage(a,l)}else window.parent.postMessage(a,"*")}if(s.type===yo.FullSnapshot)er=s,en=0;else if(s.type===yo.IncrementalSnapshot){if(s.data.source===ys.Mutation&&s.data.isAttachIframe)return;en++;var h=n&&en>=n,d=r&&s.timestamp-er.timestamp>r;(h||d)&&bp(!0)}};for(var eo=function(e){bf({type:yo.IncrementalSnapshot,data:ui({source:ys.Mutation},e)})},es=function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.Scroll},e)})},ea=function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.CanvasMutation},e)})},ec=function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.AdoptedStyleSheet},e)})},eu=new bu({mutationCb:eo,adoptedStyleSheetCb:ec}),el=new yK({mirror:by,mutationCb:eo,stylesheetManager:eu,recordCrossOriginIframes:D,wrappedEmit:bf}),eh=ug(W||[]),ed;!(ed=eh()).done;){var ef=ed.value;ef.getMirror&&ef.getMirror({nodeMirror:by,crossOriginIframeMirror:el.crossOriginIframeMirror,crossOriginIframeStyleMirror:el.crossOriginIframeStyleMirror})}var ep=new bl;bg=new bc({recordCanvas:P,mutationCb:ea,win:window,blockClass:o,blockSelector:a,mirror:by,sampling:E.canvas,dataURLOptions:I});var eg=new yZ({mutationCb:eo,scrollCb:es,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:ee,dataURLOptions:I,maskTextFn:_,maskInputFn:x,recordCanvas:P,inlineImages:$,sampling:E,slimDOMOptions:et,iframeManager:el,stylesheetManager:eu,canvasManager:bg,keepIframeSrcFn:Y,processedNodeManager:ep},mirror:by});bp=function(e){if(void 0===e&&(e=!1),M){bf({type:yo.Meta,data:{href:window.location.href,width:vQ(),height:vZ()}},e),eu.reset(),eg.init(),yE.forEach(function(e){return e.lock()});var t=lU(document,{mirror:by,blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:ee,maskTextFn:_,maskInputFn:x,slimDOM:et,dataURLOptions:I,recordCanvas:P,inlineImages:$,onSerialize:function(e){v3(e,by)&&el.addIframe(e),v7(e,by)&&eu.trackLinkElement(e),v9(e)&&eg.addShadowRoot(v$.shadowRoot(e),document)},onIframeLoad:function(e,t){el.attachIframe(e,t),eg.observeAttachShadow(e)},onStylesheetLoad:function(e,t){eu.attachLinkElement(e,t)},keepIframeSrcFn:Y});if(!t)return console.warn("Failed to snapshot the document");bf({type:yo.FullSnapshot,data:{node:t,initialOffset:vK(window)}},e),yE.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&eu.adoptStyleSheets(document.adoptedStyleSheets,by.getId(document))}};try{var em=[],ev=function(e){var t;return yC(yY)({mutationCb:eo,mousemoveCb:function(e,t){return bf({type:yo.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.MouseInteraction},e)})},scrollCb:es,viewportResizeCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.ViewportResize},e)})},inputCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.Input},e)})},mediaInteractionCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.MediaInteraction},e)})},styleSheetRuleCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.StyleSheetRule},e)})},styleDeclarationCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.StyleDeclaration},e)})},canvasMutationCb:ea,fontCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.Font},e)})},selectionCb:function(e){bf({type:yo.IncrementalSnapshot,data:ui({source:ys.Selection},e)})},customElementCb:function(e){bf({type:yo.IncrementalSnapshot,data:ui({source:ys.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:h,maskTextClass:f,maskTextSelector:g,maskInputOptions:ee,inlineStylesheet:v,sampling:E,recordDOM:M,recordCanvas:P,inlineImages:$,userTriggeredOnInput:U,collectFonts:q,doc:e,maskInputFn:x,maskTextFn:_,keepIframeSrcFn:Y,blockSelector:a,slimDOMOptions:et,dataURLOptions:I,mirror:by,iframeManager:el,stylesheetManager:eu,shadowDomManager:eg,processedNodeManager:ep,canvasManager:bg,ignoreCSSAttributes:J,plugins:(null==(t=null==W?void 0:W.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return bf({type:yo.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},k)};el.addLoadListener(function(e){try{var t=e.contentDocument,r=ev(t);em.push(r);var n=el.getObserverCleanup(e);el.setObserverCleanup(e,function(){if(n)try{n()}catch(e){}try{r();var e=em.indexOf(r);-1!==e&&em.splice(e,1),yT(t)}catch(e){}})}catch(e){console.warn(e)}});var ey=function(){bp(),em.push(ev(document)),bm=!0};return"interactive"===document.readyState||"complete"===document.readyState?ey():(em.push(vW("DOMContentLoaded",function(){bf({type:yo.DomContentLoaded,data:{}}),"DOMContentLoaded"===F&&ey()})),em.push(vW("load",function(){bf({type:yo.Load,data:{}}),"load"===F&&ey()},window))),function(){em.forEach(function(e){try{e()}catch(e){var t=String(e).toLowerCase();t.includes("cross-origin")||console.warn(e)}}),ep.destroy(),bm=!1,yS()}}catch(e){console.warn(e)}}var bw;bb.addCustomEvent=function(e,t){if(!bm)throw Error("please add custom event after start recording");bf({type:yo.Custom,data:{tag:e,payload:t}})},bb.freezePage=function(){yE.forEach(function(e){return e.freeze()})},bb.takeFullSnapshot=function(e){if(!bm)throw Error("please take full snapshot after start recording");bp(e)},bb.mirror=by,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(bw||(bw={})),bb.addCustomEvent,bb.freezePage,bb.takeFullSnapshot;var bx={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},b_={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},bk={},bS=function(){return!!globalThis.Zone};function bC(e){if(bk[e])return bk[e];var t=globalThis[e],r=t.prototype,n=e in bx?bx[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in b_?b_[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!bS())return bk[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return bk[e]=u}catch(e){return r}}var bE={};function bO(e,t,r){var n,i=e+"."+String(r);if(bE[i])return bE[i].call(t);var o=bC(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(bE[i]=s,s.call(t)):t[r]}var bI={};function bT(e,t,r){var n=e+"."+String(r);if(bI[n])return bI[n].bind(t);var i=bC(e),o=i[r];return"function"!=typeof o?t[r]:(bI[n]=o,o.bind(t))}function bA(e){return bO("Node",e,"childNodes")}function bM(e){return bO("Node",e,"parentNode")}function bR(e){return bO("Node",e,"parentElement")}function bP(e){return bO("Node",e,"textContent")}function bL(e,t){return bT("Node",e,"contains")(t)}function bD(e){return bT("Node",e,"getRootNode")()}function bN(e){return e&&"host"in e?bO("ShadowRoot",e,"host"):null}function bB(e){return e.styleSheets}function bF(e){return e&&"shadowRoot"in e?bO("Element",e,"shadowRoot"):null}function bj(e,t){return bO("Element",e,"querySelector")(t)}function bU(e,t){return bO("Element",e,"querySelectorAll")(t)}function bz(){return bC("MutationObserver").constructor}function bq(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var bH={childNodes:bA,parentNode:bM,parentElement:bR,textContent:bP,contains:bL,getRootNode:bD,host:bN,styleSheets:bB,shadowRoot:bF,querySelector:bj,querySelectorAll:bU,mutationObserver:bz,patch:bq};function b$(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return b$(bH.parentNode(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return b$(bH.parentNode(e),t)}function bW(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function bV(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return ua(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var bY={exports:{}},bX=String,bJ=function(){return{isColorSupported:!1,reset:bX,bold:bX,dim:bX,italic:bX,underline:bX,inverse:bX,hidden:bX,strikethrough:bX,black:bX,red:bX,green:bX,yellow:bX,blue:bX,magenta:bX,cyan:bX,white:bX,gray:bX,bgBlack:bX,bgRed:bX,bgGreen:bX,bgYellow:bX,bgBlue:bX,bgMagenta:bX,bgCyan:bX,bgWhite:bX}};bY.exports=bJ(),bY.exports.createColors=bJ;var bG=bY.exports,bK={},bZ=Object.freeze(Object.defineProperty({__proto__:null,default:bK},Symbol.toStringTag,{value:"Module"})),bQ=bV(bZ),b0=bG,b1=bQ,b2=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}us(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=b0.isColorSupported),b1&&e&&(r=b1(r));var n=r.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),s=String(o).length,a,c;if(e){var u=b0.createColors(!0),l=u.bold,h=u.gray,d=u.red;a=function(e){return l(d(e))},c=function(e){return h(e)}}else a=c=function(e){return e};return n.slice(i,o).map(function(e,r){var n=i+1+r,o=" "+(" "+n).slice(-s)+" | ";if(n===t.line){var u=c(o.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return a(">")+c(o)+e+"\n "+u+a("^")}return" "+c(o)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(uf(Error)),b4=b2;b2.default=b2;var b5={};b5.isClean=Symbol("isClean"),b5.my=Symbol("my");var b8={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function b6(e){return e[0].toUpperCase()+e.slice(1)}var b3=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r=this.raw(e,"between","beforeOpen"),n;this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return b8[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+b6(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=b8[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),b7=b3;b3.default=b3;var b9=b7;function we(e,t){var r=new b9(t);r.stringify(e)}var wt=we;we.default=we;var wr=b5.isClean,wn=b5.my,wi=b4,wo=b7,ws=wt;function wa(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":uh(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return wa(e,r)}):("object"===o&&null!==i&&(i=wa(i)),r[n]=i)}return r}var wc=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[wr]=!1,this[wn]=!0,e)if("nodes"===t){this.nodes=[];for(var r=ug(e[t]),n;!(n=r()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=wa(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new wi(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[wr]){this[wr]=!1;var e=this;while(e=e.parent)e[wr]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new wo;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n=this,i=!1,o=ug(t),s;!(s=o()).done;){var a=s.value;a===this?i=!0:i?(this.parent.insertAfter(n,a),n=a):this.parent.insertBefore(n,a)}i||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":uh(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=ws),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},un(e,[{key:"proxyOf",get:function(){return this}}]),e}(),wu=wc;wc.default=wc;var wl=wu,wh=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=ui({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return us(t,e),un(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(wl),wd=wh;wh.default=wh;var wf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",wp=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=wf[64*Math.random()|0];return t},wg={nanoid:wp},wm=bQ.SourceMapConsumer,wv=bQ.SourceMapGenerator,wy=bQ.existsSync,wb=bQ.readFileSync,ww=bQ.dirname,wx=bQ.join;function w_(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var wk=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ww(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new wm(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return w_(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":uh(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=ww(e),wy(e))return this.mapFile=e,wb(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(ua(t,wm))return wv.fromSourceMap(t).toString();else if(ua(t,wv))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=wx(ww(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),wS=wk;wk.default=wk;var wC=bQ.SourceMapConsumer,wE=bQ.SourceMapGenerator,wO=bQ.fileURLToPath,wI=bQ.pathToFileURL,wT=bQ.isAbsolute,wA=bQ.resolve,wM=wg.nanoid,wR=bQ,wP=b4,wL=wS,wD=Symbol("fromOffsetCache"),wN=!!(wC&&wE),wB=!!(wA&&wT),wF=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":uh(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!wB||/^\w+:\/\//.test(t.from)||wT(t.from)?this.file=t.from:this.file=wA(t.from)),wB&&wN){var r=new wL(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+wM(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&(void 0===t?"undefined":uh(t))==="object"){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return(i=d?new wP(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new wP(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(wI&&(i.input.url=wI(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[wD])r=this[wD];else{var n=this.css.split("\n");r=Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[wD]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c=r.length-2,u;while(a<c)if(e<r[u=a+(c-a>>1)])c=u-1;else if(e>=r[u+1])a=u+1;else{a=u;break}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:wA(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i=this.map.consumer(),o=i.originalPositionFor({column:t,line:e});if(!o.source)return!1;var s,a;"number"==typeof r&&(s=i.originalPositionFor({column:n,line:r})),a=wT(o.source)?wI(o.source):new URL(o.source,this.map.consumer().sourceRoot||wI(this.map.mapFile));var c={column:o.column,endColumn:s&&s.column,endLine:s&&s.line,line:o.line,url:a.toString()};if("file:"===a.protocol)if(wO)c.file=wO(a);else throw Error("file: protocol is not available in this PostCSS build");var u=i.sourceContentFor(o.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=ui({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},un(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),wj=wF;wF.default=wF,wR&&wR.registerInput&&wR.registerInput(wF);var wU=bQ.SourceMapConsumer,wz=bQ.SourceMapGenerator,wq=bQ.dirname,wH=bQ.relative,w$=bQ.resolve,wW=bQ.sep,wV=bQ.pathToFileURL,wY=wj,wX=!!(wU&&wz),wJ=!!(wq&&w$&&wH&&wW),wG=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e=ug(this.previous()),t;!(t=e()).done;){var r=t.value,n=this.toUrl(this.path(r.file)),i=r.root||wq(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new wU(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),wJ&&wX&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=wz.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new wz({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new wz({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(i.generated.line=t,i.generated.column=r-1,c.source&&c.source.start?(i.source=e.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1):(i.source=n,i.original.line=1,i.original.column=0),e.map.addMapping(i)),(o=a.match(/\n/g))?(t+=o.length,s=a.lastIndexOf("\n"),r=a.length-s):r+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;(!h||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(i.source=e.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=r-2):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=r-1),e.map.addMapping(i))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?wq(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=wq(w$(r,this.mapOpts.annotation)));var n=wH(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new wY(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(wV){var r=wV(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===wW&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),wK=wG,wZ=wu,wQ=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return us(t,e),t}(wZ),w0=wQ;wQ.default=wQ;var w1=b5.isClean,w2=b5.my,w4=wd,w5=w0,w8=wu,w6,w3,w7,w9;function xe(e){return e.map(function(e){return e.nodes&&(e.nodes=xe(e.nodes)),delete e.source,e})}function xt(e){if(e[w1]=!1,e.proxyOf.nodes)for(var t=ug(e.proxyOf.nodes),r;!(r=t()).done;){var n=r.value;xt(n)}}var xr=function(e){function t(){return e.apply(this,arguments)||this}us(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=ug(t),i;!(i=n()).done;)for(var o=i.value,s=this.normalize(o,this.last),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r=ug(this.nodes),n;!(n=r()).done;){var i=n.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t=this.getIterator(),r,n;while(this.indexes[t]<this.proxyOf.nodes.length){if(r=this.indexes[t],!1===(n=e(this.proxyOf.nodes[r],r)))break;this.indexes[t]+=1}return delete this.indexes[t],n}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(var i=ug(n),o;!(o=i()).done;){var s=o.value;this.proxyOf.nodes.splice(r+1,0,s)}var a;for(var c in this.indexes)r<(a=this.indexes[c])&&(this.indexes[c]=a+n.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r=this.index(e),n=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(var o=ug(i),s;!(s=o()).done;){var a=s.value;this.proxyOf.nodes.splice(r,0,a)}var c;for(var u in this.indexes)r<=(c=this.indexes[u])&&(this.indexes[u]=c+i.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=xe(w6(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i=ug(e),o;!(o=i()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a=ug(e),c;!(c=a()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new w4(e)]}else if(e.selector)e=[new w3(e)];else if(e.name)e=[new w7(e)];else if(e.text)e=[new w5(e)];else throw Error("Unknown node type in node creation");var l=e.map(function(e){return e[w2]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[w1]&&xt(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n=ug(t),i;!(i=n()).done;){for(var o=i.value,s=this.normalize(o,this.first,"prepend").reverse(),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+s.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e=ug(this.proxyOf.nodes),t;!(t=e()).done;){var r=t.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},un(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(w8);xr.registerParse=function(e){w6=e},xr.registerRule=function(e){w3=e},xr.registerAtRule=function(e){w7=e},xr.registerRoot=function(e){w9=e};var xn=xr;xr.default=xr,xr.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,w7.prototype):"rule"===e.type?Object.setPrototypeOf(e,w3.prototype):"decl"===e.type?Object.setPrototypeOf(e,w4.prototype):"comment"===e.type?Object.setPrototypeOf(e,w5.prototype):"root"===e.type&&Object.setPrototypeOf(e,w9.prototype),e[w2]=!0,e.nodes&&e.nodes.forEach(function(e){xr.rebuild(e)})};var xi=xn,xo,xs,xa=function(e){function t(t){var r;return(r=e.call(this,ui({type:"document"},t))||this).nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new xo(new xs,this,e);return t.stringify()},t}(xi);xa.registerLazyResult=function(e){xo=e},xa.registerProcessor=function(e){xs=e};var xc=xa;xa.default=xa;var xu=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),xl=xu;xu.default=xu;var xh=xl,xd=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new xh(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},un(e,[{key:"content",get:function(){return this.css}}]),e}(),xf=xd;xd.default=xd;var xp=39,xg=34,xm=92,xv=47,xy=10,xb=32,xw=12,xx=9,x_=13,xk=91,xS=93,xC=40,xE=41,xO=123,xI=125,xT=59,xA=42,xM=58,xR=64,xP=/[\t\n\f\r "#'()/;[\\\]{}]/g,xL=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,xD=/.[\r\n"'(/\\]/,xN=/[\da-f]/i,xB=function(e,t){void 0===t&&(t={});var r=e.css.valueOf(),n=t.ignoreErrors,i,o,s,a,c,u,l,h,d,f,p=r.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=p},nextToken:function(e){if(v.length)return v.pop();if(!(g>=p)){var t=!!e&&e.ignoreUnclosed;switch(i=r.charCodeAt(g)){case xy:case xb:case xx:case x_:case xw:o=g;do o+=1,i=r.charCodeAt(o);while(i===xb||i===xy||i===xx||i===x_||i===xw)f=["space",r.slice(g,o)],g=o-1;break;case xk:case xS:case xO:case xI:case xM:case xT:case xE:var b=String.fromCharCode(i);f=[b,b,g];break;case xC:if(h=m.length?m.pop()[1]:"",d=r.charCodeAt(g+1),"url"===h&&d!==xp&&d!==xg&&d!==xb&&d!==xy&&d!==xx&&d!==xw&&d!==x_){o=g;do{if(u=!1,-1===(o=r.indexOf(")",o+1)))if(n||t){o=g;break}else y("bracket");l=o;while(r.charCodeAt(l-1)===xm)l-=1,u=!u}while(u)f=["brackets",r.slice(g,o+1),g,o],g=o}else o=r.indexOf(")",g+1),a=r.slice(g,o+1),-1===o||xD.test(a)?f=["(","(",g]:(f=["brackets",a,g,o],g=o);break;case xp:case xg:s=i===xp?"'":'"',o=g;do{if(u=!1,-1===(o=r.indexOf(s,o+1)))if(n||t){o=g+1;break}else y("string");l=o;while(r.charCodeAt(l-1)===xm)l-=1,u=!u}while(u)f=["string",r.slice(g,o+1),g,o],g=o;break;case xR:xP.lastIndex=g+1,xP.test(r),o=0===xP.lastIndex?r.length-1:xP.lastIndex-2,f=["at-word",r.slice(g,o+1),g,o],g=o;break;case xm:o=g,c=!0;while(r.charCodeAt(o+1)===xm)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==xv&&i!==xb&&i!==xy&&i!==xx&&i!==x_&&i!==xw&&(o+=1,xN.test(r.charAt(o)))){while(xN.test(r.charAt(o+1)))o+=1;r.charCodeAt(o+1)===xb&&(o+=1)}f=["word",r.slice(g,o+1),g,o],g=o;break;default:i===xv&&r.charCodeAt(g+1)===xA?(0===(o=r.indexOf("*/",g+2)+1)&&(n||t?o=r.length:y("comment")),f=["comment",r.slice(g,o+1),g,o]):(xL.lastIndex=g+1,xL.test(r),o=0===xL.lastIndex?r.length-1:xL.lastIndex-2,f=["word",r.slice(g,o+1),g,o],m.push(f)),g=o;break}return g++,f}},position:function(){return g}}},xF=xn,xj=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}us(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(xF),xU=xj;xj.default=xj,xF.registerAtRule(xj);var xz=xn,xq,xH,x$=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o=ug(i),s;!(s=o()).done;){var a=s.value;a.raws.before=r.raws.before}}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new xq(new xH,this,e);return t.stringify()},t}(xz);x$.registerLazyResult=function(e){xq=e},x$.registerProcessor=function(e){xH=e};var xW=x$;x$.default=x$,xz.registerRoot(x$);var xV={comma:function(e){return xV.split(e,[","],!0)},space:function(e){var t=[" ","\n"," "];return xV.split(e,t)},split:function(e,t,r){for(var n=[],i="",o=!1,s=0,a=!1,c="",u=!1,l=ug(e),h;!(h=l()).done;){var d=h.value;u?u=!1:"\\"===d?u=!0:a?d===c&&(a=!1):'"'===d||"'"===d?(a=!0,c=d):"("===d?s+=1:")"===d?s>0&&(s-=1):0===s&&t.includes(d)&&(o=!0),o?(""!==i&&n.push(i.trim()),i="",o=!1):i+=d}return(r||""!==i)&&n.push(i.trim()),n}},xY=xV;xV.default=xV;var xX=xn,xJ=xY,xG=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return us(t,e),un(t,[{key:"selectors",get:function(){return xJ.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(xX),xK=xG;xG.default=xG,xX.registerRule(xG);var xZ=wd,xQ=xB,x0=w0,x1=xU,x2=xW,x4=xK,x5={empty:!0,space:!0};function x8(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var x6=function(){function e(e){this.input=e,this.root=new x2,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t=new x1,r,n,i;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if("("===(r=(e=this.tokenizer.nextToken())[0])||"["===r?c.push("("===r?")":"]"):"{"===r&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),0===c.length)if(";"===r){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if("{"===r){s=!0;break}else if("}"===r){if(a.length>0){i=a.length-1,n=a[i];while(n&&"space"===n[0])n=a[--i];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),s&&(t.nodes=[],this.current=t)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r=0,n,i=t-1;i>=0&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}},t.colon=function(e){for(var t=0,r,n,i,o=ug(e.entries()),s;!(s=o()).done;){var a=s.value,c=a[0],u=a[1];if("("===(n=(r=u)[0])&&(t+=1),")"===n&&(t-=1),0===t&&":"===n)if(i)if("word"===i[0]&&"progid"===i[1])continue;else return c;else this.doubleColon(r);i=r}return!1},t.comment=function(e){var t=new x0;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=xQ(this.input)},t.decl=function(e,t){var r=new xZ;this.init(r,e[0][2]);var n=e[e.length-1];";"===n[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||x8(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}var o;r.raws.between="";while(e.length){if(":"===(o=e.shift())[0]){r.raws.between+=o[1];break}"word"===o[0]&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1]}("_"===r.prop[0]||"*"===r.prop[0])&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s=[],a;while(e.length){if("space"!==(a=e[0][0])&&"comment"!==a)break;s.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(o=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===o[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var f=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==o[0]&&"comment"!==o[0])break}var p=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});p&&(r.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new x4;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if("space"!==(c=a[a.length-1][0])&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s=r.length,a="",c=!0,u,l,h=0;h<s;h+=1)"space"!==(o=(i=r[h])[0])||h!==s-1||n?"comment"===o?(l=r[h-1]?r[h-1][0]:"empty",u=r[h+1]?r[h+1][0]:"empty",x5[l]||x5[u]||","===a.slice(-1)?c=!1:a+=i[1]):a+=i[1]:c=!1;if(!c){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:a}}e[t]=a},t.rule=function(e){e.pop();var t=new x4;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if("space"!==(t=e[e.length-1][0])&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if("space"!==(t=e[0][0])&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t="";while(e.length){if("space"!==e[e.length-1][0])break;t=e.pop()[1]+t}return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),x3=x6,x7=xn,x9=x3,_e=wj;function _t(e,t){var r=new _e(e,t),n=new x9(r);try{n.parse()}catch(e){throw e}return n.root}var _r=_t;_t.default=_t,x7.registerParse(_t);var _n=b5.isClean,_i=b5.my,_o=wK,_s=wt,_a=xn,_c=xc,_u=xf,_l=_r,_h=xW,_d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},_f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},_p={Once:!0,postcssPlugin:!0,prepare:!0},_g=0;function _m(e){return(void 0===e?"undefined":uh(e))==="object"&&"function"==typeof e.then}function _v(e){var t=!1,r=_d[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,_g,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,_g,r+"Exit"]:[r,r+"Exit"]}function _y(e){return{eventIndex:0,events:"document"===e.type?["Document",_g,"DocumentExit"]:"root"===e.type?["Root",_g,"RootExit"]:_v(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function _b(e){return e[_n]=!1,e.nodes&&e.nodes.forEach(function(e){return _b(e)}),e}var _w={},_x=function(){function e(t,r,n){var i=this,o;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":uh(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))o=_b(r);else if(ua(r,e)||ua(r,_u))o=_b(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=_l;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(r,n)}catch(e){this.processed=!0,this.error=e}o&&!o[_i]&&_a.rebuild(o)}this.result=new _u(t,o,n),this.helpers=ui({},_w,{postcss:_w,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.prepare?ui({},e,e.prepare(i.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},r=ug(this.plugins),n;!(n=r()).done;){var i=n.value;if((void 0===i?"undefined":uh(i))==="object")for(var o in i){if(!_f[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!_p[o])if("object"===uh(i[o]))for(var s in i[o])t(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&t(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return ue(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return um(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!_m(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[_n])return[3,14];o[_n]=!0,s=[_y(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!_m(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return um(this,function(s){switch(s.label){case 0:r=(t=d.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=ug(e.listeners.OnceExit),f.label=15;case 15:if((d=h()).done)return[3,18];return[5,uv(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":uh(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(_m(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=_s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new _o(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=ug(this.plugins),t;!(t=e()).done;){var r=t.value,n=this.runOnRoot(r);if(_m(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[_n])i[_n]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o=ug(i.nodes),s;!(s=o()).done;){var a=s.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r=ug(e),n;!(n=r()).done;){var i=n.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(_m(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){var a=t.iterator,c;while(c=r.nodes[r.indexes[a]])if(r.indexes[a]+=1,!c[_n]){c[_n]=!0,e.push(_y(c));return}t.iterator=0,delete r.indexes[a]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===_g){r.nodes&&r.nodes.length&&(r[_n]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[_n]=!0;for(var r=_v(e),n=ug(r),i;!(i=n()).done;){var o=i.value;if(o===_g)e.nodes&&e.each(function(e){e[_n]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},un(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();_x.registerPostcss=function(e){_w=e};var __=_x;_x.default=_x,_h.registerLazyResult(_x),_c.registerLazyResult(_x);var _k=wK,_S=wt,_C=_r,_E=xf,_O=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=_S;this.result=new _E(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new _k(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},un(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=_C;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),_I=_O;_O.default=_O;var _T=_I,_A=__,_M=xc,_R=xW,_P=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t=[],r=ug(e),n;!(n=r()).done;){var i=n.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":uh(i))==="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if((void 0===i?"undefined":uh(i))==="object"&&i.postcssPlugin)t.push(i);else if("function"==typeof i)t.push(i);else if((void 0===i?"undefined":uh(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return t},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new _A(this,e,t):new _T(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),_L=_P;_P.default=_P,_R.registerProcessor(_P),_M.registerProcessor(_P);var _D=wd,_N=wS,_B=w0,_F=xU,_j=wj,_U=xW,_z=xK;function _q(e,t){if(Array.isArray(e))return e.map(function(e){return _q(e)});var r=e.inputs,n=uu(e,["inputs"]);if(r){t=[];for(var i=ug(r),o;!(o=i()).done;){var s=o.value,a=ui({},s,{__proto__:_j.prototype});a.map&&(a.map=ui({},a.map,{__proto__:_N.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return _q(e,t)})),n.source){var c=n.source,u=c.inputId,l=uu(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new _U(n);if("decl"===n.type)return new _D(n);if("rule"===n.type)return new _z(n);if("comment"===n.type)return new _B(n);if("atrule"===n.type)return new _F(n);else throw Error("Unknown node type: "+e.type)}var _H=_q;_q.default=_q;var _$=b4,_W=wd,_V=__,_Y=xn,_X=_L,_J=wt,_G=_H,_K=xc,_Z=xl,_Q=w0,_0=xU,_1=xf,_2=wj,_4=_r,_5=xY,_8=xK,_6=xW,_3=wu;function _7(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new _X(t)}_7.plugin=function(e,t){var r=!1;function n(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new _X().version,s}var i;return Object.defineProperty(n,"postcss",{get:function(){return i||(i=n()),i}}),n.process=function(e,t,r){return _7([n(r)]).process(e,t)},n},_7.stringify=_J,_7.parse=_4,_7.fromJSON=_G,_7.list=_5,_7.comment=function(e){return new _Q(e)},_7.atRule=function(e){return new _0(e)},_7.decl=function(e){return new _W(e)},_7.rule=function(e){return new _8(e)},_7.root=function(e){return new _6(e)},_7.document=function(e){return new _K(e)},_7.CssSyntaxError=_$,_7.Declaration=_W,_7.Container=_Y,_7.Processor=_X,_7.Document=_K,_7.Comment=_Q,_7.Warning=_Z,_7.AtRule=_0,_7.Result=_1,_7.Input=_2,_7.Rule=_8,_7.Root=_6,_7.Node=_3,_V.registerPostcss(_7);var _9=_7;_7.default=_7;var ke=bW(_9);ke.stringify,ke.fromJSON,ke.plugin,ke.parse,ke.list,ke.document,ke.comment,ke.atRule,ke.rule,ke.decl,ke.root,ke.CssSyntaxError,ke.Declaration,ke.Container,ke.Processor,ke.Document,ke.Comment,ke.Warning,ke.AtRule,ke.Result,ke.Input,ke.Rule,ke.Root,ke.Node;var kt=Object.defineProperty,kr=function(e,t,r){return t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},kn=function(e,t,r){return kr(e,(void 0===t?"undefined":uh(t))!=="symbol"?t+"":t,r)};function ki(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var ko=function(){function e(e){kn(this,"fileName"),kn(this,"functionName"),kn(this,"lineNumber"),kn(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}var t=e.prototype;return t.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),ks=/(^|@)\S+:\d+/,ka=/^\s*at .*(\S+:\d+|\(native\))/m,kc=/^(eval@)?(\[native code])?$/,ku={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(ka)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/,r=t.exec(e.replace(/[()]/g,""));if(!r)throw Error("Cannot parse given url: "+e);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(ka)},this);return t.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=r?t.replace(r[0],""):t;var n=t.split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new ko({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){var t=e.stack.split("\n").filter(function(e){return!e.match(kc)},this);return t.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new ko({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new ko({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new ko({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new ko({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(ks)&&!e.match(/^Error created at/)},this);return t.map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=t.shift()||"",i=n.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new ko({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function kl(e){if(!e||!e.outerHTML)return"";var t="";while(e.parentElement){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function kh(e){return"[object Object]"===Object.prototype.toString.call(e)}function kd(e,t){if(0===t)return!0;for(var r=Object.keys(e),n=ug(r),i;!(i=n()).done;){var o=i.value;if(kh(e[o])&&kd(e[o],t-1))return!0}return!1}function kf(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var r=n.indexOf(this);~r?n.splice(r+1):n.push(this),~r?i.splice(r,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(o(t))return s(t);if((void 0===t?"undefined":uh(t))==="bigint")return t.toString()+"n";if(ua(t,Event)){var a={};for(var c in t){var u=t[c];Array.isArray(u)?a[c]=kl(u.length?u[0]:null):a[c]=u}return a}return ua(t,Node)?ua(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:ua(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t});function o(e){return!!(kh(e)&&Object.keys(e).length>r.numOfKeysLimit||"function"==typeof e||kh(e)&&kd(e,r.depthOfLimit))}function s(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=""+t.slice(0,r.stringLengthLimit)+"..."),t}}var kp={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function kg(e,t,r){var n=r?Object.assign({},kp,r):kp,i=n.logger;if(!i)return function(){};var o;o="string"==typeof i?t[i]:i;var s=0,a=!1,c=[];if(n.level.includes("error")){var u=function(t){var r=t.message,i=t.error,o=ku.parse(i).map(function(e){return e.toString()}),s=[kf(r,n.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",u),c.push(function(){t.removeEventListener("error",u)});var l=function(t){var r,i;ua(t.reason,Error)?i=[kf("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,n.stringifyOptions)]:(r=Error(),i=[kf("Uncaught (in promise)",n.stringifyOptions),kf(t.reason,n.stringifyOptions)]);var o=ku.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:i})};t.addEventListener("unhandledrejection",l),c.push(function(){t.removeEventListener("unhandledrejection",l)})}for(var h=ug(n.level),d;!(d=h()).done;){var f=d.value;c.push(p(o,f))}return function(){c.forEach(function(e){return e()})};function p(t,r){var i=this;return t[r]?ki(t,r,function(t){var o=i;return function(){for(var i=arguments.length,c=Array(i),u=0;u<i;u++)c[u]=arguments[u];if((t.apply(o,c),"assert"!==r||!c[0])&&!a){a=!0;try{var l=ku.parse(Error()).map(function(e){return e.toString()}).splice(1),h="assert"===r?c.slice(1):c,d=h.map(function(e){return kf(e,n.stringifyOptions)});++s<n.lengthThreshold?e({level:r,trace:l,payload:d}):s===n.lengthThreshold&&e({level:"warn",trace:[],payload:[kf("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],c))}finally{a=!1}}}}):function(){}}}var km="rrweb/console@1",kv=function(e){return{name:km,observer:kg,options:e}},ky=c1["setImmediate"],kb,kw,kx,k_=Object.prototype.toString,kk=void 0!==ky?function(e){return ky(e)}:setTimeout;try{Object.defineProperty({},"x",{}),kb=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){kb=function(e,t,r){return e[t]=r,e}}function kS(e,t){kx.add(e,t),kw||(kw=kk(kx.drain))}function kC(e){var t,r=typeof e;return null!==e&&("object"===r||"function"===r)&&(t=e.then),"function"==typeof t&&t}function kE(){for(var e=0;e<this.chain.length;e++)kO(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function kO(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=kC(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function kI(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=kC(e))?kS(function(){var n=new kM(r);try{t.call(e,function(){kI.apply(n,arguments)},function(){kT.apply(n,arguments)})}catch(e){kT.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&kS(kE,r))}catch(e){kT.call(new kM(r),e)}}}function kT(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&kS(kE,t))}function kA(e,t,r,n){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)})(i)}function kM(e){this.def=e,this.triggered=!1}function kR(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function kP(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this["__NPO__"])throw TypeError("Not a promise");this["__NPO__"]=1;var t=new kR(this);this["then"]=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&kS(kE,t),n.promise},this["catch"]=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){kI.call(t,e)},function(e){kT.call(t,e)})}catch(e){kT.call(t,e)}}kx=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;e=t=kw=void 0;while(r)r.fn.call(r.self),r=r.next}}}();var kL=kb({},"constructor",kP,!1),kD;kP.prototype=kL,kb(kL,"__NPO__",0,!1),kb(kP,"resolve",function(e){var t=this;return e&&"object"==typeof e&&1===e["__NPO__"]?e:new t(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),kb(kP,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),kb(kP,"all",function(e){var t=this;return"[object Array]"!==k_.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;kA(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),kb(kP,"race",function(e){var t=this;return"[object Array]"!==k_.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");kA(t,e,function(e,t){r(t)},n)})}),kD="u">typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:kP;var kN=864e5,kB=8e3,kF=Array.prototype,kj=Function.prototype,kU=Object.prototype,kz=kF.slice,kq=kU.toString,kH=kU.hasOwnProperty,k$=c1.console,kW=c1.navigator,kV=c1.document,kY=c1.opera,kX=c1.screen,kJ=kW.userAgent,kG=kj.bind,kK=kF.forEach,kZ=kF.indexOf,kQ=kF.map,k0=Array.isArray,k1={},k2={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},k4={log:function(){if(c4.DEBUG&&!k2.isUndefined(k$)&&k$)try{k$.log.apply(k$,arguments)}catch(e){k2.each(arguments,function(e){k$.log(e)})}},warn:function(){if(c4.DEBUG&&!k2.isUndefined(k$)&&k$){var e=["Mixpanel warning:"].concat(k2.toArray(arguments));try{k$.warn.apply(k$,e)}catch(t){k2.each(e,function(e){k$.warn(e)})}}},error:function(){if(c4.DEBUG&&!k2.isUndefined(k$)&&k$){var e=["Mixpanel error:"].concat(k2.toArray(arguments));try{k$.error.apply(k$,e)}catch(t){k2.each(e,function(e){k$.error(e)})}}},critical:function(){if(!k2.isUndefined(k$)&&k$){var e=["Mixpanel error:"].concat(k2.toArray(arguments));try{k$.error.apply(k$,e)}catch(t){k2.each(e,function(e){k$.error(e)})}}}},k5=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(k4,arguments)}},k8=function(e){return{log:k5(k4.log,e),warn:k5(k4.warn,e),error:k5(k4.error,e),critical:k5(k4.critical,e)}},k6=function(e){return function(){try{return e.apply(this,arguments)}catch(e){k4.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),c4.DEBUG&&k4.critical(e)}}},k3=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=k6(t[r]))};k2.bind=function(e,t){var r,n;if(kG&&e.bind===kG)return kG.apply(e,kz.call(arguments,1));if(!k2.isFunction(e))throw TypeError();return r=kz.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(kz.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(kz.call(arguments)));return Object(s)===s?s:o}},k2.each=function(e,t,r){if(null!=e){if(kK&&e.forEach===kK)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===k1)return}else for(var o in e)if(kH.call(e,o)&&t.call(r,e[o],o,e)===k1)return}},k2.extend=function(e){return k2.each(kz.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},k2.isArray=k0||function(e){return"[object Array]"===kq.call(e)},k2.isFunction=function(e){return"function"==typeof e},k2.isArguments=function(e){return!!(e&&kH.call(e,"callee"))},k2.toArray=function(e){return e?e.toArray?e.toArray():k2.isArray(e)||k2.isArguments(e)?kz.call(e):k2.values(e):[]},k2.map=function(e,t,r){if(kQ&&e.map===kQ)return e.map(t,r);var n=[];return k2.each(e,function(e){n.push(t.call(r,e))}),n},k2.keys=function(e){var t=[];return null===e||k2.each(e,function(e,r){t[t.length]=r}),t},k2.values=function(e){var t=[];return null===e||k2.each(e,function(e){t[t.length]=e}),t},k2.include=function(e,t){var r=!1;return null===e?r:kZ&&e.indexOf===kZ?-1!=e.indexOf(t):(k2.each(e,function(e){if(r||(r=e===t))return k1}),r)},k2.includes=function(e,t){return -1!==e.indexOf(t)},k2.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},k2.isObject=function(e){return e===Object(e)&&!k2.isArray(e)},k2.isEmptyObject=function(e){if(k2.isObject(e)){for(var t in e)if(kH.call(e,t))return!1;return!0}return!1},k2.isUndefined=function(e){return void 0===e},k2.isString=function(e){return"[object String]"==kq.call(e)},k2.isDate=function(e){return"[object Date]"==kq.call(e)},k2.isNumber=function(e){return"[object Number]"==kq.call(e)},k2.isElement=function(e){return!!(e&&1===e.nodeType)},k2.encodeDates=function(e){return k2.each(e,function(t,r){k2.isDate(t)?e[r]=k2.formatDate(t):k2.isObject(t)&&(e[r]=k2.encodeDates(t))}),e},k2.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},k2.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},k2.strip_empty_properties=function(e){var t={};return k2.each(e,function(e,r){k2.isString(e)&&e.length>0&&(t[r]=e)}),t},k2.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):k2.isArray(e)?(r=[],k2.each(e,function(e){r.push(k2.truncate(e,t))})):k2.isObject(e)?(r={},k2.each(e,function(e,n){r[n]=k2.truncate(e,t)})):r=e,r},k2.JSONEncode=function(){return function(e){var t=e,r=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},n=function(e,t){var i="",o=" ",s=0,a="",c="",u=0,l=i,h=[],d=t[e];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return r(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i+=o,h=[],"[object Array]"===kq.apply(d)){for(u=d.length,s=0;s<u;s+=1)h[s]=n(s,d)||"null";return c=0===h.length?"[]":i?"[\n"+i+h.join(",\n"+i)+"\n"+l+"]":"["+h.join(",")+"]",i=l,c}for(a in d)kH.call(d,a)&&(c=n(a,d))&&h.push(r(a)+(i?": ":":")+c);return c=0===h.length?"{}":i?"{"+h.join(",")+l+"}":"{"+h.join(",")+"}",i=l,c}};return n("",{"":t})}}(),k2.JSONDecode=function(){var e,t,r={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},n,i=function(t){var r=SyntaxError(t);throw r.at=e,r.text=n,r},o=function(r){return r&&r!==t&&i("Expected '"+r+"' instead of '"+t+"'"),t=n.charAt(e),e+=1,t},s=function(){var e,r="";"-"===t&&(r="-",o("-"));while(t>="0"&&t<="9")r+=t,o();if("."===t){r+=".";while(o()&&t>="0"&&t<="9")r+=t}if("e"===t||"E"===t){r+=t,o(),("-"===t||"+"===t)&&(r+=t,o());while(t>="0"&&t<="9")r+=t,o()}if(isFinite(e=+r))return e;i("Bad number")},a=function(){var e,n,s="",a;if('"'===t)while(o()){if('"'===t)return o(),s;if("\\"===t)if(o(),"u"===t){for(n=0,a=0;n<4;n+=1){if(!isFinite(e=parseInt(o(),16)))break;a=16*a+e}s+=String.fromCharCode(a)}else if("string"==typeof r[t])s+=r[t];else break;else s+=t}i("Bad string")},c=function(){while(t&&t<=" ")o()},u=function(){switch(t){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}i('Unexpected "'+t+'"')},l,h=function(){var e=[];if("["===t){if(o("["),c(),"]"===t)return o("]"),e;while(t){if(e.push(l()),c(),"]"===t)return o("]"),e;o(","),c()}}i("Bad array")},d=function(){var e,r={};if("{"===t){if(o("{"),c(),"}"===t)return o("}"),r;while(t){if(e=a(),c(),o(":"),Object.hasOwnProperty.call(r,e)&&i('Duplicate key "'+e+'"'),r[e]=l(),c(),"}"===t)return o("}"),r;o(","),c()}}i("Bad object")};return l=function(){switch(c(),t){case"{":return d();case"[":return h();case'"':return a();case"-":return s();default:return t>="0"&&t<="9"?s():u()}},function(r){var o;return n=r,e=0,t=" ",o=l(),c(),t&&i("Syntax error"),o}}(),k2.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,n,i,o,s,a,c=0,u=0,l="",h=[];if(!e)return e;e=k2.utf8Encode(e);do r=e.charCodeAt(c++),n=(a=r<<16|e.charCodeAt(c++)<<8|e.charCodeAt(c++))>>18&63,i=a>>12&63,o=a>>6&63,s=63&a,h[u++]=t.charAt(n)+t.charAt(i)+t.charAt(o)+t.charAt(s);while(c<e.length)switch(l=h.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"=";break}return l},k2.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t="",r,n,i=0,o;for(r=n=0,i=e.length,o=0;o<i;o++){var s=e.charCodeAt(o),a=null;s<128?n++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(n>r&&(t+=e.substring(r,n)),t+=a,r=n=o+1)}return n>r&&(t+=e.substring(r,e.length)),t},k2.UUID=function(){try{return c1["crypto"]["randomUUID"]()}catch(r){for(var e=Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",k2.map(e,function(e){return e.toString(16)}).join("")}};var k7=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];k2.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<k7.length;t++)if(-1!==e.indexOf(k7[t]))return!0;return!1},k2.HTTPBuildQuery=function(e,t){var r,n,i=[];return k2.isUndefined(t)&&(t="&"),k2.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},k2.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r="[\\?&]"+t+"=([^&#]*)",n=new RegExp(r),i=n.exec(e);if(null===i||i&&"string"!=typeof i[1]&&i[1].length)return"";var o=i[1];try{o=decodeURIComponent(o)}catch(e){k4.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},k2.cookie={get:function(e){for(var t=e+"=",r=kV.cookie.split(";"),n=0;n<r.length;n++){var i=r[n];while(" "==i.charAt(0))i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=k2.JSONDecode(k2.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=Sg(kV.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),kV.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=Sg(kV.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*36e5),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return kV.cookie=d,d},remove:function(e,t,r){k2.cookie.set(e,"",-1,t,!1,!1,r)}};var k9=function(e){var t=!0;try{var r="__mplss_"+Sh(8),n="xyz";e.setItem(r,n),e.getItem(r)!==n&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},Se=null,St=function(e,t){return null===Se||t?Se=k9(e):Se},Sr=null,Sn=function(e,t){return null===Sr||t?Sr=k9(e):Sr};function Si(e,t,r){var n=function(e){k4.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||k4.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return k2.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}var So=function(){try{return c1.localStorage}catch(e){return null}},Ss=function(){try{return c1.sessionStorage}catch(e){return null}};k2.localStorage=Si(So(),"localStorage",St),k2.sessionStorage=Si(Ss(),"sessionStorage",Sn),k2.register_event=function(){var e=function(e,r,n,i,o){if(!e)return void k4.error("No valid element provided to register_event");if(e.addEventListener&&!i)e.addEventListener(r,n,!!o);else{var s="on"+r,a=e[s];e[s]=t(e,n,a)}};function t(e,t,n){var i=function(i){if(i=i||r(c1.event)){var o=!0,s,a;return k2.isFunction(n)&&(s=n(i)),a=t.call(e,i),(!1===s||!1===a)&&(o=!1),o}};return i}function r(e){return e&&(e.preventDefault=r.preventDefault,e.stopPropagation=r.stopPropagation),e}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},e}();var Sa=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');k2.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!kV.getElementsByTagName)return[];var n=t.split(" "),i,o,s,a,c,u,l,h,d,f,p=[kV];for(u=0;u<n.length;u++){if((i=n[u].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){s=(o=i.split("#"))[0];var g=o[1],m=kV.getElementById(g);if(!m||s&&m.nodeName.toLowerCase()!=s)return[];p=[m];continue}if(i.indexOf(".")>-1){s=(o=i.split("."))[0];var v=o[1];for(!s&&(s="*"),a=[],c=0,l=0;l<p.length;l++)for(d="*"==s?e(p[l]):p[l].getElementsByTagName(s),h=0;h<d.length;h++)a[c++]=d[h];for(l=0,p=[],f=0;l<a.length;l++)a[l].className&&k2.isString(a[l].className)&&r(a[l],v)&&(p[f++]=a[l]);continue}var y=i.match(Sa);if(y){s=y[1];var b=y[2],w=y[3],x=y[4];for(!s&&(s="*"),a=[],c=0,l=0;l<p.length;l++)for(d="*"==s?e(p[l]):p[l].getElementsByTagName(s),h=0;h<d.length;h++)a[c++]=d[h];var _;switch(p=[],f=0,w){case"=":_=function(e){return e.getAttribute(b)==x};break;case"~":_=function(e){return e.getAttribute(b).match(RegExp("\\b"+x+"\\b"))};break;case"|":_=function(e){return e.getAttribute(b).match(RegExp("^"+x+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(b).indexOf(x)};break;case"$":_=function(e){return e.getAttribute(b).lastIndexOf(x)==e.getAttribute(b).length-x.length};break;case"*":_=function(e){return e.getAttribute(b).indexOf(x)>-1};break;default:_=function(e){return e.getAttribute(b)}}for(l=0,p=[],f=0;l<a.length;l++)_(a[l])&&(p[f++]=a[l]);continue}for(s=i,a=[],c=0,l=0;l<p.length;l++)for(d=p[l].getElementsByTagName(s),h=0;h<d.length;h++)a[c++]=d[h];p=a}return p}return function(e){return k2.isElement(e)?[e]:k2.isObject(e)&&!k2.isUndefined(e.length)?e:n.call(this,e)}}();var Sc=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Su=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];k2.info={campaignParams:function(e){var t="",r={};return k2.each(Sc,function(n){(t=k2.getQueryParam(kV.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return k2.each(Su,function(r){(e=k2.getQueryParam(kV.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return k2.extend(k2.info.campaignParams(),k2.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=k2.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n["$search_engine"]=t;var i=k2.getQueryParam(e,r);i.length&&(n["mp_keyword"]=i)}return n},browser:function(e,t,r){if(t=t||"",r||k2.includes(e," OPR/"))return k2.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(k2.includes(e,"IEMobile")||k2.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(k2.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(k2.includes(e,"Edge")||k2.includes(e,"Edg/"))return"Microsoft Edge";else if(k2.includes(e,"FBIOS"))return"Facebook Mobile";else if(k2.includes(e,"Whale/"))return"Whale Browser";else if(k2.includes(e,"Chrome"))return"Chrome";else if(k2.includes(e,"CriOS"))return"Chrome iOS";else if(k2.includes(e,"UCWEB")||k2.includes(e,"UCBrowser"))return"UC Browser";else if(k2.includes(e,"FxiOS"))return"Firefox iOS";else if(k2.includes(t,"Apple"))return k2.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(k2.includes(e,"Android"))return"Android Mobile";else if(k2.includes(e,"Konqueror"))return"Konqueror";else if(k2.includes(e,"Firefox"))return"Firefox";else if(k2.includes(e,"MSIE")||k2.includes(e,"Trident/"))return"Internet Explorer";else if(k2.includes(e,"Gecko"))return"Mozilla";else return""},browserVersion:function(e,t,r){var n=k2.info.browser(e,t,r),i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},o=i[n];if(void 0===o)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=kJ;if(/Windows/i.test(e))return/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(e))return"iOS";if(/Android/.test(e))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(/Mac/i.test(e))return"Mac OS X";else if(/Linux/.test(e))return"Linux";else if(/CrOS/.test(e))return"Chrome OS";else return""},device:function(e){if(/Windows Phone/i.test(e)||/WPDesktop/.test(e))return"Windows Phone";if(/iPad/.test(e))return"iPad";if(/iPod/.test(e))return"iPod Touch";if(/iPhone/.test(e))return"iPhone";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";else if(/Android/.test(e))return"Android";else return""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return c1.location.href},properties:function(e){return"object"!=typeof e&&(e={}),k2.extend(k2.strip_empty_properties({$os:k2.info.os(),$browser:k2.info.browser(kJ,kW.vendor,kY),$referrer:kV.referrer,$referring_domain:k2.info.referringDomain(kV.referrer),$device:k2.info.device(kJ)}),{$current_url:k2.info.currentUrl(),$browser_version:k2.info.browserVersion(kJ,kW.vendor,kY),$screen_height:kX.height,$screen_width:kX.width,mp_lib:"web",$lib_version:c4.LIB_VERSION,$insert_id:Sh(),time:k2.timestamp()/1e3},k2.strip_empty_properties(e))},people_properties:function(){return k2.extend(k2.strip_empty_properties({$os:k2.info.os(),$browser:k2.info.browser(kJ,kW.vendor,kY)}),{$browser_version:k2.info.browserVersion(kJ,kW.vendor,kY)})},mpPageViewProperties:function(){return k2.strip_empty_properties({current_page_title:kV.title,current_domain:c1.location.hostname,current_url_path:c1.location.pathname,current_url_protocol:c1.location.protocol,current_url_search:c1.location.search})}};var Sl=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new kD(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)})),r}},Sh=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Sd=function(){var e=k2.UUID().replace(/-/g,""),t=k2.UUID().replace(/-/g,"").substring(0,16),r="01";return"00-"+e+"-"+t+"-"+r},Sf=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Sp=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Sg=function(e){var t=Sp,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Sf);var i=e.match(t);return i?i[0]:""},Sm=function(){var e=c1.navigator["onLine"];return k2.isUndefined(e)||e},Sv=function(){},Sy=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},Sb=null,Sw=null;"u">typeof JSON&&(Sb=JSON.stringify,Sw=JSON.parse),Sb=Sb||k2.JSONEncode,Sw=Sw||k2.JSONDecode;var Sx=function(e,t,r){if(!c1.CompressionStream)return!1;var n=k2.info.browser(e,t,r),i=k2.info.browserVersion(e,t,r);return"Safari"!==n&&"Mobile Safari"!==n||!(i>=16.4)||!(i<16.6)};k2["info"]=k2.info,k2["info"]["browser"]=k2.info.browser,k2["info"]["browserVersion"]=k2.info.browserVersion,k2["info"]["device"]=k2.info.device,k2["info"]["properties"]=k2.info.properties,k2["isBlockedUA"]=k2.isBlockedUA,k2["isEmptyObject"]=k2.isEmptyObject,k2["isObject"]=k2.isObject,k2["JSONDecode"]=k2.JSONDecode,k2["JSONEncode"]=k2.JSONEncode,k2["toArray"]=k2.toArray,k2["NPO"]=kP;var S_=function(e,t,r){this.dbName=e,this.storeName=t,this.version=r.version,this.storeNamesInDb=r.storeNames,this.dbPromise=null};S_.prototype._openDb=function(){var e=this.dbName,t=this.version,r=this.storeNamesInDb;return new kD(function(n,i){var o=c1.indexedDB.open(e,t);o["onerror"]=function(){i(o.error)},o["onsuccess"]=function(){n(o.result)},o["onupgradeneeded"]=function(e){var t=e.target.result;r.forEach(function(e){t.objectStoreNames.contains(e)||t.createObjectStore(e)})}})},S_.prototype.init=function(){return c1.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof c1["IDBDatabase"]?kD.resolve():kD.reject(e)})):kD.reject("indexedDB is not supported in this browser")},S_.prototype.isInitialized=function(){return!!this.dbPromise},S_.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new kD(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch((function(e){return e&&"InvalidStateError"===e["name"]?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):kD.reject(e)}).bind(this))},S_.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},S_.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},S_.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},S_.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var Sk="mixpanelBrowserDb",SS="mixpanelRecordingEvents",SC="mixpanelRecordingRegistry",SE={version:1,storeNames:[SS,SC]},SO="__mp_opt_in_out_";function SI(e,t){SU(!0,e,t)}function ST(e,t){SU(!1,e,t)}function SA(e,t){return"1"===SF(e,t)}function SM(e,t){if(Sj(t))return k4.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===SF(e,t);return r&&k4.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function SR(e){return Sz(e,function(e){return this.get_config(e)})}function SP(e){return Sz(e,function(e){return this._get_config(e)})}function SL(e){return Sz(e,function(e){return this._get_config(e)})}function SD(e,t){SN(t=t||{}).remove(SB(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function SN(e){return"localStorage"===(e=e||{}).persistenceType?k2.localStorage:k2.cookie}function SB(e,t){return((t=t||{}).persistencePrefix||SO)+e}function SF(e,t){return SN(t).get(SB(e,t))}function Sj(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||c1,r=t["navigator"]||{},n=!1;return k2.each([r["doNotTrack"],r["msDoNotTrack"],t["doNotTrack"]],function(e){k2.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}function SU(e,t,r){k2.isString(t)&&t.length?(SN(r=r||{}).set(SB(t,r),+!!e,k2.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):k4.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function Sz(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=SM(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){k4.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}var Sq=k8("lock"),SH=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||So(),this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||kD};SH.prototype.withLock=function(e,t){var r=this.promiseImpl;return new r(k2.bind(function(r,n){var i=t||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",h=s+":Y",d=s+":Z",f=function(e){if(new Date().getTime()-o>c){Sq.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(d),u.removeItem(h),m();return}setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},p=function(e,t){e()?t():f(function(){p(e,t)})},g=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(St(u,!0)||n(Error("localStorage support dropped while acquiring lock")),!1))},m=function(){u.setItem(l,i),p(g,function(){u.getItem(l)===i?v():f(function(){u.getItem(h)!==i?m():p(function(){return!u.getItem(d)},v)})})},v=function(){u.setItem(d,"1");var t=function(){u.removeItem(d),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(St(u,!0))m();else throw Error("localStorage support check failed")}catch(e){n(e)}},this))};var S$=function(e){this.storage=e||So()};S$.prototype.init=function(){return this.storage?kD.resolve():kD.reject(Error("localStorage is not available"))},S$.prototype.isInitialized=function(){return!0},S$.prototype.setItem=function(e,t){return new kD(k2.bind(function(r,n){try{this.storage.setItem(e,Sb(t))}catch(e){n(e)}r()},this))},S$.prototype.getItem=function(e){return new kD(k2.bind(function(t,r){var n;try{n=Sw(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},S$.prototype.removeItem=function(e){return new kD(k2.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var SW=k8("batch"),SV=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new S$,this.lock=new SH(e,{storage:t.sharedLockStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||k2.bind(SW.error,SW),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=Sl(k2.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=k2.bind(function(e){return this._enqueuePersisted([e])},this)};SV.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?kD.resolve():this.queueStorage.init().then(k2.bind(function(){this.initialized=!0},this)).catch(k2.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},SV.prototype.enqueue=function(e,t){var r={id:Sh(),flushAfter:new Date().getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),kD.resolve(!0))},SV.prototype._enqueuePersisted=function(e){var t=k2.bind(function(){return this.ensureInit().then(k2.bind(function(){return this.readFromStorage()},this)).then(k2.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(k2.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(k2.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(k2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},SV.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(k2.bind(function(){return this.readFromStorage()},this)).then(k2.bind(function(r){if(r.length){var n={};k2.each(t,function(e){n[e["id"]]=!0});for(var i=0;i<r.length;i++){var o=r[i];if(new Date().getTime()>o["flushAfter"]&&!n[o["id"]]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):kD.resolve(t)};var SY=function(e,t){var r=[];return k2.each(e,function(e){e["id"]&&!t[e["id"]]&&r.push(e)}),r};SV.prototype.removeItemsByID=function(e){var t={};if(k2.each(e,function(e){t[e]=!0}),this.memQueue=SY(this.memQueue,t),!this.usePersistence)return kD.resolve(!0);var r=k2.bind(function(){return this.ensureInit().then(k2.bind(function(){return this.readFromStorage()},this)).then(k2.bind(function(e){return e=SY(e,t),this.saveToStorage(e)},this)).then(k2.bind(function(){return this.readFromStorage()},this)).then(k2.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n["id"]&&t[n["id"]])throw Error("Item not removed from storage")}return!0},this)).catch(k2.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(k2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!St(this.lock.storage,!0)&&r().then(k2.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(k2.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))};var SX=function(e,t){var r=[];return k2.each(e,function(e){var n=e["id"];if(n in t){var i=t[n];null!==i&&(e["payload"]=i,r.push(e))}else r.push(e)}),r};SV.prototype.updatePayloads=function(e){return(this.memQueue=SX(this.memQueue,e),this.usePersistence)?this.lock.withLock(k2.bind(function(){return this.ensureInit().then(k2.bind(function(){return this.readFromStorage()},this)).then(k2.bind(function(t){return t=SX(t,e),this.saveToStorage(t)},this)).catch(k2.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(k2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):kD.resolve(!0)},SV.prototype.readFromStorage=function(){return this.ensureInit().then(k2.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(k2.bind(function(e){return e&&!k2.isArray(e)&&(this.reportError("Invalid storage entry:",e),e=null),e||[]},this)).catch(k2.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},SV.prototype.saveToStorage=function(e){return this.ensureInit().then(k2.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(k2.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},SV.prototype.clear=function(){return(this.memQueue=[],this.usePersistence)?this.ensureInit().then(k2.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):kD.resolve()};var SJ=6e5,SG=k8("batch"),SK=function(e,t){this.errorReporter=t.errorReporter,this.queue=new SV(e,{errorReporter:k2.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig["batch_size"],this.flushInterval=this.libConfig["batch_flush_interval_ms"],this.stopped=!this.libConfig["batch_autostart"],this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};SK.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},SK.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},SK.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},SK.prototype.clear=function(){return this.queue.clear()},SK.prototype.resetBatchSize=function(){this.batchSize=this.libConfig["batch_size"]},SK.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig["batch_flush_interval_ms"])},SK.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(k2.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},SK.prototype.sendRequestPromise=function(e,t){return new kD(k2.bind(function(r){this.sendRequest(e,t,r)},this))},SK.prototype.flush=function(e){if(this.requestInProgress)return SG.log("Flush: Request already in progress"),kD.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig["batch_request_timeout_ms"],r=new Date().getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(k2.bind(function(i){var o=i.length===n,s=[],a={};if(k2.each(i,function(e){var t=e["payload"];if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t["event"]&&t["properties"]&&(t["properties"]=k2.extend({},t["properties"],{mp_sent_by_lib_version:c4.LIB_VERSION}));var r=!0,n=e["id"];n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e["id"]]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),kD.resolve();var c=k2.bind(function(){return this.queue.removeItemsByID(k2.map(i,function(e){return e["id"]})).then(k2.bind(function(e){return(k2.each(i,k2.bind(function(e){var t=e["id"];t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e)?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o)?(this.resetFlush(),kD.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),kD.resolve())},this))},this),u=k2.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(k2.isObject(o)&&"timeout"===o.error&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(k2.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!Sm()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(SJ,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),kD.resolve()}else{if(!k2.isObject(o)||413!==o.httpStatusCode)return c();if(!(i.length>1))return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c();var u=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),kD.resolve()}}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),SG.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(k2.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},SK.prototype.reportError=function(e,t){if(SG.error.apply(SG.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){SG.error(e)}};var SZ=function(e){var t=Date.now();return!e||t>e["maxExpires"]||t>e["idleExpires"]},SQ=250,S0=function(e,t){if(!k2.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(r){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},S1="change",S2="click",S4="hashchange",S5="input",S8="load",S6="mp_locationchange",S3="popstate",S7="scrollend",S9="scroll",Ce="select",Ct="submit",Cr="toggle",Cn="visibilitychange",Ci=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Co=["mp-include"],Cs=["mp-no-track"],Ca=Cs.concat(["mp-sensitive"]),Cc=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Cu={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},Cl={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},Ch={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Cd=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Cf=5,Cp=k8("autocapture");function Cg(e){for(var t={},r=Cm(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function Cm(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Cv(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!CS(e))return e}function Cy(e,t,r,n,i,o){var s={$classes:Cm(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s["$id"]=a),CM(e,t,i,o)&&k2.each(Cc.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);CR(n)&&(s["$attr-"+t]=n)}});var c=1,u=1,l=e;while(l=Cv(l))c++,l.tagName===e.tagName&&u++;return s["$nth_child"]=c,s["$nth_of_type"]=u,s}function Cb(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};k2.each(i,function(e){l[e]=!0});var h=null,d=void 0===e.target?e.srcElement:e.target;if(CE(d)&&(d=d.parentNode),CT(d,e)&&C_(d,e,r,n)&&!Ck(d,e,o,s)){var f=[d],p=d;while(p.parentNode&&!CC(p,"body"))f.push(p.parentNode),p=p.parentNode;var g=[],m,v=!1;if(k2.each(f,function(t){var i=CM(t,e,r,n);l["href"]||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&CR(m)&&m),Ck(t,e,o,s)&&(v=!0),g.push(Cy(t,e,l,c,r,n))},this),!v){var y=kV["documentElement"];if(h={$event_type:e.type,$host:c1.location.host,$pathname:c1.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y["clientHeight"],c1["innerHeight"]||0),$viewportWidth:Math.max(y["clientWidth"],c1["innerWidth"]||0),$pageHeight:kV["body"]["offsetHeight"]||0,$pageWidth:kV["body"]["offsetWidth"]||0},k2.each(c,function(e){if(!l[e]&&d.hasAttribute(e)){var t=d.getAttribute(e);CR(t)&&(h["$el_attr__"+e]=t)}}),a&&(b=Cw(d,e,r,n))&&b.length&&(h["$el_text"]=b),e.type===S2&&(k2.each(Ci,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h["$captured_for_heatmap"]=!0),d=Cx(e)),a){var b=Cw(d,e,r,n);b&&b.length&&(h["$el_text"]=b)}if(d){if(!C_(d,e,r,n)||Ck(d,e,o,s))return null;var w=Cy(d,e,l,c,r,n);h["$target"]=w,h["$el_classes"]=w["$classes"],k2.extend(h,k2.strip_empty_properties({$el_id:w["$id"],$el_tag_name:w["$tag_name"]}))}}}return h}function Cw(e,t,r,n){var i="";return CM(e,t,r,n)&&e.childNodes&&e.childNodes.length&&k2.each(e.childNodes,function(e){CE(e)&&e.textContent&&(i+=k2.trim(e.textContent).split(/(\s+)/).filter(CR).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),k2.trim(i)}function Cx(e){for(var t=e.target,r=e["composedPath"](),n=0;n<r.length;n++){var i=r[n];if(CC(i,"a")||CC(i,"button")||CC(i,"input")||CC(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}function C_(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return Cp.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(e){Cp.critical("Error while checking selector: "+o,e)}}return!1}function Ck(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(e){return Cp.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(e){Cp.critical("Error while checking selector: "+o,e)}}var s=Cg(e);for(i=0;i<Cs.length;i++)if(s[Cs[i]])return!0;return!1}function CS(e){return e&&1===e.nodeType}function CC(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function CE(e){return e&&3===e.nodeType}function CO(){try{var e=kV.createElement("div");return!!e["matches"]}catch(e){return!1}}function CI(){return"u">typeof WeakSet}function CT(e,t){if(!e||CC(e,"html")||!CS(e))return!1;var r=e.tagName.toLowerCase();switch(r){case"form":return t.type===Ct;case"input":if(-1===["button","submit"].indexOf(e.getAttribute("type")))return t.type===S1;return t.type===S2;case"select":case"textarea":return t.type===S1;default:return t.type===S2}}function CA(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"==typeof t){var r=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(r.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function CM(e,t,r,n){var i;if(!C_(e,t,r,n))return!1;for(var o=e;o.parentNode&&!CC(o,"body");o=o.parentNode){var s=Cg(o);for(i=0;i<Ca.length;i++)if(s[Ca[i]])return!1}var a=Cg(e);for(i=0;i<Co.length;i++)if(a[Co[i]])return!0;if(CC(e,"input")||CC(e,"select")||CC(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}return!CA(e)}function CR(e){if(null===e||k2.isUndefined(e))return!1;if("string"==typeof e){e=k2.trim(e);var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var r=/(^\d{3}-?\d{2}-?\d{4}$)/;if(r.test(e))return!1}return!0}function CP(e){var t="onscrollend"in c1,r=k6(e),n=S7;if(!t){var i=null,o=100;r=k6(function(){clearTimeout(i),i=setTimeout(e,o)}),n=S9}return{listener:r,eventType:n}}function CL(e){for(var t=0;t<Cd.length;t++)if(e.hasAttribute(Cd[t]))return!0;return!1}function CD(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return Cu[r]}function CN(e){var t=e.tagName.toLowerCase();return!!("button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||CL(e)||CD(e)||"a"===t&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function CB(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(Cl[t])return!0;if(CN(e))return!1;var r=e.parentElement,n=0;while(r&&n<Cf){if(CN(r))return!1;if(r.getRootNode&&r.getRootNode()!==kV){var i=r.getRootNode();if(i.host&&CN(i.host))return!1}r=r.parentElement,n++}return!!Ch[t]}function CF(e){return"composedPath"in e?e["composedPath"]():[]}function Cj(e){var t=CF(e);return t&&t.length>0?t[0]:e["target"]||e["srcElement"]}var CU=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",Cz="data-rr-is-password",Cq=["password","email","tel","hidden"];function CH(e){return e?Array.isArray(e)?e:[e]:[]}function C$(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=CH(r).join(","),t.input.unmaskingSelector=CH(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=CH(o);if(c)if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=CH(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}function CW(e,t){return!!t&&!!e.closest(t)}function CV(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==Cq.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!!(n&&""!==n&&"off"!==n||e.hasAttribute(Cz)||CA(e))||(t.input.maskAll?!CW(e,t.input.unmaskingSelector):!!(CW(e,t.input.maskingSelector)||CW(e,CU)))}function CY(e,t){return!!e&&(!!(t.text._legacyClassRegex&&b$(e,t.text._legacyClassRegex))||(t.text.maskAll?!CW(e,t.text.unmaskingSelector):!!(CW(e,t.text.maskingSelector)||CW(e,CU))))}var CX=k8("network-plugin");function CJ(e){return Math.round(Date.now()-e.performance.now())}var CG={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function CK(e){return"navigation"===e.entryType}function CZ(e){return"resource"===e.entryType}function CQ(e,t){for(var r=e.length,n=r-1;n>=0;n-=1)if(t(e[n]))return e[n]}function C0(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}var C1=1048576;function C2(e){return e&&"string"==typeof e&&e.length>C1?(CX.error("Body truncated from "+e.length+" to "+C1+" characters"),e.substring(0,C1)+"... [truncated]"):e}function C4(e,t,r){if(!t.PerformanceObserver)return CX.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return CK(e)||CZ(e)&&r.initiatorTypes.includes(e.initiatorType)});e({requests:n.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:CJ(t)}}),isInitial:!0})}var i=new t.PerformanceObserver(function(n){var i=n.getEntries().filter(function(e){return CZ(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType});e({requests:i.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:CJ(t)}})})});return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}function C5(e,t,r){return!!t[e]&&0!==t[e].length&&t[e].includes(r.toLowerCase())}function C8(e,t,r){return!!t[e]&&0!==t[e].length&&Sy(r,t[e])}function C6(e){if(null==e)return null;var t;if("string"==typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=k2.HTTPBuildQuery(e);else if(!k2.isObject(e))return"Cannot read body of type "+typeof e;else try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}return C2(t)}function C3(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(C2(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}})}function C7(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return CX.error("Cannot find performance entry"),Promise.resolve(null);var s=e.performance.getEntriesByName(r),a=CQ(s,function(e){return CZ(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return a?Promise.resolve(a):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return C7(e,t,r,n,i,o+1)})}function C9(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=C0(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,c){void 0===s&&(s=!0);var u=this,l=new Request(o,{method:i}),h={},d,f,p={},g=u.setRequestHeader.bind(u);u.setRequestHeader=function(e,t){return C5("request",r.recordHeaders,e)&&(p[e]=t),g(e,t)},h.requestHeaders=p;var m=u.send.bind(u);u.send=function(e){return C8("request",r.recordBodyUrls,l.url)&&(h.requestBody=C6(e)),d=t.performance.now(),m(e)},u.addEventListener("readystatechange",function(){if(u.readyState===u.DONE){f=t.performance.now();var n={},i=u.getAllResponseHeaders();if(i){var o=i.trim().split(/[\r\n]+/);o.forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&C5("response",r.recordHeaders,i)&&(n[i]=o)}}})}h.responseHeaders=n,C8("response",r.recordBodyUrls,l.url)&&(h.responseBody=C6(u.response)),C7(t,"xmlhttprequest",l.url,d,f).then(function(r){if(!r)return void CX.error("Failed to get performance entry for XHR request to "+l.url);var n={url:r.name,method:l.method,initiatorType:r.initiatorType,status:u.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:CJ(t),requestHeaders:h.requestHeaders,requestBody:h.requestBody,responseHeaders:h.responseHeaders,responseBody:h.responseBody};e({requests:[n]})}).catch(function(e){CX.error("Error recording XHR request to "+l.url+": "+String(e))})}}),n.call(u,i,o,s,a,c)}});return function(){n()}}function Ee(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=C0(t,"fetch",function(n){return function(){var i=new Request(arguments[0],arguments[1]),o,s={},a,c,u,l=Promise.resolve(void 0),h,d=new Promise(function(e){h=e});try{var f={};i.headers.forEach(function(e,t){C5("request",r.recordHeaders,t)&&(f[t]=e)}),s.requestHeaders=f,C8("request",r.recordBodyUrls,i.url)&&(l=C3(i).then(function(e){s.requestBody=e})),a=t.performance.now(),u=n.apply(t,arguments).then(function(e){o=e,c=t.performance.now();var n={};return o.headers.forEach(function(e,t){C5("response",r.recordHeaders,t)&&(n[t]=e)}),s.responseHeaders=n,C8("response",r.recordBodyUrls,i.url)?C3(o).then(function(e){s.responseBody=e,h()}):h(),o})}catch(e){u=Promise.reject(e)}return Promise.all([l,d,u]).then(function(){return C7(t,"fetch",i.url,a,c)}).then(function(r){if(!r)return void CX.error("Failed to get performance entry for fetch request to "+i.url);var n={url:r.name,method:i.method,initiatorType:r.initiatorType,status:o?o.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:CJ(t),requestHeaders:s.requestHeaders,requestBody:s.requestBody,responseHeaders:s.responseHeaders,responseBody:s.responseBody};e({requests:[n]})}).catch(function(e){CX.error("Error recording fetch request to "+i.url+": "+String(e))}),u}});return function(){n()}}function Et(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},CG.recordHeaders,r.recordHeaders||{}),i=Object.assign({},CG.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},CG,r),s=function(t){var r=t.requests.filter(function(e){var t=Sy(e.url,o.ignoreRequestUrls||[]);return!t&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=C4(s,t,o),c=C9(s,t,o),u=Ee(s,t,o);return function(){a(),c(),u()}}var Er="rrweb/network@1.mp",En=function(e){return{name:Er,observer:Et,options:e}},Ei=k8("recorder"),Eo=c1["CompressionStream"],Es={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Ea=new Set([ys.MouseMove,ys.MouseInteraction,ys.Scroll,ys.ViewportResize,ys.Input,ys.TouchMove,ys.MediaInteraction,ys.Drag,ys.Selection]);function Ec(e){return e.type===yo.IncrementalSnapshot&&Ea.has(e.data.source)}var Eu=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Sv,this._onMaxLengthReached=e.onMaxLengthReached||Sv,this._onBatchSent=e.onBatchSent||Sv,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=kN,this.recordMinMs=0,this._recordMinMsCheckStart=null;var t=St(e.sharedLockStorage||So(),!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new S_(Sk,SS,SE),this.batcher=new SK(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Es,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:SQ,sharedLockTimeoutMS:1e4})};Eu.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e["$device_id"]=t);var r=this._mixpanel.get_property("$user_id");return r&&(e["$user_id"]=r),e},Eu.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch((function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}).bind(this)).then((function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))}).bind(this))},Eu.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Eu.prototype.get_config=function(e){return this.getConfig(e)},Eu.prototype.startRecording=function(e){if(null===this._rrwebRecord)return void this.reportError("rrweb record function not provided. ");if(null!==this._stopRecording)return void Ei.log("Recording already in progress, skipping startRecording.");this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>kN&&(this.recordMaxMs=kN,Ei.critical("record_max_ms cannot be greater than "+kN+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=k2.info.currentUrl(),this.replayStartUrl=k2.info.currentUrl()),e||this.recordMinMs>0?(this.batcher.stop(),this._recordMinMsCheckStart=null):this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}).bind(this);t();var r=this.getConfig("record_block_selector");(""===r||null===r)&&(r=void 0);var n=C$(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push(En(o))}this.getConfig("record_console")&&i.push(kv({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=S0(this.getConfig("record_allowed_iframe_origins"),Ei);try{this._stopRecording=this._rrwebRecord({emit:(function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(null===this._recordMinMsCheckStart&&(this._recordMinMsCheckStart=e.timestamp),Ec(e)&&(this.batcher.stopped&&e.timestamp-this._recordMinMsCheckStart>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(CV,n),maskTextFn:this._getMaskFn(CY,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var c=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),c)},Eu.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Eu.prototype.isRrwebStopped=function(){return null===this._stopRecording},Eu.prototype.flushEventsWithOptOut=function(e,t,r){var n=(function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,r,n)},Eu.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},Eu.deserialize=function(e,t){var r=new Eu(k2.extend({},t,{replayId:e["replayId"],batchStartUrl:e["batchStartUrl"],replayStartUrl:e["replayStartUrl"],idleExpires:e["idleExpires"],maxExpires:e["maxExpires"],replayStartTime:e["replayStartTime"],lastEventTimestamp:e["lastEventTimestamp"],seqNo:e["seqNo"],sharedLockStorage:t.sharedLockStorage}));return r},Eu.prototype._getApiRoute=function(){return this.getConfig("api_routes")["record"]},Eu.prototype._sendRequest=function(e,t,r,n){var i=(function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=k2.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}).bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");c1["fetch"](o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},Eu.prototype._flushEvents=SR(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,c=0;c<n;c++)o=Math.min(o,e[c].timestamp),s=Math.max(s,e[c].timestamp),e[c].type===yo.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a){r({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var u=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:c4.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),Sx(kJ,kW.vendor,kY)){var d=new Blob([h],{type:"application/json"}).stream(),f=d.pipeThrough(new Eo("gzip"));new Response(f).blob().then((function(e){l["format"]="gzip",this._sendRequest(i,l,e,r)}).bind(this))}else l["format"]="body",this._sendRequest(i,l,h,r)}}),Eu.prototype.reportError=function(e,t){Ei.error.apply(Ei.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){Ei.error(e)}},Eu.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Eu.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>kB?(Ei.critical("record_min_ms cannot be greater than "+kB+"ms. Capping value."),kB):e},Eu.prototype._getMaskFn=function(e,t){return(function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(!i)return r;var o=Math.min(r.length,1e4);return"*".repeat(o)}).bind(this)};var El=function(e){this.idb=new S_(Sk,SC,SE),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};El.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},El.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},El.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return kD.resolve();var t=e["tabId"];return t?this.idb.init().then((function(){return this.idb.setItem(t,e)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),kD.resolve())},El.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return SZ(e)?null:e}).bind(this)).catch(this.handleError.bind(this)):kD.resolve(null)},El.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},El.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(e){if(e)return e["maxExpires"]=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))},El.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):kD.resolve()},El.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(e){return SZ(e)}).map((function(e){var t=Eu.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return t.unloadPersistedData().then((function(){return this.idb.removeItem(e["tabId"])}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return kD.all(t)}).bind(this)).catch(this.handleError.bind(this)):kD.resolve([])};var Eh=k8("recorder"),Ed=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||bb,this.sharedLockStorage=r,this.recordingRegistry=new El({mixpanelInstance:this.mixpanelInstance,errorReporter:Eh.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function Ef(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}Ed.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped())return void Eh.log("Recording already in progress, skipping startRecording.");var t=(function(){Eh.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),r=(function(){Eh.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),n=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this["__flushPromise"]=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:k2.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Eu.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Eu(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Ed.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then((function(){return this.recordingRegistry.clearActiveRecording()}).bind(this)).then((function(){this.stopRecordingInProgress=!1}).bind(this))},Ed.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Ed.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return kD.resolve()},Ed.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),kD.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Eh.log("No resumable recording found."),null)}).bind(this))},Ed.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Ed.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},Ed.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(Ed.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),c1[c8]=Ed;var Ep={exports:{}},Eg;function Em(){return Eg||(Eg=1,function(e,t){(function(t,r){e.exports=r()})(0,function(){function e(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var t={},r={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!!t&&void 0!==t.indexOf&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++)if(null==n||void 0===(n=n[i[o]]))return r;return n},missing:function(){for(var e=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=t.apply({var:i},this);(null===o||""===o)&&e.push(i)}return e},missing_some:function(e,r){var n=t.apply({missing:r},this);return r.length-n.length>=e?[]:n}};return t.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},t.truthy=function(e){return(!Array.isArray(e)||0!==e.length)&&!!e},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,n){if(Array.isArray(e))return e.map(function(e){return t.apply(e,n)});if(!t.is_logic(e))return e;var i=t.get_operator(e),o=e[i],s,a,c,u,l;if(Array.isArray(o)||(o=[o]),"if"===i||"?:"==i){for(s=0;s<o.length-1;s+=2)if(t.truthy(t.apply(o[s],n)))return t.apply(o[s+1],n);return o.length===s+1?t.apply(o[s],n):null}if("and"===i){for(s=0;s<o.length&&(a=t.apply(o[s],n),t.truthy(a));s+=1);return a}if("or"===i){for(s=0;s<o.length&&(a=t.apply(o[s],n),!t.truthy(a));s+=1);return a}if("filter"===i)return(u=t.apply(o[0],n),c=o[1],Array.isArray(u))?u.filter(function(e){return t.truthy(t.apply(c,e))}):[];if("map"===i)return(u=t.apply(o[0],n),c=o[1],Array.isArray(u))?u.map(function(e){return t.apply(c,e)}):[];else if("reduce"===i)return(u=t.apply(o[0],n),c=o[1],l=void 0!==o[2]?t.apply(o[2],n):null,Array.isArray(u))?u.reduce(function(e,r){return t.apply(c,{current:r,accumulator:e})},l):l;else if("all"===i){if(u=t.apply(o[0],n),c=o[1],!Array.isArray(u)||!u.length)return!1;for(s=0;s<u.length;s+=1)if(!t.truthy(t.apply(c,u[s])))return!1;return!0}else if("none"===i){if(u=t.apply(o[0],n),c=o[1],!Array.isArray(u)||!u.length)return!0;for(s=0;s<u.length;s+=1)if(t.truthy(t.apply(c,u[s])))return!1;return!0}else if("some"===i){if(u=t.apply(o[0],n),c=o[1],!Array.isArray(u)||!u.length)return!1;for(s=0;s<u.length;s+=1)if(t.truthy(t.apply(c,u[s])))return!0;return!1}if(o=o.map(function(e){return t.apply(e,n)}),r.hasOwnProperty(i)&&"function"==typeof r[i])return r[i].apply(n,o);if(i.indexOf(".")>0){var h=String(i).split("."),d=r;for(s=0;s<h.length;s++){if(!d.hasOwnProperty(h[s]))throw Error("Unrecognized operation "+i+" (failed at "+h.slice(0,s+1).join(".")+")");d=d[h[s]]}return d.apply(n,o)}throw Error("Unrecognized operation "+i)},t.uses_data=function(r){var n=[];if(t.is_logic(r)){var i=t.get_operator(r),o=r[i];Array.isArray(o)||(o=[o]),"var"===i?n.push(o[0]):o.forEach(function(e){n.push.apply(n,t.uses_data(e))})}return e(n)},t.add_operation=function(e,t){r[e]=t},t.rm_operation=function(e){delete r[e]},t.rule_like=function(e,r){if(r===e||"@"===r)return!0;if("number"===r)return"number"==typeof e;if("string"===r)return"string"==typeof e;if("array"===r)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(r)){if(t.is_logic(e)){var n=t.get_operator(r),i=t.get_operator(e);if("@"===n||n===i)return t.rule_like(t.get_values(e,!1),t.get_values(r,!1))}return!1}if(Array.isArray(r)&&Array.isArray(e)){if(r.length!==e.length)return!1;for(var o=0;o<r.length;o+=1)if(!t.rule_like(e[o],r[o]))return!1;return!0}return!1},t})}(Ep)),Ep.exports}Ep.exports;var Ev=Em(),Ey=Ef(Ev),Eb=function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!k2.isEmptyObject(n))try{i=Ey.apply(n,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}},Ew={};Ew["eventMatchesCriteria"]=Eb,c1[c5]=Promise.resolve(Ew);var Ex=30,E_=1e3,Ek=4,ES=!1;function EC(){this.clicks=[]}function EE(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}EC.prototype.isRageClick=function(e,t){t=t||{};var r=t["threshold_px"]||Ex,n=t["timeout_ms"]||E_,i=t["click_count"]||Ek,o=t["interactive_elements_only"]||ES;if(o){var s=Cj(e);if(!s||CB(s))return!1}var a=Date.now(),c=e["pageX"],u=e["pageY"],l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<n&&Math.sqrt(Math.pow(c-l.x,2)+Math.pow(u-l.y,2))<r){if(this.clicks.push({x:c,y:u,timestamp:a}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:c,y:u,timestamp:a}];return!1},EE.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return Cj(e)},EE.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=CF(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},EE.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){Cp.critical("Error while observing shadow root",e)}}},EE.prototype.start=function(){if(!this.observedShadowRoots){if(!CI())return void Cp.critical("Shadow DOM observation unavailable: WeakSet not supported");this.observedShadowRoots=new WeakSet}},EE.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){Cp.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var EO=500,EI=[S1,S5,Ct,Ce,Cr],ET=[S7],EA=[S4],EM={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function ER(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}ER.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e["target"]||e["srcElement"]),!(!t||CB(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},ER.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},ER.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e["timeout_ms"],r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},ER.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},ER.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},ER.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},ER.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e["timeout_ms"],r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)},ER.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;EI.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),EA.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),ET.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,EM)}catch(e){Cp.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new EE(function(){e.recordChangeEvent()},EM),this.shadowDOMObserver.start()}catch(e){Cp.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},ER.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){Cp.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){Cp.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){Cp.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var EP="autocapture",EL="track_pageview",ED="full-url",EN="url-with-path-and-query-string",EB="url-with-path",EF="allow_element_callback",Ej="allow_selectors",EU="allow_url_regexes",Ez="block_attrs",Eq="block_element_callback",EH="block_selectors",E$="block_url_regexes",EW="capture_extra_attrs",EV="capture_text_content",EY="scroll_capture_all",EX="scroll_depth_percent_checkpoints",EJ="click",EG="dead_click",EK="input",EZ="pageview",EQ="rage_click",E0="scroll",E1="page_leave",E2="submit",E4={};E4[Ej]=[],E4[EU]=[],E4[Ez]=[],E4[Eq]=null,E4[EH]=[],E4[E$]=[],E4[EW]=[],E4[EV]=!1,E4[EY]=!1,E4[EX]=[25,50,75,100],E4[EJ]=!0,E4[EG]=!0,E4[EK]=!0,E4[EZ]=ED,E4[EQ]=!0,E4[E0]=!0,E4[E1]=!1,E4[E2]=!0;var E5={$mp_autocapture:!0},E8="$mp_click",E6="$mp_dead_click",E3="$mp_input_change",E7="$mp_rage_click",E9="$mp_scroll",Oe="$mp_submit",Ot="$mp_page_leave",Or=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};Or.prototype.init=function(){CO()?(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()):Cp.critical("Autocapture unavailable: missing required DOM APIs")},Or.prototype.getFullConfig=function(){var e=this.mp.get_config(EP);return e?k2.isObject(e)?k2.extend({},E4,e):E4:{}},Or.prototype.getConfig=function(e){return this.getFullConfig()[e]},Or.prototype.currentUrlBlocked=function(){var e=k2.info.currentUrl(),t=this.getConfig(EU)||[];if(t.length)try{return!Sy(e,t)}catch(e){return Cp.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(E$)||[];if(!r||!r.length)return!1;try{return Sy(e,r)}catch(e){return Cp.critical("Error while checking block URL regexes: ",e),!0}},Or.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(EP)?this.getConfig(EZ):this.mp.get_config(EL)},Or.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===E8&&!this.getConfig(EJ)||t===E7&&!this._getClickTrackingConfig(EQ)||t===E6&&!this._getClickTrackingConfig(EG)),n=Cb(e,{allowElementCallback:this.getConfig(EF),allowSelectors:this.getConfig(Ej),blockAttrs:this.getConfig(Ez),blockElementCallback:this.getConfig(Eq),blockSelectors:this.getConfig(EH),captureExtraAttrs:this.getConfig(EW),captureTextContent:this.getConfig(EV),capturedForHeatMap:r});n&&(k2.extend(n,E5),this.mp.track(t,n))}},Or.prototype.initPageListeners=function(){if(c1.removeEventListener(S3,this.listenerPopstate),c1.removeEventListener(S4,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(E1)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){c1.dispatchEvent(new Event(S6))},this.listenerHashchange=function(){c1.dispatchEvent(new Event(S6))},c1.addEventListener(S3,this.listenerPopstate),c1.addEventListener(S4,this.listenerHashchange);var e=c1.history.pushState;"function"==typeof e&&(c1.history.pushState=function(t,r,n){e.call(c1.history,t,r,n),c1.dispatchEvent(new Event(S6))});var t=c1.history.replaceState;"function"==typeof t&&(c1.history.replaceState=function(e,r,n){t.call(c1.history,e,r,n),c1.dispatchEvent(new Event(S6))})}},Or.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},Or.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(E1)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(kV.documentElement.clientHeight,c1.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=k2.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||k2.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(kV.documentElement.clientWidth,c1.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},E5);this.mp.track(Ot,s,{transport:"sendBeacon"})}},Or.prototype._initScrollDepthTracking=function(){if(c1.removeEventListener(S9,this.listenerScrollDepth),c1.removeEventListener(S7,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){Cp.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(kV.documentElement.clientHeight,c1.innerHeight||0);var e=(function(){if(!this.currentUrlBlocked()){var e=Math.max(kV.documentElement.clientHeight,c1.innerHeight||0)+c1.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=kV.body.scrollHeight}}).bind(this),t=CP(e);this.listenerScrollDepth=t.listener,c1.addEventListener(t.eventType,this.listenerScrollDepth)}},Or.prototype.initClickTracking=function(){c1.removeEventListener(S2,this.listenerClick,!0),(this.getConfig(EJ)||this.mp.get_config("record_heatmap_data"))&&(Cp.log("Initializing click tracking"),this.listenerClick=(function(e){(this.getConfig(EJ)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,E8)}).bind(this),c1.addEventListener(S2,this.listenerClick,!0))},Or.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(EG);e||this.mp.get_config("record_heatmap_data")?(Cp.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new ER((function(e){this.trackDomEvent(e,E6)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(e){var t=this._getClickTrackingConfig(EG);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r["timeout_ms"]||(r["timeout_ms"]=EO),this._deadClickTracker.trackClick(e,r)}}).bind(this),c1.addEventListener(S2,this.listenerDeadClick,!0))):this.stopDeadClickTracking()},Or.prototype.initInputTracking=function(){c1.removeEventListener(S1,this.listenerChange,!0),this.getConfig(EK)&&(Cp.log("Initializing input tracking"),this.listenerChange=(function(e){this.getConfig(EK)&&this.trackDomEvent(e,E3)}).bind(this),c1.addEventListener(S1,this.listenerChange,!0))},Or.prototype.initPageviewTracking=function(){if(c1.removeEventListener(S6,this.listenerLocationchange),this.pageviewTrackingConfig()||this.mp.get_config("record_heatmap_data")){Cp.log("Initializing pageview tracking");var e="",t=!1;(this.pageviewTrackingConfig()||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&(t=this.mp.track_pageview(E5)),t&&(e=k2.info.currentUrl()),this.listenerLocationchange=k6((function(){if(!this.currentUrlBlocked()){var t=k2.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(!i&&this.mp.is_recording_heatmap_data()&&(i=ED),i===ED?r=t!==e:i===EN?r=t.split("#")[0]!==e.split("#")[0]:i===EB&&(r=n),r){var o=this.mp.track_pageview(E5);o&&(e=t),n&&(this.lastScrollCheckpoint=0,Cp.log("Path change: re-initializing scroll depth checkpoints"))}}}).bind(this)),c1.addEventListener(S6,this.listenerLocationchange)}},Or.prototype.initRageClickTracking=function(){c1.removeEventListener(S2,this.listenerRageClick,!0);var e=this._getClickTrackingConfig(EQ);(e||this.mp.get_config("record_heatmap_data"))&&(Cp.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new EC),this.listenerRageClick=(function(e){var t=this._getClickTrackingConfig(EQ);(t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,E7)}).bind(this),c1.addEventListener(S2,this.listenerRageClick,!0))},Or.prototype.initScrollTracking=function(){if(c1.removeEventListener(S7,this.listenerScroll),c1.removeEventListener(S9,this.listenerScroll),this.getConfig(E0)){Cp.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=(function(){if(this.getConfig(E0)&&!this.currentUrlBlocked()){var e=this.getConfig(EY),t=(this.getConfig(EX)||[]).slice().sort(function(e,t){return e-t}),r=c1.scrollY,n=k2.extend({$scroll_top:r},E5);try{var i=kV.body.scrollHeight,o=Math.round(r/(i-c1.innerHeight)*100);if(n["$scroll_height"]=i,n["$scroll_percentage"]=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n["$scroll_checkpoint"]=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){Cp.critical("Error while calculating scroll percentage",e)}e&&this.mp.track(E9,n)}}).bind(this),t=CP(e);this.listenerScroll=t.listener,c1.addEventListener(t.eventType,this.listenerScroll)}},Or.prototype.initSubmitTracking=function(){c1.removeEventListener(Ct,this.listenerSubmit,!0),this.getConfig(E2)&&(Cp.log("Initializing submit tracking"),this.listenerSubmit=(function(e){this.getConfig(E2)&&this.trackDomEvent(e,Oe)}).bind(this),c1.addEventListener(Ct,this.listenerSubmit,!0))},Or.prototype.initPageLeaveTracking=function(){if(kV.removeEventListener(Cn,this.listenerPageLeaveVisibilitychange),c1.removeEventListener(S6,this.listenerPageLeaveLocationchange),c1.removeEventListener(S8,this.listenerPageLoad),this.getConfig(E1)||this.mp.get_config("record_heatmap_data")){Cp.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=k2.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=kV.body.scrollHeight}).bind(this),c1.addEventListener(S8,this.listenerPageLoad),this.listenerPageLeaveLocationchange=k6((function(t){if(!this.currentUrlBlocked()){var r=k2.info.currentUrl(),n=r!==e;n&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(kV.documentElement.clientHeight,c1.innerHeight||0),this.previousScrollHeight=kV.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),c1.addEventListener(S6,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){kV.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}).bind(this),kV.addEventListener(Cn,this.listenerPageLeaveVisibilitychange)}},Or.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(c1.removeEventListener(S2,this.listenerDeadClick,!0),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},k3(Or);var On=function(e,t){return c1[c5]&&"function"==typeof c1[c5].then||(c1[c5]=new Promise(function(r){e(t,r)}).then(function(){var e=c1[c5];if(e&&"function"==typeof e.then)return e;throw Error("targeting failed to load")}).catch(function(e){throw delete c1[c5],e})),c1[c5]},Oi=k8("flags"),Oo="mixpanelFlagsDb",Os="mixpanelFlags",Oa={version:1,storeNames:[Os]},Oc="persisted_variants_for_",Ou=864e5,Ol=Object.freeze({NETWORK_ONLY:"networkOnly",NETWORK_FIRST:"networkFirst",PERSISTENCE_UNTIL_NETWORK_SUCCESS:"persistenceUntilNetworkSuccess"}),Oh=[Ol.NETWORK_ONLY,Ol.NETWORK_FIRST,Ol.PERSISTENCE_UNTIL_NETWORK_SUCCESS],Od=function(e,t,r){this.idb=new S_(Oo,Os,Oa),this.persistenceConfig=e,this.persistedVariantsKey=Oc+t,this.isGloballyDisabled=r||function(){return!1}};Od.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?Ol.NETWORK_ONLY:this.persistenceConfig["variantLookupPolicy"]},Od.prototype.getTtlMs=function(){if(!this._isConfigValid())return Ou;var e=this.persistenceConfig["persistenceTtlMs"];return null==e?Ou:e},Od.prototype._isConfigValid=function(){var e=this.persistenceConfig;return!!e&&(-1===Oh.indexOf(e["variantLookupPolicy"])?(Oi.error("Invalid variantLookupPolicy:",e["variantLookupPolicy"]),!1):void 0===e["persistenceTtlMs"]||null===e["persistenceTtlMs"]||!(e["persistenceTtlMs"]<=0)||(Oi.error("If provided, persistenceTtlMs must be a positive number. Provided value:",e["persistenceTtlMs"]),!1))},Od.prototype.loadFlagsFromStorage=function(e){var t=k2.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===Ol.NETWORK_ONLY)return t();var r=this.getTtlMs();return this.idb.init().then(k2.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(k2.bind(function(n){if(!n)return Oi.log("No persisted variants found in IndexedDB"),null;if(r&&Date.now()-n["persistedAt"]>=r)return Oi.log("Persisted variants are expiring"),null;if(!e||n["distinctId"]!==e["distinct_id"])return Oi.log("Persisted variants found, but for a different distinct_id so clearing."),t();var i=new Map;return k2.each(n["flagVariants"],function(e,t){i.set(t,{key:e["variant_key"],value:e["variant_value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"],variant_source:"persistence",persisted_at_in_ms:n["persistedAt"],ttl_in_ms:r})}),Oi.log("Loaded",i.size,"variants from IndexedDB for distinct_id",n["distinctId"]),{flags:i,pendingFirstTimeEvents:n["pendingFirstTimeEvents"]||{},persistedAtMs:n["persistedAt"],ttlMs:r}},this)).catch(k2.bind(function(e){return Oi.error("Failed to load persisted variants from IndexedDB, so clearing",e),t()},this))},Od.prototype.save=function(e,t,r){if(this.getPolicy()===Ol.NETWORK_ONLY)return Promise.resolve();var n={};t.forEach(function(e,t){n[t]={variant_key:e["key"],variant_value:e["value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"]}});var i={persistedAt:Date.now(),distinctId:e&&e["distinct_id"],context:e,flagVariants:n,pendingFirstTimeEvents:r||{}};return this.idb.init().then(k2.bind(function(){return this.idb.setItem(this.persistedVariantsKey,i)},this)).then(function(){Oi.log("Saved",t.size,"variants to IndexedDB for distinct_id",i["distinctId"])}).catch(function(e){Oi.error("Failed to persist variants to IndexedDB:",e)})},Od.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(k2.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){Oi.log("Cleared persisted variants from IndexedDB")}).catch(function(e){Oi.error("Failed to clear persisted variants from IndexedDB:",e)})};var Of=k8("flags"),Op="flags",Og="context",Om="persistence",Ov={};Ov[Og]={};var Oy=function(e,t){return e+":"+t},Ob=function(e){return e.split(":")[0]},Ow="FLAG_NOT_FOUND",Ox="NOT_READY",O_="BACKEND_ERROR",Ok=function(e,t){var r={variant_source:"fallback"};return(t&&(r["fallback_reason"]=t),k2.isObject(e))?k2.extend({},e,r):k2.extend({value:e},r)},OS=function(e){this.fetch=c1["fetch"],this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};function OC(e){return null!=e}OS.prototype.init=function(){return this.minApisSupported()?(this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new Od(this.getConfig(Om),this.getMpConfig("token"),k2.bind(function(){return this.getMpConfig("disable_persistence")},this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(k2.bind(function(e){e&&(this.flags=e.flags,this.pendingFirstTimeEvents=e.pendingFirstTimeEvents,this._loadedPersistedAtMs=e.persistedAtMs,this._loadedTtlMs=e.ttlMs)},this)),this.persistenceLoadedPromise.then(k2.bind(function(){return this.fetchFlags()},this)).catch(function(){Of.error("Error initializing feature flags")})):void Of.critical("Feature Flags unavailable: missing minimum required APIs")},OS.prototype._buildContext=function(){return k2.extend({distinct_id:this.getMpProperty("distinct_id"),device_id:this.getMpProperty("$device_id")},this.getConfig(Og))},OS.prototype.reset=function(){return this.persistence?(this.flags=null,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this.trackedFeatures=new Set,this.fetchPromise=null,this._fetchInProgressStartTime=null,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence.clear().then(k2.bind(function(){return this.fetchFlags()},this)).catch(function(){Of.error("Error during flags reset")})):Promise.resolve()},OS.prototype.getFullConfig=function(){var e=this.getMpConfig(Op);return e?k2.isObject(e)?k2.extend({},Ov,e):Ov:{}},OS.prototype.getConfig=function(e){return this.getFullConfig()[e]},OS.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Op)},OS.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return Of.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(Op);k2.isObject(r)||(r={});var n=t&&t["replace"]?{}:this.getConfig(Og);r[Og]=k2.extend({},n,e);var i={};return i[Op]=r,this.setMpConfig(i),this.fetchFlags().catch(function(){Of.error("Error fetching flags during updateContext")})},OS.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Of.error("Feature Flags not enabled"),!!this.flags},OS.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this._buildContext(),t=e["distinct_id"],r=Sd();Of.log("Fetching flags for distinct ID: "+t);var n=new URLSearchParams;n.set("context",JSON.stringify(e)),n.set("token",this.getMpConfig("token")),n.set("mp_lib","web"),n.set("$lib_version",c4.LIB_VERSION);var i=this.getFullApiRoute()+"?"+n.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(c1,i,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then((function(e){return this.markFetchComplete(),e.json()}).bind(this)).then((function(t){var n=t["flags"];if(!n)throw Error("No flags in API response");var i=new Map,o={};k2.each(n,function(e,t){var r=!1,n=t+":";if(k2.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(n)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&i.set(t,o)}else i.set(t,{key:e["variant_key"],value:e["variant_value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"],variant_source:"network"})},this);var s=t["pending_first_time_events"];s&&s.length>0&&k2.each(s,function(e){var t=e["flag_key"],r=Oy(t,e["first_time_event_hash"]);this.activatedFirstTimeEvents[r]||(o[r]={flag_key:t,flag_id:e["flag_id"],project_id:e["project_id"],first_time_event_hash:e["first_time_event_hash"],event_name:e["event_name"],property_filters:e["property_filters"],pending_variant:e["pending_variant"]})},this),this.activatedFirstTimeEvents&&k2.each(this.activatedFirstTimeEvents,function(e,t){var r=Ob(t);e&&!i.has(r)&&this.flags&&this.flags.has(r)&&i.set(r,this.flags.get(r))},this),this.flags=i,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=o,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=r,this._loadTargetingIfNeeded(),this.persistence.save(e,this.flags,this.pendingFirstTimeEvents)}).bind(this)).catch((function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),Of.error(e),e}).bind(this)),this.fetchPromise},OS.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(Of.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},OS.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):Of.error("Fetch in progress started time not set, cannot mark fetch complete")},OS.prototype._loadTargetingIfNeeded=function(){var e=!1;k2.each(this.pendingFirstTimeEvents,function(t){t["property_filters"]&&!k2.isEmptyObject(t["property_filters"])&&(e=!0)}),e&&this.getTargeting().then(function(){Of.log("targeting loaded for property filter evaluation")})},OS.prototype.getTargeting=function(){return On(this.loadExtraBundle.bind(this),this.targetingSrc).catch((function(e){Of.error("Failed to load targeting: "+e)}).bind(this))},OS.prototype.checkFirstTimeEvents=function(e,t){!this.pendingFirstTimeEvents||k2.isEmptyObject(this.pendingFirstTimeEvents)||(c1[c5]&&k2.isFunction(c1[c5].then)?c1[c5].then((function(r){this._processFirstTimeEventCheck(e,t,r)}).bind(this)).catch((function(){this._processFirstTimeEventCheck(e,t,null)}).bind(this)):this._processFirstTimeEventCheck(e,t,null))},OS.prototype._processFirstTimeEventCheck=function(e,t,r){k2.each(this.pendingFirstTimeEvents,function(n,i){if(!this.activatedFirstTimeEvents[i]){var o=n["flag_key"],s;if(!r&&n["property_filters"]&&!k2.isEmptyObject(n["property_filters"]))return void Of.warn('Skipping event check for "'+o+'" - property filters require targeting library');if(r){var a={event_name:n["event_name"],property_filters:n["property_filters"]};s=r["eventMatchesCriteria"](e,t,a)}else s={matches:e===n["event_name"],error:null};if(s.error)return void Of.error('Error checking first-time event for flag "'+o+'": '+s.error);if(s.matches){Of.log('First-time event matched for flag "'+o+'": '+e);var c={key:n["pending_variant"]["variant_key"],value:n["pending_variant"]["variant_value"],experiment_id:n["pending_variant"]["experiment_id"],is_experiment_active:n["pending_variant"]["is_experiment_active"]};this.flags.set(o,c),this.trackedFeatures.delete(o),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n["flag_id"],n["project_id"],n["first_time_event_hash"])}}},this)},OS.prototype.getFirstTimeEventApiRoute=function(e){var t=this.getFullApiRoute().replace(/\/$/,"");return t+"/"+e+"/first-time-events"},OS.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=Sd(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",c4.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};Of.log("Recording first-time event for flag: "+e),this.fetch.call(c1,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch(function(t){Of.error("Failed to record first-time event for flag "+e+": "+t)})},OS.prototype.getVariant=function(e,t){if(!this.persistenceLoadedPromise)return new Promise(function(e){Of.critical("Feature Flags not initialized"),e(Ok(t,Ox))});var r=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(k2.bind(function(){if(r===Ol.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(e,t):this.fetchPromise?this.fetchPromise.then(k2.bind(function(){return this.getVariantSync(e,t)},this)).catch(function(e){return Of.error(e),Ok(t,O_)}):Ok(t,Ox);var n=k2.bind(function(){return this.getVariantSync(e,t)},this);return this.fetchPromise?this.fetchPromise.then(n).catch(k2.bind(function(e){return Of.error(e),this.areFlagsReady()?n():Ok(t,O_)},this)):Ok(t,Ox)},this))},OS.prototype._loadedPersistenceIsStale=function(){return!!this._loadedPersistedAtMs&&!!this._loadedTtlMs&&Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},OS.prototype.getVariantSync=function(e,t){if(this._loadedPersistenceIsStale())return Of.log('Loaded persisted variants are past TTL so returning fallback for "'+e+'"'),Ok(t,Ox);if(!this.areFlagsReady())return Of.log("Flags not loaded yet"),Ok(t,Ox);var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(Of.log('No flag found: "'+e+'"'),Ok(t,Ow))},OS.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return Of.critical("Feature Flags not initialized"),Promise.resolve(new Map);var e=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(k2.bind(function(){if(e===Ol.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(k2.bind(function(){return this.getAllVariantsSync()},this)).catch(function(e){return Of.error(e),new Map}):new Map;var t=k2.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(t).catch(t):new Map},this))},OS.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(Of.log("Loaded persisted variants are past TTL so returning empty Map"),new Map):this.flags||new Map},OS.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e["value"]}).catch(function(e){return Of.error(e),t})},OS.prototype.getFeatureData=function(e,t){return Of.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},OS.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t})["value"]},OS.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(e){return Of.error(e),t})},OS.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(Of.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},OS.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t["key"],$experiment_type:"feature_flag","Variant fetch start time":OC(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":OC(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};OC(t["experiment_id"])&&(r["$experiment_id"]=t["experiment_id"]),OC(t["is_experiment_active"])&&(r["$is_experiment_active"]=t["is_experiment_active"]),OC(t["is_qa_tester"])&&(r["$is_qa_tester"]=t["is_qa_tester"]),OC(t["variant_source"])&&(r["$variant_source"]=t["variant_source"]),OC(t["persisted_at_in_ms"])&&(r["$persisted_at_in_ms"]=t["persisted_at_in_ms"]),OC(t["ttl_in_ms"])&&(r["$ttl_in_ms"]=t["ttl_in_ms"]),this.track("$experiment_started",r)}},OS.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},OS.prototype.minApisSupported=function(){return!!this.fetch&&"u">typeof Promise&&"u">typeof Map&&"u">typeof Set},k3(OS),OS.prototype["are_flags_ready"]=OS.prototype.areFlagsReady,OS.prototype["get_variant"]=OS.prototype.getVariant,OS.prototype["get_variant_sync"]=OS.prototype.getVariantSync,OS.prototype["get_all_variants"]=OS.prototype.getAllVariants,OS.prototype["get_all_variants_sync"]=OS.prototype.getAllVariantsSync,OS.prototype["get_variant_value"]=OS.prototype.getVariantValue,OS.prototype["get_variant_value_sync"]=OS.prototype.getVariantValueSync,OS.prototype["is_enabled"]=OS.prototype.isEnabled,OS.prototype["is_enabled_sync"]=OS.prototype.isEnabledSync,OS.prototype["load_flags"]=OS.prototype.loadFlags,OS.prototype["update_context"]=OS.prototype.updateContext,OS.prototype["when_ready"]=OS.prototype.whenReady,OS.prototype["get_feature_data"]=OS.prototype.getFeatureData,OS.prototype["getTargeting"]=OS.prototype.getTargeting;var OE=k8("recorder"),OO="mp_iframe_handshake_request",OI="mp_iframe_handshake_response",OT=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};OT.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return k4.log("Load recorder check skipped due to disable_persistence config"),kD.resolve(!1);var e=new S_(Sk,SC,SE),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(SZ(e[r])||e[r]["tabId"]===t)return!0;return!1}).catch(k2.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},OT.prototype.checkAndStartSessionRecording=function(e,t){if(!c1["MutationObserver"])return k4.critical("Browser does not support MutationObserver; skipping session recording"),kD.resolve();var r=k2.bind(function(e){return new kD(k2.bind(function(t){var r=k6(k2.bind(function(){this._recorder=this._recorder||new c1[c8](this.mixpanelInstance),this._recorder["resumeRecording"](e),t()},this));if(k2.isUndefined(c1[c8])){var n=this.recorderSrc||this.libBasePath+c6;this.loadExtraBundle(n,r)}else r()},this))},this),n=S0(this.getMpConfig("record_allowed_iframe_origins"),OE),i=n.length>0;if(i&&(this._setupParentFrameListener(n),c1.parent!==c1))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),kD.resolve();var o=k2.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,s=o>0&&100*Math.random()<=o;return e||s?r(!0):this.shouldLoadRecorder().then(k2.bind(function(e){return e?r(!1):kD.resolve()},this))},OT.prototype.isRecording=function(){if(!this._recorder||!k2.isFunction(this._recorder["isRecording"]))return!1;try{return this._recorder["isRecording"]()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},OT.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"==typeof i["percentage"]){var o=i["percentage"],s=i["property_filters"];if(s&&!k2.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+c3;On(this.loadExtraBundle,a).then((function(r){try{var n=r["eventMatchesCriteria"](e,t,{event_name:e,property_filters:s});n["matches"]&&this.checkAndStartSessionRecording(!1,o)}catch(e){k4.critical("Could not parse recording event trigger properties logic:",e)}}).bind(this)).catch(function(e){k4.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},OT.prototype.stopSessionRecording=function(){return this._recorder?this._recorder["stopRecording"]():kD.resolve()},OT.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder["pauseRecording"]():kD.resolve()},OT.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder["resumeRecording"]():kD.resolve()},OT.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},OT.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e["$mp_replay_id"]=t),e},OT.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();if(t){var r=k2.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")});e="https://mixpanel.com/projects/replay-redirect?"+r}return e},OT.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder["replayId"]),e||null},OT.prototype.getRecorder=function(){return this._recorder},OT.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var i=n.data;i&&i["type"]===OI&&i["token"]===r.getMpConfig("token")&&i["replayId"]&&(r._parentReplayId=i["replayId"],i["distinctId"]&&r.mixpanelInstance["identify"](i["distinctId"]),r._parentFrameRetryActive=!1,c1.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},c1.addEventListener("message",this._childFrameMessageHandler)}},OT.prototype._sendParentFrameRequest=function(e){var t={};t["type"]=OO,t["token"]=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{c1.parent.postMessage(t,e[r])}catch(e){}},OT.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=10,n=0,i=50;function o(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++n>=r||(t._sendParentFrameRequest(e),i*=2,o())},i)}this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),o()},OT.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n["type"]===OO&&n["token"]===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o["type"]=OI,o["token"]=t.getMpConfig("token"),o["replayId"]=i,o["distinctId"]=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},c1.addEventListener("message",this._parentFrameMessageHandler)}},k3(OT);var OA=function(){};OA.prototype.create_properties=function(){},OA.prototype.event_handler=function(){},OA.prototype.after_track_handler=function(){},OA.prototype.init=function(e){return this.mp=e,this},OA.prototype.track=function(e,t,r,n){var i=this,o=k2.dom_query(e);return 0===o.length?void k4.error("The DOM query ("+e+") returned 0 elements"):(k2.each(o,function(e){k2.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0)},OA.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},OA.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):k2.extend({},e)};var OM=function(){this.override_event="click"};k2.inherit(OM,OA),OM.prototype.create_properties=function(e,t){var r=OM.superclass.create_properties.apply(this,arguments);return t.href&&(r["url"]=t.href),r},OM.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},OM.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var OR=function(){this.override_event="submit"};k2.inherit(OR,OA),OR.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},OR.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var OP="$set",OL="$set_once",OD="$unset",ON="$add",OB="$append",OF="$union",Oj="$remove",OU="$delete",Oz={set_action:function(e,t){var r={},n={};return k2.isObject(e)?k2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[OP]=n,r},unset_action:function(e){var t={},r=[];return k2.isArray(e)||(e=[e]),k2.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[OD]=r,t},set_once_action:function(e,t){var r={},n={};return k2.isObject(e)?k2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[OL]=n,r},union_action:function(e,t){var r={},n={};return k2.isObject(e)?k2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=k2.isArray(e)?e:[e])},this):n[e]=k2.isArray(t)?t:[t],r[OF]=n,r},append_action:function(e,t){var r={},n={};return k2.isObject(e)?k2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[OB]=n,r},remove_action:function(e,t){var r={},n={};return k2.isObject(e)?k2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Oj]=n,r},delete_action:function(){var e={};return e[OU]="",e}},Oq=function(){};k2.extend(Oq.prototype,Oz),Oq.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Oq.prototype.set=SL(function(e,t,r){var n=this.set_action(e,t);return k2.isObject(e)&&(r=t),this._send_request(n,r)}),Oq.prototype.set_once=SL(function(e,t,r){var n=this.set_once_action(e,t);return k2.isObject(e)&&(r=t),this._send_request(n,r)}),Oq.prototype.unset=SL(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Oq.prototype.union=SL(function(e,t,r){k2.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Oq.prototype["delete"]=SL(function(e){var t=this.delete_action();return this._send_request(t,e)}),Oq.prototype.remove=SL(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),Oq.prototype._send_request=function(e,t){e["$group_key"]=this._group_key,e["$group_id"]=this._group_id,e["$token"]=this._get_config("token");var r=k2.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes")["groups"],batcher:this._mixpanel.request_batchers.groups},t)},Oq.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Oq.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Oq.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Oq.prototype["remove"]=Oq.prototype.remove,Oq.prototype["set"]=Oq.prototype.set,Oq.prototype["set_once"]=Oq.prototype.set_once,Oq.prototype["union"]=Oq.prototype.union,Oq.prototype["unset"]=Oq.prototype.unset,Oq.prototype["toString"]=Oq.prototype.toString;var OH=function(){};k2.extend(OH.prototype,Oz),OH.prototype._init=function(e){this._mixpanel=e},OH.prototype.set=SP(function(e,t,r){var n=this.set_action(e,t);return k2.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel["persistence"].update_referrer_info(document.referrer),n[OP]=k2.extend({},k2.info.people_properties(),n[OP]),this._send_request(n,r)}),OH.prototype.set_once=SP(function(e,t,r){var n=this.set_once_action(e,t);return k2.isObject(e)&&(r=t),this._send_request(n,r)}),OH.prototype.unset=SP(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),OH.prototype.increment=SP(function(e,t,r){var n={},i={};return k2.isObject(e)?(k2.each(e,function(e,t){if(!this._is_reserved_property(t))if(isNaN(parseFloat(e)))return void k4.error("Invalid increment value passed to mixpanel.people.increment - must be a number");else i[t]=e},this),r=t):(k2.isUndefined(t)&&(t=1),i[e]=t),n[ON]=i,this._send_request(n,r)}),OH.prototype.append=SP(function(e,t,r){k2.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),OH.prototype.remove=SP(function(e,t,r){k2.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),OH.prototype.union=SP(function(e,t,r){k2.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),OH.prototype.track_charge=SP(function(){k4.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),OH.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},OH.prototype.delete_user=function(){if(!this._identify_called())return void k4.error("mixpanel.people.delete_user() requires you to call identify() first");var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},OH.prototype.toString=function(){return this._mixpanel.toString()+".people"},OH.prototype._send_request=function(e,t){e["$token"]=this._get_config("token"),e["$distinct_id"]=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e["$device_id"]=r),n&&(e["$user_id"]=n),i&&(e["$had_persisted_distinct_id"]=i);var o=k2.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes")["engage"],batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),k2.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),k2.truncate(o,255))},OH.prototype._get_config=function(e){return this._mixpanel.get_config(e)},OH.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},OH.prototype._enqueue=function(e){OP in e?this._mixpanel["persistence"]._add_to_people_queue(OP,e):OL in e?this._mixpanel["persistence"]._add_to_people_queue(OL,e):OD in e?this._mixpanel["persistence"]._add_to_people_queue(OD,e):ON in e?this._mixpanel["persistence"]._add_to_people_queue(ON,e):OB in e?this._mixpanel["persistence"]._add_to_people_queue(OB,e):Oj in e?this._mixpanel["persistence"]._add_to_people_queue(Oj,e):OF in e?this._mixpanel["persistence"]._add_to_people_queue(OF,e):k4.error("Invalid call to _enqueue():",e)},OH.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=k2.extend({},this._mixpanel["persistence"].load_queue(e)),s=o;!k2.isUndefined(o)&&k2.isObject(o)&&!k2.isEmptyObject(o)&&(i._mixpanel["persistence"]._pop_from_people_queue(e,o),i._mixpanel["persistence"].save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel["persistence"]._add_to_people_queue(e,o),k2.isUndefined(r)||r(t,n)}))},OH.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(OP,this.set,e),this._flush_one_queue(OL,this.set_once,n),this._flush_one_queue(OD,this.unset,o,function(e){return k2.keys(e)}),this._flush_one_queue(ON,this.increment,t),this._flush_one_queue(OF,this.union,i);var c=this._mixpanel["persistence"].load_queue(OB);if(!k2.isUndefined(c)&&k2.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(OB,u),k2.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)u=(c=this._mixpanel["persistence"].load_queue(OB)).pop(),a._mixpanel["persistence"].save(),k2.isEmptyObject(u)||a.append(u,l);var d=this._mixpanel["persistence"].load_queue(Oj);if(!k2.isUndefined(d)&&k2.isArray(d)&&d.length)for(var f,p=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(Oj,f),k2.isUndefined(s)||s(e,t)},g=d.length-1;g>=0;g--)f=(d=this._mixpanel["persistence"].load_queue(Oj)).pop(),a._mixpanel["persistence"].save(),k2.isEmptyObject(f)||a.remove(f,p)},OH.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},OH.prototype["set"]=OH.prototype.set,OH.prototype["set_once"]=OH.prototype.set_once,OH.prototype["unset"]=OH.prototype.unset,OH.prototype["increment"]=OH.prototype.increment,OH.prototype["append"]=OH.prototype.append,OH.prototype["remove"]=OH.prototype.remove,OH.prototype["union"]=OH.prototype.union,OH.prototype["track_charge"]=OH.prototype.track_charge,OH.prototype["clear_charges"]=OH.prototype.clear_charges,OH.prototype["delete_user"]=OH.prototype.delete_user,OH.prototype["toString"]=OH.prototype.toString;var O$="__mps",OW="__mpso",OV="__mpus",OY="__mpa",OX="__mpap",OJ="__mpr",OG="__mpu",OK="$people_distinct_id",OZ="__alias",OQ="__timers",O0=[O$,OW,OV,OY,OX,OJ,OG,OK,OZ,OQ],O1=function(e){this["props"]={},this.campaign_params_saved=!1,e["persistence_name"]?this.name="mp_"+e["persistence_name"]:this.name="mp_"+e["token"]+"_mixpanel";var t=e["persistence"];"cookie"!==t&&"localStorage"!==t&&(k4.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e["persistence"]="cookie"),"localStorage"===t&&k2.localStorage.is_supported()?this.storage=k2.localStorage:this.storage=k2.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()},O2;O1.prototype.properties=function(){var e={};return this.load(),k2.each(this["props"],function(t,r){k2.include(O0,r)||(e[r]=t)}),e},O1.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this["props"]=k2.extend({},e))}},O1.prototype.upgrade=function(){var e,t;this.storage===k2.localStorage?(e=k2.cookie.parse(this.name),k2.cookie.remove(this.name),k2.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===k2.cookie&&(t=k2.localStorage.parse(this.name),k2.localStorage.remove(this.name),t&&this.register_once(t))},O1.prototype.save=function(){this.disabled||this.storage.set(this.name,Sb(this["props"]),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},O1.prototype.load_prop=function(e){return this.load(),this["props"][e]},O1.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},O1.prototype.clear=function(){this.remove(),this["props"]={}},O1.prototype.register_once=function(e,t,r){return!!k2.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),k2.each(e,function(e,r){this["props"].hasOwnProperty(r)&&this["props"][r]!==t||(this["props"][r]=e)},this),this.save(),!0)},O1.prototype.register=function(e,t){return!!k2.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),k2.extend(this["props"],e),this.save(),!0)},O1.prototype.unregister=function(e){this.load(),e in this["props"]&&(delete this["props"][e],this.save())},O1.prototype.update_search_keyword=function(e){this.register(k2.info.searchInfo(e))},O1.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:k2.info.referringDomain(e)||"$direct"},"")},O1.prototype.get_referrer_info=function(){return k2.strip_empty_properties({$initial_referrer:this["props"]["$initial_referrer"],$initial_referring_domain:this["props"]["$initial_referring_domain"]})},O1.prototype.update_config=function(e){this.default_expiry=this.expire_days=e["cookie_expiration"],this.set_disabled(e["disable_persistence"]),this.set_cookie_domain(e["cookie_domain"]),this.set_cross_site(e["cross_site_cookie"]),this.set_cross_subdomain(e["cross_subdomain_cookie"]),this.set_secure(e["secure_cookie"])},O1.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},O1.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},O1.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},O1.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},O1.prototype.get_cross_subdomain=function(){return this.cross_subdomain},O1.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},O1.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(OP),o=this._get_or_create_queue(OL),s=this._get_or_create_queue(OD),a=this._get_or_create_queue(ON),c=this._get_or_create_queue(OF),u=this._get_or_create_queue(Oj,[]),l=this._get_or_create_queue(OB,[]);r===O$?(k2.extend(i,n),this._pop_from_people_queue(ON,n),this._pop_from_people_queue(OF,n),this._pop_from_people_queue(OD,n)):r===OW?(k2.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(OD,n)):r===OV?k2.each(n,function(e){k2.each([i,o,a,c],function(t){e in t&&delete t[e]}),k2.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===OY?(k2.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(OD,n)):r===OG?(k2.each(n,function(e,t){k2.isArray(e)&&(t in c||(c[t]=[]),k2.each(e,function(e){k2.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(OD,n)):r===OJ?(u.push(n),this._pop_from_people_queue(OB,n)):r===OX&&(l.push(n),this._pop_from_people_queue(OD,n)),k4.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),k4.log(t),this.save()},O1.prototype._pop_from_people_queue=function(e,t){var r=this["props"][this._get_queue_key(e)];k2.isUndefined(r)||k2.each(t,function(t,n){e===OB||e===Oj?k2.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},O1.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},O1.prototype._get_queue_key=function(e){return e===OP?O$:e===OL?OW:e===OD?OV:e===ON?OY:e===OB?OX:e===Oj?OJ:e===OF?OG:void k4.error("Invalid queue:",e)},O1.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=k2.isUndefined(t)?{}:t,this["props"][r]||(this["props"][r]=t)},O1.prototype.set_event_timer=function(e,t){var r=this.load_prop(OQ)||{};r[e]=t,this["props"][OQ]=r,this.save()},O1.prototype.remove_event_timer=function(e){var t=this.load_prop(OQ)||{},r=t[e];return k2.isUndefined(r)||(delete this["props"][OQ][e],this.save()),r};var O4=function(e,t){throw Error(e+" not available in this build.")},O5,O8=0,O6=1,O3="mixpanel",O7="base64",O9="json",Ie="$device:",It="strict",Ir="fallback",In="disabled",Ii=c1.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Io=!Ii&&-1===kJ.indexOf("MSIE")&&-1===kJ.indexOf("Mozilla"),Is=null;kW["sendBeacon"]&&(Is=function(){return kW["sendBeacon"].apply(kW,arguments)});var Ia={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},Ic={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Ia,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:O7,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Sv,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Sv,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:kN,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:In},Iu=!1,Il=function(){},Ih=function(e,t,r){var n,i=r===O3?O5:O5[r];if(i&&O2===O8)n=i;else{if(i&&!k2.isArray(i))return void k4.error("You have already initialized "+r);n=new Il}if(n._cached_groups={},n._init(e,t,r),n["people"]=new OH,n["people"]._init(n),!n.get_config("skip_first_touch_marketing")){var o=k2.info.campaignParams(null),s={},a=!1;k2.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n["people"].set_once(s)}c4.DEBUG=c4.DEBUG||n.get_config("debug");var c=O2===O8?"module":"snippet";return c1.dispatchEvent(new c1.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:k2.info}})),!k2.isUndefined(i)&&k2.isArray(i)&&(n._execute_array.call(n["people"],i["people"]),n._execute_array(i)),n};Il.prototype.init=function(e,t,r){if(k2.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===O3)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var n=Ih(e,t,r);return O5[r]=n,n._loaded(),n},Il.prototype._init=function(e,t,r){t=t||{},this["__loaded"]=!0,this["config"]={};var n={};if(!("api_payload_format"in t)){var i=t["api_host"]||Ic["api_host"];i.match(/\.mixpanel\.com/)&&(n["api_payload_format"]=O9)}if(this.hooks={},this.set_config(k2.extend({},Ic,n,t,{name:r,token:e,callback_fn:(r===O3?r:O3+"."+r)+"._jsc"})),this.recorderManager=new OT({mixpanelInstance:this,getConfigFunc:k2.bind(this.get_config,this),setConfigFunc:k2.bind(this.set_config,this),getTabIdFunc:k2.bind(this.get_tab_id,this),reportErrorFunc:k2.bind(this.report_error,this),getDistinctIdFunc:k2.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:O4}),this["_jsc"]=Sv,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this._remote_settings_strict_disabled=!1,this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(k2.localStorage.is_supported(!0)&&Ii){if(this.init_batchers(),Is&&c1.addEventListener){var o=k2.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);c1.addEventListener("pagehide",function(e){e["persisted"]&&o()}),c1.addEventListener("visibilitychange",function(){"hidden"===kV["visibilityState"]&&o()})}}else this._batch_requests=!1,k4.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),k2.each(this.get_batcher_configs(),function(e){k4.log("Clearing batch queue "+e.queue_key),k2.localStorage.remove(e.queue_key)});this["persistence"]=this["cookie"]=new O1(this["config"]),this.unpersisted_superprops={},this._gdpr_init();var s=k2.UUID();this.get_distinct_id()||this.register_once({distinct_id:Ie+s,$device_id:s},""),this.flags=new OS({getFullApiRoute:k2.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes")["flags"]},this),getConfigFunc:k2.bind(this.get_config,this),setConfigFunc:k2.bind(this.set_config,this),getPropertyFunc:k2.bind(this.get_property,this),trackingFunc:k2.bind(this.track,this),loadExtraBundle:O4,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+c3}),this.flags.init(),this["flags"]=this.flags,this._init_tab_id();var a=this.get_config("remote_settings_mode");a===It||a===Ir?this.__session_recording_init_promise=this._fetch_remote_settings(a).then(k2.bind(function(){return this._check_and_start_session_recording()},this)):this.__session_recording_init_promise=this._check_and_start_session_recording(),this.autocapture=new Or(this),this.autocapture.init()},Il.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))k4.log("Tab ID initialization skipped due to disable_persistence config");else if(k2.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;(k2.sessionStorage.get(r)||!k2.sessionStorage.get(t))&&k2.sessionStorage.set(t,"$tab-"+k2.UUID()),k2.sessionStorage.set(r,"1"),this.tab_id=k2.sessionStorage.get(t),c1.addEventListener("beforeunload",function(){k2.sessionStorage.remove(r)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},Il.prototype.get_tab_id=function(){return this.tab_id||null},Il.prototype._check_and_start_session_recording=SR(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),Il.prototype._start_recording_on_event=k6(function(e,t){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(k2.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(e,t)},this))}),Il.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},Il.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},Il.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},Il.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},Il.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},Il.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},Il.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},Il.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},Il.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},Il.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this["people"].set_once(this["persistence"].get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=k2.info.campaignParams(null);k2.each(e,(function(e,t){this.unregister(t)}).bind(this))}},Il.prototype._set_default_superprops=function(){this["persistence"].update_search_keyword(kV.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(k2.info.campaignParams()),this.get_config("save_referrer")&&this["persistence"].update_referrer_info(kV.referrer)},Il.prototype._dom_loaded=function(){k2.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||k2.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},Il.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Iu)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},Il.prototype._prepare_callback=function(e,t){if(k2.isUndefined(e))return null;if(Ii){var r=function(r){e(r,t)};return r}var n=this["_jsc"],i=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+i+"]";return n[i]=function(r){delete n[i],e(r,t)},o},Il.prototype._send_request=function(e,t,r,n){var i=!0;if(Io)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!n&&(k2.isFunction(r)||"string"==typeof r)&&(n=r,r=null),r=k2.extend(o,r||{}),Ii||(r.method="GET");var a="POST"===r.method,c=Is&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t["verbose"]&&(u=!0),this.get_config("test")&&(t["test"]=1),u&&(t["verbose"]=1),this.get_config("img")&&(t["img"]=1),!Ii&&(n?t["callback"]=n:(u||this.get_config("test"))&&(t["callback"]="(function(){})")),t["ip"]=+!!this.get_config("ip"),t["_"]=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t["data"]),delete t["data"]),k2.extend(t,this.get_config("api_extra_query_params")),e+="?"+k2.HTTPBuildQuery(t);var l=this;if("img"in t){var h=kV.createElement("img");h.src=e,kV.body.appendChild(h)}else if(c){try{i=Is(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(+!!i)}catch(e){l.report_error(e)}}else if(Ii)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),k2.each(f,function(e,t){d.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==d.timeout){d.timeout=r.timeout_ms;var p=new Date().getTime()}d.withCredentials=!0,d.onreadystatechange=function(){if(4===d.readyState)if(200===d.status){if(n)if(u){var e;try{e=k2.JSONDecode(d.responseText)}catch(t){if(l.report_error(t),!r.ignore_json_errors)return;e=d.responseText}n(e)}else n(Number(d.responseText))}else{var t;if(t=d.timeout&&!d.status&&new Date().getTime()-p>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,l.report_error(t),n)if(u){var i=d["responseHeaders"]||{};n({status:0,httpStatusCode:d["status"],error:t,retryAfter:i["Retry-After"]})}else n(0)}},d.send(s)}catch(e){l.report_error(e),i=!1}else{var g=kV.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=kV.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},Il.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&(t.set_config({record_sessions_percent:0}),t._remote_settings_strict_disabled=!0)};if(!c1["AbortController"])return k4.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes")["settings"],i={$lib_version:c4.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=k2.HTTPBuildQuery(i),s=n+"?"+o,a=new AbortController,c=setTimeout(function(){a.abort()},500),u={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:a.signal};return c1["fetch"](s,u).then(function(e){if(clearTimeout(c),!e["ok"]){k4.critical("Network response was not ok"),r();return}return e.json()}).then(function(e){if(e&&e["sdk_config"]&&e["sdk_config"]["config"]){var n=e["sdk_config"]["config"],i={};k2.each(n,function(e,t){Ic.hasOwnProperty(t)&&(i[t]=e)}),k2.isEmptyObject(i)?(k4.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(c),k4.critical("Failed to fetch remote settings",e),r()})},Il.prototype._execute_array=function(e){var t,r=[],n=[],i=[];k2.each(e,function(e){e&&(t=e[0],k2.isArray(t)?i.push(e):"function"==typeof e?e.call(this):k2.isArray(e)&&"alias"===t?r.push(e):k2.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){k2.each(e,function(e){if(k2.isArray(e[0])){var r=t;k2.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},Il.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Il.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},Il.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=k2.bind(function(e){return new SK(e.queue_key,{libConfig:this["config"],errorReporter:this.get_config("error_reporter"),sendRequestFunc:k2.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:k2.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:k2.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},Il.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,k2.each(this.request_batchers,function(e){e.start()}))},Il.prototype.stop_batch_senders=function(){this._batch_requests=!1,k2.each(this.request_batchers,function(e){e.stop(),e.clear()})},Il.prototype.push=function(e){this._execute_array([e])},Il.prototype.enable=function(e){var t,r,n,i;if(void 0===e)this._flags.disable_all_events=!1;else{for(n=0,t={},r=[];n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},Il.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Il.prototype._encode_data_for_request=function(e){var t=Sb(e);return this.get_config("api_payload_format")===O7&&(t=k2.base64Encode(t)),{data:t}},Il.prototype._track_or_batch=function(e,t){var r=k2.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Sv;var a=!0,c=k2.bind(function(){return(!s.skip_hooks&&(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r)?(k4.log("MIXPANEL REQUEST:"),k4.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},Il.prototype.track=SR(function(e,t,r,n){var i;if(!(r&&r.skip_hooks)){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null),r=r||{};var o=r["transport"];o&&(r.transport=o);var s=r["send_immediately"];if("function"!=typeof n&&(n=Sv),k2.isUndefined(e))return void this.report_error("No event name provided to mixpanel.track");if(this._event_is_disabled(e))return void n(0);(t=k2.extend({},t))["token"]=this.get_config("token");var a=this["persistence"].remove_event_timer(e);if(!k2.isUndefined(a)){var c=new Date().getTime()-a;t["$duration"]=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?k2.info.marketingParams():{};t=k2.extend({},k2.info.properties({mp_loader:this.get_config("mp_loader")}),u,this["persistence"].properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");k2.isArray(l)?k2.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes")["track"],batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}),Il.prototype.set_group=SR(function(e,t,r){k2.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this["people"].set(e,t,r)}),Il.prototype.add_group=SR(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this["people"].union(e,t,r)}),Il.prototype.remove_group=SR(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this["people"].remove(e,t,r)}),Il.prototype.track_with_groups=SR(function(e,t,r,n){var i=k2.extend({},t||{});return k2.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),Il.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},Il.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Il.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(void 0===n||n._group_key!==e||n._group_id!==t)&&((n=new Oq)._init(this,e,t),this._cached_groups[r]=n),n},Il.prototype.track_pageview=SR(function(e,t){"object"!=typeof e&&(e={}),t=t||{};var r=t["event_name"]||"$mp_web_page_view",n=k2.extend(k2.info.mpPageViewProperties(),k2.info.campaignParams(),k2.info.clickParams()),i=k2.extend({},n,e);return this.is_recording_heatmap_data()&&(i["$captured_for_heatmap"]=!0),this.track(r,i)}),Il.prototype.track_links=function(){return this._track_dom.call(this,OM,arguments)},Il.prototype.track_forms=function(){return this._track_dom.call(this,OR,arguments)},Il.prototype.time_event=function(e){k2.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this["persistence"].set_event_timer(e,new Date().getTime())};var Id={persistent:!0},If=function(e){var t;return t=k2.isObject(e)?e:k2.isUndefined(e)?{}:{days:e},k2.extend({},Id,t)};Il.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=If(t);n["persistent"]?this["persistence"].register(e,n["days"]):k2.extend(this.unpersisted_superprops,e)}},Il.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=If(r);i["persistent"]?this["persistence"].register_once(e,t,i["days"]):(void 0===t&&(t="None"),k2.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},Il.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],(t=If(t=r[1]))["persistent"]?this["persistence"].unregister(e):delete this.unpersisted_superprops[e])},Il.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},Il.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return -1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(Ie))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(OZ)&&(this.unregister(OZ),this.register({distinct_id:e})),this._flags.identify_called=!0,this["people"]._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags().catch(function(){k4.error("[flags] Error fetching flags during identify")})},Il.prototype.reset=function(){this.stop_session_recording(),this["persistence"].clear(),this._flags.identify_called=!1;var e=k2.UUID();this.register_once({distinct_id:Ie+e,$device_id:e},""),this._check_and_start_session_recording(),this.flags.reset()},Il.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},Il.prototype.alias=function(e,t){if(e===this.get_property(OK))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(k2.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(OZ,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},Il.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},Il.prototype.set_config=function(e){if(k2.isObject(e)){k2.extend(this["config"],e);var t=e["batch_size"];t&&k2.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this["config"]["persistence_name"]=this["config"]["cookie_name"]),this.get_config("disable_persistence")||(this["config"]["disable_persistence"]=this["config"]["disable_cookie"]),this["persistence"]&&this["persistence"].update_config(this["config"]),c4.DEBUG=c4.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),k2.isObject(e["hooks"])&&(this.hooks={},k2.each(e["hooks"],function(e,t){if(k2.isFunction(e))this.hooks[t]=[e];else if(k2.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)k2.isFunction(e[r])||k4.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else k4.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},Il.prototype.get_config=function(e){return this["config"][e]},Il.prototype._run_hook=function(e){var t=kz.call(arguments,1);return k2.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(k2.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},Il.prototype.get_property=function(e){return this["persistence"].load_prop([e])},Il.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},Il.prototype.toString=function(){var e=this.get_config("name");return e!==O3&&(e=O3+"."+e),e},Il.prototype._event_is_disabled=function(e){return k2.isBlockedUA(kJ)||this._flags.disable_all_events||k2.include(this.__disabled_events,e)},Il.prototype._gdpr_init=function(){var e="localStorage"===this.get_config("opt_out_tracking_persistence_type");e&&k2.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||k2.cookie.get("mp_optout"))&&(k2.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},Il.prototype._gdpr_update_persistence=function(e){var t;if(e&&e["clear_persistence"])t=!0;else{if(!e||!e["enable_persistence"])return;t=!1}this.get_config("disable_persistence")||this["persistence"].disabled===t||this["persistence"].set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},Il.prototype._gdpr_call_func=function(e,t){return t=k2.extend({track:k2.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),k2.localStorage.is_supported()||(t["persistence_type"]="cookie"),e(this.get_config("token"),{track:t["track"],trackEventName:t["track_event_name"],trackProperties:t["track_properties"],persistenceType:t["persistence_type"],persistencePrefix:t["cookie_prefix"],cookieDomain:t["cookie_domain"],cookieExpiration:t["cookie_expiration"],crossSiteCookie:t["cross_site_cookie"],crossSubdomainCookie:t["cross_subdomain_cookie"],secureCookie:t["secure_cookie"],ignoreDnt:t["ignore_dnt"]})},Il.prototype.opt_in_tracking=function(e){e=k2.extend({enable_persistence:!0},e),this._gdpr_call_func(SI,e),this._gdpr_update_persistence(e)},Il.prototype.opt_out_tracking=function(e){(e=k2.extend({clear_persistence:!0,delete_user:!0},e))["delete_user"]&&this["people"]&&this["people"]._identify_called()&&(this["people"].delete_user(),this["people"].clear_charges()),this._gdpr_call_func(ST,e),this._gdpr_update_persistence(e)},Il.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(SA,e)},Il.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(SM,e)},Il.prototype.clear_opt_in_out_tracking=function(e){e=k2.extend({enable_persistence:!0},e),this._gdpr_call_func(SD,e),this._gdpr_update_persistence(e)},Il.prototype.report_error=function(e,t){k4.error.apply(k4.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){k4.error(e)}},Il.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},Il.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):k4.log("remove_hook failed. Matching hook was not found"))},Il.prototype["init"]=Il.prototype.init,Il.prototype["reset"]=Il.prototype.reset,Il.prototype["enable"]=Il.prototype.enable,Il.prototype["disable"]=Il.prototype.disable,Il.prototype["time_event"]=Il.prototype.time_event,Il.prototype["track"]=Il.prototype.track,Il.prototype["track_links"]=Il.prototype.track_links,Il.prototype["track_forms"]=Il.prototype.track_forms,Il.prototype["track_pageview"]=Il.prototype.track_pageview,Il.prototype["register"]=Il.prototype.register,Il.prototype["register_once"]=Il.prototype.register_once,Il.prototype["unregister"]=Il.prototype.unregister,Il.prototype["identify"]=Il.prototype.identify,Il.prototype["alias"]=Il.prototype.alias,Il.prototype["name_tag"]=Il.prototype.name_tag,Il.prototype["set_config"]=Il.prototype.set_config,Il.prototype["get_config"]=Il.prototype.get_config,Il.prototype["get_api_host"]=Il.prototype.get_api_host,Il.prototype["get_property"]=Il.prototype.get_property,Il.prototype["get_distinct_id"]=Il.prototype.get_distinct_id,Il.prototype["toString"]=Il.prototype.toString,Il.prototype["opt_out_tracking"]=Il.prototype.opt_out_tracking,Il.prototype["opt_in_tracking"]=Il.prototype.opt_in_tracking,Il.prototype["has_opted_out_tracking"]=Il.prototype.has_opted_out_tracking,Il.prototype["has_opted_in_tracking"]=Il.prototype.has_opted_in_tracking,Il.prototype["clear_opt_in_out_tracking"]=Il.prototype.clear_opt_in_out_tracking,Il.prototype["get_group"]=Il.prototype.get_group,Il.prototype["set_group"]=Il.prototype.set_group,Il.prototype["add_group"]=Il.prototype.add_group,Il.prototype["remove_group"]=Il.prototype.remove_group,Il.prototype["add_hook"]=Il.prototype.add_hook,Il.prototype["remove_hook"]=Il.prototype.remove_hook,Il.prototype["track_with_groups"]=Il.prototype.track_with_groups,Il.prototype["start_batch_senders"]=Il.prototype.start_batch_senders,Il.prototype["stop_batch_senders"]=Il.prototype.stop_batch_senders,Il.prototype["start_session_recording"]=Il.prototype.start_session_recording,Il.prototype["stop_session_recording"]=Il.prototype.stop_session_recording,Il.prototype["pause_session_recording"]=Il.prototype.pause_session_recording,Il.prototype["resume_session_recording"]=Il.prototype.resume_session_recording,Il.prototype["get_session_recording_properties"]=Il.prototype.get_session_recording_properties,Il.prototype["get_session_replay_url"]=Il.prototype.get_session_replay_url,Il.prototype["get_tab_id"]=Il.prototype.get_tab_id,Il.prototype["DEFAULT_API_ROUTES"]=Ia,Il.prototype["__get_recorder"]=Il.prototype.__get_recorder,Il.prototype["__get_recording_init_promise"]=Il.prototype.__get_recording_init_promise,O1.prototype["properties"]=O1.prototype.properties,O1.prototype["update_search_keyword"]=O1.prototype.update_search_keyword,O1.prototype["update_referrer_info"]=O1.prototype.update_referrer_info,O1.prototype["get_cross_subdomain"]=O1.prototype.get_cross_subdomain,O1.prototype["clear"]=O1.prototype.clear;var Ip={},Ig=function(){k2.each(Ip,function(e,t){t!==O3&&(O5[t]=e)}),O5["_"]=k2},Im=function(){O5["init"]=function(e,t,r){if(r)return O5[r]||(O5[r]=Ip[r]=Ih(e,t,r),O5[r]._loaded()),O5[r];var n=O5;Ip[O3]?n=Ip[O3]:e&&((n=Ih(e,t,O3))._loaded(),Ip[O3]=n),O5=n,O2===O6&&(c1[O3]=O5),Ig()}},Iv=function(){function e(){e.done||(e.done=!0,Iu=!0,Io=!1,k2.each(Ip,function(e){e._dom_loaded()}))}function t(){try{kV.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}if(kV.addEventListener)"complete"===kV.readyState?e():kV.addEventListener("DOMContentLoaded",e,!1);else if(kV.attachEvent){kV.attachEvent("onreadystatechange",e);var r=!1;try{r=null===c1.frameElement}catch(e){}kV.documentElement.doScroll&&r&&t()}k2.register_event(c1,"load",e,!0)};function Iy(e){return O4=e,O2=O8,O5=new Il,Im(),O5["init"](),Iv(),O5}function Ib(e,t){t()}var Iw=Iy(Ib);let Ix="@mixpanelIdentificationData",I_=!1,Ik=e=>{let t={...e},r={};return t.name?(r["$name"]=t.name,delete t.name):(r["$first_name"]=t.first_name,r["$last_name"]=t.last_name,delete t.first_name,delete t.last_name),t.email&&(r["$email"]=t.email,delete t.email),t.phone&&(r["$phone"]=t.phone,delete t.phone),r=Object.assign({},r,t)},IS={};IS.setMixpanelIdentificationData=(e,t="",r="production")=>{iI(Ix,e,r,t)},IS.getMixpanelIdentificationData=(e="",t="production")=>{let r=iT(Ix,t,e);if(r)return r;let n=iE(Ix,t,e);return n&&(iI(Ix,n,t,e),iO(Ix)),n},IS.hasMixpanelIdentificationData=(e="",t="production")=>!!IS.getMixpanelIdentificationData(e,t),IS.init=(e,t)=>{e&&(Iw.init(e,Object.assign({},t,{ignore_dnt:!0})),I_=!0,t?.debug&&console.info("[Mixpanel] initialized"))},IS.initIdentify=(e,t,r,n,i="")=>{if(t)try{IS.init(t,n);let o=r||IS.getMixpanelIdentificationData(i,e);if(!o)return;let s=Ik(o),a=window.location.hostname,c=`${a}`;s?.company&&(c+=`.${s?.company?.name}`),s?.employee_code&&(c+=`.${s?.employee_code}`),(s?.name||s?.first_name&&s?.last_name)&&(c+=s?.name?`.${s.name}`:`.${s?.first_name}.${s?.last_name}`),Iw.identify(c),Iw.people.set({...s,company_domain:a})}catch{}},IS.trackEvent=(e,t,r)=>{if("production"===e||I_)try{return Iw.track(t,r)}catch{}};var IC=IS,IE={}}(),n}()});