PageSourceSearch

https://express.stitch.money/_next/static/chunks/pages/_app-778a7180b9745c0b.js

js stitch.money collected 2026-10-02 04:36:31 UTC 2,126,589 bytes, 471 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ae9d3110-28b0-49fb-84fd-b733e103dfdf",e._sentryDebugIdIdentifier="sentry-dbid-ae9d3110-28b0-49fb-84fd-b733e103dfdf")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{71335:function(e,t,n){"use strict";let r,i;n.d(t,{wD:function(){return eT},y0:function(){return ex},ll:function(){return eb},eS:function(){return eM},bQ:function(){return eF},YF:function(){return et},KK:function(){return eB},XI:function(){return eO},PC:function(){return z},NI:function(){return er},qs:function(){return eP}});var a=n(32879),o=n(75271),s=n.t(o,2),l=n(30967),c="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function u(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!u(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!u(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function d(e){let t=o.useRef(e);return c(()=>{t.current=e}),t}var p=n(92602),f='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',h="undefined"==typeof Element,m=h?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,g=!h&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},y=function e(t,n){void 0===n&&(n=!0);var r,i=null==t?void 0:null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},v=function(e){var t,n=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},b=function(e,t,n){if(y(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(f));return t&&m.call(e,f)&&r.unshift(e),r=r.filter(n)},w=function e(t,n,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!y(o,!1)){if("SLOT"===o.tagName){var s=o.assignedElements(),l=e(s.length?s:o.children,!0,r);r.flatten?i.push.apply(i,l):i.push({scopeParent:o,candidates:l})}else{m.call(o,f)&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var c=o.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(o),u=!y(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(c&&u){var d=e(!0===c?o.children:c.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:o,candidates:d})}else a.unshift.apply(a,o.children)}}}return i},_=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},x=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||v(e))&&!_(e)?0:e.tabIndex},E=function(e,t){var n=x(e);return n<0&&t&&!_(e)?0:n},S=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},k=function(e){return"INPUT"===e.tagName},C=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},I=function(e){if(!e.name)return!0;var t,n=e.form||g(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=C(t,e.form);return!i||i===e},A=function(e){var t,n,r,i,a,o,s,l=e&&g(e),c=null===(t=l)||void 0===t?void 0:t.host,u=!1;if(l&&l!==e)for(u=!!(null!==(n=c)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(c)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!u&&c;)u=!!(null!==(o=c=null===(a=l=g(c))||void 0===a?void 0:a.host)&&void 0!==o&&null!==(s=o.ownerDocument)&&void 0!==s&&s.contains(c));return u}
1,T=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},R=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=m.call(e,"details>summary:first-of-type")?e.parentElement:e;if(m.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return T(e)}else{if("function"==typeof r){for(var a=e;e;){var o=e.parentElement,s=g(e);if(o&&!o.shadowRoot&&!0===r(o))return T(e);e=e.assignedSlot?e.assignedSlot:o||s===e.ownerDocument?o:s.host}e=a}if(A(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},N=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!m.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},O=function(e,t){var n,r,i;return!(k(n=t)&&"radio"===n.type&&!I(n)||0>x(t))&&(r=e,!((i=t).disabled||y(i)||k(i)&&"hidden"===i.type||R(i,r)||"DETAILS"===i.tagName&&Array.prototype.slice.apply(i.children).some(function(e){return"SUMMARY"===e.tagName})||N(i)))},P=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},D=function e(t){var n=[],r=[];return t.forEach(function(t,i){var a=!!t.scopeParent,o=a?t.scopeParent:t,s=E(o,a),l=a?e(t.candidates):o;0===s?a?n.push.apply(n,l):n.push(o):r.push({documentOrder:i,tabIndex:s,item:t,isScope:a,content:l})}),r.sort(S).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},M=function(e,t){return D((t=t||{}).getShadowRoot?w([e],t.includeContainer,{filter:O.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:P}):b(e,t.includeContainer,O.bind(null,t)))},$=n(19800),j="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;let L=!1,F=0,B=()=>"floating-ui-"+F++,U=s["useId".toString()],z=null!=U?U:function(){let[e,t]=o.useState(()=>L?B():void 0);return j(()=>{null==e&&t(B())},[]),o.useEffect(()=>{L||(L=!0)},[]),e},Z=o.createContext(null),V=o.createContext(null),q=()=>{var e,t;return null!=(e=null==(t=o.useContext(Z))?void 0:t.id)?e:null},W=()=>o.useContext(V);function G(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function H(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Y(e){var t;return null!=(t=G(e).defaultView)?t:window}function K(e){return!!e&&e instanceof Y(e).Element}function J(e){return!!e&&e instanceof Y(e).HTMLElement}function X(){return/apple/i.test(navigator.vendor)}let Q=s["useInsertionEffect".toString()]||(e=>e());function ee(e){let t=o.useRef(()=>{});return Q(()=>{t.current=e}),o.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function et(e){let{open:t=!1,onOpenChange:n,whileElementsMounted:r,placement:i,middleware:s,strategy:p,nodeId:f}=void 0===e?{}:e,[h,m]=o.useState(null),g=W(),y=o.useRef(null),v=o.useRef({}),b=o.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter(e=>e!==n))}}})())[0],w=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,whileElementsMounted:s,open:p}=e,[f,h]=o.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=o.useState(r);u(m,r)||g(r);let y=o.useRef(null),v=o.useRef(null),b=o.useRef(f),w=d(s),_=d(i),[x,E]=o.useState(null),[S,k]=o.useState(null),C=o.useCallback(e=>{y.current!==e&&(y.current=e,E(e))},[]),I=o.useCallback(e=>{v.current!==e&&(v.current=e,k(e))},[]),A=o.useCallback(()=>{if(!y.current||!v.current)return;let e={placement:t,strategy:n,middleware:m};_.current&&(e.platform=_.current),(0,a.oo)(y.current,v.current,e).then(e=>{let t={...e,isPositioned:!0};T.current&&!u(b.current,t)&&(b.current=t,l.flushSync(()=>{h(t)}))})},[m,t,n,_]);c(()=>{!1===p&&b.current.isPositioned&&(b.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))}
1,[p]);let T=o.useRef(!1);c(()=>(T.current=!0,()=>{T.current=!1}),[]),c(()=>{if(x&&S){if(w.current)return w.current(x,S,A);A()}},[x,S,A,w]);let R=o.useMemo(()=>({reference:y,floating:v,setReference:C,setFloating:I}),[C,I]),N=o.useMemo(()=>({reference:x,floating:S}),[x,S]);return o.useMemo(()=>({...f,update:A,refs:R,elements:N,reference:C,floating:I}),[f,A,R,N,C,I])}({placement:i,middleware:s,strategy:p,whileElementsMounted:r}),_=ee(n),x=o.useMemo(()=>({...w.refs,domReference:y}),[w.refs]),E=o.useMemo(()=>({...w,refs:x,dataRef:v,nodeId:f,events:b,open:t,onOpenChange:_,_:{domReference:h}}),[w,f,b,t,_,x,h]);j(()=>{let e=null==g?void 0:g.nodesRef.current.find(e=>e.id===f);e&&(e.context=E)});let{reference:S}=w,k=o.useCallback(e=>{(K(e)||null===e)&&(E.refs.domReference.current=e,m(e)),S(e)},[S,E.refs]);return o.useMemo(()=>({...w,context:E,refs:x,reference:k}),[w,x,E,k])}function en(e,t,n){let r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map(e=>e?e[n]:null).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof i){var a;null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];null==(e=r.get(n))||e.forEach(e=>e(...i))}}}else e[n]=i}),e),{})}}let er=function(e){void 0===e&&(e=[]);let t=e,n=o.useCallback(t=>en(t,e,"reference"),t),r=o.useCallback(t=>en(t,e,"floating"),t),i=o.useCallback(t=>en(t,e,"item"),t);return o.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:i}),[n,r,i])};function ei(e,t){if(!e||!t)return!1;let n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&function(e){if("undefined"==typeof ShadowRoot)return!1;let t=Y(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function ea(e,t){var n,r;let i=null!=(n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}))?n:[],a=i;for(;a.length;)a=null!=(r=e.filter(e=>{var t;return null==(t=a)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}))?r:[],i=i.concat(a);return i}function eo(e){return"composedPath"in e?e.composedPath()[0]:e.target}function es(){return(es=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let el={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function ec(e){"Tab"===e.key&&(r=e.target,clearTimeout(i))}let eu=o.forwardRef(function(e,t){let n=ee(e.onFocus),[a,s]=o.useState();return j(()=>(X()&&s("button"),document.addEventListener("keydown",ec),()=>{document.removeEventListener("keydown",ec)}),[]),o.createElement("span",es({},e,{ref:t,tabIndex:0,role:a,"aria-hidden":!a||void 0,"data-floating-ui-focus-guard":"",style:el,onFocus:e=>{X()&&H().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&!function(e){let t=r===e.relatedTarget;return r=e.relatedTarget,clearTimeout(i),t}(e)?(e.persist(),i=window.setTimeout(()=>{n(e)},50)):n(e)}}))});function ed(e){let t=e.activeElement;for(;(null==(n=t)?void 0:null==(r=n.shadowRoot)?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}let ep=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ef(e,t){let n=M(e,ep());"prev"===t&&n.reverse();let r=n.indexOf(ed(G(e)));return n.slice(r+1)[0]}function eh(){return ef(document.body,"next")}function em(){return ef(document.body,"prev")}function eg(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!ei(n,r)}let ey=o.createContext(null),ev=function(e){let{id:t,enabled:n=!0}=void 0===e?{}:e,[r,i]=o.useState(null),a=z(),s=ew();return j(()=>{if(!n)return;let e=t?document.getElementById(t):null;if(e)e.setAttribute("data-floating-ui-portal",""),i(e);else{let e=document.createElement("div");e.id=t||a,e.setAttribute("data-floating-ui-portal",""),i(e);let n=(null==s?void 0:s.portalNode)||document.body;return n.appendChild(e),()=>{n.removeChild(e)}}},[t,s,a,n]),r},eb=e=>{let{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,a=ev({id:n,enabled:!r}),[s,c]=o.useState(null),u=o.useRef(null),d=o.useRef(null),p=o.useRef(null),f=o.useRef(null),h=!!s&&!s.modal&&!!(r||a)&&i;return o.useEffect(()=>{if(a&&i&&(null==s||!s.modal))return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){a&&eg(e)&&("focusin"===e.type?function(e){e.querySelectorAll("[data-tabindex]").forEach(e
1=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}:function(e){M(e,ep()).forEach(e=>{var t;e.dataset.tabindex=null!=(t=e.getAttribute("tabindex"))?t:"",e.setAttribute("tabindex","-1")})})(a)}},[a,i,null==s?void 0:s.modal]),o.createElement(ey.Provider,{value:o.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:u,afterOutsideRef:d,beforeInsideRef:p,afterInsideRef:f,portalNode:a,setFocusManagerState:c}),[i,a])},h&&a&&o.createElement(eu,{ref:u,onFocus:e=>{if(eg(e,a)){var t;null==(t=p.current)||t.focus()}else{let e=em()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),h&&a&&o.createElement("span",{"aria-owns":a.id,style:el}),r?(0,l.createPortal)(t,r):a?(0,l.createPortal)(t,a):null,h&&a&&o.createElement(eu,{ref:d,onFocus:e=>{if(eg(e,a)){var t;null==(t=f.current)||t.focus()}else{let e=eh()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus(),null==s||s.onOpenChange(!1)}}}))},ew=()=>o.useContext(ey),e_="data-floating-ui-scroll-lock",ex=o.forwardRef(function(e,t){let{lockScroll:n=!1,...r}=e;return j(()=>{var e,t,r,i;if(!n||document.body.hasAttribute(e_))return;document.body.setAttribute(e_,"");let a=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(H()))return Object.assign(document.body.style,{overflow:"hidden",[a]:o+"px"}),()=>{document.body.removeAttribute(e_),Object.assign(document.body.style,{overflow:"",[a]:""})};let s=null!=(e=null==(t=window.visualViewport)?void 0:t.offsetLeft)?e:0,l=null!=(r=null==(i=window.visualViewport)?void 0:i.offsetTop)?r:0,c=window.pageXOffset,u=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(u-Math.floor(l))+"px",left:-(c-Math.floor(s))+"px",right:"0",[a]:o+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[a]:""}),document.body.removeAttribute(e_),window.scrollTo(c,u)}},[n]),o.createElement("div",es({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))});function eE(e){return J(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function eS(e){e.preventDefault(),e.stopPropagation()}function ek(e){let t=(0,o.useRef)(e);return j(()=>{t.current=e}),t}let eC=0;function eI(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(eC);let a=()=>null==e?void 0:e.focus({preventScroll:n});i?a():eC=requestAnimationFrame(a)}let eA=o.forwardRef(function(e,t){return o.createElement("button",es({},e,{ref:t,tabIndex:-1,style:el}))});function eT(e){let{context:t,children:n,order:r=["content"],guards:i=!0,initialFocus:a=0,returnFocus:s=!0,modal:l=!0,visuallyHiddenDismiss:c=!1}=e,{refs:u,nodeId:d,onOpenChange:p,events:f,_:{domReference:h}}=t,m=ek(r),g=W(),y=ew(),[v,b]=o.useState(null),w="number"==typeof a&&a<0,_=o.useRef(null),x=o.useRef(null),E=o.useRef(!1),S=o.useRef(null),k=h&&"combobox"===h.getAttribute("role")&&eE(h),C=o.useCallback(function(e){return void 0===e&&(e=u.floating.current),e?M(e,ep()):[]},[u]),I=o.useCallback(e=>{let t=C(e);return m.current.map(e=>u.domReference.current&&"reference"===e?u.domReference.current:u.floating.current&&"floating"===e?u.floating.current:t).filter(Boolean).flat()},[m,u,C]);o.useEffect(()=>{if(!l)return;function e(e){if("Tab"===e.key){0!==C().length||k||eS(e);let t=I(),n=eo(e);"reference"===m.current[0]&&n===u.domReference.current&&(eS(e),e.shiftKey?eI(t[t.length-1]):eI(t[1])),"floating"===m.current[1]&&n===u.floating.current&&e.shiftKey&&(eS(e),eI(t[0]))}}let t=G(u.floating.current);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[l,m,u,k,C,I]),o.useEffect(()=>{var e,t;let n=u.floating.current,r=u.domReference.current,i=Array.from(null!=(e=null==y?void 0:null==(t=y.portalNode)?void 0:t.querySelectorAll("[data-floating-ui-portal]"))?e:[]),a=!1;function o(){a=!0,setTimeout(()=>{a=!1})}function s(e){let t=e.relatedTarget,i=!(ei(r,t)||ei(n,t)||ei(t,n)||ei(null==y?void 0:y.portalNode,t)||[null==y?void 0:y.beforeOutsideRef.current,null==y?void 0:y.afterOutsideRef.current].filter(
1Boolean).includes(t)||g&&(ea(g.nodesRef.current,d).find(e=>{var n,r;return ei(null==(n=e.context)?void 0:n.refs.floating.current,t)||ei(null==(r=e.context)?void 0:r.refs.domReference.current,t)})||(function(e,t){var n;let r=[],i=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;i;){let t=e.find(e=>e.id===i);i=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r})(g.nodesRef.current,d).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.refs.floating.current)===t||(null==(r=e.context)?void 0:r.refs.domReference.current)===t})));t&&i&&!a&&t!==S.current&&(E.current=!0,setTimeout(()=>p(!1)))}if(n&&J(r)){let e;if(l){let t=[n,...i,...[_.current,x.current].filter(Boolean)];e=(0,$.Ry)(m.current.includes("reference")||k?t.concat(r):t)}return r.addEventListener("focusout",s),r.addEventListener("pointerdown",o),l||n.addEventListener("focusout",s),()=>{r.removeEventListener("focusout",s),r.removeEventListener("pointerdown",o),l||n.removeEventListener("focusout",s),null==e||e()}}},[l,a,d,g,m,u,y,k,w,p]),o.useEffect(()=>{let e=u.floating.current;if(l&&!i&&e){let t=[],n=ep(),r=M(G(e).body,n),i=I(),a=r.filter(e=>!i.includes(e));return a.forEach((e,n)=>{t[n]=e.getAttribute("tabindex"),e.setAttribute("tabindex","-1")}),()=>{a.forEach((e,n)=>{let r=t[n];null==r?e.removeAttribute("tabindex"):e.setAttribute("tabindex",r)})}}},[l,i,u,I]),j(()=>{let e=u.floating.current;if(!e)return;let t=G(e),n=s,r=!1,i=ed(t);S.current=i;let o=I(e),l=("number"==typeof a?o[a]:a.current)||e;function c(e){if("escapeKey"===e.type&&u.domReference.current&&(S.current=u.domReference.current),"outsidePress"!==e.type)return;let t=e.data.returnFocus;"object"==typeof t?(n=!0,r=t.preventScroll):n=t}return w||eI(l,{preventScroll:l===e}),f.on("dismiss",c),()=>{f.off("dismiss",c),ei(e,ed(t))&&u.domReference.current&&(S.current=u.domReference.current),n&&J(S.current)&&!E.current&&eI(S.current,{preventScroll:r,cancelPrevious:!1})}},[I,a,s,u,f,w]),j(()=>{if(y)return y.setFocusManagerState({...t,modal:l}),()=>{y.setFocusManagerState(null)}},[y,l,t]),j(()=>{0!==C().length||w||b(0)},[C,u,w]);let A=i&&(null!=y||l)&&!k;function T(e){return c&&l?o.createElement(eA,{ref:"start"===e?_:x,onClick:()=>p(!1)},"string"==typeof c?c:"Dismiss"):null}return o.createElement(o.Fragment,null,A&&o.createElement(eu,{ref:null==y?void 0:y.beforeInsideRef,onFocus:e=>{if(l){let e=I();eI("reference"===r[0]?e[0]:e[e.length-1])}else if(null!=y&&y.preserveTabOrder&&y.portalNode){if(E.current=!1,eg(e,y.portalNode)){let e=eh()||h;null==e||e.focus()}else{var t;null==(t=y.beforeOutsideRef.current)||t.focus()}}}}),k?null:T("start"),o.cloneElement(n,0===v||r.includes("floating")?{tabIndex:0}:{}),T("end"),A&&o.createElement(eu,{ref:null==y?void 0:y.afterInsideRef,onFocus:e=>{if(l)eI(I()[0]);else if(null!=y&&y.preserveTabOrder&&y.portalNode){if(E.current=!0,eg(e,y.portalNode)){let e=em()||h;null==e||e.focus()}else{var t;null==(t=y.afterOutsideRef.current)||t.focus()}}}}))}let eR=["mouse","pen","",void 0];function eN(e,t,n){return n&&!eR.includes(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let eO=function(e,t){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:s=0,move:l=!0}=void 0===t?{}:t,{open:c,onOpenChange:u,dataRef:d,events:p,refs:f,_:h}=e,m=W(),g=q(),y=ek(i),v=ek(r),b=o.useRef(),w=o.useRef(),_=o.useRef(),x=o.useRef(),E=o.useRef(!0),S=o.useRef(!1),k=o.useCallback(()=>{var e;
1let t=null==(e=d.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[d]);o.useEffect(()=>{if(n)return p.on("dismiss",e),()=>{p.off("dismiss",e)};function e(){clearTimeout(w.current),clearTimeout(x.current),E.current=!0}},[n,p,f]),o.useEffect(()=>{if(!n||!y.current||!c)return;function e(){k()&&u(!1)}let t=G(f.floating.current).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[f,c,u,n,y,d,k]);let C=o.useCallback(function(e){void 0===e&&(e=!0);let t=eN(v.current,"close",b.current);t&&!_.current?(clearTimeout(w.current),w.current=setTimeout(()=>u(!1),t)):e&&(clearTimeout(w.current),u(!1))},[v,u]),I=o.useCallback(()=>{_.current&&(G(f.floating.current).removeEventListener("mousemove",_.current),_.current=void 0)},[f]),A=o.useCallback(()=>{G(f.floating.current).body.style.pointerEvents="",S.current=!1},[f]);return o.useEffect(()=>{if(!n)return;function t(){return!!d.current.openEvent&&["click","mousedown"].includes(d.current.openEvent.type)}function r(e){if(clearTimeout(w.current),E.current=!1,a&&!eR.includes(b.current)||s>0&&0===eN(v.current,"open"))return;d.current.openEvent=e;let t=eN(v.current,"open",b.current);t?w.current=setTimeout(()=>{u(!0)},t):u(!0)}function i(n){if(t())return;let r=G(f.floating.current);if(clearTimeout(x.current),y.current){clearTimeout(w.current),_.current&&r.removeEventListener("mousemove",_.current),_.current=y.current({...e,tree:m,x:n.clientX,y:n.clientY,onClose(){A(),I(),C()}}),r.addEventListener("mousemove",_.current);return}C()}function o(n){t()||null==y.current||y.current({...e,tree:m,x:n.clientX,y:n.clientY,leave:!0,onClose(){A(),I(),C()}})(n)}let p=f.floating.current,h=f.domReference.current;if(K(h))return c&&h.addEventListener("mouseleave",o),null==p||p.addEventListener("mouseleave",o),l&&h.addEventListener("mousemove",r,{once:!0}),h.addEventListener("mouseenter",r),h.addEventListener("mouseleave",i),()=>{c&&h.removeEventListener("mouseleave",o),null==p||p.removeEventListener("mouseleave",o),l&&h.removeEventListener("mousemove",r),h.removeEventListener("mouseenter",r),h.removeEventListener("mouseleave",i)}},[h.domReference,n,e,a,s,l,C,I,A,u,c,m,f,v,y,d]),j(()=>{if(n&&c&&y.current&&y.current.__options.blockPointerEvents&&k()){G(f.floating.current).body.style.pointerEvents="none",S.current=!0;let n=f.domReference.current,r=f.floating.current;if(K(n)&&r){var e,t;let i=null==m?void 0:null==(e=m.nodesRef.current.find(e=>e.id===g))?void 0:null==(t=e.context)?void 0:t.refs.floating.current;return i&&(i.style.pointerEvents=""),n.style.pointerEvents="auto",r.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents=""}}}},[n,c,g,f,m,y,d,k]),j(()=>{!c&&(b.current=void 0,I(),S.current&&A())},[c,I,A]),o.useEffect(()=>()=>{I(),clearTimeout(w.current),clearTimeout(x.current),S.current&&A()},[n,I,A]),o.useMemo(()=>{if(!n)return{};function e(e){b.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(){c||0===s||(clearTimeout(x.current),x.current=setTimeout(()=>{E.current||u(!0)},s))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(){C(!1)}}}},[n,s,c,u,C])},eP=function(e,t){let{open:n}=e,{enabled:r=!0,role:i="dialog"}=void 0===t?{}:t,a=z(),s=z();return o.useMemo(()=>{let e={id:a,role:i};return r?"tooltip"===i?{reference:{"aria-describedby":n?a:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===i?"dialog":i,"aria-controls":n?a:void 0,..."listbox"===i&&{role:"combobox"},..."menu"===i&&{id:s}},floating:{...e,..."menu"===i&&{"aria-labelledby":s}}}:{}},[r,i,n,a,s])};function eD(e){return J(e.target)&&"BUTTON"===e.target.tagName}let eM=function(e,t){let{open:n,onOpenChange:r,dataRef:i,refs:a}=e,{enabled:s=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0}=void 0===t?{}:t,p=o.useRef();return o.useMemo(()=>s?{reference:{onPointerDown(e){p.current=e.pointerType},onMouseDown(e){0!==e.button||"mouse"===p.current&&u||"click"===l||(n?c&&(!i.current.openEvent||"mousedown"===i.current.openEvent.type)&&r(!1):(e.preventDefault(),r(!0)),i.current.openEvent=e.nativeEvent)},onClick(e){if("mousedown"===l&&p.current){p.current=void 0;return}"mouse"===p.current&&u||(n?c&&(!i.current.openEvent||"click"===i.current.openEvent.type)&&r(!1):r(!0),i.current.openEvent=e.nativeEvent)},onKeyDown(e){p.current=void 0,!(!d||eD(e))&&(" "!==e.key||eE(a.domReference.current)||e.preventDefault(),"Enter"===e.key&&(n?c&&r(!1):r(!0)))},onKeyUp(e){d&&!(eD(e)||eE(a.domReference.current))&&" "===e.key&&(n?c&&r(!1):r(!0))}}}:{},[s,i,l,u,d,a,c,n,r])};function e$(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}let ej={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},eL={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},eF=function(e,t){let{open:n,onOpenChange:r,refs:i,events:a,nodeId:s}=e,{enabled:l=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:d="pointerdown",referencePress:f=!1,referencePressEvent:h="pointerdown",ancestorScroll:m=!1,bubbles:g=!0}=void 0===t?{}:t,y=W(),v=null!=q(),b=ek(u),w=o.useRef(!1);return o.useEffect(()=>{if(!n||!l)return;let e=b.current;function t(e){"Escape"!==e.key||!g&&y&&ea(y.nodesRef.current,s).length>0||(a.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1))}function o(t){var n,o;let l=w.current;if(w.current=!1,l||"function"==typeof e&&!e(t))return;let c=eo(t);if(K(c)&&i.floating.current){let e=null!=(n=i.floating.current.ownerDocument.defaultView)?n:window,r=c.scrollWidth>c.clientWidth,a=c.scrollHeight>c.clientHeight,o=a&&t.offsetX>c.clientWidth;if(a&&"rtl"===e.getComputedStyle(c).direction&&(o=t.offsetX<=c.offsetWidth-c.clientWidth),o||r&&t.offsetY>c.clientHeight)return}let u=y&&ea(y.nodesRef.current,s).some(e=>{var n;return e$(t,null==(n=e.context)?void 0:n.refs.floating.current)});e$(t,i.floating.current)||e$(t,i.domReference.current)||u||!g&&y&&ea(y.nodesRef.current,s).length>0||(a.emit("dismiss",{type:"outsidePress",data:{returnFocus:v?{preventScroll:!0}:function(e){if(0===e.mozInputSource&&e.isTrusted)return!0;let t=/Android/i;return(t.test(H())||t.test(function(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}()))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType}(t)||0===(o=t).width&&0===o.height||1===o.width&&1===o.height&&0===o.pressure&&0===o.detail&&"mouse"!==o.pointerType||o.width<1&&o.height<1&&0===o.pressure&&0===o.detail}}),r(!1))}function u(){r(!1)}let f=G(i.floating.current);c&&f.addEventListener("keydown",t),e&&f.addEventListener(d,o);let h=[];return m&&(K(i.domReference.current)&&(h=(0,p.Kx)(i.domReference.current)),K(i.floating.current)&&(h=h.concat((0,p.Kx)(i.floating.current))),!K(i.reference.current)&&i.reference.current&&i.reference.current.contextElement&&(h=h.concat((0,p.Kx)(i.reference.current.contextElement)))),(h=h.filter(e=>{var t;
1return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",u,{passive:!0})}),()=>{c&&f.removeEventListener("keydown",t),e&&f.removeEventListener(d,o),h.forEach(e=>{e.removeEventListener("scroll",u)})}},[c,b,d,a,y,s,n,r,m,l,g,i,v]),o.useEffect(()=>{w.current=!1},[u,d]),o.useMemo(()=>l?{reference:{[ej[h]]:()=>{f&&(a.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1))}},floating:{[eL[d]]:()=>{w.current=!0}}}:{},[l,a,f,d,h,r])},eB=function(e,t){let{open:n,onOpenChange:r,dataRef:i,refs:a,events:s}=e,{enabled:l=!0,keyboardOnly:c=!0}=void 0===t?{}:t,u=o.useRef(""),d=o.useRef(!1),p=o.useRef();return o.useEffect(()=>{var e;if(!l)return;let t=null!=(e=G(a.floating.current).defaultView)?e:window;function r(){!n&&J(a.domReference.current)&&a.domReference.current===ed(G(a.domReference.current))&&(d.current=!0)}return t.addEventListener("blur",r),()=>{t.removeEventListener("blur",r)}},[a,n,l]),o.useEffect(()=>{if(l)return s.on("dismiss",e),()=>{s.off("dismiss",e)};function e(e){("referencePress"===e.type||"escapeKey"===e.type)&&(d.current=!0)}},[s,l]),o.useEffect(()=>()=>{clearTimeout(p.current)},[]),o.useMemo(()=>l?{reference:{onPointerDown(e){let{pointerType:t}=e;u.current=t,d.current=!!(t&&c)},onMouseLeave(){d.current=!1},onFocus(e){var t;d.current||"focus"===e.type&&(null==(t=i.current.openEvent)?void 0:t.type)==="mousedown"&&i.current.openEvent&&e$(i.current.openEvent,a.domReference.current)||(i.current.openEvent=e.nativeEvent,r(!0))},onBlur(e){d.current=!1;let t=e.relatedTarget,n=K(t)&&t.hasAttribute("data-floating-ui-focus-guard");p.current=setTimeout(()=>{ei(a.floating.current,t)||ei(a.domReference.current,t)||n||r(!1)})}}}:{},[l,c,a,i,r])}},76907:function(e,t,n){var r=n(38334);function i(e,t){var n=new r(e,t);return function(e){return n.convert(e)}}i.BIN="01",i.OCT="01234567",i.DEC="0123456789",i.HEX="0123456789abcdef",e.exports=i},38334:function(e){"use strict";function t(e,t){if(!e||!t||!e.length||!t.length)throw Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=t}t.prototype.convert=function(e){var t,n,r,i={},a=this.srcAlphabet.length,o=this.dstAlphabet.length,s=e.length,l="string"==typeof e?"":[];if(!this.isValid(e))throw Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(t=0;t<s;t++)i[t]=this.srcAlphabet.indexOf(e[t]);do{for(t=0,n=0,r=0;t<s;t++)(n=n*a+i[t])>=o?(i[r++]=parseInt(n/o,10),n%=o):r>0&&(i[r++]=0);s=r,l=this.dstAlphabet.slice(n,n+1).concat(l)}while(0!==r);return l},t.prototype.isValid=function(e){for(var t=0;t<e.length;++t)if(-1===this.srcAlphabet.indexOf(e[t]))return!1;return!0},e.exports=t},19800:function(e,t,n){"use strict";n.d(t,{Ry:function(){return c}});var r=new WeakMap,i=new WeakMap,a={},o=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,n,l){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=s(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});a[n]||(a[n]=new WeakMap);var u=a[n],d=[],p=new Set,f=new Set(c),h=function(e){!e||p.has(e)||(p.add(e),h(e.parentNode))};c.forEach(h);var m=function(e){!e||f.has(e)||Array.prototype.forEach.call(e.children,function(e){if(p.has(e))m(e);else try{var t=e.getAttribute(l),a=null!==t&&"false"!==t,o=(r.get(e)||0)+1,s=(u.get(e)||0)+1;r.set(e,o),u.set(e,s),d.push(e),1===o&&a&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),a||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),p.clear(),o++,function(){d.forEach(function(e){var t=r.get(e)-1,a=u.get(e)-1;r.set(e,t),u.set(e,a),t||(i.has(e)||e.removeAttribute(l),i.delete(e)),a||e.removeAttribute(n)}),--o||(r=new WeakMap,r=new WeakMap,i=new WeakMap,a={})}},c=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),l(r,i,n,"aria-hidden")):function(){return null}}},71253:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(0===n.length)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):i===t})}return!0}},65415:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),o=a[0],s=a[1],c=new i((o+s)*3/4-s),u=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o<s;o+=16383)a.push(function(e,t,r){for(var i,a=[],o=t;o<r;o+=3)a.push(n[(i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>
1s?s:o+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],r[a.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},91620:function(e,t,n){"use strict";var r=n(65415),i=n(30551),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(T(e,Uint8Array)){var t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|f(e.length),r=o(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?o(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),o(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}function f(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return I(e).length;default:if(i)return r?-1:C(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,a,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;
1++a)i+=R[e[a]];return i}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=t,a=n,0===i&&a===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}(this,t,n);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){var a;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(a=n=+n)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else -1!==u&&(a-=a-u),u=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var d=!0,p=0;p<l;p++)if(c(e,a+p)!==c(t,p)){d=!1;break}if(d)return a}return -1}function b(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function w(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function _(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function x(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function E(e,t,n,r,a){return t=+t,n>>>=0,a||x(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function S(e,t,n,r,a){return t=+t,n>>>=0,a||x(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(c(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return u(e)},s.allocUnsafeSlow=function(e){return u(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(T(a,Uint8Array))i+a.length>r.length?s.from(a).copy(r,i):Uint8Array.prototype.set.call(r,a,i);else if(s.isBuffer(a))a.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=a.length}return r},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):m.apply(this,arguments)}
vendor: 9,187 bytes, line 1
1,s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,l=Math.min(a,o),c=this.slice(r,i),u=e.slice(t,n),d=0;d<l;++d)if(c[d]!==u[d]){a=c[d],o=u[d];break}return a<o?-1:o<a?1:0},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,l,c,u,d,p=this.length-t;if((void 0===n||n>p)&&(n=p),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var f=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(s!=s)break;e[n+o]=s}return o}(this,e,t,n);case"utf8":case"utf-8":return i=t,a=n,A(C(e,this.length-i),this,i,a);case"ascii":case"latin1":case"binary":return o=t,s=n,A(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,o,s);case"base64":return l=t,c=n,A(I(e),this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,d=n,A(function(e,t){for(var n,r,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(r);return i}(e,this.length-u),this,u,d);default:if(f)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),f=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;_(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=255&e;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;_(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);_(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);_(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return E(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return E(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return S(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return S(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=s.isBuffer(e)?e:s.from(e,r),l=o.length;
1if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%l]}return this};var k=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var n,r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function I(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function A(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var R=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},57290:function(e){var t;t=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach(function(e){var r,a;r=e,a=i[e],(r=n(r))in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function n(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function r(e){return(r="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 i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}function a(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var s="undefined"!=typeof window&&void 0!==window.document,l=s?window:{},c=!!s&&!!l.document.documentElement&&"ontouchstart"in l.document.documentElement,u=!!s&&"PointerEvent"in l,d="cropper",p="crop",f="move",h="zoom",m="".concat(d,"-crop"),g="".concat(d,"-disabled"),y="".concat(d,"-hidden"),v="".concat(d,"-hide"),b="".concat(d,"-invisible"),w="".concat(d,"-modal"),_="".concat(d,"-move"),x="".concat(d,"Action"),E="".concat(d,"Preview"),S="crop",k="move",C="none",I="crop",A="cropend",T="cropmove",R="cropstart",N="dblclick",O=u?"pointerdown":c?"touchstart":"mousedown",P=u?"pointermove":c?"touchmove":"mousemove",D=u?"pointerup pointercancel":c?"touchend touchcancel":"mouseup",M="ready",$="resize",j="wheel",L="zoom",F="image/jpeg",B=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,U=/^data:/,z=/^data:image\/jpeg;base64,/,Z=/^img|canvas$/i,V={viewMode:0,dragMode:S,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},q=Number.isNaN||l.isNaN;function W(e){return"number"==typeof e&&!q(e)}var G=function(e){return e>0&&e<1/0};function H(e){return void 0===e}function Y(e){return"object"===r(e)&&null!==e}var K=Object.prototype.hasOwnProperty;function J(e){if(!Y(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&K.call(n,"isPrototypeOf")}catch(e){return!1}}function X(e){return"function"==typeof e}var Q=Array.prototype.slice;function ee(e){return Array.from?Array.from(e):Q.call(e)}function et(e,t){return e&&X(t)&&(Array.isArray(e)||W(e.length)?ee(e).forEach(function(n,r){t.call(e,n,r,e)}):Y(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)})),e}var en=Object.assign||function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Y(e)&&n.length>
10&&n.forEach(function(t){Y(t)&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e},er=/\.\d*(?:0|9){12}\d*$/;function ei(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return er.test(e)?Math.round(e*t)/t:e}var ea=/^width|height|left|top|marginLeft|marginTop$/;function eo(e,t){var n=e.style;et(t,function(e,t){ea.test(t)&&W(e)&&(e="".concat(e,"px")),n[t]=e})}function es(e,t){if(t){if(W(e.length)){et(e,function(e){es(e,t)});return}if(e.classList){e.classList.add(t);return}var n=e.className.trim();n?0>n.indexOf(t)&&(e.className="".concat(n," ").concat(t)):e.className=t}}function el(e,t){if(t){if(W(e.length)){et(e,function(e){el(e,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function ec(e,t,n){if(t){if(W(e.length)){et(e,function(e){ec(e,t,n)});return}n?es(e,t):el(e,t)}}var eu=/([a-z\d])([A-Z])/g;function ed(e){return e.replace(eu,"$1-$2").toLowerCase()}function ep(e,t){return Y(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(ed(t)))}function ef(e,t,n){Y(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(ed(t)),n)}var eh=/\s\s*/,em=function(){var e=!1;if(s){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});l.addEventListener("test",n,r),l.removeEventListener("test",n,r)}return e}();function eg(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(eh).forEach(function(t){if(!em){var a=e.listeners;a&&a[t]&&a[t][n]&&(i=a[t][n],delete a[t][n],0===Object.keys(a[t]).length&&delete a[t],0===Object.keys(a).length&&delete e.listeners)}e.removeEventListener(t,i,r)})}function ey(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(eh).forEach(function(t){if(r.once&&!em){var a=e.listeners,o=void 0===a?{}:a;i=function(){delete o[t][n],e.removeEventListener(t,i,r);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];n.apply(e,s)},o[t]||(o[t]={}),o[t][n]&&e.removeEventListener(t,o[t][n],r),o[t][n]=i,e.listeners=o}e.addEventListener(t,i,r)})}function ev(e,t,n){var r;return X(Event)&&X(CustomEvent)?r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function eb(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var ew=l.location,e_=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function ex(e){var t=e.match(e_);return null!==t&&(t[1]!==ew.protocol||t[2]!==ew.hostname||t[3]!==ew.port)}function eE(e){var t="timestamp=".concat(new Date().getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function eS(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,a=e.translateY,o=[];W(i)&&0!==i&&o.push("translateX(".concat(i,"px)")),W(a)&&0!==a&&o.push("translateY(".concat(a,"px)")),W(t)&&0!==t&&o.push("rotate(".concat(t,"deg)")),W(n)&&1!==n&&o.push("scaleX(".concat(n,")")),W(r)&&1!==r&&o.push("scaleY(".concat(r,")"));var s=o.length?o.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function ek(e,n){var r=e.pageX,i=e.pageY,a={endX:r,endY:i};return n?a:t({startX:r,startY:i},a)}function eC(e){var t=e.aspectRatio,n=e.height,r=e.width,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",a=G(r),o=G(n);if(a&&o){var s=n*t;"contain"===i&&s>r||"cover"===i&&s<r?n=r/t:r=n*t}else a?n=r/t:o&&(r=n*t);return{width:r,height:n}}var eI=String.fromCharCode,eA=/^data:.*,/,eT=l.Cropper,eR=function(){var e,t;function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),!e||!Z.test(e.tagName))throw Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=en({},V,J(t)&&t),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return e=[{key:"init",value:function(){var e,t=this.element,n=t.tagName.toLowerCase();if(!t[d]){if(t[d]=this,"img"===n){if(this.isImg=!0,e=t.getAttribute("src")||"",this.originalUrl=e,!e)return;e=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t,n,r,i=this;if(e){this.url=e,this.imageData={};var a=this.element,o=this.options;if(o.rotatable||o.scalable||(o.checkOrientation=!1),!o.checkOrientation||!window.ArrayBuffer){this.clone();return}if(U.test(e)){z.test(e)?this.read((et(r=new Uint8Array(n=new ArrayBuffer((t=atob(e.replace(eA,""))).length)),function(e,n){r[n]=t.charCodeAt(n)}),n)):this.clone();return}var s=new XMLHttpRequest,l=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=l,s.onerror=l,s.ontimeout=l,s.onprogress=function(){s.getResponseHeader("content-type")!==F&&s.abort()},s.onload=function(){i.read(s.response)},s.onloadend=function(){i.reloading=!1,i.xhr=null},o.checkCrossOrigin&&ex(e)&&a.crossOrigin&&(e=eE(e)),s.open("GET",e,!0),s.responseType="arraybuffer",s.withCredentials="use-credentials"===a.crossOrigin,s.send()}}},{key:"read",value:function(e){var t=this.options,n=this.imageData,r=function(e){var t=new DataView(e);try{if(255===t.getUint8(0)&&216===t.getUint8(1))for(var n=t.byteLength,r=2;r+1<n;){if(255===t.getUint8(r)&&225===t.getUint8(r+1)){u=r;break}r+=1}if(u){var i=u+4,a=u+10;if("Exif"===function(e,t,n){var r="";n+=t;for(var i=t;i<n;i+=1)r+=eI(e.getUint8(i));return r}(t,i,4)){var o=t.getUint16(a);if(((c=18761===o)||19789===o)&&42===t.getUint16(a+2,c)){var s=t.getUint32(a+4,c);s>=8&&(d=a+s)}}}
vendor: 10,405 bytes, line 1
1if(d){var l,c,u,d,p,f,h=t.getUint16(d,c);for(f=0;f<h;f+=1)if(p=d+12*f+2,274===t.getUint16(p,c)){p+=8,l=t.getUint16(p,c),t.setUint16(p,1,c);break}}}catch(e){l=1}return l}(e),i=0,a=1,o=1;if(r>1){this.url=function(e,t){for(var n=[],r=new Uint8Array(e);r.length>0;)n.push(eI.apply(null,ee(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}(e,F);var s=function(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:r}}(r);i=s.rotate,a=s.scaleX,o=s.scaleY}t.rotatable&&(n.rotate=i),t.scalable&&(n.scaleX=a,n.scaleY=o),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,n=e.crossOrigin,r=t;this.options.checkCrossOrigin&&ex(t)&&(n||(n="anonymous"),r=eE(t)),this.crossOrigin=n,this.crossOriginUrl=r;var i=document.createElement("img");n&&(i.crossOrigin=n),i.src=r||t,i.alt=e.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),es(i,v),e.parentNode.insertBefore(i,e.nextSibling)}},{key:"start",value:function(){var e=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var n=l.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(l.navigator.userAgent),r=function(t,n){en(e.imageData,{naturalWidth:t,naturalHeight:n,aspectRatio:t/n}),e.initialImageData=en({},e.imageData),e.sizing=!1,e.sized=!0,e.build()};if(t.naturalWidth&&!n){r(t.naturalWidth,t.naturalHeight);return}var i=document.createElement("img"),a=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){r(i.width,i.height),n||a.removeChild(i)},i.src=t.src,n||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",a.appendChild(i))}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var e=this.element,t=this.options,n=this.image,r=e.parentNode,i=document.createElement("div");i.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var a=i.querySelector(".".concat(d,"-container")),o=a.querySelector(".".concat(d,"-canvas")),s=a.querySelector(".".concat(d,"-drag-box")),l=a.querySelector(".".concat(d,"-crop-box")),c=l.querySelector(".".concat(d,"-face"));this.container=r,this.cropper=a,this.canvas=o,this.dragBox=s,this.cropBox=l,this.viewBox=a.querySelector(".".concat(d,"-view-box")),this.face=c,o.appendChild(n),es(e,y),r.insertBefore(a,e.nextSibling),el(n,v),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,es(l,y),t.guides||es(l.getElementsByClassName("".concat(d,"-dashed")),y),t.center||es(l.getElementsByClassName("".concat(d,"-center")),y),t.background&&es(a,"".concat(d,"-bg")),t.highlight||es(c,b),t.cropBoxMovable&&(es(c,_),ef(c,x,"all")),t.cropBoxResizable||(es(l.getElementsByClassName("".concat(d,"-line")),y),es(l.getElementsByClassName("".concat(d,"-point")),y)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),X(t.ready)&&ey(e,M,t.ready,{once:!0}),ev(e,M)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var e=this.cropper.parentNode;e&&e.removeChild(this.cropper),el(this.element,y)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],t=[{key:"noConflict",value:function(){return window.Cropper=eT,n}},{key:"setDefaults",value:function(e){en(V,J(e)&&e)}}],e&&i(n.prototype,e),t&&i(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();return en(eR.prototype,{render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,r=this.cropper,i=Number(t.minContainerWidth),a=Number(t.minContainerHeight);es(r,y),el(e,y);var o={width:Math.max(n.offsetWidth,i>=0?i:200),height:Math.max(n.offsetHeight,a>=0?a:100)};this.containerData=o,eo(r,{width:o.width,height:o.height}),es(e,y),el(r,y)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,r=Math.abs(t.rotate)%180==90,i=r?t.naturalHeight:t.naturalWidth,a=r?t.naturalWidth:t.naturalHeight,o=i/a,s=e.width,l=e.height;e.height*o>e.width?3===n?s=e.height*o:l=e.width/o:3===n?l=e.width/o:s=e.height*o;var c={aspectRatio:o,naturalWidth:i,naturalHeight:a,width:s,height:l};this.canvasData=c,this.limited=1===n||2===n,this.limitCanvas(!0,!0),c.width=Math.min(Math.max(c.width,c.minWidth),c.maxWidth),c.height=Math.min(Math.max(c.height,c.minHeight),c.maxHeight),c.left=(e.width-c.width)/2,c.top=(e.height-c.height)/2,c.oldLeft=c.left,c.oldTop=c.top,this.initialCanvasData=en({},c)},limitCanvas:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,a=this.cropBoxData,o=n.viewMode,s=i.aspectRatio,l=this.cropped&&a;if(e){var c=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;o>1?(c=Math.max(c,r.width),u=Math.max(u,r.height),3===o&&(u*s>c?c=u*s:u=c/s)):o>0&&(c?c=Math.max(c,l?a.width:0):u?u=Math.max(u,l?a.height:0):l&&(c=a.width,(u=a.height)*s>c?c=u*s:u=c/s));var d=eC({aspectRatio:s,width:c,height:u});c=d.width,u=d.height,i.minWidth=c,i.minHeight=u,i.maxWidth=1/0,i.maxHeight=1/0}if(t){if(o>(l?0:1)){var p=r.width-i.width,f=r.height-i.height;i.minLeft=Math.min(0,p),i.minTop=Math.min(0,f),i.maxLeft=Math.max(0,p),i.maxTop=Math.max(0,f),l&&this.limited&&(i.minLeft=Math.min(a.left,a.left+(a.width-i.width)),i.minTop=Math.min(a.top,a.top+(a.height-i.height)),i.maxLeft=a.left,i.maxTop=a.top,2===o&&(i.width>=r.width&&(i.minLeft=Math.min(0,p),i.maxLeft=Math.max(0,p)),i.height>=r.height&&(i.minTop=Math.min(0,f),i.maxTop=Math.max(0,f))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height}},renderCanvas:function(e,t){var n=this.canvasData,r=this.imageData;if(t){var i=function(e){var t=e.width,n=e.height,r=e.degree;if(90==(r=Math.abs(r)%180))return{width:n,height:t};var i=r%90*Math.PI/180,a=Math.sin(i),o=Math.cos(i),s=t*o+n*a,l=t*a+n*o;return r>90?{width:l,height:s}:{width:s,height:l}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),a=i.width,o=i.height,s=n.width*(a/n.naturalWidth),l=n.height*(o/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(l-n.height)/2,n.width=s,n.height=l,n.aspectRatio=a/o,n.naturalWidth=a,n.naturalHeight=o,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,eo(this.canvas,en({width:n.width,height:n.height},eS({translateX:n.left,translateY:n.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,r=n.naturalWidth*(t.width/t.naturalWidth),i=n.naturalHeight*(t.height/t.naturalHeight);en(n,{width:r,height:i,left:(t.width-r)/2,top:(t.height-i)/2}),eo(this.image,en({width:n.width,height:n.height},eS(en({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,r=Number(e.autoCropArea)||.8,i={width:t.width,height:t.height};n&&(t.height*n>t.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.left=t.left+(t.width-i.width)/2,i.top=t.top+(t.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=en({},i)},limitCropBox:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,a=this.cropBoxData,o=this.limited,s=n.aspectRatio;if(e){var l=Number(n.minCropBoxWidth)||0,c=Number(n.minCropBoxHeight)||0,u=o?Math.min(r.width,i.width,i.width+i.left,r.width-i.left):r.width,d=o?Math.min(r.height,i.height,i.height+i.top,r.height-i.top):r.height;l=Math.min(l,r.width),c=Math.min(c,r.height),s&&(l&&c?c*s>l?c=l/s:l=c*s:l?c=l/s:c&&(l=c*s),d*s>u?d=u/s:u=d*s),a.minWidth=Math.min(l,u),a.minHeight=Math.min(c,d),a.maxWidth=u,a.maxHeight=d}t&&(o?(a.minLeft=Math.max(0,i.left),a.minTop=Math.max(0,i.top),a.maxLeft=Math.min(r.width,i.left+i.width)-a.width,a.maxTop=Math.min(r.height,i.top+i.height)-a.height):(a.minLeft=0,a.minTop=0,a.maxLeft=r.width-a.width,a.maxTop=r.height-a.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>
1n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&ef(this.face,x,n.width>=t.width&&n.height>=t.height?f:"all"),eo(this.cropBox,en({width:n.width,height:n.height},eS({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),ev(this.element,I,this.getData())}},{initPreview:function(){var e=this.element,t=this.crossOrigin,n=this.options.preview,r=t?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",a=document.createElement("img");if(t&&(a.crossOrigin=t),a.src=r,a.alt=i,this.viewBox.appendChild(a),this.viewBoxImage=a,n){var o=n;"string"==typeof n?o=e.ownerDocument.querySelectorAll(n):n.querySelector&&(o=[n]),this.previews=o,et(o,function(e){var n=document.createElement("img");ef(e,E,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(n.crossOrigin=t),n.src=r,n.alt=i,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(n)})}},resetPreview:function(){et(this.previews,function(e){var t=ep(e,E);eo(e,{width:t.width,height:t.height}),e.innerHTML=t.html,function(e,t){if(Y(e[t]))try{delete e[t]}catch(n){e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch(n){e.dataset[t]=void 0}else e.removeAttribute("data-".concat(ed(t)))}(e,E)})},preview:function(){var e=this.imageData,t=this.canvasData,n=this.cropBoxData,r=n.width,i=n.height,a=e.width,o=e.height,s=n.left-t.left-e.left,l=n.top-t.top-e.top;this.cropped&&!this.disabled&&(eo(this.viewBoxImage,en({width:a,height:o},eS(en({translateX:-s,translateY:-l},e)))),et(this.previews,function(t){var n=ep(t,E),c=n.width,u=n.height,d=c,p=u,f=1;r&&(p=i*(f=c/r)),i&&p>u&&(d=r*(f=u/i),p=u),eo(t,{width:d,height:p}),eo(t.getElementsByTagName("img")[0],en({width:a*f,height:o*f},eS(en({translateX:-s*f,translateY:-l*f},e))))}))}},{bind:function(){var e=this.element,t=this.options,n=this.cropper;X(t.cropstart)&&ey(e,R,t.cropstart),X(t.cropmove)&&ey(e,T,t.cropmove),X(t.cropend)&&ey(e,A,t.cropend),X(t.crop)&&ey(e,I,t.crop),X(t.zoom)&&ey(e,L,t.zoom),ey(n,O,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&ey(n,j,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&ey(n,N,this.onDblclick=this.dblclick.bind(this)),ey(e.ownerDocument,P,this.onCropMove=this.cropMove.bind(this)),ey(e.ownerDocument,D,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&ey(window,$,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;X(t.cropstart)&&eg(e,R,t.cropstart),X(t.cropmove)&&eg(e,T,t.cropmove),X(t.cropend)&&eg(e,A,t.cropend),X(t.crop)&&eg(e,I,t.crop),X(t.zoom)&&eg(e,L,t.zoom),eg(n,O,this.onCropStart),t.zoomable&&t.zoomOnWheel&&eg(n,j,this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&eg(n,N,this.onDblclick),eg(e.ownerDocument,P,this.onCropMove),eg(e.ownerDocument,D,this.onCropEnd),t.responsive&&eg(window,$,this.onResize)}},{resize:function(){if(!this.disabled){var e,t,n=this.options,r=this.container,i=this.containerData,a=r.offsetWidth/i.width,o=r.offsetHeight/i.height,s=Math.abs(a-1)>Math.abs(o-1)?a:o;1!==s&&(n.restore&&(e=this.getCanvasData(),t=this.getCropBoxData()),this.render(),n.restore&&(this.setCanvasData(et(e,function(t,n){e[n]=t*s})),this.setCropBoxData(et(t,function(e,n){t[n]=e*s}))))}},dblclick:function(){var e;this.disabled||this.options.dragMode===C||this.setDragMode(((e=this.dragBox).classList?e.classList.contains(m):e.className.indexOf(m)>-1)?k:S)},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;!this.disabled&&(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50),e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,e)))},cropStart:function(e){var t,n=e.buttons,r=e.button;if(!(this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(W(n)&&1!==n||W(r)&&0!==r||e.ctrlKey))){var i=this.options,a=this.pointers;e.changedTouches?et(e.changedTouches,function(e){a[e.identifier]=ek(e)}):a[e.pointerId||0]=ek(e),t=Object.keys(a).length>1&&i.zoomable&&i.zoomOnTouch?h:ep(e.target,x),B.test(t)&&!1!==ev(this.element,R,{originalEvent:e,action:t})&&(e.preventDefault(),this.action=t,this.cropping=!1,t===p&&(this.cropping=!0,es(this.dragBox,w)))}},cropMove:function(e){var t=this.action;if(!this.disabled&&t){var n=this.pointers;e.preventDefault(),!1!==ev(this.element,T,{originalEvent:e,action:t})&&(e.changedTouches?et(e.changedTouches,function(e){en(n[e.identifier]||{},ek(e,!0))}):en(n[e.pointerId||0]||{},ek(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,n=this.pointers;e.changedTouches?et(e.changedTouches,function(e){delete n[e.identifier]}):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,ec(this.dragBox,w,this.cropped&&this.options.modal)),ev(this.element,A,{originalEvent:e,action:t}))}}},{change:function(e){var n,r,i,a=this.options,o=this.canvasData,s=this.containerData,l=this.cropBoxData,c=this.pointers,u=this.action,d=a.aspectRatio,m=l.left,g=l.top,v=l.width,b=l.height,w=m+v,_=g+b,x=0,E=0,S=s.width,k=s.height,C=!0;!d&&e.shiftKey&&(d=v&&b?v/b:1),this.limited&&(x=l.minLeft,E=l.minTop,S=x+Math.min(s.width,o.width,o.left+o.width),k=E+Math.min(s.height,o.height,o.top+o.height));var I=c[Object.keys(c)[0]],A={x:I.endX-I.startX,y:I.endY-I.startY},T=function(e){switch(e){case"e":w+A.x>S&&(A.x=S-w);break;case"w":m+A.x<x&&(A.x=x-m);break;case"n":g+A.y<E&&(A.y=E-g);break;case"s":_+A.y>k&&(A.y=k-_)}};switch(u){case"all":m+=A.x,g+=A.y;break;case"e":if(A.x>=0&&(w>=S||d&&(g<=E||_>=k))){C=!1;break}T("e"),(v+=A.x)<0&&(u="w",m-=v=-v),d&&(b=v/d,g+=(l.height-b)/2);break;case"n":if(A.y<=0&&(g<=E||d&&(m<=x||w>=S))){C=!1;break}T("n"),b-=A.y,g+=A.y,b<0&&(u="s",g-=b=-b),d&&(v=b*d,m+=(l.width-v)/2);break;case"w":if(A.x<=0&&(m<=x||d&&(g<=E||_>=k))){C=!1;break}T("w"),v-=A.x,m+=A.x,v<0&&(u="e",m-=v=-v),d&&(b=v/d,g+=(l.height-b)/2);break;case"s":if(A.y>=0&&(_>=k||d&&(m<=x||w>=S))){C=!1;break}T("s"),(b+=A.y)<0&&(u="n",g-=b=-b),d&&(v=b*d,m+=(l.width-v)/2);break;case"ne":if(d){if(A.y<=0&&(g<=E||w>=S)){C=!1;break}T("n"),b-=A.y,g+=A.y,v=b*d}else T("n"),T("e"),A.x>=0?w<S?v+=A.x:A.y<=0&&g<=E&&(C=!1):v+=A.x,A.y<=0?g>E&&(b-=A.y,g+=A.y):(b-=A.y,g+=A.y);v<0&&b<0?(u="sw",v=-v,g-=b=-b,m-=v):v<0?(u="nw",m-=v=-v):b<0&&(u="se",g-=b=-b);break;case"nw":if(d){if(A.y<=0&&(g<=E||m<=x)){C=!1;break}T("n"),b-=A.y,g+=A.y,v=b*d,m+=l.width-v}else T("n"),T("w"),A.x<=0?m>x?(v-=A.x,m+=A.x):A.y<=0&&g<=E&&(C=!1):(v-=A.x,m+=A.x),A.y<=0?g>E&&(b-=A.y,g+=A.y):(b-=A.y,g+=A.y);v<0&&b<0?(u="se",v=-v,g-=b=-b,m-=v):v<0?(u="ne",m-=v=-v):b<0&&(u="sw",g-=b=-b);break;case"sw":if(d){if(A.x<=0&&(m<=x||_>=k)){C=!1;break}T("w"),v-=A.x,m+=A.x,b=v/d}else T("s"),T("w"),A.x<=0?m>x?(v-=A.x,m+=A.x):A.y>=0&&_>=k&&(C=!1):(v-=A.x,m+=A.x),A.y>=0?_<k&&(b+=A.y):b+=A.y;v<0&&b<0?(u="ne",v=-v,g-=b=-b,m-=v):v<0?(u="se",m-=v=-v):b<0&&(u="nw",g-=b=-b);break;case"se":if(d){if(A.x>=0&&(w>=S||_>=k)){C=!1;break}T("e"),v+=A.x,b=v/d}else T("s"),T("e"),A.x>=0?w<S?v+=A.x:A.y>=0&&_>=k&&(C=!1):v+=A.x,A.y>=0?_<k&&(b+=A.y):b+=A.y;v<0&&b<0?(u="nw",v=-v,g-=b=-b,m-=v):v<0?(u="sw",m-=v=-v):b<0&&(u="ne",g-=b=-b);break;case f:this.move(A.x,A.y),C=!1;break;case h:this.zoom((n=t({}
1,c),r=0,et(c,function(e,t){delete n[t],et(n,function(t){var n=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),a=Math.abs(e.endX-t.endX),o=Math.abs(e.endY-t.endY),s=Math.sqrt(n*n+i*i),l=(Math.sqrt(a*a+o*o)-s)/s;Math.abs(l)>Math.abs(r)&&(r=l)})}),r),e),C=!1;break;case p:if(!A.x||!A.y){C=!1;break}i=eb(this.cropper),m=I.startX-i.left,g=I.startY-i.top,v=l.minWidth,b=l.minHeight,A.x>0?u=A.y>0?"se":"ne":A.x<0&&(m-=v,u=A.y>0?"sw":"nw"),A.y<0&&(g-=b),!this.cropped&&(el(this.cropBox,y),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}C&&(l.width=v,l.height=b,l.left=m,l.top=g,this.action=u,this.renderCropBox()),et(c,function(e){e.startX=e.endX,e.startY=e.endY})}},{crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&es(this.dragBox,w),el(this.cropBox,y),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=en({},this.initialImageData),this.canvasData=en({},this.initialCanvasData),this.cropBoxData=en({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(en(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),el(this.dragBox,w),es(this.cropBox,y)),this},replace:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,et(this.previews,function(t){t.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,el(this.cropper,g)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,es(this.cropper,g)),this},destroy:function(){var e=this.element;return e[d]&&(e[d]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate()),this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=n.left,i=n.top;return this.moveTo(H(e)?e:r+Number(e),H(t)?t:i+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(W(e)&&(n.left=e,r=!0),W(t)&&(n.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(n.width*e/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var r=this.options,i=this.canvasData,a=i.width,o=i.height,s=i.naturalWidth,l=i.naturalHeight;if((e=Number(e))>=0&&this.ready&&!this.disabled&&r.zoomable){var c=s*e,u=l*e;if(!1===ev(this.element,L,{ratio:e,oldRatio:a/s,originalEvent:n}))return this;if(n){var d,p,f,h=this.pointers,m=eb(this.cropper),g=h&&Object.keys(h).length?(d=0,p=0,f=0,et(h,function(e){var t=e.startX,n=e.startY;d+=t,p+=n,f+=1}),d/=f,p/=f,{pageX:d,pageY:p}):{pageX:n.pageX,pageY:n.pageY};i.left-=(g.pageX-m.left-i.left)/a*(c-a),i.top-=(g.pageY-m.top-i.top)/o*(u-o)}else J(t)&&W(t.x)&&W(t.y)?(i.left-=(t.x-i.left)/a*(c-a),i.top-=(t.y-i.top)/o*(u-o)):(i.left-=(c-a)/2,i.top-=(u-o)/2);i.width=c,i.height=u,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return W(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,W(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(W(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(W(e)&&(n.scaleX=e,r=!0),W(t)&&(n.scaleY=t,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,i=this.canvasData,a=this.cropBoxData;if(this.ready&&this.cropped){e={x:a.left-i.left,y:a.top-i.top,width:a.width,height:a.height};
1var o=r.width/r.naturalWidth;if(et(e,function(t,n){e[n]=t/o}),t){var s=Math.round(e.y+e.height),l=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=l-e.x,e.height=s-e.y}}else e={x:0,y:0,width:0,height:0};return n.rotatable&&(e.rotate=r.rotate||0),n.scalable&&(e.scaleX=r.scaleX||1,e.scaleY=r.scaleY||1),e},setData:function(e){var t=this.options,n=this.imageData,r=this.canvasData,i={};if(this.ready&&!this.disabled&&J(e)){var a=!1;t.rotatable&&W(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,a=!0),t.scalable&&(W(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,a=!0),W(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,a=!0)),a&&this.renderCanvas(!0,!0);var o=n.width/n.naturalWidth;W(e.x)&&(i.left=e.x*o+r.left),W(e.y)&&(i.top=e.y*o+r.top),W(e.width)&&(i.width=e.width*o),W(e.height)&&(i.height=e.height*o),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?en({},this.containerData):{}},getImageData:function(){return this.sized?en({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&et(["left","top","width","height","naturalWidth","naturalHeight"],function(n){t[n]=e[n]}),t},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&J(e)&&(W(e.left)&&(t.left=e.left),W(e.top)&&(t.top=e.top),W(e.width)?(t.width=e.width,t.height=e.width/n):W(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&J(e)&&(W(e.left)&&(r.left=e.left),W(e.top)&&(r.top=e.top),W(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),W(e.height)&&e.height!==r.height&&(n=!0,r.height=e.height),i&&(t?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var e,t,n,r,i,o,s,l,c,u,d,p,f,h,m,g,y,v,b,w,_,x,E,S,k,C,I,A,T,R,N,O,P,D,M,$,j,L,F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var B=this.canvasData,U=(e=this.image,n=(t=this.imageData).aspectRatio,r=t.naturalWidth,i=t.naturalHeight,o=t.rotate,s=t.scaleX,l=t.scaleY,c=B.aspectRatio,u=B.naturalWidth,d=B.naturalHeight,p=F.fillColor,f=F.imageSmoothingEnabled,h=F.imageSmoothingQuality,g=void 0===(m=F.maxWidth)?1/0:m,v=void 0===(y=F.maxHeight)?1/0:y,w=void 0===(b=F.minWidth)?0:b,x=void 0===(_=F.minHeight)?0:_,S=(E=document.createElement("canvas")).getContext("2d"),k=eC({aspectRatio:c,width:g,height:v}),C=eC({aspectRatio:c,width:w,height:x},"cover"),I=Math.min(k.width,Math.max(C.width,u)),A=Math.min(k.height,Math.max(C.height,d)),T=eC({aspectRatio:n,width:g,height:v}),R=eC({aspectRatio:n,width:w,height:x},"cover"),N=Math.min(T.width,Math.max(R.width,r)),O=Math.min(T.height,Math.max(R.height,i)),E.width=ei(I),E.height=ei(A),S.fillStyle=void 0===p?"transparent":p,S.fillRect(0,0,I,A),S.save(),S.translate(I/2,A/2),S.rotate((void 0===o?0:o)*Math.PI/180),S.scale(void 0===s?1:s,void 0===l?1:l),S.imageSmoothingEnabled=void 0===f||f,S.imageSmoothingQuality=void 0===h?"low":h,S.drawImage.apply(S,[e].concat(a([-N/2,-O/2,N,O].map(function(e){return Math.floor(ei(e))})))),S.restore(),E);if(!this.cropped)return U;var z=this.getData(F.rounded),Z=z.x,V=z.y,q=z.width,W=z.height,G=U.width/Math.floor(B.naturalWidth);1!==G&&(Z*=G,V*=G,q*=G,W*=G);var H=q/W,Y=eC({aspectRatio:H,width:F.maxWidth||1/0,height:F.maxHeight||1/0}),K=eC({aspectRatio:H,width:F.minWidth||0,height:F.minHeight||0},"cover"),J=eC({aspectRatio:H,width:F.width||(1!==G?U.width:q),height:F.height||(1!==G?U.height:W)}),X=J.width,Q=J.height;X=Math.min(Y.width,Math.max(K.width,X)),Q=Math.min(Y.height,Math.max(K.height,Q));var ee=document.createElement("canvas"),et=ee.getContext("2d");ee.width=ei(X),ee.height=ei(Q),et.fillStyle=F.fillColor||"transparent",et.fillRect(0,0,X,Q);var en=F.imageSmoothingEnabled,er=F.imageSmoothingQuality;et.imageSmoothingEnabled=void 0===en||en,er&&(et.imageSmoothingQuality=er);var ea=U.width,eo=U.height,es=Z,el=V;es<=-q||es>ea?(es=0,P=0,M=0,j=0):es<=0?(M=-es,j=P=Math.min(ea,q+(es=0))):es<=ea&&(M=0,j=P=Math.min(q,ea-es)),P<=0||el<=-W||el>
1eo?(el=0,D=0,$=0,L=0):el<=0?($=-el,L=D=Math.min(eo,W+(el=0))):el<=eo&&($=0,L=D=Math.min(W,eo-el));var ec=[es,el,P,D];if(j>0&&L>0){var eu=X/q;ec.push(M*eu,$*eu,j*eu,L*eu)}return et.drawImage.apply(et,[U].concat(a(ec.map(function(e){return Math.floor(ei(e))})))),ee},setAspectRatio:function(e){var t=this.options;return!this.disabled&&!H(e)&&(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var i=e===S,a=t.movable&&e===k;e=i||a?e:C,t.dragMode=e,ef(n,x,e),ec(n,m,i),ec(n,_,a),t.cropBoxMovable||(ef(r,x,e),ec(r,m,i),ec(r,_,a))}return this}}),eR},e.exports=t()},27396:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(t=arguments[p],null!=t)for(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(o(i)||(c=a(i)))?(c?(c=!1,u=r&&a(r)?r:[]):u=r&&o(r)?r:{},s(d,{name:n,newValue:e(h,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},32729:function(e,t,n){!function(e){"use strict";var t={};Object.defineProperty(t,"__esModule",{value:!0});var r,i,a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},o={getItem:function(e,t){return o.multiGet([e]).then(function(e){return e[0][1]}).then(function(e){return t&&t(null,e),e}).catch(function(e){return t&&t(e,null),e})},setItem:function(e,t,n){return o.multiSet([[e,t]]).then(function(e){return n&&n(null,e),e}).catch(function(e){return n&&n(e,null),e})},getAllKeys:function(e){return Promise.resolve(Object.keys(localStorage)).then(function(t){return e&&e(null,t),t}).catch(function(t){return e&&e(t,null),t})},removeItem:function(e,t){return o.multiRemove([e]).then(function(){t&&t(null)}).catch(function(e){t&&t(e,null)})},clear:function(){return new Promise(function(e){window.localStorage.clear(),e()})},multiGet:function(e){return new Promise(function(t){t(e.reduce(function(e,t){return e.concat([[t,localStorage.getItem(t)]])},[]))})},multiSet:function(e){return new Promise(function(t,n){var r=[];return e.forEach(function(e){var t=a(e,2),n=t[0],i=t[1];try{localStorage.setItem(n,i)}catch(e){r.push(e)}}),r.length>0?n(r):t()})},multiRemove:function(e){return new Promise(function(t){e.forEach(function(e){return window.localStorage.removeItem(e)}),t()})},flushGetRequests:function(){console.warn("AsyncStorage.flushGetRequests: Not supported on `web`")}},s=t.default=o,l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},c=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;0!=i--;){var r,i,a,o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!=t&&n!=n},u=null,d="BULLET_TRAIN_DB",p="BULLET_TRAIN_EVENT",f="https://edge.api.flagsmith.com/api/v1/",h=function(e){return"Attempted to "+e+" a user before calling flagsmith.init. Call flagsmith.init first, if you wish to prevent it sending a request for flags, c
1all init with preventFetch:true."},m="flagsmith_value_",g="flagsmith_enabled_",y="flagsmith_trait_",v=function(){function e(e){var t=this;this.timestamp=null,this.isLoading=!1,this.eventSource=null,this.getJSON=function(e,n,i){var a=t.environmentID,o=t.headers,s={method:n||"GET",body:i,headers:{"x-environment-key":"".concat(a)}};return n&&"GET"!==n&&(s.headers["Content-Type"]="application/json; charset=utf-8"),o&&Object.assign(s.headers,o),r||console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR."),r(e,s).then(function(r){var i,a=null===(i=r.headers)||void 0===i?void 0:i.get("x-flagsmith-document-updated-at");if(a)try{var o=parseFloat(a);if(isNaN(o))throw"Failed to parse x-flagsmith-document-updated-at";t.timestamp=o}catch(e){t.log(e,"Failed to parse x-flagsmith-document-updated-at",a)}return t.log("Fetch response: "+r.status+" "+(n||"GET")+"0"+e),r.text().then(function(e){var t=e;try{t=JSON.parse(e)}catch(e){}return r.status&&r.status>=200&&r.status<300?t:Promise.reject(t)})}).catch(function(e){throw console.error("Flagsmith: Fetch error: "+e),Error("Flagsmith: Fetch error:"+e)})},this.getFlags=function(e,n){var r=t.onChange,i=t.onError,a=t.identity,o=t.api,s=!1;t.log("Get Flags"),t.isLoading=!0;var u=function(e){var n=e.flags,i=e.traits;t.isLoading=!1,a&&(t.withTraits=null);var o={},s={};i=i||[],(n=n||[]).forEach(function(e){o[e.feature.name.toLowerCase().replace(/ /g,"_")]={id:e.feature.id,enabled:e.enabled,value:e.feature_state_value}}),i.forEach(function(e){s[e.trait_key.toLowerCase().replace(/ /g,"_")]=e.trait_value}),t.oldFlags=l({},t.flags);var u=c(t.flags,o),d=c(t.traits,s);if(t.flags=o,t.traits=s,t.updateStorage(),t.datadogRum)try{if(t.datadogRum.trackTraits){var p={};Object.keys(t.traits).map(function(e){p[y+e]=t.getTrait(e)});var f=l(l(l({},t.datadogRum.client.getUser()),{id:t.datadogRum.client.getUser().id||t.identity}),p);t.log("Setting Datadog user",f),t.datadogRum.client.setUser(f)}}catch(e){console.error(e)}if(t.dtrum)try{var h={javaDouble:{},date:{},shortString:{},javaLongOrObject:{}};Object.keys(t.flags).map(function(e){_(h,m+e,t.getValue(e,{},!0)),_(h,g+e,t.hasFeature(e,!0))}),Object.keys(t.traits).map(function(e){_(h,y+e,t.getTrait(e))}),t.log("Sending javaLongOrObject traits to dynatrace",h.javaLongOrObject),t.log("Sending date traits to dynatrace",h.date),t.log("Sending shortString traits to dynatrace",h.shortString),t.log("Sending javaDouble to dynatrace",h.javaDouble),t.dtrum.sendSessionProperties(h.javaLongOrObject,h.date,h.shortString,h.javaDouble)}catch(e){console.error(e)}r&&r(t.oldFlags,{isFromServer:!0,flagsChanged:!u,traitsChanged:!d})};return a?Promise.all([t.withTraits?t.getJSON(o+"identities/","POST",JSON.stringify({identifier:a,traits:Object.keys(t.withTraits).map(function(e){return{trait_key:e,trait_value:t.withTraits[e]}})})):t.getJSON(o+"identities/?identifier="+encodeURIComponent(a))]).then(function(n){t.withTraits=null,u(n[0]),e&&!s&&(s=!0,e())}).catch(function(e){var n=e.message;t.isLoading=!1,i&&i(Error(n))}):Promise.all([t.getJSON(o+"flags/")]).then(function(t){u({flags:t[0],traits:void 0}),e&&!s&&(s=!0,e())}).catch(function(e){t.isLoading=!1,n&&!s&&(s=!0,n(e)),i&&i(e)})},this.analyticsFlags=function(){var e=t.api;if(t.evaluationEvent&&t.evaluationEvent[t.environmentID])return t.evaluationEvent&&0!==Object.getOwnPropertyNames(t.evaluationEvent).length&&0!==Object.getOwnPropertyNames(t.evaluationEvent[t.environmentID]).length?t.getJSON(e+"analytics/flags/","POST",JSON.stringify(t.evaluationEvent[t.environmentID])).then(function(e){var n=t.getState();t.evaluationEvent||(t.evaluationEvent={}),t.evaluationEvent[t.environmentID]={},t.setState(l(l({},n),{evaluationEvent:t.evaluationEvent})),t.updateEventStorage()}).catch(function(e){t.log("Exception fetching evaluationEvent",e)}):void 0},this.datadogRum=null,this.canUseStorage=!1,this.analyticsInterval=null,this.api=null,this.cacheFlags=!1,this.ts=null,this.enableAnalytics=!1,this.enableLogs=!1,this.environmentID="",this.evaluationEvent=null,this.flags=null,this.getFlagInterval=null,this.headers=null,this.initialised=!1,this.oldFlags=null,this.onChange=null,this.onError=null,this.trigger=null,this.identity=null,this.ticks=null,this.timer=null,this.traits=null,this.dtrum=null,this.withTraits=null,this.cacheOptions={ttl:0,skipAPI:!1},this.evaluateFlag=function(e,n){if(t.datadogRum&&(t.datadogRum.client.addFeatureFlagEvaluation?(t.log("Sending feature flag evaluation to Datadog",e,n),"VALUE"===n?t.datadogRum.client.addFeatureFlagEvaluation(m+e,t.getValue(e,{},!0)):t.datadogRum.client.addFeatureFlagEvaluation(g+e,t.hasFeature(e,!0))):console.error("Flagsmith: Your datadog RUM client does not support the function addFeatureFlagEvaluation, please update it.")),t.enableAnalytics){if(!t.evaluationEvent)return;t.evaluationEvent[t.environmentID]||(t.evaluationEvent[t.environmentID]={}),void 0===t.evaluationEvent[t.environmentID][e]&&(t.evaluationEvent[t.environmentID][e]=0),t.evaluationEvent[t.environmentID][e]+=1}t.updateEventStorage()},this.getValue=function(e,n,r){var i=t.flags&&t.flags[e.toLowerCase().replace(/ /g,"_")],a=null;if(i&&(a=i.value),r||t.evaluateFlag(e,"VALUE"),null==n?void 0:n.json)try{return null===a?(t.log("Tried to parse null flag as JSON: "+e),n.fallback):JSON.parse(a)}catch(e){return n.fallback}return a},this.getTrait=function(e){return t.traits&&t.traits[e.toLowerCase().replace(/ /g,"_")]},this.getAllTraits=function(){return t.traits},this.setTrait=function(e,n){if(t.api){var r={};return r[e]=n,t.setTraits(r)}console.error(h("setTrait"))},this.setTraits=function(e){if(t.api){if(e&&"object"==typeof e||console.error("Expected object for flagsmith.setTraits"),t.withTraits=l(l({},t.withTraits||{}),e),t.identity)return t.initialised?t.getFlags():void 0;t.log("Set traits prior to identifying",t.withTraits)}else console.error(h("setTraits"))},this.hasFeature=function(e,n){var r=t.flags&&t.flags[e.toLowerCase().replace(/ /g,"_")],i=!1;return r&&r.enabled&&(i=!0),n||t.evaluateFlag(e,"ENABLED"),i},r=e.fetch?e.fetch:"undefined"!=typeof fetch?fetch:null===n.g||void 0===n.g?void 0:n.g.fetch,this.canUseStorage="undefined"!=typeof window||!!e.browserlessStorage,this.log("Constructing flagsmith instance "+e),e.eventSource&&(i=e.eventSource),e.AsyncStorage&&(u=e.AsyncStorage)}return e.prototype.init=function(e){var t=this,n=e.environmentID,a=e.api,o=void 0===a?f:a,s=e.headers,c=e.onCh
1ange,h=e.cacheFlags,m=e.datadogRum,g=e.onError,y=e.defaultFlags,v=e.fetch,b=e.preventFetch,w=e.enableLogs,_=e.enableDynatrace,x=e.enableAnalytics,E=e.realtime,S=e.eventSourceUrl,k=void 0===S?"https://realtime.flagsmith.com/":S,C=e.AsyncStorage,I=e.identity,A=e.traits,T=e._trigger,R=e.state,N=e.cacheOptions,O=e.angularHttpClient;return new Promise(function(e,a){if(t.environmentID=n,t.api=o,t.headers=s,t.getFlagInterval=null,t.analyticsInterval=null,t.onChange=function(e,n){c&&c(e,n),t.trigger&&(t.log("trigger called"),t.trigger())},t.trigger=T||t.trigger,t.onError=g?function(e){e instanceof Error?g(e):g(Error(e))}:null,t.identity=I,t.withTraits=A,t.enableLogs=w||!1,t.cacheOptions=N?{skipAPI:!!N.skipAPI,ttl:N.ttl||0}:t.cacheOptions,!t.cacheOptions.ttl&&t.cacheOptions.skipAPI&&console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."),v&&(r=v),t.enableAnalytics=x||!1,t.flags=Object.assign({},y)||{},t.initialised=!0,t.ticks=1e4,E&&"undefined"!=typeof window){var f=k+"sse/environments/"+n+"/stream";i?t.eventSource||(t.log("Creating event source with url "+f),t.eventSource=new i(f),t.eventSource.addEventListener("environment_updated",function(e){var n;try{n=JSON.parse(e.data).updated_at}catch(e){t.log("Could not parse sse event",e)}n?!t.timestamp||n>t.timestamp?t.isLoading?t.log("updated_at is new, but flags are loading",e.data,t.timestamp):(t.log("updated_at is new, fetching flags",e.data,t.timestamp),t.getFlags()):t.log("updated_at is outdated, skipping get flags",e.data,t.timestamp):t.log("No updated_at received, fetching flags",e)})):t.log("Error, EventSource is undefined")}if(t.log("Initialising with properties",{environmentID:n,api:o,headers:s,onChange:c,cacheFlags:h,onError:g,defaultFlags:y,preventFetch:b,enableLogs:w,enableAnalytics:x,AsyncStorage:u,identity:I,traits:A,_trigger:T,state:R,angularHttpClient:O},t),t.timer=t.enableLogs?(new Date).valueOf():null,C&&(u=C),t.cacheFlags=void 0!==u&&!!h,t.setState(R),!n)throw a("Please specify a environment id"),"Please specify a environment id";m&&(t.datadogRum=m),_&&("undefined"==typeof dtrum?console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed."):t.dtrum=dtrum),O&&(r=function(e,t){var n=t.headers,r=t.method,i=t.body;return new Promise(function(t){switch(r){case"GET":return O.get(e,{headers:n}).subscribe(function(e){t({ok:!0,text:function(){return Promise.resolve(e)}})});case"POST":case"PUT":return O.post(e,i,{headers:n}).subscribe(function(e){t({ok:!0,text:function(){return Promise.resolve(e)}})})}})}),u&&t.canUseStorage&&u.getItem(p).then(function(e){if(e)try{t.evaluationEvent=JSON.parse(e)}catch(e){t.evaluationEvent={}}else t.evaluationEvent={};return t.analyticsInterval=setInterval(t.analyticsFlags,t.ticks),!0}),t.enableAnalytics&&(t.analyticsInterval&&clearInterval(t.analyticsInterval),u&&t.canUseStorage&&u.getItem(p,function(e,n){if(n){var r=JSON.parse(n);r[t.environmentID]&&(R=t.getState(),t.log("Retrieved events from cache",n),t.setState(l(l({},R),{evaluationEvent:r[t.environmentID]})))}return!0})),h?u&&t.canUseStorage&&u.getItem(d,function(n,r){if(r)try{var i=JSON.parse(r),o=!1;if(i&&i.api===t.api&&i.environmentID===t.environmentID){var s=!0;t.identity&&i.identity!==t.identity&&(t.log("Ignoring cache,  identity has changed from "+i.identity+" to "+t.identity),s=!1),t.cacheOptions.ttl&&(!i.ts||(new Date).valueOf()-i.ts>t.cacheOptions.ttl)&&i.ts&&(t.log("Ignoring cache, timestamp is too old ts:"+i.ts+" ttl: "+t.cacheOptions.ttl+" time elapsed since cache: "+((new Date).valueOf()-i.ts)+"ms"),s=!1),s&&(o=!0,t.setState(i),t.log("Retrieved flags from cache",i))}t.flags?(t.onChange&&(t.log("onChange called"),t.onChange(null,{isFromServer:!1,flagsChanged:!0,traitsChanged:!!t.traits}
1)),t.oldFlags=t.flags,e(!0),t.cacheOptions.skipAPI&&o&&t.log("Skipping API, using cache"),b||t.cacheOptions.skipAPI&&o||t.getFlags()):b?e(!0):t.getFlags(e,a)}catch(e){t.log("Exception fetching cached logs",e)}else b?(y&&t.onChange&&(t.log("onChange called"),t.onChange(null,{isFromServer:!1,flagsChanged:!0,traitsChanged:!!t.traits})),e(!0)):t.getFlags(e,a);return!0}):b?(y&&t.onChange&&(t.log("onChange called"),t.onChange(null,{isFromServer:!1,flagsChanged:!0,traitsChanged:!!t.traits})),e(!0)):t.getFlags(e,a)}).catch(function(e){t.log("Error during initialisation ",e),g&&g(e)})},e.prototype.getAllFlags=function(){return this.flags},e.prototype.identify=function(e,t){return this.identity=e,this.log("Identify: "+this.identity),t&&(this.withTraits=l(l({},this.withTraits||{}),t)),this.initialised?this.getFlags():Promise.resolve()},e.prototype.getState=function(){return{api:this.api,environmentID:this.environmentID,flags:this.flags,identity:this.identity,ts:this.ts,traits:this.traits,evaluationEvent:this.evaluationEvent}},e.prototype.setState=function(e){e&&(this.initialised=!0,this.api=e.api||this.api||f,this.environmentID=e.environmentID||this.environmentID,this.flags=e.flags||this.flags,this.identity=e.identity||this.identity,this.traits=e.traits||this.traits,this.evaluationEvent=e.evaluationEvent||this.evaluationEvent,this.log("setState called",this))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enableLogs&&console.log.apply(this,function(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}(["FLAGSMITH:",(new Date).valueOf()-(this.timer||0),"ms"],e,!0))},e.prototype.updateStorage=function(){if(this.cacheFlags){this.ts=(new Date).valueOf();var e=JSON.stringify(this.getState());this.log("Setting storage",e),u.setItem(d,e)}},e.prototype.updateEventStorage=function(){if(this.enableAnalytics){var e=JSON.stringify(this.getState().evaluationEvent);this.log("Setting event storage",e),u.setItem(p,e)}},e.prototype.logout=function(){return this.identity=null,this.traits=null,this.initialised?this.getFlags():Promise.resolve()},e.prototype.startListening=function(e){void 0===e&&(e=1e3),this.getFlagInterval&&clearInterval(this.getFlagInterval),this.getFlagInterval=setInterval(this.getFlags,e)},e.prototype.stopListening=function(){this.getFlagInterval&&(clearInterval(this.getFlagInterval),this.getFlagInterval=null)},e.prototype.getSegments=function(){},e}();function b(e){return new v({fetch:e.fetch,AsyncStorage:e.AsyncStorage,eventSource:e.eventSource})}var w,_=function(e,t,n){var r="shortString",i=!0;"number"==typeof n&&(r="javaDouble",i=!1),e[r]=e[r]||{},e[r][t]=i?n+"":n},x=(w=function(e,t){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),E=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},S=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o},k=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},C=function(e){function t(){return e.call(this,"EventSource not available.\nConsider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.")||this}return x(t,e),t}(Error),I=function(){function e(e,t){var n=this;if(this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,this._configuration=null!=t?Object.assign({},t):void 0,this.withCredentials=!1,this._eventSource=null,this._lastEventId=null,this._timer=null,this._listeners={open:[],error:[],message:[]},this.url=e.toString(),this.readyState=this.CONNECTING,this.max_retry_time=3e3,this.eventSourceClass=globalThis.FlagsmithEventSource,null!=this._configuration&&(this._configuration.lastEventId&&(this._lastEventId=this._configuration.lastEventId,delete this._configuration.lastEventId),this._configuration.max_retry_time&&(this.max_retry_time=this._configuration.max_retry_time,delete this._configuration.max_retry_time),this._configuration.eventSourceClass&&(this.eventSourceClass=this._configuration.eventSourceClass,delete this._configuration.eventSourceClass)),null==this.eventSourceClass||"function"!=typeof this.eventSourceClass)throw new C;this._onevent_wrapped=function(e){n._onevent(e)},this._start()}return e.prototype.dispatchEvent=function(e){throw Error("Method not implemented.")},e.prototype._start=function(){var e,t,n=this,r=this.url;this._lastEventId&&(-1===r.indexOf("?")?r+="?":r+="&",r+="lastEventId="+encodeURIComponent(this._lastEventId)),this._eventSource=new this.eventSourceClass(r,this._configuration),this._eventSource.onopen=function(e){n._onopen(e)}
1,this._eventSource.onerror=function(e){n._onerror(e)},this._eventSource.onmessage=function(e){n.onmessage(e)};try{for(var i=E(Object.keys(this._listeners)),a=i.next();!a.done;a=i.next()){var o=a.value;this._eventSource.addEventListener(o,this._onevent_wrapped)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.prototype._onopen=function(e){0===this.readyState&&(this.readyState=1,this.onopen(e))},e.prototype._onerror=function(e){var t=this;if(1===this.readyState&&(this.readyState=0,this.onerror(e)),this._eventSource){this._eventSource.close(),this._eventSource=null;var n=Math.round(this.max_retry_time*Math.random());this._timer=setTimeout(function(){return t._start()},n)}},e.prototype._onevent=function(e){e&&e.lastEventId&&(this._lastEventId=e.lastEventId);var t,n,r=this._listeners[e.type];if(null!=r)try{for(var i=E(k([],S(r),!1)),a=i.next();!a.done;a=i.next())a.value.call(this,e)}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}"message"===e.type&&this.onmessage(e)},e.prototype.onopen=function(e){},e.prototype.onerror=function(e){},e.prototype.onmessage=function(e){},e.prototype.close=function(){this._timer&&(clearTimeout(this._timer),this._timer=null),this._eventSource&&(this._eventSource.close(),this._eventSource=null),this.readyState=2},e.prototype.addEventListener=function(e,t,n){null==this._listeners[e]&&(this._listeners[e]=[],null!=this._eventSource&&this._eventSource.addEventListener(e,this._onevent_wrapped));var r=this._listeners[e];r.includes(t)||(this._listeners[e]=k(k([],S(r),!1),[t],!1))},e.prototype.removeEventListener=function(e,t,n){var r=this._listeners[e];this._listeners[e]=r.filter(function(e){return e!==t})},e}();globalThis.FlagsmithEventSource="undefined"!=typeof EventSource?EventSource:null;var A=function(e,t){return t=t||{},new Promise(function(n,r){var i=new XMLHttpRequest,a=[],o=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return a},entries:function(){return o},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase() in s}}}};for(var c in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){a.push(t=t.toLowerCase()),o.push([t,n]),s[t]=s[t]?s[t]+","+n:n}),n(l())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)})},T=b({AsyncStorage:s,fetch:A,eventSource:I});"undefined"!=typeof window&&(window.flagsmith=T),e.createFlagsmithInstance=function(){return b({AsyncStorage:s,fetch:A,eventSource:I})},e.default=T,Object.defineProperty(e,"__esModule",{value:!0})}(t)},30551:function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,a=f&(1<<-u)-1,f>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=p,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=c}return(f?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,d=u>>1,p=23===i?5960464477539062e-23:0,f=r?0:a-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=p/l:t+=p*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[n+f]=255&o,f+=h,o/=256,c-=8);e[n+f-h]|=128*m}},59703:function(e){"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g;function c(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var u=1,d=1;function p(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function f(){var e={line:u,column:d};return function(t){return t.position=new h(e),g(r),t}}function h(e){this.start=e,this.end={line:u,column:d},this.source=l.source}function m(t){var n=Error(l.source+":"+u+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=u,n.column=d,n.source=e,l.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}return h.prototype.content=e,g(r),function(){var e,n=[];for(y(n);e=function(){var e=f(),n=g(i);if(n){if(v(),!g(a))return m("property missing ':'");var r=g(o),l=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return g(s),l}}();)!1!==e&&(n.push(e),y(n));return n}()}},10780:function(e,t,n){"use strict";n.d(t,{Z:function(){return sT}});var r,i,a,o,s,l,c,u,d,p,f,h,m,g,y,v,b=n(91620).lW,w=n(14224);if("undefined"==typeof window){var _={hostname:""};iy={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:_,referrer:""},screen:{width:0,height:0},location:_,addEventListener:function(){},removeEventListener:function(){}}}else iy=window;function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,i)}function S(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){E(a,r,i,o,s,"next",e)}function s(e){E(a,r,i,o,s,"throw",e)}o(void 0)})}}
1function k(e,t,n){return(k=M()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&O(i,n.prototype),i}).apply(null,arguments)}function C(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function I(){return(I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(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&&O(e,t)}function R(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function N(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function D(e){var t="function"==typeof Map?new Map:void 0;return(D=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))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,n)}function n(){return k(e,arguments,A(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),O(n,e)})(e)}function M(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(M=function(){return!!e})()}function $(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return x(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,void 0)}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function L(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var F=Object.defineProperty,B=function(e,t,n){var r;return(r=(void 0===t?"undefined":P(t))!=="symbol"?t+"":t)in e?F(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n},U=Object.defineProperty,z=function(e,t,n){var r;return(r=(void 0===t?"undefined":P(t))!=="symbol"?t+"":t)in e?U(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n},Z=((is=Z||{})[is.Document=0]="Document",is[is.DocumentType=1]="DocumentType",is[is.Element=2]="Element",is[is.Text=3]="Text",is[is.CDATA=4]="CDATA",is[is.Comment=5]="Comment",is),V={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},q={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},W={},G={};function H(e,t,n){var r,i=e+"."+String(n);if(G[i])return G[i].call(t);var a=null==(r=Object.getOwnPropertyDescriptor(function(e){if(W[e])return W[e];var t=globalThis[e],n=t.prototype,r=e in V?V[e]:void 0,i=!!(r&&r.every(function(e){var t,r;return!!(null==(r=null==(t=Object.getOwnPropertyDescriptor(n,e))?void 0:t.get)?void 0:r.toString().includes("[native code]"))})),a=e in q?q[e]:void 0,o=!!(a&&a.every(function(e){var t;return"function"==typeof n[e]&&(null==(t=n[e])?void 0:t.toString().includes("[native code]"))}));if(i&&o&&!globalThis.Zone)return W[e]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var l=s.contentWindow;if(!l)return t.prototype;var c=l[e].prototype;if(document.body.removeChild(s),!c)return n;return W[e]=c}catch(e){return n}}(e),n))?void 0:r.get;return a?(G[i]=a,a.call(t)):t[n]}var Y={childNodes:function(e){return H("Node",e,"childNodes")},parentNode:function(e){return H("Node",e,"parentNode")},parentElement:function(e){return H("Node",e,"parentElement")},textContent:function(e){return H("Node",e,"textContent")},host:function(e){return e&&"host"in e?H("ShadowRoot",e,"host"):null},shadowRoot:function(e){return e&&"shadowRoot"in e?H("Element",e,"shadowRoot"):null}};
1function K(e){return e.nodeType===e.ELEMENT_NODE}function J(e){var t=e&&"host"in e&&"mode"in e&&Y.host(e)||null;return!!(t&&"shadowRoot"in t&&Y.shadowRoot(t)===e)}function X(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Q(e){try{var t,n=e.rules||e.cssRules;if(!n)return null;var r=e.href;return!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href),(t=Array.from(n,function(e){return ee(e,r)}).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(e){return null}}function ee(e,t){if("styleSheet"in e){var n;try{n=Q(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var n=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?n.push("layer"):e.layerName&&n.push("layer("+e.layerName+")"),e.supportsText&&n.push("supports("+e.supportsText+")"),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(t){n=e.cssText}return e.styleSheet.href?ed(n,e.styleSheet.href):n}var r=e.cssText;return("selectorText"in e&&e.selectorText.includes(":")&&(r=r.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t)?ed(r,t):r}var et=function(){function e(){z(this,"idNodeMap",new Map),z(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){if(!e)return -1;var t,n=null==(t=this.getMeta(e))?void 0:t.id;return null!=n?n:-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){var t=this,n=this.getId(e);this.idNodeMap.delete(n),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var n=this.getNode(e);if(n){var r=this.nodeMetaMap.get(n);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function en(e){var t=e.element,n=e.maskInputOptions,r=e.tagName,i=e.type,a=e.value,o=e.maskInputFn,s=a||"",l=i&&er(i);return(n[r.toLowerCase()]||l&&n[l])&&(s=o?o(s,t):"*".repeat(s.length)),s}function er(e){return e.toLowerCase()}var ei="__rrweb_original__";function ea(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?er(t):null}function eo(e,t){try{n=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n,r,i=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(r=null==i?void 0:i[1])?r:null}var es=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,el=/^(?:[a-z+]+:)?\/\//i,ec=/^www\..*/i,eu=/^(data:)([^,]*),(.*)/i;function ed(e,t){return(e||"").replace(es,function(e,n,r,i,a,o){var s=r||a||o,l=n||i||"";if(!s)return e;if(el.test(s)||ec.test(s)||eu.test(s))return"url("+l+s+l+")";if("/"===s[0])return"url("+l+((t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s)+l+")";var c=t.split("/"),u=s.split("/");c.pop();for(var d,p=$(u);!(d=p()).done;){var f=d.value;"."!==f&&(".."===f?c.pop():c.push(f))}return"url("+l+c.join("/")+l+")"})}function ep(e){return e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}var ef=1,eh=RegExp("[^a-z0-9-_:]");function em(){return ef++}var eg=/^[^ \t\n\r\u000c]+/,ey=/^[, \t\n\r\u000c]+/,ev=new WeakMap;function eb(e,t){return t&&""!==t.trim()?ew(e,t):t}function ew(e,t){var n=ev.get(e);if(n||(n=e.createElement("a"),ev.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function e_(e,t,n,r){return r?"src"!==n&&("href"!==n||"use"===t&&"#"===r[0])&&("xlink:href"!==n||"#"===r[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?function(e,t){if(""===t.trim())return t;var n=0;function r(e){var r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}for(var i=[];r(ey),!(n>=t.length);){var a=r(eg);if(","===a.slice(-1))a=eb(e,a.substring(0,a.length-1)),i.push(a);else{var o="";a=eb(e,a);for(var s=!1;;){var l=t.charAt(n);if(""===l){i.push((a+o).trim());break}if(s)")"===l&&(s=!1);else{if(","===l){n+=1,i.push((a+o).trim());break}"("===l&&(s=!0)}o+=l,n+=1}}}return i.join(", ")}(e,r):"style"===n?ed(r,ew(e)):"object"===t&&"data"===n?eb(e,r):r:eb(e,r):r}function ex(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}
1function eE(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&eE(Y.parentNode(e),t,n);for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}return!!n&&eE(Y.parentNode(e),t,n)}function eS(e,t,n,r){var i;if(K(e)){if(i=e,!Y.childNodes(i).length)return!1}else{if(null===Y.parentElement(e))return!1;i=Y.parentElement(e)}try{if("string"==typeof t){if(r){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(eE(i,t,r))return!0;if(n){if(r){if(i.closest(n))return!0}else if(i.matches(n))return!0}}catch(e){}return!1}function ek(e){return null==e?"":e.toLowerCase()}function eC(e,t){var n=t.doc,r=t.mirror,i=t.blockClass,a=t.blockSelector,o=t.maskTextClass,s=t.maskTextSelector,l=t.skipChild,c=void 0!==l&&l,u=t.inlineStylesheet,d=void 0===u||u,p=t.maskInputOptions,f=void 0===p?{}:p,h=t.maskTextFn,m=t.maskInputFn,g=t.slimDOMOptions,y=t.dataURLOptions,v=void 0===y?{}:y,b=t.inlineImages,w=void 0!==b&&b,_=t.recordCanvas,x=void 0!==_&&_,E=t.onSerialize,S=t.onIframeLoad,k=t.iframeLoadTimeout,C=void 0===k?5e3:k,I=t.onStylesheetLoad,A=t.stylesheetLoadTimeout,T=void 0===A?5e3:A,N=t.keepIframeSrcFn,O=void 0===N?function(){return!1}:N,P=t.newlyAddedElement,D=t.cssCaptured,M=t.needsMask,j=t.preserveWhiteSpace,L=void 0===j||j;M||(M=eS(e,o,s,void 0===M));var F=function(e,t){var n,r,i,a,o,s,l,c,u,d,p=t.doc,f=t.mirror,h=t.blockClass,m=t.blockSelector,g=t.needsMask,y=t.inlineStylesheet,v=t.maskInputOptions,b=t.maskTextFn,w=t.maskInputFn,_=t.dataURLOptions,x=t.inlineImages,E=t.recordCanvas,S=t.keepIframeSrcFn,k=t.newlyAddedElement,C=t.cssCaptured,I=function(e,t){if(t.hasNode(e)){var n=t.getId(e);return 1===n?void 0:n}}(p,f);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:Z.Document,childNodes:[],compatMode:e.compatMode};return{type:Z.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Z.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return function(e,t){for(var n,r=t.doc,i=t.blockClass,a=t.blockSelector,o=t.inlineStylesheet,s=t.maskInputOptions,l=void 0===s?{}:s,c=t.maskInputFn,u=t.dataURLOptions,d=void 0===u?{}:u,p=t.inlineImages,f=t.recordCanvas,h=t.keepIframeSrcFn,m=t.newlyAddedElement,g=t.rootId,y=function(e,t,n){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,i,a),v=function(e){if(R(e,HTMLFormElement))return"form";var t=er(e.tagName);return eh.test(t)?"div":t}(e),b={},w=e.attributes.length,_=0;_<w;_++){var x=e.attributes[_];ex(v,x.name,x.value)||(b[x.name]=e_(r,v,er(x.name),x.value))}if("link"===v&&o){var E=Array.from(r.styleSheets).find(function(t){return t.href===e.href}),S=null;E&&(S=Q(E)),S&&(delete b.rel,delete b.href,b._cssText=S)}if("style"===v&&e.sheet){var k=Q(e.sheet);k&&(e.childNodes.length>1&&(k=(function(e,t){var n=Array.from(t.childNodes),r=[];if(n.length>1&&e&&"string"==typeof e){for(var i=ep(e),a=1;a<n.length;a++)if(n[a].textContent&&"string"==typeof n[a].textContent)for(var o=ep(n[a].textContent),s=3;s<o.length;s++){var l=o.substring(0,s);if(2===i.split(l).length){for(var c=i.indexOf(l),u=c;u<e.length;u++)if(ep(e.substring(0,u)).length===c){r.push(e.substring(0,u)),e=e.substring(u);break}break}}}return r.push(e),r})(k,e).join("/* rr_split */")),b._cssText=k)}if("input"===v||"textarea"===v||"select"===v){var C=e.value,I=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&C?b.value=en({element:e,type:ea(e),tagName:v,value:C,maskInputOptions:l,maskInputFn:c}):I&&(b.checked=I)}if("option"===v&&(e.selected&&!l.select?b.selected=!0:delete b.selected),"dialog"===v&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===v&&f){if("2d"===e.__context)!function(e){var t=e.getContext("2d");if(!t)return!0;for(var n=0;n<e.width;n+=50)for(var r=0;r<e.height;r+=50){var i=t.getImageData;if(new Uint32Array((ei in i?i[ei]:i).call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(function(e){return 0!==e}))return!1}return!0}(e)&&(b.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){var A=e.toDataURL(d.type,d.quality),T=r.createElement("canvas");T.width=e.width,T.height=e.height,A!==T.toDataURL(d.type,d.quality)&&(b.rr_dataURL=A)}}
1if("img"===v&&p){ib||(iw=(ib=r.createElement("canvas")).getContext("2d"));var N=e.currentSrc||e.getAttribute("src")||"<unknown-src>",O=e.crossOrigin,P=function(){e.removeEventListener("load",P);try{ib.width=e.naturalWidth,ib.height=e.naturalHeight,iw.drawImage(e,0,0),b.rr_dataURL=ib.toDataURL(d.type,d.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?P():e.addEventListener("load",P);return}console.warn("Cannot inline img src="+N+"! Error: "+t)}"anonymous"===e.crossOrigin&&(O?b.crossOrigin=O:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?P():e.addEventListener("load",P)}if("audio"===v||"video"===v){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(!(void 0!==m&&m)&&(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),y){var M=e.getBoundingClientRect(),$=M.width,j=M.height;b={class:b.class,rr_width:""+$+"px",rr_height:""+j+"px"}}"iframe"!==v||h(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(v)&&(n=!0)}catch(e){}return{type:Z.Element,tagName:v,attributes:b,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:y,rootId:g,isCustom:n}}(e,{doc:p,blockClass:h,blockSelector:m,inlineStylesheet:y,maskInputOptions:void 0===v?{}:v,maskInputFn:w,dataURLOptions:void 0===_?{}:_,inlineImages:x,recordCanvas:E,keepIframeSrcFn:S,newlyAddedElement:void 0!==k&&k,rootId:I});case e.TEXT_NODE:return r=(n={doc:p,needsMask:g,maskTextFn:b,rootId:I,cssCaptured:void 0!==C&&C}).needsMask,i=n.maskTextFn,a=n.rootId,o=n.cssCaptured,l=(s=Y.parentNode(e))&&s.tagName,c="",u="STYLE"===l||void 0,(d="SCRIPT"===l||void 0)?c="SCRIPT_PLACEHOLDER":!o&&(c=Y.textContent(e),u&&c&&(c=ed(c,ew(n.doc)))),!u&&!d&&c&&r&&(c=i?i(c,Y.parentElement(e)):c.replace(/[\S]/g,"*")),{type:Z.Text,textContent:c||"",rootId:a};case e.CDATA_SECTION_NODE:return{type:Z.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:Z.Comment,textContent:Y.textContent(e)||"",rootId:I};default:return!1}}(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:M,inlineStylesheet:d,maskInputOptions:f,maskTextFn:h,maskInputFn:m,dataURLOptions:v,inlineImages:w,recordCanvas:x,keepIframeSrcFn:O,newlyAddedElement:void 0!==P&&P,cssCaptured:void 0!==D&&D});if(!F)return console.warn(e,"not serialized"),null;q=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===Z.Comment)return!0;if(e.type===Z.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===eo(e.attributes.href))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ek(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ek(e.attributes.name)||"icon"===ek(e.attributes.rel)||"apple-touch-icon"===ek(e.attributes.rel)||"shortcut icon"===ek(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ek(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(ek(e.attributes.property).match(/^(og|twitter|fb):/)||ek(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ek(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ek(e.attributes.name)||"googlebot"===ek(e.attributes.name)||"bingbot"===ek(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===ek(e.attributes.name)||"generator"===ek(e.attributes.name)||"framework"===ek(e.attributes.name)||"publisher"===ek(e.attributes.name)||"progid"===ek(e.attributes.name)||ek(e.attributes.property).match(/^article:/)||ek(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===ek(e.attributes.name)||"yandex-verification"===ek(e.attributes.name)||"csrf-token"===ek(e.attributes.name)||"p:domain_verify"===ek(e.attributes.name)||"verify-v1"===ek(e.attributes.name)||"verification"===ek(e.attributes.name)||"shopify-checkout-api-token"===ek(e.attributes.name)))return!0}}return!1}(F,g)&&(L||F.type!==Z.Text||F.textContent.replace(/^\s+|\s+$/gm,"").length)?em():-2;var B=Object.assign(F,{id:q});if(r.add(e,B),-2===q)return null;E&&E(e);var U=!c;if(B.type===Z.Element){U=U&&!B.needBlock,delete B.needBlock;var z=Y.shadowRoot(e);z&&X(z)&&(B.isShadowHost=!0)}if((B.type===Z.Document||B.type===Z.Element)&&U){g.headWhitespace&&B.type===Z.Element&&"head"===B.tagName&&(L=!1);var V={doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:M,maskTextClass:o,maskTextSelector:s,skipChild:c,inlineStylesheet:d,maskInputOptions:f,maskTextFn:
1h,maskInputFn:m,slimDOMOptions:g,dataURLOptions:v,inlineImages:w,recordCanvas:x,preserveWhiteSpace:L,onSerialize:E,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:O,cssCaptured:!1};if(B.type===Z.Element&&"textarea"===B.tagName&&void 0!==B.attributes.value);else{B.type===Z.Element&&void 0!==B.attributes._cssText&&"string"==typeof B.attributes._cssText&&(V.cssCaptured=!0);for(var q,W,G=$(Array.from(Y.childNodes(e)));!(W=G()).done;){var H=eC(W.value,V);H&&B.childNodes.push(H)}}var ee=null;if(K(e)&&(ee=Y.shadowRoot(e)))for(var et,es=$(Array.from(Y.childNodes(ee)));!(et=es()).done;){var el=eC(et.value,V);el&&(X(ee)&&(el.isShadow=!0),B.childNodes.push(el))}}var ec=Y.parentNode(e);return ec&&J(ec)&&X(ec)&&(B.isShadow=!0),B.type===Z.Element&&"iframe"===B.tagName&&function(e,t,n){var r,i=e.contentWindow;if(i){var a=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){var o=setTimeout(function(){a||(t(),a=!0)},n);e.addEventListener("load",function(){clearTimeout(o),a=!0,t()});return}var s="about:blank";if(i.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}(e,function(){var t=e.contentDocument;if(t&&S){var n=eC(t,{doc:t,mirror:r,blockClass:i,blockSelector:a,needsMask:M,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:f,maskTextFn:h,maskInputFn:m,slimDOMOptions:g,dataURLOptions:v,inlineImages:w,recordCanvas:x,preserveWhiteSpace:L,onSerialize:E,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:O});n&&S(e,n)}},C),B.type===Z.Element&&"link"===B.tagName&&"string"==typeof B.attributes.rel&&("stylesheet"===B.attributes.rel||"preload"===B.attributes.rel&&"string"==typeof B.attributes.href&&"css"===eo(B.attributes.href))&&function(e,t,n){var r,i=!1;try{r=e.sheet}catch(e){return}if(!r){var a=setTimeout(function(){i||(t(),i=!0)},n);e.addEventListener("load",function(){clearTimeout(a),i=!0,t()})}}(e,function(){if(I){var t=eC(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:M,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:f,maskTextFn:h,maskInputFn:m,slimDOMOptions:g,dataURLOptions:v,inlineImages:w,recordCanvas:x,preserveWhiteSpace:L,onSerialize:E,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:O});t&&I(e,t)}},T),B}var eI={exports:{}},eA=String,eT=function(){return{isColorSupported:!1,reset:eA,bold:eA,dim:eA,italic:eA,underline:eA,inverse:eA,hidden:eA,strikethrough:eA,black:eA,red:eA,green:eA,yellow:eA,blue:eA,magenta:eA,cyan:eA,white:eA,gray:eA,bgBlack:eA,bgRed:eA,bgGreen:eA,bgYellow:eA,bgBlue:eA,bgMagenta:eA,bgCyan:eA,bgWhite:eA}};eI.exports=eT(),eI.exports.createColors=eT;var eR=eI.exports,eN=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return R(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),eO=function(e){function t(n,r,i,a,o,s){var l;return(l=e.call(this,n)||this).name="CssSyntaxError",l.reason=n,o&&(l.file=o),a&&(l.source=a),s&&(l.plugin=s),void 0!==r&&void 0!==i&&("number"==typeof r?(l.line=r,l.column=i):(l.line=r.line,l.column=r.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}T(t,e);var n=t.prototype;return n.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},n.showSourceCode=function(e){var t,n,r=this;if(!this.source)return"";var i=this.source;null==e&&(e=eR.isColorSupported),eN&&e&&(i=eN(i));var a=i.split(/\r?\n/),o=Math.max(this.line-3,0),s=Math.min(this.line+2,a.length),l=String(s).length;if(e){var c=eR.createColors(!0),u=c.bold,d=c.gray,p=c.red;t=function(e){return u(p(e))},n=function(e){return d(e)}}else t=n=function(e){return e};return a.slice(o,s).map(function(e,i){var a=o+1+i,s=" "+(" "+a).slice(-l)+" | ";if(a===r.line){var c=n(s.replace(/\d/g," "))+e.slice(0,r.column-1).replace(/[^\t]/g," ");return t(">")+n(s)+e+"\n "+c+t("^")}return" "+n(s)+e}).join("\n")},n.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(D(Error));eO.default=eO;var eP={};eP.isClean=Symbol("isClean"),eP.my=Symbol("my");var eD={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},eM=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{var i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}},t.beforeAfter=function(e,t){n="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");for(var n,r=e.parent,i=0;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){var a=this.raw(e,null,"indent");if(a.length)for(var o=0;o<i;o++)n+=a}return n},t.block=function(e,t){var n,r=this.raw(e,"between","beforeOpen");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){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var i=e.nodes[r],a=this.raw(i,"before");a&&this.builder(a),this.stringify(i,t!==r||n)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},t.decl=function(e,t){var n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,n){if(n||(n=t),t&&void 0!==(i=e.raws[t]))return i;var r,i,a=e.parent;if("before"===n&&(!a||"root"===a.type&&a.first===e||a&&"document"===a.type))return"";if(!a)return eD[n];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[n])return o.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);var s="raw"+((r=n)[0].toUpperCase()+r.slice(1));return this[s]?i=this[s](o,e):o.walk(function(e){if(void 0!==(i=e.raws[t]))return!1}),void 0===i&&(i=eD[n]),o.rawCache[n]=i,i},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 n;return e.walkComments(function(e){if(void 0!==e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},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(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return(t=n.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){var t;return e.raws.indent?e.raws.indent:(e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var i=n.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 n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},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}();function e$(e,t){new eM(t).stringify(e)}eM.default=eM,e$.default=e$;var ej=eP.isClean,eL=eP.my,eF=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[ej]=!1,this[eL]=!0,e)if("nodes"===t){this.nodes=[];for(var n,r=$(e[t]);!(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=function e(t,n){var r=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var a=t[i],o=void 0===a?"undefined":P(a);"parent"===i&&"object"===o?n&&(r[i]=n):"source"===i?r[i]=a:Array.isArray(a)?r[i]=a.map(function(t){return e(t,r)}):("object"===o&&null!==a&&(a=e(a)),r[i]=a)}return r}(this);for(var n in e)t[n]=e[n];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 n=this.rangeBy(t),r=n.end,i=n.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new eO(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,n){return e[t]===n||(e[t]=n,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[ej]){this[ej]=!1;for(var e=this;e=e.parent;)e[ej]=!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 n=this.source.start;if(e.index)n=this.positionInside(e.index,t);
1else if(e.word){var r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n},t.positionInside=function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,a=0;a<e;a++)"\n"===n[a]?(r=1,i+=1):r+=1;return{column:r,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},n=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 r=this.toString(),i=r.indexOf(e.word);-1!==i&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},t.raw=function(e,t){return new eM().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),n=0;n<e;n++)t[n]=arguments[n];if(this.parent){for(var r,i=this,a=!1,o=$(t);!(r=o()).done;){var s=r.value;s===this?a=!0:a?(this.parent.insertAfter(i,s),i=s):this.parent.insertBefore(i,s)}a||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var n={},r=null==t;t=t||new Map;var i=0;for(var a in this)if(Object.prototype.hasOwnProperty.call(this,a)&&"parent"!==a&&"proxyCache"!==a){var o=this[a];if(Array.isArray(o))n[a]=o.map(function(e){return(void 0===e?"undefined":P(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===o?"undefined":P(o))==="object"&&o.toJSON)n[a]=o.toJSON(null,t);else if("source"===a){var s=t.get(o.input);null==s&&(s=i,t.set(o.input,i),i++),n[a]={end:o.end,inputId:s,start:o.start}}else n[a]=o}return r&&(n.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),n},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=e$),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,n){var r={node:this};for(var i in n)r[i]=n[i];return e.warn(t,r)},C(e,[{key:"proxyOf",get:function(){return this}}]),e}();eF.default=eF;var eB=function(e){function t(t){var n;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=I({},t,{value:String(t.value)})),(n=e.call(this,t)||this).type="decl",n}return T(t,e),C(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(eF);eB.default=eB;var eU=eN.SourceMapConsumer,ez=eN.SourceMapGenerator,eZ=eN.existsSync,eV=eN.readFileSync,eq=eN.dirname,eW=eN.join,eG=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=eq(this.mapFile)),r&&(this.text=r)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new eU(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),b?b.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":P(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);
1if(t){var n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}},t.loadFile=function(e){if(this.root=eq(e),eZ(e))return this.mapFile=e,eV(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){var n=t(e);if(n){var r=this.loadFile(n);if(!r)throw Error("Unable to load previous source map: "+n.toString());return r}}else if(R(t,eU))return ez.fromSourceMap(t).toString();else if(R(t,ez))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=eW(eq(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}();eG.default=eG;var eH=eN.SourceMapConsumer,eY=eN.SourceMapGenerator,eK=eN.fileURLToPath,eJ=eN.pathToFileURL,eX=eN.isAbsolute,eQ=eN.resolve,e0=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
1,e1=Symbol("fromOffsetCache"),e2=!!(eH&&eY),e3=!!(eQ&&eX),e5=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":P(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&&(!e3||/^\w+:\/\//.test(t.from)||eX(t.from)?this.file=t.from:this.file=eQ(t.from)),e3&&e2){var n=new eG(this.css,t);if(n.text){this.map=n;var r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+e0(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,n,r){if(void 0===r&&(r={}),t&&(void 0===t?"undefined":P(t))==="object"){var i,a,o,s=t,l=n;if("number"==typeof s.offset){var c=this.fromOffset(s.offset);t=c.line,n=c.col}else t=s.line,n=s.column;if("number"==typeof l.offset){var u=this.fromOffset(l.offset);a=u.line,o=u.col}else a=l.line,o=l.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var p=this.origin(t,n,a,o);return(i=p?new eO(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,r.plugin):new eO(e,void 0===a?t:{column:n,line:t},void 0===a?n:{column:o,line:a},this.css,this.file,r.plugin)).input={column:n,endColumn:o,endLine:a,line:t,source:this.css},this.file&&(eJ&&(i.input.url=eJ(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[e1])s=this[e1];else{var t=this.css.split("\n");s=Array(t.length);for(var n=0,r=0,i=t.length;r<i;r++)s[r]=n,n+=t[r].length+1;this[e1]=s}o=s[s.length-1];var a=0;if(e>=o)a=s.length-1;else for(var o,s,l,c=s.length-2;a<c;)if(e<s[l=a+(c-a>>1)])c=l-1;else if(e>=s[l+1])a=l+1;else{a=l;break}return{col:e-s[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:eQ(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,n,r){if(!this.map)return!1;var i,a,o=this.map.consumer(),s=o.originalPositionFor({column:t,line:e});if(!s.source)return!1;"number"==typeof n&&(i=o.originalPositionFor({column:r,line:n})),a=eX(s.source)?eJ(s.source):new URL(s.source,this.map.consumer().sourceRoot||eJ(this.map.mapFile));var l={column:s.column,endColumn:i&&i.column,endLine:i&&i.line,line:s.line,url:a.toString()};if("file:"===a.protocol){if(eK)l.file=eK(a);else throw Error("file: protocol is not available in this PostCSS build")}var c=o.sourceContentFor(s.source);return c&&(l.source=c),l},t.toJSON=function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var r=n[t];null!=this[r]&&(e[r]=this[r])}return this.map&&(e.map=I({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},C(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();e5.default=e5,eN&&eN.registerInput&&eN.registerInput(e5);var e4=eN.SourceMapConsumer,e9=eN.SourceMapGenerator,e6=eN.dirname,e7=eN.relative,e8=eN.resolve,te=eN.sep,tt=eN.pathToFileURL,tn=!!(e4&&e9),tr=!!(e6&&e8&&e7&&te),ti=function(){function e(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,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(){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 e,t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=$(this.previous());!(e=t()).done;){var n=e.value,r=this.toUrl(this.path(n.file)),i=n.root||e6(n.file),a=void 0;!1===this.mapOpts.sourcesContent?(a=new e4(n.text)).sourcesContent&&(a.sourcesContent=null):a=n.consumer(),this.map.applySourceMap(a,r,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(),tr&&tn&&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=e9.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new e9({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,t,n=this;this.css="",this.map=new e9({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,i=1,a="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(s,l,c){if(n.css+=s,l&&"end"!==c&&(o.generated.line=r,o.generated.column=i-1,l.source&&l.source.start?(o.source=n.sourcePath(l),o.original.line=l.source.start.line,o.original.column=l.source.start.column-1):(o.source=a,o.original.line=1,o.original.column=0),n.map.addMapping(o)),(e=s.match(/\n/g))?(r+=e.length,t=s.lastIndexOf("\n"),i=s.length-t):i+=s.length,l&&"start"!==c){var u=l.parent||{raws:{}};(!("decl"===l.type||"atrule"===l.type&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(o.source=n.sourcePath(l),o.original.line=l.source.end.line,o.original.column=l.source.end.column-1,o.generated.line=r,o.generated.column=i-2):(o.source=a,o.original.line=1,o.original.column=0,o.generated.line=r,o.generated.column=i-1),n.map.addMapping(o))}})},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 n=this.opts.to?e6(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=e6(e8(n,this.mapOpts.annotation)));var r=e7(n,e);return this.memoizedPaths.set(e,r),r},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 n=t.source.input.map;e.previousMaps.includes(n)||e.previousMaps.push(n)}});else{var t=new e5(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(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var i=e.usesFileUrls?e.toFileUrl(r):e.toUrl(e.path(r));e.map.setSourceContent(i,n.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,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 b?b.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(tt){var n=tt(e).toString();return this.memoizedFileURLs.set(e,n),n}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;"\\"===te&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},e}(),ta=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="comment",n}return T(t,e),t}(eF);ta.default=ta;var to=eP.isClean,ts=eP.my,tl=function(e){function t(){return e.apply(this,arguments)||this}T(t,e);var n=t.prototype;return n.append=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r,i=$(t);!(r=i()).done;)for(var a,o=r.value,s=this.normalize(o,this.last),l=$(s);!(a=l()).done;){var c=a.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},n.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var n,r=$(this.nodes);!(n=r()).done;)n.value.cleanRaws(t)},n.each=function(e){if(this.proxyOf.nodes){for(var t,n,r=this.getIterator();this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],!1!==(n=e(this.proxyOf.nodes[t],t)));)this.indexes[r]+=1;return delete this.indexes[r],n}},n.every=function(e){return this.nodes.every(e)},n.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},n.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 n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return e[t].apply(e,[].concat(r.map(function(e){return"function"==typeof e?function(t,n){return e(t.toProxy(),n)}:e})))};if("every"===t||"some"===t)return function(n){return e[t](function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return n.apply(void 0,[].concat([e.toProxy()],r))})};if("root"===t)return function(){return e.root().toProxy()};
1if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},n.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},n.insertAfter=function(e,t){var n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(var a,o=$(i);!(a=o()).done;){var s=a.value;this.proxyOf.nodes.splice(r+1,0,s)}for(var l in this.indexes)r<(n=this.indexes[l])&&(this.indexes[l]=n+i.length);return this.markDirty(),this},n.insertBefore=function(e,t){var n,r=this.index(e),i=0===r&&"prepend",a=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(var o,s=$(a);!(o=s()).done;){var l=o.value;this.proxyOf.nodes.splice(r,0,l)}for(var c in this.indexes)r<=(n=this.indexes[c])&&(this.indexes[c]=n+a.length);return this.markDirty(),this},n.normalize=function(e,n){var r=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(i_(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,a=$(e);!(i=a()).done;){var o=i.value;o.parent&&o.parent.removeChild(o,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var s,l=$(e);!(s=l()).done;){var c=s.value;c.parent&&c.parent.removeChild(c,"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 eB(e)]}else if(e.selector)e=[new ix(e)];else if(e.name)e=[new iE(e)];else if(e.text)e=[new ta(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[ts]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[to]&&function e(t){if(t[to]=!1,t.proxyOf.nodes)for(var n,r=$(t.proxyOf.nodes);!(n=r()).done;)e(n.value)}(e),void 0===e.raws.before&&n&&void 0!==n.raws.before&&(e.raws.before=n.raws.before.replace(/\S/g,"")),e.parent=r.proxyOf,e})},n.prepend=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reverse();for(var r,i=$(t);!(r=i()).done;){for(var a,o=r.value,s=this.normalize(o,this.first,"prepend").reverse(),l=$(s);!(a=l()).done;){var c=a.value;this.proxyOf.nodes.unshift(c)}for(var u in this.indexes)this.indexes[u]=this.indexes[u]+s.length}return this.markDirty(),this},n.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},n.removeAll=function(){for(var e,t=$(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},n.removeChild=function(e){var t;for(var n in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this.markDirty(),this},n.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){(!t.props||t.props.includes(r.prop))&&(!t.fast||r.value.includes(t.fast))&&(r.value=r.value.replace(e,n))}),this.markDirty(),this},n.some=function(e){return this.nodes.some(e)},n.walk=function(e){return this.each(function(t,n){var r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r})},n.walkAtRules=function(e,t){return t?R(e,RegExp)?this.walk(function(n,r){if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("atrule"===e.type)return t(e,n)}))},n.walkComments=function(e){return this.walk(function(t,n){if("comment"===t.type)return e(t,n)})},n.walkDecls=function(e,t){return t?R(e,RegExp)?this.walk(function(n,r){if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("decl"===e.type)return t(e,n)}))},n.walkRules=function(e,t){return t?R(e,RegExp)?this.walk(function(n,r){if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("rule"===e.type)return t(e,n)}))}
1,C(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}(eF);tl.registerParse=function(e){i_=e},tl.registerRule=function(e){ix=e},tl.registerAtRule=function(e){iE=e},tl.registerRoot=function(e){iS=e},tl.default=tl,tl.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,iE.prototype):"rule"===e.type?Object.setPrototypeOf(e,ix.prototype):"decl"===e.type?Object.setPrototypeOf(e,eB.prototype):"comment"===e.type?Object.setPrototypeOf(e,ta.prototype):"root"===e.type&&Object.setPrototypeOf(e,iS.prototype),e[ts]=!0,e.nodes&&e.nodes.forEach(function(e){tl.rebuild(e)})};var tc=function(e){function t(t){var n;return(n=e.call(this,I({type:"document"},t))||this).nodes||(n.nodes=[]),n}return T(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new ik(new iC,this,e).stringify()},t}(tl);tc.registerLazyResult=function(e){ik=e},tc.registerProcessor=function(e){iC=e},tc.default=tc;var tu=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var r in t)this[r]=t[r]}return e.prototype.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}();tu.default=tu;var td=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,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 n=new tu(e,t);return this.messages.push(n),n},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},C(e,[{key:"content",get:function(){return this.css}}]),e}();td.default=td;var tp=/[\t\n\f\r "#'()/;[\\\]{}]/g,tf=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,th=/.[\r\n"'(/\\]/,tm=/[\da-f]/i,tg=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="atrule",n}T(t,e);var n=t.prototype;return n.append=function(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],r))},n.prepend=function(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],r))},t}(tl);tg.default=tg,tl.registerAtRule(tg);var ty=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="root",n.nodes||(n.nodes=[]),n}T(t,e);var n=t.prototype;return n.normalize=function(t,n,r){var i=e.prototype.normalize.call(this,t);if(n){if("prepend"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var a,o=$(i);!(a=o()).done;)a.value.raws.before=n.raws.before}return i},n.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},n.toResult=function(e){return void 0===e&&(e={}),new iI(new iA,this,e).stringify()},t}(tl);ty.registerLazyResult=function(e){iI=e},ty.registerProcessor=function(e){iA=e},ty.default=ty,tl.registerRoot(ty);var tv={comma:function(e){return tv.split(e,[","],!0)},space:function(e){return tv.split(e,[" ","\n","	"])},split:function(e,t,n){for(var r,i=[],a="",o=!1,s=0,l=!1,c="",u=!1,d=$(e);!(r=d()).done;){var p=r.value;u?u=!1:"\\"===p?u=!0:l?p===c&&(l=!1):'"'===p||"'"===p?(l=!0,c=p):"("===p?s+=1:")"===p?s>0&&(s-=1):0===s&&t.includes(p)&&(o=!0),o?(""!==a&&i.push(a.trim()),a="",o=!1):a+=p}return(n||""!==a)&&i.push(a.trim()),i}};tv.default=tv;var tb=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="rule",n.nodes||(n.nodes=[]),n}return T(t,e),C(t,[{key:"selectors",get:function(){return tv.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),t}(tl);tb.default=tb,tl.registerRule(tb);var tw=function(e,t){void 0===t&&(t={});var n,r,i,a,o,s,l,c,u,d,p=e.css.valueOf(),f=t.ignoreErrors,h=p.length,m=0,g=[],y=[];function v(t){throw e.error("Unclosed "+t,m)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&m>=h},nextToken:function(e){if(y.length)return y.pop();if(!(m>=h)){var t=!!e&&e.ignoreUnclosed;
1switch(n=p.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:r=m;do r+=1,n=p.charCodeAt(r);while(32===n||10===n||9===n||13===n||12===n);d=["space",p.slice(m,r)],m=r-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var b=String.fromCharCode(n);d=[b,b,m];break;case 40:if(c=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===c&&39!==u&&34!==u&&32!==u&&10!==u&&9!==u&&12!==u&&13!==u){r=m;do{if(s=!1,-1===(r=p.indexOf(")",r+1))){if(f||t){r=m;break}v("bracket")}for(l=r;92===p.charCodeAt(l-1);)l-=1,s=!s}while(s);d=["brackets",p.slice(m,r+1),m,r],m=r}else r=p.indexOf(")",m+1),a=p.slice(m,r+1),-1===r||th.test(a)?d=["(","(",m]:(d=["brackets",a,m,r],m=r);break;case 39:case 34:i=39===n?"'":'"',r=m;do{if(s=!1,-1===(r=p.indexOf(i,r+1))){if(f||t){r=m+1;break}v("string")}for(l=r;92===p.charCodeAt(l-1);)l-=1,s=!s}while(s);d=["string",p.slice(m,r+1),m,r],m=r;break;case 64:tp.lastIndex=m+1,tp.test(p),r=0===tp.lastIndex?p.length-1:tp.lastIndex-2,d=["at-word",p.slice(m,r+1),m,r],m=r;break;case 92:for(r=m,o=!0;92===p.charCodeAt(r+1);)r+=1,o=!o;
1if(n=p.charCodeAt(r+1),o&&47!==n&&32!==n&&10!==n&&9!==n&&13!==n&&12!==n&&(r+=1,tm.test(p.charAt(r)))){for(;tm.test(p.charAt(r+1));)r+=1;32===p.charCodeAt(r+1)&&(r+=1)}d=["word",p.slice(m,r+1),m,r],m=r;break;default:47===n&&42===p.charCodeAt(m+1)?(0===(r=p.indexOf("*/",m+2)+1)&&(f||t?r=p.length:v("comment")),d=["comment",p.slice(m,r+1),m,r]):(tf.lastIndex=m+1,tf.test(p),r=0===tf.lastIndex?p.length-1:tf.lastIndex-2,d=["word",p.slice(m,r+1),m,r],g.push(d)),m=r}return m++,d}},position:function(){return m}}},t_={empty:!0,space:!0},tx=function(){function e(e){this.input=e,this.root=new ty,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,n,r,i=new tg;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var a=!1,o=!1,s=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(s.length>0){for(r=s.length-1,n=s[r];n&&"space"===n[0];)n=s[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}s.push(e)}else s.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(i.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(i,"params",s),a&&(e=s[s.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,n=this.colon(e);if(!1!==n){for(var r=0,i=n-1;i>=0&&("space"===(t=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,n,r,i=0,a=$(e.entries());!(r=a()).done;){var o=r.value,s=o[0],l=o[1];if("("===(t=l[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t){if(n){if("word"===n[0]&&"progid"===n[1])continue;return s}this.doubleColon(l)}n=l}return!1},t.comment=function(e){var t=new ta;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var r=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.createTokenizer=function(){this.tokenizer=tw(this.input)},t.decl=function(e,t){var n,r,i=new eB;this.init(i,e[0][2]);var a=e[e.length-1];for(";"===a[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(a[3]||a[2]||function(e){for(var t=e.length-1;t>=0;t--){var n=e[t],r=n[3]||n[2];if(r)return r}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(n=e.shift())[0]){i.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),i.raws.between+=n[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var s=[];e.length&&("space"===(r=e[0][0])||"comment"===r);)s.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(n=e[l])[1].toLowerCase()){i.important=!0;var c=this.stringFrom(e,l);" !important"!==(c=this.spacesFromEnd(e)+c)&&(i.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),d="",p=l;p>0;p--){var f=u[p][0];if(0===d.trim().indexOf("!")&&"space"!==f)break;d=u.pop()[1]+d}0===d.trim().indexOf("!")&&(i.important=!0,i.raws.important=d,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(i,"value",s.concat(e),t),i.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 tb;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){for(var t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith("--"),s=[],l=e;l;){if(n=l[0],s.push(l),"("===n||"["===n)i||(i=l),a.push("("===n?")":"]");else if(o&&r&&"{"===n)i||(i=l),a.push("}");else if(0===a.length){if(";"===n){if(r){this.decl(s,o);return}break}if("{"===n){this.rule(s);return}if("}"===n){this.tokenizer.back(s.pop()),t=!0;break}":"===n&&(r=!0)}else n===a[a.length-1]&&(a.pop(),0===a.length&&(i=null));l=this.tokenizer.nextToken()}
1if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&("space"===(l=s[s.length-1][0])||"comment"===l);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)},t.parse=function(){for(var e;!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)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,n,r){for(var i,a,o,s,l=n.length,c="",u=!0,d=0;d<l;d+=1)"space"!==(a=(i=n[d])[0])||d!==l-1||r?"comment"===a?(s=n[d-1]?n[d-1][0]:"empty",o=n[d+1]?n[d+1][0]:"empty",t_[s]||t_[o]?u=!1:","===c.slice(-1)?u=!1:c+=i[1]):c+=i[1]:u=!1;if(!u){var p=n.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new tb;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},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}();function tE(e,t){var n=new tx(new e5(e,t));try{n.parse()}catch(e){throw e}return n.root}tE.default=tE,tl.registerParse(tE);var tS=eP.isClean,tk=eP.my,tC={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},tI={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},tA={Once:!0,postcssPlugin:!0,prepare:!0};function tT(e){return(void 0===e?"undefined":P(e))==="object"&&"function"==typeof e.then}function tR(e){var t=!1,n=tC[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function tN(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:tR(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function tO(e){return e[tS]=!1,e.nodes&&e.nodes.forEach(function(e){return tO(e)}),e}var tP={},tD=function(){function e(t,n,r){var i,a=this;if(this.stringified=!1,this.processed=!1,(void 0===n?"undefined":P(n))==="object"&&null!==n&&("root"===n.type||"document"===n.type))i=tO(n);else if(R(n,e)||R(n,td))i=tO(n.root),n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var o=tE;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{i=o(n,r)}catch(e){this.processed=!0,this.error=e}i&&!i[tk]&&tl.rebuild(i)}this.result=new td(t,i,r),this.helpers=I({},tP,{postcss:tP,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":P(e))==="object"&&e.prepare?I({},e,e.prepare(a.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 n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,n=function(t,n,r){e.listeners[n]||(e.listeners[n]=[]),e.listeners[n].push([t,r])},r=$(this.plugins);!(t=r()).done;){var i=t.value;if((void 0===i?"undefined":P(i))==="object")for(var a in i){if(!tI[a]&&/^[A-Z]/.test(a))throw Error("Unknown event "+a+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.ver
1sion+" now).");if(!tA[a]){if("object"===P(i[a]))for(var o in i[a])n(i,"*"===o?a:a+"-"+o.toLowerCase(),i[a][o]);else"function"==typeof i[a]&&n(i,a,i[a])}}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return S(function(){var t,n,r,i,a,o,s,l,c,u,d,p;return j(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(n=e.plugins[t],!tT(r=e.runOnRoot(n)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,r];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];a=e.result.root,f.label=7;case 7:if(a[tS])return[3,14];a[tS]=!0,o=[tN(a)],f.label=8;case 8:if(!(o.length>0))return[3,13];if(!tT(s=e.visitTick(o)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,s];case 10:return f.sent(),[3,12];case 11:throw l=f.sent(),c=o[o.length-1].node,e.handleError(l,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,n,r,i;return j(this,function(o){switch(o.label){case 0:n=(t=p.value)[0],r=t[1],e.result.lastPlugin=n,o.label=1;case 1:if(o.trys.push([1,6,,7]),"document"!==a.type)return[3,3];return[4,Promise.all(a.nodes.map(function(t){return r(t,e.helpers)}))];case 2:return o.sent(),[3,5];case 3:return[4,r(a,e.helpers)];case 4:o.sent(),o.label=5;case 5:return[3,7];case 6:throw i=o.sent(),e.handleError(i);case 7:return[2]}})},d=$(e.listeners.OnceExit),f.label=15;case 15:if((p=d()).done)return[3,18];return[5,L(u())];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":P(e))==="object"&&e.Once){if("document"===this.result.root.type){var n=this.result.root.nodes.map(function(n){return e.Once(n,t.helpers)});if(tT(n[0]))return Promise.all(n);return n}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=e$;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new ti(t,this.result.root,this.result.opts).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,t=$(this.plugins);!(e=t()).done;){var n=e.value;if(tT(this.runOnRoot(n)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[tS];)r[tS]=!0,this.walkSync(r);if(this.listeners.OnceExit){if("document"===r.type)for(var i,a=$(r.nodes);!(i=a()).done;){var o=i.value;this.visitSync(this.listeners.OnceExit,o)}else this.visitSync(this.listeners.OnceExit,r)}}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 n,r=$(e);!(n=r()).done;){var i=n.value,a=i[0],o=i[1];this.result.lastPlugin=a;var s=void 0;try{s=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(tT(s))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if("root"!==n.type&&"document"!==n.type&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){var i=r[t.visitorIndex],a=i[0],o=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=a;try{return o(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){for(var s,l=t.iterator;s=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!s[tS]){s[tS]=!0,e.push(tN(s));return}t.iterator=0,delete n.indexes[l]}for(var c=t.events;t.eventIndex<c.length;){var u=c[t.eventIndex];if(t.eventIndex+=1,0===u){n.nodes&&n.nodes.length&&(n[tS]=!0,t.iterator=n.getIterator());return}if(this.listeners[u]){t.visitors=this.listeners[u];return}}e.pop()},t.walkSync=function(e){var t=this;e[tS]=!0;for(var n,r=tR(e),i=$(r);!(n=i()).done;){var a=n.value;if(0===a)e.nodes&&e.each(function(e){e[tS]||t.walkSync(e)});else{var o=this.listeners[a];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()}
1,C(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}();tD.registerPostcss=function(e){tP=e},tD.default=tD,ty.registerLazyResult(tD),tc.registerLazyResult(tD);var tM=function(){function e(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0,this.result=new td(this._processor,r,this._opts),this.result.css=t;var r,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var a=new ti(e$,r,this._opts,t);if(a.isMap()){var o=a.generate(),s=o[0],l=o[1];s&&(this.result.css=s),l&&(this.result.map=l)}else a.clearAnnotation(),this.result.css=a.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[]},C(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(){var e;if(this._root)return this._root;try{e=tE(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}();tM.default=tM;var t$=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,n=[],r=$(e);!(t=r()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":P(i))==="object"&&Array.isArray(i.plugins))n=n.concat(i.plugins);else if((void 0===i?"undefined":P(i))==="object"&&i.postcssPlugin)n.push(i);else if("function"==typeof i)n.push(i);else if((void 0===i?"undefined":P(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return n},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new tD(this,e,t):new tM(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function tj(e,t){if(Array.isArray(e))return e.map(function(e){return tj(e)});var n=e.inputs,r=N(e,["inputs"]);if(n){t=[];for(var i,a=$(n);!(i=a()).done;){var o=i.value,s=I({},o,{__proto__:e5.prototype});s.map&&(s.map=I({},s.map,{__proto__:eG.prototype})),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map(function(e){return tj(e,t)})),r.source){var l=r.source,c=l.inputId,u=N(l,["inputId"]);r.source=u,null!=c&&(r.source.input=t[c])}if("root"===r.type)return new ty(r);if("decl"===r.type)return new eB(r);if("rule"===r.type)return new tb(r);if("comment"===r.type)return new ta(r);if("atrule"===r.type)return new tg(r);throw Error("Unknown node type: "+e.type)}function tL(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new t$(t)}t$.default=t$,ty.registerProcessor(t$),tc.registerProcessor(t$),tj.default=tj,tL.plugin=function(e,t){var n,r=!1;function i(){for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),w.env.LANG&&w.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
1var o=t.apply(void 0,[].concat(i));return o.postcssPlugin=e,o.postcssVersion=new t$().version,o}return Object.defineProperty(i,"postcss",{get:function(){return n||(n=i()),n}}),i.process=function(e,t,n){return tL([i(n)]).process(e,t)},i},tL.stringify=e$,tL.parse=tE,tL.fromJSON=tj,tL.list=tv,tL.comment=function(e){return new ta(e)},tL.atRule=function(e){return new tg(e)},tL.decl=function(e){return new eB(e)},tL.rule=function(e){return new tb(e)},tL.root=function(e){return new ty(e)},tL.document=function(e){return new tc(e)},tL.CssSyntaxError=eO,tL.Declaration=eB,tL.Container=tl,tL.Processor=t$,tL.Document=tc,tL.Comment=ta,tL.Warning=tu,tL.AtRule=tg,tL.Result=td,tL.Input=e5,tL.Rule=tb,tL.Root=ty,tL.Node=eF,tD.registerPostcss(tL),tL.default=tL;var tF=tL&&tL.__esModule&&Object.prototype.hasOwnProperty.call(tL,"default")?tL.default:tL;tF.stringify,tF.fromJSON,tF.plugin,tF.parse,tF.list,tF.document,tF.comment,tF.atRule,tF.rule,tF.decl,tF.root,tF.CssSyntaxError,tF.Declaration,tF.Container,tF.Processor,tF.Document,tF.Comment,tF.Warning,tF.AtRule,tF.Result,tF.Input,tF.Rule,tF.Root,tF.Node;var tB=Object.defineProperty,tU=function(e,t,n){var r;return(r=(void 0===t?"undefined":P(t))!=="symbol"?t+"":t)in e?tB(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n},tz={exports:{}},tZ=String,tV=function(){return{isColorSupported:!1,reset:tZ,bold:tZ,dim:tZ,italic:tZ,underline:tZ,inverse:tZ,hidden:tZ,strikethrough:tZ,black:tZ,red:tZ,green:tZ,yellow:tZ,blue:tZ,magenta:tZ,cyan:tZ,white:tZ,gray:tZ,bgBlack:tZ,bgRed:tZ,bgGreen:tZ,bgYellow:tZ,bgBlue:tZ,bgMagenta:tZ,bgCyan:tZ,bgWhite:tZ}};tz.exports=tV(),tz.exports.createColors=tV;var tq=tz.exports,tW=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return R(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),tG=function(e){function t(n,r,i,a,o,s){var l;return(l=e.call(this,n)||this).name="CssSyntaxError",l.reason=n,o&&(l.file=o),a&&(l.source=a),s&&(l.plugin=s),void 0!==r&&void 0!==i&&("number"==typeof r?(l.line=r,l.column=i):(l.line=r.line,l.column=r.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}T(t,e);var n=t.prototype;return n.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},n.showSourceCode=function(e){var t,n,r=this;if(!this.source)return"";var i=this.source;null==e&&(e=tq.isColorSupported),tW&&e&&(i=tW(i));var a=i.split(/\r?\n/),o=Math.max(this.line-3,0),s=Math.min(this.line+2,a.length),l=String(s).length;if(e){var c=tq.createColors(!0),u=c.bold,d=c.gray,p=c.red;t=function(e){return u(p(e))},n=function(e){return d(e)}}else t=n=function(e){return e};return a.slice(o,s).map(function(e,i){var a=o+1+i,s=" "+(" "+a).slice(-l)+" | ";if(a===r.line){var c=n(s.replace(/\d/g," "))+e.slice(0,r.column-1).replace(/[^\t]/g," ");return t(">")+n(s)+e+"\n "+c+t("^")}return" "+n(s)+e}).join("\n")},n.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(D(Error));tG.default=tG;var tH={};tH.isClean=Symbol("isClean"),tH.my=Symbol("my");var tY={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},tK=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{var i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}},t.beforeAfter=function(e,t){n="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");for(var n,r=e.parent,i=0;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){var a=this.raw(e,null,"indent");if(a.length)for(var o=0;o<i;o++)n+=a}return n},t.block=function(e,t){var n,r=this.raw(e,"between","beforeOpen");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){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var i=e.nodes[r],a=this.raw(i,"before");a&&this.builder(a),this.stringify(i,t!==r||n)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},t.decl=function(e,t){var n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,n){if(n||(n=t),t&&void 0!==(i=e.raws[t]))return i;var r,i,a=e.parent;if("before"===n&&(!a||"root"===a.type&&a.first===e||a&&"document"===a.type))return"";if(!a)return tY[n];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[n])return o.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);var s="raw"+((r=n)[0].toUpperCase()+r.slice(1));return this[s]?i=this[s](o,e):o.walk(function(e){if(void 0!==(i=e.raws[t]))return!1}),void 0===i&&(i=tY[n]),o.rawCache[n]=i,i},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 n;return e.walkComments(function(e){if(void 0!==e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},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(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return(t=n.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){var t;return e.raws.indent?e.raws.indent:(e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var i=n.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 n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},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}();function tJ(e,t){new tK(t).stringify(e)}tK.default=tK,tJ.default=tJ;var tX=tH.isClean,tQ=tH.my,t0=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[tX]=!1,this[tQ]=!0,e)if("nodes"===t){this.nodes=[];for(var n,r=$(e[t]);!(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=function e(t,n){var r=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var a=t[i],o=void 0===a?"undefined":P(a);"parent"===i&&"object"===o?n&&(r[i]=n):"source"===i?r[i]=a:Array.isArray(a)?r[i]=a.map(function(t){return e(t,r)}):("object"===o&&null!==a&&(a=e(a)),r[i]=a)}return r}(this);for(var n in e)t[n]=e[n];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 n=this.rangeBy(t),r=n.end,i=n.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new tG(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,n){return e[t]===n||(e[t]=n,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[tX]){this[tX]=!1;for(var e=this;e=e.parent;)e[tX]=!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 n=this.source.start;if(e.index)n=this.positionInside(e.index,t);
1else if(e.word){var r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n},t.positionInside=function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,a=0;a<e;a++)"\n"===n[a]?(r=1,i+=1):r+=1;return{column:r,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},n=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 r=this.toString(),i=r.indexOf(e.word);-1!==i&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},t.raw=function(e,t){return new tK().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),n=0;n<e;n++)t[n]=arguments[n];if(this.parent){for(var r,i=this,a=!1,o=$(t);!(r=o()).done;){var s=r.value;s===this?a=!0:a?(this.parent.insertAfter(i,s),i=s):this.parent.insertBefore(i,s)}a||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var n={},r=null==t;t=t||new Map;var i=0;for(var a in this)if(Object.prototype.hasOwnProperty.call(this,a)&&"parent"!==a&&"proxyCache"!==a){var o=this[a];if(Array.isArray(o))n[a]=o.map(function(e){return(void 0===e?"undefined":P(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===o?"undefined":P(o))==="object"&&o.toJSON)n[a]=o.toJSON(null,t);else if("source"===a){var s=t.get(o.input);null==s&&(s=i,t.set(o.input,i),i++),n[a]={end:o.end,inputId:s,start:o.start}}else n[a]=o}return r&&(n.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),n},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=tJ),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,n){var r={node:this};for(var i in n)r[i]=n[i];return e.warn(t,r)},C(e,[{key:"proxyOf",get:function(){return this}}]),e}();t0.default=t0;var t1=function(e){function t(t){var n;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=I({},t,{value:String(t.value)})),(n=e.call(this,t)||this).type="decl",n}return T(t,e),C(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(t0);t1.default=t1;var t2=tW.SourceMapConsumer,t3=tW.SourceMapGenerator,t5=tW.existsSync,t4=tW.readFileSync,t9=tW.dirname,t6=tW.join,t7=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=t9(this.mapFile)),r&&(this.text=r)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new t2(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),b?b.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":P(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);
1if(t){var n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}},t.loadFile=function(e){if(this.root=t9(e),t5(e))return this.mapFile=e,t4(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){var n=t(e);if(n){var r=this.loadFile(n);if(!r)throw Error("Unable to load previous source map: "+n.toString());return r}}else if(R(t,t2))return t3.fromSourceMap(t).toString();else if(R(t,t3))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=t6(t9(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}();t7.default=t7;var t8=tW.SourceMapConsumer,ne=tW.SourceMapGenerator,nt=tW.fileURLToPath,nn=tW.pathToFileURL,nr=tW.isAbsolute,ni=tW.resolve,na=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
1,no=Symbol("fromOffsetCache"),ns=!!(t8&&ne),nl=!!(ni&&nr),nc=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":P(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&&(!nl||/^\w+:\/\//.test(t.from)||nr(t.from)?this.file=t.from:this.file=ni(t.from)),nl&&ns){var n=new t7(this.css,t);if(n.text){this.map=n;var r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+na(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,n,r){if(void 0===r&&(r={}),t&&(void 0===t?"undefined":P(t))==="object"){var i,a,o,s=t,l=n;if("number"==typeof s.offset){var c=this.fromOffset(s.offset);t=c.line,n=c.col}else t=s.line,n=s.column;if("number"==typeof l.offset){var u=this.fromOffset(l.offset);a=u.line,o=u.col}else a=l.line,o=l.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var p=this.origin(t,n,a,o);return(i=p?new tG(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,r.plugin):new tG(e,void 0===a?t:{column:n,line:t},void 0===a?n:{column:o,line:a},this.css,this.file,r.plugin)).input={column:n,endColumn:o,endLine:a,line:t,source:this.css},this.file&&(nn&&(i.input.url=nn(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[no])s=this[no];else{var t=this.css.split("\n");s=Array(t.length);for(var n=0,r=0,i=t.length;r<i;r++)s[r]=n,n+=t[r].length+1;this[no]=s}o=s[s.length-1];var a=0;if(e>=o)a=s.length-1;else for(var o,s,l,c=s.length-2;a<c;)if(e<s[l=a+(c-a>>1)])c=l-1;else if(e>=s[l+1])a=l+1;else{a=l;break}return{col:e-s[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ni(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,n,r){if(!this.map)return!1;var i,a,o=this.map.consumer(),s=o.originalPositionFor({column:t,line:e});if(!s.source)return!1;"number"==typeof n&&(i=o.originalPositionFor({column:r,line:n})),a=nr(s.source)?nn(s.source):new URL(s.source,this.map.consumer().sourceRoot||nn(this.map.mapFile));var l={column:s.column,endColumn:i&&i.column,endLine:i&&i.line,line:s.line,url:a.toString()};if("file:"===a.protocol){if(nt)l.file=nt(a);else throw Error("file: protocol is not available in this PostCSS build")}var c=o.sourceContentFor(s.source);return c&&(l.source=c),l},t.toJSON=function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var r=n[t];null!=this[r]&&(e[r]=this[r])}return this.map&&(e.map=I({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},C(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();nc.default=nc,tW&&tW.registerInput&&tW.registerInput(nc);var nu=tW.SourceMapConsumer,nd=tW.SourceMapGenerator,np=tW.dirname,nf=tW.relative,nh=tW.resolve,nm=tW.sep,ng=tW.pathToFileURL,ny=!!(nu&&nd),nv=!!(np&&nh&&nf&&nm),nb=function(){function e(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,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(){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 e,t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=$(this.previous());!(e=t()).done;){var n=e.value,r=this.toUrl(this.path(n.file)),i=n.root||np(n.file),a=void 0;!1===this.mapOpts.sourcesContent?(a=new nu(n.text)).sourcesContent&&(a.sourcesContent=null):a=n.consumer(),this.map.applySourceMap(a,r,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(),nv&&ny&&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=nd.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new nd({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,t,n=this;this.css="",this.map=new nd({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,i=1,a="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(s,l,c){if(n.css+=s,l&&"end"!==c&&(o.generated.line=r,o.generated.column=i-1,l.source&&l.source.start?(o.source=n.sourcePath(l),o.original.line=l.source.start.line,o.original.column=l.source.start.column-1):(o.source=a,o.original.line=1,o.original.column=0),n.map.addMapping(o)),(e=s.match(/\n/g))?(r+=e.length,t=s.lastIndexOf("\n"),i=s.length-t):i+=s.length,l&&"start"!==c){var u=l.parent||{raws:{}};(!("decl"===l.type||"atrule"===l.type&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(o.source=n.sourcePath(l),o.original.line=l.source.end.line,o.original.column=l.source.end.column-1,o.generated.line=r,o.generated.column=i-2):(o.source=a,o.original.line=1,o.original.column=0,o.generated.line=r,o.generated.column=i-1),n.map.addMapping(o))}})},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 n=this.opts.to?np(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=np(nh(n,this.mapOpts.annotation)));var r=nf(n,e);return this.memoizedPaths.set(e,r),r},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 n=t.source.input.map;e.previousMaps.includes(n)||e.previousMaps.push(n)}});else{var t=new nc(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(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var i=e.usesFileUrls?e.toFileUrl(r):e.toUrl(e.path(r));e.map.setSourceContent(i,n.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,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 b?b.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(ng){var n=ng(e).toString();return this.memoizedFileURLs.set(e,n),n}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;"\\"===nm&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},e}(),nw=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="comment",n}return T(t,e),t}
1(t0);nw.default=nw;var n_=tH.isClean,nx=tH.my,nE=function(e){function t(){return e.apply(this,arguments)||this}T(t,e);var n=t.prototype;return n.append=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r,i=$(t);!(r=i()).done;)for(var a,o=r.value,s=this.normalize(o,this.last),l=$(s);!(a=l()).done;){var c=a.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},n.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var n,r=$(this.nodes);!(n=r()).done;)n.value.cleanRaws(t)},n.each=function(e){if(this.proxyOf.nodes){for(var t,n,r=this.getIterator();this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],!1!==(n=e(this.proxyOf.nodes[t],t)));)this.indexes[r]+=1;return delete this.indexes[r],n}},n.every=function(e){return this.nodes.every(e)},n.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},n.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 n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return e[t].apply(e,[].concat(r.map(function(e){return"function"==typeof e?function(t,n){return e(t.toProxy(),n)}:e})))};if("every"===t||"some"===t)return function(n){return e[t](function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return n.apply(void 0,[].concat([e.toProxy()],r))})};if("root"===t)return function(){return e.root().toProxy()};if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},n.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},n.insertAfter=function(e,t){var n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(var a,o=$(i);!(a=o()).done;){var s=a.value;this.proxyOf.nodes.splice(r+1,0,s)}for(var l in this.indexes)r<(n=this.indexes[l])&&(this.indexes[l]=n+i.length);return this.markDirty(),this},n.insertBefore=function(e,t){var n,r=this.index(e),i=0===r&&"prepend",a=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(var o,s=$(a);!(o=s()).done;){var l=o.value;this.proxyOf.nodes.splice(r,0,l)}for(var c in this.indexes)r<=(n=this.indexes[c])&&(this.indexes[c]=n+a.length);return this.markDirty(),this},n.normalize=function(e,n){var r=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(iT(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,a=$(e);!(i=a()).done;){var o=i.value;o.parent&&o.parent.removeChild(o,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var s,l=$(e);!(s=l()).done;){var c=s.value;c.parent&&c.parent.removeChild(c,"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 t1(e)]}else if(e.selector)e=[new iR(e)];else if(e.name)e=[new iN(e)];else if(e.text)e=[new nw(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[nx]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[n_]&&function e(t){if(t[n_]=!1,t.proxyOf.nodes)for(var n,r=$(t.proxyOf.nodes);!(n=r()).done;)e(n.value)}(e),void 0===e.raws.before&&n&&void 0!==n.raws.before&&(e.raws.before=n.raws.before.replace(/\S/g,"")),e.parent=r.proxyOf,e})},n.prepend=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reverse();for(var r,i=$(t);!(r=i()).done;){for(var a,o=r.value,s=this.normalize(o,this.first,"prepend").reverse(),l=$(s);!(a=l()).done;){var c=a.value;this.proxyOf.nodes.unshift(c)}for(var u in this.indexes)this.indexes[u]=this.indexes[u]+s.length}return this.markDirty(),this},n.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},n.removeAll=function(){for(var e,t=$(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},n.removeChild=function(e){var t;for(var n in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this.markDirty(),this},n.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){(!t.props||t.props.includes(r.prop))&&
1(!t.fast||r.value.includes(t.fast))&&(r.value=r.value.replace(e,n))}),this.markDirty(),this},n.some=function(e){return this.nodes.some(e)},n.walk=function(e){return this.each(function(t,n){var r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r})},n.walkAtRules=function(e,t){return t?R(e,RegExp)?this.walk(function(n,r){if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("atrule"===e.type)return t(e,n)}))},n.walkComments=function(e){return this.walk(function(t,n){if("comment"===t.type)return e(t,n)})},n.walkDecls=function(e,t){return t?R(e,RegExp)?this.walk(function(n,r){if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("decl"===e.type)return t(e,n)}))},n.walkRules=function(e,t){return t?R(e,RegExp)?this.walk(function(n,r){if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("rule"===e.type)return t(e,n)}))},C(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}(t0);nE.registerParse=function(e){iT=e},nE.registerRule=function(e){iR=e},nE.registerAtRule=function(e){iN=e},nE.registerRoot=function(e){iO=e},nE.default=nE,nE.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,iN.prototype):"rule"===e.type?Object.setPrototypeOf(e,iR.prototype):"decl"===e.type?Object.setPrototypeOf(e,t1.prototype):"comment"===e.type?Object.setPrototypeOf(e,nw.prototype):"root"===e.type&&Object.setPrototypeOf(e,iO.prototype),e[nx]=!0,e.nodes&&e.nodes.forEach(function(e){nE.rebuild(e)})};var nS=function(e){function t(t){var n;return(n=e.call(this,I({type:"document"},t))||this).nodes||(n.nodes=[]),n}return T(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new iP(new iD,this,e).stringify()},t}(nE);nS.registerLazyResult=function(e){iP=e},nS.registerProcessor=function(e){iD=e},nS.default=nS;var nk=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var r in t)this[r]=t[r]}return e.prototype.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}();nk.default=nk;var nC=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,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 n=new nk(e,t);return this.messages.push(n),n},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},C(e,[{key:"content",get:function(){return this.css}}]),e}();nC.default=nC;var nI=/[\t\n\f\r "#'()/;[\\\]{}]/g,nA=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,nT=/.[\r\n"'(/\\]/,nR=/[\da-f]/i,nN=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="atrule",n}T(t,e);var n=t.prototype;return n.append=function(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],r))},n.prepend=function(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],r))},t}(nE);nN.default=nN,nE.registerAtRule(nN);var nO=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="root",n.nodes||(n.nodes=[]),n}T(t,e);var n=t.prototype;return n.normalize=function(t,n,r){var i=e.prototype.normalize.call(this,t);if(n){if("prepend"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var a,o=$(i);!(a=o()).done;)a.value.raws.before=n.raws.before}return i},n.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},n.toResult=function(e){return void 0===e&&(e={}),new iM(new i$,this,e).stringify()},t}(nE);nO.registerLazyResult=function(e){iM=e},nO.registerProcessor=function(e){i$=e},nO.default=nO,nE.registerRoot(nO);var nP={comma:function(e){return nP.split(e,[","],!0)},space:function(e){return nP.split(e,[" ","\n","	"])},split:function(e,t,n){for(var r,i=[],a="",o=!1,s=0,l=!1,c="",u=!1,d=$(e);!(r=d()).done;){var p=r.value;u?u=!1:"\\"===p?u=!0:l?p===c&&(l=!1):'"'===p||"'"===p?(l=!0,c=p):"("===p?s+=1:")"===p?s>
10&&(s-=1):0===s&&t.includes(p)&&(o=!0),o?(""!==a&&i.push(a.trim()),a="",o=!1):a+=p}return(n||""!==a)&&i.push(a.trim()),i}};nP.default=nP;var nD=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="rule",n.nodes||(n.nodes=[]),n}return T(t,e),C(t,[{key:"selectors",get:function(){return nP.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),t}(nE);nD.default=nD,nE.registerRule(nD);var nM=function(e,t){void 0===t&&(t={});var n,r,i,a,o,s,l,c,u,d,p=e.css.valueOf(),f=t.ignoreErrors,h=p.length,m=0,g=[],y=[];function v(t){throw e.error("Unclosed "+t,m)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&m>=h},nextToken:function(e){if(y.length)return y.pop();if(!(m>=h)){var t=!!e&&e.ignoreUnclosed;switch(n=p.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:r=m;do r+=1,n=p.charCodeAt(r);while(32===n||10===n||9===n||13===n||12===n);d=["space",p.slice(m,r)],m=r-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var b=String.fromCharCode(n);d=[b,b,m];break;case 40:if(c=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===c&&39!==u&&34!==u&&32!==u&&10!==u&&9!==u&&12!==u&&13!==u){r=m;do{if(s=!1,-1===(r=p.indexOf(")",r+1))){if(f||t){r=m;break}v("bracket")}for(l=r;
192===p.charCodeAt(l-1);)l-=1,s=!s}while(s);d=["brackets",p.slice(m,r+1),m,r],m=r}else r=p.indexOf(")",m+1),a=p.slice(m,r+1),-1===r||nT.test(a)?d=["(","(",m]:(d=["brackets",a,m,r],m=r);break;case 39:case 34:i=39===n?"'":'"',r=m;do{if(s=!1,-1===(r=p.indexOf(i,r+1))){if(f||t){r=m+1;break}v("string")}for(l=r;92===p.charCodeAt(l-1);)l-=1,s=!s}while(s);d=["string",p.slice(m,r+1),m,r],m=r;break;case 64:nI.lastIndex=m+1,nI.test(p),r=0===nI.lastIndex?p.length-1:nI.lastIndex-2,d=["at-word",p.slice(m,r+1),m,r],m=r;break;case 92:for(r=m,o=!0;92===p.charCodeAt(r+1);)r+=1,o=!o;if(n=p.charCodeAt(r+1),o&&47!==n&&32!==n&&10!==n&&9!==n&&13!==n&&12!==n&&(r+=1,nR.test(p.charAt(r)))){for(;nR.test(p.charAt(r+1));)r+=1;32===p.charCodeAt(r+1)&&(r+=1)}d=["word",p.slice(m,r+1),m,r],m=r;break;default:47===n&&42===p.charCodeAt(m+1)?(0===(r=p.indexOf("*/",m+2)+1)&&(f||t?r=p.length:v("comment")),d=["comment",p.slice(m,r+1),m,r]):(nA.lastIndex=m+1,nA.test(p),r=0===nA.lastIndex?p.length-1:nA.lastIndex-2,d=["word",p.slice(m,r+1),m,r],g.push(d)),m=r}return m++,d}},position:function(){return m}}},n$={empty:!0,space:!0},nj=function(){function e(e){this.input=e,this.root=new nO,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,n,r,i=new nN;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var a=!1,o=!1,s=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(s.length>0){for(r=s.length-1,n=s[r];n&&"space"===n[0];)n=s[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}s.push(e)}else s.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(i.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(i,"params",s),a&&(e=s[s.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,n=this.colon(e);if(!1!==n){for(var r=0,i=n-1;i>=0&&("space"===(t=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,n,r,i=0,a=$(e.entries());!(r=a()).done;){var o=r.value,s=o[0],l=o[1];if("("===(t=l[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t){if(n){if("word"===n[0]&&"progid"===n[1])continue;return s}this.doubleColon(l)}n=l}return!1},t.comment=function(e){var t=new nw;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var r=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.createTokenizer=function(){this.tokenizer=nM(this.input)},t.decl=function(e,t){var n,r,i=new t1;this.init(i,e[0][2]);var a=e[e.length-1];for(";"===a[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(a[3]||a[2]||function(e){for(var t=e.length-1;t>=0;t--){var n=e[t],r=n[3]||n[2];if(r)return r}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(n=e.shift())[0]){i.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),i.raws.between+=n[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var s=[];e.length&&("space"===(r=e[0][0])||"comment"===r);)s.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(n=e[l])[1].toLowerCase()){i.important=!0;var c=this.stringFrom(e,l);" !important"!==(c=this.spacesFromEnd(e)+c)&&(i.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),d="",p=l;p>0;p--){var f=u[p][0];if(0===d.trim().indexOf("!")&&"space"!==f)break;d=u.pop()[1]+d}0===d.trim().indexOf("!")&&(i.important=!0,i.raws.important=d,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(i,"value",s.concat(e),t),i.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 nD;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){for(var t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith("--"),s=[],l=e;l;){if(n=l[0],s.push(l),"("===n||"["===n)i||(i=l),a.push("("===n?")":"]");else if(o&&r&&"{"===n)i||(i=l),a.push("}");else if(0===a.length){if(";"===n){if(r){this.decl(s,o);return}break}if("{"===n){this.rule(s);return}if("}"===n){this.tokenizer.back(s.pop()),t=!0;break}":"===n&&(r=!0)}else n===a[a.length-1]&&(a.pop(),0===a.length&&(i=null));l=this.tokenizer.nextToken()}
1if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&("space"===(l=s[s.length-1][0])||"comment"===l);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)},t.parse=function(){for(var e;!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)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,n,r){for(var i,a,o,s,l=n.length,c="",u=!0,d=0;d<l;d+=1)"space"!==(a=(i=n[d])[0])||d!==l-1||r?"comment"===a?(s=n[d-1]?n[d-1][0]:"empty",o=n[d+1]?n[d+1][0]:"empty",n$[s]||n$[o]?u=!1:","===c.slice(-1)?u=!1:c+=i[1]):c+=i[1]:u=!1;if(!u){var p=n.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new nD;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},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}();function nL(e,t){var n=new nj(new nc(e,t));try{n.parse()}catch(e){throw e}return n.root}nL.default=nL,nE.registerParse(nL);var nF=tH.isClean,nB=tH.my,nU={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},nz={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},nZ={Once:!0,postcssPlugin:!0,prepare:!0};function nV(e){return(void 0===e?"undefined":P(e))==="object"&&"function"==typeof e.then}function nq(e){var t=!1,n=nU[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function nW(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:nq(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function nG(e){return e[nF]=!1,e.nodes&&e.nodes.forEach(function(e){return nG(e)}),e}var nH={},nY=function(){function e(t,n,r){var i,a=this;if(this.stringified=!1,this.processed=!1,(void 0===n?"undefined":P(n))==="object"&&null!==n&&("root"===n.type||"document"===n.type))i=nG(n);else if(R(n,e)||R(n,nC))i=nG(n.root),n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var o=nL;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{i=o(n,r)}catch(e){this.processed=!0,this.error=e}i&&!i[nB]&&nE.rebuild(i)}this.result=new nC(t,i,r),this.helpers=I({},nH,{postcss:nH,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":P(e))==="object"&&e.prepare?I({},e,e.prepare(a.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 n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,n=function(t,n,r){e.listeners[n]||(e.listeners[n]=[]),e.listeners[n].push([t,r])},r=$(this.plugins);!(t=r()).done;){var i=t.value;if((void 0===i?"undefined":P(i))==="object")for(var a in i){if(!nz[a]&&/^[A-Z]/.test(a))throw Error("Unknown event "+a+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.ver
1sion+" now).");if(!nZ[a]){if("object"===P(i[a]))for(var o in i[a])n(i,"*"===o?a:a+"-"+o.toLowerCase(),i[a][o]);else"function"==typeof i[a]&&n(i,a,i[a])}}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return S(function(){var t,n,r,i,a,o,s,l,c,u,d,p;return j(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(n=e.plugins[t],!nV(r=e.runOnRoot(n)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,r];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];a=e.result.root,f.label=7;case 7:if(a[nF])return[3,14];a[nF]=!0,o=[nW(a)],f.label=8;case 8:if(!(o.length>0))return[3,13];if(!nV(s=e.visitTick(o)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,s];case 10:return f.sent(),[3,12];case 11:throw l=f.sent(),c=o[o.length-1].node,e.handleError(l,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,n,r,i;return j(this,function(o){switch(o.label){case 0:n=(t=p.value)[0],r=t[1],e.result.lastPlugin=n,o.label=1;case 1:if(o.trys.push([1,6,,7]),"document"!==a.type)return[3,3];return[4,Promise.all(a.nodes.map(function(t){return r(t,e.helpers)}))];case 2:return o.sent(),[3,5];case 3:return[4,r(a,e.helpers)];case 4:o.sent(),o.label=5;case 5:return[3,7];case 6:throw i=o.sent(),e.handleError(i);case 7:return[2]}})},d=$(e.listeners.OnceExit),f.label=15;case 15:if((p=d()).done)return[3,18];return[5,L(u())];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":P(e))==="object"&&e.Once){if("document"===this.result.root.type){var n=this.result.root.nodes.map(function(n){return e.Once(n,t.helpers)});if(nV(n[0]))return Promise.all(n);return n}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=tJ;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new nb(t,this.result.root,this.result.opts).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,t=$(this.plugins);!(e=t()).done;){var n=e.value;if(nV(this.runOnRoot(n)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[nF];)r[nF]=!0,this.walkSync(r);if(this.listeners.OnceExit){if("document"===r.type)for(var i,a=$(r.nodes);!(i=a()).done;){var o=i.value;this.visitSync(this.listeners.OnceExit,o)}else this.visitSync(this.listeners.OnceExit,r)}}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 n,r=$(e);!(n=r()).done;){var i=n.value,a=i[0],o=i[1];this.result.lastPlugin=a;var s=void 0;try{s=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(nV(s))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if("root"!==n.type&&"document"!==n.type&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){var i=r[t.visitorIndex],a=i[0],o=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=a;try{return o(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){for(var s,l=t.iterator;s=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!s[nF]){s[nF]=!0,e.push(nW(s));return}t.iterator=0,delete n.indexes[l]}for(var c=t.events;t.eventIndex<c.length;){var u=c[t.eventIndex];if(t.eventIndex+=1,0===u){n.nodes&&n.nodes.length&&(n[nF]=!0,t.iterator=n.getIterator());return}if(this.listeners[u]){t.visitors=this.listeners[u];return}}e.pop()},t.walkSync=function(e){var t=this;e[nF]=!0;for(var n,r=nq(e),i=$(r);!(n=i()).done;){var a=n.value;if(0===a)e.nodes&&e.each(function(e){e[nF]||t.walkSync(e)});else{var o=this.listeners[a];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()}
1,C(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}();nY.registerPostcss=function(e){nH=e},nY.default=nY,nO.registerLazyResult(nY),nS.registerLazyResult(nY);var nK=function(){function e(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0,this.result=new nC(this._processor,r,this._opts),this.result.css=t;var r,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var a=new nb(tJ,r,this._opts,t);if(a.isMap()){var o=a.generate(),s=o[0],l=o[1];s&&(this.result.css=s),l&&(this.result.map=l)}else a.clearAnnotation(),this.result.css=a.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[]},C(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(){var e;if(this._root)return this._root;try{e=nL(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}();nK.default=nK;var nJ=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,n=[],r=$(e);!(t=r()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":P(i))==="object"&&Array.isArray(i.plugins))n=n.concat(i.plugins);else if((void 0===i?"undefined":P(i))==="object"&&i.postcssPlugin)n.push(i);else if("function"==typeof i)n.push(i);else if((void 0===i?"undefined":P(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return n},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new nY(this,e,t):new nK(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function nX(e,t){if(Array.isArray(e))return e.map(function(e){return nX(e)});var n=e.inputs,r=N(e,["inputs"]);if(n){t=[];for(var i,a=$(n);!(i=a()).done;){var o=i.value,s=I({},o,{__proto__:nc.prototype});s.map&&(s.map=I({},s.map,{__proto__:t7.prototype})),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map(function(e){return nX(e,t)})),r.source){var l=r.source,c=l.inputId,u=N(l,["inputId"]);r.source=u,null!=c&&(r.source.input=t[c])}if("root"===r.type)return new nO(r);if("decl"===r.type)return new t1(r);if("rule"===r.type)return new nD(r);if("comment"===r.type)return new nw(r);if("atrule"===r.type)return new nN(r);throw Error("Unknown node type: "+e.type)}function nQ(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new nJ(t)}nJ.default=nJ,nO.registerProcessor(nJ),nS.registerProcessor(nJ),nX.default=nX,nQ.plugin=function(e,t){var n,r=!1;function i(){for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),w.env.LANG&&w.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
1var o=t.apply(void 0,[].concat(i));return o.postcssPlugin=e,o.postcssVersion=new nJ().version,o}return Object.defineProperty(i,"postcss",{get:function(){return n||(n=i()),n}}),i.process=function(e,t,n){return nQ([i(n)]).process(e,t)},i},nQ.stringify=tJ,nQ.parse=nL,nQ.fromJSON=nX,nQ.list=nP,nQ.comment=function(e){return new nw(e)},nQ.atRule=function(e){return new nN(e)},nQ.decl=function(e){return new t1(e)},nQ.rule=function(e){return new nD(e)},nQ.root=function(e){return new nO(e)},nQ.document=function(e){return new nS(e)},nQ.CssSyntaxError=tG,nQ.Declaration=t1,nQ.Container=nE,nQ.Processor=nJ,nQ.Document=nS,nQ.Comment=nw,nQ.Warning=nk,nQ.AtRule=nN,nQ.Result=nC,nQ.Input=nc,nQ.Rule=nD,nQ.Root=nO,nQ.Node=t0,nY.registerPostcss(nQ),nQ.default=nQ;var n0=nQ&&nQ.__esModule&&Object.prototype.hasOwnProperty.call(nQ,"default")?nQ.default:nQ;n0.stringify,n0.fromJSON,n0.plugin,n0.parse,n0.list,n0.document,n0.comment,n0.atRule,n0.rule,n0.decl,n0.root,n0.CssSyntaxError,n0.Declaration,n0.Container,n0.Processor,n0.Document,n0.Comment,n0.Warning,n0.AtRule,n0.Result,n0.Input,n0.Rule,n0.Root,n0.Node;var n1=function(){function e(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];tU(this,"parentElement",null),tU(this,"parentNode",null),tU(this,"ownerDocument"),tU(this,"firstChild",null),tU(this,"lastChild",null),tU(this,"previousSibling",null),tU(this,"nextSibling",null),tU(this,"ELEMENT_NODE",1),tU(this,"TEXT_NODE",3),tU(this,"nodeType"),tU(this,"nodeName"),tU(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!R(t,e)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;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"},C(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),n2={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},n3={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},n5={};function n4(e){if(n5[e])return n5[e];var t=globalThis[e],n=t.prototype,r=e in n2?n2[e]:void 0,i=!!(r&&r.every(function(e){var t,r;return!!(null==(r=null==(t=Object.getOwnPropertyDescriptor(n,e))?void 0:t.get)?void 0:r.toString().includes("[native code]"))})),a=e in n3?n3[e]:void 0,o=!!(a&&a.every(function(e){var t;return"function"==typeof n[e]&&(null==(t=n[e])?void 0:t.toString().includes("[native code]"))}));if(i&&o&&!globalThis.Zone)return n5[e]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var l=s.contentWindow;if(!l)return t.prototype;var c=l[e].prototype;if(document.body.removeChild(s),!c)return n;return n5[e]=c}catch(e){return n}}var n9={};function n6(e,t,n){var r,i=e+"."+String(n);if(n9[i])return n9[i].call(t);var a=null==(r=Object.getOwnPropertyDescriptor(n4(e),n))?void 0:r.get;return a?(n9[i]=a,a.call(t)):t[n]}var n7={};function n8(e,t,n){var r=e+"."+String(n);if(n7[r])return n7[r].bind(t);var i=n4(e)[n];return"function"!=typeof i?t[n]:(n7[r]=i,i.bind(t))}var re={childNodes:function(e){return n6("Node",e,"childNodes")},parentNode:function(e){return n6("Node",e,"parentNode")},parentElement:function(e){return n6("Node",e,"parentElement")},textContent:function(e){return n6("Node",e,"textContent")},contains:function(e,t){return n8("Node",e,"contains")(t)},getRootNode:function(e){return n8("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?n6("ShadowRoot",e,"host"):null},shadowRoot:function(e){return e&&"shadowRoot"in e?n6("Element",e,"shadowRoot"):null}};function rt(e,t,n){void 0===n&&(n=document);var r={capture:!0,passive:!0};return n.addEventListener(e,t,r),function(){return n.removeEventListener(e,t,r)}}var rn="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.",rr={map:{},getId:function(){return console.error(rn),-1},getNode:function(){return console.error(rn),null},removeNodeFromMap:function(){console.error(rn)},has:function(){return console.error(rn),!1},reset:function(){console.error(rn)}};function ri(e,t,n){void 0===n&&(n={});var r=null,i=0;return function(){for(var a=arguments.length,o=Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=Date.now();i||!1!==n.leading||(i=l);var c=t-(l-i),u=this;c<=0||c>t?(r&&(clearTimeout(r),r=null),i=l,e.apply(u,o)):r||!1===n.trailing||(r=setTimeout(function(){i=!1===n.leading?0:Date.now(),r=null,e.apply(u,o)},c))}}function ra(e,t,n,r,i){void 0===i&&(i=window);var a=i.Object.getOwnPropertyDescriptor(e,t);
1return i.Object.defineProperty(e,t,r?n:{set:function(e){var t=this;setTimeout(function(){n.set.call(t,e)},0),a&&a.set&&a.set.call(this,e)}}),function(){return ra(e,t,a||{},!0)}}function ro(e,t,n){try{if(!(t in e))return function(){};var r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch(e){return function(){}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(rr=new Proxy(rr,{get:function(e,t,n){return"map"===t&&console.error(rn),Reflect.get(e,t,n)}}));var rs=Date.now;function rl(e){var t,n,r,i,a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:a.documentElement.scrollLeft||(null==a?void 0:a.body)&&(null==(t=re.parentElement(a.body))?void 0:t.scrollLeft)||(null==(n=null==a?void 0:a.body)?void 0:n.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==a?void 0:a.body)&&(null==(r=re.parentElement(a.body))?void 0:r.scrollTop)||(null==(i=null==a?void 0:a.body)?void 0:i.scrollTop)||0}}function rc(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ru(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function rd(e){return e?e.nodeType===e.ELEMENT_NODE?e:re.parentElement(e):null}function rp(e,t,n,r){if(!e)return!1;var i=rd(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||r&&null!==i.closest("."+t))return!0}else if(eE(i,t,r))return!0}catch(e){}return!!(n&&(i.matches(n)||r&&null!==i.closest(n)))}function rf(e,t,n){return"TITLE"===e.tagName&&!!n.headTitleMutations||-2===t.getId(e)}function rh(e){return!!e.changedTouches}function rm(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function rg(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function ry(e){return!!e&&(R(e,n1)&&"shadowRoot"in e?!!e.shadowRoot:!!re.shadowRoot(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(rs=function(){return new Date().getTime()});var rv=function(){function e(){B(this,"id",1),B(this,"styleIDMap",new WeakMap),B(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){var n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)},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++},e}();function rb(e){var t,n=null;return"getRootNode"in e&&(null==(t=re.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&re.host(re.getRootNode(e))&&(n=re.host(re.getRootNode(e))),n}function rw(e){var t=e.ownerDocument;return!!t&&(re.contains(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var n=function(e){for(var t,n=e;t=rb(n);)n=t;return n}(e);return re.contains(t,n)}(e))}var r_=((il=r_||{})[il.DomContentLoaded=0]="DomContentLoaded",il[il.Load=1]="Load",il[il.FullSnapshot=2]="FullSnapshot",il[il.IncrementalSnapshot=3]="IncrementalSnapshot",il[il.Meta=4]="Meta",il[il.Custom=5]="Custom",il[il.Plugin=6]="Plugin",il),rx=((ic=rx||{})[ic.Mutation=0]="Mutation",ic[ic.MouseMove=1]="MouseMove",ic[ic.MouseInteraction=2]="MouseInteraction",ic[ic.Scroll=3]="Scroll",ic[ic.ViewportResize=4]="ViewportResize",ic[ic.Input=5]="Input",ic[ic.TouchMove=6]="TouchMove",ic[ic.MediaInteraction=7]="MediaInteraction",ic[ic.StyleSheetRule=8]="StyleSheetRule",ic[ic.CanvasMutation=9]="CanvasMutation",ic[ic.Font=10]="Font",ic[ic.Log=11]="Log",ic[ic.Drag=12]="Drag",ic[ic.StyleDeclaration=13]="StyleDeclaration",ic[ic.Selection=14]="Selection",ic[ic.AdoptedStyleSheet=15]="AdoptedStyleSheet",ic[ic.CustomElement=16]="CustomElement",ic),rE=((iu=rE||{})[iu.MouseUp=0]="MouseUp",iu[iu.MouseDown=1]="MouseDown",iu[iu.Click=2]="Click",iu[iu.ContextMenu=3]="ContextMenu",iu[iu.DblClick=4]="DblClick",iu[iu.Focus=5]="Focus",iu[iu.Blur=6]="Blur",iu[iu.TouchStart=7]="TouchStart",iu[iu.TouchMove_Departed=8]="TouchMove_Departed",iu[iu.TouchEnd=9]="TouchEnd",iu[iu.TouchCancel=10]="TouchCancel",iu),rS=((id=rS||{})[id.Mouse=0]="Mouse",id[id.Pen=1]="Pen",id[id.Touch=2]="Touch",id),rk=((ip=rk||{})[ip["2D"]=0]="2D",ip[ip.WebGL=1]="WebGL",ip[ip.WebGL2=2]="WebGL2",ip),rC=((ih=rC||{})[ih.Play=0]="Play",ih[ih.Pause=1]="Pause",ih[ih.Seeked=2]="Seeked",ih[ih.VolumeChange=3]="VolumeChange",ih[ih.RateChange=4]="RateChange",ih),rI=((im=rI||{})[im.Document=0]="Document",im[im.DocumentType=1]="DocumentType",im[im.Element=2]="Element",im[im.Text=3]="Text",im[im.CDATA=4]="CDATA",im[im.Comment=5]="Comment",im),rA=function(){function e(){B(this,"length",0),B(this,"head",null),B(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,n=0;n<e;n++)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&&"__ln"in e.previousSibling){var n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
1(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){var r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.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}(),rT=function(e,t){return e+"@"+t},rR=function(){function e(){var e=this;B(this,"frozen",!1),B(this,"locked",!1),B(this,"texts",[]),B(this,"attributes",[]),B(this,"attributeMap",new WeakMap),B(this,"removes",[]),B(this,"mapRemoves",[]),B(this,"movedMap",{}),B(this,"addedSet",new Set),B(this,"movedSet",new Set),B(this,"droppedSet",new Set),B(this,"removesSubTreeCache",new Set),B(this,"mutationCb"),B(this,"blockClass"),B(this,"blockSelector"),B(this,"maskTextClass"),B(this,"maskTextSelector"),B(this,"inlineStylesheet"),B(this,"maskInputOptions"),B(this,"maskTextFn"),B(this,"maskInputFn"),B(this,"keepIframeSrcFn"),B(this,"recordCanvas"),B(this,"inlineImages"),B(this,"slimDOMOptions"),B(this,"dataURLOptions"),B(this,"doc"),B(this,"mirror"),B(this,"iframeManager"),B(this,"stylesheetManager"),B(this,"shadowDomManager"),B(this,"canvasManager"),B(this,"processedNodeManager"),B(this,"unattachedDoc"),B(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),B(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],n=new Set,r=new rA,i=function(t){for(var n=t,r=-2;-2===r;)r=(n=n&&n.nextSibling)&&e.mirror.getId(n);return r},a=function(a){var o=re.parentNode(a);if(o&&rw(a)){var s=!1;if(a.nodeType===Node.TEXT_NODE){var l=o.tagName;if("TEXTAREA"===l)return;"STYLE"===l&&e.addedSet.has(o)&&(s=!0)}var c=J(o)?e.mirror.getId(rb(a)):e.mirror.getId(o),u=i(a);if(-1===c||-1===u)return r.addNode(a);var d=eC(a,{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){rm(t,e.mirror)&&e.iframeManager.addIframe(t),rg(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),ry(a)&&e.shadowDomManager.addShadowRoot(re.shadowRoot(a),e.doc)},onIframeLoad:function(t,n){e.iframeManager.attachIframe(t,n),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,n){e.stylesheetManager.attachLinkElement(t,n)},cssCaptured:s});d&&(t.push({parentId:c,nextId:u,node:d}),n.add(d.id))}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());for(var o,s=$(e.movedSet);!(o=s()).done;){var l=o.value;(!rO(e.removesSubTreeCache,l,e.mirror)||e.movedSet.has(re.parentNode(l)))&&a(l)}for(var c,u=$(e.addedSet);!(c=u()).done;){var d=c.value;rP(e.droppedSet,d)||rO(e.removesSubTreeCache,d,e.mirror)?rP(e.movedSet,d)?a(d):e.droppedSet.add(d):a(d)}for(var p=null;r.length;){var f=null;if(p){var h=e.mirror.getId(re.parentNode(p.value)),m=i(p.value);-1!==h&&-1!==m&&(f=p)}if(!f)for(var g=r.tail;g;){var y=g;if(g=g.previous,y){var v=e.mirror.getId(re.parentNode(y.value));if(-1===i(y.value))continue;if(-1!==v){f=y;break}var b=y.value,w=re.parentNode(b);if(w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var _=re.host(w);if(-1!==e.mirror.getId(_)){f=y;break}}}}if(!f){for(;r.head;)r.removeNode(r.head.value);break}p=f.previous,r.removeNode(f.value),a(f.value)}var x={texts:e.texts.map(function(t){var n=t.node,r=re.parentNode(n);return r&&"TEXTAREA"===r.tagName&&e.genTextAreaValueMutation(r),{id:e.mirror.getId(n),value:t.value}}).filter(function(e){return!n.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var n=t.attributes;if("string"==typeof n.style){var r=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);r.length<n.style.length&&(r+i).split("var(").length===n.style.split("var(").length&&(n.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:n}}).filter(function(e){return!n.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(x.texts.length||x.attributes.length||x.removes.length||x.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(x))}}),B(this,"genTextAreaValueMutation",function(t){var n=e.attributeMap.get(t);n||(n={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(n),e.attributeMap.set(t,n)),n.attributes.value=Array.from(re.childNodes(t),function(e){return re.textContent(e)||""}).join("")}),B(this,"processMutation",function(t){if(!rf(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var n=re.textContent(t.target);rp(t.target,e.blockClass,e.blockSelector,!1)||n===t.oldValue||e.texts.push({value:e
1S(t.target,e.maskTextClass,e.maskTextSelector,!0)&&n?e.maskTextFn?e.maskTextFn(n,rd(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break;case"attributes":var r=t.target,i=t.attributeName,a=t.target.getAttribute(i);if("value"===i){var o=ea(r);a=en({element:r,maskInputOptions:e.maskInputOptions,tagName:r.tagName,type:o,value:a,maskInputFn:e.maskInputFn})}if(rp(t.target,e.blockClass,e.blockSelector,!1)||a===t.oldValue)return;var s=e.attributeMap.get(t.target);if("IFRAME"===r.tagName&&"src"===i&&!e.keepIframeSrcFn(a)){if(r.contentDocument)return;i="rr_src"}if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(s),e.attributeMap.set(t.target,s)),"type"===i&&"INPUT"===r.tagName&&"password"===(t.oldValue||"").toLowerCase()&&r.setAttribute("data-rr-is-password","true"),!ex(r.tagName,i)){if(s.attributes[i]=e_(e.doc,er(r.tagName),er(i),a),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var l=e.unattachedDoc.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(var c,u=$(Array.from(r.style));!(c=u()).done;){var d=c.value,p=r.style.getPropertyValue(d),f=r.style.getPropertyPriority(d);p!==l.style.getPropertyValue(d)||f!==l.style.getPropertyPriority(d)?""===f?s.styleDiff[d]=p:s.styleDiff[d]=[p,f]:s._unchangedStyles[d]=[p,f]}for(var h,m=$(Array.from(l.style));!(h=m()).done;){var g=h.value;""===r.style.getPropertyValue(g)&&(s.styleDiff[g]=!1)}}else"open"===i&&"DIALOG"===r.tagName&&(r.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal")}break;case"childList":if(rp(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName){e.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(function(n){return e.genAdds(n,t.target)}),t.removedNodes.forEach(function(n){var r=e.mirror.getId(n),i=J(t.target)?e.mirror.getId(re.host(t.target)):e.mirror.getId(t.target);rp(t.target,e.blockClass,e.blockSelector,!1)||rf(n,e.mirror,e.slimDOMOptions)||-1===e.mirror.getId(n)||(e.addedSet.has(n)?(rN(e.addedSet,n),e.droppedSet.add(n)):e.addedSet.has(t.target)&&-1===r||function e(t,n){if(J(t))return!1;var r=n.getId(t);if(!n.has(r))return!0;var i=re.parentNode(t);return(!i||i.nodeType!==t.DOCUMENT_NODE)&&(!i||e(i,n))}(t.target,e.mirror)||(e.movedSet.has(n)&&e.movedMap[rT(r,i)]?rN(e.movedSet,n):(e.removes.push({parentId:i,id:r,isShadow:!!(J(t.target)&&X(t.target))||void 0}),function(e,t){for(var n=[e];n.length;){var r=n.pop();t.has(r)||(t.add(r),re.childNodes(r).forEach(function(e){return n.push(e)}))}}(n,e.removesSubTreeCache))),e.mapRemoves.push(n))})}}),B(this,"genAdds",function(t,n){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!(e.addedSet.has(t)||e.movedSet.has(t))){if(e.mirror.hasNode(t)){if(rf(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var r=null;n&&e.mirror.hasNode(n)&&(r=e.mirror.getId(n)),r&&-1!==r&&(e.movedMap[rT(e.mirror.getId(t),r)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);!rp(t,e.blockClass,e.blockSelector,!1)&&(re.childNodes(t).forEach(function(t){return e.genAdds(t)}),ry(t)&&re.childNodes(re.shadowRoot(t)).forEach(function(n){e.processedNodeManager.add(n,e),e.genAdds(n,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(n){t[n]=e[n]})},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()},e}();function rN(e,t){e.delete(t),re.childNodes(t).forEach(function(t){return rN(e,t)})}function rO(e,t,n){var r;return 0!==e.size&&!!(r=re.parentNode(t))&&e.has(r)}function rP(e,t){return 0!==e.size&&function e(t,n){var r=re.parentNode(n);return!!r&&(!!t.has(r)||e(t,r))}(e,t)}var rD=function(e){return ij?function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];try{return e.apply(void 0,[].concat(n))}catch(e){if(ij&&!0===ij(e))return;throw e}}:e},rM=[];function r$(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 rj(e,t){var n=new rR;rM.push(n),n.init(e);var r=new(n4("MutationObserver")).constructor(rD(n.processMutations.bind(n)));return r.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function rL(e){var t=e.scrollCb,n=e.doc,r=e.mirror,i=e.blockClass,a=e.blockSelector,o=e.sampling;return rt("scroll",rD(ri(rD(function(e){var o=r$(e);if(!(!o||rp(o,i,a,!0))){var s=r.getId(o);if(o===n&&n.defaultView){var l=rl(n.defaultView);t({id:s,x:l.left,y:l.top})}else t({id:s,x:o.scrollLeft,y:o.scrollTop})}}),o.scroll||100)),n)}var rF=["INPUT","TEXTAREA","SELECT"],rB=new WeakMap;function rU(e){var t;return t=[],rq("CSSGroupingRule")&&R(e.parentRule,CSSGroupingRule)||rq("CSSMediaRule")&&R(e.parentRule,CSSMediaRule)||rq("CSSSupportsRule")&&R(e.parentRule,CSSSupportsRule)||rq("CSSConditionRule")&&R(e.parentRule,CSSConditionRule)?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}function rz(e,t,n){var r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function rZ(e,t){var n,r,i,a=e.mirror,o=e.stylesheetManager,s=null;s="#document"===t.nodeName?a.getId(t):a.getId(re.host(t));var l="#document"===t.nodeName?null==(n=t.defaultView)?void 0:n.Document:null==(i=null==(r=t.ownerDocument)?void 0:r.defaultView)?void 0:i.ShadowRoot,c=(null==l?void 0:l.prototype)?Object.getOwnPropertyDescriptor(null==l?void 0:l.prototype,"adoptedStyleSheets"):void 0;return null!==s&&-1!==s&&l&&c?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var e;return null==(e=c.get)?void 0:e.call(this)},set:function(e){var t,n=null==(t=c.set)?void 0:t.call(this,e);if(null!==s&&-1!==s)try{o.adoptStyleSheets(e,s)}catch(e){}return n}}),rD(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):function(){}}function rV(e,t){void 0===t&&(t={});var n=e.doc.defaultView;if(!n)return function(){};f=t,h=e.mutationCb,m=e.mousemoveCb,g=e.mouseInteractionCb,y=e.scrollCb,v=e.viewportResizeCb,b=e.inputCb,w=e.mediaInteractionCb,_=e.styleSheetRuleCb,x=e.styleDeclarationCb,E=e.canvasMutationCb,S=e.fontCb,k=e.selectionCb,C=e.customElementCb,e.mutationCb=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f.mutation&&f.mutation.apply(f,[].concat(t)),h.apply(void 0,[].concat(t))},e.mousemoveCb=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f.mousemove&&f.mousemove.apply(f,[].concat(t)),m.apply(void 0,[].concat(t))},e.mouseInteractionCb=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f.mouseInteraction&&f.mouseInteraction.apply(f,[].concat(t)),g.apply(void 0,[].concat(t))},e.scrollCb=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f.scroll&&f.scroll.apply(f,[].concat(t)),y.apply(void 0,[].concat(t))},e.viewportResizeCb=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f.viewportResize&&f.viewportResize.apply(f,[].concat(t)),v.apply(void 0,[].concat(t))},e.inputCb=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f.input&&f.input.apply(f,[].concat(t)),b.apply(void 0,[].concat(t))},e.mediaInteractionCb=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f.mediaInteaction&&f.mediaInteaction.apply(f,[].concat(t)),w.apply(void 0,[].concat(t))},e.styleSheetRuleCb=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f.styleSheetRule&&f.styleSheetRule.apply(f,[].concat(t)),_.apply(void 0,[].concat(t))},e.styleDeclarationCb=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f.styleDeclaration&&f.styleDeclaration.apply(f,[].concat(t)),x.apply(void 0,[].concat(t))},e.canvasMutationCb=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f.canvasMutation&&f.canvasMutation.apply(f,[].concat(t)),E.apply(void 0,[].concat(t))},e.fontCb=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f.font&&f.font.apply(f,[].concat(t)),S.apply(void 0,[].concat(t))},e.selectionCb=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f.selection&&f.selection.apply(f,[].concat(t)),k.apply(void 0,[].concat(t))},e.customElementCb=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f.customElement&&f.customElement.apply(f,[].concat(t)),C.apply(void 0,[].concat(t))},e.recordDOM&&(eu=rj(e,e.doc));var r=function(e){var t,n=e.mousemoveCb,r=e.sampling,i=e.doc,a=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,l=[],c=ri(rD(function(e){var r=Date.now()-t;n(l.map(function(e){return e.timeOffset-=r,e}),e),l=[],t=null}),s),u=rD(ri(rD(function(e){var n=r$(e),r=rh(e)?e.changedTouches[0]:e,i=r.clientX,o=r.clientY;t||(t=rs()),l.push({x:i,y:o,id:a.getId(n),timeOffset:rs()-t}),c("undefined"!=typeof DragEvent&&R(e,DragEvent)?rx.Drag:R(e,MouseEvent)?rx.MouseMove:rx.TouchMove)}),o,{trailing:!1}
1)),d=[rt("mousemove",u,i),rt("touchmove",u,i),rt("drag",u,i)];return rD(function(){d.forEach(function(e){return e()})})}(e),i=function(e){var t=e.mouseInteractionCb,n=e.doc,r=e.mirror,i=e.blockClass,a=e.blockSelector,o=e.sampling;if(!1===o.mouseInteraction)return function(){};var s=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,l=[],c=null;return Object.keys(rE).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]}).forEach(function(e){var o=er(e);if(window.PointerEvent)switch(rE[e]){case rE.MouseDown:case rE.MouseUp:o=o.replace("mouse","pointer");break;case rE.TouchStart:case rE.TouchEnd:return}l.push(rt(o,function(n){var o=r$(n);if(!rp(o,i,a,!0)){var s=null,l=e;if("pointerType"in n){switch(n.pointerType){case"mouse":s=rS.Mouse;break;case"touch":s=rS.Touch;break;case"pen":s=rS.Pen}s===rS.Touch?rE[e]===rE.MouseDown?l="TouchStart":rE[e]===rE.MouseUp&&(l="TouchEnd"):rS.Pen}else rh(n)&&(s=rS.Touch);null!==s?(c=s,(l.startsWith("Touch")&&s===rS.Touch||l.startsWith("Mouse")&&s===rS.Mouse)&&(s=null)):rE[e]===rE.Click&&(s=c,c=null);var u=rh(n)?n.changedTouches[0]:n;if(u){var d=r.getId(o),p=u.clientX,f=u.clientY;rD(t)(I({type:rE[l],id:d,x:p,y:f},null!==s&&{pointerType:s}))}}},n))}),rD(function(){l.forEach(function(e){return e()})})}(e),a=rL(e),o=(A={win:n},T=e.viewportResizeCb,N=A.win,O=-1,P=-1,rt("resize",rD(ri(rD(function(){var e=rc(),t=ru();(O!==e||P!==t)&&(T({width:Number(t),height:Number(e)}),O=e,P=t)}),200)),N)),s=function(e){var t=e.inputCb,n=e.doc,r=e.mirror,i=e.blockClass,a=e.blockSelector,o=e.ignoreClass,s=e.ignoreSelector,l=e.maskInputOptions,c=e.maskInputFn,u=e.sampling,d=e.userTriggeredOnInput;function p(e){var t=r$(e),r=e.isTrusted,u=t&&t.tagName;if(t&&"OPTION"===u&&(t=re.parentElement(t)),!(!t||!u||0>rF.indexOf(u)||rp(t,i,a,!0)||t.classList.contains(o)||s&&t.matches(s))){var p=t.value,h=!1,m=ea(t)||"";"radio"===m||"checkbox"===m?h=t.checked:(l[u.toLowerCase()]||l[m])&&(p=en({element:t,maskInputOptions:l,tagName:u,type:m,value:p,maskInputFn:c})),f(t,d?{text:p,isChecked:h,userTriggered:r}:{text:p,isChecked:h});var g=t.name;"radio"===m&&g&&h&&n.querySelectorAll('input[type="radio"][name="'+g+'"]').forEach(function(e){if(e!==t){var n=e.value;f(e,d?{text:n,isChecked:!h,userTriggered:!1}:{text:n,isChecked:!h})}})}}function f(e,n){var i=rB.get(e);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){rB.set(e,n);var a=r.getId(e);rD(t)(I({},n,{id:a}))}}var h=("last"===u.input?["change"]:["input","change"]).map(function(e){return rt(e,rD(p),n)}),m=n.defaultView;if(!m)return function(){h.forEach(function(e){return e()})};var g=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"]];return g&&g.set&&h.push.apply(h,[].concat(y.map(function(e){return ra(e[0],e[1],{set:function(){rD(p)({target:this,isTrusted:!1})}},!1,m)}))),rD(function(){h.forEach(function(e){return e()})})}(e),l=(D=e.mediaInteractionCb,M=e.blockClass,j=e.blockSelector,L=e.mirror,F=e.sampling,B=e.doc,z=[rt("play",(U=rD(function(e){return ri(rD(function(t){var n=r$(t);if(!(!n||rp(n,M,j,!0))){var r=n.currentTime,i=n.volume,a=n.muted,o=n.playbackRate,s=n.loop;D({type:e,id:L.getId(n),currentTime:r,volume:i,muted:a,playbackRate:o,loop:s})}}),F.media||500)}))(rC.Play),B),rt("pause",U(rC.Pause),B),rt("seeked",U(rC.Seeked),B),rt("volumechange",U(rC.VolumeChange),B),rt("ratechange",U(rC.RateChange),B)],rD(function(){z.forEach(function(e){return e()})})),c=function(){},u=function(){},d=function(){},p=function(){};e.recordDOM&&(c=function(e,t){var n,r,i=e.styleSheetRuleCb,a=e.mirror,o=e.stylesheetManager,s=t.win;if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return function(){};var l=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(l,{apply:rD(function(e,t,n){var r=n[0],s=n[1],l=rz(t,a,o.styleMirror),c=l.id,u=l.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,adds:[{rule:r,index:s}]}),e.apply(t,n)})}),s.CSSStyleSheet.prototype.addRule=function(e,t,n){return void 0===n&&(n=this.cssRules.length),s.
1CSSStyleSheet.prototype.insertRule.apply(this,[e+" { "+t+" }",n])};var c=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(c,{apply:rD(function(e,t,n){var r=n[0],s=rz(t,a,o.styleMirror),l=s.id,c=s.styleId;return(l&&-1!==l||c&&-1!==c)&&i({id:l,styleId:c,removes:[{index:r}]}),e.apply(t,n)})}),s.CSSStyleSheet.prototype.removeRule=function(e){return s.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},s.CSSStyleSheet.prototype.replace&&(n=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:rD(function(e,t,n){var r=n[0],s=rz(t,a,o.styleMirror),l=s.id,c=s.styleId;return(l&&-1!==l||c&&-1!==c)&&i({id:l,styleId:c,replace:r}),e.apply(t,n)})})),s.CSSStyleSheet.prototype.replaceSync&&(r=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(r,{apply:rD(function(e,t,n){var r=n[0],s=rz(t,a,o.styleMirror),l=s.id,c=s.styleId;return(l&&-1!==l||c&&-1!==c)&&i({id:l,styleId:c,replaceSync:r}),e.apply(t,n)})}));var u={};rW("CSSGroupingRule")?u.CSSGroupingRule=s.CSSGroupingRule:(rW("CSSMediaRule")&&(u.CSSMediaRule=s.CSSMediaRule),rW("CSSConditionRule")&&(u.CSSConditionRule=s.CSSConditionRule),rW("CSSSupportsRule")&&(u.CSSSupportsRule=s.CSSSupportsRule));var d={};return Object.entries(u).forEach(function(e){var t=e[0],n=e[1];d[t]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(d[t].insertRule,{apply:rD(function(e,t,n){var r=n[0],s=n[1],l=rz(t.parentStyleSheet,a,o.styleMirror),c=l.id,u=l.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,adds:[{rule:r,index:[].concat(rU(t),[s||0])}]}),e.apply(t,n)})}),n.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:rD(function(e,t,n){var r=n[0],s=rz(t.parentStyleSheet,a,o.styleMirror),l=s.id,c=s.styleId;return(l&&-1!==l||c&&-1!==c)&&i({id:l,styleId:c,removes:[{index:[].concat(rU(t),[r])}]}),e.apply(t,n)})})}),rD(function(){s.CSSStyleSheet.prototype.insertRule=l,s.CSSStyleSheet.prototype.deleteRule=c,n&&(s.CSSStyleSheet.prototype.replace=n),r&&(s.CSSStyleSheet.prototype.replaceSync=r),Object.entries(u).forEach(function(e){var t=e[0],n=e[1];n.prototype.insertRule=d[t].insertRule,n.prototype.deleteRule=d[t].deleteRule})})}(e,{win:n}),u=rZ(e,e.doc),Z={win:n},V=e.styleDeclarationCb,q=e.mirror,W=e.ignoreCSSAttributes,G=e.stylesheetManager,Y=(H=Z.win).CSSStyleDeclaration.prototype.setProperty,H.CSSStyleDeclaration.prototype.setProperty=new Proxy(Y,{apply:rD(function(e,t,n){var r,i=n[0],a=n[1],o=n[2];if(W.has(i))return Y.apply(t,[i,a,o]);var s=rz(null==(r=t.parentRule)?void 0:r.parentStyleSheet,q,G.styleMirror),l=s.id,c=s.styleId;return(l&&-1!==l||c&&-1!==c)&&V({id:l,styleId:c,set:{property:i,value:a,priority:o},index:rU(t.parentRule)}),e.apply(t,n)})}),K=H.CSSStyleDeclaration.prototype.removeProperty,H.CSSStyleDeclaration.prototype.removeProperty=new Proxy(K,{apply:rD(function(e,t,n){var r,i=n[0];if(W.has(i))return K.apply(t,[i]);var a=rz(null==(r=t.parentRule)?void 0:r.parentStyleSheet,q,G.styleMirror),o=a.id,s=a.styleId;return(o&&-1!==o||s&&-1!==s)&&V({id:o,styleId:s,remove:{property:i},index:rU(t.parentRule)}),e.apply(t,n)})}),d=rD(function(){H.CSSStyleDeclaration.prototype.setProperty=Y,H.CSSStyleDeclaration.prototype.removeProperty=K}),e.collectFonts&&(p=function(e){var t=e.fontCb,n=e.doc,r=n.defaultView;if(!r)return function(){};var i=[],a=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,n){var r=new o(e,t,n);return a.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};var s=ro(n.fonts,"add",function(e){return function(n){return setTimeout(rD(function(){var e=a.get(n);e&&(t(e),a.delete(n))}),0),e.apply(this,[n])}});return i.push(function(){r.FontFace=o}),i.push(s),rD(function(){i.forEach(function(e){return e()})})}(e)));for(var f,h,m,g,y,v,b,w,_,x,E,S,k,C,A,T,N,O,P,D,M,j,L,F,B,U,z,Z,V,q,W,G,H,Y,K,J,X,Q,ee,et,ei,eo,es,el,ec,eu,ed,ep=(J=e.doc,X=e.mirror,Q=e.blockClass,ee=e.blockSelector,et=e.selectionCb,ei=!0,(eo=rD(function(){var e=J.getSelection();if(e&&(!ei||null==e||!e.isCollapsed)){ei=e.isCollapsed||!1;
1for(var t=[],n=e.rangeCount||0,r=0;r<n;r++){var i=e.getRangeAt(r),a=i.startContainer,o=i.startOffset,s=i.endContainer,l=i.endOffset;rp(a,Q,ee,!0)||rp(s,Q,ee,!0)||t.push({start:X.getId(a),startOffset:o,end:X.getId(s),endOffset:l})}et({ranges:t})}}))(),rt("selectionchange",eo)),ef=(es=e.doc,el=e.customElementCb,(ec=es.defaultView)&&ec.customElements?ro(ec.customElements,"define",function(e){return function(t,n,r){try{el({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,r])}}):function(){}),eh=[],em=$(e.plugins);!(ed=em()).done;){var eg=ed.value;eh.push(eg.observer(eg.callback,n,eg.options))}return rD(function(){rM.forEach(function(e){return e.reset()}),null==eu||eu.disconnect(),r(),i(),a(),o(),s(),l(),c(),u(),d(),p(),ep(),ef(),eh.forEach(function(e){return e()})})}function rq(e){return void 0!==window[e]}function rW(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var rG=function(){function e(e){B(this,"iframeIdToRemoteIdMap",new WeakMap),B(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,n,r){var i=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o},t.getIds=function(e,t){var n=this,r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return n.getId(e,t,r,i)})},t.getRemoteId=function(e,t,n){var r=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:r.get(t)||-1},t.getRemoteIds=function(e,t){var n=this,r=this.getRemoteIdToIdMap(e);return t.map(function(t){return n.getRemoteId(e,t,r)})},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}(),rH=function(){function e(e){B(this,"iframes",new WeakMap),B(this,"crossOriginIframeMap",new WeakMap),B(this,"crossOriginIframeMirror",new rG(em)),B(this,"crossOriginIframeStyleMirror"),B(this,"crossOriginIframeRootIdMap",new WeakMap),B(this,"mirror"),B(this,"mutationCb"),B(this,"wrappedEmit"),B(this,"loadListener"),B(this,"stylesheetManager"),B(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new rG(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.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var n,r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(n=e.contentWindow)||n.addEventListener("message",this.handleMessage.bind(this))),null==(r=this.loadListener)||r.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){if("rrweb"===e.data.type&&e.origin===e.data.origin&&e.source){var t=this.crossOriginIframeMap.get(e.source);if(t){var n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var n,r=this;switch(t.type){case r_.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:r_.IncrementalSnapshot,data:{source:rx.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};
1case r_.Meta:case r_.Load:case r_.DomContentLoaded:break;case r_.Plugin:return t;case r_.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case r_.IncrementalSnapshot:switch(t.data.source){case rx.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 rx.Drag:case rx.TouchMove:case rx.MouseMove:return t.data.positions.forEach(function(t){r.replaceIds(t,e,["id"])}),t;case rx.ViewportResize:return!1;case rx.MediaInteraction:case rx.MouseInteraction:case rx.Scroll:case rx.CanvasMutation:case rx.Input:return this.replaceIds(t.data,e,["id"]),t;case rx.StyleSheetRule:case rx.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case rx.Font:return t;case rx.Selection:return t.data.ranges.forEach(function(t){r.replaceIds(t,e,["start","end"])}),t;case rx.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,n,r){for(var i,a=$(r);!(i=a()).done;){var o=i.value;(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]))}return t},t.replaceIds=function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)},t.replaceStyleIds=function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)},t.replaceIdOnNode=function(e,t){var n=this;this.replaceIds(e,t,["id","rootId"]),("childNodes"in e)&&e.childNodes.forEach(function(e){n.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var n=this;e.type===rI.Document||e.rootId||(e.rootId=t),("childNodes"in e)&&e.childNodes.forEach(function(e){n.patchRootIdOnNode(e,t)})},e}(),rY=function(){function e(e){B(this,"shadowDoms",new WeakSet),B(this,"mutationCb"),B(this,"scrollCb"),B(this,"bypassOptions"),B(this,"mirror"),B(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 n=this;if(X(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var r=rj(I({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return r.disconnect()}),this.restoreHandlers.push(rL(I({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(re.host(e))),n.restoreHandlers.push(rZ({mirror:n.mirror,stylesheetManager:n.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 n=this;this.restoreHandlers.push(ro(e.prototype,"attachShadow",function(e){return function(r){var i=e.call(this,r),a=re.shadowRoot(this);return a&&rw(this)&&n.addShadowRoot(a,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),rK="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rJ="undefined"==typeof Uint8Array?[]:new Uint8Array(256),rX=0;rX<rK.length;
1rX++)rJ[rK.charCodeAt(rX)]=rX;var rQ=function(e){var t,n=new Uint8Array(e),r=n.length,i="";for(t=0;t<r;t+=3)i+=rK[n[t]>>2]+rK[(3&n[t])<<4|n[t+1]>>4]+rK[(15&n[t+1])<<2|n[t+2]>>6]+rK[63&n[t+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i},r0=new Map,r1=function(e,t,n){if(e&&(r3(e,t)||(void 0===e?"undefined":P(e))==="object")){var r,i=e.constructor.name,a=((r=r0.get(n))||(r=new Map,r0.set(n,r)),r.has(i)||r.set(i,[]),r.get(i)),o=a.indexOf(e);return -1===o&&(o=a.length,a.push(e)),o}},r2=function(e,t,n){return e.map(function(e){return function e(t,n,r){if(R(t,Array))return t.map(function(t){return e(t,n,r)});if(null===t);else if(R(t,Float32Array)||R(t,Float64Array)||R(t,Int32Array)||R(t,Uint32Array)||R(t,Uint8Array)||R(t,Uint16Array)||R(t,Int16Array)||R(t,Int8Array)||R(t,Uint8ClampedArray))return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(R(t,ArrayBuffer))return{rr_type:t.constructor.name,base64:rQ(t)};else if(R(t,DataView))return{rr_type:t.constructor.name,args:[e(t.buffer,n,r),t.byteOffset,t.byteLength]};else if(R(t,HTMLImageElement))return{rr_type:t.constructor.name,src:t.src};else if(R(t,HTMLCanvasElement))return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(R(t,ImageData))return{rr_type:t.constructor.name,args:[e(t.data,n,r),t.width,t.height]};else if(r3(t,n)||(void 0===t?"undefined":P(t))==="object")return{rr_type:t.constructor.name,index:r1(t,n,r)};return t}(e,t,n)})},r3=function(e,t){return!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]}).find(function(n){return R(e,t[n])})};function r5(e,t,n,r){var i=[];try{var a=ro(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var a=arguments.length,o=Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];if(!rp(this,t,n,!0)){var l="experimental-webgl"===i?"webgl":i;if("__context"in this||(this.__context=l),r&&["webgl","webgl2"].includes(l)){if(o[0]&&"object"===P(o[0])){var c=o[0];c.preserveDrawingBuffer||(c.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}}return e.apply(this,[].concat([i],o))}});i.push(a)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function r4(e,t,n,r,i,a){for(var o,s=[],l=Object.getOwnPropertyNames(e),c=$(l);!(o=c()).done;)!function(){var l=o.value;if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if("function"!=typeof e[l])return"continue";var c=ro(e,l,function(e){return function(){for(var o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];var u=e.apply(this,s);if(r1(u,a,this),"tagName"in this.canvas&&!rp(this.canvas,r,i,!0)){var d=r2(s,a,this);n(this.canvas,{type:t,property:l,args:d})}return u}});s.push(c)}catch(r){s.push(ra(e,l,{set:function(e){n(this.canvas,{type:t,property:l,args:[e],setter:!0})}}))}}();return s}var r9="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybi
1BiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",r6="undefined"!=typeof window&&window.Blob&&new Blob([Uint8Array.from(atob(r9),function(e){return e.charCodeAt(0)})],{type:"text/javascript;charset=utf-8"});function r7(e){var t;try{if(!(t=r6&&(window.URL||window.webkitURL).createObjectURL(r6)))throw"";var n=new Worker(t,{name:null==e?void 0:e.name});return n.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),n}catch(t){return new Worker("data:text/javascript;base64,"+r9,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var r8=function(){function e(e){var t=this;B(this,"pendingCanvasMutations",new Map),B(this,"rafStamps",{latestId:0,invokeId:null}),B(this,"mirror"),B(this,"mutationCb"),B(this,"resetObservers"),B(this,"frozen",!1),B(this,"locked",!1),B(this,"processMutation",function(e,n){(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(n)});var n=e.sampling,r=void 0===n?"all":n,i=e.win,a=e.blockClass,o=e.blockSelector,s=e.recordCanvas,l=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,s&&"all"===r&&this.initCanvasMutationObserver(i,a,o),s&&"number"==typeof r&&this.initCanvasFPSObserver(r,i,a,o,{dataURLOptions:l})}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,n,r,i){var a,o=this,s=r5(t,n,r,!0),l=new Map,c=new r7;c.onmessage=function(e){var t=e.data.id;if(l.set(t,!1),"base64"in e.data){var n=e.data,r=n.base64,i=n.type,a=n.width,s=n.height;o.mutationCb({id:t,type:rk["2D"],commands:[{property:"clearRect",args:[0,0,a,s]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:i}]},0,0]}]})}};var u=1e3/e,d=0,p=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){rp(t,n,r,!0)||e.push(t)}),e},f=function(e){if(d&&e-d<u){a=requestAnimationFrame(f);return}
1d=e,p().forEach(S(function(e){var t,n,r,a;return j(this,function(s){switch(s.label){case 0:if(n=o.mirror.getId(e),l.get(n)||0===e.width||0===e.height)return[2];return l.set(n,!0),["webgl","webgl2"].includes(e.__context)&&(null==(t=null==(r=e.getContext(e.__context))?void 0:r.getContextAttributes())?void 0:t.preserveDrawingBuffer)===!1&&r.clear(r.COLOR_BUFFER_BIT),[4,createImageBitmap(e)];case 1:return a=s.sent(),c.postMessage({id:n,bitmap:a,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[a]),[2]}})})),a=requestAnimationFrame(f)};a=requestAnimationFrame(f),this.resetObservers=function(){s(),cancelAnimationFrame(a)}},t.initCanvasMutationObserver=function(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var r,i,a=r5(e,t,n,!1),o=function(e,t,n,r){for(var i,a=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),s=$(o);!(i=s()).done;)!function(){var o=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var s=ro(t.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var a=this,s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return rp(this.canvas,n,r,!0)||setTimeout(function(){var n=r2(l,t,a);e(a.canvas,{type:rk["2D"],property:o,args:n})},0),i.apply(this,l)}});a.push(s)}catch(n){var l=ra(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:rk["2D"],property:o,args:[t],setter:!0})}});a.push(l)}}();return function(){a.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,n),s=(r=this.processMutation.bind(this),(i=[]).push.apply(i,[].concat(r4(e.WebGLRenderingContext.prototype,rk.WebGL,r,t,n,e))),void 0!==e.WebGL2RenderingContext&&i.push.apply(i,[].concat(r4(e.WebGL2RenderingContext.prototype,rk.WebGL2,r,t,n,e))),function(){i.forEach(function(e){return e()})});this.resetObservers=function(){a(),o(),s()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(n){e.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,n){var r=e.mirror.getId(n);e.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var n=this.pendingCanvasMutations.get(e);if(n&&-1!==t){var r=n.map(function(e){return e.type,N(e,["type"])}),i=n[0].type;this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}}},e}(),ie=function(){function e(e){B(this,"trackedLinkElements",new WeakSet),B(this,"mutationCb"),B(this,"adoptedStyleSheetCb"),B(this,"styleMirror",new rv),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){if(0!==e.length){for(var n,r,i={id:t,styleIds:[]},a=[],o=$(e);!(r=o()).done;)n=this,function(){var e=r.value,t=void 0;n.styleMirror.has(e)?t=n.styleMirror.getId(e):(t=n.styleMirror.add(e),a.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,n){return{rule:ee(t,e.href),index:n}})})),i.styleIds.push(t)}();a.length>0&&(i.styles=a),this.adoptedStyleSheetCb(i)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(e){},e}(),it=function(){function e(){B(this,"nodeMap",new WeakMap),B(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var n=this.nodeMap.get(e);return n&&Array.from(n).some(function(e){return e!==t})},t.add=function(e,t){var n=this;this.active||(this.active=!0,requestAnimationFrame(function(){n.nodeMap=new WeakMap,n.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),ir=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var ii=document.createElement("iframe");document.body.appendChild(ii),Array.from=(null==(iv=ii.contentWindow)?void 0:iv.Array.from)||Array.from,document.body.removeChild(ii)}}catch(e){console.debug("Unable to override Array.from",e)}var ia=new et;function io(e){void 0===e&&(e={});var t=e.emit,n=e.checkoutEveryNms,r=e.checkoutEveryNth,i=e.blockClass,a=void 0===i?"rr-block":i,o=e.blockSelector,s=void 0===o?null:o,l=e.ignoreClass,c=void 0===l?"rr-ignore":l,u=e.ignoreSelector,d=void 0===u?null:u,p=e.maskTextClass,f=void 0===p?"rr-mask":p,h=e.maskTextSelector,m=void 0===h?null:h,g=e.inlineStylesheet,y=void 0===g||g,v=e.maskAllInputs,b=e.maskInputOptions,w=e.slimDOMOptions,_=e.maskInputFn,x=e.maskTextFn,E=e.hooks,S=e.packFn,k=e.sampling,C=void 0===k?{}:k,A=e.dataURLOptions,T=void 0===A?{}:A,R=e.mousemoveWait,N=e.recordDOM,O=void 0===N||N,P=e.recordCanvas,D=void 0!==P&&P,M=e.recordCrossOriginIframes,j=void 0!==M&&M,L=e.recordAfter,F=void 0===L?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":L,B=e.userTriggeredOnInput,U=void 0!==B&&B,z=e.collectFonts,Z=void 0!==z&&z,V=e.inlineImages,q=void 0!==V&&V,W=e.plugins,G=e.keepIframeSrcFn,H=void 0===G?function(){return!1}:G,Y=e.ignoreCSSAttributes,K=void 0===Y?new Set([]):Y;ij=e.errorHandler;var J=!j||window.parent===window,X=!1;if(!J)try{window.parent.document&&(X=!1)}catch(e){X=!0}if(J&&!t)throw Error("emit function is required");if(!J&&!X)return function(){};void 0!==R&&void 0===C.mousemove&&(C.mousemove=R),ia.reset();var Q=!0===v?{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}:void 0!==b?b:{password:!0},ee=!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||{};void 0===ei&&(ei=window),"NodeList"in ei&&!ei.NodeList.prototype.forEach&&(ei.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in ei&&!ei.DOMTokenList.prototype.forEach&&(ei.DOMTokenList.prototype.forEach=Array.prototype.forEach);var en=0,er=function(e){for(var t,n=$(W||[]);!(t=n()).done;){var r=t.value;r.eventProcessor&&(e=r.eventProcessor(e))}return S&&!X&&(e=S(e)),e};iL=function(e,i){var a;if(e.timestamp=rs(),(null==(a=rM[0])?void 0:a.isFrozen())&&e.type!==r_.FullSnapshot&&!(e.type===r_.IncrementalSnapshot&&e.data.source===rx.Mutation)&&rM.forEach(function(e){return e.unfreeze()}),J)null==t||t(er(e),i);else if(X){var o={type:"rrweb",event:er(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(o,"*")}if(e.type===r_.FullSnapshot)ea=e,en=0;else if(e.type===r_.IncrementalSnapshot){if(e.data.source===rx.Mutation&&e.data.isAttachIframe)return;en++;var s=r&&en>=r,l=n&&e.timestamp-ea.timestamp>n;(s||l)&&iF(!0)}};for(var ei,ea,eo,es=function(e){iL({type:r_.IncrementalSnapshot,data:I({source:rx.Mutation},e)})},el=function(e){return iL({type:r_.IncrementalSnapshot,data:I({source:rx.Scroll},e)})},ec=function(e){return iL({type:r_.IncrementalSnapshot,data:I({source:rx.CanvasMutation},e)})},eu=new ie({mutationCb:es,adoptedStyleSheetCb:function(e){return iL({type:r_.IncrementalSnapshot,data:I({source:rx.AdoptedStyleSheet},e)})}}),ed=new rH({mirror:ia,mutationCb:es,stylesheetManager:eu,recordCrossOriginIframes:j,wrappedEmit:iL}),ep=$(W||[]);!(eo=ep()).done;){var ef=eo.value;ef.getMirror&&ef.getMirror({nodeMirror:ia,crossOriginIframeMirror:ed.crossOriginIframeMirror,crossOriginIframeStyleMirror:ed.crossOriginIframeStyleMirror})}var eh=new it;iB=new r8({recordCanvas:D,mutationCb:ec,win:window,blockClass:a,blockSelector:s,mirror:ia,sampling:C.canvas,dataURLOptions:T});var em=new rY({mutationCb:es,scrollCb:el,bypassOptions:{blockClass:a,blockSelector:s,maskTextClass:f,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:Q,dataURLOptions:T,maskTextFn:x,maskInputFn:_,recordCanvas:D,inlineImages:q,sampling:C,slimDOMOptions:ee,iframeManager:ed,stylesheetManager:eu,canvasManager:iB,keepIframeSrcFn:H,processedNodeManager:eh},mirror:ia});iF=function(e){if(void 0===e&&(e=!1),O){iL({type:r_.Meta,data:{href:window.location.href,width:ru(),height:rc()}}
1,e),eu.reset(),em.init(),rM.forEach(function(e){return e.lock()});var t,n,r,i,o,l,c,u,d,p,h,g,v,b,w,E,S,k,C,I,A,R,N,P=(t=document,i=void 0===(r=(n={mirror:ia,blockClass:a,blockSelector:s,maskTextClass:f,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:Q,maskTextFn:x,maskInputFn:_,slimDOM:ee,dataURLOptions:T,recordCanvas:D,inlineImages:q,onSerialize:function(e){rm(e,ia)&&ed.addIframe(e),rg(e,ia)&&eu.trackLinkElement(e),ry(e)&&em.addShadowRoot(re.shadowRoot(e),document)},onIframeLoad:function(e,t){ed.attachIframe(e,t),em.observeAttachShadow(e)},onStylesheetLoad:function(e,t){eu.attachLinkElement(e,t)},keepIframeSrcFn:H}).mirror)?new et:r,o=n.blockClass,l=n.blockSelector,c=n.maskTextClass,u=n.maskTextSelector,d=n.inlineStylesheet,p=n.inlineImages,h=n.recordCanvas,v=void 0!==(g=n.maskAllInputs)&&g,b=n.maskTextFn,w=n.maskInputFn,S=void 0!==(E=n.slimDOM)&&E,k=n.dataURLOptions,C=n.preserveWhiteSpace,I=n.onSerialize,A=n.onIframeLoad,R=n.iframeLoadTimeout,eC(t,{doc:t,mirror:i,blockClass:void 0===o?"rr-block":o,blockSelector:void 0===l?null:l,maskTextClass:void 0===c?"rr-mask":c,maskTextSelector:void 0===u?null:u,skipChild:!1,inlineStylesheet:void 0===d||d,maskInputOptions:!0===v?{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}:!1===v?{password:!0}:v,maskTextFn:b,maskInputFn:w,slimDOMOptions:!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,dataURLOptions:k,inlineImages:void 0!==p&&p,recordCanvas:void 0!==h&&h,preserveWhiteSpace:C,onSerialize:I,onIframeLoad:A,iframeLoadTimeout:R,onStylesheetLoad:n.onStylesheetLoad,stylesheetLoadTimeout:n.stylesheetLoadTimeout,keepIframeSrcFn:void 0===(N=n.keepIframeSrcFn)?function(){return!1}:N,newlyAddedElement:!1}));if(!P)return console.warn("Failed to snapshot the document");iL({type:r_.FullSnapshot,data:{node:P,initialOffset:rl(window)}},e),rM.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&eu.adoptStyleSheets(document.adoptedStyleSheets,ia.getId(document))}};try{var eg=[],ey=function(e){var t;return rD(rV)({mutationCb:es,mousemoveCb:function(e,t){return iL({type:r_.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return iL({type:r_.IncrementalSnapshot,data:I({source:rx.MouseInteraction},e)})},scrollCb:el,viewportResizeCb:function(e){return iL({type:r_.IncrementalSnapshot,data:I({source:rx.ViewportResize},e)})},inputCb:function(e){return iL({type:r_.IncrementalSnapshot,data:I({source:rx.Input},e)})},mediaInteractionCb:function(e){return iL({type:r_.IncrementalSnapshot,data:I({source:rx.MediaInteraction},e)})},styleSheetRuleCb:function(e){return iL({type:r_.IncrementalSnapshot,data:I({source:rx.StyleSheetRule},e)})},styleDeclarationCb:function(e){return iL({type:r_.IncrementalSnapshot,data:I({source:rx.StyleDeclaration},e)})},canvasMutationCb:ec,fontCb:function(e){return iL({type:r_.IncrementalSnapshot,data:I({source:rx.Font},e)})},selectionCb:function(e){iL({type:r_.IncrementalSnapshot,data:I({source:rx.Selection},e)})},customElementCb:function(e){iL({type:r_.IncrementalSnapshot,data:I({source:rx.CustomElement},e)})},blockClass:a,ignoreClass:c,ignoreSelector:d,maskTextClass:f,maskTextSelector:m,maskInputOptions:Q,inlineStylesheet:y,sampling:C,recordDOM:O,recordCanvas:D,inlineImages:q,userTriggeredOnInput:U,collectFonts:Z,doc:e,maskInputFn:_,maskTextFn:x,keepIframeSrcFn:H,blockSelector:s,slimDOMOptions:ee,dataURLOptions:T,mirror:ia,iframeManager:ed,stylesheetManager:eu,shadowDomManager:em,processedNodeManager:eh,canvasManager:iB,ignoreCSSAttributes:K,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 iL({type:r_.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},E)};ed.addLoadListener(function(e){try{eg.push(ey(e.contentDocument))}catch(e){console.warn(e)}});var ev=function(){iF(),eg.push(ey(document)),ir=!0};return"interactive"===document.readyState||"complete"===document.readyState?ev():(eg.push(rt("DOMContentLoaded",function(){iL({type:r_.DomContentLoaded,data:{}}),"DOMContentLoaded"===F&&ev()})),eg.push(rt("load",function(){iL({type:r_.Load,data:{}}),"load"===F&&ev()},window))),function(){eg.forEach(function(e){return e()}),eh.destroy(),ir=!1,ij=void 0}}catch(e){console.warn(e)}}io.addCustomEvent=function(e,t){if(!ir)throw Error("please add custom event after start recording");iL({type:r_.Custom,data:{tag:e,payload:t}}
1)},io.freezePage=function(){rM.forEach(function(e){return e.freeze()})},io.takeFullSnapshot=function(e){if(!ir)throw Error("please take full snapshot after start recording");iF(e)},io.mirror=ia,(ig=iU||(iU={}))[ig.NotStarted=0]="NotStarted",ig[ig.Running=1]="Running",ig[ig.Stopped=2]="Stopped",io.addCustomEvent,io.freezePage,io.takeFullSnapshot;var is,il,ic,iu,id,ip,ih,im,ig,iy,iv,ib,iw,i_,ix,iE,iS,ik,iC,iI,iA,iT,iR,iN,iO,iP,iD,iM,i$,ij,iL,iF,iB,iU,iz,iZ,iV,iq=iy.setImmediate,iW=Object.prototype.toString,iG=void 0!==iq?function(e){return iq(e)}:setTimeout;try{Object.defineProperty({},"x",{}),iz=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(e){iz=function(e,t,n){return e[t]=n,e}}function iH(e,t){iV.add(e,t),iZ||(iZ=iG(iV.drain))}function iY(e){var t,n=typeof e;return null!==e&&("object"===n||"function"===n)&&(t=e.then),"function"==typeof t&&t}function iK(){for(var e=0;e<this.chain.length;e++)!function(e,t,n){var r,i;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(i=iY(r))?i.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function iJ(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=iY(e))?iH(function(){var r=new i0(n);try{t.call(e,function(){iJ.apply(r,arguments)},function(){iX.apply(r,arguments)})}catch(e){iX.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&iH(iK,n))}catch(e){iX.call(new i0(n),e)}}}function iX(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&iH(iK,t))}function iQ(e,t,n,r){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then(function(e){n(i,e)},r)}(i)}function i0(e){this.def=e,this.triggered=!1}function i1(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function i2(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 i1(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}),t.chain.push(r),0!==t.state&&iH(iK,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){iJ.call(t,e)},function(e){iX.call(t,e)})}catch(e){iX.call(t,e)}}iV=function(){var e,t,n;function r(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,a){n=new r(i,a),t?t.next=n:e=n,t=n,n=void 0},drain:function(){var n=e;for(e=t=iZ=void 0;n;)n.fn.call(n.self),n=n.next}}}();var i3=iz({},"constructor",i2,!1);i2.prototype=i3,iz(i3,"__NPO__",0,!1),iz(i2,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),iz(i2,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),iz(i2,"all",function(e){var t=this;return"[object Array]"!==iW.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var i=e.length,a=Array(i),o=0;iQ(t,e,function(e,t){a[e]=t,++o===i&&n(a)},r)})}),iz(i2,"race",function(e){var t=this;return"[object Array]"!==iW.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");iQ(t,e,function(e,t){n(t)},r)})}),g="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:i2;var i5={DEBUG:!1,LIB_VERSION:"2.63.0"},i4=Array.prototype,i9=Function.prototype,i6=Object.prototype,i7=i4.slice,i8=i6.toString,ae=i6.hasOwnProperty,at=iy.console,an=iy.navigator,ar=iy.document,ai=iy.opera,aa=iy.screen,ao=an.userAgent,as=i9.bind,al=i4.forEach,ac=i4.indexOf,au=i4.map,ad=Array.isArray,ap={},af={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},ah={log:function(){if(i5.DEBUG&&!af.isUndefined(at)&&at)try{at.log.apply(at,arguments)}catch(e){af.each(arguments,function(e){at.log(e)})}},warn:function(){if(i5.DEBUG&&!af.isUndefined(at)&&at){var e=["Mixpanel warning:"].
1concat(af.toArray(arguments));try{at.warn.apply(at,e)}catch(t){af.each(e,function(e){at.warn(e)})}}},error:function(){if(i5.DEBUG&&!af.isUndefined(at)&&at){var e=["Mixpanel error:"].concat(af.toArray(arguments));try{at.error.apply(at,e)}catch(t){af.each(e,function(e){at.error(e)})}}},critical:function(){if(!af.isUndefined(at)&&at){var e=["Mixpanel error:"].concat(af.toArray(arguments));try{at.error.apply(at,e)}catch(t){af.each(e,function(e){at.error(e)})}}}},am=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(ah,arguments)}},ag=function(e){return{log:am(ah.log,e),error:am(ah.error,e),critical:am(ah.critical,e)}},ay=function(e){return function(){try{return e.apply(this,arguments)}catch(e){ah.critical("Implementation error. Please turn on debug and contact [email protected]."),i5.DEBUG&&ah.critical(e)}}};af.bind=function(e,t){var n,r;if(as&&e.bind===as)return as.apply(e,i7.call(arguments,1));if(!af.isFunction(e))throw TypeError();return n=i7.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(i7.call(arguments)));var i={};i.prototype=e.prototype;var a=new i;i.prototype=null;var o=e.apply(a,n.concat(i7.call(arguments)));return Object(o)===o?o:a}},af.each=function(e,t,n){if(null!=e){if(al&&e.forEach===al)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r,e)===ap)return}else for(var a in e)if(ae.call(e,a)&&t.call(n,e[a],a,e)===ap)return}},af.extend=function(e){return af.each(i7.call(arguments,1),function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}),e},af.isArray=ad||function(e){return"[object Array]"===i8.call(e)},af.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},af.isArguments=function(e){return!!(e&&ae.call(e,"callee"))},af.toArray=function(e){return e?e.toArray?e.toArray():af.isArray(e)||af.isArguments(e)?i7.call(e):af.values(e):[]},af.map=function(e,t,n){if(au&&e.map===au)return e.map(t,n);var r=[];return af.each(e,function(e){r.push(t.call(n,e))}),r},af.keys=function(e){var t=[];return null===e||af.each(e,function(e,n){t[t.length]=n}),t},af.values=function(e){var t=[];return null===e||af.each(e,function(e){t[t.length]=e}),t},af.include=function(e,t){var n=!1;return null===e?n:ac&&e.indexOf===ac?-1!=e.indexOf(t):(af.each(e,function(e){if(n||(n=e===t))return ap}),n)},af.includes=function(e,t){return -1!==e.indexOf(t)},af.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},af.isObject=function(e){return e===Object(e)&&!af.isArray(e)},af.isEmptyObject=function(e){if(af.isObject(e)){for(var t in e)if(ae.call(e,t))return!1;return!0}return!1},af.isUndefined=function(e){return void 0===e},af.isString=function(e){return"[object String]"==i8.call(e)},af.isDate=function(e){return"[object Date]"==i8.call(e)},af.isNumber=function(e){return"[object Number]"==i8.call(e)},af.isElement=function(e){return!!(e&&1===e.nodeType)},af.encodeDates=function(e){return af.each(e,function(t,n){af.isDate(t)?e[n]=af.formatDate(t):af.isObject(t)&&(e[n]=af.encodeDates(t))}),e},af.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},af.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())},af.strip_empty_properties=function(e){var t={};return af.each(e,function(e,n){af.isString(e)&&e.length>0&&(t[n]=e)}),t},af.truncate=function(e,t){var n;return"string"==typeof e?n=e.slice(0,t):af.isArray(e)?(n=[],af.each(e,function(e){n.push(af.truncate(e,t))})):af.isObject(e)?(n={},af.each(e,function(e,r){n[r]=af.truncate(e,t)})):n=e,n},af.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=n[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},n=function(e,r){var i="",a=0,o="",s="",l=0,c=i,u=[],d=r[e];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return t(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";
1if(i+="    ",u=[],"[object Array]"===i8.apply(d)){for(a=0,l=d.length;a<l;a+=1)u[a]=n(a,d)||"null";return s=0===u.length?"[]":i?"[\n"+i+u.join(",\n"+i)+"\n"+c+"]":"["+u.join(",")+"]",i=c,s}for(o in d)ae.call(d,o)&&(s=n(o,d))&&u.push(t(o)+(i?": ":":")+s);return s=0===u.length?"{}":i?"{"+u.join(",")+c+"}":"{"+u.join(",")+"}",i=c,s}};return n("",{"":e})},af.JSONDecode=(s={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"},l=function(e){var t=SyntaxError(e);throw t.at=r,t.text=a,t},c=function(e){return e&&e!==i&&l("Expected '"+e+"' instead of '"+i+"'"),i=a.charAt(r),r+=1,i},u=function(){var e,t="";for("-"===i&&(t="-",c("-"));i>="0"&&i<="9";)t+=i,c();if("."===i)for(t+=".";c()&&i>="0"&&i<="9";)t+=i;if("e"===i||"E"===i)for(t+=i,c(),("-"===i||"+"===i)&&(t+=i,c());i>="0"&&i<="9";)t+=i,c();if(isFinite(e=+t))return e;l("Bad number")},d=function(){var e,t,n,r="";if('"'===i)for(;c();){if('"'===i)return c(),r;if("\\"===i){if(c(),"u"===i){for(t=0,n=0;t<4&&isFinite(e=parseInt(c(),16));t+=1)n=16*n+e;r+=String.fromCharCode(n)}else if("string"==typeof s[i])r+=s[i];else break}else r+=i}l("Bad string")},p=function(){for(;i&&i<=" ";)c()},f=function(){switch(i){case"t":return c("t"),c("r"),c("u"),c("e"),!0;case"f":return c("f"),c("a"),c("l"),c("s"),c("e"),!1;case"n":return c("n"),c("u"),c("l"),c("l"),null}l('Unexpected "'+i+'"')},h=function(){var e=[];if("["===i){if(c("["),p(),"]"===i)return c("]"),e;for(;i;){if(e.push(o()),p(),"]"===i)return c("]"),e;c(","),p()}}l("Bad array")},m=function(){var e,t={};if("{"===i){if(c("{"),p(),"}"===i)return c("}"),t;for(;i;){if(e=d(),p(),c(":"),Object.hasOwnProperty.call(t,e)&&l('Duplicate key "'+e+'"'),t[e]=o(),p(),"}"===i)return c("}"),t;c(","),p()}}l("Bad object")},o=function(){switch(p(),i){case"{":return m();case"[":return h();case'"':return d();case"-":return u();default:return i>="0"&&i<="9"?u():f()}},function(e){var t;return a=e,r=0,i=" ",t=o(),p(),i&&l("Syntax error"),t}),af.base64Encode=function(e){var t,n,r,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,c="",u=[];if(!e)return e;e=af.utf8Encode(e);do t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,u[l++]=o.charAt(t)+o.charAt(n)+o.charAt(r)+o.charAt(i);while(s<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},af.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,n,r,i="",a=0;for(r=0,t=n=0,a=e.length;r<a;r++){var o=e.charCodeAt(r),s=null;o<128?n++:s=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),null!==s&&(n>t&&(i+=e.substring(t,n)),i+=s,t=n=r+1)}return n>t&&(i+=e.substring(t,e.length)),i},af.UUID=function(){try{return iy.crypto.randomUUID()}catch(n){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]="-",af.map(e,function(e){return e.toString(16)}).join("")}};var av=["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"];af.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t<av.length;t++)if(-1!==e.indexOf(av[t]))return!0;return!1},af.HTTPBuildQuery=function(e,t){var n,r,i=[];return af.isUndefined(t)&&(t="&"),af.each(e,function(e,t){n=encodeURIComponent(e.toString()),r=encodeURIComponent(t),i[i.length]=r+"="+n}),i.join(t)},af.getQueryParam=function(e,t){var n=RegExp("[\\?&]"+(t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]"))+"=([^&#]*)").exec(e);if(null===n||n&&"string"!=typeof n[1]&&n[1].length)return"";var r=n[1];try{r=decodeURIComponent(r)}catch(e){ah.error("Skipping decoding for malformed query param: "+r)}return r.replace(/\+/g," ")},af.cookie={get:function(e){for(var t=e+"=",n=ar.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==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=af.JSONDecode(af.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,n,r,i,a,o){var s="",l="",c="";if(o)s="; domain="+o;else if(r){var u=aN(ar.location.hostname);s=u?"; domain=."+u:""}if(n){var d=new Date;d.setTime(d.getTime()+1e3*n),l="; expires="+d.toGMTString()}a&&(i=!0,c="; SameSite=None"),i&&(c+="; secure"),ar.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+s+c},set:function(e,t,n,r,i,a,o){var s="",l="",c="";if(o)s="; domain="+o;else if(r){var u=aN(ar.location.hostname);s=u?"; domain=."+u:""}if(n){var d=new Date;d.setTime(d.getTime()+864e5*n),l="; expires="+d.toGMTString()}a&&(i=!0,c="; SameSite=None"),i&&(c+="; secure");var p=e+"="+encodeURIComponent(t)+l+"; path=/"+s+c;return ar.cookie=p,p},remove:function(e,t,n){af.cookie.set(e,"",-1,t,!1,!1,n)}};var ab=function(e){var t=!0;try{var n="__mplss_"+aA(8);e.setItem(n,"xyz"),"xyz"!==e.getItem(n)&&(t=!1),e.removeItem(n)}catch(e){t=!1}return t},aw=null,a_=function(e,t){return null===aw||t?aw=ab(e||iy.localStorage):aw},ax=null;function aE(e,t,n){var r=function(e){ah.error(t+" error: "+e)};return{is_supported:function(r){var i=n(e,r);return i||ah.error(t+" unsupported"),i},error:r,get:function(t){try{return e.getItem(t)}catch(e){r(e)}return null},parse:function(t){try{return af.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,n){try{e.setItem(t,n)}catch(e){r(e)}},remove:function(t){try{e.removeItem(t)}catch(e){r(e)}}}}af.localStorage=aE(iy.localStorage,"localStorage",a_),af.sessionStorage=aE(iy.sessionStorage,"sessionStorage",function(e,t){return null===ax||t?ax=ab(e||iy.sessionStorage):ax}),af.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,a){if(!t){ah.error("No valid element provided to register_event");return}if(t.addEventListener&&!i)t.addEventListener(n,r,!!a);else{var o="on"+n,s=t[o];t[o]=function(n){if(n=n||e(iy.event)){var i,a,o=!0;return af.isFunction(s)&&(i=s(n)),a=r.call(t,n),(!1===i||!1===a)&&(o=!1),o}}}}}();var aS=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');af.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;
1function n(n){if(!ar.getElementsByTagName)return[];var r=n.split(" "),i=[ar];for(h=0;h<r.length;h++){if((c=r[h].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){d=(u=c.split("#"))[0];var a=u[1],o=ar.getElementById(a);if(!o||d&&o.nodeName.toLowerCase()!=d)return[];i=[o];continue}if(c.indexOf(".")>-1){d=(u=c.split("."))[0];var s=u[1];for(d||(d="*"),p=[],f=0,m=0;m<i.length;m++)for(g=0,y="*"==d?e(i[m]):i[m].getElementsByTagName(d);g<y.length;g++)p[f++]=y[g];for(m=0,i=[],v=0;m<p.length;m++)p[m].className&&af.isString(p[m].className)&&(" "+p[m].className+" ").replace(t," ").indexOf(" "+s+" ")>=0&&(i[v++]=p[m]);continue}var l=c.match(aS);if(l){d=l[1];var c,u,d,p,f,h,m,g,y,v,b,w=l[2],_=l[3],x=l[4];for(d||(d="*"),p=[],f=0,m=0;m<i.length;m++)for(g=0,y="*"==d?e(i[m]):i[m].getElementsByTagName(d);g<y.length;g++)p[f++]=y[g];switch(i=[],v=0,_){case"=":b=function(e){return e.getAttribute(w)==x};break;case"~":b=function(e){return e.getAttribute(w).match(RegExp("\\b"+x+"\\b"))};break;case"|":b=function(e){return e.getAttribute(w).match(RegExp("^"+x+"-?"))};break;case"^":b=function(e){return 0===e.getAttribute(w).indexOf(x)};break;case"$":b=function(e){return e.getAttribute(w).lastIndexOf(x)==e.getAttribute(w).length-x.length};break;case"*":b=function(e){return e.getAttribute(w).indexOf(x)>-1};break;default:b=function(e){return e.getAttribute(w)}}for(m=0,i=[],v=0;m<p.length;m++)b(p[m])&&(i[v++]=p[m]);continue}for(m=0,d=c,p=[],f=0;m<i.length;m++)for(g=0,y=i[m].getElementsByTagName(d);g<y.length;g++)p[f++]=y[g];i=p}return i}return function(e){return af.isElement(e)?[e]:af.isObject(e)&&!af.isUndefined(e.length)?e:n.call(this,e)}}();var ak=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],aC=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];af.info={campaignParams:function(e){var t="",n={};return af.each(ak,function(r){(t=af.getQueryParam(ar.URL,r)).length?n[r]=t:void 0!==e&&(n[r]=e)}),n},clickParams:function(){var e="",t={};return af.each(aC,function(n){(e=af.getQueryParam(ar.URL,n)).length&&(t[n]=e)}),t},marketingParams:function(){return af.extend(af.info.campaignParams(),af.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=af.info.searchEngine(e),n={};if(null!==t){n.$search_engine=t;var r=af.getQueryParam(e,"yahoo"!=t?"q":"p");r.length&&(n.mp_keyword=r)}return n},browser:function(e,t,n){if(t=t||"",n||af.includes(e," OPR/"))return af.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(af.includes(e,"IEMobile")||af.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(af.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(af.includes(e,"Edge")||af.includes(e,"Edg/"))return"Microsoft Edge";if(af.includes(e,"FBIOS"))return"Facebook Mobile";if(af.includes(e,"Chrome"))return"Chrome";else if(af.includes(e,"CriOS"))return"Chrome iOS";else if(af.includes(e,"UCWEB")||af.includes(e,"UCBrowser"))return"UC Browser";else if(af.includes(e,"FxiOS"))return"Firefox iOS";else if(af.includes(t,"Apple"))return af.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(af.includes(e,"Android"))return"Android Mobile";else if(af.includes(e,"Konqueror"))return"Konqueror";else if(af.includes(e,"Firefox"))return"Firefox";else if(af.includes(e,"MSIE")||af.includes(e,"Trident/"))return"Internet Explorer";else if(af.includes(e,"Gecko"))return"Mozilla";else return""},browserVersion:function(e,t,n){var r={"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+)?)/}[af.info.browser(e,t,n)];if(void 0===r)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},os:function(){if(/Windows/i.test(ao))return/Phone/.test(ao)||/WPDesktop/.test(ao)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(ao))return"iOS";if(/Android/.test(ao))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(ao))return"BlackBerry";if(/Mac/i.test(ao))return"Mac OS X";if(/Linux/.test(ao))return"Linux";if(/CrOS/.test(ao))return"Chrome OS";else return""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return iy.location.href},properties:function(e){return"object"!=typeof e&&(e={}),af.extend(af.strip_empty_properties({$os:af.info.os(),$browser:af.info.browser(ao,an.vendor,ai),$referrer:ar.referrer,$referring_domain:af.info.referringDomain(ar.referrer),$device:af.info.device(ao)}),{$current_url:af.info.currentUrl(),$browser_version:af.info.browserVersion(ao,an.vendor,ai),$screen_height:aa.height,$screen_width:aa.width,mp_lib:"web",$lib_version:i5.LIB_VERSION,$insert_id:aA(),time:af.timestamp()/1e3},af.strip_empty_properties(e))},people_properties:function(){return af.extend(af.strip_empty_properties({$os:af.info.os(),$browser:af.info.browser(ao,an.vendor,ai)}),{$browser_version:af.info.browserVersion(ao,an.vendor,ai)})},mpPageViewProperties:function(){return af.strip_empty_properties({current_page_title:ar.title,current_domain:iy.location.hostname,current_url_path:iy.location.pathname,current_url_protocol:iy.location.protocol,current_url_search:iy.location.search})}};var aI=function(e,t){var n=null,r=[];return function(i){var a=this;return r.push(i),n||(n=new g(function(i){setTimeout(function(){var t=e.apply(a,[r]);n=null,r=[],i(t)},t)}
1)),n}},aA=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},aT=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,aR=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,aN=function(e){var t=aR,n=e.split("."),r=n[n.length-1];(r.length>4||"com"===r||"org"===r)&&(t=aT);var i=e.match(t);return i?i[0]:""},aO=function(){var e=iy.navigator.onLine;return af.isUndefined(e)||e},aP=function(){},aD=null,aM=null;"undefined"!=typeof JSON&&(aD=JSON.stringify,aM=JSON.parse),aD=aD||af.JSONEncode,aM=aM||af.JSONDecode,af.info=af.info,af.info.browser=af.info.browser,af.info.browserVersion=af.info.browserVersion,af.info.device=af.info.device,af.info.properties=af.info.properties,af.isBlockedUA=af.isBlockedUA,af.isEmptyObject=af.isEmptyObject,af.isObject=af.isObject,af.JSONDecode=af.JSONDecode,af.JSONEncode=af.JSONEncode,af.toArray=af.toArray,af.NPO=i2;var a$="mixpanelRecordingEvents",aj="mixpanelRecordingRegistry",aL=[a$,aj],aF=function(e){this.dbPromise=null,this.storeName=e};function aB(e,t){aJ(!0,e,t)}function aU(e,t){aJ(!1,e,t)}function az(e,t){return"1"===aK(e,t)}function aZ(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||iy,n=t.navigator||{},r=!1;return af.each([n.doNotTrack,n.msDoNotTrack,t.doNotTrack],function(e){af.includes([!0,1,"1","yes"],e)&&(r=!0)}),r}(t))return ah.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 n="0"===aK(e,t);return n&&ah.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),n}function aV(e){return aX(e,function(e){return this.get_config(e)})}function aq(e){return aX(e,function(e){return this._get_config(e)})}function aW(e){return aX(e,function(e){return this._get_config(e)})}function aG(e,t){aH(t=t||{}).remove(aY(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function aH(e){return"localStorage"===(e=e||{}).persistenceType?af.localStorage:af.cookie}function aY(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function aK(e,t){return aH(t).get(aY(e,t))}function aJ(e,t,n){if(!af.isString(t)||!t.length){ah.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}aH(n=n||{}).set(aY(t,n),e?1:0,af.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&&e&&n.track(n.trackEventName||"$opt_in",n.trackProperties,{send_immediately:!0})}function aX(e,t){return function(){var n=!1;try{var r=t.call(this,"token"),i=t.call(this,"ignore_dnt"),a=t.call(this,"opt_out_tracking_persistence_type"),o=t.call(this,"opt_out_tracking_cookie_prefix"),s=t.call(this,"window");r&&(n=aZ(r,{ignoreDnt:i,persistenceType:a,persistencePrefix:o,window:s}))}catch(e){ah.error("Unexpected error when checking tracking opt-out status: "+e)}if(!n)return e.apply(this,arguments);var l=arguments[arguments.length-1];"function"==typeof l&&l(0)}}aF.prototype._openDb=function(){return new g(function(e,t){var n=iy.indexedDB.open("mixpanelBrowserDb",1);n.onerror=function(){t(n.error)},n.onsuccess=function(){e(n.result)},n.onupgradeneeded=function(e){var t=e.target.result;aL.forEach(function(e){t.createObjectStore(e)})}})},aF.prototype.init=function(){return iy.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof iy.IDBDatabase?g.resolve():g.reject(e)})):g.reject("indexedDB is not supported in this browser")},aF.prototype.makeTransaction=function(e,t){var n=this.storeName,r=function(r){return new g(function(i,a){var o=r.transaction(n,e);o.oncomplete=function(){i(o)},o.onabort=o.onerror=function(){a(o.error)},t(o.objectStore(n))})};return this.dbPromise.then(r).catch((function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(r)):g.reject(e)}).bind(this))},aF.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(n){n.put(t,e)})},aF.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(n){t=n.get(e)}).then(function(){return t.result})},aF.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},aF.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var aQ=ag("lock"),a0=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||iy.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||g};a0.prototype.withLock=function(e,t){return new this.promiseImpl(af.bind(function(n,r){var i=t||new Date().getTime()+"|"+Math.random(),a=new Date().getTime(),o=this.storageKey,s=this.pollIntervalMS,l=this.timeoutMS,c=this.storage,u=o+":X",d=o+":Y",p=o+":Z",f=function(e){if(new Date().getTime()-a>l){aQ.error("Timeout waiting for mutex on "+o+"; clearing lock. ["+i+"]"),c.removeItem(p),c.removeItem(d),g();return}setTimeout(function(){try{e()}catch(e){r(e)}},s*(Math.random()+.1))},h=function(e,t){e()?t():f(function(){h(e,t)})},m=function(){var e=c.getItem(d);return(!e||e===i)&&(c.setItem(d,i),c.getItem(d)===i||(a_(c,!0)||r(Error("localStorage support dropped while acquiring lock")),!1))},g=function(){c.setItem(u,i),h(m,function(){if(c.getItem(u)===i){y();return}f(function(){if(c.getItem(d)!==i){g();return}h(function(){return!c.getItem(p)},y)})})},y=function(){c.setItem(p,"1");var t=function(){c.removeItem(p),c.getItem(d)===i&&c.removeItem(d),c.getItem(u)===i&&c.removeItem(u)};e().then(function(e){t(),n(e)}).catch(function(e){t(),r(e)})};try{if(a_(c,!0))g();else throw Error("localStorage support check failed")}catch(e){r(e)}},this))};var a1=function(e){this.storage=e||iy.localStorage};a1.prototype.init=function(){return g.resolve()},a1.prototype.setItem=function(e,t){return new g(af.bind(function(n,r){try{this.storage.setItem(e,aD(t))}catch(e){r(e)}n()},this))},a1.prototype.getItem=function(e){return new g(af.bind(function(t,n){var r;try{r=aM(this.storage.getItem(e))}catch(e){n(e)}t(r)},this))},a1.prototype.removeItem=function(e){return new g(af.bind(function(t,n){try{this.storage.removeItem(e)}catch(e){n(e)}t()},this))};var a2=ag("batch"),a3=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new a1,this.lock=new a0(e,{storage:t.sharedLockStorage||iy.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||af.bind(a2.error,a2),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=aI(af.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=af.bind(function(e){return this._enqueuePersisted([e])},this)};a3.prototype.ensureInit=function(){return this.initialized?g.resolve():this.queueStorage.init(
1).then(af.bind(function(){this.initialized=!0},this)).catch(af.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},a3.prototype.enqueue=function(e,t){var n={id:aA(),flushAfter:new Date().getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(n):(this.memQueue.push(n),g.resolve(!0))},a3.prototype._enqueuePersisted=function(e){var t=af.bind(function(){return this.ensureInit().then(af.bind(function(){return this.readFromStorage()},this)).then(af.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(af.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(af.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(af.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},a3.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(af.bind(function(){return this.readFromStorage()},this)).then(af.bind(function(n){if(n.length){var r={};af.each(t,function(e){r[e.id]=!0});for(var i=0;i<n.length;i++){var a=n[i];if(new Date().getTime()>a.flushAfter&&!r[a.id]&&(a.orphaned=!0,t.push(a),t.length>=e))break}}return t},this)):g.resolve(t)};var a5=function(e,t){var n=[];return af.each(e,function(e){e.id&&!t[e.id]&&n.push(e)}),n};a3.prototype.removeItemsByID=function(e){var t={};if(af.each(e,function(e){t[e]=!0}),this.memQueue=a5(this.memQueue,t),!this.usePersistence)return g.resolve(!0);var n=af.bind(function(){return this.ensureInit().then(af.bind(function(){return this.readFromStorage()},this)).then(af.bind(function(e){return e=a5(e,t),this.saveToStorage(e)},this)).then(af.bind(function(){return this.readFromStorage()},this)).then(af.bind(function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.id&&t[r.id])throw Error("Item not removed from storage")}return!0},this)).catch(af.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(n,this.pid).catch(af.bind(function(e){return this.reportError("Error acquiring storage lock",e),!a_(this.lock.storage,!0)&&n().then(af.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(af.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))};var a4=function(e,t){var n=[];return af.each(e,function(e){var r=e.id;if(r in t){var i=t[r];null!==i&&(e.payload=i,n.push(e))}else n.push(e)}),n};a3.prototype.updatePayloads=function(e){return(this.memQueue=a4(this.memQueue,e),this.usePersistence)?this.lock.withLock(af.bind(function(){return this.ensureInit().then(af.bind(function(){return this.readFromStorage()},this)).then(af.bind(function(t){return t=a4(t,e),this.saveToStorage(t)},this)).catch(af.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(af.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):g.resolve(!0)},a3.prototype.readFromStorage=function(){return this.ensureInit().then(af.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(af.bind(function(e){return e&&!af.isArray(e)&&(this.reportError("Invalid storage entry:",e),e=null),e||[]},this)).catch(af.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},a3.prototype.saveToStorage=function(e){return this.ensureInit().then(af.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(af.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},a3.prototype.clear=function(){return(this.memQueue=[],this.usePersistence)?this.ensureInit().then(af.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):g.resolve()};var a9=ag("batch"),a6=function(e,t){this.errorReporter=t.errorReporter,this.queue=new a3(e,{errorReporter:af.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};a6.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},a6.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},a6.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},a6.prototype.clear=function(){return this.queue.clear()},a6.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},a6.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},a6.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(af.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},a6.prototype.sendRequestPromise=function(e,t){return new g(af.bind(function(n){this.sendRequest(e,t,n)},this))},a6.prototype.flush=function(e){if(this.requestInProgress)return a9.log("Flush: Request already in progress"),g.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,n=new Date().getTime(),r=this.batchSize;return this.queue.fillBatch(r).then(af.bind(function(i){var a=i.length===r,o=[],s={};if(af.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=af.extend({},t.properties,{mp_sent_by_lib_version:i5.LIB_VERSION}));var n=!0,r=e.id;r?(this.itemIdsSentSuccessfully[r]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[r]}),n=!1):this.reportError("[dupe] found item with no ID",{item:e}),n&&o.push(t)}s[e.id]=t},this),o.length<1)return this.requestInProgress=!1,this.resetFlush(),g.resolve();var l=af.bind(function(){return this.queue.removeItemsByID(af.map(i,function(e){return e.id})).then(af.bind(function(e){return(af.each(i,af.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&&!a)?(this.resetFlush(),g.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),g.resolve())},this))},this),c=af.bind(function(a){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(s);if(af.isObject(a)&&"timeout"===a.error&&new Date().getTime()-n>=t)return this.reportError("Network timeout; retrying"),this.flush();if(af.isObject(a)&&(a.httpStatusCode>=500||429===a.httpStatusCode||a.httpStatusCode<=0&&!aO()||"timeout"===a.error)){var o=2*this.flushInterval;
1return a.retryAfter&&(o=1e3*parseInt(a.retryAfter,10)||o),o=Math.min(6e5,o),this.reportError("Error; retry in "+o+" ms"),this.scheduleFlush(o),g.resolve()}if(!af.isObject(a)||413!==a.httpStatusCode)return l();if(!(i.length>1))return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),l();var c=Math.max(1,Math.floor(r/2));return this.batchSize=Math.min(this.batchSize,c,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),g.resolve()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(u.transport="sendBeacon"),a9.log("MIXPANEL REQUEST:",o),this.sendRequestPromise(o,u).then(c)},this)).catch(af.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},a6.prototype.reportError=function(e,t){if(a9.error.apply(a9.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){a9.error(e)}};var a7=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},a8=ag("recorder"),oe=iy.CompressionStream,ot={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},on=new Set([rx.MouseMove,rx.MouseInteraction,rx.Scroll,rx.ViewportResize,rx.Input,rx.TouchMove,rx.MediaInteraction,rx.Drag,rx.Selection]),or=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||aP,this._onMaxLengthReached=e.onMaxLengthReached||aP,this._onBatchSent=e.onBatchSent||aP,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.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=864e5,this.recordMinMs=0;var t=a_(e.sharedLockStorage,!0);this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new aF(a$),this.batcher=new a6(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:ot,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};or.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))},or.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},or.prototype.get_config=function(e){return this.getConfig(e)},or.prototype.startRecording=function(e){if(null===this._rrwebRecord){this.reportError("rrweb record function not provided. ");return}if(null!==this._stopRecording){a8.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,a8.critical("record_max_ms cannot be greater than 86400000ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>8e3&&(this.recordMinMs=8e3,a8.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=af.info.currentUrl(),this.replayStartUrl=af.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():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 n=this.getConfig("record_block_selector");(""===n||null===n)&&(n=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(e){if(this.idleExpires&&this.idleExpires<e.timestamp){this._onIdleTimeout();return}e.type===r_.IncrementalSnapshot&&on.has(e.data.source)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e)}
1).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:n,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}})}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 r=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),r)},or.prototype.stopRecording=function(e){var t;if(!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},or.prototype.isRrwebStopped=function(){return null===this._stopRecording},or.prototype.flushEventsWithOptOut=function(e,t,n){var r=(function(e){0===e&&(this.stopRecording(),n({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,n,r)},or.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,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},or.deserialize=function(e,t){return new or(af.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},or.prototype._sendRequest=function(e,t,n,r){var i=(function(t,n){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=af.info.currentUrl()),this._onBatchSent(),r({status:0,httpStatusCode:t.status,responseBody:n,retryAfter:t.headers.get("Retry-After")})}).bind(this);iy.fetch(this.getConfig("api_host")+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:n}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){r({error:e})})}).catch(function(e){r({error:e,httpStatusCode:0})})},or.prototype._flushEvents=aV(function(e,t,n){var r=e.length;if(r>0){for(var i=this.replayId,a=1/0,o=-1/0,s=!1,l=0;l<r;l++)a=Math.min(a,e[l].timestamp),o=Math.max(o,e[l].timestamp),e[l].type===r_.FullSnapshot&&(s=!0);if(0===this.seqNo){if(!s){n({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=a}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=a);var c=o-this.replayStartTime,u={$current_url:this.batchStartUrl,$lib_version:i5.LIB_VERSION,batch_start_time:a/1e3,distinct_id:String(this._mixpanel.get_distinct_id()),mp_lib:"web",replay_id:i,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},d=JSON.stringify(e),p=this._mixpanel.get_property("$device_id");p&&(u.$device_id=p);var f=this._mixpanel.get_property("$user_id");f&&(u.$user_id=f),oe?new Response(new Blob([d],{type:"application/json"}).stream().pipeThrough(new oe("gzip"))).blob().then((function(e){u.format="gzip",this._sendRequest(i,u,e,n)}).bind(this)):(u.format="body",this._sendRequest(i,u,d,n))}}),or.prototype.reportError=function(e,t){a8.error.apply(a8.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){a8.error(e)}};var oi=function(e){this.idb=new aF(aj),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};oi.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},oi.prototype.setActiveRecording=function(e){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."),g.resolve())},oi.prototype.getActiveRecording=function(){return this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return a7(e)?null:e}).bind(this)).catch(this.handleError.bind(this))},oi.prototype.clearActiveRecording=function(){return this.getActiveRecording().then((function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))},oi.prototype.flushInactiveRecordings=function(){return this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(e){return a7(e)}).map((function(e){return or.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then((function(){return this.idb.removeItem(e.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return g.all(t)}).bind(this)).catch(this.handleError.bind(this))};var oa=ag("recorder"),oo=function(e,t,n){this.mixpanelInstance=e,this.rrwebRecord=t||io,this.sharedLockStorage=n,this.recordingRegistry=new oi({mixpanelInstance:this.mixpanelInstance,errorReporter:oa.error,sharedLockStorage:n}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null};oo.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){oa.log("Recording already in progress, skipping startRecording.");return}var t=(function(){oa.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),n=(function(){oa.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),r=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:r,onIdleTimeout:t,onMaxLengthReached:n,replayId:af.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=or.deserialize(e.activeSerializedRecording,i):this.activeRecording=new or(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},oo.prototype.stopRecording=function(){var e=this._stopCurrentRecording(!1);return this.recordingRegistry.clearActiveRecording(),this.activeRecording=null,e},oo.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},oo.prototype._stopCurrentRecording=function(e){return this.activeRecording?this.activeRecording.stopRecording(e):g.resolve()},oo.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),g.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(oa.log("No resumable recording found."),null)}).bind(this))},oo.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},oo.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(oo.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),iy.__mp_recorder=oo;var os="change",ol="click",oc="hashchange",ou="mp_locationchange",od="popstate",op="scrollend",of="submit",oh=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],om=["mp-include"],og=["mp-no-track"],oy=og.concat(["mp-sensitive"]),ov=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],ob=ag("autocapture");function ow(e){for(var t={},n=o_(e).split(" "),r=0;r<n.length;r++){var i=n[r];i&&(t[i]=!0)}return t}function o_(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function ox(e,t,n,r,i,a){var o={$classes:o_(e).split(" "),$tag_name:e.tagName.toLowerCase()},s=e.id;s&&(o.$id=s),oT(e,t,i,a)&&af.each(ov.concat(r),function(t){if(e.hasAttribute(t)&&!n[t]){var r=e.getAttribute(t);oR(r)&&(o["$attr-"+t]=r)}});for(var l=1,c=1,u=e;u=function(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!oC(e));return e}(u);)l++,u.tagName===e.tagName&&c++;return o.$nth_child=l,o.$nth_of_type=c,o}function oE(e,t,n,r){var i="";return oT(e,t,n,r)&&e.childNodes&&e.childNodes.length&&af.each(e.childNodes,function(e){oA(e)&&e.textContent&&(i+=af.trim(e.textContent).split(/(\s+)/).filter(oR).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),af.trim(i)}function oS(e,t,n,r){if(n)try{if(!n(e,t))return!1}catch(e){return ob.critical("Error while checking element in allowElementCallback",e),!1}if(!r.length)return!0;for(var i=0;i<r.length;i++){var a=r[i];try{if(e.matches(a))return!0}catch(e){ob.critical("Error while checking selector: "+a,e)}}return!1}function ok(e,t,n,r){if(n)try{if(n(e,t))return!0}catch(e){return ob.critical("Error while checking element in blockElementCallback",e),!0}if(r&&r.length)for(i=0;i<r.length;i++){var i,a=r[i];try{if(e.matches(a))return!0}catch(e){ob.critical("Error while checking selector: "+a,e)}}var o=ow(e);for(i=0;i<og.length;i++)if(o[og[i]])return!0;return!1}function oC(e){return e&&1===e.nodeType}function oI(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}
1function oA(e){return e&&3===e.nodeType}function oT(e,t,n,r){if(!oS(e,t,n,r))return!1;for(var i,a=e;a.parentNode&&!oI(a,"body");a=a.parentNode){var o=ow(a);for(i=0;i<oy.length;i++)if(o[oy[i]])return!1}var s=ow(e);for(i=0;i<om.length;i++)if(s[om[i]])return!0;if(oI(e,"input")||oI(e,"select")||oI(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var l=e.type||"";if("string"==typeof l)switch(l.toLowerCase()){case"hidden":case"password":return!1}var c=e.name||e.id||"";return!("string"==typeof c&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(c.replace(/[^a-zA-Z0-9]/g,"")))}function oR(e){return!(null===e||af.isUndefined(e)||"string"==typeof e&&(e=af.trim(e),/^(?:(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}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}var oN="autocapture",oO="full-url",oP="allow_selectors",oD="allow_url_regexes",oM="block_attrs",o$="block_element_callback",oj="block_selectors",oL="block_url_regexes",oF="capture_extra_attrs",oB="capture_text_content",oU="scroll_capture_all",oz="scroll_depth_percent_checkpoints",oZ="click",oV="input",oq="pageview",oW="scroll",oG="submit",oH={};oH[oP]=[],oH[oD]=[],oH[oM]=[],oH[o$]=null,oH[oj]=[],oH[oL]=[],oH[oF]=[],oH[oB]=!1,oH[oU]=!1,oH[oz]=[25,50,75,100],oH[oZ]=!0,oH[oV]=!0,oH[oq]=oO,oH[oW]=!0,oH[oG]=!0;var oY={$mp_autocapture:!0},oK=function(e){this.mp=e};oK.prototype.init=function(){if(!function(){try{return!!ar.createElement("div").matches}catch(e){return!1}}()){ob.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageviewTracking(),this.initClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking()},oK.prototype.getFullConfig=function(){var e=this.mp.get_config(oN);return e?af.isObject(e)?af.extend({},oH,e):oH:{}},oK.prototype.getConfig=function(e){return this.getFullConfig()[e]},oK.prototype.currentUrlBlocked=function(){var e,t=af.info.currentUrl(),n=this.getConfig(oD)||[];if(n.length){var r=!1;for(e=0;e<n.length;e++){var i=n[e];try{if(t.match(i)){r=!0;break}}catch(e){return ob.critical("Error while checking block URL regex: "+i,e),!0}}if(!r)return!0}var a=this.getConfig(oL)||[];if(!a||!a.length)return!1;for(e=0;e<a.length;e++)try{if(t.match(a[e]))return!0}catch(t){return ob.critical("Error while checking block URL regex: "+a[e],t),!0}return!1},oK.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(oN)?this.getConfig(oq):this.mp.get_config("track_pageview")},oK.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var n=function(e,t){var n=t.allowElementCallback,r=t.allowSelectors||[],i=t.blockAttrs||[],a=t.blockElementCallback,o=t.blockSelectors||[],s=t.captureTextContent||!1,l=t.captureExtraAttrs||[],c={};af.each(i,function(e){c[e]=!0});var u=null,d=void 0===e.target?e.srcElement:e.target;if(oA(d)&&(d=d.parentNode),function(e,t){if(!e||oI(e,"html")||!oC(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===of;case"input":if(-1===["button","submit"].indexOf(e.getAttribute("type")))return t.type===os;return t.type===ol;case"select":case"textarea":return t.type===os;default:return t.type===ol}}(d,e)&&oS(d,e,n,r)&&!ok(d,e,a,o)){for(var p=[d],f=d;f.parentNode&&!oI(f,"body");)p.push(f.parentNode),f=f.parentNode;var h,m=[],g=!1;
1if(af.each(p,function(t){var i=oT(t,e,n,r);c.href||"a"!==t.tagName.toLowerCase()||(h=t.getAttribute("href"),h=i&&oR(h)&&h),ok(t,e,a,o)&&(g=!0),m.push(ox(t,e,c,l,n,r))},this),!g){var y=ar.documentElement;if(u={$event_type:e.type,$host:iy.location.host,$pathname:iy.location.pathname,$elements:m,$el_attr__href:h,$viewportHeight:Math.max(y.clientHeight,iy.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,iy.innerWidth||0)},af.each(l,function(e){if(!c[e]&&d.hasAttribute(e)){var t=d.getAttribute(e);oR(t)&&(u["$el_attr__"+e]=t)}}),s&&(v=oE(d,e,n,r))&&v.length&&(u.$el_text=v),e.type===ol&&(af.each(oh,function(t){t in e&&(u["$"+t]=e[t])}),d=function(e){for(var t=e.target,n=e.composedPath(),r=0;r<n.length;r++){var i=n[r];if(oI(i,"a")||oI(i,"button")||oI(i,"input")||oI(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),s){var v=oE(d,e,n,r);v&&v.length&&(u.$el_text=v)}if(d){if(!oS(d,e,n,r)||ok(d,e,a,o))return null;var b=ox(d,e,c,l,n,r);u.$target=b,u.$el_classes=b.$classes,af.extend(u,af.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return u}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(oP),blockAttrs:this.getConfig(oM),blockElementCallback:this.getConfig(o$),blockSelectors:this.getConfig(oj),captureExtraAttrs:this.getConfig(oF),captureTextContent:this.getConfig(oB)});n&&(af.extend(n,oY),this.mp.track(t,n))}},oK.prototype.initClickTracking=function(){iy.removeEventListener(ol,this.listenerClick),this.getConfig(oZ)&&(ob.log("Initializing click tracking"),this.listenerClick=iy.addEventListener(ol,(function(e){this.getConfig(oZ)&&this.trackDomEvent(e,"$mp_click")}).bind(this)))},oK.prototype.initInputTracking=function(){iy.removeEventListener(os,this.listenerChange),this.getConfig(oV)&&(ob.log("Initializing input tracking"),this.listenerChange=iy.addEventListener(os,(function(e){this.getConfig(oV)&&this.trackDomEvent(e,"$mp_input_change")}).bind(this)))},oK.prototype.initPageviewTracking=function(){if(iy.removeEventListener(od,this.listenerPopstate),iy.removeEventListener(oc,this.listenerHashchange),iy.removeEventListener(ou,this.listenerLocationchange),this.pageviewTrackingConfig()){ob.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(oY)),t&&(e=af.info.currentUrl()),this.listenerPopstate=iy.addEventListener(od,function(){iy.dispatchEvent(new Event(ou))}),this.listenerHashchange=iy.addEventListener(oc,function(){iy.dispatchEvent(new Event(ou))});var n=iy.history.pushState;"function"==typeof n&&(iy.history.pushState=function(e,t,r){n.call(iy.history,e,t,r),iy.dispatchEvent(new Event(ou))});var r=iy.history.replaceState;"function"==typeof r&&(iy.history.replaceState=function(e,t,n){r.call(iy.history,e,t,n),iy.dispatchEvent(new Event(ou))}),this.listenerLocationchange=iy.addEventListener(ou,ay((function(){if(!this.currentUrlBlocked()){var t=af.info.currentUrl(),n=!1,r=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===oO?n=t!==e:"url-with-path-and-query-string"===i?n=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===i&&(n=r),n&&(this.mp.track_pageview(oY)&&(e=t),r&&(this.lastScrollCheckpoint=0,ob.log("Path change: re-initializing scroll depth checkpoints")))}}).bind(this)))}},oK.prototype.initScrollTracking=function(){iy.removeEventListener(op,this.listenerScroll),this.getConfig(oW)&&(ob.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0,this.listenerScroll=iy.addEventListener(op,ay((function(){if(!(!this.getConfig(oW)||this.currentUrlBlocked())){var e=this.getConfig(oU),t=(this.getConfig(oz)||[]).slice().sort(function(e,t){return e-t}),n=iy.scrollY,r=af.extend({$scroll_top:n},oY);try{var i=ar.body.scrollHeight,a=Math.round(n/(i-iy.innerHeight)*100);if(r.$scroll_height=i,r.$scroll_percentage=a,a>this.lastScrollCheckpoint)for(var o=0;o<t.length;o++){var s=t[o];a>=s&&this.lastScrollCheckpoint<s&&(r.$scroll_checkpoint=s,this.lastScrollCheckpoint=s,e=!0)}}catch(e){ob.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",r)}}).bind(this))))},oK.prototype.initSubmitTracking=function(){iy.removeEventListener(of,this.listenerSubmit),this.getConfig(oG)&&(ob.log("Initializing submit tracking"),this.listenerSubmit=iy.addEventListener(of,(function(e){this.getConfig(oG)&&this.trackDomEvent(e,"$mp_submit")}).bind(this)))},function(e){var t=e.prototype;for(var n in t)"function"==typeof t[n]&&(t[n]=ay(t[n]))}(oK);var oJ=function(){};oJ.prototype.create_properties=function(){},oJ.prototype.event_handler=function(){},oJ.prototype.after_track_handler=function(){},oJ.prototype.init=function(e){return this.mp=e,this},oJ.prototype.track=function(e,t,n,r){var i=this,a=af.dom_query(e);if(0===a.length){ah.error("The DOM query ("+e+") returned 0 elements");return}return af.each(a,function(e){af.register_event(e,this.override_event,function(e){var a={},o=i.create_properties(n,this),s=i.mp.get_config("track_links_timeout");i.event_handler(e,this,a),window.setTimeout(i.track_callback(r,o,a,!0),s),i.mp.track(t,o,i.track_callback(r,o,a))})},this),!0},oJ.prototype.track_callback=function(e,t,n,r){r=r||!1;var i=this;return function(){!n.callback_fired&&(n.callback_fired=!0,e&&!1===e(r,t)||i.after_track_handler(t,n,r))}},oJ.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):af.extend({},e)};var oX=function(){this.override_event="click"};af.inherit(oX,oJ),oX.prototype.create_properties=function(e,t){var n=oX.superclass.create_properties.apply(this,arguments);return t.href&&(n.url=t.href),n},oX.prototype.event_handler=function(e,t,n){n.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,n.href=t.href,n.new_tab||e.preventDefault()},oX.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var oQ=function(){this.override_event="submit"};af.inherit(oQ,oJ),oQ.prototype.event_handler=function(e,t,n){n.element=t,e.preventDefault()},oQ.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var o0="$set",o1="$set_once",o2="$unset",o3="$add",o5="$append",o4="$union",o9="$remove",o6={set_action:function(e,t){var n={},r={};return af.isObject(e)?af.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[o0]=r,n},unset_action:function(e){var t={},n=[];return af.isArray(e)||(e=[e]),af.each(e,function(e){this._is_reserved_property(e)||n.push(e)},this),t[o2]=n,t},set_once_action:function(e,t){var n={},r={};return af.isObject(e)?af.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[o1]=r,n},union_action:function(e,t){var n={},r={};return af.isObject(e)?af.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=af.isArray(e)?e:[e])},this):r[e]=af.isArray(t)?t:[t],n[o4]=r,n},append_action:function(e,t){var n={},r={};return af.isObject(e)?af.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[o5]=r,n},remove_action:function(e,t){var n={},r={};return af.isObject(e)?af.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[o9]=r,n},delete_action:function(){var e={};return e.$delete="",e}},o7=function(){};af.extend(o7.prototype,o6),o7.prototype._init=function(e,t,n){this._mixpanel=e,this._group_key=t,this._group_id=n},o7.prototype.set=aW(function(e,t,n){var r=this.set_action(e,t);
1return af.isObject(e)&&(n=t),this._send_request(r,n)}),o7.prototype.set_once=aW(function(e,t,n){var r=this.set_once_action(e,t);return af.isObject(e)&&(n=t),this._send_request(r,n)}),o7.prototype.unset=aW(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)}),o7.prototype.union=aW(function(e,t,n){af.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)}),o7.prototype.delete=aW(function(e){var t=this.delete_action();return this._send_request(t,e)}),o7.prototype.remove=aW(function(e,t,n){var r=this.remove_action(e,t);return this._send_request(r,n)}),o7.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 n=af.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:n,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},o7.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},o7.prototype._get_config=function(e){return this._mixpanel.get_config(e)},o7.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},o7.prototype.remove=o7.prototype.remove,o7.prototype.set=o7.prototype.set,o7.prototype.set_once=o7.prototype.set_once,o7.prototype.union=o7.prototype.union,o7.prototype.unset=o7.prototype.unset,o7.prototype.toString=o7.prototype.toString;var o8=function(){};af.extend(o8.prototype,o6),o8.prototype._init=function(e){this._mixpanel=e},o8.prototype.set=aq(function(e,t,n){var r=this.set_action(e,t);return af.isObject(e)&&(n=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[o0]=af.extend({},af.info.people_properties(),r[o0]),this._send_request(r,n)}),o8.prototype.set_once=aq(function(e,t,n){var r=this.set_once_action(e,t);return af.isObject(e)&&(n=t),this._send_request(r,n)}),o8.prototype.unset=aq(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)}),o8.prototype.increment=aq(function(e,t,n){var r={},i={};return af.isObject(e)?(af.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e))){ah.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}i[t]=e}},this),n=t):(af.isUndefined(t)&&(t=1),i[e]=t),r[o3]=i,this._send_request(r,n)}),o8.prototype.append=aq(function(e,t,n){af.isObject(e)&&(n=t);var r=this.append_action(e,t);return this._send_request(r,n)}),o8.prototype.remove=aq(function(e,t,n){af.isObject(e)&&(n=t);var r=this.remove_action(e,t);return this._send_request(r,n)}),o8.prototype.union=aq(function(e,t,n){af.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)}),o8.prototype.track_charge=aq(function(e,t,n){if(!af.isNumber(e)&&isNaN(e=parseFloat(e))){ah.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",af.extend({$amount:e},t),n)}),o8.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},o8.prototype.delete_user=function(){if(!this._identify_called()){ah.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},o8.prototype.toString=function(){return this._mixpanel.toString()+".people"},o8.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");n&&(e.$device_id=n),r&&(e.$user_id=r),i&&(e.$had_persisted_distinct_id=i);var a=af.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:a,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),af.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),af.truncate(a,255))},o8.prototype._get_config=function(e){return this._mixpanel.get_config(e)},o8.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},o8.prototype._enqueue=function(e){o0 in e?this._mixpanel.persistence._add_to_people_queue(o0,e):o1 in e?this._mixpanel.persistence._add_to_people_queue(o1,e):o2 in e?this._mixpanel.persistence._add_to_people_queue(o2,e):o3 in e?this._mixpanel.persistence._add_to_people_queue(o3,e):o5 in e?this._mixpanel.persistence._add_to_people_queue(o5,e):o9 in e?this._mixpanel.persistence._add_to_people_queue(o9,e):o4 in e?this._mixpanel.persistence._add_to_people_queue(o4,e):ah.error("Invalid call to _enqueue():",e)},o8.prototype._flush_one_queue=function(e,t,n,r){var i=this,a=af.extend({},this._mixpanel.persistence.load_queue(e)),o=a;!af.isUndefined(a)&&af.isObject(a)&&!af.isEmptyObject(a)&&(i._mixpanel.persistence._pop_from_people_queue(e,a),i._mi
1xpanel.persistence.save(),r&&(o=r(a)),t.call(i,o,function(t,r){0===t&&i._mixpanel.persistence._add_to_people_queue(e,a),af.isUndefined(n)||n(t,r)}))},o8.prototype._flush=function(e,t,n,r,i,a,o){var s=this;this._flush_one_queue(o0,this.set,e),this._flush_one_queue(o1,this.set_once,r),this._flush_one_queue(o2,this.unset,a,function(e){return af.keys(e)}),this._flush_one_queue(o3,this.increment,t),this._flush_one_queue(o4,this.union,i);var l=this._mixpanel.persistence.load_queue(o5);if(!af.isUndefined(l)&&af.isArray(l)&&l.length)for(var c,u=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue(o5,c),af.isUndefined(n)||n(e,t)},d=l.length-1;d>=0;d--)c=(l=this._mixpanel.persistence.load_queue(o5)).pop(),s._mixpanel.persistence.save(),af.isEmptyObject(c)||s.append(c,u);var p=this._mixpanel.persistence.load_queue(o9);if(!af.isUndefined(p)&&af.isArray(p)&&p.length)for(var f,h=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue(o9,f),af.isUndefined(o)||o(e,t)},m=p.length-1;m>=0;m--)f=(p=this._mixpanel.persistence.load_queue(o9)).pop(),s._mixpanel.persistence.save(),af.isEmptyObject(f)||s.remove(f,h)},o8.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},o8.prototype.set=o8.prototype.set,o8.prototype.set_once=o8.prototype.set_once,o8.prototype.unset=o8.prototype.unset,o8.prototype.increment=o8.prototype.increment,o8.prototype.append=o8.prototype.append,o8.prototype.remove=o8.prototype.remove,o8.prototype.union=o8.prototype.union,o8.prototype.track_charge=o8.prototype.track_charge,o8.prototype.clear_charges=o8.prototype.clear_charges,o8.prototype.delete_user=o8.prototype.delete_user,o8.prototype.toString=o8.prototype.toString;var se="__mps",st="__mpso",sn="__mpus",sr="__mpa",si="__mpap",sa="__mpr",so="__mpu",ss="$people_distinct_id",sl="__alias",sc="__timers",su=[se,st,sn,sr,si,sa,so,ss,sl,sc],sd=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&&(ah.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&af.localStorage.is_supported()?this.storage=af.localStorage:this.storage=af.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};sd.prototype.properties=function(){var e={};return this.load(),af.each(this.props,function(t,n){af.include(su,n)||(e[n]=t)}),e},sd.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=af.extend({},e))}},sd.prototype.upgrade=function(){var e,t;this.storage===af.localStorage?(e=af.cookie.parse(this.name),af.cookie.remove(this.name),af.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===af.cookie&&(t=af.localStorage.parse(this.name),af.localStorage.remove(this.name),t&&this.register_once(t))},sd.prototype.save=function(){this.disabled||this.storage.set(this.name,aD(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},sd.prototype.load_prop=function(e){return this.load(),this.props[e]},sd.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},sd.prototype.clear=function(){this.remove(),this.props={}},sd.prototype.register_once=function(e,t,n){return!!af.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===n?this.default_expiry:n,this.load(),af.each(e,function(e,n){this.props.hasOwnProperty(n)&&this.props[n]!==t||(this.props[n]=e)},this),this.save(),!0)},sd.prototype.register=function(e,t){return!!af.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),af.extend(this.props,e),this.save(),!0)},sd.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},sd.prototype.update_search_keyword=function(e){this.register(af.info.searchInfo(e))},sd.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:af.info.referringDomain(e)||"$direct"},"")},sd.prototype.get_referrer_info=function(){return af.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},sd.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)},sd.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},sd.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},sd.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},sd.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},sd.prototype.get_cross_subdomain=function(){return this.cross_subdomain},sd.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},sd.prototype._add_to_people_queue=function(e,t){var n=this._get_queue_key(e),r=t[e],i=this._get_or_create_queue(o0),a=this._get_or_create_queue(o1),o=this._get_or_create_queue(o2),s=this._get_or_create_queue(o3),l=this._get_or_create_queue(o4),c=this._get_or_create_queue(o9,[]),u=this._get_or_create_queue(o5,[]);n===se?(af.extend(i,r),this._pop_from_people_queue(o3,r),this._pop_from_people_queue(o4,r),this._pop_from_people_queue(o2,r)):n===st?(af.each(r,function(e,t){t in a||(a[t]=e)}),this._pop_from_people_queue(o2,r)):n===sn?af.each(r,function(e){af.each([i,a,s,l],function(t){e in t&&delete t[e]}),af.each(u,function(t){e in t&&delete t[e]}),o[e]=!0}):n===sr?(af.each(r,function(e,t){t in i?i[t]+=e:(t in s||(s[t]=0),s[t]+=e)},this),this._pop_from_people_queue(o2,r)):n===so?(af.each(r,function(e,t){af.isArray(e)&&(t in l||(l[t]=[]),af.each(e,function(e){af.include(l[t],e)||l[t].push(e)}))}),this._pop_from_people_queue(o2,r)):n===sa?(c.push(r),this._pop_from_people_queue(o5,r)):n===si&&(u.pu
1sh(r),this._pop_from_people_queue(o2,r)),ah.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),ah.log(t),this.save()},sd.prototype._pop_from_people_queue=function(e,t){var n=this.props[this._get_queue_key(e)];af.isUndefined(n)||af.each(t,function(t,r){e===o5||e===o9?af.each(n,function(e){e[r]===t&&delete e[r]}):delete n[r]},this)},sd.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},sd.prototype._get_queue_key=function(e){return e===o0?se:e===o1?st:e===o2?sn:e===o3?sr:e===o5?si:e===o9?sa:e===o4?so:void ah.error("Invalid queue:",e)},sd.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=af.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)},sd.prototype.set_event_timer=function(e,t){var n=this.load_prop(sc)||{};n[e]=t,this.props[sc]=n,this.save()},sd.prototype.remove_event_timer=function(e){var t=(this.load_prop(sc)||{})[e];return af.isUndefined(t)||(delete this.props[sc][e],this.save()),t};var sp=function(e,t){throw Error(e+" not available in this build.")},sf=function(e){return e},sh="mixpanel",sm="base64",sg="$device:",sy=iy.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,sv=!sy&&-1===ao.indexOf("MSIE")&&-1===ao.indexOf("Mozilla"),sb=null;an.sendBeacon&&(sb=function(){return an.sendBeacon.apply(an,arguments)});var sw={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},s_={api_host:"https://api-js.mixpanel.com",api_routes:sw,api_method:"POST",api_transport:"XHR",api_payload_format:sm,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:aP,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:aP,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_block_class:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_canvas:!1,record_collect_fonts:!1,record_idle_timeout_ms:18e5,record_mask_text_class:RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:864e5,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},sx=!1,sE=function(){},sS=function(e,t,n){var r,i=n===sh?v:v[n];if(i&&0===y)r=i;else{if(i&&!af.isArray(i)){ah.error("You have already initialized "+n);return}r=new sE}if(r._cached_groups={},r._init(e,t,n),r.people=new o8,r.people._init(r),!r.get_config("skip_first_touch_marketing")){var a=af.info.campaignParams(null),o={},s=!1;af.each(a,function(e,t){o["initial_"+t]=e,e&&(s=!0)}),s&&r.people.set_once(o)}return i5.DEBUG=i5.DEBUG||r.get_config("debug"),!af.isUndefined(i)&&af.isArray(i)&&(r._execute_array.call(r.people,i.people),r._execute_array(i)),r};sE.prototype.init=function(e,t,n){if(af.isUndefined(n)){this.report_error("You must name your new library: init(token, config, name)");return}if(n===sh){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var r=sS(e,t,n);return v[n]=r,r._loaded(),r},sE.prototype._init=function(e,t,n){t=t||{},this.__loaded=!0,this.config={};var r={};if(!("api_payload_format"in t)&&(t.api_host||s_.api_host).match(/\.mixpanel\.com/)&&(r.a
1pi_payload_format="json"),this.set_config(af.extend({},s_,r,t,{name:n,token:e,callback_fn:(n===sh?n:sh+"."+n)+"._jsc"})),this._jsc=aP,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(af.localStorage.is_supported(!0)&&sy){if(this.init_batchers(),sb&&iy.addEventListener){var i=af.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);iy.addEventListener("pagehide",function(e){e.persisted&&i()}),iy.addEventListener("visibilitychange",function(){"hidden"===ar.visibilityState&&i()})}}else this._batch_requests=!1,ah.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),af.each(this.get_batcher_configs(),function(e){ah.log("Clearing batch queue "+e.queue_key),af.localStorage.remove(e.queue_key)})}this.persistence=this.cookie=new sd(this.config),this.unpersisted_superprops={},this._gdpr_init();var a=af.UUID();this.get_distinct_id()||this.register_once({distinct_id:sg+a,$device_id:a},""),this.autocapture=new oK(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},sE.prototype._init_tab_id=function(){if(af.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,n="mp_gen_new_tab_id_"+e;(af.sessionStorage.get(n)||!af.sessionStorage.get(t))&&af.sessionStorage.set(t,"$tab-"+af.UUID()),af.sessionStorage.set(n,"1"),this.tab_id=af.sessionStorage.get(t),iy.addEventListener("beforeunload",function(){af.sessionStorage.remove(n)})}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.")},sE.prototype.get_tab_id=function(){return this.tab_id||null},sE.prototype._should_load_recorder=function(){var e=new aF(aj),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(e){for(var n=0;n<e.length;n++)if(a7(e[n])||e[n].tabId===t)return!0;return!1}).catch(af.bind(function(e){this.report_error("Error checking recording registry",e)},this))},sE.prototype._check_and_start_session_recording=aV(function(e){if(!iy.MutationObserver){ah.critical("Browser does not support MutationObserver; skipping session recording");return}var t=af.bind(function(e){var t=af.bind(function(){this._recorder=this._recorder||new iy.__mp_recorder(this),this._recorder.resumeRecording(e)},this);af.isUndefined(iy.__mp_recorder)?sp(this.get_config("recorder_src"),t):t()},this),n=this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent");e||n?t(!0):this._should_load_recorder().then(function(e){e&&t(!1)})}),sE.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},sE.prototype.stop_session_recording=function(){this._recorder&&this._recorder.stopRecording()},sE.prototype.pause_session_recording=function(){this._recorder&&this._recorder.pauseRecording()},sE.prototype.resume_session_recording=function(){this._recorder&&this._recorder.resumeRecording()},sE.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},sE.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+af.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},sE.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},sE.prototype.__get_recorder=function(){return this._recorder},sE.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=af.info.campaignParams(null);af.each(e,(function(e,t){this.unregister(t)}).bind(this))}},sE.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(ar.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(af.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(ar.referrer)},sE.prototype._dom_loaded=function(){af.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||af.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},sE.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(!sx)return this.__dom_loaded_queue.push([e,t]),!1;var n=new e().init(this);return n.track.apply(n,t)},sE.prototype._prepare_callback=function(e,t){if(af.isUndefined(e))return null;if(sy)return function(n){e(n,t)};var n=this._jsc,r=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+r+"]";return n[r]=function(i){delete n[r],e(i,t)},i},sE.prototype._send_request=function(e,t,n,r){var i=!0;if(sv)return this.__request_queue.push(arguments),i;var a={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose
1:this.get_config("verbose")},o=null;!r&&(af.isFunction(n)||"string"==typeof n)&&(r=n,n=null),n=af.extend(a,n||{}),sy||(n.method="GET");var s="POST"===n.method,l=sb&&s&&"sendbeacon"===n.transport.toLowerCase(),c=n.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),!sy&&(r?t.callback=r:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),s&&(o="data="+encodeURIComponent(t.data),delete t.data),e+="?"+af.HTTPBuildQuery(t);var u=this;if("img"in t){var d=ar.createElement("img");d.src=e,ar.body.appendChild(d)}else if(l){try{i=sb(e,o)}catch(e){u.report_error(e),i=!1}try{r&&r(i?1:0)}catch(e){u.report_error(e)}}else if(sy)try{var p=new XMLHttpRequest;p.open(n.method,e,!0);var f=this.get_config("xhr_headers");if(s&&(f["Content-Type"]="application/x-www-form-urlencoded"),af.each(f,function(e,t){p.setRequestHeader(t,e)}),n.timeout_ms&&void 0!==p.timeout){p.timeout=n.timeout_ms;var h=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(4===p.readyState){if(200===p.status){if(r){if(c){try{e=af.JSONDecode(p.responseText)}catch(t){if(u.report_error(t),!n.ignore_json_errors)return;e=p.responseText}r(e)}else r(Number(p.responseText))}}else if(t=p.timeout&&!p.status&&new Date().getTime()-h>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,u.report_error(t),r){if(c){var e,t,i=p.responseHeaders||{};r({status:0,httpStatusCode:p.status,error:t,retryAfter:i["Retry-After"]})}else r(0)}}},p.send(o)}catch(e){u.report_error(e),i=!1}else{var m=ar.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=ar.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},sE.prototype._execute_array=function(e){var t,n=[],r=[],i=[];af.each(e,function(e){e&&(t=e[0],af.isArray(t)?i.push(e):"function"==typeof e?e.call(this):af.isArray(e)&&"alias"===t?n.push(e):af.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):r.push(e))},this);var a=function(e,t){af.each(e,function(e){if(af.isArray(e[0])){var n=t;af.each(e,function(e){n=n[e[0]].apply(n,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};a(n,this),a(r,this),a(i,this)},sE.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},sE.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},sE.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=af.bind(function(e){return new a6(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:af.bind(function(t,n,r){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),n,this._prepare_callback(r,t))},this),beforeSendHook:af.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:af.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()},sE.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,af.each(this.request_batchers,function(e){e.start()}))},sE.prototype.stop_batch_senders=function(){this._batch_requests=!1,af.each(this.request_batchers,function(e){e.stop(),e.clear()})},sE.prototype.push=function(e){this._execute_array([e])},sE.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},sE.prototype._encode_data_for_request=function(e){var t=aD(e);return this.get_config("api_payload_format")===sm&&(t=af.base64Encode(t)),{data:t}},sE.prototype._track_or_batch=function(e,t){var n=af.truncate(e.data,255),r=e.endpoint,i=e.batcher,a=e.should_send_immediately,o=e.send_request_options||{};t=t||aP;var s=!0,l=af.bind(function(){return(o.skip_hooks||(n=this._run_hook("before_send_"+e.type,n)),n)?(ah.log("MIXPANEL REQUEST:"),ah.log(n),this._send_request(r,this._encode_data_for_request(n),o,this._prepare_callback(t,n))):null},this);return this._batch_requests&&!a?i.enqueue(n).then(function(e){e?t(1,n):l()}):s=l(),s&&n},sE.prototype.track=aV(function(e,t,n,r){r||"function"!=typeof n||(r=n,n=null);var i=(n=n||{}).transport;i&&(n.transport=i);var a=n.send_immediately;if("function"!=typeof r&&(r=aP),af.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){r(0);return}(t=af.extend({},t)).token=this.get_config("token");var o=this.persistence.remove_event_timer(e);if(!af.isUndefined(o)){var s=new Date().getTime()-o;t.$duration=parseFloat((s/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?af.info.marketingParams():{};t=af.extend({},af.info.properties({mp_loader:this.get_config("mp_loader")}),l,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var c=this.get_config("property_blacklist");af.isArray(c)?af.each(c,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+c);var u={event:e,properties:t};return this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:a,send_request_options:n},r)}),sE.prototype.set_group=aV(function(e,t,n){af.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,n)}),sE.prototype.add_group=aV(function(e,t,n){var r=this.get_property(e),i={};return void 0===r?(i[e]=[t],this.register(i)):-1===r.indexOf(t)&&(r.push(t),i[e]=r,this.register(i)),this.people.union(e,t,n)}),sE.prototype.remove_group=aV(function(e,t,n){var r=this.get_property(e);if(void 0!==r){var i=r.indexOf(t);i>-1&&(r.splice(i,1),this.register({group_key:r})),0===r.length&&this.unregister(e)}return this.people.remove(e,t,n)}),sE.prototype.track_with_groups=aV(function(e,t,n,r){var i=af.extend({},t||{});return af.each(n,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,r)}),sE.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},sE.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},sE.prototype.get_group=function(e,t){var n=this._create_map_key(e,t),r=this._cached_groups[n];
1return(void 0===r||r._group_key!==e||r._group_id!==t)&&((r=new o7)._init(this,e,t),this._cached_groups[n]=r),r},sE.prototype.track_pageview=aV(function(e,t){"object"!=typeof e&&(e={});var n=(t=t||{}).event_name||"$mp_web_page_view",r=af.extend(af.info.mpPageViewProperties(),af.info.campaignParams(),af.info.clickParams()),i=af.extend({},r,e);return this.track(n,i)}),sE.prototype.track_links=function(){return this._track_dom.call(this,oX,arguments)},sE.prototype.track_forms=function(){return this._track_dom.call(this,oQ,arguments)},sE.prototype.time_event=function(e){if(af.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var sk={persistent:!0},sC=function(e){var t;return t=af.isObject(e)?e:af.isUndefined(e)?{}:{days:e},af.extend({},sk,t)};sE.prototype.register=function(e,t){var n=sC(t);n.persistent?this.persistence.register(e,n.days):af.extend(this.unpersisted_superprops,e)},sE.prototype.register_once=function(e,t,n){var r=sC(n);r.persistent?this.persistence.register_once(e,t,r.days):(void 0===t&&(t="None"),af.each(e,function(e,n){this.unpersisted_superprops.hasOwnProperty(n)&&this.unpersisted_superprops[n]!==t||(this.unpersisted_superprops[n]=e)},this))},sE.prototype.unregister=function(e,t){(t=sC(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},sE.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)},sE.prototype.identify=function(e,t,n,r,i,a,o,s){var l=this.get_distinct_id();if(e&&l!==e){if("string"==typeof e&&0===e.indexOf(sg))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:l},""),e!==l&&e!==this.get_property(sl)&&(this.unregister(sl),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,n,r,i,a,o,s),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})},sE.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=af.UUID();this.register_once({distinct_id:sg+e,$device_id:e},"")},sE.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},sE.prototype.alias=function(e,t){if(e===this.get_property(ss))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var n=this;return(af.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(sl,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){n.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},sE.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},sE.prototype.set_config=function(e){af.isObject(e)&&(af.extend(this.config,e),e.batch_size&&af.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),i5.DEBUG=i5.DEBUG||this.get_config("debug"),"autocapture"in e&&this.autocapture&&this.autocapture.init())},sE.prototype.get_config=function(e){return this.config[e]},sE.prototype._run_hook=function(e){var t=(this.config.hooks[e]||sf).apply(this,i7.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},sE.prototype.get_property=function(e){return this.persistence.load_prop([e])},sE.prototype.toString=function(){var e=this.get_config("name");return e!==sh&&(e=sh+"."+e),e},sE.prototype._event_is_disabled=function(e){return af.isBlockedUA(ao)||this._flags.disable_all_events||af.include(this.__disabled_events,e)},sE.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&af.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")||af.cookie.get("mp_optout"))&&(af.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},sE.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()},sE.prototype._gdpr_call_func=function(e,t){return t=af.extend({track:af.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),af.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
1:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},sE.prototype.opt_in_tracking=function(e){e=af.extend({enable_persistence:!0},e),this._gdpr_call_func(aB,e),this._gdpr_update_persistence(e)},sE.prototype.opt_out_tracking=function(e){(e=af.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(aU,e),this._gdpr_update_persistence(e)},sE.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(az,e)},sE.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(aZ,e)},sE.prototype.clear_opt_in_out_tracking=function(e){e=af.extend({enable_persistence:!0},e),this._gdpr_call_func(aG,e),this._gdpr_update_persistence(e)},sE.prototype.report_error=function(e,t){ah.error.apply(ah.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){ah.error(e)}},sE.prototype.init=sE.prototype.init,sE.prototype.reset=sE.prototype.reset,sE.prototype.disable=sE.prototype.disable,sE.prototype.time_event=sE.prototype.time_event,sE.prototype.track=sE.prototype.track,sE.prototype.track_links=sE.prototype.track_links,sE.prototype.track_forms=sE.prototype.track_forms,sE.prototype.track_pageview=sE.prototype.track_pageview,sE.prototype.register=sE.prototype.register,sE.prototype.register_once=sE.prototype.register_once,sE.prototype.unregister=sE.prototype.unregister,sE.prototype.identify=sE.prototype.identify,sE.prototype.alias=sE.prototype.alias,sE.prototype.name_tag=sE.prototype.name_tag,sE.prototype.set_config=sE.prototype.set_config,sE.prototype.get_config=sE.prototype.get_config,sE.prototype.get_property=sE.prototype.get_property,sE.prototype.get_distinct_id=sE.prototype.get_distinct_id,sE.prototype.toString=sE.prototype.toString,sE.prototype.opt_out_tracking=sE.prototype.opt_out_tracking,sE.prototype.opt_in_tracking=sE.prototype.opt_in_tracking,sE.prototype.has_opted_out_tracking=sE.prototype.has_opted_out_tracking,sE.prototype.has_opted_in_tracking=sE.prototype.has_opted_in_tracking,sE.prototype.clear_opt_in_out_tracking=sE.prototype.clear_opt_in_out_tracking,sE.prototype.get_group=sE.prototype.get_group,sE.prototype.set_group=sE.prototype.set_group,sE.prototype.add_group=sE.prototype.add_group,sE.prototype.remove_group=sE.prototype.remove_group,sE.prototype.track_with_groups=sE.prototype.track_with_groups,sE.prototype.start_batch_senders=sE.prototype.start_batch_senders,sE.prototype.stop_batch_senders=sE.prototype.stop_batch_senders,sE.prototype.start_session_recording=sE.prototype.start_session_recording,sE.prototype.stop_session_recording=sE.prototype.stop_session_recording,sE.prototype.pause_session_recording=sE.prototype.pause_session_recording,sE.prototype.resume_session_recording=sE.prototype.resume_session_recording,sE.prototype.get_session_recording_properties=sE.prototype.get_session_recording_properties,sE.prototype.get_session_replay_url=sE.prototype.get_session_replay_url,sE.prototype.get_tab_id=sE.prototype.get_tab_id,sE.prototype.DEFAULT_API_ROUTES=sw,sE.prototype.__get_recorder=sE.prototype.__get_recorder,sd.prototype.properties=sd.prototype.properties,sd.prototype.update_search_keyword=sd.prototype.update_search_keyword,sd.prototype.update_referrer_info=sd.prototype.update_referrer_info,sd.prototype.get_cross_subdomain=sd.prototype.get_cross_subdomain,sd.prototype.clear=sd.prototype.clear;var sI={},sA=function(){af.each(sI,function(e,t){t!==sh&&(v[t]=e)}),v._=af},sT=(sp=function(e,t){t()},y=0,(v=new sE).init=function(e,t,n){if(n)return v[n]||(v[n]=sI[n]=sS(e,t,n),v[n]._loaded()),v[n];var r=v;sI[sh]?r=sI[sh]:e&&((r=sS(e,t,sh))._loaded(),sI[sh]=r),v=r,1===y&&(iy[sh]=v),sA()},v.init(),function(){function e(){e.done||(e.done=!0,sx=!0,sv=!1,af.each(sI,function(e){e._dom_loaded()}))}if(ar.addEventListener)"complete"===ar.readyState?e():ar.addEventListener("DOMContentLoaded",e,!1);else if(ar.attachEvent){ar.attachEvent("onreadystatechange",e);var t=!1;try{t=null===iy.frameElement}catch(e){}ar.documentElement.doScroll&&t&&function t(){try{ar.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}af.register_event(iy,"load",e,!0)}(),v)},9580:function(e,t,n){"use strict";n.d(t,{PB:function(){return m},lX:function(){return h}});var r=n(75271),i=n(28702),a=n.n(i);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var l=["keyOverride"],c=["crossOrigin"],u={templateTitle:"",noindex:!1,nofollow:!1,norobots:!1,defaultOpenGra
1phImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},d=function(e,t,n){void 0===t&&(t=[]);var i=void 0===n?{}:n,a=i.defaultWidth,o=i.defaultHeight;return t.reduce(function(t,n,i){return t.push(r.createElement("meta",{key:"og:"+e+":0"+i,property:"og:"+e,content:n.url})),n.alt&&t.push(r.createElement("meta",{key:"og:"+e+":alt0"+i,property:"og:"+e+":alt",content:n.alt})),n.secureUrl&&t.push(r.createElement("meta",{key:"og:"+e+":secure_url0"+i,property:"og:"+e+":secure_url",content:n.secureUrl.toString()})),n.type&&t.push(r.createElement("meta",{key:"og:"+e+":type0"+i,property:"og:"+e+":type",content:n.type.toString()})),n.width?t.push(r.createElement("meta",{key:"og:"+e+":width0"+i,property:"og:"+e+":width",content:n.width.toString()})):a&&t.push(r.createElement("meta",{key:"og:"+e+":width0"+i,property:"og:"+e+":width",content:a.toString()})),n.height?t.push(r.createElement("meta",{key:"og:"+e+":height"+i,property:"og:"+e+":height",content:n.height.toString()})):o&&t.push(r.createElement("meta",{key:"og:"+e+":height"+i,property:"og:"+e+":height",content:o.toString()})),t},[])},p=function(e){var t,n,i,a,p,f=[];e.titleTemplate&&(u.templateTitle=e.titleTemplate);var h="";e.title?(h=e.title,u.templateTitle&&(h=u.templateTitle.replace(/%s/g,function(){return h}))):e.defaultTitle&&(h=e.defaultTitle),h&&f.push(r.createElement("title",{key:"title"},h));var m=void 0===e.noindex?u.noindex||e.dangerouslySetAllPagesToNoIndex:e.noindex,g=void 0===e.nofollow?u.nofollow||e.dangerouslySetAllPagesToNoFollow:e.nofollow,y=e.norobots||u.norobots,v="";if(e.robotsProps){var b=e.robotsProps,w=b.nosnippet,_=b.maxSnippet,x=b.maxImagePreview,E=b.maxVideoPreview,S=b.noarchive,k=b.noimageindex,C=b.notranslate,I=b.unavailableAfter;v=(w?",nosnippet":"")+(_?",max-snippet:"+_:"")+(x?",max-image-preview:"+x:"")+(S?",noarchive":"")+(I?",unavailable_after:"+I:"")+(k?",noimageindex":"")+(E?",max-video-preview:"+E:"")+(C?",notranslate":"")}if(e.norobots&&(u.norobots=!0),m||g?(e.dangerouslySetAllPagesToNoIndex&&(u.noindex=!0),e.dangerouslySetAllPagesToNoFollow&&(u.nofollow=!0),f.push(r.createElement("meta",{key:"robots",name:"robots",content:(m?"noindex":"index")+","+(g?"nofollow":"follow")+v}))):(!y||v)&&f.push(r.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+v})),e.description&&f.push(r.createElement("meta",{key:"description",name:"description",content:e.description})),e.themeColor&&f.push(r.createElement("meta",{key:"theme-color",name:"theme-color",content:e.themeColor})),e.mobileAlternate&&f.push(r.createElement("link",{rel:"alternate",key:"mobileAlternate",media:e.mobileAlternate.media,href:e.mobileAlternate.href})),e.languageAlternates&&e.languageAlternates.length>0&&e.languageAlternates.forEach(function(e){f.push(r.createElement("link",{rel:"alternate",key:"languageAlternate-"+e.hrefLang,hrefLang:e.hrefLang,href:e.href}))}),e.twitter&&(e.twitter.cardType&&f.push(r.createElement("meta",{key:"twitter:card",name:"twitter:card",content:e.twitter.cardType})),e.twitter.site&&f.push(r.createElement("meta",{key:"twitter:site",name:"twitter:site",content:e.twitter.site})),e.twitter.handle&&f.push(r.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:e.twitter.handle}))),e.facebook&&e.facebook.appId&&f.push(r.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:e.facebook.appId})),(null!=(t=e.openGraph)&&t.title||h)&&f.push(r.createElement("meta",{key:"og:title",property:"og:title",content:(null==(a=e.openGraph)?void 0:a.title)||h})),(null!=(n=e.openGraph)&&n.description||e.description)&&f.push(r.createElement("meta",{key:"og:description",property:"og:description",content:(null==(p=e.openGraph)?void 0:p.description)||e.description})),e.openGraph){if((e.openGraph.url||e.canonical)&&f.push(r.createElement("meta",{key:"og:url",property:"og:url",content:e.openGraph.url||e.canonical})),e.openGraph.type){var A=e.openGraph.type.toLowerCase();f.push(r.createElement("meta",{key:"og:type",property:"og:type",content:A})),"profile"===A&&e.openGraph.profile?(e.openGraph.profile.firstName&&f.push(r.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:e.openGraph.profile.firstName})),e.openGraph.profile.lastName&&f.push(r.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:e.openGraph.profile.lastName})),e.openGraph.profile.username&&f.push(r.createElement("meta",{key:"profile:username",property:"profile:username",content:e.openGraph.profile.username})),e.openGraph.profile.gender&&f.push(r.createElement("meta",{key:"profile:gender",property:"profile:gender",content:e.openGraph.profile.gender}))):"book"===A&&e.openGraph.book?(e.openGraph.book.authors&&e.openGraph.book.authors.length&&e.openGraph.book.authors.forEac
1h(function(e,t){f.push(r.createElement("meta",{key:"book:author:0"+t,property:"book:author",content:e}))}),e.openGraph.book.isbn&&f.push(r.createElement("meta",{key:"book:isbn",property:"book:isbn",content:e.openGraph.book.isbn})),e.openGraph.book.releaseDate&&f.push(r.createElement("meta",{key:"book:release_date",property:"book:release_date",content:e.openGraph.book.releaseDate})),e.openGraph.book.tags&&e.openGraph.book.tags.length&&e.openGraph.book.tags.forEach(function(e,t){f.push(r.createElement("meta",{key:"book:tag:0"+t,property:"book:tag",content:e}))})):"article"===A&&e.openGraph.article?(e.openGraph.article.publishedTime&&f.push(r.createElement("meta",{key:"article:published_time",property:"article:published_time",content:e.openGraph.article.publishedTime})),e.openGraph.article.modifiedTime&&f.push(r.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:e.openGraph.article.modifiedTime})),e.openGraph.article.expirationTime&&f.push(r.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:e.openGraph.article.expirationTime})),e.openGraph.article.authors&&e.openGraph.article.authors.length&&e.openGraph.article.authors.forEach(function(e,t){f.push(r.createElement("meta",{key:"article:author:0"+t,property:"article:author",content:e}))}),e.openGraph.article.section&&f.push(r.createElement("meta",{key:"article:section",property:"article:section",content:e.openGraph.article.section})),e.openGraph.article.tags&&e.openGraph.article.tags.length&&e.openGraph.article.tags.forEach(function(e,t){f.push(r.createElement("meta",{key:"article:tag:0"+t,property:"article:tag",content:e}))})):("video.movie"===A||"video.episode"===A||"video.tv_show"===A||"video.other"===A)&&e.openGraph.video&&(e.openGraph.video.actors&&e.openGraph.video.actors.length&&e.openGraph.video.actors.forEach(function(e,t){e.profile&&f.push(r.createElement("meta",{key:"video:actor:0"+t,property:"video:actor",content:e.profile})),e.role&&f.push(r.createElement("meta",{key:"video:actor:role:0"+t,property:"video:actor:role",content:e.role}))}),e.openGraph.video.directors&&e.openGraph.video.directors.length&&e.openGraph.video.directors.forEach(function(e,t){f.push(r.createElement("meta",{key:"video:director:0"+t,property:"video:director",content:e}))}),e.openGraph.video.writers&&e.openGraph.video.writers.length&&e.openGraph.video.writers.forEach(function(e,t){f.push(r.createElement("meta",{key:"video:writer:0"+t,property:"video:writer",content:e}))}),e.openGraph.video.duration&&f.push(r.createElement("meta",{key:"video:duration",property:"video:duration",content:e.openGraph.video.duration.toString()})),e.openGraph.video.releaseDate&&f.push(r.createElement("meta",{key:"video:release_date",property:"video:release_date",content:e.openGraph.video.releaseDate})),e.openGraph.video.tags&&e.openGraph.video.tags.length&&e.openGraph.video.tags.forEac
1h(function(e,t){f.push(r.createElement("meta",{key:"video:tag:0"+t,property:"video:tag",content:e}))}),e.openGraph.video.series&&f.push(r.createElement("meta",{key:"video:series",property:"video:series",content:e.openGraph.video.series})))}e.defaultOpenGraphImageWidth&&(u.defaultOpenGraphImageWidth=e.defaultOpenGraphImageWidth),e.defaultOpenGraphImageHeight&&(u.defaultOpenGraphImageHeight=e.defaultOpenGraphImageHeight),e.openGraph.images&&e.openGraph.images.length&&f.push.apply(f,d("image",e.openGraph.images,{defaultWidth:u.defaultOpenGraphImageWidth,defaultHeight:u.defaultOpenGraphImageHeight})),e.defaultOpenGraphVideoWidth&&(u.defaultOpenGraphVideoWidth=e.defaultOpenGraphVideoWidth),e.defaultOpenGraphVideoHeight&&(u.defaultOpenGraphVideoHeight=e.defaultOpenGraphVideoHeight),e.openGraph.videos&&e.openGraph.videos.length&&f.push.apply(f,d("video",e.openGraph.videos,{defaultWidth:u.defaultOpenGraphVideoWidth,defaultHeight:u.defaultOpenGraphVideoHeight})),e.openGraph.audio&&f.push.apply(f,d("audio",e.openGraph.audio)),e.openGraph.locale&&f.push(r.createElement("meta",{key:"og:locale",property:"og:locale",content:e.openGraph.locale})),(e.openGraph.siteName||e.openGraph.site_name)&&f.push(r.createElement("meta",{key:"og:site_name",property:"og:site_name",content:e.openGraph.siteName||e.openGraph.site_name}))}return e.canonical&&f.push(r.createElement("link",{rel:"canonical",href:e.canonical,key:"canonical"})),e.additionalMetaTags&&e.additionalMetaTags.length>0&&e.additionalMetaTags.forEach(function(e){var t,n,i=e.keyOverride,a=s(e,l);f.push(r.createElement("meta",o({key:"meta:"+(null!=(t=null!=(n=null!=i?i:a.name)?n:a.property)?t:a.httpEquiv)},a)))}),null!=(i=e.additionalLinkTags)&&i.length&&e.additionalLinkTags.forEach(function(e){var t,n=e.crossOrigin,i=s(e,c);f.push(r.createElement("link",o({key:"link"+(null!=(t=i.keyOverride)?t:i.href)+i.rel},i,{crossOrigin:"anonymous"===n||"use-credentials"===n||""===n?n:void 0})))}),f},f=function(e){return r.createElement(a(),null,p(e))},h=function(e){var t=e.title,n=e.titleTemplate,i=e.defaultTitle,a=e.themeColor,o=e.dangerouslySetAllPagesToNoIndex,s=e.dangerouslySetAllPagesToNoFollow,l=e.description,c=e.canonical,u=e.facebook,d=e.openGraph,p=e.additionalMetaTags,h=e.twitter,m=e.defaultOpenGraphImageWidth,g=e.defaultOpenGraphImageHeight,y=e.defaultOpenGraphVideoWidth,v=e.defaultOpenGraphVideoHeight,b=e.mobileAlternate,w=e.languageAlternates,_=e.additionalLinkTags,x=e.robotsProps,E=e.norobots;return r.createElement(f,{title:t,titleTemplate:n,defaultTitle:i,themeColor:a,dangerouslySetAllPagesToNoIndex:void 0!==o&&o,dangerouslySetAllPagesToNoFollow:void 0!==s&&s,description:l,canonical:c,facebook:u,openGraph:d,additionalMetaTags:p,twitter:h,defaultOpenGraphImageWidth:m,defaultOpenGraphImageHeight:g,defaultOpenGraphVideoWidth:y,defaultOpenGraphVideoHeight:v,mobileAlternate:b,languageAlternates:w,additionalLinkTags:_,robotsProps:x,norobots:E})},m=function(e){var t=e.title,n=e.themeColor,i=e.noindex,a=e.nofollow,o=e.robotsProps,s=e.description,l=e.canonical,c=e.openGraph,u=e.facebook,d=e.twitter,p=e.additionalMetaTags,h=e.titleTemplate,m=e.defaultTitle,g=e.mobileAlternate,y=e.languageAlternates,v=e.additionalLinkTags;return r.createElement(r.Fragment,null,r.createElement(f,{title:t,themeColor:n,noindex:i,nofollow:a,robotsProps:o,description:s,canonical:l,facebook:u,openGraph:c,additionalMetaTags:p,twitter:d,titleTemplate:h,defaultTitle:m,mobileAlternate:g,languageAlternates:y,additionalLinkTags:v}))};RegExp("["+Object.keys(Object.freeze({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"})).join("")+"]","g")},97371:function(e,t,n){e.exports=n(23798)},75968:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(25357)}])},76371:function(e,t,n){"use strict";let r,i,a,o,s,l,c,u,d,p,f,h,m,g,y,v,b,w,_,x;var E,S,k,C,I,A,T,R,N,O=n(17666),P=n(75184),D=n(97543);function M(e,t,n=[t],r="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:D.J})),version:D.J}),e._metadata=i}var $=n(3539),j=n(74141),L=n(64289),F=n(48467),B=n(29995),U=n(12943);let z=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Z=(0,L._I)((e={})=>{let t;return{name:"EventFilters",setup(n){t=q(e,n.getOptions())},processEvent:(n,r,i)=>(t||(t=q(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let n=e.transaction;return!!n&&(0,U.U0)(n,t)}(e,t.ignoreTransactions))return j.X&&P.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
2Event: ${(0,B.jH)(e)}`),!0}else{var n;if(n=t.ignoreErrors,n?.length&&(0,F.h)(e).some(e=>(0,U.U0)(e,n)))return j.X&&P.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
3Event: ${(0,B.jH)(e)}`),!0;if(e.exception?.values?.length&&!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return j.X&&P.kg.warn(`Event dropped due to not having an error message, error type or stacktrace.
4Event: ${(0,B.jH)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let n=W(e);return!!n&&(0,U.U0)(n,t)}(e,t.denyUrls))return j.X&&P.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.
5Event: ${(0,B.jH)(e)}.
6Url: ${W(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let n=W(e);return!n||(0,U.U0)(n,t)}(e,t.allowUrls))return j.X&&P.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.
7Event: ${(0,B.jH)(e)}.
8Url: ${W(e)}`),!0}return!1}(n,t)?n:null)}}),V=(0,L._I)((e={})=>({...Z(e),name:"InboundFilters"}));function q(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:z],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function W(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(t){return j.X&&P.kg.error(`Cannot extract url for event ${(0,B.jH)(e)}`),null}}var G=n(39164),H=n(40130);let Y=new WeakMap,K=(0,L._I)(()=>({name:"FunctionToString",setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,H.HK)(this),n=Y.has((0,G.s3)())&&void 0!==t?t:this;return r.apply(n,e)}}catch{}},setup(e){Y.set(e,!0)}}));var J=n(61553);let X=(0,L._I)(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n;if((n=e)&&(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&ee(e,t)&&Q(e,t))}(t,n)||function(e,t){let n=et(t),r=et(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&ee(e,t)&&Q(e,t))}(t,n)))return j.X&&P.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function Q(e,t){let n=(0,J.Fr)(e),r=(0,J.Fr)(t);if(!n&&!r)return!0;
8if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function ee(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function et(e){return e.exception?.values&&e.exception.values[0]}var en=n(25659),er=n(91821);function ei(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function ea(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}var eo=n(41356),es=n(28725),el=n(70532);function ec(e,t){let n=ed(e,t),r={type:function(e){let t=e?.name;return!t&&ef(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e?.message;return ef(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function eu(e,t){return{exception:{values:[ec(e,t)]}}}function ed(e,t){let n=t.stacktrace||t.stack||"",r=t&&ep.test(t.message)?1:0,i="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(n,r,i)}catch(e){}return[]}let ep=/Minified React error #\d+;/i;function ef(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function eh(e,t,n,r,i){let a;if((0,es.VW)(t)&&t.error)return eu(e,t.error);if((0,es.TX)(t)||(0,es.fm)(t)){if("stack"in t)a=eu(e,t);else{let i=t.name||((0,es.TX)(t)?"DOMError":"DOMException"),o=t.message?`${i}: ${t.message}`:i;a=em(e,o,n,r),(0,B.Db)(a,o)}return"code"in t&&(a.tags={...a.tags,"DOMException.code":`${t.code}`}),a}return(0,es.VZ)(t)?eu(e,t):((0,es.PO)(t)||(0,es.cO)(t)?a=function(e,t,n,r){let i=(0,G.s3)(),a=i?.getOptions().normalizeDepth,o=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),s={__serialized__:(0,eo.Qy)(t,a)};if(o)return{exception:{values:[ec(e,o)]},extra:s};let l={exception:{values:[{type:(0,es.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,H.zf)(e),r=t?"promise rejection":"exception";if((0,es.VW)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,es.cO)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:s};if(n){let t=ed(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,i):(a=em(e,t,n,r),(0,B.Db)(a,`${t}`,void 0)),(0,B.EG)(a,{synthetic:!0}),a)}function em(e,t,n,r){let i={};if(r&&n){let r=ed(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),(0,B.EG)(i,{synthetic:!0})}if((0,es.Le)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}var eg=n(15586);let ey=O.GLOBAL_OBJ,ev=0;function eb(e,t={}){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t){if("function"==typeof t)return t;return e}if((0,H.HK)(e))return e}catch(t){return e}let n=function(...n){try{let r=n.map(e=>eb(e,t));return e.apply(this,r)}catch(e){throw ev++,setTimeout(()=>{ev--}),(0,G.$e)(r=>{r.addEventProcessor(e=>(t.mechanism&&((0,B.Db)(e,void 0,void 0),(0,B.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),(0,$.Tb)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}(0,H.$Q)(n,e),(0,H.xp)(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function ew(){let e=(0,eg.l4)(),{referrer:t}=ey.document||{},{userAgent:n}=ey.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}class e_ extends en.KU{constructor(e){let t={release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:ey.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e};M(t,"browser",["browser"],ey.SENTRY_SDK_SOURCE||"npm"),super(t);let{sendDefaultPii:n,sendClientReports:r,_experiments:i}=this._options,a=i?.enableLogs;ey.document&&(r||a)&&ey.document.addEventListener("visibilitychange",()=>{"hidden"===ey.document.visibilityState&&(r&&this._flushOutcomes(),a&&(0,er.lP)(this))}),a&&(this.on("flush",()=>{(0,er.lP)(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{(0,er.lP)(this)},5e3)})),n&&(this.on("postprocessEvent",ei),this.on("beforeSendSession",ea))}eventFromException(e,t){return function(e,t,n,r){let i=eh(e,t,n?.syntheticException||void 0,r);return(0,B.EG)(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),(0,el.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let a=em(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),(0,el.WD)(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}let ex={},eE={};function eS(e,t){ex[e]=ex[e]||[],ex[e].push(t)}function ek(e,t){if(!eE[e]){eE[e]=!0;try{t()}catch(t){j.X&&P.kg.error(`Error while instrumenting ${e}`,t)}}}function eC(e,t){let n=e&&ex[e];if(n)for(let r of n)try{r(t)}catch(t){j.X&&P.kg.error(`Error while triggering instrumentation handler.
9Type: ${e}
10Name: ${(0,J.$P)(r)}
11Error:`,t)}}function eI(){"console"in O.GLOBAL_OBJ&&P.RU.forEach(function(e){e in O.GLOBAL_OBJ.console&&(0,H.hl)(O.GLOBAL_OBJ.console,e,function(t){return P.LD[e]=t,function(...t){eC("console",{args:t,level:e});let n=P.LD[e];n?.apply(O.GLOBAL_OBJ.console,t)}})})}let eA=O.GLOBAL_OBJ;function eT(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var eR=n(31347);function eN(e,t){let n="fetch";eS(n,e),ek(n,()=>eO(void 0,t))}function eO(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;
11if(!function(){if(!("fetch"in eA))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(eT(eA.fetch))return!0;let e=!1,t=eA.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=eT(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){j.X&&P.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&(0,H.hl)(O.GLOBAL_OBJ,"fetch",function(t){return function(...n){let r=Error(),{method:i,url:a}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:e$(t),method:eM(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:e$(t),method:eM(t,"method")?String(t.method).toUpperCase():"GET"}}(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:1e3*(0,eR.ph)(),virtualError:r,headers:function(e){let[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if((0,es.gJ)(t))return new Headers(t.headers)}catch{}}(n)};return e||eC("fetch",{...o}),t.apply(O.GLOBAL_OBJ,n).then(async t=>(e?e(t):eC("fetch",{...o,endTimestamp:1e3*(0,eR.ph)(),response:t}),t),e=>{if(eC("fetch",{...o,endTimestamp:1e3*(0,eR.ph)(),error:e}),(0,es.VZ)(e)&&void 0===e.stack&&(e.stack=r.stack,(0,H.xp)(e,"framesToPop",1)),e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(o.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e})}})}async function eP(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch(e){a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function eD(e){let t;try{t=e.clone()}catch{return}eP(t,()=>{eC("fetch-body-resolved",{endTimestamp:1e3*(0,eR.ph)(),response:e})})}function eM(e,t){return!!e&&"object"==typeof e&&!!e[t]}function e$(e){return"string"==typeof e?e:e?eM(e,"url")?e.url:e.toString?e.toString():"":""}var ej=n(24499);function eL(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function eF(e){return"isRelative"in e}function eB(e,t){let n=0>=e.indexOf("://")&&0!==e.indexOf("//"),r=t??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);if(n)return{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function eU(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function ez(e){return e.split(/[?#]/,1)[0]}let eZ=O.GLOBAL_OBJ;function eV(e){eS("dom",e),ek("dom",eq)}function eq(){if(!eZ.document)return;let e=eC.bind(null,"dom"),t=eW(e,!0);eZ.document.addEventListener("click",t,!1),eZ.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=eZ[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&((0,H.hl)(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=eW(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(e){}return t.call(this,n,r,i)}}),(0,H.hl)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function eW(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=function(e){try{return e.target}catch(e){return null}}(n);if("keypress"===n.type&&(!r?.tagName||"INPUT"!==r.tagName&&"TEXTAREA"!==r.tagName&&!r.isContentEditable))return;(0,H.xp)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,H.xp)(r,"_sentryId",(0,B.DM)());let s="keypress"===n.type?"input":n.type;!function(e){if(e.type!==a)return!1;try{if(!e.target||e.target._sentryId!==o)return!1}catch(e){}return!0}(n)&&(e({event:n,name:s,global:t}),a=n.type,o=r?r._sentryId:void 0),clearTimeout(i),i=eZ.setTimeout(()=>{o=void 0,a=void 0},1e3)}}let eG="__sentry_xhr_v3__";function eH(e){eS("xhr",e),ek("xhr",eY)}function eY(){if(!eZ.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=1e3*(0,eR.ph)(),a=(0,es.HD)(n[0])?n[0].toUpperCase():void 0,o=function(e){if((0,es.HD)(e))return e;try{return e.toString()}catch{}}(n[1]);if(!a||!o)return e.apply(t,n);t[eG]={method:a,url:o,request_headers:{}}
11,"POST"===a&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[eG];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}eC("xhr",{endTimestamp:1e3*(0,eR.ph)(),startTimestamp:i,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(s(),e.apply(t,n))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[eG];return a&&(0,es.HD)(r)&&(0,es.HD)(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[eG];return r&&(void 0!==n[0]&&(r.body=n[0]),eC("xhr",{startTimestamp:1e3*(0,eR.ph)(),xhr:t})),e.apply(t,n)}})}function eK(e){let t="history";eS(t,e),ek(t,eJ)}function eJ(){eZ.addEventListener("popstate",()=>{let e=eZ.location.href,t=s;s=e,t!==e&&eC("history",{from:t,to:e})}),"history"in eA&&eA.history&&((0,H.hl)(eZ.history,"pushState",e),(0,H.hl)(eZ.history,"replaceState",e));function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=s,i=function(e){try{return new URL(e,eZ.location.origin).toString()}catch{return e}}(String(n));if(s=i,r===i)return e.apply(this,t);eC("history",{from:r,to:i})}return e.apply(this,t)}}}let eX=(0,L._I)((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){let t="console";eS(t,e),ek(t,eI)}(function(t){var n;if((0,G.s3)()!==e)return;let r={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(n=t.level)?"warning":["fatal","error","warning","log","info","debug"].includes(n)?n:"log",message:(0,U.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${(0,U.nK)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}(0,ej.n)(r,{input:t.args,level:t.level})}),t.dom&&eV((n=t.dom,function(t){let r,i;if((0,G.s3)()!==e)return;let a="object"==typeof n?n.serializeAttribute:void 0,o="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;o&&o>1024&&(o=1024),"string"==typeof a&&(a=[a]);try{let e=t.event,n=e&&e.target?e.target:e;r=(0,eg.Rt)(n,{keyAttrs:a,maxStringLength:o}),i=(0,eg.iY)(n)}catch(e){r="<unknown>"}if(0===r.length)return;let s={category:`ui.${t.name}`,message:r};i&&(s.data={"ui.component_name":i}),(0,ej.n)(s,{event:t.event,name:t.name,global:t.global})})),t.xhr&&eH(function(t){if((0,G.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[eG];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:l}=i,c={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r},u={category:"xhr",data:{method:a,url:o,status_code:s},type:"http",level:eL(s)};e.emit("beforeOutgoingRequestBreadcrumb",u,c),(0,ej.n)(u,c)}),t.fetch&&eN(function(t){if((0,G.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(!(!r||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.fetchData.method,t.fetchData.url,t.error){let i=t.fetchData,a={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},o={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,a),(0,ej.n)(o,a)}else{let i=t.response,a={...t.fetchData,status_code:i?.status};t.fetchData.request_body_size,t.fetchData.response_body_size,i?.status;let o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:"fetch",data:a,type:"http",level:eL(a.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",s,o),(0,ej.n)(s,o)}}}),t.history&&eK(function(t){if((0,G.s3)()!==e)return;let n=t.from,r=t.to,i=eU(ey.location.href),a=n?eU(n):void 0,o=eU(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),(0,ej.n)({category:"navigation",data:{from:n,to:r}})}),t.sentry&&e.on("beforeSendEvent",function(t){(0,G.s3)()===e&&(0,ej.n)({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,B.jH)(t)},{event:t})})}}}),eQ=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],e0=(0,L._I)((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,H.hl)(ey,"setTimeout",e1),t.setInterval&&(0,H.hl)(ey,"setInterval",e1),t.requestAnimationFrame&&(0,H.hl)(ey,"requestAnimationFrame",e2),t.XMLHttpRequest&&"XMLHttpRequest"in ey&&(0,H.hl)(XMLHttpRequest.prototype,"send",e3);let e=t.eventTarget;
11e&&(Array.isArray(e)?e:eQ).forEach(e=>(function(e,t){let n=ey[e]?.prototype;n?.hasOwnProperty?.("addEventListener")&&((0,H.hl)(n,"addEventListener",function(n){return function(r,i,a){try{"function"==typeof i.handleEvent&&(i.handleEvent=eb(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,J.$P)(i),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&this&&"object"==typeof this&&"removeEventListener"in this&&"function"==typeof this.removeEventListener&&this.removeEventListener(r,i),n.apply(this,[r,eb(i,{mechanism:{data:{function:"addEventListener",handler:(0,J.$P)(i),target:e},handled:!1,type:"instrument"}}),a])}}),(0,H.hl)(n,"removeEventListener",function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))})(e,t))}}});function e1(e){return function(...t){let n=t[0];return t[0]=eb(n,{mechanism:{data:{function:(0,J.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function e2(e){return function(t){return e.apply(this,[eb(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,J.$P)(e)},handled:!1,type:"instrument"}})])}}function e3(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,H.hl)(n,e,function(t){let n={mechanism:{data:{function:e,handler:(0,J.$P)(t)},handled:!1,type:"instrument"}},r=(0,H.HK)(t);return r&&(n.mechanism.data.handler=(0,J.$P)(r)),eb(t,n)})}),e.apply(this,t)}}let e5=(0,L._I)(()=>({name:"BrowserSession",setupOnce(){void 0!==ey.document&&((0,$.yj)({ignoreDuration:!0}),(0,$.cg)(),eK(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,$.yj)({ignoreDuration:!0}),(0,$.cg)())}))}})),e4=null;function e9(e){let t="error";eS(t,e),ek(t,e6)}function e6(){e4=O.GLOBAL_OBJ.onerror,O.GLOBAL_OBJ.onerror=function(e,t,n,r,i){return eC("error",{column:r,error:i,line:n,msg:e,url:t}),!!e4&&e4.apply(this,arguments)},O.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let e7=null;function e8(e){let t="unhandledrejection";eS(t,e),ek(t,te)}function te(){e7=O.GLOBAL_OBJ.onunhandledrejection,O.GLOBAL_OBJ.onunhandledrejection=function(e){return eC("unhandledrejection",e),!e7||e7.apply(this,arguments)},O.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let tt=(0,L._I)((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&e9(t=>{let{stackParser:n,attachStacktrace:r}=tn();if((0,G.s3)()!==e||ev>0)return;let{msg:i,url:a,line:o,column:s,error:l}=t,c=function(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},l=s.frames=s.frames||[],c=(0,es.HD)(t)&&t.length>0?t:(0,eg.l4)();return 0===l.length&&l.push({colno:r,filename:c,function:J.Fi,in_app:!0,lineno:n}),e}(eh(n,l||i,void 0,r,!1),a,o,s);c.level="error",(0,$.eN)(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}),t.onunhandledrejection&&e8(t=>{let{stackParser:n,attachStacktrace:r}=tn();if((0,G.s3)()!==e||ev>0)return;let i=function(e){if((0,es.pt)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),a=(0,es.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:eh(n,i,void 0,r,!0);a.level="error",(0,$.eN)(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}}});function tn(){let e=(0,G.s3)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let tr=(0,L._I)(()=>({name:"HttpContext",preprocessEvent(e){if(!ey.navigator&&!ey.location&&!ey.document)return;let t=ew(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}));function ti(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function ta(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let to=(0,L._I)((e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){!function(e,t,n,r,i,a){if(!i.exception?.values||!a||!(0,es.V9)(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=function e(t,n,r,i,a,o,s,l){if(o.length>=r+1)return o;let c=[...o];if((0,es.V9)(i[a],Error)){ti(s,l);let o=t(n,i[a]),u=c.length;ta(o,a,u,l),c=e(t,n,r,i[a],a,[o,...c],o,u)}
11return Array.isArray(i.errors)&&i.errors.forEach((i,o)=>{if((0,es.V9)(i,Error)){ti(s,l);let u=t(n,i),d=c.length;ta(u,`errors[${o}]`,d,l),c=e(t,n,r,i,a,[u,...c],u,d)}}),c}(e,t,r,a.originalException,n,i.exception.values,o,0))}(ec,i.getOptions().stackParser,n,t,e,r)}}});function ts(e,t,n,r){let i={filename:e,function:"<anonymous>"===t?J.Fi:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let tl=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tc=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tu=/\((\S*)(?::(\d+))(?::(\d+))\)/,td=[30,e=>{let t=tl.exec(e);if(t){let[,e,n,r]=t;return ts(e,J.Fi,+n,+r)}let n=tc.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=tu.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=tg(n[1]||J.Fi,n[2]);return ts(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],tp=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tf=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,th=[50,e=>{let t=tp.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=tf.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||J.Fi;return[n,e]=tg(n,e),ts(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],tm=(0,J.pE)(td,th),tg=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:J.Fi,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var ty=n(4890);let tv=Symbol.for("SentryBufferFullError");function tb(e,t,n=Date.now()){return(e[t]||e.all||0)>n}function tw(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},a=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(a)for(let e of a.trim().split(",")){let[t,n,,,a]=e.split(":",5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!a||a.split(";").includes("custom"))&&(i[e]=r+s):i[e]=r+s;else i.all=r+s}else o?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(o,r):429===t&&(i.all=r+6e4);return i}let t_={};function tx(e){let t=t_[e];if(t)return t;let n=eZ[e];if(eT(n))return t_[e]=n.bind(eZ);let r=eZ.document;if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return n?t_[e]=n.bind(eZ):n}function tE(...e){return tx("setTimeout")(...e)}function tS(e,t=tx("fetch")){let n=0,r=0;return function(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,el.$2)(tv);let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new el.cW((n,r)=>{let i=t.length;if(!i)return n(!0);let a=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{(0,el.WD)(e).then(()=>{--i||(clearTimeout(a),n(!0))},r)})})}}}(e.bufferSize||64)){let r={};return{send:function(i){let a=[];if((0,ty.gv)(i,(t,n)=>{let i=(0,ty.mL)(n);tb(r,i)?e.recordDroppedEvent("ratelimit_backoff",i):a.push(t)}),0===a.length)return(0,el.WD)({});let o=(0,ty.Jd)(i[0],a),s=t=>{(0,ty.gv)(o,(n,r)=>{e.recordDroppedEvent(t,(0,ty.mL)(r))})};return n.add(()=>t({body:(0,ty.V$)(o)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&j.X&&P.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=tw(r,e),e),e=>{throw s("network_error"),j.X&&P.kg.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===tv)return j.X&&P.kg.error("Skipped sending event because buffer is full."),s("queue_overflow"),(0,el.WD)({});throw e})},flush:e=>n.drain(e)}}(e,function(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return t_.fetch=void 0,(0,el.$2)("No fetch implementation available");try{return t(e.url,o).then(e=>(n-=a,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return t_.fetch=void 0,n-=a,r--,(0,el.$2)(e)}})}function tk(e){return[V(),K(),e0(),eX(),tt(),to(),X(),tr(),e5()]}var tC=n(75271),tI=n(14224),tA=n(2796),tT=n(25496),tR=n(12856),tN=n(38146),tO=n(97043),tP=n(40359);class tD{constructor(e={}){this._traceId=e.traceId||(0,tP.H)(),this._spanId=e.spanId||(0,tP.M)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:tN.ve}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}
11addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}var tM=n(38443),t$=n(78749),tj=n(13094),tL=n(89953),tF=n(43221);function tB(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[tA.E1],i=n[tA.Wb];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}var tU=n(58336);class tz{constructor(e={}){this._traceId=e.traceId||(0,tP.H)(),this._spanId=e.spanId||(0,tP.M)(),this._startTime=e.startTimestamp||(0,eR.ph)(),this._links=e.links,this._attributes={},this.setAttributes({[tA.S3]:"manual",[tA.$J]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?tN.i0:tN.ve}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,tN.$k)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(tA.Zj,"custom"),this}end(e){this._endTime||(this._endTime=(0,tN.$k)(e),function(e){if(!j.X)return;let{description:t="< unknown name >",op:n="< unknown op >"}=(0,tN.XU)(e),{spanId:r}=e.spanContext(),i=(0,tN.Gx)(e)===e,a=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;P.kg.log(a)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[tA.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,tN._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[tA.S3],profile_id:this._attributes[tA.p6],exclusive_time:this._attributes[tA.JQ],measurements:tB(this._events),is_segment:this._isStandaloneSpan&&(0,tN.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,tN.Gx)(this).spanContext().spanId:void 0,links:(0,tN.FF)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){j.X&&P.kg.log("[Tracing] Adding an event to span:",e);let r=tZ(t)?t:n||(0,eR.ph)(),i=tZ(t)?{}:t||{},a={name:e,time:(0,tN.$k)(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,G.s3)();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===(0,tN.Gx)(this)))return;if(this._isStandaloneSpan){this._sampled?function(e){let t=(0,G.s3)();if(!t)return;let n=e[1];if(!n||0===n.length){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}((0,tF.uE)([this],e)):(j.X&&P.kg.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}let t=this._convertSpanToTransaction();t&&((0,tU.I)(this).scope||(0,G.nZ)()).captureEvent(t)}_convertSpanToTransaction(){if(!tV((0,tN.XU)(this)))return;this._name||(j.X&&P.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=(0,tU.I)(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let r=(0,tN.Dp)(this).filter(e=>e!==this&&!(e instanceof tz&&e.isStandaloneSpan())).map(e=>(0,tN.XU)(e)).filter(tV),i=this._attributes[tA.Zj];delete this._attributes[tA.xF],r.forEach(e=>{delete e.data[tA.xF]});let a={contexts:{trace:(0,tN.HR)(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,tO.jC)(this)},request:n,...i&&{transaction_info:{source:i}}},o=tB(this._events);return o&&Object.keys(o).length&&(j.X&&P.kg.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),a.measurements=o),a}}function tZ(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function tV(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}let tq="__SENTRY_SUPPRESS_TRACING__";function tW(e){let t=tH();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=function(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=(0,tN.$k)(e.startTime),delete n.startTime,n}return t}(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>(0,G.$e)(e.scope,t):void 0!==i?e=>tG(i,e):e=>e())(()=>{let t=(0,G.nZ)(),i=function(e){let t=(0,tR.Y)(e);if(!t)return;let n=(0,G.s3)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,tN.Gx)(t):t}(t);return e.onlyIfParent&&!i?new tD:function({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){let i;if(!(0,tT.f)()){let r=new tD;
11if(n||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,tO.jC)(r)};(0,tO.Lh)(r,e)}return r}let a=(0,G.aF)();if(e&&!n)i=function(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=!t.getScopeData().sdkProcessingMetadata[tq]&&(0,tN.Tt)(e),o=a?new tz({...n,parentSpanId:r,traceId:i,sampled:a}):new tD({traceId:i});(0,tN.j5)(e,o);let s=(0,G.s3)();return s&&(s.emit("spanStart",o),n.endTimestamp&&s.emit("spanEnd",o)),o}(e,r,t),(0,tN.j5)(e,i);else if(e){let n=(0,tO.jC)(e),{traceId:a,spanId:o}=e.spanContext(),s=(0,tN.Tt)(e);i=tY({traceId:a,parentSpanId:o,...t},r,s),(0,tO.Lh)(i,n)}else{let{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...a.getPropagationContext(),...r.getPropagationContext()};i=tY({traceId:e,parentSpanId:o,...t},r,s),n&&(0,tO.Lh)(i,n)}return!function(e){if(!j.X)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,tN.XU)(e),{spanId:i}=e.spanContext(),a=(0,tN.Tt)(e),o=(0,tN.Gx)(e),s=o===e,l=`[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`,c=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&c.push(`parent ID: ${r}`),!s){let{op:e,description:t}=(0,tN.XU)(o);c.push(`root ID: ${o.spanContext().spanId}`),e&&c.push(`root op: ${e}`),t&&c.push(`root description: ${t}`)}P.kg.log(`${l}
12  ${c.join("\n  ")}`)}(i),(0,tU.Y)(i,r,a),i}({parentSpan:i,spanArguments:n,forceTransaction:r,scope:t})})}function tG(e,t){let n=tH();return n.withActiveSpan?n.withActiveSpan(e,t):(0,G.$e)(n=>((0,tR.D)(n,e||void 0),t(n)))}function tH(){let e=(0,tj.cu)();return(0,t$.G)(e)}function tY(e,t,n){let r=(0,G.s3)(),i=r?.getOptions()||{},{name:a=""}=e,o={spanAttributes:{...e.attributes},spanName:a,parentSampled:n};r?.emit("beforeSampling",o,{decision:!1});let s=o.parentSampled??n,l=o.spanAttributes,c=t.getPropagationContext(),[u,d,p]=t.getScopeData().sdkProcessingMetadata[tq]?[!1]:function(e,t,n){let r,i;if(!(0,tT.f)(e))return[!1];"function"==typeof e.tracesSampler?(r=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,i=!0);let a=(0,tL.o)(r);if(void 0===a)return j.X&&P.kg.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!a)return j.X&&P.kg.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a,i];let o=n<a;return!o&&j.X&&P.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[o,a,i]}(i,{name:a,parentSampled:s,attributes:l,parentSampleRate:(0,tL.o)(c.dsc?.sample_rate)},c.sampleRand),f=new tz({...e,attributes:{[tA.Zj]:"custom",[tA.TE]:void 0!==d&&p?d:void 0,...l},sampled:u});return!u&&r&&(j.X&&P.kg.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",f),f}let tK={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function tJ(e,t={}){let n;let r=new Map,i=!1,a="externalFinish",o=!t.disableAutoFinish,s=[],{idleTimeout:l=tK.idleTimeout,finalTimeout:c=tK.finalTimeout,childSpanTimeout:u=tK.childSpanTimeout,beforeSpanEnd:d}=t,p=(0,G.s3)();if(!p||!(0,tT.f)()){let e=new tD,t={sample_rate:"0",sampled:"false",...(0,tO.jC)(e)};return(0,tO.Lh)(e,t),e}let f=(0,G.nZ)(),h=(0,tN.HN)(),m=function(e){let t=tW(e);return(0,tR.D)((0,G.nZ)(),t),j.X&&P.kg.log("[Tracing] Started span is an idle span"),t}(e);function g(){n&&(clearTimeout(n),n=void 0)}function y(e){g(),n=setTimeout(()=>{!i&&0===r.size&&o&&(a="idleTimeout",m.end(e))},l)}function v(e){n=setTimeout(()=>{!i&&o&&(a="heartbeatFailed",m.end(e))},u)}function b(e){i=!0,r.clear(),s.forEach(e=>e()),(0,tR.D)(f,h);let t=(0,tN.XU)(m),{start_timestamp:n}=t;if(!n)return;t.data[tA.ju]||m.setAttribute(tA.ju,a),P.kg.log(`[Tracing] Idle span "${t.op}" finished`);let o=(0,tN.Dp)(m).filter(e=>e!==m),u=0;o.forEach(t=>{t.isRecording()&&(t.setStatus({code:tM.jt,message:"cancelled"}),t.end(e),j.X&&P.kg.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=(0,tN.XU)(t),i=r<=e,a=n-r<=(c+l)/1e3;if(j.X){let e=JSON.stringify(t,void 0,2);i?a||P.kg.log("[Tracing] Discarding span since it finished after idle span final timeout",e):P.kg.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!a||!i)&&((0,tN.ed)(m,t),u++)}),u>0&&m.setAttribute("sentry.idle_span_discarded_spans",u)}return m.end=new Proxy(m.end,{apply(e,t,n){if(d&&d(m),t instanceof tD)return;let[r,...i]=n,a=r||(0,eR.ph)(),o=(0,tN.$k)(a),s=(0,tN.Dp)(m).filter(e=>e!==m);if(!s.length)return b(o),Reflect.apply(e,t,[o,...i]);let l=s.map(e=>(0,tN.XU)(e).timestamp).filter(e=>!!e),u=l.length?Math.max(...l):void 0,p=(0,tN.XU)(m).start_timestamp,f=Math.min(p?p+c/1e3:1/0,Math.max(p||-1/0,Math.min(o,u||1/0)));return b(f),Reflect.apply(e,t,[f,...i])}}),s.push(p.on("spanStart",e=>{if(!i&&e!==m&&!(0,tN.XU)(e).timestamp&&(0,tN.Dp)(m).includes(e)){var t;t=e.spanContext().spanId,g(),r.set(t,!0),v((0,eR.ph)()+u/1e3)}})),s.push(p.on("spanEnd",e=>{var t;i||(t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&y((0,eR.ph)()+l/1e3))})),s.push(p.on("idleSpanEnableAutoFinish",e=>{e===m&&(o=!0,y(),r.size&&v())})),t.disableAutoFinish||y(),setTimeout(()=>{i||(m.setStatus({code:tM.jt,message:"deadline_exceeded"}),a="finalTimeout",m.end())},c),m}let tX=!1;function tQ(){let e=(0,tN.HN)(),t=e&&(0,tN.Gx)(e);if(t){let e="internal_error";j.X&&P.kg.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:tM.jt,message:e})}}tQ.tag="sentry_tracingErrorCallback";var t0=n(40554);let t1=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",t2=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&((a=t.value-(i??0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=t1(t.value,n),e(t))}},t3=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,t5=(e=!0)=>{let t=eZ.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},t4=()=>{let e=t5();return e?.activationStart??0},t9=(e,t=-1)=>{let n=t5(),r="navigate";return n&&(eZ.document?.prerendering||t4()>0?r="prerender":eZ.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:t3(),navigationType:r}},t6=new WeakMap;function t7(e,t){return t6.get(e)||t6.set(e,new t),t6.get(e)}class t8{constructor(){t8.prototype.__init.call(this),t8.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries.at(-1);this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let ne=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},nt=e=>{let t=!1;return()=>{t||(e(),t=!0)}},nn=-1,nr=()=>eZ.document?.visibilityState!=="hidden"||eZ.document?.prerendering?1/0:0,ni=e=>{"hidden"===eZ.document.visibilityState&&nn>-1&&(nn="visibilitychange"===e.type?e.timeStamp:0,no())},na=()=>{addEventListener("visibilitychange",ni,!0),addEventListener("prerenderingchange",ni,!0)},no=()=>{removeEventListener("visibilitychange",ni,!0),removeEventListener("prerenderingchange",ni,!0)},ns=()=>
12{if(eZ.document&&nn<0){let e=t4();nn=(eZ.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??nr(),na()}return{get firstHiddenTime(){return nn}}},nl=e=>{eZ.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},nc=[1800,3e3],nu=(e,t={})=>{nl(()=>{let n;let r=ns(),i=t9("FCP"),a=ne("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-t4(),0),i.entries.push(t),n(!0)))});a&&(n=t2(e,i,nc,t.reportAllChanges))})},nd=[.1,.25],np=(e,t={})=>{nu(nt(()=>{let n;let r=t9("CLS",0),i=t7(t,t8),a=e=>{for(let t of e)i._processEntry(t);i._sessionValue>r.value&&(r.value=i._sessionValue,r.entries=i._sessionEntries,n())},o=ne("layout-shift",a);o&&(n=t2(e,r,nd,t.reportAllChanges),eZ.document?.addEventListener("visibilitychange",()=>{eZ.document?.visibilityState==="hidden"&&(a(o.takeRecords()),n(!0))}),eZ?.setTimeout?.(n))}))},nf=e=>{let t=t=>{("pagehide"===t.type||eZ.document?.visibilityState==="hidden")&&e(t)};eZ.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},nh=[100,300],nm=(e,t={})=>{nl(()=>{let n;let r=ns(),i=t9("FID"),a=e=>{e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},o=e=>{e.forEach(a)},s=ne("first-input",o);n=t2(e,i,nh,t.reportAllChanges),s&&nf(nt(()=>{o(s.takeRecords()),s.disconnect()}))})},ng=0,ny=1/0,nv=0,nb=e=>{e.forEach(e=>{e.interactionId&&(ny=Math.min(ny,e.interactionId),ng=(nv=Math.max(nv,e.interactionId))?(nv-ny)/7+1:0)})},nw=()=>l?ng:performance.interactionCount||0,n_=()=>{"interactionCount"in performance||l||(l=ne("event",nb,{type:"event",buffered:!0,durationThreshold:0}))},nx=0,nE=()=>nw()-nx;class nS{constructor(){nS.prototype.__init.call(this),nS.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){nx=nw(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(nE()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(n)}}}let nk=e=>{let t=eZ.requestIdleCallback||eZ.setTimeout;eZ.document?.visibilityState==="hidden"?e():(t(e=nt(e)),nf(e))},nC=[200,500],nI=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&nl(()=>{let n;n_();let r=t9("INP"),i=t7(t,nS),a=e=>{nk(()=>{for(let t of e)i._processEntry(t);let t=i._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,n())})},o=ne("event",a,{durationThreshold:t.durationThreshold??40});n=t2(e,r,nC,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),nf(()=>{a(o.takeRecords()),n(!0)}))})};class nA{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let nT=[2500,4e3],nR=(e,t={})=>{nl(()=>{let n;let r=ns(),i=t9("LCP"),a=t7(t,nA),o=e=>{for(let o of(t.reportAllChanges||(e=e.slice(-1)),e))a._processEntry(o),o.startTime<r.firstHiddenTime&&(i.value=Math.max(o.startTime-t4(),0),i.entries=[o],n())},s=ne("largest-contentful-paint",o);if(s){n=t2(e,i,nT,t.reportAllChanges);let r=nt(()=>{o(s.takeRecords()),s.disconnect(),n(!0)});for(let e of["keydown","click","visibilitychange"])eZ.document&&addEventListener(e,()=>nk(r),{capture:!0,once:!0})}})},nN=[800,1800],nO=e=>{eZ.document?.prerendering?nl(()=>nO(e)):eZ.document?.readyState!=="complete"?addEventListener("load",()=>nO(e),!0):setTimeout(e)},nP=(e,t={})=>{let n=t9("TTFB"),r=t2(e,n,nN,t.reportAllChanges);nO(()=>{let e=t5();e&&(n.value=Math.max(e.responseStart-t4(),0),n.entries=[e],r(!0))})},nD={},nM={};function n$(e,t=!1){return nG("cls",e,nz,c,t)}function nj(e,t=!1){return nG("lcp",e,nV,d,t)}function nL(e){return nG("fid",e,nZ,u)}function nF(e){return nG("inp",e,nW,f)}function nB(e,t){return nH(e,t),nM[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),ne(e,t=>{nU(e,{entries:t})},t)}(e),nM[e]=!0),nY(e,t)}function nU(e,t){let n=nD[e];if(n?.length)for(let e of n)try{e(t)}catch(e){}}function nz(){return np(e=>{nU("cls",{metric:e}),c=e},{reportAllChanges:!0})}function nZ(){return nm(e=>{nU("fid",{metric:e}),u=e})}function nV(){return nR(e=>{nU("lcp",{metric:e}),d=e},{reportAllChanges:!0})}function nq(){return nP(e=>{nU("ttfb",{metric:e}),p=e})}function nW(){return nI(e=>{nU("inp",{metric:e}),f=e})}function nG(e,t,n,r,i=!1){let a;return nH(e,t),nM[e]||(a=n(),nM[e]=!0),r&&t({metric:r}),nY(e,t,i?a:void 0)}function nH(e,t){nD[e]=nD[e]||[],nD[e].push(t)}function nY(e,t,n){return()=>{n&&n();let r=nD[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function nK(e){return"number"==typeof e&&isFinite(e)}function nJ(e,t,n,{...r}){let i=(0,tN.XU)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),tG(e,()=>{let e=tW({startTime:t,...r});return e&&e.end(n),e})}function nX(e){let t;let n=(0,G.s3)();if(!n)return;let{name:r,transaction:i,attributes:a,startTime:o}=e,{release:s,environment:l,sendDefaultPii:c}=n.getOptions(),u=n.getIntegrationByName("Replay"),d=u?.getReplayId(),p=(0,G.nZ)(),f=p.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;try{t=p.getScopeData().contexts.profile.profile_id}catch{}return tW({name:r,attributes:{release:s,environment:l,user:h||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":eZ.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...a},startTime:o,experimental:{standalone:!0}})}function nQ(){return eZ.addEventListener&&eZ.performance}function n0(e){return e/1e3}function n1(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}
12return r===e&&(t=r),{name:t,version:n}}let n2=0,n3={};function n5(e,t,n,r,i=n){let a=t["secureConnection"===n?"connectEnd":"fetch"===n?"domainLookupStart":`${n}End`],o=t[`${n}Start`];o&&a&&nJ(e,r+n0(o),r+n0(a),{op:`browser.${i}`,name:t.name,attributes:{[tA.S3]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}function n4(e,t,n,r){let i=t[n];null!=i&&i<2147483647&&(e[r]=i)}let n9=[],n6=new Map,n7={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},n8=({metric:e})=>{if(void 0==e.value)return;let t=n0(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&n7[t.name]);if(!n)return;let{interactionId:r}=n,i=n7[n.name],a=n0((0,eR.Z1)()+n.startTime),o=(0,tN.HN)(),s=o?(0,tN.Gx)(o):void 0,l=(null!=r?n6.get(r):void 0)||s,c=l?(0,tN.XU)(l).description:(0,G.nZ)().getScopeData().transactionName,u=nX({name:(0,eg.Rt)(n.target),transaction:c,attributes:{[tA.S3]:"auto.http.browser.inp",[tA.$J]:`ui.interaction.${i}`,[tA.JQ]:n.duration},startTime:a});u&&(u.addEvent("inp",{[tA.E1]:"millisecond",[tA.Wb]:e.value}),u.end(a+t))},re="sentry_previous_trace";function rt(e){return 1===e.traceFlags}var rn=n(35654);function rr(e={}){let t=(0,G.s3)();if(!(0,$._k)()||!t)return{};let n=(0,tj.cu)(),r=(0,t$.G)(n);if(r.getTraceData)return r.getTraceData(e);let i=(0,G.nZ)(),a=e.span||(0,tN.HN)(),o=a?(0,tN.Hb)(a):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,t0.$p)(t,r,n)}(i),s=a?(0,tO.jC)(a):(0,tO.CG)(t,i),l=(0,rn.IQ)(s);return t0.Ke.test(o)?{"sentry-trace":o,baggage:l}:(P.kg.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function ri(e){return e.split(",").some(e=>e.trim().startsWith(rn.lq))}let ra=new WeakMap,ro=new Map,rs={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function rl(e){let{url:t}=(0,tN.XU)(e).data;if(!t||"string"!=typeof t)return;let n=nB("resource",({entries:r})=>{r.forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&((function(e){let{name:t,version:n}=n1(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),(0,eR.Z1)())?[...r,["http.request.redirect_start",rc(e.redirectStart)],["http.request.fetch_start",rc(e.fetchStart)],["http.request.domain_lookup_start",rc(e.domainLookupStart)],["http.request.domain_lookup_end",rc(e.domainLookupEnd)],["http.request.connect_start",rc(e.connectStart)],["http.request.secure_connection_start",rc(e.secureConnectionStart)],["http.request.connection_end",rc(e.connectEnd)],["http.request.request_start",rc(e.requestStart)],["http.request.response_start",rc(e.responseStart)],["http.request.response_end",rc(e.responseEnd)]]:r})(r).forEach(t=>e.setAttribute(...t)),setTimeout(n))})})}function rc(e=0){return(((0,eR.Z1)()||performance.timeOrigin)+e)/1e3}function ru(e){try{return new URL(e,ey.location.origin).href}catch{return}}let rd={...tK,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...rs},rp=(e={})=>{let t;let n={name:void 0,source:void 0},r=ey.document,{enableInp:i,enableLongTask:a,enableLongAnimationFrame:o,_experiments:{enableInteractions:s,enableStandaloneClsSpans:l},beforeStartSpan:c,idleTimeout:u,finalTimeout:d,childSpanTimeout:f,markBackgroundSpan:g,traceFetch:y,traceXHR:v,trackFetchStreamPerformance:b,shouldCreateSpanForRequest:w,enableHTTPTimings:_,ignoreResourceSpans:x,ignorePerformanceApiSpans:E,instrumentPageLoad:S,instrumentNavigation:k,linkPreviousTrace:C,consistentTraceSampling:I,onRequestSpanStart:A}={...rd,...e};function T(e,i){let a="pageload"===i.op,o=c?c(i):i,s=o.attributes||{};i.name!==o.name&&(s[tA.Zj]="custom",o.attributes=s),n.name=o.name,n.source=s[tA.Zj];let p=tJ(o,{idleTimeout:u,finalTimeout:d,childSpanTimeout:f,disableAutoFinish:a,beforeSpanEnd:n=>{var r;t?.(),function(e,t){let n=nQ(),r=(0,eR.Z1)();if(!n?.getEntries||!r)return;let i=n0(r),a=n.getEntries(),{op:o,start_timestamp:s}=(0,tN.XU)(e);if(a.slice(n2).forEach(n=>{let r=n0(n.startTime),a=n0(Math.max(0,n.duration));
12if("navigation"!==o||!s||!(i+r<s))switch(n.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(t=>{n5(e,n,t,i)}),n5(e,n,"secureConnection",i,"TLS/SSL"),n5(e,n,"fetch",i,"cache"),n5(e,n,"domainLookup",i,"DNS"),function(e,t,n){let r=n+n0(t.requestStart),i=n+n0(t.responseEnd),a=n+n0(t.responseStart);t.responseEnd&&(nJ(e,r,i,{op:"browser.request",name:t.name,attributes:{[tA.S3]:"auto.ui.browser.metrics"}}),nJ(e,a,i,{op:"browser.response",name:t.name,attributes:{[tA.S3]:"auto.ui.browser.metrics"}}))}(e,n,i);break;case"mark":case"paint":case"measure":{(function(e,t,n,r,i,a){if(["mark","measure"].includes(t.entryType)&&(0,U.U0)(t.name,a))return;let o=t5(!1),s=i+Math.max(n,n0(o?o.requestStart:0)),l=i+n,c=l+r,u={[tA.S3]:"auto.resource.browser.metrics"};s!==l&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=s),function(e,t){try{let n=t.detail;if(!n)return;if("object"==typeof n){for(let[t,r]of Object.entries(n))if(r&&(0,es.pt)(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if((0,es.pt)(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(u,t),s<=c&&nJ(e,s,c,{name:t.name,op:t.entryType,attributes:u})})(e,n,r,a,i,t.ignorePerformanceApiSpans);let o=ns(),s=n.startTime<o.firstHiddenTime;"first-paint"===n.name&&s&&(n3.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&s&&(n3.fcp={value:n.startTime,unit:"millisecond"});break}case"resource":(function(e,t,n,r,i,a,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let s=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(s))return;let l=eU(n),c={[tA.S3]:"auto.resource.browser.metrics"};n4(c,t,"transferSize","http.response_transfer_size"),n4(c,t,"encodedBodySize","http.response_content_length"),n4(c,t,"decodedBodySize","http.decoded_response_content_length");let u=t.deliveryType;null!=u&&(c["http.response_delivery_type"]=u);let d=t.renderBlockingStatus;d&&(c["resource.render_blocking_status"]=d),l.protocol&&(c["url.scheme"]=l.protocol.split(":").pop()),l.host&&(c["server.address"]=l.host),c["url.same_origin"]=n.includes(eZ.location.origin);let{name:p,version:f}=n1(t.nextHopProtocol);c["network.protocol.name"]=p,c["network.protocol.version"]=f;let h=a+r;nJ(e,h,h+i,{name:n.replace(eZ.location.origin,""),op:s,attributes:c})})(e,n,n.name,r,a,i,t.ignoreResourceSpans)}}),n2=Math.max(a.length-1,0),function(e){let t=eZ.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),nK(n.rtt)&&(n3["connection.rtt"]={value:n.rtt,unit:"millisecond"})),nK(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),nK(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===o){(function(e){let t=t5(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})})(n3);let n=n3["mark.fid"];n&&n3.fid&&(nJ(e,n.value,n.value+n0(n3.fid.value),{name:"first input delay",op:"ui.action",attributes:{[tA.S3]:"auto.ui.browser.metrics"}}),delete n3["mark.fid"]),"fcp"in n3&&t.recordClsOnPageloadSpan||delete n3.cls,Object.entries(n3).forEach(([e,t])=>{!function(e,t,n,r=(0,tN.HN)()){let i=r&&(0,tN.Gx)(r);i&&(j.X&&P.kg.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[tA.Wb]:t,[tA.E1]:n}))}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",t4()),h&&(h.element&&e.setAttribute("lcp.element",(0,eg.Rt)(h.element)),h.id&&e.setAttribute("lcp.id",h.id),h.url&&e.setAttribute("lcp.url",h.url.trim().slice(0,200)),null!=h.loadTime&&e.setAttribute("lcp.loadTime",h.loadTime),null!=h.renderTime&&e.setAttribute("lcp.renderTime",h.renderTime),e.setAttribute("lcp.size",h.size)),m?.sources&&m.sources.forEac
12h((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,eg.Rt)(t.node)))}h=void 0,m=void 0,n3={}}(n,{recordClsOnPageloadSpan:!l,ignoreResourceSpans:x,ignorePerformanceApiSpans:E}),r=void 0,(0,H.xp)(e,rg,r);let i=(0,G.nZ)(),a=i.getPropagationContext();i.setPropagationContext({...a,traceId:p.spanContext().traceId,sampled:(0,tN.Tt)(p),dsc:(0,tO.jC)(n)})}});function g(){r&&["interactive","complete"].includes(r.readyState)&&e.emit("idleSpanEnableAutoFinish",p)}(0,H.xp)(e,rg,p),a&&r&&(r.addEventListener("readystatechange",()=>{g()}),g())}return{name:"BrowserTracing",setup(e){function n(){let t=e[rg];t&&!(0,tN.XU)(t).timestamp&&(t.setAttribute(tA.ju,"cancelled"),t.end())}tX||(tX=!0,e9(tQ),e8(tQ)),t=function({recordClsStandaloneSpans:e}){let t=nQ();if(t&&(0,eR.Z1)()){t.mark&&eZ.performance.mark("sentry-tracing-init");let n=nL(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=n0((0,eR.Z1)()),r=n0(t.startTime);n3.fid={value:e.value,unit:"millisecond"},n3["mark.fid"]={value:n+r,unit:"second"}}),r=nj(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(n3.lcp={value:e.value,unit:"millisecond"},h=t)},!0),i=nG("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(n3.ttfb={value:e.value,unit:"millisecond"})},nq,p),a=e?function(){let e,t,n=0;if(!function(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}())return;let r=!1;function i(){r||(r=!0,t&&function(e,t,n){let r=n0(((0,eR.Z1)()||0)+(t?.startTime||0)),i=(0,G.nZ)().getScopeData().transactionName,a=nX({name:t?(0,eg.Rt)(t.sources[0]?.node):"Layout shift",transaction:i,attributes:{[tA.S3]:"auto.http.browser.cls",[tA.$J]:"ui.webvital.cls",[tA.JQ]:t?.duration||0,"sentry.pageload.span_id":n},startTime:r});a&&(a.addEvent("cls",{[tA.E1]:"",[tA.Wb]:e}),a.end(r))}(n,e,t),a())}let a=n$(({metric:t})=>{let r=t.entries[t.entries.length-1];r&&(n=t.value,e=r)},!0);nf(()=>{i()}),setTimeout(()=>{let e=(0,G.s3)();if(!e)return;let n=e.on("startNavigationSpan",()=>{i(),n?.()}),r=(0,tN.HN)();if(r){let e=(0,tN.Gx)(r);"pageload"===(0,tN.XU)(e).op&&(t=e.spanContext().spanId)}},0)}():n$(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(n3.cls={value:e.value,unit:""},m=t)},!0);return()=>{n(),r(),i(),a?.()}}return()=>void 0}({recordClsStandaloneSpans:l||!1}),i&&function(){if(nQ()&&(0,eR.Z1)()){let e=nF(n8)}}(),o&&O.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,tN.HN)();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=n0((0,eR.Z1)()+n.startTime),{start_timestamp:r,op:i}=(0,tN.XU)(t);if("navigation"===i&&r&&e<r)continue;let a=n0(n.duration),o={[tA.S3]:"auto.ui.browser.metrics"},{invoker:s,invokerType:l,sourceURL:c,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];o["browser.script.invoker"]=s,o["browser.script.invoker_type"]=l,c&&(o["code.filepath"]=c),u&&(o["code.function"]=u),-1!==d&&(o["browser.script.source_char_position"]=d),nJ(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:o})}}).observe({type:"long-animation-frame",buffered:!0}):a&&nB("longtask",({entries:e})=>{let t=(0,tN.HN)();if(!t)return;let{op:n,start_timestamp:r}=(0,tN.XU)(t);for(let i of e){let e=n0((0,eR.Z1)()+i.startTime),a=n0(i.duration);"navigation"===n&&r&&e<r||nJ(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[tA.S3]:"auto.ui.browser.metrics"}})}}),s&&nB("event",({entries:e})=>{let t=(0,tN.HN)();if(t){for(let n of e)if("click"===n.name){let e=n0((0,eR.Z1)()+n.startTime),r=n0(n.duration),i={name:(0,eg.Rt)(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[tA.S3]:"auto.ui.browser.metrics"}},a=(0,eg.iY)(n.target);a&&(i.attributes["ui.component_name"]=a),nJ(t,e,e+r,i)}}}),e.on("startNavigationSpan",t=>{if((0,G.s3)()!==e)return;n(),(0,G.aF)().setPropagationContext({traceId:(0,tP.H)(),sampleRand:Math.random()});let r=(0,G.nZ)();r.setPropagationContext({traceId:(0,tP.H)(),sampleRand:Math.random()}),r.setSDKProcessingMetadata({normalizedRequest:void 0}),T(e,{op:"navigation",...t})}),e.on("startPageLoadSpan",(t,r={})=>
12{if((0,G.s3)()!==e)return;n();let i=r.sentryTrace||rm("sentry-trace"),a=r.baggage||rm("baggage"),o=(0,t0.pT)(i,a),s=(0,G.nZ)();s.setPropagationContext(o),s.setSDKProcessingMetadata({normalizedRequest:ew()}),T(e,{op:"pageload",...t})})},afterAllSetup(e){let t,r=(0,eg.l4)();if("off"!==C&&function(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r="session-storage"===t,i=r?function(){try{let e=ey.sessionStorage?.getItem(re);return JSON.parse(e)}catch(e){return}}():void 0;e.on("spanStart",e=>{if((0,tN.Gx)(e)!==e)return;let t=(0,G.nZ)().getPropagationContext();i=function(e,t,n){let r=(0,tN.XU)(t),i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[tA.TE])}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return i;let a=e.spanContext;return a.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(t.addLink({context:a,attributes:{[tA.lH]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${a.traceId}-${a.spanId}-${rt(a)?1:0}`)),i)}(i,e,t),r&&function(e){try{ey.sessionStorage.setItem(re,JSON.stringify(e))}catch(e){}}(i)});let a=!0;n&&e.on("beforeSampling",e=>{if(!i)return;let t=(0,G.nZ)(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(rt(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=rt(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[tA.iT]:i.sampleRate}})}(e,{linkPreviousTrace:C,consistentTraceSampling:I}),ey.location){if(S){let t=(0,eR.Z1)();rf(e,{name:ey.location.pathname,startTime:t?t/1e3:void 0,attributes:{[tA.Zj]:"url",[tA.S3]:"auto.pageload.browser"}})}k&&eK(({to:t,from:n})=>{if(void 0===n&&r?.indexOf(t)!==-1){r=void 0;return}r=void 0;let i=eB(t);rh(e,{name:i?.pathname||ey.location.pathname,attributes:{[tA.Zj]:"url",[tA.S3]:"auto.navigation.browser"}}),(0,G.nZ)().setSDKProcessingMetadata({normalizedRequest:{...ew(),url:t}})})}g&&ey.document&&ey.document.addEventListener("visibilitychange",()=>{let e=(0,tN.HN)();if(!e)return;let t=(0,tN.Gx)(e);if(ey.document.hidden&&t){let{op:e,status:n}=(0,tN.XU)(t);n||t.setStatus({code:tM.jt,message:"cancelled"}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}),s&&ey.document&&addEventListener("click",()=>{let r=e[rg];!(r&&["navigation","pageload"].includes((0,tN.XU)(r).op))&&(t&&(t.setAttribute(tA.ju,"interactionInterrupted"),t.end(),t=void 0),n.name&&(t=tJ({name:n.name,op:"ui.action.click",attributes:{[tA.Zj]:n.source||"url"}},{idleTimeout:u,finalTimeout:d,childSpanTimeout:f})))},{once:!1,capture:!0}),i&&function(){let e=({entries:e})=>{let t=(0,tN.HN)(),n=t&&(0,tN.Gx)(t);e.forEach(e=>{if(!("duration"in e)||!n)return;let t=e.interactionId;if(!(null==t||n6.has(t))){if(n9.length>10){let e=n9.shift();n6.delete(e)}n9.push(t),n6.set(t,n)}})};nB("event",e),nB("first-input",e)}(),function(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:o,tracePropagationTargets:s,onRequestSpanStart:l}={...rs,...t},c="function"==typeof a?a:e=>!0,u=e=>(function(e,t){let n=(0,eg.l4)();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch(e){return!1}let a=r.origin===i;return t?(0,U.U0)(r.toString(),t)||a&&(0,U.U0)(r.pathname,t):a}{let n=!!e.match(/^\/(?!\/)/);return t?(0,U.U0)(e,t):n}})(e,s),d={};n&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=ro.get(e.span_id);t&&(e.timestamp=t/1e3,ro.delete(e.span_id))}}),e)),i&&function(e){let t="fetch-body-resolved";eS(t,e),ek(t,()=>eO(eD))}(e=>{if(e.response){let t=ra.get(e.response);t&&e.endTimestamp&&ro.set(t,e.endTimestamp)}}),eN(e=>{let t=function(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=(0,tT.f)()&&t(o);if(e.endTimestamp&&s){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(function(e,t){if(t.response){(0,tM.Q0)(e,t.response.status);let n=t.response?.headers&&t.response.headers.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:tM.jt,message:"internal_error"});e.end()}(n,e),delete r[t]);return}let l=!!(0,tN.HN)(),c=s&&l?tW(function(e,t,n){let r=eB(e);return{name:r?`${t} ${function(e){if(eF(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}(r)}`:t,attributes:function(e,t,n,r){let i={url:e,type:"fetch","http.method":n,[tA.S3]:r,[tA.$J]:"http.client"};return t&&(eF(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}(e,r,t,n)}}(o,a,i)):new tD;
12if(e.fetchData.__span=c.spanContext().spanId,r[c.spanContext().spanId]=c,n(e.fetchData.url)){let t=e.args[0],n=e.args[1]||{},r=function(e,t,n){let r=rr({span:n}),i=r["sentry-trace"],a=r.baggage;if(!i)return;let o=t.headers||((0,es.gJ)(e)?e.headers:void 0);if(!o)return{...r};if("undefined"!=typeof Headers&&(0,es.V9)(o,Headers)){let e=new Headers(o);if(e.get("sentry-trace")||e.set("sentry-trace",i),a){let t=e.get("baggage");t?ri(t)||e.set("baggage",`${t},${a}`):e.set("baggage",a)}return e}if(Array.isArray(o)){let e=[...o];o.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",i]);let t=o.find(e=>"baggage"===e[0]&&ri(e[1]));return a&&!t&&e.push(["baggage",a]),e}{let e="sentry-trace"in o?o["sentry-trace"]:void 0,t="baggage"in o?o.baggage:void 0,n=t?Array.isArray(t)?[...t]:[t]:[],r=t&&(Array.isArray(t)?t.find(e=>ri(e)):ri(t));return a&&!r&&n.push(a),{...o,"sentry-trace":e??i,baggage:n.length>0?n.join(","):void 0}}}(t,n,(0,tT.f)()&&l?c:void 0);r&&(e.args[1]=n,n.headers=r)}let u=(0,G.s3)();if(u){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};u.emit("beforeOutgoingRequestSpan",c,t)}return c}(e,c,u,d);if(e.response&&e.fetchData.__span&&ra.set(e.response,e.fetchData.__span),t){let n=ru(e.fetchData.url),r=n?eU(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r}),o&&rl(t),l?.(t,{headers:e.headers})}})),r&&eH(e=>{let t=function(e,t,n,r){let i=e.xhr,a=i?.[eG];if(!i||i.__sentry_own_request__||!a)return;let{url:o,method:s}=a,l=(0,tT.f)()&&t(o);if(e.endTimestamp&&l){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&void 0!==a.status_code&&((0,tM.Q0)(t,a.status_code),t.end(),delete r[e]);return}let c=ru(o),u=c?eU(c):eU(o),d=ez(o),p=!!(0,tN.HN)(),f=l&&p?tW({name:`${s} ${d}`,attributes:{url:o,type:"xhr","http.method":s,"http.url":c,"server.address":u?.host,[tA.S3]:"auto.http.browser",[tA.$J]:"http.client",...u?.search&&{"http.query":u?.search},...u?.hash&&{"http.fragment":u?.hash}}}):new tD;i.__sentry_xhr_span_id__=f.spanContext().spanId,r[i.__sentry_xhr_span_id__]=f,n(o)&&function(e,t){let{"sentry-trace":n,baggage:r}=rr({span:t});n&&function(e,t,n){let r=e.__sentry_xhr_v3__?.request_headers;if(!r?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){let t=r?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch(e){}}(e,n,r)}(i,(0,tT.f)()&&p?f:void 0);let h=(0,G.s3)();return h&&h.emit("beforeOutgoingRequestSpan",f,e),f}(e,c,u,d);if(t){let n;o&&rl(t);try{n=new Headers(e.xhr.__sentry_xhr_v3__?.request_headers)}catch{}l?.(t,{headers:n})}})}(e,{traceFetch:y,traceXHR:v,trackFetchStreamPerformance:b,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:w,enableHTTPTimings:_,onRequestSpanStart:A})}}};function rf(e,t,n){return e.emit("startPageLoadSpan",t,n),(0,G.nZ)().setTransactionName(t.name),e[rg]}function rh(e,t){return e.emit("startNavigationSpan",t),(0,G.nZ)().setTransactionName(t.name),e[rg]}function rm(e){let t=ey.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}let rg="_sentry_idleSpan",ry="incomplete-app-router-transaction",rv={current:void 0},rb=O.GLOBAL_OBJ;function rw(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let r_=new WeakSet;function rx(e,t,n){r_.has(t)||(r_.add(t),["back","forward","push","replace"].forEach(r=>{t?.[r]&&(t[r]=new Proxy(t[r],{apply(t,i,a){let o=ry,s={[tA.$J]:"navigation",[tA.S3]:"auto.navigation.nextjs.app_router_instrumentation",[tA.Zj]:"url"};return"push"===r?(o=rw(a[0]),s["navigation.type"]="router.push"):"replace"===r?(o=rw(a[0]),s["navigation.type"]="router.replace"):"back"===r?s["navigation.type"]="router.back":"forward"===r&&(s["navigation.type"]="router.forward"),n.current=rh(e,{name:o,attributes:s}),t.apply(i,a)}}))}))}var rE=n(56964),rS=n(33459);let rk=rE.events?rE:rE.default,rC=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function rI(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function rA(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let rT=(0,L._I)((e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in O.GLOBAL_OBJ&&!!O.GLOBAL_OBJ.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),a=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||a){let e;let a=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,o=t?function(e,t){e=rI(e).slice(1),t=rI(t).slice(1);let n=rA(e.split("/")),r=rA(t.split("/")),i=Math.min(n.length,r.length),a=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){a=e;break}let o=[];for(let e=a;
12e<n.length;e++)o.push("..");return(o=o.concat(r.slice(a))).join("/")}(t,a):function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=rC.exec(t);return n?n.slice(1):[]}(a)[2]||"";r.filename=`${n}${o}`}return r}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames&&t.frames.map(e=>i(e))}}}})}}}catch(t){return e}}(t)),t}}}),rR=(0,L._I)(({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:r})=>({...rT({iteratee:i=>{if(r){let n="undefined"!=typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(n)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===n&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch(e){}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(n,"")}catch(e){}return r?(i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)):(i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)),i}}),name:"NextjsClientStackFrameNormalization"}));var rN=n(81100),rO=n(14224);let rP=!1,rD=O.GLOBAL_OBJ;function rM(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var r$=n(63656),rj=n(14224);function rL(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==rj?rj:0))||function(){let e=O.GLOBAL_OBJ.process;return e?.type==="renderer"}())}function rF(e){return new URLSearchParams(e).toString()}function rB(e,t=P.kg){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[rF(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function rU(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}let rz=O.GLOBAL_OBJ,rZ="sentryReplaySession",rV="Unable to send Replay";var rq=Object.defineProperty,rW=(e,t,n)=>t in e?rq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rG=(e,t,n)=>rW(e,"symbol"!=typeof t?t+"":t,n),rH=((E=rH||{})[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);function rY(e){let t=e?.host;return t?.shadowRoot===e}function rK(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function rJ(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,rX).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function rX(e){let t;if("styleSheet"in e)try{t=rJ(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){let r=e.style,i=r[n],a=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${a?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||r)return t}return t||e.cssText}class rQ{constructor(){rG(this,"idNodeMap",new Map),rG(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);
12this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function r0({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function r1({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function r2(e){return e.toLowerCase()}function r3(e){return e.toUpperCase()}let r5="__rrweb_original__";function r4(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?r2(t):null}function r9(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}function r6(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}let r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}let r7={};function r8(e){let t=r7[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return r7[e]=r.bind(window)}function ie(...e){return r8("setTimeout")(...e)}function it(...e){return r8("clearTimeout")(...e)}function ir(e){try{return e.contentDocument}catch(e){}}let ii=1,ia=RegExp("[^a-z0-9-_:]");function io(){return ii++}let is=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,il=/^(?:[a-z+]+:)?\/\//i,ic=/^www\..*/i,iu=/^(data:)([^,]*),(.*)/i;function id(e,t){return(e||"").replace(is,(e,n,r,i,a,o)=>{let s=r||a||o,l=n||i||"";if(!s)return e;if(il.test(s)||ic.test(s)||iu.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s}${l})`;let c=t.split("/"),u=s.split("/");for(let e of(c.pop(),u))"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`})}let ip=/^[^ \t\n\r\u000c]+/,ih=/^[, \t\n\r\u000c]+/,im=new WeakMap;function ig(e,t){return t&&""!==t.trim()?iy(e,t):t}function iy(e,t){let n=im.get(e);if(n||(n=e.createElement("a"),im.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function iv(e,t,n,r,i,a){return r?"src"!==n&&("href"!==n||"use"===t&&"#"===r[0])&&("xlink:href"!==n||"#"===r[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;let i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(ih),!(n>=t.length);){let a=r(ip);if(","===a.slice(-1))a=ig(e,a.substring(0,a.length-1)),i.push(a);else{let r="";a=ig(e,a);let o=!1;for(;;){let e=t.charAt(n);if(""===e){i.push((a+r).trim());break}if(o)")"===e&&(o=!1);else{if(","===e){n+=1,i.push((a+r).trim());break}"("===e&&(o=!0)}r+=e,n+=1}}}return i.join(", ")}(e,r):"style"===n?id(r,iy(e)):"object"===t&&"data"===n?ig(e,r):"function"==typeof a?a(n,r,i):r:ig(e,r):r}function ib(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function iw(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}function i_(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:i_(e.parentNode,t,n,r+1)}function ix(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch{return!1}}}function iE(e,t,n,r,i,a){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){let e=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(a){if((l=i_(o,ix(r,i)))<0)return!0;s=i_(o,ix(t,n),l>=0?l:1/0)}else{if((s=i_(o,ix(t,n)))<0)return!1;l=i_(o,ix(r,i),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!a}catch(e){}return!!a}function iS(e){return null==e?"":e.toLowerCase()}function ik(e,t){let n;let{doc:r,mirror:i,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:m={},maskAttributeFn:v,maskTextFn:b,maskInputFn:w,slimDOMOptions:_,dataURLOptions:x={},inlineImages:E=!1,recordCanvas:S=!1,onSerialize:k,onIframeLoad:C,iframeLoadTimeout:I=5e3,onStylesheetLoad:A,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:N=!1}=t,{preserveWhiteSpace:O=!0}=t,P=function(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:v,dataURLOptions:b={},inlineImages:w,recordCanvas:_,keepIframeSrcFn:x,newlyAddedElement:E=!1}=t,S=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:rH.Document,childNodes:[],compatMode:e.compatMode};return{type:rH.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:rH.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return function(e,t){let n;let{doc:r,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:p,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m=!1,rootId:v,maskTextClass:b,unmaskTextClass:w,maskTextSelector:_,unmaskTextSelector:x}=t,E=iw(e,i,a,o),S=function(e){if(e instanceof HTMLFormElement)return"form";let t=r2(e.tagName);return ia.test(t)?"div":t}(e),k={},C=e.attributes.length;for(let t=0;t<C;t++){let n=e.attributes[t];n.name&&!ib(S,n.name,n.value)&&(k[n.name]=iv(r,S,r2(n.name),n.value,e,c))}if("link"===S&&s){let t=Array.from(r.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=rJ(t)),n&&(k.rel=null,k.href=null,k.crossorigin=null,k._cssText=id(n,t.href))}if("style"===S&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=rJ(e.sheet);t&&(k._cssText=id(t,iy(r)))}if("input"===S||"textarea"===S||"select"===S||"option"===S){let t=r4(e),n=r9(e,r3(S),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=iE(e,b,_,w,x,r0({type:t,tagName:r3(S),maskInputOptions:l}));k.value=r1({isMasked:r,element:e,value:n,maskInputFn:u})}r&&(k.checked=r)}if("option"===S&&(e.selected&&!l.select?k.selected=!0:delete k.selected),"canvas"===S&&f){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData;
12if(new Uint32Array((r5 in i?i[r5]:i).call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(k.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(d.type,d.quality)&&(k.rr_dataURL=t)}}if("img"===S&&p){g||(y=(g=r.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",n=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{g.width=e.naturalWidth,g.height=e.naturalHeight,y.drawImage(e,0,0),k.rr_dataURL=g.toDataURL(d.type,d.quality)}catch(n){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i);return}console.warn(`Cannot inline img src=${t}! Error: ${n}`)}"anonymous"===e.crossOrigin&&(n?k.crossOrigin=n:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===S||"video"===S)&&(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime),!m&&(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop)),E){let{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==S||h(k.src)||(E||ir(e)||(k.rr_src=k.src),delete k.src);try{customElements.get(S)&&(n=!0)}catch(e){}return{type:rH.Element,tagName:S,attributes:k,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:E,rootId:v,isCustom:n}}(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:f,maskAttributeFn:l,maskInputOptions:h,maskInputFn:v,dataURLOptions:b,inlineImages:w,recordCanvas:_,keepIframeSrcFn:x,newlyAddedElement:E,rootId:S,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=rJ(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=id(p,iy(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");let g=iE(e,r,a,i,o,n);return f||h||m||!p||!g||(p=s?s(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||g)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=r1({isMasked:iE(e,r,a,i,o,r0({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:c})),{type:rH.Text,textContent:p||"",isStyle:f,rootId:u}}(e,{doc:n,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:h,maskInputFn:v,rootId:S});case e.CDATA_SECTION_NODE:return{type:rH.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:rH.Comment,textContent:e.textContent||"",rootId:S};default:return!1}}(e,{doc:r,mirror:i,blockClass:a,blockSelector:o,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:v,maskTextFn:b,maskInputFn:w,dataURLOptions:x,inlineImages:E,recordCanvas:S,keepIframeSrcFn:R,newlyAddedElement:N});if(!P)return console.warn(e,"not serialized"),null;n=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===rH.Comment)return!0;if(e.type===rH.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===r6(e.attributes.href))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(iS(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===iS(e.attributes.name)||"icon"===iS(e.attributes.rel)||"apple-touch-icon"===iS(e.attributes.rel)||"shortcut icon"===iS(e.attributes.rel))))return!0;
12if("meta"===e.tagName){if(t.headMetaDescKeywords&&iS(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(iS(e.attributes.property).match(/^(og|twitter|fb):/)||iS(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===iS(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===iS(e.attributes.name)||"googlebot"===iS(e.attributes.name)||"bingbot"===iS(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===iS(e.attributes.name)||"generator"===iS(e.attributes.name)||"framework"===iS(e.attributes.name)||"publisher"===iS(e.attributes.name)||"progid"===iS(e.attributes.name)||iS(e.attributes.property).match(/^article:/)||iS(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===iS(e.attributes.name)||"yandex-verification"===iS(e.attributes.name)||"csrf-token"===iS(e.attributes.name)||"p:domain_verify"===iS(e.attributes.name)||"verify-v1"===iS(e.attributes.name)||"verification"===iS(e.attributes.name)||"shopify-checkout-api-token"===iS(e.attributes.name)))return!0}}return!1}(P,_)&&(O||P.type!==rH.Text||P.isStyle||P.textContent.replace(/^\s+|\s+$/gm,"").length)?io():-2;let D=Object.assign(P,{id:n});if(i.add(e,D),-2===n)return null;k&&k(e);let M=!f;if(D.type===rH.Element){M=M&&!D.needBlock,delete D.needBlock;let t=e.shadowRoot;t&&rK(t)&&(D.isShadowHost=!0)}if((D.type===rH.Document||D.type===rH.Element)&&M){_.headWhitespace&&D.type===rH.Element&&"head"===D.tagName&&(O=!1);let t={doc:r,mirror:i,blockClass:a,blockSelector:o,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:f,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:v,maskTextFn:b,maskInputFn:w,slimDOMOptions:_,dataURLOptions:x,inlineImages:E,recordCanvas:S,preserveWhiteSpace:O,onSerialize:k,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:A,stylesheetLoadTimeout:T,keepIframeSrcFn:R};for(let n of Array.from(e.childNodes)){let e=ik(n,t);e&&D.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=ik(n,t);r&&(rK(e.shadowRoot)&&(r.isShadow=!0),D.childNodes.push(r))}}return e.parentNode&&rY(e.parentNode)&&rK(e.parentNode)&&(D.isShadow=!0),D.type!==rH.Element||"iframe"!==D.tagName||iw(e,a,o,s)||function(e,t,n){let r;let i=e.contentWindow;if(!i)return;let a=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){let r=ie(()=>{a||(t(),a=!0)},n);e.addEventListener("load",()=>{it(r),a=!0,t()});return}let o="about:blank";if(i.location.href!==o||e.src===o||""===e.src)return ie(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=ir(e);if(t&&C){let n=ik(t,{doc:t,mirror:i,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:v,maskTextFn:b,maskInputFn:w,slimDOMOptions:_,dataURLOptions:x,inlineImages:E,recordCanvas:S,preserveWhiteSpace:O,onSerialize:k,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:A,stylesheetLoadTimeout:T,keepIframeSrcFn:R});n&&C(e,n)}},I),D.type===rH.Element&&"link"===D.tagName&&"string"==typeof D.attributes.rel&&("stylesheet"===D.attributes.rel||"preload"===D.attributes.rel&&"string"==typeof D.attributes.href&&"css"===r6(D.attributes.href))&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(e){return}if(r)return;let a=ie(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{it(a),i=!0,t()})}(e,()=>{if(A){let t=ik(e,{doc:r,mirror:i,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:v,maskTextFn:b,maskInputFn:w,slimDOMOptions:_,dataURLOptions:x,inlineImages:E,recordCanvas:S,preserveWhiteSpace:O,onSerialize:k,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:A,stylesheetLoadTimeout:T,keepIframeSrcFn:R});t&&A(e,t)}},T),D}function iC(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let iI="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.",iA={map:{},getId:()=>(console.error(iI),-1),getNode:()=>(console.error(iI),null),removeNodeFromMap(){console.error(iI)},has:()=>(console.error(iI),!1),reset(){console.error(iI)}};function iT(e,t,n={}){let r=null,i=0;return function(...a){let o=Date.now();i||!1!==n.leading||(i=o);let s=t-(o-i),l=this;s<=0||s>t?(r&&(function(...e){iW("clearTimeout")(...e)}
12(r),r=null),i=o,e.apply(l,a)):r||!1===n.trailing||(r=iG(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(l,a)},s))}}function iR(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(iA=new Proxy(iA,{get:(e,t,n)=>("map"===t&&console.error(iI),Reflect.get(e,t,n))}));let iN=Date.now;function iO(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function iP(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function iD(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function iM(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function i$(e,t,n,r,i){if(!e)return!1;let a=iM(e);if(!a)return!1;let o=ix(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=i_(a,o),l=-1;return!(s<0)&&(r&&(l=i_(a,ix(null,r))),s>-1&&l<0||s<l)}function ij(e,t){return -2===t.getId(e)}function iL(e){return!!e.changedTouches}function iF(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function iB(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function iU(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(iN=()=>new Date().getTime());class iz{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function iZ(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function iV(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=iZ(n);)n=t;return n}(e);return t.contains(n)}(e))}let iq={};function iW(e){let t=iq[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return iq[e]=r.bind(window)}function iG(...e){return iW("setTimeout")(...e)}var iH=((S=iH||{})[S.DomContentLoaded=0]="DomContentLoaded",S[S.Load=1]="Load",S[S.FullSnapshot=2]="FullSnapshot",S[S.IncrementalSnapshot=3]="IncrementalSnapshot",S[S.Meta=4]="Meta",S[S.Custom=5]="Custom",S[S.Plugin=6]="Plugin",S),iY=((k=iY||{})[k.Mutation=0]="Mutation",k[k.MouseMove=1]="MouseMove",k[k.MouseInteraction=2]="MouseInteraction",k[k.Scroll=3]="Scroll",k[k.ViewportResize=4]="ViewportResize",k[k.Input=5]="Input",k[k.TouchMove=6]="TouchMove",k[k.MediaInteraction=7]="MediaInteraction",k[k.StyleSheetRule=8]="StyleSheetRule",k[k.CanvasMutation=9]="CanvasMutation",k[k.Font=10]="Font",k[k.Log=11]="Log",k[k.Drag=12]="Drag",k[k.StyleDeclaration=13]="StyleDeclaration",k[k.Selection=14]="Selection",k[k.AdoptedStyleSheet=15]="AdoptedStyleSheet",k[k.CustomElement=16]="CustomElement",k),iK=((C=iK||{})[C.MouseUp=0]="MouseUp",C[C.MouseDown=1]="MouseDown",C[C.Click=2]="Click",C[C.ContextMenu=3]="ContextMenu",C[C.DblClick=4]="DblClick",C[C.Focus=5]="Focus",C[C.Blur=6]="Blur",C[C.TouchStart=7]="TouchStart",C[C.TouchMove_Departed=8]="TouchMove_Departed",C[C.TouchEnd=9]="TouchEnd",C[C.TouchCancel=10]="TouchCancel",C),iJ=((I=iJ||{})[I.Mouse=0]="Mouse",I[I.Pen=1]="Pen",I[I.Touch=2]="Touch",I),iX=((A=iX||{})[A.Play=0]="Play",A[A.Pause=1]="Pause",A[A.Seeked=2]="Seeked",A[A.VolumeChange=3]="VolumeChange",A[A.RateChange=4]="RateChange",A);function iQ(e){try{return e.contentDocument}catch(e){}}class i0{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
12(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let 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++}removeNode(e){let 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--)}}let i1=(e,t)=>`${e}@${t}`;class i2{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new i0,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!iV(i))return;let a=rY(i.parentNode)?this.mirror.getId(iZ(i)):this.mirror.getId(i.parentNode),o=r(i);if(-1===a||-1===o)return n.addNode(i);let s=ik(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{iF(e,this.mirror)&&!i$(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),iB(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),iU(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{i$(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:a,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!i5(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)i4(this.droppedSet,e)||i5(this.removes,e,this.mirror)?i4(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let a=null;for(;n.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),n=r(a.value);-1!==t&&-1!==n&&(e=a)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}a=e.previous,n.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!ij(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;i$(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:iE(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,iM(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){let n=r4(t),i=t.tagName;r=r9(t,i,n);let a=r0({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=r1({isMasked:iE(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:r,maskInputFn:this.maskInputFn})}if(i$(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);
12if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(iQ(t))return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!ib(t.tagName,n)&&(i.attributes[n]=iv(this.doc,r2(t.tagName),r2(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement("span");for(let r of(e.oldValue&&n.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(r),a=t.style.getPropertyPriority(r);e!==n.style.getPropertyValue(r)||a!==n.style.getPropertyPriority(r)?""===a?i.styleDiff[r]=e:i.styleDiff[r]=[e,a]:i._unchangedStyles[r]=[e,a]}for(let e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(i$(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=rY(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);i$(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ij(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(i3(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(rY(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[i1(n,r)]?i3(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(rY(e.target)&&rK(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(ij(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[i1(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!i$(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),iU(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function i3(e,t){e.delete(t),t.childNodes.forEach(t=>i3(e,t))}function i5(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function i4(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let i9=e=>v?(...t)=>{try{return e(...t)}catch(e){if(v&&!0===v(e))return()=>{};throw e}}:e,i6=[];function i7(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function i8(e,t){let n=new i2;i6.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(r=window[i]);let a=new r(i9(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function ae({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){return iC("scroll",i9(iT(i9(o=>{let s=i7(o);if(!s||i$(s,r,i,a,!0))return;let l=n.getId(s);if(s===t&&t.defaultView){let n=iO(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}let at=["INPUT","TEXTAREA","SELECT"],an=new WeakMap;function ar(e){var t;return t=[],as("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||as("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||as("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||as("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}function ai(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function aa({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);let i="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&a?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let n=a.set?.call(this,e);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),i9(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})})):()=>{}}function ao(e,t={}){let n;let r=e.doc.defaultView;if(!r)return()=>{};e.recordDOM&&(n=i8(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){let i;if(!1===t.mousemove)return()=>{};let a="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],l=iT(i9(t=>{let n=Date.now()-i;e(s.map(e=>(e.timeOffset-=n,e)),t),s=[],i=null}),o),c=i9(iT(i9(e=>{let t=i7(e),{clientX:n,clientY:a}=iL(e)?e.changedTouches[0]:e;i||(i=iN()),s.push({x:n,y:a,id:r.getId(t),timeOffset:iN()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?iY.Drag:e instanceof MouseEvent?iY.MouseMove:iY.TouchMove)}),a,{trailing:!1})),u=[iC("mousemove",c,n),iC("touchmove",c,n),iC("drag",c,n)];return i9(()=>
12{u.forEach(e=>e())})}(e),a=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let s=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,l=[],c=null,u=t=>o=>{let s=i7(o);if(i$(s,r,i,a,!0))return;let l=null,u=t;if("pointerType"in o){switch(o.pointerType){case"mouse":l=iJ.Mouse;break;case"touch":l=iJ.Touch;break;case"pen":l=iJ.Pen}l===iJ.Touch?iK[t]===iK.MouseDown?u="TouchStart":iK[t]===iK.MouseUp&&(u="TouchEnd"):iJ.Pen}else iL(o)&&(l=iJ.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===iJ.Touch||u.startsWith("Mouse")&&l===iJ.Mouse)&&(l=null)):iK[t]===iK.Click&&(l=c,c=null);let d=iL(o)?o.changedTouches[0]:o;if(!d)return;let p=n.getId(s),{clientX:f,clientY:h}=d;i9(e)({type:iK[u],id:p,x:f,y:h,...null!==l&&{pointerType:l}})};return Object.keys(iK).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(e=>{let n=r2(e),r=u(e);if(window.PointerEvent)switch(iK[e]){case iK.MouseDown:case iK.MouseUp:n=n.replace("mouse","pointer");break;case iK.TouchStart:case iK.TouchEnd:return}l.push(iC(n,r,t))}),i9(()=>{l.forEach(e=>e())})}(e),o=ae(e),s=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return iC("resize",i9(iT(i9(()=>{let t=iP(),i=iD();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=i7(e),u=e.isTrusted,g=n&&r3(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||0>at.indexOf(g)||i$(n,r,i,a,!0))return;let v=n;if(v.classList.contains(o)||s&&v.matches(s))return;let b=r4(n),w=r9(v,g,b),_=!1,x=r0({maskInputOptions:l,tagName:g,type:b}),E=iE(n,p,h,f,m,x);("radio"===b||"checkbox"===b)&&(_=n.checked),w=r1({isMasked:E,element:n,value:w,maskInputFn:c}),y(n,d?{text:w,isChecked:_,userTriggered:u}:{text:w,isChecked:_});let S=n.name;"radio"===b&&S&&_&&t.querySelectorAll(`input[type="radio"][name="${S}"]`).forEach(e=>{if(e!==n){let t=r1({isMasked:E,element:e,value:r9(e,g,b),maskInputFn:c});y(e,d?{text:t,isChecked:!_,userTriggered:!1}:{text:t,isChecked:!_})}})}function y(t,r){let i=an.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){an.set(t,r);let i=n.getId(t);i9(e)({...r,id:i})}}let v=("last"===u.input?["change"]:["input","change"]).map(e=>iC(e,i9(g),t)),b=t.defaultView;if(!b)return()=>{v.forEach(e=>e())};let w=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),_=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&v.push(..._.map(e=>(function e(t,n,r,i,a=window){let o=a.Object.getOwnPropertyDescriptor(t,n);return a.Object.defineProperty(t,n,i?r:{set(e){iG(()=>{r.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,n,o||{},!0)})(e[0],e[1],{set(){i9(g)({target:this,isTrusted:!1})}},!1,b))),i9(()=>{v.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:o}){let s=i9(o=>iT(i9(a=>{let s=i7(a);if(!s||i$(s,t,n,r,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:d}=s;e({type:o,id:i.getId(s),currentTime:l,volume:c,muted:u,playbackRate:d})}),a.media||500)),l=[iC("play",s(iX.Play),o),iC("pause",s(iX.Pause),o),iC("seeked",s(iX.Seeked),o),iC("volumechange",s(iX.VolumeChange),o),iC("ratechange",s(iX.RateChange),o)];return i9(()=>{l.forEach(e=>e())})}(e),u=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){let i,a;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:i9((r,i,a)=>{let[o,s]=a,{id:l,styleId:c}=ai(i,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:s}]}),r.apply(i,a)})});let s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:i9((r,i,a)=>{let[o]=a,{id:s,styleId:l}=ai(i,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:o}]}),r.apply(i,a)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:i9((r,i,a)=>{let[o]=a,{id:s,styleId:l}=ai(i,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:o}),r.apply(i,a)})})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:i9((r,i,a)=>{let[o]=a,{id:s,styleId:l}=ai(i,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:o}),r.apply(i,a)})}));let l={};al("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(al("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),al("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),al("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));let c={};return Object.entries(l).forEach(([r,i])=>{c[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[r].insertRule,{apply:i9((r,i,a)=>{let[o,s]=a,{id:l,styleId:c}=ai(i.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:[...ar(i),s||0]}]}),r.apply(i,a)})}),i.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:i9((r,i,a)=>{let[o]=a,{id:s,styleId:l}=ai(i.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...ar(i),o]}]}),r.apply(i,a)})})}),i9(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:r}),d=aa(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:i9((i,o,s)=>{let[l,c,u]=s;if(n.has(l))return a.apply(o,[l,c,u]);let{id:d,styleId:p}=ai(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:c,priority:u},index:ar(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:i9((i,a,s)=>{let[l]=s;if(n.has(l))return o.apply(a,[l]);let{id:c,styleId:u}=ai(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:ar(a.parentRule)}),i.apply(a,s)})}),i9(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:r}),e.collectFonts&&(f=function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){let r=new a(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let o=iR(t.fonts,"add",function(t){return function(n){return iG(i9(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=a}),r.push(o),i9(()=>
12{r.forEach(e=>e())})}(e)));let h=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,l=i9(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:o,startOffset:s,endContainer:c,endOffset:u}=e.getRangeAt(t);i$(o,r,i,a,!0)||i$(c,r,i,a,!0)||l.push({start:n.getId(o),startOffset:s,end:n.getId(c),endOffset:u})}o({ranges:l})});return l(),iC("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let n=e.defaultView;return n&&n.customElements?iR(n.customElements,"define",function(e){return function(n,r,i){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,r,t.options));return i9(()=>{i6.forEach(e=>e.reset()),n?.disconnect(),i(),a(),o(),s(),l(),c(),u(),d(),p(),f(),h(),m(),g.forEach(e=>e())})}function as(e){return void 0!==window[e]}function al(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ac{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
12getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:r.get(t)||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class au{constructor(){this.crossOriginIframeMirror=new ac(io),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ad{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ac(io),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ac(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let n=iQ(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case iH.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:iH.IncrementalSnapshot,data:{source:iY.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case iH.Meta:case iH.Load:case iH.DomContentLoaded:break;case iH.Plugin:return t;case iH.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case iH.IncrementalSnapshot:switch(t.data.source){case iY.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case iY.Drag:case iY.TouchMove:case iY.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case iY.ViewportResize:return!1;case iY.MediaInteraction:case iY.MouseInteraction:case iY.Scroll:case iY.CanvasMutation:case iY.Input:return this.replaceIds(t.data,e,["id"]),t;case iY.StyleSheetRule:case iY.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case iY.Font:return t;case iY.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case iY.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,r){for(let i of r)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
12h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===rH.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ap{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class af{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!rK(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=i8({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(ae({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),iG(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(aa({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=iQ(e),n=function(e){try{return e.contentWindow}catch(e){}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(iR(e.prototype,"attachShadow",function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&iV(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var ah="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",am="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ag=0;ag<ah.length;ag++)am[ah.charCodeAt(ag)]=ag;class ay{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class av{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new iz,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:rX(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ab{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){iW("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let aw=new rQ;function a_(e={}){let t;let{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:a="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:_,maskAttributeFn:x,maskInputFn:E,maskTextFn:S,maxCanvasSize:k=null,packFn:C,sampling:I={},dataURLOptions:A={},mousemoveWait:T,recordDOM:R=!0,recordCanvas:N=!1,recordCrossOriginIframes:O=!1,recordAfter:P="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:D=!1,collectFonts:M=!1,inl
12ineImages:$=!1,plugins:j,keepIframeSrcFn:L=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:B,onMutation:U,getCanvasManager:z}=e;v=B;let Z=!O||window.parent===window,V=!1;if(!Z)try{window.parent.document&&(V=!1)}catch(e){V=!0}if(Z&&!n)throw Error("emit function is required");if(!Z&&!V)return()=>{};void 0!==T&&void 0===I.mousemove&&(I.mousemove=T),aw.reset();let q=!0===g?{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,radio:!0,checkbox:!0}:void 0!==y?y:{},W=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};!function(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),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let G=0,H=e=>{for(let t of j||[])t.eventProcessor&&(e=t.eventProcessor(e));return C&&!V&&(e=C(e)),e};b=(e,a)=>{if(e.timestamp=iN(),i6[0]?.isFrozen()&&e.type!==iH.FullSnapshot&&!(e.type===iH.IncrementalSnapshot&&e.data.source===iY.Mutation)&&i6.forEach(e=>e.unfreeze()),Z)n?.(H(e),a);else if(V){let t={type:"rrweb",event:H(e),origin:window.location.origin,isCheckout:a};window.parent.postMessage(t,"*")}if(e.type===iH.FullSnapshot)t=e,G=0;else if(e.type===iH.IncrementalSnapshot){if(e.data.source===iY.Mutation&&e.data.isAttachIframe)return;G++;let n=i&&G>=i,a=r&&t&&e.timestamp-t.timestamp>r;(n||a)&&er(!0)}};let Y=e=>{b({type:iH.IncrementalSnapshot,data:{source:iY.Mutation,...e}})},K=e=>b({type:iH.IncrementalSnapshot,data:{source:iY.Scroll,...e}}),J=e=>b({type:iH.IncrementalSnapshot,data:{source:iY.CanvasMutation,...e}}),X=new av({mutationCb:Y,adoptedStyleSheetCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iY.AdoptedStyleSheet,...e}})}),Q="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new au:new ad({mirror:aw,mutationCb:Y,stylesheetManager:X,recordCrossOriginIframes:O,wrappedEmit:b});for(let e of j||[])e.getMirror&&e.getMirror({nodeMirror:aw,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});let ee=new ab,et=function(e,t){try{return e?e(t):new ay}catch{return console.warn("Unable to initialize CanvasManager"),new ay}}(z,{mirror:aw,win:window,mutationCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iY.CanvasMutation,...e}}),recordCanvas:N,blockClass:a,blockSelector:o,unblockSelector:s,maxCanvasSize:k,sampling:I.canvas,dataURLOptions:A,errorHandler:B}),en="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ap:new af({mutationCb:Y,scrollCb:K,bypassOptions:{onMutation:U,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:q,dataURLOptions:A,maskAttributeFn:x,maskTextFn:S,maskInputFn:E,recordCanvas:N,inlineImages:$,sampling:I,slimDOMOptions:W,iframeManager:Q,stylesheetManager:X,canvasManager:et,keepIframeSrcFn:L,processedNodeManager:ee},mirror:aw}),er=(e=!1)=>{if(!R)return;b({type:iH.Meta,data:{href:window.location.href,width:iD(),height:iP()}},e),X.reset(),en.init(),i6.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new rQ,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:a=null,maskAllText:o=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:w,onSerialize:_,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:S,stylesheetLoadTimeout:k,keepIframeSrcFn:C=()=>!1}=t||{};return ik(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:s,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{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}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
12:!1===v?{}:v,dataURLOptions:b,inlineImages:p,recordCanvas:f,preserveWhiteSpace:w,onSerialize:_,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:S,stylesheetLoadTimeout:k,keepIframeSrcFn:C,newlyAddedElement:!1})}(document,{mirror:aw,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:q,maskAttributeFn:x,maskInputFn:E,maskTextFn:S,slimDOM:W,dataURLOptions:A,recordCanvas:N,inlineImages:$,onSerialize:e=>{iF(e,aw)&&Q.addIframe(e),iB(e,aw)&&X.trackLinkElement(e),iU(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Q.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{X.attachLinkElement(e,t)},keepIframeSrcFn:L});if(!t)return console.warn("Failed to snapshot the document");b({type:iH.FullSnapshot,data:{node:t,initialOffset:iO(window)}}),i6.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&X.adoptStyleSheets(document.adoptedStyleSheets,aw.getId(document))};w=er;try{let e=[],t=e=>i9(ao)({onMutation:U,mutationCb:Y,mousemoveCb:(e,t)=>b({type:iH.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iY.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iY.ViewportResize,...e}}),inputCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iY.Input,...e}}),mediaInteractionCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iY.MediaInteraction,...e}}),styleSheetRuleCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iY.StyleSheetRule,...e}}),styleDeclarationCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iY.StyleDeclaration,...e}}),canvasMutationCb:J,fontCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iY.Font,...e}}),selectionCb:e=>{b({type:iH.IncrementalSnapshot,data:{source:iY.Selection,...e}})},customElementCb:e=>{b({type:iH.IncrementalSnapshot,data:{source:iY.CustomElement,...e}})},blockClass:a,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:q,inlineStylesheet:m,sampling:I,recordDOM:R,recordCanvas:N,inlineImages:$,userTriggeredOnInput:D,collectFonts:M,doc:e,maskAttributeFn:x,maskInputFn:E,maskTextFn:S,keepIframeSrcFn:L,blockSelector:o,unblockSelector:s,slimDOMOptions:W,dataURLOptions:A,mirror:aw,iframeManager:Q,stylesheetManager:X,shadowDomManager:en,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:F,plugins:j?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>b({type:iH.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});Q.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{er(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(iC("DOMContentLoaded",()=>{b({type:iH.DomContentLoaded,data:{}}),"DOMContentLoaded"===P&&n()})),e.push(iC("load",()=>{b({type:iH.Load,data:{}}),"load"===P&&n()},window))),()=>{e.forEach(e=>e()),ee.destroy(),w=void 0,v=void 0}}catch(e){console.warn(e)}}function ax(e){return e>9999999999?e:1e3*e}function aE(e){return e>9999999999?e/1e3:e}function aS(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:iH.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,eo.Fv)(t,10,1e3)}}),"console"===t.category)))}function ak(e){return e.closest("button,a")||e}function aC(e){let t=aI(e);return t&&t instanceof Element?ak(t):t}function aI(e){return"object"==typeof e&&e&&"target"in e?e.target:e}a_.mirror=aw,a_.takeFullSnapshot=function(e){if(!w)throw Error("please take full snapshot after start recording");w(e)},(T=N||(N={}))[T.NotStarted=0]="NotStarted",T[T.Running=1]="Running",T[T.Stopped=2]="Stopped";let aA=new Set([iY.Mutation,iY.StyleSheetRule,iY.StyleDeclaration,iY.AdoptedStyleSheet,iY.CanvasMutation,iY.Selection,iY.MediaInteraction]);class aT{constructor(e,t,n=aS){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){var e;let t=(e=()=>{this._lastMutation=aN()},_||(_=[],(0,H.hl)(rz,"open",function(e){return function(...t){if(_)try{_.forEach(e
12=>e())}catch(e){}return e.apply(rz,t)}})),_.push(e),()=>{let t=_?_.indexOf(e):-1;t>-1&&_.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n;if(n=this._ignoreSelector,!aR.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||n&&t.matches(n)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let r={timestamp:aE(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===r.node&&1>Math.abs(e.timestamp-r.timestamp))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=aE(e)}registerScroll(e=Date.now()){this._lastScroll=aE(e)}registerClick(e){let t=ak(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=aN();for(let n of(this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:a}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:rz.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,o);return}if(i>1){let e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:rz.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=tE(()=>this._checkClicks(),1e3)}}let aR=["A","BUTTON","INPUT"];function aN(){return Date.now()/1e3}function aO(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var aP=((R=aP||{})[R.Document=0]="Document",R[R.DocumentType=1]="DocumentType",R[R.Element=2]="Element",R[R.Text=3]="Text",R[R.CDATA=4]="CDATA",R[R.Comment=5]="Comment",R);let aD=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),aM=e=>t=>{if(!e.isEnabled())return;let n=function(e){let{target:t,message:n}=function(e){let t;let n="click"===e.name,r=null;try{r=n?aC(e.event):aI(e.event),t=(0,eg.Rt)(r,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:r,message:t}}(e);return aO({category:`ui.${e.name}`,...a$(t,n)})}(t);if(!n)return;let r="click"===t.name,i=r?t.event:void 0;r&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,aC(t.event)),aS(e,n)};function a$(e,t){let n=a_.mirror.getId(e),r=n&&a_.mirror.getNode(n),i=r&&a_.mirror.getMeta(r),a=i&&i.type===aP.Element?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>e.type===aP.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(aD.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(a.attributes)}}:{}}}let aj={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:o,encodedBodySize:s,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:aB(a),end:aB(i),name:r,data:{size:c,statusCode:l,decodedBodySize:o,encodedBodySize:s}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:i}=e,a=aB(i);return{type:n,name:r,start:a,end:a+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:aB(f),end:aB(a),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:p}}}};function aL(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function aF(e){let t=aj[e.entryType];return t?t(e):null}function aB(e){return(((0,eR.Z1)()||rz.performance.timeOrigin)+e)/1e3}function aU(e){let t=e.entries[e.entries.length-1];return aq(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function az(e){let t=[],n=[];for(let r of e.entries)if(void 0!==r.sources){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=a_.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return aq(e,"cumulative-layout-shift",n,t)}function aZ(e){let t=e.entries[e.entries.length-1];return aq(e,"first-input-delay",t?.target?[t.target]:void 0)}function aV(e){let t=e.entries[e.entries.length-1];return aq(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function aq(e,t,n,r){let i=e.value,a=e.rating,o=aB(i);return{type:"web-vital",name:t,start:o,end:o,data:{value:i,size:i,rating:a,nodeIds:n?n.map(e=>a_.mirror.getId(e)):void 0,attributions:r}}}let aW=["info","warn","error","log"],aG=function(){let e={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}};return aW.forEach(t=>{e[t]=()=>void 0}),e}();
12class aH extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class aY{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new aH;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?ax(e):null}}class aK{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let a=({data:t})=>{if(t.method===e&&t.id===n){if(this._worker.removeEventListener("message",a),!t.success){i(Error("Error in compression worker"));return}r(t.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class aJ{constructor(e){this._worker=new aK(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=ax(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new aH):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class aX{constructor(e){this._fallback=new aY,this._compression=new aJ(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){}}}function aQ(){try{return"sessionStorage"in rz&&!!rz.sessionStorage}catch{return!1}}function a0(e){return void 0!==e&&Math.random()<e}function a1(e){if(aQ())try{rz.sessionStorage.setItem(rZ,JSON.stringify(e))}catch{}}function a2(e){let t=Date.now(),n=e.id||(0,B.DM)(),r=e.started||t,i=e.lastActivity||t;return{id:n,started:r,lastActivity:i,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function a3({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=a2({sampled:a0(e)?"session":!!t&&"buffer",previousSessionId:r});return n&&a1(i),i}function a5(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function a4(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return a5(e.started,t,r)||a5(e.lastActivity,n,r)}function a9(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!a4(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function a6({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&function(){if(!aQ())return null;try{let e=rz.sessionStorage.getItem(rZ);if(!e)return null;let t=JSON.parse(e);return a2(t)}catch{return null}}();return i?a9(i,{sessionIdleExpire:e,maxReplayDuration:t})?a3(r,{previousSessionId:i.id}):i:a3(r,{previousSessionId:n})}function a7(e,t,n){return!!oe(e,t)&&(a8(e,t,n),!0)}async function a8(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let i="buffer"===e.recordingMode;
12try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let a=e.getOptions(),o=function(e,t){try{if("function"==typeof t&&e.type===iH.Custom)return t(e)}catch(e){return null}return e}(t,a.beforeAddRecordingEvent);if(!o)return;return await r.addEvent(o)}catch(a){let t=a&&a instanceof aH;if(t&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(a),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"});let n=(0,G.s3)();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function oe(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=ax(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function ot(e){return"transaction"===e.type}function on(e){return"feedback"===e.type}function or(e){return!!e.category}function oi(){let e=(0,G.nZ)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,tN.HN)();if(t){let e=(0,tO.jC)(t);delete e.replay_id}}function oa(e,t){return t.map(({type:t,start:n,end:r,name:i,data:a})=>{let o=e.throttledAddEvent({type:iH.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:a}}});return"string"==typeof o?Promise.resolve(null):o})}function oo(e,t){e.isEnabled()&&null!==t&&!function(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return!!n&&e.includes(n.host)||!!r&&rM(e)===rM(r)}(t.name,(0,G.s3)())&&e.addUpdate(()=>(oa(e,[t]),!0))}function os(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=rF(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function ol(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function oc(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function ou(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:o,request:s,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:a,statusCode:o,request:s,response:l}}}function od(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function op(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:a}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,n=function(e){let t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){let t=e.slice(0,15e4);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=i,a?.length&&(r._meta={warnings:a}),r}function of(e,t){return Object.entries(e).reduce((n,[r,i])=>{let a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=i),n},{})}function oh(e,t){let n=function(e,t=rz.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(rz.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return(0,U.U0)(n,t)}async function om(e,t,n){try{let r=await og(e,t,n),i=ou("resource.fetch",r);oo(n.replay,i)}catch(e){}}async function og(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r}=t,{url:o,method:s,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=oh(o,n.networkDetailAllowUrls)&&!oh(o,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?1===n.length&&"string"!=typeof n[0]?ow(n[0],t):2===n.length?ow(n[1],t):{}:{};if(!e)return op(i,r,void 0);let[a,o]=rB(rU(n),aG),s=op(i,r,a);return o?oc(s,o):s}(n,t.input,c):od(c),response:await oy(d,n,t.response,u)}}async function oy(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&void 0!==i)return od(i);let a=r?ob(r.headers,n):{};if(!r||!t&&void 0!==i)return op(a,i,void 0);let[o,s]=await ov(r),l=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let a=e?.length&&void 0===n?os(e):n;if(!r)return od(a);if(t)return op(i,a,e);return op(i,a,void 0)}catch(e){return op(i,n,void 0)}}(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return s?oc(l,s):l}async function ov(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];
12try{return[await new Promise((e,n)=>{let r=tE(()=>n(Error("Timeout while trying to read response body")),500);o_(t).then(t=>e(t),e=>n(e)).finally(()=>clearTimeout(r))})]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}}function ob(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function ow(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?ob(n,t):Array.isArray(n)?{}:of(n,t):{}}async function o_(e){return await e.text()}async function ox(e,t,n){try{let r=function(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r,input:o,xhr:s}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!s||!oh(l,n.networkDetailAllowUrls)||oh(l,n.networkDetailDenyUrls)){let e=od(d);return{startTimestamp:i,endTimestamp:a,url:l,method:c,statusCode:u,request:e,response:od(p)}}let f=s[eG],h=f?of(f.request_headers,n.networkRequestHeaders):{},m=of(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}(s),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?rB(o,aG):[void 0],[v,b]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return[void 0]}(s):[void 0],w=op(h,d,g),_=op(m,p,v);return{startTimestamp:i,endTimestamp:a,url:l,method:c,statusCode:u,request:y?oc(w,y):w,response:b?oc(_,b):_}}(e,t,n),i=ou("resource.xhr",r);oo(n.replay,i)}catch(e){}}async function oE(e){try{return Promise.all(oa(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(rz.performance.memory)]))}catch(e){return[]}}let oS=O.GLOBAL_OBJ.navigator;async function ok({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,i);let a=await (0,r$.R)(e.getOptions(),r,i,t,e,(0,G.aF)());if(!a)return null;e.emit("postprocessEvent",a,i),a.platform=a.platform||"javascript";let o=e.getSdkMetadata(),{name:s,version:l}=o?.sdk||{};return a.sdk={...a.sdk,name:s||"sentry.javascript.unknown",version:l||"0.0.0"},a}async function oC({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){var o;let s;let l=function({recordingData:e,headers:t}){let n;let r=`${JSON.stringify(t)}
13`;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);(n=new Uint8Array(t.length+e.length)).set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:p}=r,f=(0,G.s3)(),h=(0,G.nZ)(),m=f?.getTransport(),g=f?.getDsn();if(!f||!m||!g||!a.sampled)return(0,el.WD)({});let y={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:i/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:n,replay_type:a.sampled},v=await ok({scope:h,client:f,replayId:t,event:y});if(!v)return f.recordDroppedEvent("event_processor","replay"),(0,el.WD)({});delete v.sdkProcessingMetadata;let b=(o=f.getOptions().tunnel,(0,ty.Jd)((0,ty.Cd)(v,(0,ty.HY)(v),o,g),[[{type:"replay_event"},v],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{s=await m.send(b)}catch(t){let e=Error(rV);try{e.cause=t}catch{}throw e}if("number"==typeof s.statusCode&&(s.statusCode<200||s.statusCode>=300))throw new oI(s.statusCode);let w=tw({},s);if(tb(w,"replay"))throw new oA(w);return s}class oI extends Error{constructor(e){super(`Transport returned status code ${e}`)}}
13class oA extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function oT(e,t={count:0,interval:5e3}){let{recordingData:n,onError:r}=e;if(n.length)try{return await oC(e),!0}catch(n){if(n instanceof oI||n instanceof oA)throw n;if((0,$.v)("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){let e=Error(`${rV} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{tE(async()=>{try{await oT(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let oR="__THROTTLED";class oN{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,i,a;let o=n?.maxWait?Math.max(n.maxWait,t):0;function s(){return l(),r=e()}function l(){void 0!==i&&clearTimeout(i),void 0!==a&&clearTimeout(a),i=a=void 0}function c(){return i&&clearTimeout(i),i=tE(s,t),o&&void 0===a&&(a=tE(s,o)),r}return c.cancel=l,c.flush=function(){return void 0!==i||void 0!==a?s():r},c}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){let r=new Map,i=e=>{let t=e-5;r.forEach((e,n)=>{n<t&&r.delete(n)})},a=()=>[...r.values()].reduce((e,t)=>e+t,0),o=!1;return(...t)=>{let n=Math.floor(Date.now()/1e3);if(i(n),a()>=300){let e=o;return o=!0,e?"__SKIPPED":oR}o=!1;let s=r.get(n)||0;return r.set(n,s+1),e(...t)}}((e,t)=>oe(this,e)?a8(this,e,t):Promise.resolve(null),0,0);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new aT(this,i)),this._handleVisibilityChange=()=>{"visible"===rz.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=aO({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=aO({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:a,key:o,target:s}=e;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!o)return null;let l=n||i||a,c=1===o.length;if(!l&&c)return null;let u=(0,eg.Rt)(s,{maxStringLength:200})||"<unknown>",d=a$(s,u);return aO({category:"ui.keyDown",message:u,data:{...d.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:a,key:o}})}(t);n&&aS(e,n)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,!r&&(this._initializeSessionForSampling(e),this.session)&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording())}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();let e=a6({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return;let e=a6({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t;let n=this._canvas;this._stopRecording=a_({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession())return;let i=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(3!==t.type)return;let{source:n}=t.data;if(aA.has(n)&&e.registerMutation(t.timestamp),n===iY.Scroll&&e.registerScroll(t.timestamp),t.data.source===iY.MouseInteraction){let{type:n,id:r}=t.data,i=a_.mirror.getNode(r);i instanceof HTMLElement&&n===iK.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!a7(e,n,i))return!0;
13if(!i)return!1;let t=e.session;if(i&&e.session&&0===e.session.segmentId&&a7(e,function(e){let t=e.getOptions();return{type:iH.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1),"buffer"===e.recordingMode&&t&&e.eventBuffer){let n=e.eventBuffer.getEarliestTimestamp();n&&(t.started=n,e.getOptions().stickySession&&a1(t))}return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(oS?.userAgent??"")||/Macintosh/i.test(oS?.userAgent??"")&&oS?.maxTouchPoints&&oS?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{oi(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(aQ())try{rz.sessionStorage.removeItem(rZ)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&a5(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${rz.location.pathname}${rz.location.hash}${rz.location.search}`,t=`${rz.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===oR){let e=aO({category:"replay.throttled"});this.addUpdate(()=>!a7(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||(0,tN.HN)(),t=e&&(0,tN.Gx)(e),n=(t&&(0,tN.XU)(t).data||{})[tA.Zj];if(t&&n&&["route","custom"].includes(n))return(0,tN.XU)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){let e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,591 bytes, line 13
13,M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort((function(t,n){return p[n.s]-p[t.s]||t.f-n.f}));s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
13++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){G.prototype.flush.call(this)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),s=i.length;return q(i,n),j(i,s-8,r.d()),j(i,s-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;let n=new Worker(t);return new aX(n)}catch(e){}}(t);if(e)return e}return new aY}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=a6({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!a9(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{rz.document.addEventListener("visibilitychange",this._handleVisibilityChange),rz.addEventListener("blur",this._handleWindowBlur),rz.addEventListener("focus",this._handleWindowFocus),rz.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e,{autoFlushOnFeedback:t}){let n=(0,G.s3)();eV(aM(e)),eK(t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(oa(e,[n]),!1)))}),function(e){let t=(0,G.s3)();t&&t.on("beforeAddBreadcrumb",t=>(function(e,t){if(!e.isEnabled()||!or(t))return;let n=!or(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return aO(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=(0,eo.Fv)(e,7);if(JSON.stringify(t).length>5e3)return n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch{}return e});return aO({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):aO(t);n&&aS(e,n)})(e,t))}(e),function(e){let t=(0,G.s3)();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{"xhr"===t.category&&n?.xhr&&(function(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=os(r),a=n.getResponseHeader("content-length")?ol(n.getResponseHeader("content-length")):function(e,t){try{let n="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return os(n)}catch{return}}(n.response,n.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a
13)}(t,n),ox(t,n,e)),"fetch"===t.category&&n?.response&&(function(e,t){let{input:n,response:r}=t,i=os(n?rU(n):void 0),a=r?ol(r.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}(t,n),om(t,n,e))}catch(e){}})(s,e,t))}catch{}}(e);let r=Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:"replay_event"===t.type?(delete t.breadcrumbs,t):!t.type||ot(t)||on(t)?e.checkAndHandleExpiredSession()?on(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:iH.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t):!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&n.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions?null:(("buffer"===e.recordingMode&&t.message!==rV&&t.exception&&!t.type&&a0(e.getOptions().errorSampleRate)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(oi(),t):t,{id:"Replay"});(0,$.Qy)(r),n&&(n.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let n=t.exception?.values?.[0]?.value;"string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&aS(e,aO({category:"replay.hydrate-error",data:{url:(0,eg.l4)()}}))}(e,t)}),n.on("afterSendEvent",(t,n)=>{if(!e.isEnabled()||t.type&&!ot(t))return;let r=n?.statusCode;if(r&&!(r<200)&&!(r>=300)){if(ot(t)){(function(e,t){let n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)})(e,t);return}(function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&tE(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})})(e,t)}}),n.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),n.on("spanStart",t=>{e.lastActiveSpan=t}),n.on("spanEnd",t=>{e.lastActiveSpan=t}),n.on("beforeSendFeedback",async(n,r)=>{let i=e.getSessionId();r?.includeReplay&&e.isEnabled()&&i&&n.contexts?.feedback&&("api"===n.contexts.feedback.source&&t&&await e.flush(),n.contexts.feedback.replay_id=i)}),t&&n.on("openFeedbackWidget",async()=>{await e.flush()}))}(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(e=>{r.push(nB(e,n))}),r.push(nj(aL(aU,e)),n$(aL(az,e)),nL(aL(aZ,e)),nF(aL(aV,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{rz.document.removeEventListener("visibilitychange",this._handleVisibilityChange),rz.removeEventListener("blur",this._handleWindowBlur),rz.removeEventListener("focus",this._handleWindowFocus),rz.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){!this.session||a4(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:iH.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(aF).filter(
13Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(oa(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents)&&(await oE(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await oT({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=(0,G.s3)();e&&e.recordDroppedEvent(t instanceof oA?"ratelimit_backoff":"send_error","replay")}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){r&&this._debouncedFlush();return}let a=this.eventBuffer;a&&0===this.session.segmentId&&a.hasCheckout;let o=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&a1(this.session)}_onMutationHandler(e){let t=e.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,i=n&&t>n;if(t>r||i){let e=aO({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function oO(e,t){return[...e,...t].join(",")}let oP='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',oD=["content-length","content-type","accept"],oM=!1;class o${constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:a=!0,workerUrl:o,_experiments:s={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:w=[],maskAttributes:_=["title","placeholder","aria-label"],unmask:x=[],block:E=[],unblock:S=[],ignore:k=[],maskFn:C,beforeAddRecordingEvent:I,beforeErrorSampling:A,onError:T}={}){this.name="Replay";let R=function({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:oO(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:oO(t,[]),blockSelector:oO(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:oO(r,[]),ignoreSelector:oO(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:w,unmask:x,block:E,unblock:S,ignore:k});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(e,t,n)=>(function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a})({maskAttributes:_,maskAllText:l,privacyOptions:R,key:e,value:t,el:n}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,3
136e5),stickySession:i,useCompression:a,workerUrl:o,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:oj(v),networkResponseHeaders:oj(b),beforeAddRecordingEvent:I,beforeErrorSampling:A,onError:T,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${oP}`:oP),this._isInitialized&&rL())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return oM}set _isInitialized(e){oM=e}afterAllSetup(e){rL()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=(0,tL.o)(n.replaysSessionSampleRate),a=(0,tL.o)(n.replaysOnErrorSampleRate);return null==i&&null==a&&(0,P.Cf)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(r.sessionSampleRate=i),null!=a&&(r.errorSampleRate=a),r}(this._initialOptions,e);this._replay=new oN({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function oj(e){return[...oD,...e.map(e=>e.toLowerCase())]}let oL=["expired login","invalid password"];var oF=n(14224);globalThis._sentryRewritesTunnelPath="/tunnel",globalThis.SENTRY_RELEASE=void 0,globalThis._sentryBasePath=void 0,globalThis._sentryRewriteFramesAssetPrefixPath="",globalThis._sentryAssetPrefix=void 0,globalThis._sentryExperimentalThirdPartyOriginStackFrames=void 0;let oB=window.__NEXT_DATA__?.page??"",oU=window.location.pathname.startsWith("/pay/")||oB.startsWith("/[wigwagId]");!function(e){rP&&(0,P.Cf)(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),rP=!0;let t={environment:function(e){let t=e?tI.env.NEXT_PUBLIC_VERCEL_ENV:tI.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=tk(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(function(e={}){let t=rp({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[n,{headers:r}]=t;return r?.get("next-router-prefetch")&&n?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){var i;if(r&&(i=e,ey.document.getElementById("__NEXT_DATA__")?rk.events.on("routeChangeStart",e=>{let t,n;let r=ez(e),a=function(e){let t=ey.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";t[t.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(r);a?(t=a,n="route"):(t=r,n="url"),rh(i,{name:t,attributes:{[tA.$J]:"navigation",[tA.S3]:"auto.navigation.nextjs.pages_router_instrumentation",[tA.Zj]:n}})}):function(e){ey.addEventListener("popstate",()=>{rv.current?.isRecording()?(rv.current.updateName(ey.location.pathname),rv.current.setAttribute(tA.Zj,"url")):rv.current=rh(e,{name:ey.location.pathname,attributes:{[tA.S3]:"auto.navigation.nextjs.app_router_instrumentation",[tA.Zj]:"url","navigation.type":"browser.popstate"}})});let t=!1,n=0,r=setInterval(()=>{n++;let i=rb?.next?.router??rb?.nd?.router;t||n>500?clearInterval(r):i&&(clearInterval(r),t=!0,rx(e,i,rv),["nd","next"].forEach(t=>{let n=rb[t];n&&(rb[t]=new Proxy(n,{set:(t,n,r)=>("router"===n&&"object"==typeof r&&null!==r&&rx(e,r,rv),t[n]=r,!0)}))}))},20)}(i)),t.afterAllSetup(e),n)ey.document.getElementById("__NEXT_DATA__")?function(e){let{route:t,params:n,sentryTrace:r,baggage:i}=function(){let e;let t=ey.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){rS.X&&P.kg.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:i,props:a}=e;return n.route=r,n.params=i,a?.pageProps&&(n.sentryTrace=a.pageProps._sentryTraceData,n.baggage=a.pageProps._sentryBaggage),n}(),a=(0,rn.XM)(i),o=t||ey.location.pathname;a?.["sentry-transaction"]&&"/_error"===o&&(o=(o=a["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let s=(0,eR.Z1)();rf(e,{name:o,startTime:s?s/1e3:void 0,attributes:{[tA.$J]:"pageload",[tA.S3]:"auto.pageload.nextjs.pages_router_instrumentation",[tA.Zj]:t?"route":"url",...n&&e.getOptions().sendDefaultPii&&{...n}}},{sentryTrace:r,baggage:i})}(e):function(e){let t=(0,eR.Z1)();rf(e,{name:ey.location.pathname,startTime:t?t/1e3:void 0,attributes:{[tA.$J]:"pageload",[tA.S3]:"auto.pageload.nextjs.app_router_instrumentation",[tA.Zj]:"url"}})}(e)}}}());let n=rD._sentryRewriteFramesAssetPrefixPath||"",r=rO.env._sentryAssetPrefix||rD._sentryAssetPrefix,i=rO.env._sentryBasePath||rD._sentryBasePath,a="true"===rO.env._experimentalThirdPartyOriginStackFrames||"true"===rD._experimentalThirdPartyOriginStackFrames;return t.push(rR({assetPrefix:r,basePath:i,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:a})),t}(e),release:rO.env._sentryRelease||rD._sentryRelease,...e};!function(e){let t="/tunnel";if(t&&e.dsn){let n=(0,rN.U4)(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],a=r[2],o=`${t}?o=${i}&p=${n.projectId}`;a&&(o+=`&r=${a}`),e.tunnel=o,rS.X&&P.kg.info(`Tunneling events to "${o}"`)}else rS.X&&P.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(t),M(t,"nextjs",["nextjs","react"]),function(e){let t={...e};
13M(t,"react"),(0,$.v)("react",{version:tC.version}),function(e={}){let t=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===ey.window||ey.nw)return!1;let e=ey.chrome||ey.browser;if(!e?.runtime?.id)return!1;let t=(0,eg.l4)();return!(ey===ey.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>t.startsWith(`${e}://`)))}();(function(e,t){!0===t.debug&&(j.X?P.kg.enable():(0,P.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,G.nZ)().update(t.initialScope);let n=new e(t);(0,G.nZ)().setClient(n),n.init()})(e_,{...e,enabled:!t&&e.enabled,stackParser:(0,J.Sq)(e.stackParser||tm),integrations:(0,L.m8)({integrations:e.integrations,defaultIntegrations:null==e.defaultIntegrations?tk():e.defaultIntegrations}),transport:e.transport||tS})}(t)}(t);let n=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;n.id="NextClient404Filter",(0,$.Qy)(n);let r=e=>"transaction"===e.type&&e.transaction===ry?null:e;r.id="IncompleteTransactionFilter",(0,$.Qy)(r);let i=(e,t)=>{var n;return(n=t?.originalException,(0,es.VZ)(n)&&"string"==typeof n.digest&&n.digest.startsWith("NEXT_REDIRECT;")||e.exception?.values?.[0]?.value==="NEXT_REDIRECT")?null:e};i.id="NextRedirectErrorFilter",(0,$.Qy)(i)}({dsn:"https://2b650d4ea6ebe549d1691a5f8005e83a@o4506982307987456.ingest.us.sentry.io/4506982309167104",release:oF.env.VERSION,tracesSampleRate:.1,debug:!1,replaysOnErrorSampleRate:oU?0:1,environment:"production",includeLocalVariables:!0,replaysSessionSampleRate:oU?0:.01,normalizeDepth:5,beforeSend:function(e,t){var n,r;let i=(n=e,(r=t).originalException instanceof Error?r.originalException.message:n.exception?.values?.[0]?.value||(n.message??"")).toLowerCase();return oL.some(e=>i.includes(e))?null:e},integrations:oU?[]:[new o$(x)],_experiments:{}})},69211:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(75271);let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),o=e=>{let t=a(e);return t.charAt(0).toUpperCase()+t.slice(1)},s=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),l=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var c={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let u=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a="",children:o,iconNode:u,...d},p)=>(0,r.createElement)("svg",{ref:p,...c,width:t,height:t,stroke:e,strokeWidth:i?24*Number(n)/Number(t):n,className:s("lucide",a),...!o&&!l(d)&&{"aria-hidden":"true"},...d},[...u.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(o)?o:[o]])),d=(e,t)=>{let n=(0,r.forwardRef)(({className:n,...a},l)=>(0,r.createElement)(u,{ref:l,iconNode:t,className:s(`lucide-${i(o(e))}`,`lucide-${e}`,n),...a}
13));return n.displayName=o(e),n}},69214:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(69211).Z)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},28301:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(69211).Z)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},29633:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(69211).Z)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},11257:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(69211).Z)("dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]])},94710:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(69211).Z)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},92330:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(69211).Z)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},16854:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(69211).Z)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9297:function(e,t){"use strict";var n,r,i,a;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return u},ACTION_REFRESH:function(){return o},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return p},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return f}});let o="refresh",s="navigate",l="restore",c="server-patch",u="prefetch",d="fast-refresh",p="server-action";function f(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=n||(n={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(a=r||(r={})).fresh="fresh",a.reusable="reusable",a.expired="expired",a.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69077:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(36189),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12473:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let r=n(42430),i=n(11778),a=n(52676),o=i._(n(75271)),s=r._(n(30967)),l=r._(n(7320)),c=n(5629),u=n(54870),d=n(84929);n(94167);let p=n(61610),f=r._(n(5047)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(e,t,n,r,i,a,o){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function g(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}let y=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:s,width:l,decoding:c,className:u,style:d,fetchPriority:p,placeholder:f,loading:h,unoptimized:y,fill:v,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:_,setShowAltText:x,sizesInput:E,onLoad:S,onError:k,...C}=e;return(0,a.jsx)("img",{...C,...g(p),loading:h,width:l,height:s,decoding:c,"data-nimg":v?"fill":"1",className:u,style:d,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(k&&(e.src=e.src),e.complete&&m(e,f,b,w,_,y,E))},[n,f,b,w,_,k,y,E,t]),onLoad:e=>{m(e.currentTarget,f,b,w,_,y,E)},onError:e=>{x(!0),"empty"!==f&&_(!0),k&&k(e)}})});function v(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&s.default.preload?(s.default.preload(n.src,r),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let b=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(p.RouterContext),r=(0,o.useContext)(d.ImageConfigContext),i=(0,o.useMemo)(()=>{var e;let t=h||r||u.imageConfigDefault,n=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>
13e-t),i=t.deviceSizes.sort((e,t)=>e-t),a=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:n,deviceSizes:i,qualities:a}},[r]),{onLoad:s,onLoadingComplete:l}=e,m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[b,w]=(0,o.useState)(!1),[_,x]=(0,o.useState)(!1),{props:E,meta:S}=(0,c.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:b,showAltText:_});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{...E,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:x,sizesInput:e.sizes,ref:t}),S.priority?(0,a.jsx)(v,{isAppRouter:!n,imgAttributes:E}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96032:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let r=n(42430),i=n(52676),a=r._(n(75271)),o=n(1175),s=n(48996),l=n(826),c=n(78780),u=n(44081),d=n(61610),p=n(13917),f=n(50189),h=n(69077),m=n(46098),g=n(9297),y=new Set;function v(e,t,n,r,i,a){if(a||(0,s.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(y.has(i))return;y.add(i)}(async()=>a?e.prefetch(t,i):e.prefetch(t,n,r))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let w=a.default.forwardRef(function(e,t){let n,r;let{href:l,as:y,children:w,prefetch:_=null,passHref:x,replace:E,shallow:S,scroll:k,locale:C,onClick:I,onMouseEnter:A,onTouchStart:T,legacyBehavior:R=!1,...N}=e;n=w,R&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let O=a.default.useContext(d.RouterContext),P=a.default.useContext(p.AppRouterContext),D=null!=O?O:P,M=!O,$=!1!==_,j=null===_?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:L,as:F}=a.default.useMemo(()=>{if(!O){let e=b(l);return{href:e,as:y?b(y):e}}let[e,t]=(0,o.resolveHref)(O,l,!0);return{href:e,as:y?(0,o.resolveHref)(O,y):t||e}},[O,l,y]),B=a.default.useRef(L),U=a.default.useRef(F);R&&(r=a.default.Children.only(n));let z=R?r&&"object"==typeof r&&r.ref:t,[Z,V,q]=(0,f.useIntersection)({rootMargin:"200px"}),W=a.default.useCallback(e=>{(U.current!==F||B.current!==L)&&(q(),U.current=F,B.current=L),Z(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[F,z,L,q,Z]);a.default.useEffect(()=>{D&&V&&$&&v(D,L,F,{locale:C},{kind:j},M)},[F,L,V,C,$,null==O?void 0:O.locale,D,M,j]);let G={ref:W,onClick(e){R||"function"!=typeof I||I(e),R&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),D&&!e.defaultPrevented&&function(e,t,n,r,i,o,l,c,u){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:o,locale:c,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};u?a.default.startTransition(p):p()}(e,D,L,F,E,S,k,C,M)},onMouseEnter(e){R||"function"!=typeof A||A(e),R&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),D&&($||!M)&&v(D,L,F,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:j},M)},onTouchStart:function(e){R||"function"!=typeof T||T(e),R&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),D&&($||!M)&&v(D,L,F,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:j},M)}};if((0,c.isAbsoluteUrl)(F))G.href=F;else if(!R||x||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==O?void 0:O.locale,t=(null==O?void 0:O.isLocaleDomain)&&(0,h.getDomainLocale)(F,e,null==O?void 0:O.locales,null==O?void 0:O.domainLocales);G.href=t||(0,m.addBasePath)((0,u.addLocale)(F,e,null==O?void 0:O.defaultLocale))}return R?a.default.cloneElement(r,G):(0,i.jsx)("a",{...N,...G,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
13dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50189:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(75271),i=n(99617),a="function"==typeof IntersectionObserver,o=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,c=l||!a,[u,d]=(0,r.useState)(!1),p=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{p.current=e},[]);return(0,r.useEffect)(()=>{if(a){if(c||u)return;let e=p.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=o.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),o.set(n,t),t}(n);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),o.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!u){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,n,t,u,p.current]),[f,u,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(94167);let r=n(24134),i=n(54870);function a(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var n,s;let l,c,u,{src:d,sizes:p,unoptimized:f=!1,priority:h=!1,loading:m,className:g,quality:y,width:v,height:b,fill:w=!1,style:_,overrideSrc:x,onLoad:E,onLoadingComplete:S,placeholder:k="empty",blurDataURL:C,fetchPriority:I,decoding:A="async",layout:T,objectFit:R,objectPosition:N,lazyBoundary:O,lazyRoot:P,...D}=e,{imgConf:M,showAltText:$,blurComplete:j,defaultLoader:L}=t,F=M||i.imageConfigDefault;if("allSizes"in F)l=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t),r=null==(n=F.qualities)?void 0:n.sort((e,t)=>e-t);l={...F,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===L)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let B=D.loader||L;delete D.loader,delete D.srcSet;let U="__next_img_default"in B;if(U){if("custom"===l.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=B;B=t=>{let{config:n,...r}=t;return e(r)}}if(T){"fill"===T&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[T];e&&(_={..._,...e});let t={responsive:"100vw",fill:"100vw"}[T];t&&!p&&(p=t)}let z="",Z=o(v),V=o(b);if("object"==typeof(s=d)&&(a(s)||void 0!==s.src)){let e=a(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(c=e.blurWidth,u=e.blurHeight,C=C||e.blurDataURL,z=e.src,!w){if(Z||V){if(Z&&!V){let t=Z/e.width;V=Math.round(e.height*t)}else if(!Z&&V){let t=V/e.height;Z=Math.round(e.width*t)}}else Z=e.width,V=e.height}}let q=!h&&("lazy"===m||void 0===m);(!(d="string"==typeof d?d:z)||d.startsWith("data:")||d.startsWith("blob:"))&&(f=!0,q=!1),l.unoptimized&&(f=!0),U&&d.endsWith(".svg")&&!l.dangerouslyAllowSVG&&(f=!0),h&&(I="high");let W=o(y),G=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:R,objectPosition:N}:{},$?{}:{color:"transparent"},_),H=j||"empty"===k?null:"blur"===k?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:Z,heightInt:V,blurWidth:c,blurHeight:u,blurDataURL:C||"",objectFit:G.objectFit})+'")':'url("'+k+'")',Y=H?{backgroundSize:G.objectFit||"cover",backgroundPosition:G.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:H}:{}
13,K=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:a,sizes:o,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:c}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,o),u=l.length-1;return{sizes:o||"w"!==c?o:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:a,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:s({config:t,src:n,quality:a,width:l[u]})}}({config:l,src:d,unoptimized:f,width:Z,quality:W,sizes:p,loader:B});return{props:{...D,loading:q?"lazy":m,fetchPriority:I,width:Z,height:V,decoding:A,className:g,style:{...G,...Y},sizes:K.sizes,srcSet:K.srcSet,src:x||K.src},meta:{unoptimized:f,priority:h,placeholder:k,fill:w}}}},24134:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:a,objectFit:o}=e,s=r?40*r:t,l=i?40*i:n,c=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(c?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},70467:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return s}});let r=n(42430),i=n(5629),a=n(12473),o=r._(n(5047));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=a.Image},5047:function(e,t){"use strict";function n(e){var t;let{config:n,src:r,width:i,quality:a}=e,o=a||(null==(t=n.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return n.path+"?url="+encodeURIComponent(r)+"&w="+i+"&q="+o}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},25092:function(e,t,n){"use strict";n.d(t,{Z:function(){return ev}});let r=[],i=0,a=0,o=e=>{let t=[],n={get:()=>(n.lc||n.listen(()=>{})(),n.value),lc:0,listen:e=>(n.lc=t.push(e),()=>{for(let t=i+4;t<r.length;)r[t]===e?r.splice(t,4):t+=4;let a=t.indexOf(e);!~a||(t.splice(a,1),--n.lc||n.off())}),notify(e,o){a++;let s=!r.length;for(let i of t)r.push(i,n.value,e,o);if(s){for(i=0;i<r.length;i+=4)r[i](r[i+1],r[i+2],r[i+3]);r.length=0}},off(){},set(e){let t=n.value;t!==e&&(n.value=e,n.notify(t))},subscribe(e){let t=n.listen(e);return e(n.value),t},value:e};return n};var s=Object.defineProperty,l=Object.defineProperties,c=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&f(e,n,t[n]);if(u)for(var n of u(t))p.call(t,n)&&f(e,n,t[n]);return e},m=(e,t)=>l(e,c(t)),g=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n}},y=async(e,t)=>{var n,r,i,a,o,s;let l=t||{},c={onRequest:[null==t?void 0:t.onRequest],onResponse:[null==t?void 0:t.onResponse],onSuccess:[null==t?void 0:t.onSuccess],onError:[null==t?void 0:t.onError],onRetry:[null==t?void 0:t.onRetry]};if(!t||!(null==t?void 0:t.plugins))return{url:e,options:l,hooks:c};for(let u of(null==t?void 0:t.plugins)||[]){if(u.init){let r=await (null==(n=u.init)?void 0:n.call(u,e.toString(),t));l=r.options||l,e=r.url}c.onRequest.push(null==(r=u.hooks)?void 0:r.onRequest),c.onResponse.push(null==(i=u.hooks)?void 0:i.onResponse),c.onSuccess.push(null==(a=u.hooks)?void 0:a.onSuccess),c.onError.push(null==(o=u.hooks)?void 0:o.onError),c.onRetry.push(null==(s=u.hooks)?void 0:s.onRetry)}return{url:e,options:l,hooks:c}},v=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},b=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}},w=async e=>{let t={},n=async e=>"function"==typeof e?await e():e;
13if(null==e?void 0:e.auth){if("Bearer"===e.auth.type){let r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if("Basic"===e.auth.type){let r=n(e.auth.username),i=n(e.auth.password);if(!r||!i)return t;t.authorization=`Basic ${btoa(`${r}:${i}`)}`}else if("Custom"===e.auth.type){let r=n(e.auth.value);if(!r)return t;t.authorization=`${n(e.auth.prefix)} ${r}`}}return t},_=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function x(e){if(void 0===e)return!1;let t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!e.buffer&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}function E(e){try{return JSON.parse(e)}catch(t){return e}}function S(e){return"function"==typeof e}async function k(e){let t=new Headers(null==e?void 0:e.headers);for(let[n,r]of Object.entries(await w(e)||{}))t.set(n,r);if(!t.has("content-type")){let n=x(null==e?void 0:e.body)?"application/json":null;n&&t.set("content-type",n)}return t}var C=class e extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,e.prototype)}};async function I(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new C(n.issues);return n.value}var A=["get","post","put","patch","delete"],T=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var r,i,a,o;let s=(null==(i=null==(r=e.plugins)?void 0:r.find(e=>{var n;return null!=(n=e.schema)&&!!n.config&&(t.startsWith(e.schema.config.baseURL||"")||t.startsWith(e.schema.config.prefix||""))}))?void 0:i.schema)||e.schema;if(s){let e=t;(null==(a=s.config)?void 0:a.prefix)&&e.startsWith(s.config.prefix)&&(e=e.replace(s.config.prefix,""),s.config.baseURL&&(t=t.replace(s.config.prefix,s.config.baseURL))),(null==(o=s.config)?void 0:o.baseURL)&&e.startsWith(s.config.baseURL)&&(e=e.replace(s.config.baseURL,""));let r=s.schema[e];if(r){let e=m(h({},n),{method:r.method,output:r.output});return(null==n?void 0:n.disableValidation)||(e=m(h({},e),{body:r.input?await I(r.input,null==n?void 0:n.body):null==n?void 0:n.body,params:r.params?await I(r.params,null==n?void 0:n.params):null==n?void 0:n.params,query:r.query?await I(r.query,null==n?void 0:n.query):null==n?void 0:n.query})),{url:t,options:e}}}return{url:t,options:n}}}),R=e=>async function(t,n){let r=m(h(h({},e),n),{plugins:[...(null==e?void 0:e.plugins)||[],T(e||{})]});if(null==e?void 0:e.catchAllError)try{return await N(t,r)}catch(e){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:e}}}return await N(t,r)},N=async(e,t)=>{var n,r,i,a,o,s,l,c;let u;let{hooks:d,url:p,options:f}=await y(e,t),w=function(e){if(null==e?void 0:e.customFetchImpl)return e.customFetchImpl;if("undefined"!=typeof globalThis&&S(globalThis.fetch))return globalThis.fetch;if("undefined"!=typeof window&&S(window.fetch))return window.fetch;throw Error("No fetch implementation found")}(f),C=new AbortController,T=null!=(n=f.signal)?n:C.signal,R=function(e,t){let{baseURL:n,params:r,query:i}=t||{query:{},params:{},baseURL:""},a=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){let t=e.toString().split("@")[1].split("/")[0];A.includes(t)&&(e=e.replace(`@${t}/`,"/"))}a.endsWith("/")||(a+="/");let[o,s]=e.replace(a,"").split("?"),l=new URLSearchParams(s);for(let[e,t]of Object.entries(i||{}))null!=t&&l.set(e,String(t));if(r){if(Array.isArray(r))for(let[e,t]of o.split("/").filter(e=>e.startsWith(":")).entries()){let n=r[e];o=o.replace(t,n)}else for(let[e,t]of Object.entries(r))o=o.replace(`:${e}`,String(t))}(o=o.split("/").map(encodeURIComponent).join("/")).startsWith("/")&&(o=o.slice(1));let c=l.toString();return(c=c.length>0?`?${c}`.replace(/\+/g,"%20"):"",a.startsWith("http"))?new URL(`${o}${c}`,a):`${a}${o}${c}`}(p,f),O=function(e){if(!(null==e?void 0:e.body))return null;let t=new Headers(null==e?void 0:e.headers);if(x(e.body)&&!t.has("content-type")){for(let[t,n]of Object.entries(null==e?void 0:e.body))n instanceof Date&&(e.body[t]=n.toISOString());return JSON.stringify(e.body)}return e.body}(f),P=await k(f),D=function(e,t){var n;if(null==t?void 0:t.method)return t.method.toUpperCase();if(e.startsWith("@")){let r=null==(n=e.split("@")[1])?void 0:n.split("/")[0];return A.includes(r)?r.toUpperCase():(null==t?void 0:t.body)?"POST":"GET"}return(null==t?void 0:t.body)?"POST":"GET"}(p,f),M=m(h({},f),{url:R,headers:P,body:O,method:D,signal:T});for(let e of d.onRequest)if(e){let t=await e(M);t instanceof Object&&(M=t)}("pipeTo"in M&&"function"==typeof M.pipeTo||"function"==typeof(null==(r=null==t?void 0:t.body)?void 0:r.pipe))&&!("duplex"in M)&&(M.duplex="half");let{clearTimeout:$}=(!(null==f?void 0:f.signal)&&(null==f?void 0:f.timeout)&&(u=setTimeout(()=>null==C?void 0:C.abort(),null==f?void 0:f.timeout)),{abortTimeout:u,clearTimeout:()=>{u&&clearTimeout(u)}}),j=await w(M.url,M);$();let L={response:j,request:M};for(let e of d.onResponse)if(e){let n=await e(m(h({},L),{response:(null==(i=null==t?void 0:t.hookOptions)?void 0:i.cloneResponse)?j.clone():j}));n instanceof Response?j=n:n instanceof Object&&(j=n.response)}if(j.ok){if(!("HEAD"!==M.method))return{data:"",error:null};let e=function(e){let t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";let r=t.split(";").shift()||"";return _.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}(j),n={data:"",response:j,request:M};if("json"===e||"text"===e){let e=await j.text(),t=null!=(a=M.jsonParser)?a:E,r=await t(e);n.data=r}else n.data=await j[e]();for(let e of((null==M?void 0:M.output)&&M.output&&!M.disableValidation&&(n.data=await I(M.output,n.data)),d.onSuccess))e&&await e(m(h({},n),{response:(null==(o=null==t?void 0:t.hookOptions)?void 0:o.cloneResponse)?j.clone():j}));return(null==t?void 0:t.throw)?n.data:{data:n.data,error:null}}let F=null!=(s=null==t?void 0:t.jsonParser)?s:E,B=await j.text(),U=function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(B),z=U?await F(B):null,Z={response:j,responseText:B,request:M,error:m(h({},z),{status:j.status,statusText:j.statusText})};for(let e of d.onError)e&&await e(m(h({},Z),{response:(null==(l=null==t?void 0:t.hookOptions)?void 0:l.cloneResponse)?j.clone():j}));if(null==t?void 0:t.retry){let n=function(e){if("number"==typeof e)return new v({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new v(e);case"exponential":return new b(e);default:throw Error("Invalid retry strategy")}}(t.retry),r=null!=(c=t.retryAttempt)?c:0;if(await n.shouldAttemptRetry(r,j)){for(let e of d.onRetry)e&&await e(L);let i=n.getDelay(r);return await new Promise(e=>
13setTimeout(e,i)),await N(e,m(h({},t),{retryAttempt:r+1}))}}if(null==t?void 0:t.throw)throw new g(j.status,j.statusText,U?z:B);return{data:null,error:m(h({},z),{status:j.status,statusText:j.statusText})}},O=n(14224);let P=Object.create(null),D=e=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?P:globalThis),M=new Proxy(P,{get:(e,t)=>D()[t]??P[t],has:(e,t)=>t in D()||t in P,set:(e,t,n)=>(D(!0)[t]=n,!0),deleteProperty(e,t){if(!t)return!1;let n=D(!0);return delete n[t],!0},ownKeys:()=>Object.keys(D(!0))});"test"!==(void 0!==O&&O.env&&"production"||"")&&M.TEST;let $=(e,t,n,r)=>(e.events=e.events||{},e.events[n+10]||(e.events[n+10]=r(t=>{e.events[n].reduceRight((e,t)=>(t(e),e),{shared:{},...t})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let r=e.events[n],i=r.indexOf(t);r.splice(i,1),r.length||(delete e.events[n],e.events[n+10](),delete e.events[n+10])}),j=(e,t)=>$(e,n=>{let r=t(n);r&&e.events[6].push(r)},5,t=>{let n=e.listen;e.listen=(...r)=>(e.lc||e.active||(e.active=!0,t()),n(...r));let r=e.off;return e.events[6]=[],e.off=()=>{r(),setTimeout(()=>{if(e.active&&!e.lc){for(let t of(e.active=!1,e.events[6]))t();e.events[6]=[]}},1e3)},()=>{e.listen=n,e.off=r}}),L=(e,t,n,r)=>{let i=o({data:null,error:null,isPending:!0,isRefetching:!1,refetch:()=>a()}),a=()=>{let e="function"==typeof r?r({data:i.get().data,error:i.get().error,isPending:i.get().isPending}):r;return n(t,{...e,async onSuccess(t){i.set({data:t.data,error:null,isPending:!1,isRefetching:!1,refetch:i.value.refetch}),await e?.onSuccess?.(t)},async onError(t){let{request:n}=t,r="number"==typeof n.retry?n.retry:n.retry?.attempts,a=n.retryAttempt||0;r&&a<r||(i.set({error:t.error,data:null,isPending:!1,isRefetching:!1,refetch:i.value.refetch}),await e?.onError?.(t))},async onRequest(t){let n=i.get();i.set({isPending:null===n.data,data:n.data,error:null,isRefetching:!0,refetch:i.value.refetch}),await e?.onRequest?.(t)}})};e=Array.isArray(e)?e:[e];let s=!1;for(let t of e)t.subscribe(()=>{s?a():j(i,()=>(setTimeout(()=>{a()},0),s=!0,()=>{i.off(),t.off()}))});return i};var F=n(20156);let B=e=>{if(!e.permissions&&!e.permission)return!1;let t=e.role.split(","),n=e.options.roles||F.O9;for(let r of t){let t=n[r],i=t?.authorize(e.permissions??e.permission);if(i?.success)return!0}return!1};function U(e){let t=new Uint8Array(e),n="";for(let e of t)n+=String.fromCharCode(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function z(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n=(4-t.length%4)%4,r=atob(t.padEnd(t.length+n,"=")),i=new ArrayBuffer(r.length),a=new Uint8Array(i);for(let e=0;e<r.length;e++)a[e]=r.charCodeAt(e);return i}function Z(){return V.stubThis(globalThis?.PublicKeyCredential!==void 0&&"function"==typeof globalThis.PublicKeyCredential)}let V={stubThis:e=>e};function q(e){let{id:t}=e;return{...e,id:z(t),transports:e.transports}}function W(e){return"localhost"===e||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}class G extends Error{constructor({message:e,code:t,cause:n,name:r}){super(e,{cause:n}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=r??n.name,this.code=t}}class H{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){let e=Error("Cancelling existing WebAuthn API call for new one");e.name="AbortError",this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}let Y=new H,K=["cross-platform","platform"];function J(e){if(!(!e||0>K.indexOf(e)))return e}async function X(e){let t,n,r,i,a;!e.optionsJSON&&e.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});let{optionsJSON:o,useAutoRegister:s=!1}=e;if(!Z())throw Error("WebAuthn is not supported in this browser");let l={...o,challenge:z(o.challenge),user:{...o.user,id:z(o.user.id)},excludeCredentials:o.excludeCredentials?.map(q)},c={};s&&(c.mediation="conditional"),c.publicKey=l,c.signal=Y.createNewAbortSignal();try{t=await navigator.credentials.create(c)}catch(e){throw function({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new G({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("ConstraintError"===e.name){if(n.authenticatorSelection?.requireResidentKey===!0)return new G({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if("conditional"===t.mediation&&n.authenticatorSelection?.userVerification==="required")return new G({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(n.authenticatorSelection?.userVerification==="required")return new G({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else if("InvalidStateError"===e.name)return new G({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});else if("NotAllowedError"===e.name)return new G({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});else if("NotSupportedError"===e.name)return new G(0===n.pubKeyCredParams.filter(e=>"public-key"===e.type).length?{message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}:{message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});else if("SecurityError"===e.name){let t=globalThis.location.hostname;if(!W(t))return new G({message:`${globalThis.location.hostname}
13 is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(n.rp.id!==t)return new G({message:`The RP ID "${n.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("TypeError"===e.name){if(n.user.id.byteLength<1||n.user.id.byteLength>64)return new G({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if("UnknownError"===e.name)return new G({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e});return e}({error:e,options:c})}if(!t)throw Error("Registration was not completed");let{id:u,rawId:d,response:p,type:f}=t;if("function"==typeof p.getTransports&&(r=p.getTransports()),"function"==typeof p.getPublicKeyAlgorithm)try{i=p.getPublicKeyAlgorithm()}catch(e){Q("getPublicKeyAlgorithm()",e)}if("function"==typeof p.getPublicKey)try{let e=p.getPublicKey();null!==e&&(a=U(e))}catch(e){Q("getPublicKey()",e)}if("function"==typeof p.getAuthenticatorData)try{n=U(p.getAuthenticatorData())}catch(e){Q("getAuthenticatorData()",e)}return{id:u,rawId:U(d),response:{attestationObject:U(p.attestationObject),clientDataJSON:U(p.clientDataJSON),transports:r,publicKeyAlgorithm:i,publicKey:a,authenticatorData:n},type:f,clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:J(t.authenticatorAttachment)}}function Q(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
14`,t)}let ee={stubThis:e=>e};async function et(e){let t,n,r;!e.optionsJSON&&e.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});let{optionsJSON:i,useBrowserAutofill:a=!1,verifyBrowserAutofillInput:o=!0}=e;if(!Z())throw Error("WebAuthn is not supported in this browser");i.allowCredentials?.length!==0&&(t=i.allowCredentials?.map(q));let s={...i,challenge:z(i.challenge),allowCredentials:t},l={};if(a){if(!await function(){if(!Z())return ee.stubThis(new Promise(e=>e(!1)));let e=globalThis.PublicKeyCredential;return e?.isConditionalMediationAvailable===void 0?ee.stubThis(new Promise(e=>e(!1))):ee.stubThis(e.isConditionalMediationAvailable())}())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&o)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');l.mediation="conditional",s.allowCredentials=[]}l.publicKey=s,l.signal=Y.createNewAbortSignal();try{n=await navigator.credentials.get(l)}catch(e){throw function({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new G({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("NotAllowedError"===e.name)return new G({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});else if("SecurityError"===e.name){let t=globalThis.location.hostname;if(!W(t))return new G({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(n.rpId!==t)return new G({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("UnknownError"===e.name)return new G({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e});return e}({error:e,options:l})}if(!n)throw Error("Authentication was not completed");let{id:c,rawId:u,response:d,type:p}=n;return d.userHandle&&(r=U(d.userHandle)),{id:c,rawId:U(u),response:{authenticatorData:U(d.authenticatorData),clientDataJSON:U(d.clientDataJSON),signature:U(d.signature),userHandle:r},type:p,clientExtensionResults:n.getClientExtensionResults(),authenticatorAttachment:J(n.authenticatorAttachment)}}var en=n(72633),er=n(13907);let ei=(0,en.p)({user:["create","list","set-role","ban","impersonate","delete","set-password"],session:["list","revoke","delete"]}),ea=ei.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password"],session:["list","revoke","delete"]}),eo=ei.newRole({user:[],session:[]}),es={admin:ea,user:eo},el=e=>
14{if(e.userId&&e.options?.adminUserIds?.includes(e.userId))return!0;if(!e.permissions&&!e.permission)return!1;let t=(e.role||e.options?.defaultRole||"user").split(","),n=e.options?.roles||es;for(let r of t){let t=n[r],i=t?.authorize(e.permission??e.permissions);if(i?.success)return!0}return!1},ec=(e,{$listPasskeys:t})=>({signIn:{passkey:async(t,n)=>{let r=await e("/passkey/generate-authenticate-options",{method:"POST",body:{email:t?.email}});if(!r.data)return r;try{let i=await et({optionsJSON:r.data,useBrowserAutofill:t?.autoFill}),a=await e("/passkey/verify-authentication",{body:{response:i},...t?.fetchOptions,...n,method:"POST"});if(!a.data)return a}catch(e){return{data:null,error:{message:"auth cancelled",status:400,statusText:"BAD_REQUEST"}}}}},passkey:{addPasskey:async(n,r)=>{let i=await e("/passkey/generate-register-options",{method:"GET",query:{...n?.authenticatorAttachment&&{authenticatorAttachment:n.authenticatorAttachment}}});if(!i.data)return i;try{let a=await X({optionsJSON:i.data,useAutoRegister:n?.useAutoRegister}),o=await e("/passkey/verify-registration",{...n?.fetchOptions,...r,body:{response:a,name:n?.name},method:"POST"});if(!o.data)return o;t.set(Math.random())}catch(e){if(e instanceof G){if("ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED"===e.code)return{data:null,error:{message:"previously registered",status:400,statusText:"BAD_REQUEST"}};if("ERROR_CEREMONY_ABORTED"===e.code)return{data:null,error:{message:"registration cancelled",status:400,statusText:"BAD_REQUEST"}};return{data:null,error:{message:e.message,status:400,statusText:"BAD_REQUEST"}}}return{data:null,error:{message:e instanceof Error?e.message:"unknown error",status:500,statusText:"INTERNAL_SERVER_ERROR"}}}}},$Infer:{}});function eu(e,t="/api/auth"){return!function(e){try{let t=new URL(e);return"/"!==t.pathname}catch(t){throw new er.B(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}(e)?(t=t.startsWith("/")?t:`/${t}`,`${e.replace(/\/+$/,"")}${t}`):e}let ed={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},ep=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,ef={true:!0,false:!1,null:null,undefined:void 0,nan:Number.NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},eh=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/,em={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}},eg=e=>{let t="credentials"in Request.prototype,n=function(e,t,n){if(e)return eu(e,t);let r=M.BETTER_AUTH_URL||M.NEXT_PUBLIC_BETTER_AUTH_URL||M.PUBLIC_BETTER_AUTH_URL||M.NUXT_PUBLIC_BETTER_AUTH_URL||M.NUXT_PUBLIC_AUTH_URL||("/"!==M.BASE_URL?M.BASE_URL:void 0);if(r)return eu(r,t);let i=void 0,a=void 0;if(i&&a)return eu(`${a}://${i}`,t);if(window.location)return eu(window.location.origin,t)}(e?.baseURL,e?.basePath),r=e?.plugins?.flatMap(e=>e.fetchPlugins).filter(e=>void 0!==e)||[],i=R({baseURL:n,...t?{credentials:"include"}:{},method:"GET",jsonParser:e=>e?function(e,t={strict:!0}){return function(e,t={}){let{strict:n=!1,warnings:r=!1,reviver:i,parseDates:a=!0}=t;if("string"!=typeof e)return e;let o=e.trim();if('"'===o[0]&&o.endsWith('"')&&!o.slice(1,-1).includes('"'))return o.slice(1,-1);let s=o.toLowerCase();if(s.length<=9&&s in ef)return ef[s];if(!ep.test(o)){if(n)throw SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(ed).some(([e,t])=>{let n=t.test(o);return n&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${e} pattern`),n})&&n)throw Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(o,(e,t)=>{if("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t){r&&console.warn(`[better-json] Dropping "${e}" key to prevent prototype pollution`);return}if(a&&"string"==typeof t){let e=function(e){let t=eh.exec(e);if(!t)return null;let[,n,r,i,a,o,s,l,c,u,d]=t,p=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(i,10),parseInt(a,10),parseInt(o,10),parseInt(s,10),l?parseInt(l.padEnd(3,"0"),10):0));if(c){let e=(60*parseInt(u,10)+parseInt(d,10))*("+"===c?-1:1);p.setUTCMinutes(p.getUTCMinutes()+e)}
14return p instanceof Date&&!isNaN(p.getTime())?p:null}(t);if(e)return e}return i?i(e,t):t})}catch(t){if(n)throw t;return e}}(e,t)}(e,{strict:!1}):null,customFetchImpl:async(e,t)=>{try{return await fetch(e,t)}catch(e){return Response.error()}},...e?.fetchOptions,plugins:e?.disableDefaultFetchPlugins?[...e?.fetchOptions?.plugins||[],...r]:[em,...e?.fetchOptions?.plugins||[],...r]}),{$sessionSignal:a,session:s}=function(e){let t=o(!1);return{session:L(t,"/get-session",e,{method:"GET"}),$sessionSignal:t}}(i),l=e?.plugins||[],c={},u={$sessionSignal:a,session:s},d={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},p=[{signal:"$sessionSignal",matcher:e=>"/sign-out"===e||"/update-user"===e||e.startsWith("/sign-in")||e.startsWith("/sign-up")||"/delete-user"===e||"/verify-email"===e}];for(let e of l)e.getAtoms&&Object.assign(u,e.getAtoms?.(i)),e.pathMethods&&Object.assign(d,e.pathMethods),e.atomListeners&&p.push(...e.atomListeners);let f={notify:e=>{u[e].set(!u[e].get())},listen:(e,t)=>{u[e].subscribe(t)},atoms:u};for(let t of l)t.getActions&&Object.assign(c,t.getActions?.(i,f,e));return{pluginsActions:c,pluginsAtoms:u,pluginPathMethods:d,atomListeners:p,$fetch:i,$store:f}};var ey=n(75271),ev=function(e){var t;let{pluginPathMethods:n,pluginsActions:r,pluginsAtoms:i,$fetch:a,$store:o,atomListeners:s}=eg(e),l={};for(let[e,t]of Object.entries(i))l[`use${e.charAt(0).toUpperCase()+e.slice(1)}`]=()=>(function(e,t={}){let n=(0,ey.useRef)(e.get()),{keys:r,deps:i=[e,r]}=t,a=(0,ey.useCallback)(t=>{let i=e=>{n.current!==e&&(n.current=e,t())};if(i(e.value),r?.length){let t;return t=new Set(r).add(void 0),e.listen((e,n,r)=>{t.has(r)&&i(e,n,r)})}return e.listen(i)},i),o=()=>n.current;return(0,ey.useSyncExternalStore)(a,o,o)})(t);return t={...r,...l,$fetch:a,$store:o},function e(r=[]){return new Proxy(function(){},{get(n,i){let a=[...r,i],o=t;for(let e of a)if(o&&"object"==typeof o&&e in o)o=o[e];else{o=void 0;break}return"function"==typeof o?o:e(a)},apply:async(e,t,o)=>{let l="/"+r.map(e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)).join("/"),c=o[0]||{},u=o[1]||{},{query:d,fetchOptions:p,...f}=c,h={...u,...p},m=function(e,t,n){let r=t[e],{fetchOptions:i,query:a,...o}=n||{};return r||(i?.method?i.method:o&&Object.keys(o).length>0?"POST":"GET")}(l,n,c);return await a(l,{...h,body:"GET"===m?void 0:{...f,...h?.body||{}},query:d||h?.query,method:m,async onSuccess(e){await h?.onSuccess?.(e);let t=s?.find(e=>e.matcher(l));if(!t)return;let n=i[t.signal];if(!n)return;let r=n.get();setTimeout(()=>{n.set(!r)},10)}})}})}()}({plugins:[{id:"magic-link",$InferServerPlugin:{}},(e=>{let t={admin:ea,user:eo,...e?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:n=>({admin:{checkRolePermission:n=>el({role:n.role,options:{ac:e?.ac,roles:t},permissions:n.permissions??n.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}})(),(()=>{let e=o();return{id:"passkey",$InferServerPlugin:{},getActions:t=>ec(t,{$listPasskeys:e}),getAtoms:t=>({listPasskeys:L(e,"/passkey/list-user-passkeys",t,{method:"GET"}),$listPasskeys:e}),pathMethods:{"/passkey/register":"POST","/passkey/authenticate":"POST"},atomListeners:[{matcher:e=>"/passkey/verify-registration"===e||"/passkey/delete-passkey"===e||"/passkey/update-passkey"===e,signal:"_listPasskeys"}]}})(),(e=>{let t=o(!1),n=o(!1),r=o(!1),i={admin:F.MU,member:F.zy,owner:F.kW,...e?.roles};return{id:"organization",$InferServerPlugin:{},getActions:t=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:t=>B({role:t.role,options:{ac:e?.ac,roles:i},permissions:t.permissions??t.permission})}}),getAtoms:e=>{let i=L(t,"/organization/list",e,{method:"GET"}),a=L([n],"/organization/get-full-organization",e,()=>({method:"GET"})),o=L([r],"/organization/get-active-member",e,{method:"GET"});return{$listOrg:t,$activeOrgSignal:n,$activeMemberSignal:r,activeOrganization:a,listOrganizations:i,activeMember:o}},pathMethods:{"/organization/get-full-organization":"GET"},atomListeners:[{matcher:e=>"/organization/create"===e||"/organization/delete"===e||"/organization/update"===e,signal:"$listOrg"},{matcher:e=>e.startsWith("/organization"),signal:"$activeOrgSignal"},{matcher:e=>e.startsWith("/organization/set-active"),signal:"$sessionSignal"},{matcher:e=>e.includes("/organization/update-member-role"),signal:"$activeMemberSignal"}]}})(),{id:"additional-fields-client",$InferServerPlugin:{}},{id:"infer-server-plugin",$InferServerPlugin:{}}]})},49777:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(52676),i=n(69211);let a=(0,i.Z)("eye-closed",[["path",{d:"m15 18-.722-3.25",key:"1j64jw"}],["path",{d:"M2 8a10.645 10.645 0 0 0 20 0",key:"1e7gxb"}],["path",{d:"m20 15-1.726-2.05",key:"1cnuld"}],["path",{d:"m4 15 1.726-2.05",key:"1dsqqd"}],["path",{d:"m9 18 .722-3.25",key:"ypw2yx"}]]),o=(0,i.Z)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var s=n(75271),l=n(14021),c=function({id:e,register:t,error:n,hideStatusBar:i,hintLabel:c,outerClassName:u,...d}
14){let[p,f]=(0,s.useState)(!1);return(0,r.jsx)(l.Z,{className:"disable-browser-hide-password",placeholder:"Password",id:e,rightLabelClassName:"border-0",type:p?"text":"password",register:t,onClickRightLabel:()=>f(e=>!e),hideStatusBar:i,outerClassName:u,error:n,rightLabel:(0,r.jsx)(r.Fragment,{children:p?(0,r.jsx)(a,{className:"hover:text-primary-dark"}):(0,r.jsx)(o,{className:"hover:text-primary-dark"})}),hintLabel:c,...d})}},18828:function(e,t,n){"use strict";var r=n(52676),i=n(75271),a=n(92412),o=n(58363);t.Z=(0,i.forwardRef)(function({variant:e="primary",size:t="large",loading:n=!1,children:s,className:l,disabled:c,...u},d){let p=(0,i.useId)(),f=(0,i.useMemo)(()=>(0,a.I7)(e,t,l,c,n),[e,t,l,c,n]);return(0,r.jsx)("button",{ref:d,id:u?.id??p,className:f,type:"button",disabled:n||c,...u,children:n?(0,r.jsx)(o.ZP,{size:t,variant:e,children:s}):s})})},51049:function(e,t,n){"use strict";n.d(t,{Z:function(){return r.Z}});var r=n(18828)},92412:function(e,t,n){"use strict";n.d(t,{I7:function(){return d}});var r=n(93595);let i={primary:"bg-secondary text-white border border-secondary",secondary:"border border-secondary",tertiary:"bg-tertiary text-white border border-tertiary-dark",alert:"bg-white text-alert border-alert border",info:"bg-white text-info border-info border"},a={primary:"hover:bg-primary hover:border hover:border-primary",secondary:"hover:bg-stitch-express-grey-100 hover:border-stitch-express-grey-100 hover:text-primary",tertiary:"hover:bg-tertiary-dark hover:border-tertiary-dark",alert:"hover:bg-alert hover:text-white",info:"hover:bg-info hover:text-white"},o={primary:"focus-visible:bg-primary-light focus-visible:text-secondary",secondary:"focus-visible:bg-secondary-light focus-visible:text-white",tertiary:"hover:bg-tertiary-dark hover:border-tertiary-dark",alert:"focus-visible:bg-alert-light focus-visible:text-alert-dark",info:"focus-visible:bg-info-light focus-visible:text-info-dark"},s={primary:"active:bg-primary-dark",secondary:"active:bg-stitch-express-grey-300",tertiary:"hover:bg-tertiary-dark hover:border-tertiary-dark",alert:"active:bg-alert-dark active:border-alert-dark active:text-white",info:"active:bg-info-dark active:border-info-dark active:text-white"},l={large:"text-lg py-4 px-8",medium:"text-md py-3.5 px-7",small:"text-sm py-3 px-6",xsmall:"text-xs py-2 px-4"},c="cursor-default pointer-events-none opacity-20",u={primary:`${c} bg-grey`,secondary:`${c}`,tertiary:`${c} border-tertiary-light`,alert:`${c} bg-grey text-white border-transparent`,info:`${c} bg-grey text-white border-transparent`},d=(e="primary",t="medium",n="",c=!1,d=!1)=>(0,r.cn)(i[e],o[e],!c&&s[e],c?u[e]:!d&&a[e],l[t],"font-normal rounded-md inline-flex min-w-24 items-center justify-center transition duration-300 outline-none",n)},61400:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(52676),i=n(4814);n(75271),n(42488);var a=n(33848),o=n(23775),s=function({paragraphCount:e,paragraphLineCount:t}){return(0,r.jsx)(r.Fragment,{children:Array.from(Array(e),(e,n)=>(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(o.Z,{count:t})},n))})};let l=()=>(0,r.jsx)(o.Z,{containerClassName:"w-10 mr-3",className:"h-7 w-10"}),c=()=>(0,r.jsx)(o.Z,{containerClassName:"w-14 ml-2",className:"h-7 w-10"}),u=()=>(0,r.jsx)(o.Z,{containerClassName:"w-full max-w-[208px]",className:"h-7"});function d({headerLeftItem:e=!0,headerTitle:t=!0,headerRightItem:n=!1,paragraphCount:i=2,paragraphLineCount:a=3,children:o}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex mb-4 justify-between",children:[(0,r.jsxs)("div",{className:"flex w-full",children:[e&&(0,r.jsx)(l,{}),t&&(0,r.jsx)(u,{})]}),n&&(0,r.jsx)(c,{})]}),o??(0,r.jsx)(s,{paragraphCount:i,paragraphLineCount:a})]})}var p=n(93595);let f={xs:"pb-0.5 mb-0.5",sm:"pb-1 mb-1",md:"pb-1.5 mb-1.5",lg:"pb-2 mb-2",xl:"pb-2 mb-3"};function h({id:e,children:t,className:n,contentClassName:o,icon:s,title:l,titleClassName:c,titleFontSize:u="xl",isLoading:h=!1,fullScreenMobile:m=!1,fullScreen:g=!1,flush:y=!1}){return(0,r.jsx)(a.Z,{id:e,className:(0,p.cn)(n,y&&"[&_[data-table-toolbar]]:px-6 [&_[data-table-pagination]]:px-6 [&_[data-table-inset]]:px-6"),fullScreenMobile:m,fullScreen:g,flush:y,children:h?(0,r.jsx)(d,{children:t}):(0,r.jsxs)(r.Fragment,{children:[(s??l)&&(0,r.jsxs)("div",{className:(0,p.cn)("flex flex-row items-center gap-3 w-full",f[u],y&&"px-6 pt-5"),children:[s,(0,r.jsx)("div",{className:(0,i.Z)(`text-${u} font-medium`,c),children:l})]}),(0,r.jsx)("div",{className:(0,p.cn)(o),children:t})]})})}},33848:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(52676),i=n(93595),a=function({id:e,children:t,className:n,onClick:a,fullScreenMobile:o,fullScreen:s,flush:l}){return(0,r.jsx)("div",{id:e,onClick:a,className:(0,i.cn)("rounded-md px-6 py-5 sm:px-8 sm:py-7 flex flex-col bg-white border border-grey-light",o&&"border-[0] md:border",s&&"border-[0] sm:p-0 p-0",l&&"p-0 sm:p-0 overflow-hidden",n),children:t})}},6501:function(e,t,n){"use strict";var r=n(52676),i=n(69214),a=n(1969),o=n(93595);let s={large:"w-7 h-7 border-[3px] rounded-[6px]",medium:"w-5 h-5 border-2 rounded-[4px]",small:"w-3 h-3 border-[1.5px] rounded-[3px]"},l={large:"text-2xl",medium:"text-lg",small:"text-sm"},c={large:2,medium:2,small:4},u={large:"gap-3 py-2.5 px-3",medium:"gap-2.5 py-2 px-2.5",small:"gap-2 py-1.5 px-2"};t.Z=function({variant:e="medium",register:t,className:n,labelClassName:d,containerClassName:p,errorClassName:f,name:h,id:m,label:g,hintLabel:y,hideStatusBar:v,error:b,...w}){return(0,r.jsxs)("div",{className:"flex flex-col w-fit gap-1",children:[(0,r.jsxs)("div",{className:(0,o.cn)("flex items-start rounded-sm",b&&"bg-alert-light/30",u[e],p),...w,children:[(0,r.jsxs)("div",{className:"relative mt-0.5",children:[(0,r.jsx)("input",{className:(0,o.cn)(n,"peer appearance-none checked:bg-primary-light hover:cursor-pointer border-2 border-secondary flex justify-center items-center",!!b&&"border-alert-dark",s[e]),type:"checkbox",id:m,name:h,...t?.(m,{valueAsNumber:"boolean"===w.type}),...w}),(0,r.jsx)(i.Z,{className:"absolute p-0.5 h-full w-full pointer-events-none peer-checked:block hidden top-0",strokeWidth:c[e]})]}),g&&(0,r.jsx)("label",{className:(0,o.cn)("hover:cursor-pointer",l[e],d),htmlFor:m,children:g})]}),!v&&(0,r.jsx)(a.Z,{error:{message:b},errorClassName:f,hintLabel:y})]})}},88674:function(e,t,n){"use strict";n.d(t,{d:function(){return R},Z:function(){return r.Z}});var r=n(6501),i=n(52676),a=n(75271),o=n(71507),s=n(43589),l=n(99622),c=n(75051),u=n(50912),d=n(616),p=n(
1455695),f=Object.defineProperty,h=(e,t)=>f(e,"name",{value:t,configurable:!0}),m="Checkbox",[g,y]=(0,s.b)(m),[v,b]=g(m);function w(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:s,form:l,name:u,onCheckedChange:d,required:p,value:f="on",internal_do_not_use_render:h}=e,[g,y]=(0,c.T)({prop:n,defaultProp:o??!1,onChange:d,caller:m}),[b,w]=a.useState(null),[_,x]=a.useState(null),E=a.useRef(!1),[S,I]=a.useReducer(e=>e+1,0),A=!b||!!l||!!b.closest("form"),T={checked:g,disabled:s,setChecked:y,control:b,setControl:w,name:u,form:l,value:f,hasConsumerStoppedPropagationRef:E,userInteractionCount:S,onUserInteraction:I,required:p,defaultChecked:!C(o)&&o,isFormControl:A,bubbleInput:_,setBubbleInput:x};return(0,i.jsx)(v,{scope:t,...T,children:k(h)?h(T):r})}h(w,"CheckboxProvider");var _=a.forwardRef(h(function({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},s){let{control:c,value:u,disabled:d,checked:f,required:m,setControl:g,setChecked:y,hasConsumerStoppedPropagationRef:v,onUserInteraction:w,isFormControl:_,bubbleInput:x}=b("CheckboxTrigger",e),E=(0,o.e)(s,g),S=a.useRef(f);return a.useEffect(()=>{let e=c?.form;if(e){let t=h(()=>y(S.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[c,y]),(0,i.jsx)(p.WV.button,{type:"button",role:"checkbox","aria-checked":C(f)?"mixed":f,"aria-required":m,"data-state":I(f),"data-disabled":d?"":void 0,disabled:d,value:u,...r,ref:E,onKeyDown:(0,l.Mj)(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,l.Mj)(n,e=>{w(),y(e=>!!C(e)||!e),x&&_&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})},"CheckboxTrigger")),x=a.forwardRef(h(function(e,t){let{__scopeCheckbox:n,name:r,checked:a,defaultChecked:o,required:s,disabled:l,value:c,onCheckedChange:u,form:d,...p}=e;return(0,i.jsx)(w,{__scopeCheckbox:n,checked:a,defaultChecked:o,disabled:l,required:s,onCheckedChange:u,name:r,form:d,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_,{...p,ref:t,__scopeCheckbox:n}),e&&(0,i.jsx)(S,{__scopeCheckbox:n})]})})},"Checkbox")),E=a.forwardRef(h(function(e,t){let{__scopeCheckbox:n,forceMount:r,...a}=e,o=b("CheckboxIndicator",n);return(0,i.jsx)(d.z,{present:r||C(o.checked)||!0===o.checked,children:(0,i.jsx)(p.WV.span,{"data-state":I(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),S=a.forwardRef(h(function({__scopeCheckbox:e,onClick:t,...n},r){let{control:s,hasConsumerStoppedPropagationRef:c,userInteractionCount:d,checked:f,defaultChecked:h,required:m,disabled:g,name:y,value:v,form:w,bubbleInput:_,setBubbleInput:x}=b("CheckboxBubbleInput",e),E=(0,o.e)(r,x),S=(0,u.t)(s),k=a.useRef(!1),I=a.useRef(f),A=a.useRef(d);a.useEffect(()=>{if(!_)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=d!==A.current;A.current=d;let n=I.current!==f;I.current=f;let r=!(t&&c.current);if(n&&e){k.current=!t;let n=new Event("click",{bubbles:r});_.indeterminate=C(f),e.call(_,!C(f)&&f),_.dispatchEvent(n),k.current=!1}},[_,f,c,d]);let T=a.useRef(!C(f)&&f);return(0,i.jsx)(p.WV.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??T.current,required:m,disabled:g,name:y,value:v,form:w,...n,tabIndex:-1,ref:E,onClick:(0,l.Mj)(t,e=>{k.current&&e.stopPropagation()}),style:{...n.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function k(e){return"function"==typeof e}function C(e){return"indeterminate"===e}function I(e){return C(e)?"indeterminate":e?"checked":"unchecked"}h(k,"isFunction"),h(C,"isIndeterminate"),h(I,"getState");var A=n(69214),T=n(93595);let R=(0,a.forwardRef)(({className:e,...t},n)=>(0,i.jsx)(x,{ref:n,className:(0,T.cn)("h-4 w-4 shrink-0 rounded-[3px] border border-secondary outline-none hover:cursor-pointer focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 data-[state=checked]:border-primary data-[state=checked]:bg-primary disabled:pointer-events-none disabled:opacity-25",e),...t,children:(0,i.jsx)(E,{className:"flex items-center justify-center text-white",children:(0,i.jsx)(A.Z,{className:"h-full w-full p-0.5",strokeWidth:3})})}));R.displayName=x.displayName},8643:function(e,t,n){"use strict";n.d(t,{a:function(){return d},Z:function(){return p}});var r=n(52676);let i=(0,n(69211).Z)("megaphone",[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]]);var a=n(16854),o=n(82356),s=n(40715),l=n(75182),c=n(74757);function u({message:e}){return(0,r.jsx)(o.UG,{remarkPlugins:[s.Z],components:{a:({children:e,href:t})=>(0,r.jsx)("a",{href:t,target:"_blank",rel:"noreferrer",className:"text-white underline",children:e})},children:e})}function d({title:e,message:t,onDismiss:n}){return(0,r.jsxs)("div",{className:"flex w-full items-center gap-4 roun
14ded-sm bg-grey-dark px-4 py-3.5",children:[(0,r.jsx)(i,{className:"size-5 shrink-0 text-primary-light"}),(0,r.jsxs)("div",{className:"min-w-0 flex-1 text-sm leading-[1.45] text-white/60",children:[(0,r.jsx)("span",{className:"font-semi text-white",children:e}),(0,r.jsx)("div",{className:"ml-2 inline [&_p]:inline",children:(0,r.jsx)(u,{message:t})})]}),(0,r.jsx)("button",{type:"button",title:"Dismiss","aria-label":"Dismiss announcement",onClick:n,className:"flex size-7 shrink-0 items-center justify-center rounded-xs text-white/80 transition-colors hover:bg-white/15 hover:text-white",children:(0,r.jsx)(a.Z,{className:"size-[18px]"})})]})}function p(){let{data:e,mutate:t}=(0,l.ZP)("/api/announcements",(0,c.Z)()),n=e?.success?e.data:[],i=e=>{t({success:!0,data:n.filter(t=>t.id!==e)},!1),fetch(`/api/announcements/${e}/dismiss`,{method:"POST"})};return 0===n.length?null:(0,r.jsx)("div",{className:"mx-auto flex w-full max-w-[1300px] animate-enter flex-col gap-2 px-5 pt-4 md:px-12 md:pt-6",children:n.map(e=>(0,r.jsx)(d,{title:e.title,message:e.message,onDismiss:()=>i(e.id)},e.id))})}},804:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(52676),i=n(75271),a=n(57802),o=function({title:e,subTitle:t,value:n}){return(0,r.jsx)("div",{className:"flex flex-col w-full mt-1 divide divide-y divide-secondary-light overflow-auto",children:(0,r.jsxs)("div",{className:"flex justify-between sm:flex-row flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex flex-col sm:gap-2 min-w-1/2",children:[(0,r.jsx)("span",{className:"sm:text-md text-sm",children:e}),t&&(0,r.jsx)("p",{className:"text-secondary-light text-2xs",children:t})]}),(0,r.jsx)("div",{className:"flex items-center",children:n})]})})},s=function({items:e}){return(0,r.jsx)("div",{className:"flex flex-col w-full gap-2",children:e.map((t,n)=>(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(o,{title:t.title,subTitle:t.subTitle,value:t.value}),n!==e.length-1&&(0,r.jsx)(a.i,{})]},n))})}},32687:function(e,t,n){"use strict";n.d(t,{$N:function(){return g},Be:function(){return y},GG:function(){return u},PK:function(){return d},Vq:function(){return l},cN:function(){return m},cZ:function(){return f},fK:function(){return h},hg:function(){return c}});var r=n(52676),i=n(41850),a=n(16854),o=n(75271),s=n(93595);let l=i.fC,c=i.xz,u=i.x8,d=i.h_,p=(0,o.forwardRef)(({className:e,...t},n)=>(0,r.jsx)(i.aV,{ref:n,className:(0,s.cn)("fixed inset-0 z-50 bg-black-rgba  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 dark:bg-neutral-950/80",e),...t}));p.displayName=i.aV.displayName;let f=(0,o.forwardRef)(({className:e,children:t,...n},o)=>(0,r.jsxs)(d,{children:[(0,r.jsx)(p,{}),(0,r.jsxs)(i.VY,{ref:o,className:(0,s.cn)("max-h-screen overflow-y-auto font-inter fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-neutral-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg md:w-full dark:border-neutral-800 dark:bg-neutral-950",e),...n,children:[(0,r.jsx)("span",{className:"absolute w-0 h-0",tabIndex:0}
14),t,(0,r.jsxs)(i.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400",children:[(0,r.jsx)(a.Z,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));f.displayName=i.VY.displayName;let h=({className:e,...t})=>(0,r.jsx)("div",{className:(0,s.cn)("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});h.displayName="DialogHeader";let m=({className:e,...t})=>(0,r.jsx)("div",{className:(0,s.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});m.displayName="DialogFooter";let g=(0,o.forwardRef)(({className:e,...t},n)=>(0,r.jsx)(i.Dx,{ref:n,className:(0,s.cn)("text-lg font-semibold leading-none tracking-tight",e),...t}));g.displayName=i.Dx.displayName;let y=(0,o.forwardRef)(({className:e,...t},n)=>(0,r.jsx)(i.dk,{ref:n,className:(0,s.cn)("text-sm text-neutral-500 dark:text-neutral-400",e),...t}));y.displayName=i.dk.displayName},57802:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(52676),i=n(93595);function a({className:e}){return(0,r.jsx)("div",{className:(0,i.cn)("my-2",e),children:(0,r.jsx)("div",{className:"flex w-full border border-b-0 border-grey-light"})})}},42197:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(52676),i=n(4814);function a({errorMessage:e,className:t}){return(0,r.jsx)(r.Fragment,{children:"string"==typeof e&&(0,r.jsx)("span",{className:(0,i.Z)("text-left text-alert-dark font-normal text-xs",t),children:e})})}},14021:function(e,t,n){"use strict";var r=n(52676),i=n(4814),a=n(83351),o=n(1969),s=n(93595);let l=e=>e?"border-alert-dark":"";t.Z=function({id:e,register:t,className:n,icon:c,label:u,labelTip:d,placeholder:p,displayLabel:f,rightLabel:h,rightLabelClassName:m,onClickRightLabel:g,hintLabel:y,error:v,errorClassName:b,containerClassName:w,outerClassName:_,iconClassName:x,hideStatusBar:E,disabled:S,testID:k,...C}){return(0,r.jsxs)("div",{className:(0,s.cn)("flex flex-col gap-1 mb-2",_),children:[u&&f&&(0,r.jsx)(a.Z,{htmlFor:e,label:u,tip:d}),(0,r.jsxs)("div",{className:(0,i.Z)("relative block",w),children:[c&&(0,r.jsx)("div",{className:(0,i.Z)("pointer-events-none w-4 h-4 absolute top-2/4 transform -translate-y-1/2 left-4",x),children:c}),(0,r.jsxs)("div",{className:"text-secondary-light focus-within:text-white flex items-center w-full",children:[(0,r.jsx)("input",{"data-testid":k,type:"text",placeholder:p??u,className:(0,s.cn)("flex outline-none focus:border-primary border border-grey-light hover:bg-white rounded-sm h-14 px-4 bg-white text-secondary w-full",c&&"pl-11",!S&&"hover:border-primary",h&&"[-moz-appearance:_textfield] [&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:m-0 [&::-webkit-outer-spin-button]:appearance-none",n,l(!!v)),disabled:S,...t?.(e,{valueAsNumber:"number"===C.type}),...C}),h&&(0,r.jsx)("span",{onClick:()=>g?.(),className:(0,i.Z)("border rounded-xxs border-secondary text-secondary font-medium text-2xs py-1 px-2 absolute h-7 flex items-center right-3",m,g&&"cursor-pointer hover:border-primary"),children:h})]})]}),!E&&(0,r.jsx)(o.Z,{error:v,errorClassName:b,hintLabel:y})]})}},17593:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(52676),i=n(14021),a=n(15862),o=n(59369),s=n(51104);function l({control:e,register:t,errors:n,prefix:l}){let c=e=>l?`${l}.${e}`:e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Z,{id:c("addressLine1"),label:"Address line 1",outerClassName:"mb-0",hideStatusBar:!n?.addressLine1,register:t,error:n?.addressLine1}),(0,r.jsx)(i.Z,{id:c("addressLine2"),label:"Address line 2",outerClassName:"mb-0",hideStatusBar:!n?.addressLine2,register:t,error:n?.addressLine2}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row w-full gap-2",children:[(0,r.jsx)(i.Z,{id:c("addressLevel2"),label:"City",outerClassName:"w-full mb-0",hideStatusBar:!n?.addressLevel2,register:t,error:n?.addressLevel2}),(0,r.jsx)(i.Z,{id:c("postalCode"),label:"Postal code",inputMode:"numeric",outerClassName:"w-full mb-0",hideStatusBar:!n?.postalCode,register:t,error:n?.postalCode})]}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row w-full gap-2",children:[(0,r.jsx)(a.ih,{control:e,id:c("addressLevel1"),placeholder:"Province",error:n?.addressLevel1,outerClassName:"w-full mb-0",hideStatusBar:!n?.addressLevel1,children:o.bS.map(e=>(0,r.jsx)(a.Ql,{value:e,children:e},e))}),(0,r.jsx)(a.ih,{control:e,id:c("country"),placeholder:"Country",error:n?.country,outerClassName:"w-full mb-0",hideStatusBar:!n?.country,children:(0,r.jsx)(a.Ql,{value:s.Country.ZA,children:"South Africa"})})]})]})}},21892:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(52676),i=n(93595);function a({selected:e,children:t}){return(0,r.jsx)("label",{className:(0,i.cn)("flex items-center justify-between gap-3 px-4 py-[18px] border rounded-sm bg-white hover:cursor-pointer transition-default",e?"border-primary bg-primary-light/10":"border-grey-light"),children:t})}},34135:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(52676),i=n(51049),a=n(21892),o=n(40600),s=n(51104);let l=[{value:s.PaymentAcceptanceMode.ONLINE,label:"Online"},{value:s.PaymentAcceptanceMode.IN_PERSON,label:"In-person"},{value:s.PaymentAcceptanceMode.ONLINE_AND_IN_PERSON,label:"Both"}];
14function c({value:e,onChange:t,onNext:n}){return(0,r.jsxs)("div",{className:"flex flex-1 flex-col gap-4",children:[(0,r.jsx)(o.E,{value:e??void 0,onValueChange:e=>t(e),className:"flex flex-col gap-2",children:l.map(t=>(0,r.jsxs)(a.Z,{selected:e===t.value,children:[(0,r.jsx)("span",{className:"text-md",children:t.label}),(0,r.jsx)(o.m,{value:t.value})]},t.value))}),n&&(0,r.jsx)(i.Z,{className:"mt-auto",disabled:!e,onClick:n,children:"Next"})]})}},97943:function(e,t,n){"use strict";n.d(t,{UJ:function(){return g},ZP:function(){return v},zd:function(){return y}});var r=n(52676),i=n(50416),a=n(75271),o=n(25282),s=n(51049),l=n(42197),c=n(14021),u=n(21892),d=n(40600),p=n(46120),f=n(89967),h=n(51104);let m=[{value:h.MerchantUrlType.SHOPIFY,label:"Shopify"},{value:h.MerchantUrlType.WOOCOMMERCE,label:"WooCommerce"},{value:h.MerchantUrlType.SQUARESPACE,label:"Squarespace"},{value:h.MerchantUrlType.WEBFLOW,label:"Webflow"},{value:h.MerchantUrlType.API,label:"Custom API integration"}];function g(e){return e!==h.PaymentAcceptanceMode.IN_PERSON}function y({selected:e,onSelect:t,paymentAcceptanceMode:n}){let i=g(n)?m:m.filter(e=>e.value!==h.MerchantUrlType.API),a=e[0];return(0,r.jsx)(d.E,{value:a??"",onValueChange:e=>t(e),className:"flex flex-col gap-2",children:i.map(e=>(0,r.jsxs)(u.Z,{selected:a===e.value,children:[(0,r.jsx)("span",{className:"text-md",children:e.label}),(0,r.jsx)(d.m,{value:e.value})]},e.value))})}function v({paymentAcceptanceMode:e,onResult:t,onError:n}){let u=(0,f.Z)(),{register:d,handleSubmit:h,formState:m,setValue:g,watch:v}=(0,o.cI)({resolver:(0,i.F)(p.nP),mode:"onSubmit",defaultValues:{paymentAcceptanceMode:e,salesChannels:[],storeUrl:""}}),{errors:b,isSubmitting:w}=m,_=v("salesChannels"),x=h((0,a.useCallback)(async e=>{try{let n=await u("/api/merchant/complete-onboarding",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),r=await n.json();await t(r)}catch{n()}},[u,n,t]));return(0,r.jsxs)("form",{className:"flex flex-1 flex-col gap-4",onSubmit:x,children:[(0,r.jsx)(y,{selected:_,onSelect:e=>{g("salesChannels",[e])},paymentAcceptanceMode:e}),(0,r.jsx)(l.Z,{errorMessage:b.salesChannels?.message}),(0,r.jsxs)("div",{className:"text-left",children:[(0,r.jsx)("h3",{children:"Where can people find you online?"}),(0,r.jsx)("h4",{className:"text-secondary-light text-xs mb-1",children:"Add your store's web address"}),(0,r.jsx)(c.Z,{id:"storeUrl",placeholder:"www.yourstore.com",inputMode:"url",register:d,error:b.storeUrl})]}),(0,r.jsx)(s.Z,{className:"mt-auto",loading:w,type:"submit",children:"Finish set up"})]})}},83351:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(52676),i=n(94710),a=n(75366),o=n(93595),s=function({className:e,htmlFor:t,label:n,tip:s}){return(0,r.jsxs)("div",{className:(0,o.cn)("flex gap-1 text-secondary-light",e),children:[(0,r.jsx)("label",{className:"left-3 top-0 font-medium text-2xs pb-1 pl-2",htmlFor:t,children:n}),s&&(0,r.jsx)(a.Z,{textClassName:"text-xs",text:s,children:(0,r.jsx)(i.Z,{width:12,height:12})})]})}},1969:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(52676),i=n(4814),a=n(42197),o=function({hintLabel:e}){return(0,r.jsx)("div",{className:"text-xs text-secondary-light ml-auto",children:e})},s=function({errorClassName:e,error:t,hintLabel:n}){return(0,r.jsxs)("div",{className:"flex w-full min-h-4 gap-4",children:[(0,r.jsx)(a.Z,{className:(0,i.Z)("mr-auto",e),errorMessage:t?.message}),n&&(0,r.jsx)(o,{hintLabel:n})]})}},46883:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(52676),i=n(1957),a=n.n(i),o=n(75271),s=n(92412),l=n(58363),c=n(65385),u=function({children:e,className:t,variant:n="primary",disabled:i=!1,size:u="medium",withLoading:d=!1,spinnerClassName:p,...f}){let h=(0,c.Z)(f.href),[m,g]=(0,o.useState)(!1),y=(0,o.useMemo)(()=>(0,s.I7)(n,u,t,i),[n,u,t,i]);return(0,r.jsx)(a(),{className:y,...f,"aria-disabled":i||m&&h,tabIndex:i?-1:0,onClick:()=>{g(!0)},children:d&&m&&h?(0,r.jsx)(l.ZP,{size:u,variant:n,className:p,children:e}):e})}},58363:function(e,t,n){"use strict";n.d(t,{ZP:function(){return s}});var r=n(52676),i=n(93595);let a={primary:"fill-white",secondary:"fill-secondary",tertiary:"fill-white",alert:"fill-alert",info:"fill-info"},o={xsmall:{height:15,width:15},small:{height:17,width:17},medium:{height:18,width:18},large:{height:20,width:20},xlarge:{height:54,width:54},xxlarge:{height:180,width:180}};function s({className:e="",children:t,variant:n="primary",size:s="large"}){return(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsxs)("div",{className:"flex flex-row items-center",children:[(0,r.jsx)("svg",{width:o[s].width,height:o[s].height,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:(0,i.cn)(a[n],e),children:(0,r.jsx)("path",{d:"M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z",children:(0,r.jsx)("animateTransform",{attributeName:"transform",type:"rotate",begin:"0.1s",dur:"0.90s",values:"0 12 12;
14360 12 12",repeatCount:"indefinite"})})}),(0,r.jsx)("div",{className:"w-0 truncate invisible flex",children:t})]}),(0,r.jsx)("div",{className:"invisible h-0 flex",children:t})]})}},40231:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(52676),i=n(61400),a=n(93595);function o({heading:e,subheading:t,children:n,className:o,fullScreen:l,progress:c,icon:u,contentClassName:d}){return(0,r.jsx)(i.Z,{className:(0,a.cn)(o,"w-full min-h-[640px] rounded-[40px] border-[#F2F2F2] p-8 drop-shadow-[0px_4px_12px_rgba(0,0,0,0.05)]"),titleClassName:"w-full",title:(0,r.jsx)(s,{progress:c,heading:e,subheading:t,icon:u}),contentClassName:"flex flex-1 flex-col",fullScreen:l,children:(0,r.jsx)("div",{className:(0,a.cn)("transition-default flex flex-1 flex-col",d),children:n})})}function s({heading:e,subheading:t,progress:n,icon:i}){return(0,r.jsxs)("div",{className:"flex flex-col gap-2 items-center text-center",children:[n,i,(0,r.jsx)("span",{className:"text-2xl font-normal",children:e}),(0,r.jsx)("p",{className:"text-md font-normal text-secondary",children:t})]})}},5449:function(e,t,n){"use strict";var r=n(52676),i=n(18828);t.Z=function(e){return(0,r.jsxs)("div",{className:"flex flex-1 flex-col justify-center items-center gap-8",children:[e.actionMessage,(0,r.jsx)(i.Z,{className:"mt-auto",onClick:e.retry,children:e.retryMessage})]})}},64956:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(52676),i=n(50416),a=n(75271),o=n(25282),s=n(4814),l=n(66812),c=n.n(l),u=n(30717),d=n(51049),p=n(89976),f=n(41309);function h({merchantId:e,onContinue:t}){let{isFetching:n,imageSource:i,setImageSource:o,uploadedImage:l,uploadCroppedImage:h,setCropper:m,getRootProps:g,getInputProps:y,isDragActive:v,isSuccess:b}=(0,p.V)({merchantId:e,maxSizeBytes:5e6});(0,a.useEffect)(()=>{b&&o(null)},[b,o]);let w=()=>{(0,f.H)("onboarding_step_skipped",{step:"brand_setup"}),t()};return i?(0,r.jsxs)("div",{className:"flex flex-1 flex-col gap-4",children:[(0,r.jsx)(u.Z,{src:i.imageData,style:{height:"100%",maxHeight:"40vh",maxWidth:"100%"},initialAspectRatio:1,aspectRatio:1,minCropBoxHeight:100,minCropBoxWidth:100,guides:!0,checkOrientation:!0,onInitialized:m}),(0,r.jsx)(d.Z,{className:"mt-auto",loading:n,disabled:!e,onClick:h,children:"Crop and upload"}),(0,r.jsx)("button",{type:"button",disabled:n,onClick:()=>o(null),className:"-mt-2 text-xs text-secondary-light underline hover:text-secondary disabled:opacity-40",children:"Clear image"}),(0,r.jsx)(d.Z,{variant:"secondary",onClick:w,children:"Skip for now"})]}):(0,r.jsxs)("div",{className:"flex flex-1 flex-col gap-4",children:[(0,r.jsxs)("div",{...g(),className:(0,s.Z)("flex flex-col items-center justify-center gap-2 border-2 border-dashed rounded-xl transition-colors hover:cursor-pointer",l?"py-6":"py-10 px-4",v?"border-primary bg-primary-light/10":"border-grey-light"),children:[(0,r.jsx)("input",{...y()}),l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"w-[120px] h-[120px] flex items-center justify-center overflow-hidden rounded-lg",children:(0,r.jsx)(c(),{width:120,height:120,alt:"Your logo",src:l})}),(0,r.jsx)("p",{className:"text-xs text-secondary-light underline",children:"Replace logo"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("i",{className:"fa-sharp fa-solid fa-cloud-arrow-up text-2xl text-secondary-light"}),(0,r.jsx)("p",{className:"text-sm font-medium",children:"Drag and drop your logo, or browse"}),(0,r.jsx)("p",{className:"text-xs text-secondary-light",children:"Suggested size 512 \xd7 512px. SVG, JPG or PNG"}),(0,r.jsx)("p",{className:"text-xs text-secondary-light",children:"Max size: 5 MB"})]})]}),(0,r.jsx)(d.Z,{className:"mt-auto",disabled:!l,onClick:t,children:"Next"}),(0,r.jsx)(d.Z,{variant:"secondary",onClick:w,children:"Skip for now"})]})}n(63537);var m=n(17593),g=n(46120),y=n(89967),v=n(51104);function b({onResult:e,onError:t}){let n=(0,y.Z)(),{register:s,handleSubmit:l,formState:c,control:u}=(0,o.cI)({resolver:(0,i.F)(g.PW),mode:"onSubmit",defaultValues:{addressLine1:"",addressLine2:"",addressLevel2:"",postalCode:"",country:v.Country.ZA}}),{errors:p,isSubmitting:f}=c,h=l((0,a.useCallback)(async r=>{try{let t=await n("/api/merchant/address",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),i=await t.json();await e(i)}catch{t()}},[n,t,e]));return(0,r.jsxs)("form",{className:"flex flex-1 flex-col gap-2",onSubmit:h,children:[(0,r.jsx)(m.Z,{control:u,register:s,errors:p}),(0,r.jsx)(d.Z,{className:"mt-auto",loading:f,type:"submit",children:"Submit"})]})}var w=n(3539),_=n(10780),x=n(25092),E=n(88674),S=n(14021),k=n(15862),C=n(83671),I=n(59369),A=n(11362),T=n(37711);function R({onResult:e,onError:t,merchantCreateForm:n}){let i=(0,y.Z)(),{refreshUserSession:s}=(0,A.Z)(),{control:l,register:c,handleSubmit:u,formState:p,getValues:f,resetField:h}=n,m=(0,o.qo)({control:l}),{isSubmitting:g,errors:b}=p,[R,N]=(0,a.useState)(null),O=(0,T.Z)({control:l,getValues:f,resetField:h}),P=(0,a.useCallback)(async t=>{try{let n={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({merchantId:t,liveClient:!1})},r=await i("/api/client",n),a=await r.json();e(a,t)}catch(e){throw Error("Error creating client",{cause:e})}},[i,e]),D=(0,a.useCallback)(async e=>{await x.Z.organization.setActive({organizationId:e}),await Promise.all([s(),P(e)])},[P,s]),M=u((0,a.useCallback)(async e=>{try{if(R){await D(R);return}let n={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}
14,r=await i("/api/merchant",n),a=await r.json();a.success?(N(a.data.id),_.Z.track("Created Merchant",{merchant_id:a.data.id,merchant_name:a.data.name}),await D(a.data.id)):t(a.code??"unknown")}catch(e){throw t("request_failed"),w.Tb(e),Error("error creating merchant")}},[D,R,i,t]));return(0,r.jsxs)("form",{className:"flex flex-1 flex-col gap-4",onSubmit:M,children:[(0,r.jsx)(S.Z,{displayLabel:!!m.merchantName,placeholder:"Trading name",id:"merchantName",outerClassName:"mb-0",hideStatusBar:!b.merchantName,register:c,error:b.merchantName}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row w-full gap-2",children:[(0,r.jsx)(k.ih,{control:l,id:"legalEntity",placeholder:"Type of Business",error:b.legalEntity,outerClassName:"w-full mb-0",hideStatusBar:!b.legalEntity,children:Object.entries(I.Ul).map(([e,t])=>(0,r.jsx)(k.Ql,{value:t,children:e},t))}),(0,r.jsx)(k.ih,{control:l,id:"merchantPrimaryCategory",placeholder:"Industry",error:b.merchantPrimaryCategory,outerClassName:"w-full mb-0",hideStatusBar:!b.merchantPrimaryCategory,children:[...I.OU.entries()].map(([e,t])=>(0,r.jsx)(k.Ql,{value:e,children:t},e))})]}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row w-full gap-2",children:[(0,r.jsx)(k.ih,{control:l,id:"merchantSecondaryCategory",placeholder:"Category",error:b.merchantSecondaryCategory,outerClassName:"w-full mb-0",hideStatusBar:!b.merchantSecondaryCategory,children:[...O.entries()].map(([e,t])=>(0,r.jsx)(k.Ql,{value:e,children:t.text},e))}),(0,r.jsx)(k.ih,{control:l,id:"revenue",placeholder:"Revenue",error:b.revenue,outerClassName:"w-full mb-0",hideStatusBar:!b.revenue,children:Object.entries(I.WH).filter(([,e])=>e!==v.Revenue.UNKNOWN&&e!==v.Revenue.LESS_100K).map(([e,t])=>(0,r.jsx)(k.Ql,{value:t,children:e},t))})]}),(0,r.jsxs)("div",{className:"text-left mt-2",children:[(0,r.jsx)("h3",{className:"mb-2",children:"Tell us about your business"}),(0,r.jsx)(C.Z,{register:c,id:"businessDescription",error:b.businessDescription,placeholder:"Describe your product or service",rows:4,outerClassName:"mb-0",hideStatusBar:!b.businessDescription,className:"px-4 py-3 text-md"}),(0,r.jsx)(E.Z,{variant:"small",register:c,id:"tradingForMoreThanSixMonths",hideStatusBar:!0,label:"Has your business been trading for more than 6 months?"})]}),(0,r.jsx)(d.Z,{loading:g,className:"mt-auto",type:"submit",children:"Next"})]})}var N=n(34135),O=n(97943),P=n(40231),D=n(5449),M=n(15903),$=n(2437),j=function({currentStep:e,onComplete:t,onMerchantCreated:n,fullScreen:s=!1,onStepChange:l,progress:c,initialMerchantId:u=null}){let{userData:d,refreshUserSession:p}=(0,A.Z)(),[m]=(0,a.useState)(),[y,v]=(0,a.useState)(e),[w,_]=(0,a.useState)(!1),[x,E]=(0,a.useState)(null),S=x??u??d?.merchant?.id,[k,C]=(0,a.useState)(null);(0,a.useEffect)(()=>{l?.(y)},[l,y]);let I="It looks like something went wrong.",T="Please try again in a few minutes. If the issue persists, contact support using the widget located in the bottom right corner of your screen.",j="Retry",[L,F]=(0,a.useState)({message:I,actionMessage:T,retryButtonText:j}),B=(0,o.cI)({resolver:(0,i.F)(g.oX),mode:"onSubmit",defaultValues:m}),U=(e="unknown")=>{(0,$._b)(y,e),(0,f.H)("onboarding_step_failed",{step:M.r[y],metadata:{code:e}}),F({message:I,actionMessage:T,retryButtonText:j}),_(!0)},z=async e=>{if(e.success){(0,$.ZP)(5),(0,$.pN)(),_(!1);try{await p()}catch{}t()}else U(e.code)},Z={1:{heading:"Welcome to Stitch Express",subHeading:"Complete your business profile",component:(0,r.jsx)(R,{onResult:(e,t)=>{E(t),(0,$.o5)(t),e.success?((0,$.ZP)(1),n?.(),_(!1),v(2)):U(e.error.code)},onError:U,merchantCreateForm:B})},2:{heading:"Add your business address",subHeading:"Where do you operate from?",component:(0,r.jsx)(b,{onResult:e=>{e.success?((0,$.ZP)(2),_(!1),v(3)):U(e.code)},onError:()=>U("request_failed")})},3:{heading:"Show us your brand",subHeading:"Your logo will appear on your payment pages (optional)",component:(0,r.jsx)(h,{merchantId:S,onContinue:()=>{(0,$.ZP)(3),v(4)}})},4:{heading:"How do you accept payments?",subHeading:"We'll tailor your dashboard accordingly",component:(0,r.jsx)(N.Z,{value:k,onChange:C,onNext:()=>{(0,$.ZP)(4),v(5)}})},5:{heading:"Do any of these sales channels apply to you?",subHeading:"We'll help you set up the required plugins for your store",component:k?(0,r.jsx)(O.ZP,{paymentAcceptanceMode:k,onError:()=>U("request_failed"),onResult:z}):null}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(P.Z,{heading:Z[y].heading,subheading:Z[y].subHeading,className:`${w?"hidden":""}`,fullScreen:s,progress:c,children:(0,r.jsx)("div",{className:"animate-enter flex flex-1 flex-col",children:Z[y].component},y)}),w?(0,r.jsx)(P.Z,{heading:"Uh oh!",subheading:L.message,className:"border-alert",fullScreen:s,progress:c,children:(0,r.jsx)(D.Z,{actionMessage:L.actionMessage,retry:()=>_(!1),retryMessage:L.retryButtonText})}):null]})}},49068:function(e,t,n){"use strict";n.d(t,{J2:function(){return z},yk:function(){return V},xo:function(){return Z}});var r=n(52676),i=n(75271),a=n(29161),o=n(49204),s=n(42478),l=n(72037),c=n(67369),u=n(45446),d=n(8921),p=n(59860),f=n(43498),h=n(48101),m=n(64457),g=n(65187),y=n(30710),v=n(19800),b=n(56887),w="Popover",[_,x]=(0,s.b)(w,[p.D7]),E=(0,p.D7)(),[S,k]=_(w),C=e=>{let{__scopePopover:t,children:n,open:a,defaultOpen:o,onOpenChange:s,modal:l=!1}=e,c=E(t),u=i.useRef(null),[f,h]=i.useState(!1),[m=!1,g]=(0,y.T)({prop:a,defaultProp:o,onChange:s});return(0,r.jsx)(p.fC,{...c,children:(0,r.jsx)(S,{scope:t,contentId:(0,d.M)(),triggerRef:u,open:m,onOpenChange:g,onOpenToggle:i.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:f,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:l,children:n})})};C.displayName=w;var I="PopoverAnchor";i.forwardRef((e,t)=>
14{let{__scopePopover:n,...a}=e,o=k(I,n),s=E(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=o;return i.useEffect(()=>(l(),()=>c()),[l,c]),(0,r.jsx)(p.ee,{...s,...a,ref:t})}).displayName=I;var A="PopoverTrigger",T=i.forwardRef((e,t)=>{let{__scopePopover:n,...i}=e,s=k(A,n),l=E(n),c=(0,o.e)(t,s.triggerRef),u=(0,r.jsx)(m.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":B(s.open),...i,ref:c,onClick:(0,a.M)(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?u:(0,r.jsx)(p.ee,{asChild:!0,...l,children:u})});T.displayName=A;var R="PopoverPortal",[N,O]=_(R,{forceMount:void 0}),P=e=>{let{__scopePopover:t,forceMount:n,children:i,container:a}=e,o=k(R,t);return(0,r.jsx)(N,{scope:t,forceMount:n,children:(0,r.jsx)(h.z,{present:n||o.open,children:(0,r.jsx)(f.h,{asChild:!0,container:a,children:i})})})};P.displayName=R;var D="PopoverContent",M=i.forwardRef((e,t)=>{let n=O(D,e.__scopePopover),{forceMount:i=n.forceMount,...a}=e,o=k(D,e.__scopePopover);return(0,r.jsx)(h.z,{present:i||o.open,children:o.modal?(0,r.jsx)($,{...a,ref:t}):(0,r.jsx)(j,{...a,ref:t})})});M.displayName=D;var $=i.forwardRef((e,t)=>{let n=k(D,e.__scopePopover),s=i.useRef(null),l=(0,o.e)(t,s),c=i.useRef(!1);return i.useEffect(()=>{let e=s.current;if(e)return(0,v.Ry)(e)},[]),(0,r.jsx)(b.Z,{as:g.g7,allowPinchZoom:!0,children:(0,r.jsx)(L,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),c.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,a.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;c.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),j=i.forwardRef((e,t)=>{let n=k(D,e.__scopePopover),a=i.useRef(!1),o=i.useRef(!1);return(0,r.jsx)(L,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||n.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),L=i.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:h,onInteractOutside:m,...g}=e,y=k(D,n),v=E(n);return(0,c.EW)(),(0,r.jsx)(u.M,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,r.jsx)(l.XB,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:m,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:h,onDismiss:()=>y.onOpenChange(!1),children:(0,r.jsx)(p.VY,{"data-state":B(y.open),role:"dialog",id:y.contentId,...v,...g,ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),F="PopoverClose";function B(e){return e?"open":"closed"}i.forwardRef((e,t)=>{let{__scopePopover:n,...i}=e,o=k(F,n);return(0,r.jsx)(m.WV.button,{type:"button",...i,ref:t,onClick:(0,a.M)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=F,i.forwardRef((e,t)=>{let{__scopePopover:n,...i}=e,a=E(n);return(0,r.jsx)(p.Eh,{...a,...i,ref:t})}).displayName="PopoverArrow";var U=n(93595);let z=C,Z=T,V=i.forwardRef(({className:e,align:t="center",sideOffset:n=4,children:i,...a},o)=>(0,r.jsx)(P,{children:(0,r.jsxs)(M,{ref:o,align:t,sideOffset:n,className:(0,U.cn)("z-50 w-72 rounded-md border border-grey-light bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
14de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a,children:[(0,r.jsx)("span",{className:"absolute w-0 h-0",tabIndex:0}),i]})}));V.displayName=M.displayName},49338:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(52676);let i=(0,n(69211).Z)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);var a=n(56964),o=n(75271),s=n(32687),l=n(64956),c=n(89839),u=n(67622),d=n(11362),p=function(){let{userData:e}=(0,d.Z)(),[t,n]=(0,o.useState)(e?.merchant?.id),[p,f]=(0,o.useState)(!1),[h,m]=(0,o.useState)(!1),g=(0,a.useRouter)(),{setActiveMerchantId:y}=(0,u.Z)(),v=async()=>{await g.push("/verification").then(()=>{g.reload()})},b=async e=>{e||!p||h||(await y(t),(0,c.Z)("Merchant was created","success"))};return(0,r.jsxs)(s.Vq,{onOpenChange:e=>{b(e)},children:[(0,r.jsx)(s.hg,{asChild:!0,children:(0,r.jsxs)("button",{className:"flex gap-3 py-2 px-4 items-center hover:bg-primary-light/20 hover:cursor-pointer w-full transition duration-500 focus:bg-primary-light/20 outline-none",children:[(0,r.jsx)(i,{width:24,height:24,className:"border rounded-full p-1"}),(0,r.jsx)("span",{className:"text-sm",children:"Add organisation"})]})}),(0,r.jsx)(s.cZ,{children:(0,r.jsx)(l.Z,{currentStep:1,onMerchantCreated:()=>{f(!0)},onComplete:()=>{m(!0),v()},fullScreen:!0})})]})}},38442:function(e,t,n){"use strict";n.d(t,{Z:function(){return D}});var r=n(52676),i=n(62717),a=n(80991),o=n(56964),s=n(75271),l=n(25092),c=n(57802),u=n(49068),d=n(69211);let p=(0,d.Z)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);var f=n(58363),h=n(80515),m=n(93595),g=function({className:e}){let{logOut:t,isLoggingOut:n}=(0,h.Z)();return(0,r.jsxs)("button",{type:"button",className:(0,m.cn)("flex items-center hover:bg-grey-light/30 hover:cursor-pointer",n&&"cursor-default hover:bg-transparent",e),disabled:n,"aria-busy":n,onClick:()=>{t()},children:[(0,r.jsx)("span",{className:"w-4 h-4 shrink-0 flex items-center justify-center",children:n?(0,r.jsx)(f.ZP,{size:"xsmall",className:"fill-current"}):(0,r.jsx)(p,{width:16,height:16})}),(0,r.jsx)("span",{className:"text-sm",children:"Logout"})]})},y=function({merchantName:e,width:t,height:n,bgColor:i,textSize:a}){return(0,r.jsx)("div",{style:{width:`${t}px`,height:`${n}px`},className:(0,m.cn)("flex justify-center items-center rounded-full aspect-square",i,a),children:e.trim().split(/\s+/).map(e=>e.replace(/[^a-zA-Z]/g,"")).filter(Boolean).slice(0,2).map(e=>e[0]).join("").toUpperCase()})},v=n(49338),b=n(11257),w=function({className:e,isActive:t,isSwitching:n=!1,disabled:i=!1,merchantId:a,merchantName:o,onMerchantClicked:s,badgeColor:l,badgeTextSize:c}){return(0,r.jsxs)("button",{type:"button",className:(0,m.cn)("flex justify-between py-2 px-4 items-center hover:bg-primary-light/20 hover:cursor-pointer w-full transition duration-500 focus-visible:bg-primary-light/20 outline-none",i&&"cursor-default hover:cursor-default hover:bg-transparent",i&&!n&&"opacity-50",e),disabled:i,"aria-busy":n,onClick:()=>{s(a)},tabIndex:t?-1:0,children:[(0,r.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,r.jsx)(y,{width:24,height:24,merchantName:o,textSize:c,bgColor:l}),(0,r.jsx)("p",{className:"text-sm",children:o})]}),(0,r.jsx)("span",{className:"w-6 h-6 shrink-0 flex items-center justify-center",children:n?(0,r.jsx)(f.ZP,{size:"small",className:"fill-current"}):t&&(0,r.jsx)(b.Z,{width:24,height:24})})]})},_=function({orderedMerchants:e,activeMerchant:t,getBadgeColor:n,onSetMerchant:i,switchingMerchantId:a=null}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col max-h-[304px] sm:max-h-[388px] overflow-y-auto thin-scrollbar",children:[e?.length&&e.length>1&&e?.map((e,o)=>r.jsx(w,{className:t.id===e.id?"-order-1":"",badgeColor:n(o),badgeTextSize:"text-3xs",isActive:t.id===e.id,isSwitching:a===e.id,disabled:null!==a,merchantId:e.id,merchantName:e?.name,onMerchantClicked:()=>{i(e.id)}},e.id)),(0,r.jsx)(v.Z,{})]}),(0,r.jsx)(c.i,{className:"my-0"})]})};let x=(0,d.Z)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);var E=n(32687),S=n(804),k=n(59433),C=n(68763),I=function({user:e}){return(0,r.jsx)(S.Z,{items:[{title:"Email",subTitle:"The email used for your account",value:e.email},{title:"Phone number",subTitle:"The phone number used for your account.",value:e.phoneNumber??"-"},{title:"Password",subTitle:"The password used for your account.",value:(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("p",{className:"hidden lg:block",children:"************"}),(0,r.jsx)(C.Z,{})]})},{title:"Passkey",subTitle:"The password used to log into your account.",value:(0,r.jsx)(k.Z,{})}]})},A=n(11362),T=function({className:e}){let{userData:t}=(0,A.Z)();if(t?.user.id)return(0,r.jsxs)(E.Vq,{children:[(0,r.jsx)(E.hg,{asChild:!0,children:(0,r.jsxs)("button",{className:(0,m.cn)("flex items-center  hover:bg-grey-light/30 hover:cursor-pointer transition duration-500",e),children:[(0,r.jsx)(x,{width:16,height:16}),(0,r.jsx)("span",{className:"text-sm",children:"Profile"})]})}),(0,r.jsx)(E.cZ,{children:(0,r.jsx)(I,{user:t?.user})})]})},R=n(59369),N=n(73850);let O=["bg-primary-light","bg-alert-light","bg-warning"];function P(e=0){return O[e%O.length]}var D=function({className:e,titleClassName:t,chevronClassName:n,badgeRadius:d}){let p=(0,o.useRouter)(),{data:f,refetch:h}=l.Z.useListOrganizations(),{data:v}=l.Z.useActiveOrganization(),{userData:b}
14=(0,A.Z)(),[w,x]=(0,s.useState)(!1),[E,S]=(0,s.useState)(null);(0,s.useEffect)(()=>{h()},[v,h]);let k=async e=>{if(null===E){S(e);try{await p.push(`/switching-merchant/${e}`)&&x(!1)}finally{S(null)}}},C=f?.sort((e,t)=>N.Z(e.createdAt,t.createdAt)),I=C?.findIndex(e=>e.id===v?.id),O=v?.members.find(e=>e.userId===b?.user.id)?.role;return(0,r.jsxs)(u.J2,{open:w,onOpenChange:x,children:[(0,r.jsx)(u.xo,{asChild:!0,children:(0,r.jsxs)("button",{className:(0,m.cn)("flex justify-center items-center gap-2 focus:bg-primary-light/20 hover:bg-primary-light/20 outline-none rounded-full p-1 duration-300",w&&"bg-primary-light/20",e),children:[v?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{width:d,height:d,merchantName:v.name,textSize:"text-sm",bgColor:P(I)}),(0,r.jsx)("p",{className:(0,m.cn)("text-white sm:text-secondary whitespace-nowrap",t),children:v.name})]}):(0,r.jsx)("p",{className:(0,m.cn)("text-white sm:text-secondary pl-2 whitespace-nowrap",t),children:b?.user.firstName}),(0,r.jsx)("span",{className:(0,m.cn)("text-white sm:text-secondary",n),children:w?(0,r.jsx)(i.Z,{width:24,height:24}):(0,r.jsx)(a.Z,{width:24,height:24})})]})}),(0,r.jsx)(u.yk,{className:"w-auto p-0 bg-white mr-6 font-inter overflow-hidden",align:"start",children:(0,r.jsxs)("div",{className:"flex flex-col min-w-60",children:[(0,r.jsxs)("div",{className:"w-full text-xs my-3 px-4 flex justify-between items-center gap-4",children:[(0,r.jsx)("p",{className:"text-secondary-light",children:b?.user.email}),O&&(0,r.jsx)("p",{className:"text-secondary-light font-medium",children:R.e2[O]})]}),(0,r.jsx)(c.i,{className:"my-0"}),v&&(0,r.jsx)(_,{activeMerchant:v,orderedMerchants:C,getBadgeColor:P,switchingMerchantId:E,onSetMerchant:e=>{k(e)}}),(0,r.jsx)(T,{className:"gap-2 px-4 py-3 duration-500 focus-visible:bg-primary-light/20 outline-none"}),(0,r.jsx)(g,{className:"gap-2 px-4 py-3 duration-500 focus-visible:bg-primary-light/20 outline-none"})]})})]})}},40600:function(e,t,n){"use strict";n.d(t,{E:function(){return e_},m:function(){return ex}});var r=n(52676),i=n(75271),a=n.t(i,2),o=n(99622),s=n(71507),l=n(43589),c=n(55695),u=n(5837),d=n(26114),p=n(10500),f=n(75051),h=n(16525),m=n(61678),g=Object.defineProperty,y=(e,t)=>g(e,"name",{value:t,configurable:!0}),v=!1;function b(){let[e,t]=i.useState(v);return i.useEffect(()=>{v||(v=!0,t(!0))},[]),e}y(b,"useIsHydrated");var w=a[" useSyncExternalStore ".trim().toString()];function _(){return()=>{}}function x(){return w(_,()=>!0,()=>!1)}y(_,"subscribe"),y(x,"useIsHydratedModern");var E="function"==typeof w?x:b,S=Object.defineProperty,k=(e,t)=>S(e,"name",{value:t,configurable:!0}),C="rovingFocusGroup.onEntryFocus",I={bubbles:!1,cancelable:!0},A="RovingFocusGroup",[T,R,N]=(0,u.B)(A),[O,P]=(0,l.b)(A,[N]),[D,M]=O(A),$=i.forwardRef(k(function(e,t){return(0,r.jsx)(T.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,r.jsx)(T.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,r.jsx)(j,{...e,ref:t})})})},"RovingFocusGroup")),j=i.forwardRef(k(function(e,t){let{__scopeRovingFocusGroup:n,orientation:a,loop:l=!1,dir:u,currentTabStopId:d,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:g,onEntryFocus:y,preventScrollOnEntryFocus:v=!1,...b}=e,w=i.useRef(null),_=(0,s.e)(t,w),x=(0,h.gm)(u),[E,S]=(0,f.T)({prop:d,defaultProp:m??null,onChange:g,caller:A}),[k,T]=i.useState(!1),N=(0,p.W)(y),O=R(n),P=i.useRef(!1),[M,$]=i.useState(0);return i.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(C,N),()=>e.removeEventListener(C,N)},[N]),(0,r.jsx)(D,{scope:n,orientation:a,dir:x,loop:l,currentTabStopId:E,onItemFocus:i.useCallback(e=>S(e),[S]),onItemShiftTab:i.useCallback(()=>T(!0),[]),onFocusableItemAdd:i.useCallback(()=>$(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>$(e=>e-1),[]),children:(0,r.jsx)(c.WV.div,{tabIndex:k||0===M?-1:0,"data-orientation":a,...b,ref:_,style:{outline:"none",...e.style},onMouseDown:(0,o.Mj)(e.onMouseDown,()=>{P.current=!0}),onFocus:(0,o.Mj)(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(C,I);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>
14e.focusable);z([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),v)}}P.current=!1}),onBlur:(0,o.Mj)(e.onBlur,()=>T(!1))})})},"RovingFocusGroupImpl")),L=i.forwardRef(k(function(e,t){let{__scopeRovingFocusGroup:n,focusable:a=!0,active:s=!1,tabStopId:l,children:u,...p}=e,f=(0,d.M)(),h=l||f,g=M("RovingFocusGroupItem",n),y=g.currentTabStopId===h,v=R(n),{onFocusableItemAdd:b,onFocusableItemRemove:w,currentTabStopId:_}=g,x=E();return(0,m.b)(()=>{if(x&&a)return b(),()=>w()},[x,a,b,w]),i.useEffect(()=>{if(!x&&a)return b(),()=>w()},[x,a,b,w]),(0,r.jsx)(T.ItemSlot,{scope:n,id:h,focusable:a,active:s,children:(0,r.jsx)(c.WV.span,{tabIndex:y?0:-1,"data-orientation":g.orientation,...p,ref:t,onMouseDown:(0,o.Mj)(e.onMouseDown,e=>{a?g.onItemFocus(h):e.preventDefault()}),onFocus:(0,o.Mj)(e.onFocus,()=>g.onItemFocus(h)),onKeyDown:(0,o.Mj)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){g.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=U(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=g.loop?Z(n,r+1):n.slice(r+1)}setTimeout(()=>z(n))}}),children:"function"==typeof u?u({isCurrentTabStop:y,hasTabStop:null!=_}):u})})},"RovingFocusGroupItem")),F={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function B(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function U(e,t,n){let r=B(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return F[r]}function z(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Z(e,t){return e.map((n,r)=>e[(t+r)%e.length])}k(B,"getDirectionAwareKey"),k(U,"getFocusIntent"),k(z,"focusFirst"),k(Z,"wrapArray");var V=n(50912),q=n(616),W=Object.defineProperty,G=(e,t)=>W(e,"name",{value:t,configurable:!0}),H="Radio",[Y,K]=(0,l.b)(H),[J,X]=Y(H);function Q(e){let{__scopeRadio:t,checked:n=!1,children:a,disabled:o,form:s,name:l,onCheck:c,required:u,value:d="on",internal_do_not_use_render:p}=e,[f,h]=i.useState(null),[m,g]=i.useState(null),y=i.useRef(!1),[v,b]=i.useReducer(e=>e+1,0),w=!f||!!s||!!f.closest("form"),_={checked:n,disabled:o,required:u,name:l,form:s,value:d,control:f,setControl:h,hasConsumerStoppedPropagationRef:y,userInteractionCount:v,onUserInteraction:b,isFormControl:w,bubbleInput:m,setBubbleInput:g,onCheck:G(()=>c?.(),"onCheck")};return(0,r.jsx)(J,{scope:t,..._,children:er(p)?p(_):a})}G(Q,"RadioProvider");var ee=i.forwardRef(G(function({__scopeRadio:e,onClick:t,...n},i){let{checked:a,disabled:l,value:u,setControl:d,onCheck:p,hasConsumerStoppedPropagationRef:f,onUserInteraction:h,isFormControl:m,bubbleInput:g}=X("RadioTrigger",e),y=(0,s.e)(i,d);return(0,r.jsx)(c.WV.button,{type:"button",role:"radio","aria-checked":a,"data-state":ei(a),"data-disabled":l?"":void 0,disabled:l,value:u,...n,ref:y,onClick:(0,o.Mj)(t,e=>{a||(h(),p()),g&&m&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})},"RadioTrigger")),et=i.forwardRef(G(function(e,t){let{__scopeRadio:n,forceMount:i,...a}=e,o=X("RadioIndicator",n);return(0,r.jsx)(q.z,{present:i||o.checked,children:(0,r.jsx)(c.WV.span,{"data-state":ei(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t})})},"RadioIndicator")),en=i.forwardRef(G(function({__scopeRadio:e,onClick:t,...n},a){let{control:l,checked:u,required:d,disabled:p,name:f,value:h,form:m,bubbleInput:g,setBubbleInput:y,hasConsumerStoppedPropagationRef:v,userInteractionCount:b}=X("RadioBubbleInput",e),w=(0,s.e)(a,y),_=(0,V.t)(l),x=i.useRef(!1),E=i.useRef(u),S=i.useRef(b);i.useEffect(()=>{if(!g)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=b!==S.current;S.current=b;let n=E.current!==u;E.current=u;let r=!(t&&v.current);if(n&&e){x.current=!t;let n=new Event("click",{bubbles:r});
14e.call(g,u),g.dispatchEvent(n),x.current=!1}},[g,u,v,b]);let k=i.useRef(u);return(0,r.jsx)(c.WV.input,{type:"radio","aria-hidden":!0,defaultChecked:k.current,required:d,disabled:p,name:f,value:h,form:m,...n,tabIndex:-1,ref:w,onClick:(0,o.Mj)(t,e=>{x.current&&e.stopPropagation()}),style:{...n.style,..._,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"RadioBubbleInput"));function er(e){return"function"==typeof e}function ei(e){return e?"checked":"unchecked"}G(er,"isFunction"),G(ei,"getState");var ea=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],eo="RadioGroup",[es,el]=(0,l.b)(eo,[P,K]),ec=P(),eu=K(),[ed,ep]=es(eo),ef=i.forwardRef(G(function(e,t){let{__scopeRadioGroup:n,name:a,form:o,defaultValue:l,value:u,required:d=!1,disabled:p=!1,orientation:m,dir:g,loop:y=!0,onValueChange:v,...b}=e,w=ec(n),_=(0,h.gm)(g),[x,E]=(0,f.T)({prop:u,defaultProp:l??null,onChange:v,caller:eo}),[S,k]=i.useState(null),C=(0,s.e)(t,k),I=i.useRef(x);return i.useEffect(()=>{let e=o?S?.ownerDocument.getElementById(o):S?.closest("form");if(e instanceof HTMLFormElement){let t=G(()=>E(I.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[S,o,E]),(0,r.jsx)(ed,{scope:n,name:a,form:o,required:d,disabled:p,value:x,onValueChange:E,children:(0,r.jsx)($,{asChild:!0,...w,orientation:m,dir:_,loop:y,children:(0,r.jsx)(c.WV.div,{role:"radiogroup","aria-required":d,"aria-orientation":m,"data-disabled":p?"":void 0,dir:_,...b,ref:C})})})},"RadioGroup"));function eh(e){let{__scopeRadioGroup:t,value:n,disabled:i,children:a,internal_do_not_use_render:o}=e,s=ep("RadioGroupItemProvider",t),l=eu(t),c=s.disabled||i;return(0,r.jsx)(Q,{...l,checked:s.value===n,disabled:c,required:s.required,name:s.name,form:s.form,value:n,onCheck:()=>s.onValueChange(n),internal_do_not_use_render:o,children:a})}G(eh,"RadioGroupItemProvider");var em=i.forwardRef(G(function(e,t){let{__scopeRadioGroup:n,...a}=e,l=ec(n),c=eu(n),{checked:u,disabled:d}=X("RadioGroupItemTrigger",c.__scopeRadio),p=i.useRef(null),f=(0,s.e)(t,p),h=i.useRef(!1);return i.useEffect(()=>{let e=G(e=>{ea.includes(e.key)&&(h.current=!0)},"handleKeyDown"),t=G(()=>h.current=!1,"handleKeyUp");return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,r.jsx)(L,{asChild:!0,...l,focusable:!d,active:u,children:(0,r.jsx)(ee,{...c,...a,ref:f,onKeyDown:(0,o.Mj)(a.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,o.Mj)(a.onFocus,()=>{h.current&&p.current?.click()})})})},"RadioGroupItemTrigger")),eg=i.forwardRef(G(function(e,t){let{__scopeRadioGroup:n,value:i,disabled:a,...o}=e;return(0,r.jsx)(eh,{__scopeRadioGroup:n,value:i,disabled:a,internal_do_not_use_render:({isFormControl:e})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(em,{...o,ref:t,__scopeRadioGroup:n}),e&&(0,r.jsx)(ey,{__scopeRadioGroup:n})]})})},"RadioGroupItem")),ey=i.forwardRef(G(function(e,t){let{__scopeRadioGroup:n,...i}=e,a=eu(n);return(0,r.jsx)(en,{...a,...i,ref:t})},"RadioGroupItemBubbleInput")),ev=i.forwardRef(G(function(e,t){let{__scopeRadioGroup:n,...i}=e,a=eu(n);return(0,r.jsx)(et,{...a,...i,ref:t})},"RadioGroupIndicator")),eb=n(29633),ew=n(93595);let e_=(0,i.forwardRef)(({className:e,...t},n)=>(0,r.jsx)(ef,{ref:n,className:(0,ew.cn)("grid gap-2",e),...t}));e_.displayName=ef.displayName;let ex=(0,i.forwardRef)(({className:e,...t},n)=>(0,r.jsx)(eg,{ref:n,className:(0,ew.cn)("aspect-square h-4 w-4 shrink-0 rounded-full border border-secondary outline-none hover:cursor-pointer focus-visible:border-primary data-[state=checked]:border-primary disabled:pointer-events-none disabled:opacity-25",e),...t,children:(0,r.jsx)(ev,{className:"flex items-center justify-center",children:(0,r.jsx)(eb.Z,{className:"h-2.5 w-2.5 fill-primary text-primary"})})}));ex.displayName=eg.displayName},15862:function(e,t,n){"use strict";n.d(t,{ih:function(){return tQ},Ql:function(){return tX}});var r,i=n(52676),a=n(25282),o=n(83351),s=n(1969),l=n(75271),c=n(30967);function u(e,[t,n]){return Math.min(n,Math.max(t,e))}(0,Object.defineProperty)(u,"name",{value:"clamp",configurable:!0});var d=n(99622),p=n(5837),f=n(71507),h=n(43589),m=n(16525),g=n(55695),y=n(10500),v=Object.defineProperty,b=(e,t)=>v(e,"name",{value:t,configurable:!0}),w="dismissableLayer.update",_=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),x=l.forwardRef(b(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:a=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:u,onDismiss:p,...h}=e,m=l.useContext(_),[v,x]=l.useState(null),E=v?.ownerDocument??globalThis?.document,[,I]=l.useState({}
14),A=(0,f.e)(t,x),T=Array.from(m.layers),[R]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),N=R?T.indexOf(R):-1,O=v?T.indexOf(v):-1,P=m.layersWithOutsidePointerEventsDisabled.size>0,D=O>=N,M=l.useRef(!1),$=S(e=>{s?.(e),u?.(e),e.defaultPrevented||p?.()},{ownerDocument:E,deferPointerDownOutside:a,isDeferredPointerDownOutsideRef:M,dismissableSurfaces:m.dismissableSurfaces,shouldHandlePointerDownOutside:l.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...m.branches].some(t=>t.contains(e));return D&&!t},[m.branches,D])}),j=k(e=>{if(a&&M.current)return;let t=e.target;[...m.branches].some(e=>e.contains(t))||(c?.(e),u?.(e),e.defaultPrevented||p?.())},E),L=!!v&&O===T.length-1,F=(0,y.W)(e=>{"Escape"===e.key&&(o?.(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))});return l.useEffect(()=>{if(L)return E.addEventListener("keydown",F,{capture:!0}),()=>E.removeEventListener("keydown",F,{capture:!0})},[E,L,F]),l.useEffect(()=>{if(v)return n&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(r=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),C(),()=>{n&&(m.layersWithOutsidePointerEventsDisabled.delete(v),0===m.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=r))}},[v,E,n,m]),l.useEffect(()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),C())},[v,m]),l.useEffect(()=>{let e=b(()=>I({}),"handleUpdate");return document.addEventListener(w,e),()=>document.removeEventListener(w,e)},[]),(0,i.jsx)(g.WV.div,{...h,ref:A,style:{pointerEvents:P?D?"auto":"none":void 0,...e.style},onFocusCapture:(0,d.Mj)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,d.Mj)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,d.Mj)(e.onPointerDownCapture,$.onPointerDownCapture)})},"DismissableLayer"));b(function(){let e=l.useContext(_),[t,n]=l.useState(null);return l.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n},"useDismissableLayerSurface");var E=b(()=>!0,"IS_TRUE");function S(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=E}=t,s=(0,y.W)(e),c=l.useRef(!1),u=l.useRef(!1),d=l.useRef(new Map),p=l.useRef(()=>{});return l.useEffect(()=>{function e(){u.current=!1,i.current=!1,d.current.clear()}function t(){return Array.from(d.current.values()).some(Boolean)}function l(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||d.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{u.current&&p.current()},0)}function f(e){u.current&&d.current.set(e.type,!1)}b(e,"resetOutsideInteraction"),b(t,"isOutsideInteractionIntercepted"),b(l,"handleInteractionCapture"),b(f,"handleInteractionBubble");let h=b(a=>{if(a.target&&!c.current){let l=function(){n.removeEventListener("click",p.current);let r=t();e(),r||I("dismissableLayer.pointerDownOutside",s,f,{discrete:!0})};if(b(l,"handleAndDispatchPointerDownOutsideEvent"),!o(a.target)){n.removeEventListener("click",p.current),e(),c.current=!1;return}let f={originalEvent:a};u.current=!0,i.current=r&&0===a.button,d.current.clear(),r&&0===a.button?(n.removeEventListener("click",p.current),p.current=l,n.addEventListener("click",p.current,{once:!0})):l()}else n.removeEventListener("click",p.current),e();c.current=!1},"handlePointerDown"),m=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of m)n.addEventListener(e,l,!0),n.addEventListener(e,f);let g=window.setTimeout(()=>{n.addEventListener("pointerdown",h)},0);return()=>{for(let e of(window.clearTimeout(g),n.removeEventListener("pointerdown",h),n.removeEventListener("click",p.current),m))n.removeEventListener(e,l,!0),n.removeEventListener(e,f)}},[n,s,r,i,a,o]),{onPointerDownCapture:b(()=>c.current=!0,"onPointerDownCapture")}}function k(e,t=globalThis?.document){let n=(0,y.W)(e),r=l.useRef(!1);return l.useEffect(()=>{let e=b(e=>{e.target&&!r.current&&I("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:b(()=>r.current=!0,"onFocusCapture"),onBlurCapture:b(()=>r.current=!1,"onBlurCapture")}}function C(){let e=new CustomEvent(w);document.dispatchEvent(e)}function I(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,g.jH)(i,a):i.dispatchEvent(a)}b(S,"usePointerDownOutside"),b(k,"useFocusOutside"),b(C,"dispatchUpdate"),b(I,"handleAndDispatchCustomEvent");var A=Object.defineProperty,T=(e,t)=>
14A(e,"name",{value:t,configurable:!0}),R=0,N=null;function O(){l.useEffect(()=>{N||(N={start:P(),end:P()});let{start:e,end:t}=N;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),R++,()=>{1===R&&(N?.start.remove(),N?.end.remove(),N=null),R=Math.max(0,R-1)}},[])}function P(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}T(function(e){return O(),e.children},"FocusGuards"),T(O,"useFocusGuards"),T(P,"createFocusGuard");var D=Object.defineProperty,M=(e,t)=>D(e,"name",{value:t,configurable:!0}),$="focusScope.autoFocusOnMount",j="focusScope.autoFocusOnUnmount",L={bubbles:!1,cancelable:!0},F=l.forwardRef(M(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,u]=l.useState(null),d=(0,y.W)(a),p=(0,y.W)(o),h=l.useRef(null),m=(0,f.e)(t,u),v=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let e=function(e){if(v.paused||!c)return;let t=e.target;c.contains(t)?h.current=t:W(h.current,{select:!0})},t=function(e){if(v.paused||!c)return;let t=e.relatedTarget;null===t||c.contains(t)||W(h.current,{select:!0})},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&W(c)};M(e,"handleFocusIn"),M(t,"handleFocusOut"),M(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,c,v.paused]),l.useEffect(()=>{if(c){G.add(v);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent($,L);c.addEventListener($,d),c.dispatchEvent(t),t.defaultPrevented||(B(K(z(c)),{select:!0}),document.activeElement===e&&W(c))}return()=>{c.removeEventListener($,d),setTimeout(()=>{let t=new CustomEvent(j,L);c.addEventListener(j,p),c.dispatchEvent(t),t.defaultPrevented||W(e??document.body,{select:!0}),c.removeEventListener(j,p),G.remove(v)},0)}}},[c,d,p,v]);let b=l.useCallback(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=U(t);r&&a?e.shiftKey||i!==a?e.shiftKey&&i===r&&(e.preventDefault(),n&&W(a,{select:!0})):(e.preventDefault(),n&&W(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,v.paused]);return(0,i.jsx)(g.WV.div,{tabIndex:-1,...s,ref:m,onKeyDown:b})},"FocusScope"));function B(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(W(r,{select:t}),document.activeElement!==n)return}function U(e){let t=z(e);return[Z(t,e),Z(t.reverse(),e)]}function z(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:M(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function Z(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):V(r,{upTo:t})))return r}function V(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function q(e){return e instanceof HTMLInputElement&&"select"in e}function W(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&q(e)&&t&&e.select()}}M(B,"focusFirst"),M(U,"getTabbableEdges"),M(z,"getTabbableCandidates"),M(Z,"findVisible"),M(V,"isHidden"),M(q,"isSelectableInput"),M(W,"focus");var G=H();function H(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=Y(e,t)).unshift(t)},remove(t){e=Y(e,t),e[0]?.resume()}}}function Y(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function K(e){return e.filter(e=>"A"!==e.tagName)}M(H,"createFocusScopesStack"),M(Y,"arrayRemove"),M(K,"removeLinks");var J=n(26114),X=n(41039),Q=n(32879),ee=n(61678),et=n(50912),en=Object.defineProperty,er=(e,t)=>en(e,"name",{value:t,configurable:!0}
14),ei="Popper",[ea,eo]=(0,h.b)(ei),[es,el]=ea(ei),ec=er(e=>{let{__scopePopper:t,children:n}=e,[r,a]=l.useState(null),[o,s]=l.useState(void 0);return(0,i.jsx)(es,{scope:t,anchor:r,onAnchorChange:a,placementState:o,setPlacementState:s,children:n})},"Popper"),eu=l.forwardRef(er(function(e,t){let{__scopePopper:n,virtualRef:r,...a}=e,o=el("PopperAnchor",n),s=l.useRef(null),c=o.onAnchorChange,u=l.useCallback(e=>{s.current=e,e&&c(e)},[c]),d=(0,f.e)(t,u),p=l.useRef(null);l.useEffect(()=>{if(!r)return;let e=p.current;p.current=r.current,e!==p.current&&c(p.current)});let h=o.placementState&&ey(o.placementState),m=h?.[0],y=h?.[1];return r?null:(0,i.jsx)(g.WV.div,{"data-radix-popper-side":m,"data-radix-popper-align":y,...a,ref:d})},"PopperAnchor")),ed="PopperContent",[ep,ef]=ea(ed),eh=l.forwardRef(er(function(e,t){let{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:o="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:b,...w}=e,_=el(ed,n),[x,E]=l.useState(null),S=(0,f.e)(t,E),[k,C]=l.useState(null),I=(0,et.t)(k),A=I?.width??0,T=I?.height??0,R="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},N=Array.isArray(d)?d:[d],O=N.length>0,P={padding:R,boundary:N.filter(em),altBoundary:O},{refs:D,floatingStyles:M,placement:$,isPositioned:j,middlewareData:L}=(0,X.YF)({strategy:"fixed",placement:r+("center"!==o?"-"+o:""),whileElementsMounted:er((...e)=>(0,Q.Me)(...e,{animationFrame:"always"===v}),"whileElementsMounted"),elements:{reference:_.anchor},middleware:[(0,X.cv)({mainAxis:a+T,alignmentAxis:s}),u&&(0,X.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?(0,X.dr)():void 0,...P}),u&&(0,X.RR)({...P}),(0,X.dp)({...P,apply:er(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty("--radix-popper-available-width",`${n}px`),o.setProperty("--radix-popper-available-height",`${r}px`),o.setProperty("--radix-popper-anchor-width",`${i}px`),o.setProperty("--radix-popper-anchor-height",`${a}px`)},"apply")}),k&&(0,X.x7)({element:k,padding:c}),eg({arrowWidth:A,arrowHeight:T}),m&&(0,X.Cp)({strategy:"referenceHidden",...P,boundary:O?P.boundary:void 0})]}),F=_.setPlacementState;(0,ee.b)(()=>(F($),()=>{F(void 0)}),[$,F]);let[B,U]=ey($),z=(0,y.W)(b);(0,ee.b)(()=>{j&&z?.()},[j,z]);let Z=L.arrow?.x,V=L.arrow?.y,q=L.arrow?.centerOffset!==0,[W,G]=l.useState();return(0,ee.b)(()=>{x&&G(window.getComputedStyle(x).zIndex)},[x]),(0,i.jsx)("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:j?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,i.jsx)(ep,{scope:n,placedSide:B,placedAlign:U,onArrowChange:C,arrowX:Z,arrowY:V,shouldHideArrow:q,children:(0,i.jsx)(g.WV.div,{"data-side":B,"data-align":U,...w,ref:S,style:{...w.style,animation:j?w.style?.animation:"none"}})})})},"PopperContent"));function em(e){return null!==e}er(em,"isNotNull");var eg=er(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,c]=ey(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(i.arrow?.x??0)+o/2,p=(i.arrow?.y??0)+s/2,f="",h="";return"bottom"===l?(f=a?u:`${d}px`,h=`${-s}px`):"top"===l?(f=a?u:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(f=`${-s}px`,h=a?u:`${p}px`):"left"===l&&(f=`${r.floating.width+s}px`,h=a?u:`${p}px`),{data:{x:f,y:h}}}}),"transformOrigin");function ey(e){let[t,n="center"]=e.split("-");return[t,n]}er(ey,"getSideAndAlignFromPlacement");var ev=Object.defineProperty,eb=l.forwardRef(ev(function(e,t){let{container:n,...r}=e,[a,o]=l.useState(!1);(0,ee.b)(()=>o(!0),[]);let s=n||a&&globalThis?.document?.body;return s?c.createPortal((0,i.jsx)(g.WV.div,{...r,ref:t}),s):null},"name",{value:"Portal",configurable:!0})),ew=n(616),e_=n(61828),ex=n(75051);function eE(e){let t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(0,Object.defineProperty)(eE,"name",{value:"usePrevious",configurable:!0});var eS=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ek=n(19800),eC=n(15767),eI=n(51963),eA=n(81679),eT=(0,n(10541)._)(),eR=function(){},eN=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:eR,onWheelCapture:eR,onTouchMoveCapture:eR}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,f=e.sideCar,h=e.noRelative,m=e.noIsolation,g=e.inert,y=e.allowPinchZoom,v=e.as,b=e.gapMode,w=(0,eC._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=(0,eA.q)([n,t]),x=(0,eC.pi)((0,eC.pi)({},w),i);return l.createElement(l.Fragment,null,d&&l.createElement(f,{sideCar:eT,removeScrollBar:u,shards:p,noRelative:h,noIsolation:m,inert:g,setCallbacks:a,allowPinchZoom:!!y,lockRef:n,gapMode:b}),o?l.cloneElement(l.Children.only(s),(0,eC.pi)((0,eC.pi)({},x),{ref:_})):l.createElement(void 0===v?"div":v,(0,eC.pi)({},x,{className:c,ref:_}),s))});eN.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eN.classNames={fullWidth:eI.zi,zeroRight:eI.pF};var eO=n(41461),eP=n(59885),eD=n(10632),eM=!1;if("undefined"!=typeof window)try{var e$=Object.defineProperty({},"passive",{get:function(){return eM=!0,!0}});window.addEventListener("test",e$,e$),window.removeEventListener("test",e$,e$)}catch(e){eM=!1}var ej=!!eM&&{passive:!1},eL=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},eF=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eB(e,r)){var i=eU(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eB=function(e,t){return"v"===e?eL(t,"overflowY"):eL(t,"overflowX")},eU=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ez=function(e,t,n,r,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*r,l=n.target,c=t.contains(l),u=!1,d=s>0,p=0,f=0;do{if(!l)break;var h=eU(e,l),m=h[0],g=h[1]-h[2]-o*m;(m||g)&&eB(e,l)&&(p+=g,f+=m);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(p)||!i&&s>p)?u=!0:!d&&(i&&1>Math.abs(f)||!i&&-s>f)&&(u=!0),u},eZ=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eV=function(e){return[e.deltaX,e.deltaY]},eq=function(e){return e&&"current"in e?e.current:e},eW=0,eG=[],eH=(0,eO.L)(eT,function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),i=l.useState(eW++)[0],a=l.useState(eD.Ws)[0],o=l.useRef(e);l.useEffect(function(){o.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,eC.ev)([e.lockRef.current],(e.shards||[]).map(eq),!0).filter(
14Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var i,a=eZ(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],c="deltaY"in e?e.deltaY:s[1]-a[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=window.getSelection(),f=p&&p.anchorNode;if(f&&(f===u||f.contains(u)))return!1;var h=eF(d,u);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=eF(d,u)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=i),!i)return!0;var m=r.current||i;return ez(m,t,e,"h"===m?l:c,!0)},[]),c=l.useCallback(function(e){if(eG.length&&eG[eG.length-1]===a){var n="deltaY"in e?eV(e):eZ(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(o.current.shards||[]).map(eq).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=l.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=l.useCallback(function(e){n.current=eZ(e),r.current=void 0},[]),p=l.useCallback(function(t){u(t.type,eV(t),t.target,s(t,e.lockRef.current))},[]),f=l.useCallback(function(t){u(t.type,eZ(t),t.target,s(t,e.lockRef.current))},[]);l.useEffect(function(){return eG.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",c,ej),document.addEventListener("touchmove",c,ej),document.addEventListener("touchstart",d,ej),function(){eG=eG.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,ej),document.removeEventListener("touchmove",c,ej),document.removeEventListener("touchstart",d,ej)}},[]);var h=e.removeScrollBar,m=e.inert;return l.createElement(l.Fragment,null,m?l.createElement(a,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?l.createElement(eP.jp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}),eY=l.forwardRef(function(e,t){return l.createElement(eN,(0,eC.pi)({},e,{ref:t,sideCar:eH}))});eY.classNames=eN.classNames;var eK=Object.defineProperty,eJ=(e,t)=>eK(e,"name",{value:t,configurable:!0}),eX=[" ","Enter","ArrowUp","ArrowDown"],eQ=[" ","Enter"],e0="Select",[e1,e2,e3]=(0,p.B)(e0),[e5,e4]=(0,h.b)(e0,[e3,eo]),e9=eo(),[e6,e7]=e5(e0),[e8,te]=e5(e0);function tt(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:s,defaultValue:c,onValueChange:u,dir:d,name:p,autoComplete:f,disabled:h,required:g,form:y,internal_do_not_use_render:v}=e,b=e9(t),[w,_]=l.useState(null),[x,E]=l.useState(null),[S,k]=l.useState(!1),C=(0,m.gm)(d),[I,A]=(0,ex.T)({prop:r,defaultProp:a??!1,onChange:o,caller:e0}),[T,R]=(0,ex.T)({prop:s,defaultProp:c,onChange:u,caller:e0}),N=l.useRef(null),O=l.useRef(T);l.useEffect(()=>{let e=y?w?.ownerDocument.getElementById(y):w?.form;if(e instanceof HTMLFormElement){let t=eJ(()=>R(O.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[y,w,R]);let P=!w||!!y||!!w.closest("form"),[D,M]=l.useState(new Set),$=(0,J.M)(),j=Array.from(D).map(e=>e.props.value).join(";"),L=l.useCallback(e=>{M(t=>new Set(t).add(e))},[]),F=l.useCallback(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[]),B={required:g,trigger:w,onTriggerChange:_,valueNode:x,onValueNodeChange:E,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:$,value:T,onValueChange:R,open:I,onOpenChange:A,dir:C,triggerPointerDownPosRef:N,disabled:h,name:p,autoComplete:f,form:y,nativeOptions:D,nativeSelectKey:j,isFormControl:P};return(0,i.jsx)(ec,{...b,children:(0,i.jsx)(e6,{scope:t,...B,children:(0,i.jsx)(e1.Provider,{scope:t,children:(0,i.jsx)(e8,{scope:t,onNativeOptionAdd:L,onNativeOptionRemove:F,children:tF(v)?v(B):n})})})})}eJ(tt,"SelectProvider");var tn=eJ(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,i.jsx)(tt,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,i.jsxs)(i.Fragment,{children:[n,e?(0,i.jsx)(tL,{__scopeSelect:t}):null]})})},"Select"),tr=l.forwardRef(eJ(function(e,t){let{__scopeSelect:n,disabled:r=!1,...a}=e,o=e9(n),s=e7("SelectTrigger",n),c=s.disabled||r,u=(0,f.e)(t,s.onTriggerChange),p=e2(n),h=l.useRef("touch"),[m,y,v]=tU(e=>{let t=p().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),r=tz(t,e,n);void 0!==r&&s.onValueChange(r.value)}),b=eJ(e=>{c||(s.onOpenChange(!0),v()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},"handleOpen");return(0,i.jsx)(eu,{asChild:!0,...o,children:(0,i.jsx)(g.WV.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":tB(s.value)?"":void 0,...a,ref:u,onClick:(0,d.Mj)(a.onClick,e=>
14{e.currentTarget.focus(),"mouse"!==h.current&&b(e)}),onPointerDown:(0,d.Mj)(a.onPointerDown,e=>{h.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(b(e),e.preventDefault())}),onKeyDown:(0,d.Mj)(a.onKeyDown,e=>{let t=""!==m.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||y(e.key),(!t||" "!==e.key)&&eX.includes(e.key)&&(b(),e.preventDefault())})})})},"SelectTrigger")),ti=l.forwardRef(eJ(function(e,t){let{__scopeSelect:n,className:r,style:a,children:o,placeholder:s="",...c}=e,u=e7("SelectValue",n),{onValueNodeHasChildrenChange:d}=u,p=void 0!==o,h=(0,f.e)(t,u.onValueNodeChange);(0,ee.b)(()=>{d(p)},[d,p]);let m=tB(u.value);return(0,i.jsx)(g.WV.span,{...c,asChild:!m&&c.asChild,ref:h,style:{pointerEvents:"none"},children:(0,i.jsx)(l.Fragment,{children:m?s:o},m?"placeholder":"value")})},"SelectValue")),ta=l.forwardRef(eJ(function(e,t){let{__scopeSelect:n,children:r,...a}=e;return(0,i.jsx)(g.WV.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})},"SelectIcon")),[to,ts]=e5("SelectPortal",{forceMount:void 0}),tl=eJ(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,i.jsx)(to,{scope:e.__scopeSelect,forceMount:n,children:(0,i.jsx)(eb,{asChild:!0,...r})})},"SelectPortal"),tc="SelectContent",tu=l.forwardRef(eJ(function(e,t){let n=ts(tc,e.__scopeSelect),{forceMount:r=n.forceMount,...a}=e,o=e7(tc,e.__scopeSelect),[s,c]=l.useState();return(0,ee.b)(()=>{c(new DocumentFragment)},[]),(0,i.jsx)(ew.z,{present:r||o.open,children:({present:e})=>e?(0,i.jsx)(tm,{...a,ref:t}):(0,i.jsx)(td,{...a,fragment:s})})},"SelectContent")),td=l.forwardRef(eJ(function(e,t){let{__scopeSelect:n,children:r,fragment:a}=e;return a?c.createPortal((0,i.jsx)(tp,{scope:n,children:(0,i.jsx)(e1.Slot,{scope:n,children:(0,i.jsx)("div",{ref:t,children:r})})}),a):null},"SelectContentFragment")),[tp,tf]=e5(tc),th=(0,e_.Z8)("SelectContent.RemoveScroll"),tm=l.forwardRef(eJ(function(e,t){let{__scopeSelect:n}=e,{position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:s,side:c,sideOffset:u,align:p,alignOffset:h,arrowPadding:m,collisionBoundary:g,collisionPadding:y,sticky:v,hideWhenDetached:b,avoidCollisions:w,..._}=e,E=e7(tc,n),[S,k]=l.useState(null),[C,I]=l.useState(null),A=(0,f.e)(t,k),[T,R]=l.useState(null),[N,P]=l.useState(null),D=e2(n),[M,$]=l.useState(!1),j=l.useRef(!1);l.useEffect(()=>{if(S)return(0,ek.Ry)(S)},[S]),O();let L=l.useCallback(e=>{let[t,...n]=D().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:"nearest"}),n===t&&C&&(C.scrollTop=0),n===r&&C&&(C.scrollTop=C.scrollHeight),n?.focus(),document.activeElement!==i))return},[D,C]),B=l.useCallback(()=>L([T,S]),[L,T,S]);l.useEffect(()=>{M&&B()},[M,B]);let{onOpenChange:U,triggerPointerDownPosRef:z}=E;l.useEffect(()=>{if(S){let e={x:0,y:0},t=eJ(t=>{e={x:Math.abs(Math.round(t.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(z.current?.y??0))}},"handlePointerMove"),n=eJ(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(S)||U(!1),document.removeEventListener("pointermove",t),z.current=null},"handlePointerUp");return null!==z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[S,U,z]),l.useEffect(()=>{let e=eJ(()=>U(!1),"close");return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[U]);let[Z,V]=tU(e=>{let t=D().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=tz(t,e,n);r&&setTimeout(()=>r.ref.current?.focus())}),q=l.useCallback((e,t,n)=>{let r=!j.current&&!n;(void 0!==E.value&&E.value===t||r)&&(R(e),r&&(j.current=!0))},[E.value]),W=l.useCallback(()=>S?.focus(),[S]),G=l.useCallback((e,t,n)=>{let r=!j.current&&!n;(void 0!==E.value&&E.value===t||r)&&P(e)},[E.value]),H="popper"===r?ty:tg;return(0,i.jsx)(tp,{scope:n,content:S,viewport:C,onViewportChange:I,itemRefCallback:q,selectedItem:T,onItemLeave:W,itemTextRefCallback:G,focusSelectedItem:B,selectedItemText:N,position:r,isPositioned:M,searchRef:Z,children:(0,i.jsx)(eY,{as:th,allowPinchZoom:!0,children:(0,i.jsx)(F,{asChild:!0,trapped:E.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,d.Mj)(a,e=>{E.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,i.jsx)(x,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:(0,i.jsx)(H,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:e=>e.preventDefault(),..._,...H===ty?{side:c,sideOffset:u,align:p,alignOffset:h,arrowPadding:m,collisionBoundary:g,collisionPadding:y,sticky:v,hideWhenDetached:b,avoidCollisions:w}:{},onPlaced:()=>$(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:(0,d.Mj)(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
14if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||V(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=D().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>L(t)),e.preventDefault()}})})})})})})},"SelectContentImpl")),tg=l.forwardRef(eJ(function(e,t){let{__scopeSelect:n,onPlaced:r,...a}=e,o=e7(tc,n),s=tf(tc,n),[c,d]=l.useState(null),[p,h]=l.useState(null),m=(0,f.e)(t,h),y=e2(n),v=l.useRef(!1),b=l.useRef(!0),{viewport:w,selectedItem:_,selectedItemText:x,focusSelectedItem:E}=s,S=l.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&p&&w&&_&&x){let e=o.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),i=x.getBoundingClientRect();if("rtl"!==o.dir){let r=i.left-t.left,a=n.left-r,o=e.left-a,s=e.width+o,l=Math.max(s,t.width),d=u(a,[10,Math.max(10,window.innerWidth-10-l)]);c.style.minWidth=s+"px",c.style.left=d+"px"}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,s=e.width+o,l=Math.max(s,t.width),d=u(a,[10,Math.max(10,window.innerWidth-10-l)]);c.style.minWidth=s+"px",c.style.right=d+"px"}let a=y(),s=window.innerHeight-20,l=w.scrollHeight,d=window.getComputedStyle(p),f=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),m=parseInt(d.borderBottomWidth,10),g=f+h+l+parseInt(d.paddingBottom,10)+m,b=Math.min(5*_.offsetHeight,g),E=window.getComputedStyle(w),S=parseInt(E.paddingTop,10),k=parseInt(E.paddingBottom,10),C=e.top+e.height/2-10,I=_.offsetHeight/2,A=f+h+(_.offsetTop+I);if(A<=C){let e=a.length>0&&_===a[a.length-1].ref.current;c.style.bottom="0px";let t=p.clientHeight-w.offsetTop-w.offsetHeight;c.style.height=A+Math.max(s-C,I+(e?k:0)+t+m)+"px"}else{let e=a.length>0&&_===a[0].ref.current;c.style.top="0px";let t=Math.max(C,f+w.offsetTop+(e?S:0)+I);c.style.height=t+(g-A)+"px",w.scrollTop=A-C+w.offsetTop}c.style.margin="10px 0",c.style.minHeight=b+"px",c.style.maxHeight=s+"px",r?.(),requestAnimationFrame(()=>v.current=!0)}},[y,o.trigger,o.valueNode,c,p,w,_,x,o.dir,r]);(0,ee.b)(()=>S(),[S]);let[k,C]=l.useState();(0,ee.b)(()=>{p&&C(window.getComputedStyle(p).zIndex)},[p]);let I=l.useCallback(e=>{e&&!0===b.current&&(S(),E?.(),b.current=!1)},[S,E]);return(0,i.jsx)(tv,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:I,children:(0,i.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:(0,i.jsx)(g.WV.div,{...a,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})},"SelectItemAlignedPosition")),ty=l.forwardRef(eJ(function(e,t){let{__scopeSelect:n,align:r="start",collisionPadding:a=10,...o}=e,s=e9(n);return(0,i.jsx)(eh,{...s,...o,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[tv,tb]=e5(tc,{}),tw="SelectViewport",t_=l.forwardRef(eJ(function(e,t){let{__scopeSelect:n,nonce:r,...a}=e,o=tf(tw,n),s=tb(tw,n),c=(0,f.e)(t,o.onViewportChange),u=l.useRef(0);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,i.jsx)(e1.Slot,{scope:n,children:(0,i.jsx)(g.WV.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:(0,d.Mj)(a.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,i=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(i<r){let a=i+e,o=Math.min(r,a),s=a-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop})})})]})}
14,"SelectViewport")),[tx,tE]=e5("SelectGroup"),tS=l.forwardRef(eJ(function(e,t){let{__scopeSelect:n,...r}=e,a=tE("SelectLabel",n);return(0,i.jsx)(g.WV.div,{id:a.id,...r,ref:t})},"SelectLabel")),tk="SelectItem",[tC,tI]=e5(tk),tA=l.forwardRef(eJ(function(e,t){let{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...s}=e,c=e7(tk,n),u=tf(tk,n),p=c.value===r,[h,m]=l.useState(o??""),[v,b]=l.useState(!1),w=(0,y.W)(e=>u.itemRefCallback?.(e,r,a)),_=(0,f.e)(t,w),x=(0,J.M)(),E=l.useRef("touch"),S=eJ(()=>{a||(c.onValueChange(r),c.onOpenChange(!1))},"handleSelect");return(0,i.jsx)(tC,{scope:n,value:r,disabled:a,textId:x,isSelected:p,onItemTextChange:l.useCallback(e=>{m(t=>t||(e?.textContent??"").trim())},[]),children:(0,i.jsx)(e1.ItemSlot,{scope:n,value:r,disabled:a,textValue:h,children:(0,i.jsx)(g.WV.div,{role:"option","aria-labelledby":x,"data-highlighted":v?"":void 0,"aria-selected":p&&v,"data-state":p?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...s,ref:_,onFocus:(0,d.Mj)(s.onFocus,()=>b(!0)),onBlur:(0,d.Mj)(s.onBlur,()=>b(!1)),onClick:(0,d.Mj)(s.onClick,()=>{"mouse"!==E.current&&S()}),onPointerUp:(0,d.Mj)(s.onPointerUp,()=>{"mouse"===E.current&&S()}),onPointerDown:(0,d.Mj)(s.onPointerDown,e=>{E.current=e.pointerType}),onPointerMove:(0,d.Mj)(s.onPointerMove,e=>{E.current=e.pointerType,a?u.onItemLeave?.():"mouse"===E.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,d.Mj)(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:(0,d.Mj)(s.onKeyDown,e=>{a||e.target!==e.currentTarget||u.searchRef?.current!==""&&" "===e.key||(eQ.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})},"SelectItem")),tT="SelectItemText",tR=l.forwardRef(eJ(function(e,t){let{__scopeSelect:n,className:r,style:a,...o}=e,s=e7(tT,n),u=tf(tT,n),d=tI(tT,n),p=te(tT,n),[h,m]=l.useState(null),v=(0,y.W)(e=>u.itemTextRefCallback?.(e,d.value,d.disabled)),b=(0,f.e)(t,m,d.onItemTextChange,v),w=h?.textContent,_=l.useMemo(()=>(0,i.jsx)("option",{value:d.value,disabled:d.disabled,children:w},d.value),[d.disabled,d.value,w]),{onNativeOptionAdd:x,onNativeOptionRemove:E}=p;return(0,ee.b)(()=>(x(_),()=>E(_)),[x,E,_]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g.WV.span,{id:d.textId,...o,ref:b}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!tB(s.value)?c.createPortal(o.children,s.valueNode):null]})},"SelectItemText")),tN=l.forwardRef(eJ(function(e,t){let{__scopeSelect:n,...r}=e;return tI("SelectItemIndicator",n).isSelected?(0,i.jsx)(g.WV.span,{"aria-hidden":!0,...r,ref:t}):null},"SelectItemIndicator")),tO="SelectScrollUpButton",tP=l.forwardRef(eJ(function(e,t){let n=tf(tO,e.__scopeSelect),r=tb(tO,e.__scopeSelect),[a,o]=l.useState(!1),s=(0,f.e)(t,r.onScrollButtonChange);return(0,ee.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){o(t.scrollTop>0)};eJ(e,"handleScroll");let t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),a?(0,i.jsx)(t$,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null},"SelectScrollUpButton")),tD="SelectScrollDownButton",tM=l.forwardRef(eJ(function(e,t){let n=tf(tD,e.__scopeSelect),r=tb(tD,e.__scopeSelect),[a,o]=l.useState(!1),s=(0,f.e)(t,r.onScrollButtonChange);return(0,ee.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;o(Math.ceil(t.scrollTop)<e)};eJ(e,"handleScroll");let t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),a?(0,i.jsx)(t$,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null},"SelectScrollDownButton")),t$=l.forwardRef(eJ(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...a}=e,o=tf("SelectScrollButton",n),s=l.useRef(null),c=e2(n),u=l.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>u(),[u]),(0,ee.b)(()=>{let e=c().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[c]),(0,i.jsx)(g.WV.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:(0,d.Mj)(a.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(r,50))}),onPointerMove:(0,d.Mj)(a.onPointerMove,()=>{o.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(r,50))}),onPointerLeave:(0,d.Mj)(a.onPointerLeave,()=>{u()})})},"SelectScrollButtonImpl")),tj=l.forwardRef(eJ(function(e,t){let{__scopeSelect:n,...r}=e;return(0,i.jsx)(g.WV.div,{"aria-hidden":!0,...r,ref:t})},"SelectSeparator")),tL=l.forwardRef(eJ(function({__scopeSelect:e,...t},n){let r=e7("SelectBubbleInput",e),{value:a,onValueChange:o,required:s,disabled:c,name:u,autoComplete:d,form:p}=r,{nativeOptions:h,nativeSelectKey:m}=r,y=l.useRef(null),v=(0,f.e)(n,y),b=a??"",w=eE(b),_=Array.from(h).some(e=>(e.props.value??"")==="");return l.useEffect(()=>{let e=y.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(w!==b&&t){let n=new Event("change",{bubbles:!0});t.call(e,b),e.dispatchEvent(n)}},[w,b]),(0,i.jsxs)(g.WV.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:u,autoComplete:d,disabled:c,form:p,onChange:e=>o(e.target.value),...t,style:{...eS,...t.style},ref:v,defaultValue:b,children:[tB(a)&&!_?(0,i.jsx)("option",{value:""}):null,Array.from(h)]},m)},"SelectBubbleInput"));function tF(e){return"function"==typeof e}function tB(e){return""===e||void 0===e}function tU(e){let t=(0,y.W)(e),n=l.useRef(""),r=l.useRef(0),i=l.useCallback(e=>{t(n.current+e)},[t]),a=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function tz(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=tZ(e,Math.max(i,0));1===r.length&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o!==n?o:void 0}function tZ(e,t){return e.map((n,r)=>e[(t+r)%e.length])}eJ(tF,"isFunction"),eJ(tB,"shouldShowPlaceholder"),eJ(tU,"useTypeaheadSearch"),eJ(tz,"findNextItem"),eJ(tZ,"wrapArray");var tV=n(28301);let tq=(0,n(69211).Z)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var tW=n(69214),tG=n(93595);let tH=(0,l.forwardRef)(({className:e,children:t,...n},r)=>(0,i.jsxs)(tr,{ref:r,className:(0,tG.cn)("flex h-14 w-full items-center justify-between gap-2 rounded-md border border-grey-light bg-white px-4 text-left outline-none hover:cursor-pointer hover:border-primary focus:border-primary data-[placeholder]:text-secondary-light disabled:pointer-events-none disabled:opacity-25 [&>span]:truncate",e),...n,children:[t,(0,i.jsx)(ta,{asChild:!0,children:(0,i.jsx)(tV.Z,{className:"h-4 w-4 shrink-0 text-secondary"})})]}));tH.displayName=tr.displayName;let tY=(0,l.forwardRef)(({className:e,...t},n)=>(0,i.jsx)(tP,{ref:n,className:(0,tG.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,i.jsx)(tq,{className:"h-4 w-4"})}));tY.displayName=tP.displayName;let tK=(0,l.forwardRef)(({className:e,...t},n)=>(0,i.jsx)(tM,{ref:n,className:(0,tG.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,i.jsx)(tV.Z,{className:"h-4 w-4"})}));tK.displayName=tM.displayName;let tJ=(0,l.forwardRef)(({className:e,children:t,position:n="popper",...r},a)=>(0,i.jsx)(tl,{children:(0,i.jsxs)(tu,{ref:a,position:n,className:(0,tG.cn)("relative z-50 max-h-[--radix-select-content-available-height] min-w-[--radix-select-trigger-width] overflow-y-auto rounded-md border border-grey-light bg-white font-inter shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
14de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",e),...r,children:[(0,i.jsx)(tY,{}),(0,i.jsx)(t_,{className:"p-1",children:t}),(0,i.jsx)(tK,{})]})}));tJ.displayName=tu.displayName,(0,l.forwardRef)(({className:e,...t},n)=>(0,i.jsx)(tS,{ref:n,className:(0,tG.cn)("py-1.5 pl-4 pr-8 text-sm font-medium text-secondary-light",e),...t})).displayName=tS.displayName;let tX=(0,l.forwardRef)(({className:e,children:t,...n},r)=>(0,i.jsxs)(tA,{ref:r,className:(0,tG.cn)("relative flex select-none items-center rounded-sm py-2 pl-4 pr-8 outline-none hover:cursor-pointer focus:bg-primary-light/10 data-[disabled]:pointer-events-none data-[disabled]:opacity-25",e),...n,children:[(0,i.jsx)("span",{className:"absolute right-2 flex h-4 w-4 items-center justify-center",children:(0,i.jsx)(tN,{children:(0,i.jsx)(tW.Z,{className:"h-4 w-4 text-primary"})})}),(0,i.jsx)(tR,{children:t})]}));tX.displayName=tA.displayName,(0,l.forwardRef)(({className:e,...t},n)=>(0,i.jsx)(tj,{ref:n,className:(0,tG.cn)("-mx-1 my-1 h-px bg-grey-light",e),...t})).displayName=tj.displayName;var tQ=function({id:e,control:t,placeholder:n,error:r,errorClassName:l,outerClassName:c,className:u,label:d,labelTip:p,hideStatusBar:f=!1,disabled:h,children:m}){return(0,i.jsxs)("div",{className:(0,tG.cn)("flex flex-col gap-1 mb-2",c,h&&"pointer-events-none opacity-25"),children:[d&&(0,i.jsx)(o.Z,{htmlFor:e,label:d,tip:p}),(0,i.jsx)(a.Qr,{control:t,name:e,render:({field:t})=>(0,i.jsxs)(tn,{value:t.value??"",onValueChange:t.onChange,disabled:h,children:[(0,i.jsx)(tH,{ref:t.ref,id:e,"aria-label":d??n,className:(0,tG.cn)(u,r&&"border-alert-dark"),onBlur:t.onBlur,children:(0,i.jsx)(ti,{placeholder:n})}),(0,i.jsx)(tJ,{children:m})]})}),!f&&(0,i.jsx)(s.Z,{error:r,errorClassName:l})]})}},59433:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(52676),i=n(46384),a=n(75271),o=n(25092),s=n(18828),l=n(65713),c=n(89839),u=n(74393),d=n(93595);function p({variant:e="dialog"}){let[t,n]=(0,a.useState)(null),p=(0,a.useCallback)(async()=>{n((await o.Z.passkey.listUserPasskeys()).data??[])},[]),f=(0,a.useCallback)(async()=>{let e=await o.Z.passkey.addPasskey({name:"Stitch Express"});if(e?.error){(0,c.Z)("Failed to setup passkey. Please try again.","error");return}p()},[p]),h=(0,a.useCallback)(async e=>{let t=await o.Z.passkey.deletePasskey({id:e});if(t?.error){(0,c.Z)("Failed to delete passkey. Please try again.","error");return}p()},[p]);return((0,a.useEffect)(()=>{p()},[p]),"inline"===e)?(0,r.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[t&&!t.length&&(0,r.jsxs)("div",{className:"flex items-center justify-between rounded-md border border-dashed border-neutral-titanium px-4 py-3 text-sm text-neutral-steel",children:["No passkeys set up yet.",(0,r.jsx)("button",{type:"button",className:l.RF,onClick:f,children:"Add passkey"})]}),t?.map(e=>r.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-md bg-neutral-platinum px-4 py-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium text-neutral-carbon",children:e.name}),r.jsxs("p",{className:"text-xs text-neutral-steel",children:["Created:"," ",e.createdAt&&u.p6(e.createdAt,u.t6.LONG_TIME_SECOND)]})]}),r.jsx("button",{type:"button","aria-label":"Remove passkey",className:d.cn(l.RF,"text-status-error"),onClick:()=>void h(e.id),children:"Remove"})]},e.id))]}):(0,r.jsxs)("div",{children:[t&&!t.length&&(0,r.jsx)(s.Z,{size:"xsmall",variant:"secondary",onClick:f,children:"Setup"}),t?.map(e=>r.jsxs("div",{className:"flex justify-between text-right gap-2",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-semi",children:e.name}),r.jsxs("p",{className:"text-xs text-grey",children:["Created:"," ",e.createdAt&&u.p6(e.createdAt,u.t6.LONG_TIME_SECOND)]})]}),r.jsx(s.Z,{variant:"alert",size:"small",onClick:()=>h(e.id),children:r.jsx(i.Z,{width:20,height:20})})]},e.id))]})}},68763:function(e,t,n){"use strict";n.d(t,{L:function(){return g},Z:function(){return y}});var r=n(52676),i=n(50416),a=n(75271),o=n(25282),s=n(25092),l=n(49777),c=n(18828),u=n(32687),d=n(99614),p=n(65713),f=n(89839),h=n(46120);function m({onSuccess:e,onCancel:t}){let[n,u]=(0,a.useState)(!1),{control:d,handleSubmit:m,register:g,formState:y}=(0,o.cI)({resolver:(0,i.F)(h.tQ),mode:"onSubmit",delayError:1500,defaultValues:{oldPassword:"",newPassword:"",newPasswordMatch:""}}),{errors:v}=y,b=(0,o.qo)({control:d}),w=(0,a.useCallback)(async t=>{u(!0);try{if((await s.Z.changePassword({currentPassword:t.oldPassword,newPassword:t.newPassword})).error){(0,f.Z)("Password not updated","error");return}(0,f.Z)("Password updated.","success"),e()}catch{(0,f.Z)("Password not updated","error")}finally{u(!1)}},[e]);return(0,r.jsxs)("form",{autoComplete:"off",className:"flex w-full flex-col gap-3",method:"put",onSubmit:m(w),children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-x-3 sm:grid-cols-2",children:[(0,r.jsx)(l.Z,{placeholder:"Old password",id:"oldPassword",name:"oldPassword",register:g,error:v.oldPassword,testID:"oldPassword"}),(0,r.jsx)(l.Z,{placeholder:"New password",testID:"newPassword",id:"newPassword",register:g,value:b.newPassword,className:"rounded-xs text-sm",error:v.newPassword}),(0,r.jsx)(l.Z,{placeholder:"Confirm new password",testID:"newPasswordMatch",id:"newPasswordMatch",register:g,value:b.newPasswordMatch,className:"rounded-xs text-sm",error:v.newPasswordMatch})]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,r.jsx)(c.Z,{type:"submit",loading:n,className:p.UO,children:"Update"}),t&&(0,r.jsx)(c.Z,{type:"button",variant:"secondary",className:p.RF,onClick:t,children:"Cancel"})]})]})}function g(){let[e,t]=(0,a.useState)(!1);return(0,r.jsx)(d.ZR,{label:"Password",action:!e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"font-mono text-sm tracking-widest text-neutral-steel",children:"••••••••••••"}),(0,r.jsx)("button",{type:"button",className:p.RF,onClick:()=>t(!0),children:"Change"})]}),children:e&&(0,r.jsx)("div",{className:"flex w-full flex-col gap-3 rounded-md bg-neutral-platinum p-4",children:(0,r.jsx)(m,{onSuccess:()=>t(!1),onCancel:()=>t(!1)})})})}function y(){let[e,t]=(0,a.useState)(!1);return(0,r.jsxs)(u.Vq,{open:e,onOpenChange:t,children:[(0,r.jsx)(u.hg,{asChild:!0,children:(0,r.jsx)(c.Z,{variant:"secondary",size:"xsmall",children:"Change"})}),(0,r.jsxs)(u.cZ,{className:"w-full h-auto",children:[(0,r.jsx)(u.fK,{children:(0,r.jsx)("h2",{className:"text-center font-semi text-xl",children:"Change/Update your password"})}),(0,r.jsx)(m,{onSuccess:()=>t(!1)})]})]})}},99614:function(e,t,n){"use strict";n.d(t,{yH:function(){return u},ZR:function(){return c},zj:function(){return l}});var r=n(52676),i=n(71659),a=n(75271);let o=a.forwardRef(function({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 19.5 15-15m0 0H8.25m11.25 0v11.25"}))});var s=n(93595);
14function l({id:e,title:t,description:n,action:i,children:a,className:o,contentClassName:l}){return(0,r.jsxs)("section",{id:e,className:(0,s.cn)("rounded-md border border-neutral-silver bg-white p-6",o),children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("h2",{className:"text-base font-semi text-neutral-carbon",children:t}),n&&(0,r.jsx)("p",{className:"text-sm text-neutral-steel",children:n})]}),i]}),(0,r.jsx)("div",{className:(0,s.cn)("mt-4 flex flex-col divide-y divide-neutral-platinum",l),children:a})]})}function c({label:e,value:t,mono:n,locked:a,action:o,children:l,className:c}){return(0,r.jsxs)("div",{className:(0,s.cn)("flex flex-col gap-3 py-4 first:pt-0 last:pb-0",c),children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,r.jsx)("span",{className:"text-sm text-neutral-steel",children:e}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[void 0!==t&&(0,r.jsx)("span",{className:(0,s.cn)("text-sm text-neutral-carbon",n&&"font-mono"),children:t}),a&&(0,r.jsx)(i.Z,{"aria-label":"Locked",className:"h-4 w-4 text-neutral-titanium"}),o]})]}),l]})}function u({label:e,href:t}){return(0,r.jsxs)("a",{href:t,target:"_blank",rel:"noreferrer",className:"-mx-3 flex items-center justify-between rounded-md px-3 py-4 text-sm text-neutral-carbon transition-colors duration-300 hover:bg-neutral-platinum",children:[e,(0,r.jsx)(o,{"aria-hidden":!0,className:"size-4 shrink-0"})]})}},64941:function(e,t,n){"use strict";var r=n(52676);n(75271);var i=n(73764);n(42488);var a=n(93595);t.Z=function({className:e,...t}){return(0,r.jsx)(i.Z,{className:(0,a.cn)("w-full",e),borderRadius:"100px",...t})}},23775:function(e,t,n){"use strict";n.d(t,{Z:function(){return r.Z}});var r=n(64941)},65713:function(e,t,n){"use strict";n.d(t,{RF:function(){return a},UO:function(){return o},x4:function(){return i}});var r=n(93595);let i="h-10 rounded-full border border-neutral-titanium bg-white text-sm text-neutral-carbon",a=(0,r.cn)(i,"flex items-center gap-2 whitespace-nowrap px-4 transition-colors hover:bg-neutral-platinum"),o="rounded-full border bg-neutral-carbon border-neutral-carbon px-5 py-2.5 text-sm hover:bg-neutral-ink hover:border-neutral-ink"},83671:function(e,t,n){"use strict";var r=n(52676),i=n(1969),a=n(93595);let o=e=>e?"border-alert-dark":"";function s({id:e,register:t,outerClassName:n,className:s,errorClassName:l,hintLabel:c,error:u,hideStatusBar:d,...p}){return(0,r.jsxs)("div",{className:(0,a.cn)("flex flex-col gap-1 mb-2",n),children:[(0,r.jsx)("textarea",{className:(0,a.cn)("flex min-h-[60px] w-full rounded-sm border border-grey-light focus:border-primary hover:border-primary bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none  focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s,o(!!u)),...t(e),...p}),!d&&(0,r.jsx)(i.Z,{error:u,errorClassName:l,hintLabel:c})]})}s.displayName="Textarea",t.Z=s},89839:function(e,t,n){"use strict";n.d(t,{Z:function(){return m},S:function(){return p}});var r=n(52676),i=n(94710),a=n(69211);let o=(0,a.Z)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var s=n(92330);let l=(0,a.Z)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var c=n(16854),u=n(41654),d=n(93595);let p=(0,u.vU)({enter:"toast-drop-in",exit:"toast-fade-out",collapseDuration:160}),f={info:{glyph:i.Z,tile:"bg-stitch-express-violet-50",glyphColour:"text-primary",role:"status"},success:{glyph:o,tile:"bg-stitch-express-green-50",glyphColour:"text-success-dark",role:"status"},warning:{glyph:s.Z,tile:"bg-stitch-express-orange-100",glyphColour:"text-warning-dark",role:"alert"},error:{glyph:l,tile:"bg-stitch-express-red-50",glyphColour:"text-alert-dark",role:"alert"}};function h({closeToast:e,copy:t,variant:n,action:i,icon:a}){let{glyph:o,tile:s,glyphColour:l}=f[n];return(0,r.jsxs)("div",{className:"flex w-full items-center gap-3",children:[(0,r.jsx)("span",{className:(0,d.cn)("flex h-8 w-8 shrink-0 items-center justify-center rounded-[8px]",s),children:(0,r.jsx)(a??o,{className:(0,d.cn)("h-5 w-5",l)})}),(0,r.jsx)("span",{className:"flex-1 text-sm font-medium leading-snug text-secondary",children:t}),i&&(0,r.jsx)("button",{type:"button",onClick:()=>{i.onClick(),e()},className:"shrink-0 px-2 py-1.5 text-sm font-semi text-primary hover:text-stitch-express-violet-700",children:i.label}),(0,r.jsx)("button",{type:"button","aria-label":"Dismiss notification",onClick:e,className:"flex shrink-0 text-grey hover:text-secondary",children:(0,r.jsx)(c.Z,{className:"h-5 w-5"})})]})}
14var m=(e,t,n)=>{let{action:i,icon:a,...o}=n??{};return(0,u.Am)(n=>(0,r.jsx)(h,{...n,copy:e,variant:t,action:i,icon:a}),{type:t,role:f[t].role,icon:!1,hideProgressBar:!0,...o})}},75366:function(e,t,n){"use strict";var r=n(52676),i=n(71335),a=n(32879),o=n(75271),s=n(3587),l=n.n(s),c=n(93595);t.Z=({children:e,text:t,placement:n="top",className:s,textClassName:u})=>{let[d,p]=(0,o.useState)(!1),{x:f,y:h,reference:m,floating:g,strategy:y,context:v}=(0,i.YF)({placement:n,open:d,onOpenChange:p,middleware:[(0,a.cv)(5),(0,a.RR)(),(0,a.uY)({padding:8})],whileElementsMounted:a.Me}),{getFloatingProps:b}=(0,i.NI)([(0,i.XI)(v,{restMs:150,delay:{open:500,close:100}}),(0,i.KK)(v),(0,i.qs)(v,{role:"tooltip"}),(0,i.bQ)(v)]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:s,ref:m,children:e}),d&&(0,r.jsx)(i.ll,{children:(0,r.jsx)("div",{...b({ref:g,className:(0,c.cn)(l().className,"z-50 items-center bg-white border border-grey-light text-secondary px-4 py-2 rounded-xl top-full md:whitespace-nowrap shadow-lg",u),style:{position:y,top:h??0,left:f??0}}),children:t})})]})}},43741:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(52676),i=n(18828);function a(){if("function"==typeof window.zE){window.zE("webWidget","open");return}window.location.href="mailto:[email protected]"}function o({variant:e,size:t,className:n,label:o="Talk to support"}){return(0,r.jsx)(i.Z,{variant:e,size:t,className:n,onClick:a,children:o})}},95253:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(52676),i=n(75271);function a({children:e,card:t}){let n=(0,i.useRef)(null),a=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=n.current;return e?.setAttribute("inert",""),a.current?.focus(),()=>{e?.removeAttribute("inert")}},[]),(0,r.jsxs)("div",{className:"relative flex flex-col flex-1",children:[(0,r.jsx)("div",{ref:n,"aria-hidden":"true",className:"pointer-events-none select-none opacity-50 blur-[3.5px] [mask-image:linear-gradient(to_bottom,black_30%,transparent_95%)]",children:e}),(0,r.jsx)("div",{className:"absolute inset-x-0 top-0 z-40 flex justify-center px-5 pt-16 md:pt-28",children:(0,r.jsx)("div",{ref:a,role:"dialog",tabIndex:-1,className:"h-fit w-full max-w-[620px] rounded-xl border bg-white px-6 py-6 text-neutral-900 shadow-2xl outline-none md:px-8 md:py-7",children:t})})]})}},2110:function(e,t,n){"use strict";n.d(t,{G5:function(){return l},IG:function(){return o}});var r=n(59369),i=n(51104);let a={title:"Verify your business to unlock your dashboard",body:"Verify your business to start accepting payments and unlock the rest of your dashboard."},o={title:"We cannot pay you out yet",body:"We are still waiting on your verification documents. Send us a recent bank account confirmation letter to unlock payouts."},s={"/sales":{title:"Verify your business to unlock your sales",body:"Your sales will land here the moment you go live. Verification takes about ten minutes and we review most submissions within 1 to 2 business days."},"/connections":{title:"Verify your business to connect your store",body:"Shopify, WooCommerce and Xero connections go live with your account. Finish verification and they'll be ready to switch on."},"/transaction-history":{title:"Verify your business to unlock your transaction history",body:"Payouts, fees and refunds all show up here with a running balance. Verification is the last thing standing between you and your first transaction."},"/withdrawals":{title:"Verify your business to withdraw money",body:"Withdrawals go to an account in your business's name. Add it during verification and you can withdraw the day your first payment settles."},"/payment-experience":{title:"Verify your business to set up your payment experience",body:"Payment methods, branding and your payment link all go live with your account. Finish verification and you can set them up before your first payment."},"/terminals":{title:"Verify your business to order a card machine",body:"We ship terminals to verified businesses only. Get verified today and your device could be trading by the end of the week."},"/stores":{title:"Verify your business to add your stores",body:"Stores let you split reporting by location and assign devices. They're waiting on the same verification your payments are."},"/statements":{title:"Verify your business to receive statements",body:"We generate a statement for every month you trade. Nothing to show yet — verify your business and the first one arrives next month."}}
14;function l({kycbStatus:e,hasLiveClient:t},n=""){switch(e){case i.KycbStatus.AWAITING_REVIEW:return{title:r.X7[i.KycbStatus.AWAITING_REVIEW],body:r.Pv[i.KycbStatus.AWAITING_REVIEW]??"",action:null};case i.KycbStatus.FAILED:return{title:r.X7[i.KycbStatus.FAILED],body:r.Pv[i.KycbStatus.FAILED]??"",action:"support"};case i.KycbStatus.PASSED:if(t)return{title:r.X7[i.KycbStatus.PASSED],body:"Receive digital payments by creating payment links, or take cards in person with a Stitch device.",action:"create-payment-link"};return{title:r.X7[i.KycbStatus.PASSED],body:"We're finishing setting up your account. Payments and payouts switch on shortly, and we'll email you the moment you're live.",action:null};case i.KycbStatus.PENDING:return{...function(e){let t=Object.entries(s).find(([t])=>e===t||e.startsWith(`${t}/`));return t?.[1]??a}(n),action:"get-verified"};default:return e}}},59318:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});var r=n(44196);let i=r.Ry({address1:r.Z_().max(255),address2:r.Z_().max(50).nullish(),suburb:r.Z_().max(100).nullish(),city:r.Z_().max(100),provinceCode:r.Km(["EC","FS","GP","KZN","LP","MP","NC","NW","WC"]),countryCode:r.i0("ZA").default("ZA"),postalCode:r.Z_().regex(/^\d{4}$/,"Must be a 4-digit SA postal code")})},59369:function(e,t,n){"use strict";n.d(t,{z1:function(){return U},ZU:function(){return z},TV:function(){return Z},nh:function(){return I},e2:function(){return q},SM:function(){return W},kX:function(){return b},Gn:function(){return p},OU:function(){return c},hW:function(){return h},Pv:function(){return X},X7:function(){return Q},Ul:function(){return m},y0:function(){return y},fB:function(){return S},UY:function(){return E},wF:function(){return O},nW:function(){return C},qX:function(){return A},CG:function(){return R},RX:function(){return N},ro:function(){return $},zg:function(){return P},$2:function(){return D},l1:function(){return k},fh:function(){return G},Y3:function(){return T},MV:function(){return u},Tl:function(){return K},g3:function(){return F},MZ:function(){return B},Zw:function(){return d},_e:function(){return f},t$:function(){return w},i3:function(){return _},ap:function(){return j},Uc:function(){return x},WH:function(){return v},JT:function(){return Y},bS:function(){return L},Fu:function(){return J},wY:function(){return V}});var r=n(30695);n(59318);var i=n(12491),a=n(51104),o=n(57617);class s extends Map{constructor(e){super(e),this.cache=new Map,this.cache=new Map(e)}fuzzyGet(e){if(this.cache.has(e))return this.cache.get(e);let t=this.getFuzzyMatchedKey(e);if(!t)return;let n=super.get(t);return this.cache.set(t,n),n}fuzzyHas(e){if(this.cache.has(e))return!0;let t=this.getFuzzyMatchedKey(e);return!!t&&super.has(t)}set(e,t){return this.cache?.clear(),super.set(e,t),this.cache?.set(e,t),this}delete(e){let t=super.delete(e);return t&&this.cache.clear(),t}clear(){this.cache.clear(),super.clear()}getFuzzyMatchedKey(e){return Array.from(this.keys()).find(t=>e.includes(t))}}var l=n(75377);let c=new Map([[l.zu.FOOD_AND_DRINK,"Food & drink"],[l.zu.HOME_AND_REPAIR,"Home & repair"],[l.zu.SERVICES,"Services"],[l.zu.TRANSPORTATION,"Transport"],[l.zu.TRAVEL_AND_ACCOMMODATION,"Travel & accommodation"],[l.zu.RETAIL_AND_ECOMMERCE,"Retail/ecommerce"],[l.zu.HEALTHCARE_AND_BEAUTY,"Healthcare & beauty"],[l.zu.RECREATION_AND_FITNESS,"Recreation & fitness"],[l.zu.NON_PROFIT_ORGANISATIONS,"Non-profit organisations"],[l.zu.ONLINE_AND_FINANCIAL_SERVICES,"Online & financial services"]]),u={[a.TransactionType.DEBIT]:"Debit",[a.TransactionType.CREDIT]:"Credit"},d=new Map([[a.MerchantCategory.WINE_BREWERY_DISTILLERY,{text:"Beer, wine, liquor",code:"5921"}],[a.MerchantCategory.GROCERIES,{text:"Groceries",code:"5411"}],[a.MerchantCategory.RESTAURANTS,{text:"Restaurants",code:"5812"}],[a.MerchantCategory.BAR_OR_CLUB,{text:"Bar or club",code:"5813"}],[a.MerchantCategory.BAKERY,{text:"Bakery",code:"5462"}],[a.MerchantCategory.GARDEN_AND_LANDSCAPING,{text:"Garden and landscaping",code:"0780"}],[a.MerchantCategory.CONTRACTOR,{text:"Contractor",code:"1520"}],[a.MerchantCategory.HANDYMAN_OR_BUILDER,{text:"Handyman or builder",code:"1799"}],[a.MerchantCategory.HEATING_PLUMBING_AIRCONDITIONING,{text:"Heating, plumbing or air-conditioning",code:"1711"}],[a.MerchantCategory.ELECTRICAL_SERVICES,{text:"Electrical services",code:"1731"}],[a.MerchantCategory.STONEWORK_TILING_PLASTERING_INSULATION,{text:"Stonework, tiling, plastering or insulation",code:"1740"}],[a.MerchantCategory.CARPENTRY,{text:"Carpentry",code:"1750"}],[a.MerchantCategory.ROOFING_SIDING_AND_SHEETMETAL_CONTRACTORS,{text:"Roofing, siding or sheet metal work",code:"1761"}],[a.MerchantCategory.PEST_CONTROL,{text:"Pest control",code:"7342"}],[a.MerchantCategory.TV_OR_SATELLITE_CONTRACTORS,{text:"Tv and satellite installations",code:"1799"}],[a.MerchantCategory.IT_OR_INTERNET_SERVICES,{text:"IT and Internet Services",code:"4816"}],[a.MerchantCategory.LAUNDRY_AND_CLEANING,{text:"Laundry and cleaning",code:"7210"}
14],[a.MerchantCategory.PRINTING_AND_PUBLISHING,{text:"Printing and publishing",code:"2741"}],[a.MerchantCategory.REAL_ESTATE_MANAGEMENT,{text:"Real estate agents or managers",code:"6513"}],[a.MerchantCategory.CHILDCARE,{text:"Childcare",code:"8351"}],[a.MerchantCategory.FUNERAL_SERVICES,{text:"Funeral services",code:"7261"}],[a.MerchantCategory.COURIER_SERVICES,{text:"Courier",code:"4215"}],[a.MerchantCategory.STORAGE_SERVICES,{text:"Warehousing and storage",code:"4225"}],[a.MerchantCategory.LEGAL_SERVICES,{text:"Legal",code:"8111"}],[a.MerchantCategory.EDUCATIONAL_SERVICES,{text:"Schools and educational services",code:"8299"}],[a.MerchantCategory.PLANNING_AND_RECREATIONAL_SERVICES,{text:"Event planning, party supplies or other recreational services",code:"7999"}],[a.MerchantCategory.OTHER_SERVICES,{text:"Other services",code:"8999"}],[a.MerchantCategory.TAXIS_AND_LIMOS,{text:"Taxis and limos",code:"4121"}],[a.MerchantCategory.CAR_AND_PART_SUPPLIES,{text:"Car supplies and parts",code:"5533"}],[a.MerchantCategory.TRAVEL_AND_TOURS,{text:"Travel and tours",code:"4722"}],[a.MerchantCategory.TOURIST_ATTRACTIONS,{text:"Tourist attractions and exhibits",code:"7991"}],[a.MerchantCategory.ACCOMODATION,{text:"Accommodation",code:"7011"}],[a.MerchantCategory.COMPUTER_EQUIPMENT,{text:"Computer equipment",code:"5045"}],[a.MerchantCategory.FURNITURE,{text:"Furniture",code:"5712"}],[a.MerchantCategory.HARDWARE,{text:"Hardware",code:"5251"}],[a.MerchantCategory.FLORIST,{text:"Florist",code:"5992"}],[a.MerchantCategory.CLOTHING_AND_ACCESSORIES,{text:"Clothing and accessories",code:"5651"}],[a.MerchantCategory.MUSICAL_INSTRUMENTS_AND_GOODS,{text:"Musical instruments and goods",code:"5733"}],[a.MerchantCategory.PHARMACY,{text:"Pharmacy",code:"5912"}],[a.MerchantCategory.GARDENING,{text:"Gardening/nursery",code:"5261"}],[a.MerchantCategory.VINTAGE_GOODS,{text:"Vintage goods",code:"5931"}],[a.MerchantCategory.SPORTS_GOODS,{text:"Sports goods",code:"5941"}],[a.MerchantCategory.BOOKS,{text:"Books",code:"5942"}],[a.MerchantCategory.STATIONERY_GOODS,{text:"Stationery, office and school supplies",code:"5943"}],[a.MerchantCategory.HOBBIES_TOYS_GAMES,{text:"Hobbies, toys and games",code:"5945"}],[a.MerchantCategory.PET_GOODS,{text:"Pet goods",code:"5995"}],[a.MerchantCategory.WATCHES_JEWELLERY,{text:"Watches and jewellery",code:"5944"}],[a.MerchantCategory.OTHER_RETAIL,{text:"Other retail and ecommerce",code:"5999"}],[a.MerchantCategory.HAIR,{text:"Hairsalon/barber",code:"7230"}],[a.MerchantCategory.BEAUTY_SPA,{text:"Beauty salon and spa",code:"7298"}],[a.MerchantCategory.VET,{text:"Vet or animal care",code:"0742"}],[a.MerchantCategory.DENTAL,{text:"Dentist or orthodontics",code:"8021"}],[a.MerchantCategory.OPTICAL_GOODS_SERVICES,{text:"Opticians, optical goods and eyeglasses",code:"8043"}],[a.MerchantCategory.NURSING,{text:"Nursing and personal care",code:"8050"}],[a.MerchantCategory.MEDICAL_LAB,{text:"Medical and dental laboratory",code:"8071"}],[a.MerchantCategory.OTHER_HEALTHCARE_BEAUTY,{text:"Other medical and health",code:"8099"}],[a.MerchantCategory.RECREATIONAL_CLUBS,{text:"Recreational clubs",code:"7997"}],[a.MerchantCategory.SPORT_AND_FITNESS,{text:"Sport and fitness",code:"7997"}],[a.MerchantCategory.CHARITY,{text:"Charitable group",code:"8398"}],[a.MerchantCategory.POLITICAL_GROUP,{text:"Political group",code:"8651"}],[a.MerchantCategory.RELIGIOUS_GROUP,{text:"Religious group",code:"8661"}],[a.MerchantCategory.ONLINE_GAMING,{text:"Online gaming",code:null}],[a.MerchantCategory.WALLETS,{text:"Wallets",code:null}],[a.MerchantCategory.PAYMENTS_PROVIDER,{text:"Payments provider",code:null}],[a.MerchantCategory.REMITTANCES,{text:"Remittances",code:null}],[a.MerchantCategory.PLATFORMS_AND_MARKETPLACES,{text:"Platforms and marketplaces",code:"5262"}],[a.MerchantCategory.CANNABIS,{text:"Cannabis",code:null}],[a.MerchantCategory.CRYPTO,{text:"Crypto",code:null}],[a.MerchantCategory.DIRECT_MARKETING,{text:"Direct Marketing",code:null}],[a.MerchantCategory.DATING_AND_ESCORT_SERVICES,{text:"Dating and escort services",code:null}],[a.MerchantCategory.DIRECT_TRAVEL_MARKETING,{text:"Direct travel marketing",code:null}],[a.MerchantCategory.TOBACCO_CIGARS_VAPES,{text:"Tobacco, cigars and vapes",code:"5993"}],[a.MerchantCategory.SECURITY_BROKERS,{text:"Security brokers/dealers",code:null}],[a.MerchantCategory.GAMBLING_AND_BETTING,{text:"Gambling and betting",code:"7995"}],[a.MerchantCategory.VIDEO_GAME_SALES,{text:"Video game sales",code:"5816"}],[a.MerchantCategory.PAYMENT_FACILITATOR,{text:"Payment facilitator",code:"6012"}],[a.MerchantCategory.PAYMENT_GATEWAY_SOFTWARE,{text:"Payment gateway software",code:"7372"}],[a.MerchantCategory.CBD_AND_HEMP_PRODUCTS,{text:"CBD and hemp products",code:"5499"}],[a.MerchantCategory.CANNABIS_ACCESSORIES,{text:"Cannabis accessories",code:"5999"}],[a.MerchantCategory.DIRECT_MARKETING_CATALOG,{text:"Direct marketing – catalog",code:"5964"}],[a.MerchantCategory.DIRECT_MARKETING_SUBSCRIPTION,{text:"Direct marketing – subscription",code:"5968"}],[a.MerchantCategory.DIRECT_MARKETING_TELEMARKETING,{text:"Direct marketing – telemarketing",code:"5966"}],[a.MerchantCategory.DIRECT_MARKETING_OTHER,{text:"Direct marketing – other",code:"5969"}]]),p=new Map([[l.zu.FOOD_AND_DRINK,[a.MerchantCategory.WINE_BREWERY_DISTILLERY,a.MerchantCategory.GROCERIES,a.MerchantCategory.RESTAURANTS,a.MerchantCategory.BAR_OR_CLUB,a.MerchantCategory.BAKERY]],[l.zu.HOME_AND_REPAIR,[a.MerchantCategory.GARDEN_AND_LANDSCAPING,a.MerchantCategory.CONTRACTOR,a.MerchantCategory.HANDYMAN_OR_BUILDER,a.MerchantCategory.HEATING_PLUMBING_AIRCONDITIONING,a.MerchantCategory.ELECTRICAL_SERVICES,a.MerchantCategory.STONEWORK_TILING_PLASTERING_INSULATION,a.MerchantCategory.CARPENTRY,a.MerchantCategory.ROOFING_SIDING_AND_SHEETMETAL_CONTRACTORS,a.MerchantCategory.PEST_CONTROL,a.MerchantCategory.TV_OR_SATELLITE_CONTRACTORS]],[l.zu.SERVICES,[a.MerchantCategory.IT_OR_INTERNET_SERVICES,a.MerchantCategory.LAUNDRY_AND_CLEANING,a.MerchantCategory.PRINTING_AND_PUBLISHING,a.MerchantCategory.REAL_ESTATE_MANAGEMENT,a.MerchantCategory.CHILDCARE,a.MerchantCategory.FUNERAL_SERVICES,a.MerchantCategory.DEBT_COLLECTION,a.MerchantCategory.COURIER_SERVICES,a.MerchantCategory.STORAGE_SERVICES,a.MerchantCategory.LEGAL_SERVICES,a.MerchantCategory.EDUCATIONAL_SERVICES,a.MerchantCategory.PLANNING_AND_RECREATIONAL_SERVICES,a.MerchantCategory.DIRECT_MARKETING_CATALOG,a.MerchantCategory.DIRECT_MARKETING_SUBSCRIPTION,a.MerchantCategory.DIRECT_MARKETING_TELEMARKETING,a.MerchantCategory.DIRECT_MARKETING_OTHER,a.MerchantCategory.DATING_AND_ESCORT_SERVICES,a.MerchantCategory.OTHER_SERVICES]],[l.zu.TRANSPORTATION,[a.MerchantCategory.TAXIS_AND_LIMOS,a.MerchantCategory.CAR_AND_PART_SUPPLIES]],[l.zu.TRAVEL_AND_ACCOMMODATION,[a.MerchantCategory.TRAVEL_AND_TOURS,a.MerchantCategory.TOURIST_ATTRACTIONS,a.MerchantCategory.ACCOMODATION,a.MerchantCategory.DIRECT_TRAVEL_MARKETING]],[l.zu.RETAIL_AND_ECOMMERCE,[a.MerchantCategory.COMPUTER_EQUIPMENT,a.MerchantCategory.FURNITURE,a.MerchantCategory.HARDWARE,a.MerchantCategory.FLORIST,a.MerchantCategory.CLOTHING_AND_ACCESSORIES,a.MerchantCategory.MUSICAL_INSTRUMENTS_AND_GOODS,a.MerchantCategory.PHARMACY,a.MerchantCategory.GARDENING,a.MerchantCategory.VINTAGE_GOODS,a.MerchantCategory.SPORTS_GOODS,a.MerchantCategory.STATIONERY_GOODS,a.MerchantCategory.HOBBIES_TOYS_GAMES,a.MerchantCategory.PET_GOODS,a.MerchantCategory.WATCHES_JEWELLERY,a.MerchantCategory.CBD_AND_HEMP_PRODUCTS,a.MerchantCategory.CANNABIS_ACCESSORIES,a.MerchantCategory.TOBACCO_CIGARS_VAPES,a.MerchantCategory.OTHER_RETAIL]],[l.zu.HEALTHCARE_AND_BEAUTY,[a.MerchantCategory.HAIR,a.MerchantCategory.BEAUTY_SPA,a.MerchantCategory.VET,a.MerchantCategory.DENTAL,a.MerchantCategory.OPTICAL_GOODS_SERVICES,a.MerchantCategory.NURSING,a.MerchantCategory.MEDICAL_LAB,a.MerchantCategory.OTHER_HEALTHCARE_BEAUTY]],[l.zu.RECREATION_AND_FITNESS,[a.MerchantCategory.RECREATIONAL_CLUBS,a.MerchantCategory.SPORT_AND_FITNESS]],[l.zu.NON_PROFIT_ORGANISATIONS,[a.MerchantCategory.CHARITY,a.MerchantCategory.POLITICAL_GROUP,a.MerchantCategory.RELIGIOUS_GROUP]],[l.zu.ONLINE_AND_FINANCIAL_SERVICES,[a.MerchantCategory.GAMBLING_AND_BETTING,a.MerchantCategory.VIDEO_GAME_SALES,a.MerchantCategory.WALLETS,a.MerchantCategory.PAYMENT_FACILITATOR,a.MerchantCategory.PAYMENT_GATEWAY_SOFTWARE,a.MerchantCategory.REMITTANCES,a.MerchantCategory.PLATFORMS_AND_MARKETPLACES,a.MerchantCategory.CRYPTO,a.MerchantCategory.SECURITY_BROKERS]]]),f=new Map([[a.MerchantUrlType.FACEBOOK,"Facebook"],[a.MerchantUrlType.INSTAGRAM,"Instagram"],[a.MerchantUrlType.WEBSITE,"Website"],[a.MerchantUrlType.GOOGLE_APP_STORE,"Google Play Store"],[a.MerchantUrlType.APPLE_APP_STORE,"Apple App Store"],[a.MerchantUrlType.SHOPIFY,"Shopify Store"],[a.MerchantUrlType.WOOCOMMERCE,"WooCommerce Store"],[a.MerchantUrlType.TIKTOK,"TikTok"],[a.MerchantUrlType.API,"Custom API integration"]]),h={"South Africa":a.Country.ZA,Nigeria:a.Country.NG},m={"Self-employed / sole trader":a.LegalEntity.SOLE_PROPRIETORSHIP,Partnership:a.LegalEntity.PARTNERSHIP,"Private company (Pty Ltd)":a.LegalEntity.PRIVATE_COMPANY,"Personal liability":a.LegalEntity.PERSONAL_LIABILITY,"Close Corporation (CC)":a.LegalEntity.CLOSE_CORPORATION,"Non-Profit Company":a.LegalEntity.NON_PROFIT_COMPANY},g=Object.fromEntries(Object.entries(m).map(([e,t])=>[t,e])),y=e=>g[e]??e,v={"0 - R19 999":a.Revenue.LESS_20K,"R20 000 - R99 999":a.Revenue.BETWEEN_20k_AND_100k,"R100 000 - R499 000":a.Revenue.BETWEEN_100k_AND_500k,"R500 000 - R999 000":a.Revenue.BETWEEN_500k_AND_1M,"R1 million - R5 million":a.Revenue.BETWEEN_1M_AND_5M,"R5 million +":a.Revenue.OVER_5M,"Less than R100 000":a.Revenue.LESS_100K,"I Don't Know":a.Revenue.UNKNOWN};Array.from(new Map([[a.BankId.STANDARD_BANK,i.Uw.StandardBank],[a.BankId.ABSA,i.Uw.Absa],[a.BankId.AFRICAN_BANK,"african_bank"],[a.BankId.FNB,i.Uw.Fnb],[a.BankId.CAPITEC,i.Uw.Capitec],[a.BankId.CAPITEC_BUSINESS,i.Uw.ZaCapitecBusiness],[a.BankId.NEDBANK,i.Uw.Nedbank],[a.BankId.TYMEBA
14NK,i.Uw.Tymebank],[a.BankId.INVESTEC,i.Uw.Investec],[a.BankId.GRINDROD_BANK,"grindrod_bank"],[a.BankId.MERCANTILE,i.Uw.ZaMercantileBank],[a.BankId.ACCESS_BANK,i.Uw.ZaAccessBank],[a.BankId.DISCOVERY_BANK,i.Uw.DiscoveryBank],[a.BankId.BANK_ZERO,i.Uw.ZaBankZero],[a.BankId.BIDVEST,i.Uw.ZaBidvest],[a.BankId.SASFIN,i.Uw.SasfinBank],[a.BankId.AL_BARAKA_BANK,i.Uw.ZaAlbarakaBank],[a.BankId.STANDARD_CHARTERED_BANK,i.Uw.ZaStandardCharteredBank]]).entries()).map(([e,t])=>[e,String(t)]),i.Uw.StandardBank,a.BankId.STANDARD_BANK,i.Uw.Absa,a.BankId.ABSA,a.BankId.AFRICAN_BANK,i.Uw.Fnb,a.BankId.FNB,i.Uw.Capitec,a.BankId.CAPITEC,i.Uw.Nedbank,a.BankId.NEDBANK,i.Uw.Tymebank,a.BankId.TYMEBANK,i.Uw.Investec,a.BankId.INVESTEC,a.BankId.GRINDROD_BANK,i.Uw.ZaMercantileBank,a.BankId.MERCANTILE,i.Uw.ZaAccessBank,a.BankId.ACCESS_BANK,i.Uw.DiscoveryBank,a.BankId.DISCOVERY_BANK,i.Uw.ZaBankZero,a.BankId.BANK_ZERO,i.Uw.ZaBidvest,a.BankId.BIDVEST,i.Uw.ZaCapitecBusiness,a.BankId.CAPITEC_BUSINESS,i.Uw.SasfinBank,a.BankId.SASFIN,i.Uw.ZaAlbarakaBank,a.BankId.AL_BARAKA_BANK,i.Uw.ZaStandardCharteredBank,a.BankId.STANDARD_CHARTERED_BANK,a.BankId.STANDARD_BANK,i.Td.StandardBank,a.BankId.ABSA,i.Td.Absa,a.BankId.AFRICAN_BANK,i.Td.AfricanBank,a.BankId.FNB,i.Td.Fnb,a.BankId.CAPITEC,i.Td.Capitec,a.BankId.NEDBANK,i.Td.Nedbank,a.BankId.TYMEBANK,i.Td.Tymebank,a.BankId.INVESTEC,i.Td.Investec,a.BankId.GRINDROD_BANK,i.Td.GrindrodBank,a.BankId.MERCANTILE,i.Td.ZaMercantileBank,a.BankId.ACCESS_BANK,i.Td.ZaAccessBank,a.BankId.DISCOVERY_BANK,i.Td.DiscoveryBank,a.BankId.BANK_ZERO,i.Td.ZaBankZero,a.BankId.BIDVEST,i.Td.ZaBidvest,a.BankId.CAPITEC_BUSINESS,i.Td.ZaCapitecBusiness,a.BankId.SASFIN,i.Td.SasfinBank,a.BankId.AL_BARAKA_BANK,i.Td.ZaAlbarakaBank,a.BankId.STANDARD_CHARTERED_BANK,i.Td.ZaStandardCharteredBank;let b={Absa:a.BankId.ABSA,"African Bank":a.BankId.AFRICAN_BANK,Capitec:a.BankId.CAPITEC,"Capitec Business":a.BankId.CAPITEC_BUSINESS,"FNB/RMB":a.BankId.FNB,Nedbank:a.BankId.NEDBANK,"Standard Bank":a.BankId.STANDARD_BANK,TymeBank:a.BankId.TYMEBANK,Investec:a.BankId.INVESTEC,"Grindrod Bank":a.BankId.GRINDROD_BANK,"Mercantile Bank":a.BankId.MERCANTILE,"Access Bank":a.BankId.ACCESS_BANK,"Discovery Bank":a.BankId.DISCOVERY_BANK,"Bank Zero":a.BankId.BANK_ZERO,Bidvest:a.BankId.BIDVEST,"Sasfin Bank":a.BankId.SASFIN,"Al Baraka Bank":a.BankId.AL_BARAKA_BANK,"Standard Chartered Bank":a.BankId.STANDARD_CHARTERED_BANK},w={card:"Card",capitec:"Capitec",applePay:"Apple Pay",bnpl:"Pay Later",googlePay:"Google Pay"};a.PaymentLinkStatus.EXPIRED,a.PaymentLinkStatus.CANCELLED,a.PaymentLinkStatus.FAILED,a.PaymentLinkStatus.PAID,a.PaymentLinkStatus.PENDING;let _=new Map([[a.PaymentStatus.PAID,{text:"Paid",colour:"success"}],[a.PaymentStatus.SETTLED,{text:"Settled",colour:"success"}],["PARTIALLY_REFUNDED",{text:"Partially refunded",colour:"alert"}],["PENDING_REFUND",{text:"Pending refund",colour:"grey-light"}],["REFUNDED",{text:"Refunded",colour:"alert-dark"}]]),x=new Map([[a.RefundStatus.FAILED,{text:"Failed refund",colour:"warning"}],[a.RefundStatus.PROCESSED,{text:"Refunded",colour:"alert-dark"}],[a.RefundStatus.PENDING,{text:"Pending refund",colour:"grey-light"}]]);a.MerchantCategory.WINE_BREWERY_DISTILLERY,a.MerchantCategory.GROCERIES,a.MerchantCategory.RESTAURANTS,a.MerchantCategory.BAR_OR_CLUB,a.MerchantCategory.BAKERY,a.MerchantCategory.GARDEN_AND_LANDSCAPING,a.MerchantCategory.CONTRACTOR,a.MerchantCategory.HANDYMAN_OR_BUILDER,a.MerchantCategory.HEATING_PLUMBING_AIRCONDITIONING,a.MerchantCategory.ELECTRICAL_SERVICES,a.MerchantCategory.STONEWORK_TILING_PLASTERING_INSULATION,a.MerchantCategory.CARPENTRY,a.MerchantCategory.ROOFING_SIDING_AND_SHEETMETAL_CONTRACTORS,a.MerchantCategory.PEST_CONTROL,a.MerchantCategory.TV_OR_SATELLITE_CONTRACTORS,a.MerchantCategory.IT_OR_INTERNET_SERVICES,a.MerchantCategory.LAUNDRY_AND_CLEANING,a.MerchantCategory.PRINTING_AND_PUBLISHING,a.MerchantCategory.REAL_ESTATE_MANAGEMENT,a.MerchantCategory.CHILDCARE,a.MerchantCategory.FUNERAL_SERVICES,a.MerchantCategory.DEBT_COLLECTION,a.MerchantCategory.COURIER_SERVICES,a.MerchantCategory.STORAGE_SERVICES,a.MerchantCategory.LEGAL_SERVICES,a.MerchantCategory.EDUCATIONAL_SERVICES,a.MerchantCategory.PLANNING_AND_RECREATIONAL_SERVICES,a.MerchantCategory.OTHER_SERVICES,a.MerchantCategory.TAXIS_AND_LIMOS,a.MerchantCategory.CAR_AND_PART_SUPPLIES,a.MerchantCategory.TRAVEL_AND_TOURS,a.MerchantCategory.TOURIST_ATTRACTIONS,a.MerchantCategory.ACCOMODATION,a.MerchantCategory.COMPUTER_EQUIPMENT,a.MerchantCategory.FURNITURE,a.MerchantCategory.HARDWARE,a.MerchantCategory.FLORIST,a.MerchantCategory.CLOTHING_AND_ACCESSORIES,a.MerchantCategory.MUSICAL_INSTRUMENTS_AND_GOODS,a.MerchantCategory.PHARMACY,a.MerchantCategory.GARDENING,a.MerchantCategory.VINTAGE_GOODS,a.MerchantCategory.SPORTS_GOODS,a.MerchantCategory.BOOKS,a.MerchantCategory.STATIONERY_GOODS,a.MerchantCategory.HOBBIES_TOYS_GAMES,a.MerchantCategory.PET_GOODS,a.MerchantCategory.WATCHES_JEWELLERY,a.MerchantCategory.OTHER_RETAIL,a.MerchantCategory.HAIR,a.MerchantCategory.BEAUTY_SPA,a.MerchantCategory.VET,a.MerchantCategory.DENTAL,a.MerchantCategory.OPTICAL_GOODS_SERVICES,a.MerchantCategory.NURSING,a.MerchantCategory.MEDICAL_LAB,a.MerchantCategory.OTHER_HEALTHCARE_BEAUTY,a.MerchantCategory.RECREATIONAL_CLUBS,a.MerchantCategory.SPORT_AND_FITNESS,a.MerchantCategory.CHARITY,a.MerchantCategory.POLITICAL_GROUP,a.MerchantCategory.RELIGIOUS_GROUP,a.MerchantCategory.ONLINE_GAMING,a.MerchantCategory.WALLETS,a.MerchantCategory.PAYMENTS_PROVIDER,a.MerchantCategory.REMITTANCES,a.MerchantCategory.PLATFORMS_AND_MARKETPLACES,a.MerchantCategory.CRYPTO,a.MerchantCategory.CANNABIS,a.MerchantCategory.DIRECT_MARKETING,a.MerchantCategory.DATING_AND_ESCORT_SERVICES,a.MerchantCategory.DIRECT_TRAVEL_MARKETING,a.MerchantCategory.TOBACCO_CIGARS_VAPES,a.MerchantCategory.SECURITY_BROKERS,a.MerchantCategory.GAMBLING_AND_BETTING,a.MerchantCategory.VIDEO_GAME_SALES,a.MerchantCategory.PAYMENT_FACILITATOR,a.MerchantCategory.PAYMENT_GATEWAY_SOFTWARE,a.MerchantCategory.CBD_AND_HEMP_PRODUCTS,a.MerchantCategory.CANNABIS_ACCESSORIES,a.MerchantCategory.DIRECT_MARKETING_CATALOG,a.MerchantCategory.DIRECT_MARKETING_SUBSCRIPTION,a.MerchantCategory.DIRECT_MARKETING_TELEMARKETING,a.MerchantCategory.DIRECT_MARKETING_OTHER,a.Revenue.OVER_5M,a.Revenue.BETWEEN_1M_AND_5M,a.Revenue.BETWEEN_500k_AND_1M,a.Revenue.BETWEEN_100k_AND_500k,a.Revenue.BETWEEN_20k_AND_100k,a.Revenue.LESS_20K,a.Revenue.LESS_100K,a.Revenue.UNKNOWN,a.LegalEntity.SOLE_PROPRIETORSHIP,a.LegalEntity.PRIVATE_COMPANY,a.LegalEntity.PERSONAL_LIABILITY,a.LegalEntity.CLOSE_CORPORATION,a.LegalEntity.PARTNERSHIP,a.LegalEntity.NON_PROFIT_COMPANY,a.LegalEntity.UNKNOWN,a.PaymentAcceptanceMode.ONLINE,a.PaymentAcceptanceMode.IN_PERSON,a.PaymentAcceptanceMode.ONLINE_AND_IN_PERSON,a.LegalEntity.SOLE_PROPRIETORSHIP,a.LegalEntity.PRIVATE_COMPANY,a.LegalEntity.PERSONAL_LIABILITY,a.LegalEntity.CLOSE_CORPORATION,a.LegalEntity.PARTNERSHIP,a.LegalEntity.NON_PROFIT_COMPANY,a.LegalEntity.UNKNOWN;let E=new s([["Absa",a.BankId.ABSA],["African Bank",a.BankId.AFRICAN_BANK],["African",a.BankId.AFRICAN_BANK],["Capitec (Business)",a.BankId.CAPITEC_BUSINESS],["Capitec Business",a.BankId.CAPITEC_BUSINESS],["Capitec",a.BankId.CAPITEC],["FNB",a.BankId.FNB],["First National Bank",a.BankId.FNB],["Nedbank",a.BankId.NEDBANK],["SBSA",a.BankId.STANDARD_BANK],["Standard Bank",a.BankId.STANDARD_BANK],["Standard Bank of South Africa",a.BankId.STANDARD_BANK],["STD",a.BankId.STANDARD_BANK],["Tyme",a.BankId.TYMEBA
14NK],["Investec",a.BankId.INVESTEC],["Grindrod",a.BankId.GRINDROD_BANK],["Grindrod Bank",a.BankId.GRINDROD_BANK],["Access Bank",a.BankId.ACCESS_BANK],["Discovery",a.BankId.DISCOVERY_BANK],["Firstrand",a.BankId.FNB],["First Rand",a.BankId.FNB],["Randmerchant",a.BankId.FNB],["RMB",a.BankId.FNB],["Rand Merchant Bank",a.BankId.FNB],["Bank Zero",a.BankId.BANK_ZERO],["Bidvest Bank",a.BankId.BIDVEST],["Investec Bank",a.BankId.INVESTEC],["Sasfin",a.BankId.SASFIN],["Al Baraka Bank",a.BankId.AL_BARAKA_BANK],["Standard Chartered",a.BankId.STANDARD_CHARTERED_BANK],["Standard Chartered Bank",a.BankId.STANDARD_CHARTERED_BANK]]),S=new Map([[a.BankId.ABSA,"Absa"],[a.BankId.AFRICAN_BANK,"African Bank"],[a.BankId.CAPITEC,"Capitec"],[a.BankId.CAPITEC_BUSINESS,"Capitec Business"],[a.BankId.FNB,"FNB/RMB"],[a.BankId.NEDBANK,"Nedbank"],[a.BankId.STANDARD_BANK,"Standard Bank"],[a.BankId.TYMEBANK,"TymeBank"],[a.BankId.INVESTEC,"Investec"],[a.BankId.GRINDROD_BANK,"Grindrod Bank"],[a.BankId.MERCANTILE,"Capitec Business"],[a.BankId.ACCESS_BANK,"Access Bank"],[a.BankId.DISCOVERY_BANK,"Discovery"],[a.BankId.BANK_ZERO,"Bank Zero"],[a.BankId.BIDVEST,"Bidvest"],[a.BankId.SASFIN,"Sasfin Bank"],[a.BankId.AL_BARAKA_BANK,"Al Baraka Bank"],[a.BankId.STANDARD_CHARTERED_BANK,"Standard Chartered Bank"]]),k=new Map([[a.RewardStatus.approved,"Approved"],[a.RewardStatus.disbursed,"Disbursed"],[a.RewardStatus.expired,"Expired"],[a.RewardStatus.pending,"Pending"],[a.RewardStatus.rejected,"Rejected"]]),C=new Map([[a.FeeType.PAYMENT_LINKS,"PAYMENT FEES"],[a.FeeType.DISBURSEMENT,"WITHDRAWAL FEES"],[a.FeeType.WITHDRAWAL,"WITHDRAWAL FEES"],[a.FeeType.TERMINAL_SERVICES,"TERMINAL SERVICES"],[a.FeeType.VOLUME_PRICING_TRUE_UP,"VOLUME TIER ADJUSTMENT"]]),I=["Afghanistan","\xc5land Islands","Albania","Algeria","American Samoa","Andorra","Angola","Anguilla","Antarctica","Antigua and Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Bouvet Island","Brazil","British Indian Ocean Territory","Brunei Darussalam","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Cayman Islands","Central African Republic","Chad","Chile","China","Christmas Island","Cocos (Keeling) Islands","Colombia","Comoros","Congo","Congo, The Democratic Republic of The","Cook Islands","Costa Rica","Cote D'ivoire","Croatia","Cuba","Cura\xe7ao","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Falkland Islands (Malvinas)","Faroe Islands","Fiji","Finland","France","French Guiana","French Polynesia","French Southern Territories","Gabon","Gambia","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guadeloupe","Guam","Guatemala","Guernsey","Guinea","Guinea-bissau","Guyana","Haiti","Heard Island and Mcdonald Islands","Holy See (Vatican City State)","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran, Islam
14ic Republic of","Iraq","Ireland","Isle of Man","Israel","Italy","Jamaica","Japan","Jersey","Jordan","Kazakhstan","Kenya","Kiribati","Korea, Democratic People's Republic of","Korea, Republic of","Kuwait","Kyrgyzstan","Lao People's Democratic Republic","Latvia","Lebanon","Lesotho","Liberia","Libyan Arab Jamahiriya","Liechtenstein","Lithuania","Luxembourg","Macao","Macedonia, The Former Yugoslav Republic of","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Micronesia, Federated States of","Moldova, Republic of","Monaco","Mongolia","Montenegro","Montserrat","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","Niue","Norfolk Island","Northern Mariana Islands","Norway","Oman","Pakistan","Palau","Palestinian Territory, Occupied","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcairn","Poland","Portugal","Puerto Rico","Qatar","Reunion","Romania","Russia","Rwanda","Saint Helena","Saint Kitts and Nevis","Saint Lucia","Saint Pierre and Miquelon","Saint Vincent and The Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Georgia and The South Sandwich Islands","Spain","Sri Lanka","Sudan","Suriname","Svalbard and Jan Mayen","Eswatini","Sweden","Switzerland","Syrian Arab Republic","Taiwan (ROC)","Tajikistan","Tanzania, United Republic of","Thailand","Timor-leste","Togo","Tokelau","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Turks and Caicos Islands","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","United States Minor Outlying Islands","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Virgin Islands, British","Virgin Islands, U.S.","Wallis and Futuna","Western Sahara","Yemen","Zambia","Zimbabwe"];a.ReferralStatus.SIGNED_UP,a.ReferralStatus.VERIFIED,a.ReferralStatus.COMPLETE,a.PaymentLinkStatus.CANCELLED,a.PaymentLinkStatus.PAID,a.PaymentLinkStatus.EXPIRED,a.PaymentLinkStatus.PAID,a.PaymentLinkStatus.PENDING,a.PaymentLinkStatus.PAID,a.PaymentLinkStatus.FAILED,a.PaymentLinkStatus.CANCELLED,a.PaymentLinkStatus.PROCESSING,a.SubscriptionStatus.CANCELLED,a.SubscriptionStatus.EXPIRED,a.SubscriptionStatus.AUTHORISED,a.SubscriptionStatus.FAILED,a.SubscriptionStatus.UNAUTHORISED,a.SubscriptionStatus.UNAUTHORISED,a.SubscriptionStatus.UNAUTHORISED;let A=new Map([[a.PaymentLinkSource.API,"API"],[a.PaymentLinkSource.CHECKOUT,"Payment link"],[a.PaymentLinkSource.FOXY,"Foxy"],[a.PaymentLinkSource.WOOCOMMERCE,"WooCommerce"],[a.PaymentLinkSource.ASSISTANT,"Stitch Express Assistant"],[a.PaymentLinkSource.SHOPIFY,"Shopify"],[a.PaymentLinkSource.SHOPIFY_POS,"Shopify POS"],[a.PaymentLinkSource.SHOPIFY_PAY_WITH_STITCH,"Shopify Pay Later"]]),T=new Map([[a.TerminalSessionSource.SHOPIFY_POS,"Shopify POS"],[a.TerminalSessionSource.DIRECT,"Standalone"]]),R=new Map([[a.PaymentMethod.CARD,"Card"],[a.PaymentMethod.CAPITEC,"Capitec Pay"],[a.PaymentMethod.APPLE_PAY,"Apple Pay"],[a.PaymentMethod.GOOGLE_PAY,"Google Pay"],[a.PaymentMethod.BNPL,"Stitch Pay Later"],[a.PaymentMethod.MANUAL_EFT,"Manual EFT"],[a.PaymentMethod.CARD_PRESENT,"Card Present"]]),N={[a.PaymentType.SUBSCRIPTION]:"Subscription",[a.PaymentType.LINK]:"Payment Link",[a.PaymentType.CONSENT]:"Consent",[a.PaymentType.TERMINAL]:"Terminal"},O={[a.CardType.PREPAID]:"Prepaid",[a.CardType.CREDIT]:"Credit",[a.CardType.DEBIT]:"Debit"},P={"Return goods":i.HZ.RequestedByUser,Duplicate:i.HZ.Duplicate},D={[i.HZ.RequestedByUser]:"Return goods",[i.HZ.Duplicate]:"Duplicate",[i.HZ.Fraudulent]:"Fraudulent",[i.HZ.CancelledPayment]:"Cancelled payment",[i.HZ.GoodsOrServicesNotProvided]:"Goods or services not provided",[i.HZ.GoodsReturned]:"Goods returned",[i.HZ.OrderCancelled]:"Order cancelled"},M={EXPRESS_DASHBOARD:"DASHBOARD",EXPRESS_INTERNAL_ADMIN:"DASHBOARD",SHOPIFY_POS_SERVICE:"SHOPIFY",SHOPIFY_LEGACY_WEBHOOK:"SHOPIFY",STANDALONE_TERMINAL:"TERMINAL",EXPRESS_PUBLIC_API:"API",WOOCOMMERCE:"WOOCOMMERCE"};function $(e){return e&&M[e]||"UNKNOWN"}let j={DASHBOARD:"Dashboard",SHOPIFY:"Shopify",TERMINAL:"Terminal",API:"API",WOOCOMMERCE:"WooCommerce"}
14,L=["Eastern Cape","Free State","Gauteng","KwaZulu-Natal","Limpopo","Mpumalanga","Northern Cape","North West","Western Cape"];a.RefundStatus.PENDING,a.RefundStatus.PENDING,a.RefundStatus.PROCESSED,a.RefundStatus.FAILED;let F=new Map([["INSTANT","Instant"],["DEFAULT","Standard"]]),B={INSTANT:o.sM,DEFAULT:o.vU},U={[r.Di.DAILY]:"Daily",[r.Di.WEEKLY]:"Weekly",[r.Di.MONTHLY]:"Monthly"},z={2:"2nd",3:"3rd",5:"5th",15:"15th",25:"25th",28:"28th","-1":"Last day of the month"},Z={MO:"Monday",TU:"Tuesday",WE:"Wednesday",TH:"Thursday",FR:"Friday",SA:"Saturday"},V={MO:r.Ci.MO,TU:r.Ci.TU,WE:r.Ci.WE,TH:r.Ci.TH,FR:r.Ci.FR,SA:r.Ci.SA,SU:r.Ci.SU},q={[a.MemberRole.member]:"Member",[a.MemberRole.admin]:"Admin",[a.MemberRole.owner]:"Owner"},W={[i.SH.ExceedsCardWithdrawalLimit]:"Card limit reached",[i.SH.InsufficientFunds]:"Not enough funds",[i.SH.InvalidCardError]:"Invalid card",internal_error:"Something went wrong",payment_already_processed:"This payment has already been completed"},G={OUTBOUND_DIRECT:"Outbound — Direct",INBOUND_CONTACT:"Inbound — Contact",INBOUND_SELFSERVE:"Inbound — Self-serve",AGENCY_SALESPERSON:"Agency — Salesperson",AGENCY_SELFSERVE:"Agency — Self-serve",REFERRAL_SALESPERSON:"Referral — Salesperson",REFERRAL_SELFSERVE:"Referral — Self-serve",AGENCY:"Agency (legacy)",DIRECT:"Direct (legacy)",EMAIL_AUTO:"Email Auto (legacy)",EVENT:"Event (legacy)",INBOUND:"Inbound (legacy)",STITCH_INBOUND:"Stitch Inbound (legacy)",OFFBOARDED:"Offboarded (legacy)",REFERRALS:"Referrals (legacy)",SUPPLIER:"Supplier (legacy)"},H=new Set(["AGENCY","DIRECT","EMAIL_AUTO","EVENT","INBOUND","STITCH_INBOUND","OFFBOARDED","REFERRALS","SUPPLIER"]),Y=Object.keys(G).filter(e=>!H.has(e)),K={cardPresent:"Stitch In-Person (SIP)",subscriptions:"Subscriptions",shopifySubscriptions:"Shopify Subscriptions",bnpl:"BNPL",capitec:"Capitec Pay",wallet:"Wallets (Apple / Google Pay)",cardConsents:"Card Consents",apiAccess:"API Access",other:"Other"},J=Object.keys(K),X={[a.KycbStatus.AWAITING_REVIEW]:"Thanks for submitting your documents. Our team is busy reviewing them and will be in touch via email with an outcome.",[a.KycbStatus.FAILED]:"Our team has completed its review and we're unable to onboard your business at this stage. Support can help if you have questions about the outcome."},Q={[a.KycbStatus.AWAITING_REVIEW]:"We're verifying your business",[a.KycbStatus.FAILED]:"Your application wasn't approved",[a.KycbStatus.PASSED]:"Your business is verified"}},15903:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});let r={1:"business_profile",2:"business_address",3:"brand_setup",4:"payment_acceptance",5:"sales_channels"}},46120:function(e,t,n){"use strict";n.d(t,{Rf:function(){return e6},r8:function(){return tg},dk:function(){return ee},cr:function(){return e7},Af:function(){return tr},T5:function(){return ty},PW:function(){return L},pv:function(){return M},nP:function(){return W},gb:function(){return tx},eA:function(){return t_},Kj:function(){return eb},XE:function(){return eA},Cd:function(){return K},$T:function(){return ew},V_:function(){return D},ms:function(){return e_},AL:function(){return F},gF:function(){return tp},nq:function(){return ed},sE:function(){return eI},_B:function(){return Y},lY:function(){return H},vL:function(){return td},Vc:function(){return B},oX:function(){return T},rF:function(){return tS},A6:function(){return tE},y8:function(){return tk},pi:function(){return ti},o4:function(){return to},kU:function(){return ts},Hr:function(){return tl},Pj:function(){return ta},pr:function(){return tf},H4:function(){return tv},aI:function(){return e1},is:function(){return e2},vs:function(){return e4},fl:function(){return e9},ao:function(){return eg},pk:function(){return tm},d4:function(){return e3},tQ:function(){return tu},uE:function(){return eC},DK:function(){return ek},S8:function(){return tw},Rj:function(){return tb},aZ:function(){return U}});var r=n(25688),i=n(54224),a=n(15517),o=n(47876),s=n(61590);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
14t%2?l(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(){var e=(0,o.Z)(arguments),t=e.text,n=e.options,r=e.metadata;n=c(c({},n),{},{extract:!1});var i=(0,s.Z)(t,n,r);return i&&i.isValid()||!1}function d(){return(0,a.Z)(u,arguments)}var p=n(4731),f=n(30695),h=n(44196),m=n(77910),g=n(59369),y=n(75377),v=n(12491),b=n(51104),w=n(57617),_=n(42067),x=n(74393);let E=new Set(["stitch","admin","kiaan","wigwag","wigwag-id","wp-admin","cgi-bin","images",".well-known",".tmb","wp-content","dup-installer-bootlog","index.php","installer-backup.php","installer.php","license.txt","readme.html","wordfence-waf.php","wp-activate.php","wp-admin/","wp-admin/about.php","wp-admin/admin-ajax.php","wp-admin/admin-db.php","wp-admin/admin-footer.php","wp-admin/admin-functions.php","wp-admin/admin-header.php","wp-admin/admin-post.php","wp-admin/admin.php","wp-admin/async-upload.php","wp-admin/bookmarklet.php","wp-admin/cat.js","wp-admin/categories.js","wp-admin/categories.php","wp-admin/comment.php","wp-admin/credits.php","wp-admin/css/","wp-admin/css/color-picker-rtl.css","wp-admin/css/color-picker-rtl.min.css","wp-admin/css/color-picker.css","wp-admin/css/color-picker.min.css","wp-admin/css/colors-classic-rtl.css","wp-admin/css/colors-classic-rtl.dev.css","wp-admin/css/colors-classic.css","wp-admin/css/colors-classic.dev.css","wp-admin/css/colors-classic.min.css","wp-admin/css/colors-fresh-rtl.css","wp-admin/css/colors-fresh-rtl.dev.css","wp-admin/css/colors-fresh.css","wp-admin/css/colors-fresh.dev.css","wp-admin/css/colors-fresh.min.css","wp-admin/css/customize-controls-rtl.css","wp-admin/css/customize-controls-rtl.min.css","wp-admin/css/customize-controls.css","wp-admin/css/customize-controls.min.css","wp-admin/css/dashboard-rtl.css","wp-admin/css/dashboard-rtl.dev.css","wp-admin/css/dashboard.css","wp-admin/css/dashboard.dev.css","wp-admin/css/farbtastic-rtl.css","wp-admin/css/farbtastic.css","wp-admin/css/global-rtl.css","wp-admin/css/global-rtl.dev.css","wp-admin/css/global.css","wp-admin/css/global.dev.css","wp-admin/css/ie-rtl.css","wp-admin/css/ie-rtl.dev.css","wp-admin/css/ie-rtl.min.css","wp-admin/css/ie.css","wp-admin/css/ie.dev.css","wp-admin/css/ie.min.css","wp-admin/css/install-rtl.css","wp-admin/css/install-rtl.dev.css","wp-admin/css/install.css","wp-admin/css/install.dev.css","wp-admin/css/install.min.css","wp-admin/css/login-rtl.css","wp-admin/css/login-rtl.dev.css","wp-admin/css/login.css","wp-admin/css/login.dev.css","wp-admin/css/media-rtl.css","wp-admin/css/media-rtl.dev.css","wp-admin/css/media-rtl.min.css","wp-admin/css/media.css","wp-admin/css/media.dev.css","wp-admin/css/media.min.css","wp-admin/css/ms.css","wp-admin/css/ms.dev.css","wp-admin/css/nav-menu-rtl.css","wp-admin/css/nav-menu-rtl.dev.css","wp-admin/css/nav-menu.css","wp-admin/css/nav-menu.dev.css","wp-admin/css/plugin-install-rtl.css","wp-admin/css/plugin-install-rtl.dev.css","wp-admin/css/plugin-install.css","wp-admin/css/plugin-install.dev.css","wp-admin/css/press-this-rtl.css","wp-admin/css/press-this-rtl.dev.css","wp-admin/css/press-this.css","wp-admin/css/press-this.dev.css","wp-admin/css/theme-editor-rtl.css","wp-admin/css/theme-editor-rtl.dev.css","wp-admin/css/theme-editor.css","wp-admin/css/theme-editor.dev.css","wp-admin/css/theme-install.css","wp-admin/css/theme-install.dev.css","wp-admin/css/widgets-rtl.css","wp-admin/css/widgets-rtl.dev.css","wp-admin/css/widgets.css","wp-admin/css/widgets.dev.css","wp-admin/css/wp-admin-rtl.css","wp-admin/css/wp-admin-rtl.dev.css","wp-admin/css/wp-admin-rtl.min.css","wp-admin/css/wp-admin.css","wp-admin/css/wp-admin.dev.css","wp-admin/css/wp-admin.min.css","wp-admin/custom-background.php","wp-admin/custom-fields.js","wp-admin/custom-header.php","wp-admin/customize.php","wp-admin/dbx-admin-key.js","wp-admin/edit-attachment-rows.php","wp-admin/edit-category-form.php","wp-admin/edit-comments.js","wp-admin/edit-comments.php","wp-admin/edit-form-advanced.php","wp-admin/edit-form-comment.php","wp-admin/edit-form.php","wp-admin/edit-link-categories.php","wp-admin/edit-link-category-form.php","wp-admin/edit-link-form.php","wp-admin/edit-page-form.php","wp-admin/edit-pages.php","wp-admin/edit-post-rows.php","wp-admin/edit-tag-form.php","wp-admin/edit-tags.php","wp-admin/edit.php","wp-admin/export.php","wp-admin/freedoms.php","wp-admin/gears-manifest.php","wp-admin/images/","wp-admin/images/align-center-2x.png","wp-admin/images/align-center.png","wp-admin/images/align-left-2x.png","wp-admin/images/align-left.png","wp-admin/images/align-none-2x.png","wp-admin/images/align-none.png","wp-admin/images/align-right-2x.png","wp-admin/images/align-right.png","wp-admin/images/archive-link.png","wp-admin/images/arrows-2x.png","wp-admin/images/arrows-dark-2x.png","wp-admin/images/arrows-dark-vs-2x.png","wp-admin/images/arrows-dark-vs.png","wp-admin/images/arrows-dark.png","wp-admin/images/arrows-pr-2x.png","wp-admin/images/arrows-pr.png","wp-admin/images/arrows-vs-2x.png","wp-admin/images/arrows-vs.png","wp-admin/images/arrows.png","wp-admin/images/blue-grad.png","wp-admin/images/box-bg-left.g
14if","wp-admin/images/box-bg-right.gif","wp-admin/images/box-bg.gif","wp-admin/images/box-butt-left.gif","wp-admin/images/box-butt-right.gif","wp-admin/images/box-butt.gif","wp-admin/images/box-head-left.gif","wp-admin/images/box-head-right.gif","wp-admin/images/box-head.gif","wp-admin/images/browse-happy.gif","wp-admin/images/bubble_bg-2x.gif","wp-admin/images/bubble_bg-rtl-2x.gif","wp-admin/images/bubble_bg-rtl.gif","wp-admin/images/bubble_bg.gif","wp-admin/images/button-grad-active-vs.png","wp-admin/images/button-grad-active.png","wp-admin/images/button-grad-vs.png","wp-admin/images/button-grad.png","wp-admin/images/comment-grey-bubble-2x.png","wp-admin/images/comment-grey-bubble.png","wp-admin/images/date-button-2x.gif","wp-admin/images/date-button.gif","wp-admin/images/ed-bg-vs.gif","wp-admin/images/ed-bg.gif","wp-admin/images/fade-butt.png","wp-admin/images/fav-arrow-rtl.gif","wp-admin/images/fav-arrow-vs-rtl.gif","wp-admin/images/fav-arrow-vs.gif","wp-admin/images/fav-arrow.gif","wp-admin/images/fav-top-vs.gif","wp-admin/images/fav-vs.png","wp-admin/images/fav.png","wp-admin/images/generic.png","wp-admin/images/gray-grad.png","wp-admin/images/icons32-2x.png","wp-admin/images/icons32-vs-2x.png","wp-admin/images/icons32-vs.png","wp-admin/images/icons32.png","wp-admin/images/imgedit-icons-2x.png","wp-admin/images/imgedit-icons.png","wp-admin/images/list-2x.png","wp-admin/images/list-vs.png","wp-admin/images/list.png","wp-admin/images/loading-publish.gif","wp-admin/images/loading.gif","wp-admin/images/lock-2x.png","wp-admin/images/lock.png","wp-admin/images/login-bkg-bottom.gif","wp-admin/images/login-bkg-tile.gif","wp-admin/images/login-header.png","wp-admin/images/logo-ghost.png","wp-admin/images/logo-login.gif","wp-admin/images/logo.gif","wp-admin/images/marker.png","wp-admin/images/mask.png","wp-admin/images/media-button-2x.png","wp-admin/images/media-button-image.gif","wp-admin/images/media-button-music.gif","wp-admin/images/media-button-other.gif","wp-admin/images/media-button-video.gif","wp-admin/images/media-button.png","wp-admin/images/menu-2x.png","wp-admin/images/menu-arrows.gif","wp-admin/images/menu-bits-rtl-vs.gif","wp-admin/images/menu-bits-rtl.gif","wp-admin/images/menu-bits-vs.gif","wp-admin/images/menu-bits.gif","wp-admin/images/menu-dark-rtl.gif","wp-admin/images/menu-dark.gif","wp-admin/images/menu-shadow-rtl.png","wp-admin/images/menu-shadow.png","wp-admin/images/menu-vs-2x.png","wp-admin/images/menu-vs.png","wp-admin/images/menu.png","wp-admin/images/no.png","wp-admin/images/notice.gif","wp-admin/images/post-formats-vs.png","wp-admin/images/post-formats.png","wp-admin/images/post-formats32-vs.png","wp-admin/images/post-formats32.png","wp-admin/images/press-this-2x.png","wp-admin/images/press-this.png","wp-admin/images/required.gif","wp-admin/images/resize-2x.gif","wp-admin/images/resize-rtl-2x.gif","wp-admin/images/resize-rtl.gif","wp-admin/images/resize.gif","wp-admin/images/screen-options-right-up.gif","wp-admin/images/screen-options-right.gif","wp-admin/images/se.png","wp-admin/images/sort-2x.gif","wp-admin/images/sort.gif","wp-admin/images/star.gif","wp-admin/images/stars-2x.png","wp-admin/images/stars-rtl-2x.png","wp-admin/images/stars-rtl.png","wp-admin/images/stars.png","wp-admin/images/toggle-arrow-rtl.gif","wp-admin/images/toggle-arrow.gif","wp-admin/images/toggle.gif","wp-admin/images/visit-site-button-grad-vs.gif","wp-admin/images/visit-site-button-grad.gif","wp-admin/images/welcome-icons-2x.png","wp-admin/images/welcome-icons.png","wp-admin/images/wheel.png","wp-admin/images/white-grad-active.png","wp-admin/images/white-grad.png","wp-admin/images/widgets-arrow.gif","wp-admin/images/wordpress-logo-2x.png","wp-admin/images/wordpress-logo.png","wp-admin/images/wp-badge-2x.png","wp-admin/images/wp-badge.png","wp-admin/images/wp-logo-2x.png","wp-admin/images/wp-logo-vs-2x.png","wp-admin/images/wp-logo-vs.gif","wp-admin/images/wp-logo-vs.png","wp-admin/images/wp-logo.png","wp-admin/images/wpspin_dark.gif","wp-admin/images/wpspin_light-2x.gif","wp-admin/images/wpspin_light.gif","wp-admin/images/xit-2x.gif","wp-admin/images/xit.gif","wp-admin/images/yes.png","wp-admin/import.php","wp-admin/import/","wp-admin/import/blogger.php","wp-admin/import/blogware.php","wp-admin/import/dotclear.php","wp-admin/import/greymatter.php","wp-admin/import/livejournal.php","wp-admin/import/mt.php","wp-admin/import/rss.php","wp-admin/import/textpattern.php","wp-admin/import/wordpress.php","wp-admin/includes/","wp-admin/includes/admin.php","wp-admin/includes/ajax-actions.php","wp-admin/includes/bookmark.php","wp-admin/includes/class-ftp-pure.php","wp-admin/includes/class-ftp-sockets.php","wp-admin/includes/class-ftp.php","wp-admin/includes/class-pclzip.php","wp-admin/includes/class-wp-comments-list-table.php","wp-admin/includes/class-wp-filesystem-base.php","wp-admin/includes/class-wp-filesystem-direct.php","wp-admin/includes/class-wp-filesystem-ftpext.php","wp-admin/includes/class-wp-filesystem-ftpsockets.php","wp-admin/includes/class-wp-filesystem-ssh2.php","wp-admin/includes/class-wp-importer.php","wp-admin/includes/class-wp-links-list-table.php","wp-admin/includes/class-wp-list-table.php","wp-admin/includes/class-wp-media-list-table.php","wp-admin/includes/class-wp-ms-sites-list-table.php","wp-admin/includes/class-wp-ms-themes-list-table.php","wp-admin/includes/class-wp-ms-users-l
14ist-table.php","wp-admin/includes/class-wp-plugin-install-list-table.php","wp-admin/includes/class-wp-plugins-list-table.php","wp-admin/includes/class-wp-posts-list-table.php","wp-admin/includes/class-wp-terms-list-table.php","wp-admin/includes/class-wp-theme-install-list-table.php","wp-admin/includes/class-wp-themes-list-table.php","wp-admin/includes/class-wp-upgrader.php","wp-admin/includes/class-wp-users-list-table.php","wp-admin/includes/comment.php","wp-admin/includes/continents-cities.php","wp-admin/includes/dashboard.php","wp-admin/includes/deprecated.php","wp-admin/includes/export.php","wp-admin/includes/file.php","wp-admin/includes/image-edit.php","wp-admin/includes/image.php","wp-admin/includes/import.php","wp-admin/includes/list-table.php","wp-admin/includes/manifest.php","wp-admin/includes/media.php","wp-admin/includes/menu.php","wp-admin/includes/meta-boxes.php","wp-admin/includes/misc.php","wp-admin/includes/ms-deprecated.php","wp-admin/includes/ms.php","wp-admin/includes/nav-menu.php","wp-admin/includes/plugin-install.php","wp-admin/includes/plugin.php","wp-admin/includes/post.php","wp-admin/includes/revision.php","wp-admin/includes/schema.php","wp-admin/includes/screen.php","wp-admin/includes/taxonomy.php","wp-admin/includes/template.php","wp-admin/includes/theme-install.php","wp-admin/includes/theme.php","wp-admin/includes/update-core.php","wp-admin/includes/update.php","wp-admin/includes/upgrade.php","wp-admin/includes/user.php","wp-admin/includes/widgets.php","wp-admin/index-extra.php","wp-admin/index.php","wp-admin/install-helper.php","wp-admin/install-rtl.css","wp-admin/install.css","wp-admin/install.php","wp-admin/js/","wp-admin/js/accordion.js","wp-admin/js/accordion.min.js","wp-admin/js/cat.dev.js","wp-admin/js/cat.js","wp-admin/js/cat.min.js","wp-admin/js/categories.dev.js","wp-admin/js/categories.js","wp-admin/js/categories.min.js","wp-admin/js/color-picker.js","wp-admin/js/color-picker.min.js","wp-admin/js/comment.dev.js","wp-admin/js/comment.js","wp-admin/js/comment.min.js","wp-admin/js/common.dev.js","wp-admin/js/common.js","wp-admin/js/common.min.js","wp-admin/js/custom-background.dev.js","wp-admin/js/custom-background.js","wp-admin/js/custom-background.min.js","wp-admin/js/custom-fields.dev.js","wp-admin/js/custom-fields.js","wp-admin/js/custom-fields.min.js","wp-admin/js/custom-header.js","wp-admin/js/customize-controls.js","wp-admin/js/customize-controls.min.js","wp-admin/js/dashboard.dev.js","wp-admin/js/dashboard.js","wp-admin/js/dashboard.min.js","wp-admin/js/edit-comments.dev.js","wp-admin/js/edit-comments.js","wp-admin/js/edit-comments.min.js","wp-admin/js/editor.dev.js","wp-admin/js/editor.js","wp-admin/js/editor.min.js","wp-admin/js/farbtastic.js","wp-admin/js/gallery.dev.js","wp-admin/js/gallery.js","wp-admin/js/gallery.min.js","wp-admin/js/image-edit.dev.js","wp-admin/js/image-edit.js","wp-admin/js/image-edit.min.js","wp-admin/js/inline-edit-post.dev.js","wp-admin/js/inline-edit-post.js","wp-admin/js/inline-edit-post.min.js","wp-admin/js/inline-edit-tax.dev.js","wp-admin/js/inline-edit-tax.js","wp-admin/js/inline-edit-tax.min.js","wp-admin/js/iris.min.js","wp-admin/js/link.dev.js","wp-admin/js/link.js","wp-admin/js/link.min.js","wp-admin/js/media-gallery.js","wp-admin/js/media-gallery.min.js","wp-admin/js/media-upload.dev.js","wp-admin/js/media-upload.js","wp-admin/js/media-upload.min.js","wp-admin/js/media.dev.js","wp-admin/js/media.js","wp-admin/js/media.min.js","wp-admin/js/nav-menu.dev.js","wp-admin/js/nav-menu.js","wp-admin/js/nav-menu.min.js","wp-admin/js/password-strength-meter.dev.js","wp-admin/js/password-strength-meter.js","wp-admin/js/password-strength-meter.min.js","wp-admin/js/plugin-install.dev.js","wp-admin/js/plugin-install.js","wp-admin/js/plugin-install.min.js","wp-admin/js/post.dev.js","wp-admin/js/post.js","wp-admin/js/post.min.js","wp-admin/js/postbox.dev.js","wp-admin/js/postbox.js","wp-admin/js/postbox.min.js","wp-admin/js/revisions-js.php","wp-admin/js/revisions.js","wp-admin/js/revisions.min.js","wp-admin/js/set-post-thumbnail.dev.js","wp-admin/js/set-post-thumbnail.js","wp-admin/js/set-post-thumbnail.min.js","wp-admin/js/site-health.min.js","wp-admin/js/tags.dev.js","wp-admin/js/tags.js","wp-admin/js/tags.min.js","wp-admin/js/theme-preview.dev.js","wp-admin/js/theme-preview.js","wp-admin/js/theme-preview.min.js","wp-admin/js/theme.js","wp-admin/js/theme.min.js","wp-admin/js/user-profile.dev.js","wp-admin/js/user-profile.js","wp-admin/js/user-profile.min.js","wp-admin/js/user-suggest.js","wp-admin/js/user-suggest.min.js","wp-admin/js/utils.dev.js","wp-admin/js/utils.js","wp-admin/js/widgets.dev.js","wp-admin/js/widgets.js","wp-admin/js/widgets.min.js","wp-admin/js/word-count.dev.js","wp-admin/js/word-count.js","wp-admin/js/word-count.min.js","wp-admin/js/wp-fullscreen.js","wp-admin/js/wp-fullscreen.min.js","wp-admin/js/xfn.dev.js","wp-admin/js/xfn.js","wp-admin/js/xfn.min.js","wp-admin/link-add.php","wp-admin/link-category.php","wp-admin/link-import.php","wp-admin/link-manager.php","wp-admin/link-parse-opml.php","wp-admin/link.php","wp-admin/load-scripts.php","wp-admin/load-styles.php","wp-admin/maint/","wp-admin/maint/repair.php","wp-admin/media-new.php","wp-admin/media-upload.php","wp-admin/media.php","wp-admin/menu-header.php","wp-admin/menu.php","wp-admin/moderation.php","wp-admin/ms-admin.php","wp-admin/ms-delete-site.php","wp-admin/ms-edit.php","wp-admin/ms-options.php","wp-admin/ms-sites.php","wp-admin/ms-themes.php","wp-admin/ms-upgrade-network.php","wp-admin/ms-users.php","wp-admin/my-sites.php","wp-admin/nav-menus.php","wp-admin/network.php","wp-admin/network/","wp-admin/network/about.php","wp-admin/network/admin.php","wp-admin/network/credits.php","wp-admin/network/edit.php","wp-admin/network/freedoms.php","wp-admin/network/index.php","wp-admin/network/menu.php","wp-admin/network/plugin-editor.php","wp-admin/network/plugin-install.php","wp-admin/network/plugins.php","wp-admin/network/profile.php","wp-admin/network/settings.php","wp-admin/network/setup.php","wp-admin/network/site-info.php","wp-admin/network/site-new.php","wp-admin/network/site-settings.php","wp-admin/network/site-themes.php","wp-admin/network/site-users.php","wp-admin/network/sites.php","wp-admin/network/theme-editor.php","wp-admin/network/theme-install.php","wp-admin/network/themes.php","wp-admin/network/update-core.php","wp-admin/network/update.php","wp-admin/network/upgrade.php","wp-admin/network/user-edit.php","wp-admin/network/user-new.php","wp-admin/network/users.php","wp-admin/options-discussion.php","wp-admin/options-general.php","wp-admin/options-head.php","wp-admin/options-media.php","wp-admin/options-misc.php","wp-admin/options-permalink.php","wp-admin/options-privacy.php","wp-admin/options-reading.php","wp-admin/options-writing.php","wp-admin/options.php","wp-admin/page-new.php","wp-admin/page.php","wp-admin/plugin-editor.php","wp-admin/plugin-install.php","wp-admin/plugins.php","wp-admin/post-new.php","wp-admin/post.php","wp-admin/press-this.php","wp-admin/profile-update.php","wp-admin/profile.php","wp-admin/revision.php","wp-admin/rtl.css","wp-admin/setup-config.php","wp-admin/sidebar.php","wp-admin/templates.php","wp-admin/theme-editor.php","wp-admin/theme-install.php","wp-admin/themes.php","wp-admin/tools.php","wp-admin/update-core.php","wp-admin/update-links.php","wp-admin/update.php","wp-admin/upgrade-functions.php","wp-admin/upgrade-schema.php","wp-admin/upgrade.php","wp-admin/upload-functions.php","wp-admin/upload-rtl.css","wp-admin/upload.css","wp-admin/upload.js","wp-admin/upload.php","wp-admin/user-edit.php","wp-admin/user-new.php","wp-admin/user/","wp-admin/user/about.php","wp-admin/user/admin.php","wp-admin/user/credits.php","wp-admin/user/freedoms.php","wp-admin/user/index.php","wp-admin/user/menu.php","wp-admin/user/profile.php","wp-admin/user/user-edit.php","wp-admin/users.js","wp-admin/users.php","wp-admin/widgets-rtl.css","wp-admin/widgets.css","wp-admin/widgets.php","wp-admin/wp-admin.css","wp-admin/xfn.js","wp-app.php","wp-atom.php","wp-blog-header.php","wp-comments-post.php","wp-commentsrss2.php","wp-config-sample.php","wp-config.php","wp-config.php.stage","wp-content/","wp-content/debug.log","wp-content/index.php","wp-content/plugins/","wp-content/plugins/akismet/","wp-content/plugins/akismet/admin.php","wp-content/plugins/akismet/akismet.css","wp-content/plugins/akismet/akismet.gif","wp-content/plugins/akismet/akismet.js","wp-content/plugins/akismet/akismet.php","wp-content/plugins/akismet/img/","wp-content/plugins/akismet/img/logo.png","wp-content/plugins/akismet/img/[email protected]","wp-content/plugins/akismet/index.php","wp-content/plugins/akismet/legacy.php","wp-content/plugins/akismet/readme.txt","wp-content/plugins/akismet/widget.php","wp-content/plugins/hello.php","wp-content/plugins/index.php","wp-content/themes/","wp-content/themes/classic/","wp-content/themes/classic/comments-popup.php","wp-content/themes/classic/comments.php","wp-content/themes/classic/footer.php","wp-content/themes/classic/functions.php","wp-content/themes/classic/header.php","wp-content/themes/classic/index.php","wp-content/themes/classic/screenshot.png","wp-content/themes/classic/sidebar.php","wp-content/themes/classic/style.css","wp-content/themes/default/","wp-content/themes/default/404.php","wp-content/themes/default/archive.php","wp-content/themes/default/archives.php","wp-content/themes/default/attachment.php","wp-content/themes/default/comments-popup.php","wp-content/themes/default/comments.php","wp-content/themes/default/footer.php","wp-content/themes/default/functions.php","wp-content/themes/default/header.php","wp-content/themes/default/images/","wp-content/themes/default/images/audio.jpg","wp-content/themes/default/images/header-img.php","wp-content/themes/default/images/kubrickbg-ltr.jpg","wp-content/themes/default/images/kubrickbg-rtl.jpg","wp-content/themes/default/images/kubrickbgcolor.
14jpg","wp-content/themes/default/images/kubrickbgwide.jpg","wp-content/themes/default/images/kubrickfooter.jpg","wp-content/themes/default/images/kubrickheader.jpg","wp-content/themes/default/index.php","wp-content/themes/default/links.php","wp-content/themes/default/page.php","wp-content/themes/default/rtl.css","wp-content/themes/default/screenshot.png","wp-content/themes/default/search.php","wp-content/themes/default/searchform.php","wp-content/themes/default/sidebar.php","wp-content/themes/default/single.php","wp-content/themes/default/style.css","wp-content/themes/index.php","wp-content/themes/twentyten/","wp-content/themes/twentyten/404.php","wp-content/themes/twentyten/archive.php","wp-content/themes/twentyten/attachment.php","wp-content/themes/twentyten/author.php","wp-content/themes/twentyten/category.php","wp-content/themes/twentyten/comments.php","wp-content/themes/twentyten/editor-style-rtl.css","wp-content/themes/twentyten/editor-style.css","wp-content/themes/twentyten/footer.php","wp-content/themes/twentyten/functions.php","wp-content/themes/twentyten/header.php","wp-content/themes/twentyten/images/","wp-content/themes/twentyten/images/headers/","wp-content/themes/twentyten/images/headers/berries-thumbnail.jpg","wp-content/themes/twentyten/images/headers/berries.jpg","wp-content/themes/twentyten/images/headers/cherryblossoms-thumbnail.jpg","wp-content/themes/twentyten/images/headers/cherryblossoms.jpg","wp-content/themes/twentyten/images/headers/concave-thumbnail.jpg","wp-content/themes/twentyten/images/headers/concave.jpg","wp-content/themes/twentyten/images/headers/fern-thumbnail.jpg","wp-content/themes/twentyten/images/headers/fern.jpg","wp-content/themes/twentyten/images/headers/forestfloor-thumbnail.jpg","wp-content/themes/twentyten/images/headers/forestfloor.jpg","wp-content/themes/twentyten/images/headers/inkwell-thumbnail.jpg","wp-content/themes/twentyten/images/headers/inkwell.jpg","wp-content/themes/twentyten/images/headers/path-thumbnail.jpg","wp-content/themes/twentyten/images/headers/path.jpg","wp-content/themes/twentyten/images/headers/sunset-thumbnail.jpg","wp-content/themes/twentyten/images/headers/sunset.jpg","wp-content/themes/twentyten/images/wordpress.png","wp-content/themes/twentyten/index.php","wp-content/themes/twentyten/languages/","wp-content/themes/twentyten/languages/twentyten.pot","wp-content/themes/twentyten/license.txt","wp-content/themes/twentyten/loop.php","wp-content/themes/twentyten/onecolumn-page.php","wp-content/themes/twentyten/page.php","wp-content/themes/twentyten/rtl.css","wp-content/themes/twentyten/screenshot.png","wp-content/themes/twentyten/search.php","wp-content/themes/twentyten/sidebar-footer.php","wp-content/themes/twentyten/sidebar.php","wp-content/themes/twentyten/single.php","wp-content/themes/twentyten/style.css","wp-content/themes/twentyten/tag.php","wp-content/themes/twentythirteen/","wp-content/themes/twentythirteen/404.php","wp-content/themes/twentythirteen/archive.php","wp-content/themes/twentythirteen/author-bio.php","wp-content/themes/twentythirteen/author.php","wp-content/themes/twentythirteen/category.php","wp-content/themes/twentythirteen/comments.php","wp-content/themes/twentythirteen/content-aside.php","wp-content/themes/twentythirteen/content-audio.php","wp-content/themes/twentythirteen/content-chat.php","wp-content/themes/twentythirteen/content-gallery.php","wp-content/themes/twentythirteen/content-image.php","wp-content/themes/twentythirteen/content-link.php","wp-content/themes/twentythirteen/content-none.php","wp-content/themes/twentythirteen/content-quote.php","wp-content/themes/twentythirteen/content-status.php","wp-content/themes/twentythirteen/content-video.php","wp-content/themes/twentythirteen/content.php","wp-content/themes/twentythirteen/css/","wp-content/themes/twentythirteen/css/editor-style.css","wp-content/themes/twentythirteen/css/ie.css","wp-content/themes/twentythirteen/fonts/","wp-content/themes/twentythirteen/fonts/COPYING.txt","wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.eot","wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.svg","wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.ttf","wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.woff","wp-content/themes/twentythirteen/fonts/genericons.css","wp-content/themes/twentythirteen/fonts/LICENSE.txt","wp-content/themes/twentythirteen/footer.php","wp-content/themes/twentythirteen/functions.php","wp-content/themes/twentythirteen/header.php","wp-content/themes/twentythirteen/image.php","wp-content/themes/twentythirteen/images/","wp-content/themes/twentythirteen/images/dotted-line-2x.png","wp-content/themes/twentythirteen/images/dotted-line-light-2x.png","wp-content/themes/twentythirteen/images/dotted-line-light.png","wp-content/themes/twentythirteen/images/dotted-line.png","wp-content/themes/twentythirteen/images/headers/","wp-content/themes/twentythirteen/images/headers/circle-thumbnail.png","wp-content/themes/twentythirteen/images/headers/circle.png","wp-content/themes/twentythirteen/images/headers/diamond-thumbn
14ail.png","wp-content/themes/twentythirteen/images/headers/diamond.png","wp-content/themes/twentythirteen/images/headers/star-thumbnail.png","wp-content/themes/twentythirteen/images/headers/star.png","wp-content/themes/twentythirteen/images/search-icon-2x.png","wp-content/themes/twentythirteen/images/search-icon.png","wp-content/themes/twentythirteen/inc/","wp-content/themes/twentythirteen/inc/back-compat.php","wp-content/themes/twentythirteen/inc/custom-header.php","wp-content/themes/twentythirteen/index.php","wp-content/themes/twentythirteen/js/","wp-content/themes/twentythirteen/js/functions.js","wp-content/themes/twentythirteen/js/html5.js","wp-content/themes/twentythirteen/js/theme-customizer.js","wp-content/themes/twentythirteen/languages/","wp-content/themes/twentythirteen/languages/twentythirteen.pot","wp-content/themes/twentythirteen/page.php","wp-content/themes/twentythirteen/rtl.css","wp-content/themes/twentythirteen/screenshot.png","wp-content/themes/twentythirteen/search.php","wp-content/themes/twentythirteen/sidebar-main.php","wp-content/themes/twentythirteen/sidebar.php","wp-content/themes/twentythirteen/single.php","wp-content/themes/twentythirteen/style.css","wp-content/themes/twentythirteen/tag.php","wp-content/themes/twentythirteen/taxonomy-post_format.php","wp-content/themes/twentytwelve/","wp-content/themes/twentytwelve/404.php","wp-content/themes/twentytwelve/archive.php","wp-content/themes/twentytwelve/author.php","wp-content/themes/twentytwelve/category.php","wp-content/themes/twentytwelve/comments.php","wp-content/themes/twentytwelve/content-aside.php","wp-content/themes/twentytwelve/content-image.php","wp-content/themes/twentytwelve/content-link.php","wp-content/themes/twentytwelve/content-none.php","wp-content/themes/twentytwelve/content-page.php","wp-content/themes/twentytwelve/content-quote.php","wp-content/themes/twentytwelve/content-status.php","wp-content/themes/twentytwelve/content.php","wp-content/themes/twentytwelve/css/","wp-content/themes/twentytwelve/css/ie.css","wp-content/themes/twentytwelve/editor-style-rtl.css","wp-content/themes/twentytwelve/editor-style.css","wp-content/themes/twentytwelve/footer.php","wp-content/themes/twentytwelve/functions.php","wp-content/themes/twentytwelve/header.php","wp-content/themes/twentytwelve/image.php","wp-content/themes/twentytwelve/inc/","wp-content/themes/twentytwelve/inc/custom-header.php","wp-content/themes/twentytwelve/index.php","wp-content/themes/twentytwelve/js/","wp-content/themes/twentytwelve/js/html5.js","wp-content/themes/twentytwelve/js/navigation.js","wp-content/themes/twentytwelve/js/theme-customizer.js","wp-content/themes/twentytwelve/languages/","wp-content/themes/twentytwelve/languages/twentytwelve.pot","wp-content/themes/twentytwelve/page-templates/","wp-content/themes/twentytwelve/page-templates/front-page.php","wp-content/themes/twentytwelve/page-templates/full-width.php","wp-content/themes/twentytwelve/page.php","wp-content/themes/twentytwelve/rtl.css","wp-content/themes/twentytwelve/screenshot.png","wp-content/themes/twentytwelve/search.php","wp-content/themes/twentytwelve/sidebar-front.php","wp-content/themes/twentytwelve/sidebar.php","wp-content/themes/twentytwelve/single.php","wp-content/themes/twentytwelve/style.css","wp-content/themes/twentytwelve/tag.php","wp-cron.php","wp-feed.php","wp-includes/","wp-includes/admin-bar.php","wp-includes/atomlib.php","wp-includes/author-template.php","wp-includes/bookmark-template.php","wp-includes/bookmark.php","wp-includes/cache.php","wp-includes/canonical.php","wp-includes/capabilities.php","wp-includes/category-template.php","wp-includes/category.php","wp-includes/class-feed.php","wp-includes/class-http.php","wp-includes/class-IXR.php","wp-includes/class-json.php","wp-includes/class-oembed.php","wp-includes/class-phpass.php","wp-includes/class-phpmailer.php","wp-includes/class-pop3.php","wp-includes/class-simplepie.php","wp-includes/class-smtp.php","wp-includes/class-snoopy.php","wp-includes/class-wp-admin-bar.php","wp-includes/class-wp-ajax-response.php","wp-includes/class-wp-customize-control.php","wp-includes/class-wp-customize-manager.php","wp-includes/class-wp-customize-section.php","wp-includes/class-wp-customize-setting.php","wp-includes/class-wp-editor.php","wp-includes/class-wp-embed.php","wp-includes/class-wp-error.php","wp-includes/class-wp-http-ixr-client.php","wp-includes/class-wp-image-editor-gd.php","wp-includes/class-wp-image-editor-imagick.php","wp-includes/class-wp-image-editor.php","wp-includes/class-wp-theme.php","wp-includes/class-wp-walker.php","wp-includes/class-wp-xmlrpc-server.php","wp-includes/class-wp.php","wp-includes/class.wp-dependencies.php","wp-includes/class.wp-scripts.php","wp-includes/class.wp-styles.php","wp-includes/classes.php","wp-includes/comment-template.php","wp-includes/comment.php","wp-includes/compat.php","wp-includes/cron.php","wp-includes/css/","wp-includes/css/admin-bar-rtl.css","wp-includes/css/admin-bar-rtl.min.css","wp-includes/css/admin-bar.css","wp-includes/css/admin-bar.min.css","wp-includes/css/buttons.css","wp-includes/css/buttons.min.css","wp-includes/css/editor.css","wp-includes/css/editor.min.css","wp-includes/css/jquery-ui-dialog.css","wp-includes/css/jquery-ui-dialog.min.css","wp-includes/css/media-views-rtl.css","wp-includes/css/media-views-rtl.min.css","wp-includes/css/media-views.css","wp-includes/css/media-views.min.css","wp-includes/css/wp-auth-check.css","wp-includes/css/wp-auth-check.min.css","wp-includes/css/wp-pointer.css","wp-includes/css/wp-pointer.min.css","wp-includes/default-constants.php","wp-includes/default-embeds.php","wp-includes/default-filters.php","wp-includes/default-widgets.php","wp-includes/deprecated.php","wp-includes/feed-atom-comments.php","wp-includes/feed-atom.php","wp-includes/feed-rdf.php","wp-includes/feed-rss.php","wp-includes/feed-rss2-comments.php","wp-includes/feed-rss2.php","wp-includes/feed.php","wp-includes/formatting.php","wp-includes/functions.php","wp-includes/functions.wp-scripts.php","wp-includes/functions.wp-styles.php","wp-includes/general-template.php","wp-includes/gettext.php","wp-includes/http.php","wp-includes/ID3/","wp-includes/ID3/getid3.lib.php","wp-includes/ID3/getid3.php","wp-includes/ID3/license.commercial.txt","wp-includes/ID3/license.txt","wp-includes/ID3/module.audio-video.asf.php","wp-includes/ID3/module.audio-video.flv.php","wp-includes/ID3/module.audio-video.matroska.php","wp-includes/ID3/module.audio-video.quicktime.php","wp-includes/ID3/module.audio-video.riff.php","wp-includes/ID3/module.audio.ac3.php","wp-includes/ID3/module.audio.dts.php","wp-includes/ID3/module.audio.flac.php","wp-includes/ID3/module.audio.mp3.php","wp-includes/ID3/module.audio.ogg.php","wp-includes/ID3/module.tag.apetag.php","wp-includes/ID3/module.tag.id3v1.php","wp-includes/ID3/module.tag.id3v2.php","wp-includes/ID3/module.tag.lyrics3.php","wp-includes/ID3/readme.txt","wp-includes/images/","wp-includes/images/admin-bar-sprite-2x.png","wp-includes/images/admin-bar-sprite.png","wp-includes/images/arrow-pointer-blue-2x.png","wp-includes/images/arrow-pointer-blue.png","wp-includes/images/blank.gif","wp-includes/images/crystal/","wp-includes/images/crystal/archive.png","wp-includes/images/crystal/audio.png","wp-includes/images/crystal/code.png","wp-includes/images/crystal/default.png","wp-includes/images/crystal/document.png","wp-includes/images/crystal/interactive.png","wp-includes/images/crystal/license.txt","wp-includes/images/crystal/spreadsheet.png","wp-includes/images/crystal/text.png","wp-includes/images/crystal/video.png","wp-includes/images/down_arrow-2x.gif","wp-includes/images/down_arrow.gif","wp-includes/images/icon-pointer-flag-2x.png","wp-includes/images/icon-pointer-flag.png","wp-includes/images/rss-2x.png","wp-includes/images/rss.png","wp-includes/images/smilies/","wp-includes/images/smilies/icon_arrow.gif","wp-includes/images/smilies/icon_biggrin.gif","wp-includes/images/smilies/icon_confused.gif","wp-includes/images/smilies/icon_cool.gif","wp-includes/images/smilies/icon_cry.gif","wp-includes/images/smilies/icon_eek.gif","wp-includes/images/smilies/icon_evil.gif","wp-includes/images/smilies/icon_exclaim.gif","wp-includes/images/smilies/icon_idea.gif","wp-includes/images/smilies/icon_lol.gif","wp-includes/images/smilies/icon_mad.gif","wp-includes/images/smilies/icon_mrgreen.gif","wp-includes/images/smilies/icon_neutral.gif","wp-includes/images/smilies/icon_question.gif","wp-includes/images/smilies/icon_razz.gif","wp-includes/images/smilies/icon_redface.gif","wp-includes/images/smilies/icon_rolleyes.gif","wp-includes/images/smilies/icon_sad.gif","wp-includes/images/smilies/icon_smile.gif","wp-includes/images/smilies/icon_surprised.gif","wp-includes/images/smilies/icon_twisted.gif","wp-includes/images/smilies/icon_
14wink.gif","wp-includes/images/toggle-arrow-2x.png","wp-includes/images/toggle-arrow.png","wp-includes/images/upload.png","wp-includes/images/uploader-icons-2x.png","wp-includes/images/uploader-icons.png","wp-includes/images/wlw/","wp-includes/images/wlw/wp-comments.png","wp-includes/images/wlw/wp-icon.png","wp-includes/images/wlw/wp-watermark.png","wp-includes/images/wpicons-2x.png","wp-includes/images/wpicons.png","wp-includes/images/wpmini-blue-2x.png","wp-includes/images/wpmini-blue.png","wp-includes/images/wpspin-2x.gif","wp-includes/images/wpspin.gif","wp-includes/images/xit-2x.gif","wp-includes/images/xit.gif","wp-includes/js/","wp-includes/js/admin-bar.js","wp-includes/js/admin-bar.min.js","wp-includes/js/autosave.dev.js","wp-includes/js/autosave.js","wp-includes/js/autosave.min.js","wp-includes/js/backbone.min.js","wp-includes/js/colorpicker.dev.js","wp-includes/js/colorpicker.js","wp-includes/js/colorpicker.min.js","wp-includes/js/comment-reply.dev.js","wp-includes/js/comment-reply.js","wp-includes/js/comment-reply.min.js","wp-includes/js/crop/","wp-includes/js/crop/cropper.css","wp-includes/js/crop/cropper.js","wp-includes/js/crop/marqueeHoriz.gif","wp-includes/js/crop/marqueeVert.gif","wp-includes/js/customize-base.js","wp-includes/js/customize-base.min.js","wp-includes/js/customize-loader.js","wp-includes/js/customize-loader.min.js","wp-includes/js/customize-preview.js","wp-includes/js/customize-preview.min.js","wp-includes/js/dbx.js","wp-includes/js/fat.js","wp-includes/js/heartbeat.js","wp-includes/js/heartbeat.min.js","wp-includes/js/hoverIntent.dev.js","wp-includes/js/hoverIntent.js","wp-includes/js/hoverIntent.min.js","wp-includes/js/imgareaselect/","wp-includes/js/imgareaselect/border-anim-h.gif","wp-includes/js/imgareaselect/border-anim-v.gif","wp-includes/js/imgareaselect/imgareaselect.css","wp-includes/js/imgareaselect/jquery.imgareaselect.dev.js","wp-includes/js/imgareaselect/jquery.imgareaselect.js","wp-includes/js/imgareaselect/jquery.imgareaselect.min.js","wp-includes/js/jcrop/","wp-includes/js/jcrop/Jcrop.gif","wp-includes/js/jcrop/jquery.Jcrop.css","wp-includes/js/jcrop/jquery.Jcrop.dev.js","wp-includes/js/jcrop/jquery.Jcrop.js","wp-includes/js/jcrop/jquery.Jcrop.min.css","wp-includes/js/jcrop/jquery.Jcrop.min.js","wp-includes/js/jquery/","wp-includes/js/jquery/interface.js","wp-includes/js/jquery/jquery-migrate.js","wp-includes/js/jquery/jquery-migrate.min.js","wp-includes/js/jquery/jquery.color.dev.js","wp-includes/js/jquery/jquery.color.js","wp-includes/js/jquery/jquery.color.min.js","wp-includes/js/jquery/jquery.form.dev.js","wp-includes/js/jquery/jquery.form.js","wp-includes/js/jquery/jquery.form.min.js","wp-includes/js/jquery/jquery.hotkeys.dev.js","wp-includes/js/jquery/jquery.hotkeys.js","wp-includes/js/jquery/jquery.hotkeys.min.js","wp-includes/js/jquery/jquery.js","wp-includes/js/jquery/jquery.masonry.min.js","wp-includes/js/jquery/jquery.query.js","wp-includes/js/jquery/jquery.schedule.js","wp-includes/js/jquery/jquery.serialize-object.js","wp-includes/js/jquery/jquery.table-hotkeys.dev.js","wp-includes/js/jquery/jquery.table-hotkeys.js","wp-includes/js/jquery/jquery.table-hotkeys.min.js","wp-includes/js/jquery/jquery.ui.touch-punch.js","wp-includes/js/jquery/suggest.dev.js","wp-includes/js/jquery/suggest.js","wp-includes/js/jquery/suggest.min.js","wp-includes/js/jquery/ui.core.js","wp-includes/js/jquery/ui.dialog.js","wp-includes/js/jquery/ui.draggable.js","wp-includes/js/jquery/ui.droppable.js","wp-includes/js/jquery/ui.resizable.js","wp-includes/js/jquery/ui.selectable.js","wp-includes/js/jquery/ui.sortable.js","wp-includes/js/jquery/ui.tabs.js","wp-includes/js/jquery/ui/","wp-includes/js/jquery/ui/jquery.ui.accordion.min.js","wp-includes/js/jquery/ui/jquery.ui.autocomplete.min.js","wp-includes/js/jquery/ui/jquery.ui.button.min.js","wp-includes/js/jquery/ui/jquery.ui.core.min.js","wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js","wp-includes/js/jquery/ui/jquery.ui.dialog.min.js","wp-includes/js/jquery/ui/jquery.ui.draggable.min.js","wp-includes/js/jquery/ui/jquery.ui.droppable.min.js","wp-includes/js/jquery/ui/jquery.ui.effect-blind.min.js","wp-includes/js/jquery/ui/jquery.ui.effect-bounce.min.js","wp-includes/js/jquery/ui/jquery.ui.effect-clip.min.js","wp-includes/js/jquery/ui/jquery.ui.effect-drop.min.js","wp-includes/js/jquery/ui/jquery.ui.effect-explode.min.js","wp-includes/js/jquery/ui/jquery.ui.effect-fade.min.js","wp-includes/js/jquery/ui/jquery.ui.effect-fold.min.js","wp-includes/js/jquery/ui/jquery.ui.effect-highlight.min.js","wp-includes/js/jquery/ui/jquery.ui.effect-pulsate.min.js","wp-includes/js/jquery/ui/jquery.ui.effect-scale.min.js","wp-includes/js/jquery/ui/jquery.ui.effect-shake.min.js","wp-includes/js/jquery/ui/jquery.ui.effect-slide.min.js","wp-includes/js/jquery/ui/jquery.ui.effect-transfer.min.js","wp-includes/js/jquery/ui/jquery.ui.effect.min.js","wp-includes/js/jquery/ui/jquery.ui.menu.min.js","wp-includes/js/jquery/ui/jquery.ui.mouse.min.js","wp-includes/js/jquery/ui/jquery.ui.position.min.js","wp-includes/js/jquery/ui/jquery.ui.progressbar.min.js","wp-includes/js/jquery/ui/jquery.ui.resizable.min.js","wp-includes/js/jquery/ui/jquery.ui.selectable.min.js","wp-includes/js/jquery/ui/jquery.ui.slider.min.js","wp-includes/js/jquery/ui/jquery.ui.sortable.min.js","wp-includes/js/jquery/ui/jquery.ui.spinner.min.js","wp-includes/js/jquery/ui/jquery.ui.tabs.min.js","wp-includes/js/jquery/ui/jquery.ui.tooltip.min.js","wp-includes/js/jquery/ui/jquery.ui.widget.min.js","wp-includes/js/json2.dev.js","wp-includes/js/json2.js","wp-includes/js/json2.min.js","wp-includes/js/list-manipulation.js","wp-includes/js/mce-view.js","wp-includes/js/mce-view.min.js","wp-includes/js/media-editor.js","wp-includes/js/media-editor.min.js","wp-includes/js/media-models.js","wp-includes/js/media-models.min.js","wp-includes/js/media-views.js","wp-includes/js/media-views.min.js","wp-includes/js/mediaelement/","wp-includes/js/mediaelement/background.png","wp-includes/js/mediaelement/bigplay.png","wp-includes/js/mediaelement/bigplay.svg","wp-includes/js/mediaelement/controls.png","wp-includes/js/mediaelement/controls.svg","wp-includes/js/mediaelement/flashmediaelement.swf","wp-includes/js/mediaelement/loading.gif","wp-includes/js/mediaelement/mediaelement-and-player.min.js","wp-includes/js/mediaelement/mediaelementplayer.min.css","wp-includes/js/mediaelement/silverlightmediaelement.xap","wp-includes/js/mediaelement/wp-mediaelement.css","wp-includes/js/mediaelement/wp-mediaelement.js","wp-includes/js/plupload/","wp-includes/js/plupload/changelog.txt","wp-includes/js/plupload/handlers.js","wp-includes/js/plupload/handlers.min.js","wp-includes/js/plupload/license.txt","wp-includes/js/plupload/plupload.flash.js","wp-includes/js/plupload/plupload.flash.swf","wp-includes/js/plupload/plupload.html4.js","wp-includes/js/plupload/plupload.html5.js","wp-includes/js/plupload/plupload.js","wp-includes/js/plupload/plupload.silverlight.js","wp-includes/js/plupload/plupload.silverlight.xap","wp-includes/js/plupload/wp-plupload.js","wp-includes/js/plupload/wp-plupload.min.js","wp-includes/js/prototype.js","wp-includes/js/quicktags.dev.js","wp-includes/js/quicktags.js","wp-includes/js/quicktags.min.js","wp-includes/js/scriptaculous/","wp-includes/js/scriptaculous/builder.js","wp-includes/js/scriptaculous/control
14s.js","wp-includes/js/scriptaculous/dragdrop.js","wp-includes/js/scriptaculous/effects.js","wp-includes/js/scriptaculous/MIT-LICENSE","wp-includes/js/scriptaculous/prototype.js","wp-includes/js/scriptaculous/scriptaculous.js","wp-includes/js/scriptaculous/slider.js","wp-includes/js/scriptaculous/sound.js","wp-includes/js/scriptaculous/unittest.js","wp-includes/js/scriptaculous/wp-scriptaculous.js","wp-includes/js/shortcode.js","wp-includes/js/shortcode.min.js","wp-includes/js/swfobject.js","wp-includes/js/swfupload/","wp-includes/js/swfupload/handlers.dev.js","wp-includes/js/swfupload/handlers.js","wp-includes/js/swfupload/handlers.min.js","wp-includes/js/swfupload/license.txt","wp-includes/js/swfupload/plugins/","wp-includes/js/swfupload/plugins/swfupload.cookies.js","wp-includes/js/swfupload/plugins/swfupload.queue.js","wp-includes/js/swfupload/plugins/swfupload.speed.js","wp-includes/js/swfupload/plugins/swfupload.swfobject.js","wp-includes/js/swfupload/swfupload-all.js","wp-includes/js/swfupload/swfupload.js","wp-includes/js/swfupload/swfupload.swf","wp-includes/js/thickbox/","wp-includes/js/thickbox/loadingAnimation.gif","wp-includes/js/thickbox/macFFBgHack.png","wp-includes/js/thickbox/tb-close-2x.png","wp-includes/js/thickbox/tb-close.png","wp-includes/js/thickbox/thickbox.css","wp-includes/js/thickbox/thickbox.js","wp-includes/js/tinymce/","wp-includes/js/tinymce/blank.htm","wp-includes/js/tinymce/langs/","wp-includes/js/tinymce/langs/en.js","wp-includes/js/tinymce/langs/wp-langs-en.js","wp-includes/js/tinymce/langs/wp-langs.php","wp-includes/js/tinymce/license.html","wp-includes/js/tinymce/license.txt","wp-includes/js/tinymce/mark_loaded_src.js","wp-includes/js/tinymce/plugins/","wp-includes/js/tinymce/plugins/autosave/","wp-includes/js/tinymce/plugins/autosave/editor_plugin.js","wp-includes/js/tinymce/plugins/autosave/editor_plugin_src.js","wp-includes/js/tinymce/plugins/autosave/langs","wp-includes/js/tinymce/plugins/autosave/readme.txt","wp-includes/js/tinymce/plugins/directionality/","wp-includes/js/tinymce/plugins/directionality/editor_plugin.js","wp-includes/js/tinymce/plugins/directionality/editor_plugin_src.js","wp-includes/js/tinymce/plugins/directionality/images","wp-includes/js/tinymce/plugins/directionality/langs","wp-includes/js/tinymce/plugins/fullscreen/","wp-includes/js/tinymce/plugins/fullscreen/editor_plugin.js","wp-includes/js/tinymce/plugins/fullscreen/editor_plugin_src.js","wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm","wp-includes/js/tinymce/plugins/inlinepopups/","wp-includes/js/tinymce/plugins/inlinepopups/css","wp-includes/js/tinymce/plugins/inlinepopups/editor_plugin.js","wp-includes/js/tinymce/plugins/inlinepopups/editor_plugin_src.js","wp-includes/js/tinymce/plugins/inlinepopups/images","wp-includes/js/tinymce/plugins/inlinepopups/jscripts","wp-includes/js/tinymce/plugins/inlinepopups/skins","wp-includes/js/tinymce/plugins/inlinepopups/skins/","wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/","wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/","wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif","wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif","wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif","wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif","wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif","wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/drag.gif","wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif","wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif","wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css","wp-includes/js/tinymce/plugins/inlinepopups/template.htm","wp-includes/js/tinymce/plugins/media/","wp-includes/js/tinymce/plugins/media/css","wp-includes/js/tinymce/plugins/media/css/","wp-includes/js/tinymce/plugins/media/css/media.css","wp-includes/js/tinymce/plugins/media/editor_plugin.js","wp-includes/js/tinymce/plugins/media/editor_plugin_src.js","wp-includes/js/tinymce/plugins/media/img","wp-includes/js/tinymce/plugins/media/js","wp-includes/js/tinymce/plugins/media/js/","wp-includes/js/tinymce/plugins/media/js/embed.js","wp-includes/js/tinymce/plugins/media/js/media.js","wp-includes/js/tinymce/plugins/media/media.htm","
14wp-includes/js/tinymce/plugins/media/moxieplayer.swf","wp-includes/js/tinymce/plugins/paste/","wp-includes/js/tinymce/plugins/paste/blank.htm","wp-includes/js/tinymce/plugins/paste/css","wp-includes/js/tinymce/plugins/paste/editor_plugin.js","wp-includes/js/tinymce/plugins/paste/editor_plugin_src.js","wp-includes/js/tinymce/plugins/paste/images","wp-includes/js/tinymce/plugins/paste/js","wp-includes/js/tinymce/plugins/paste/js/","wp-includes/js/tinymce/plugins/paste/js/pastetext.js","wp-includes/js/tinymce/plugins/paste/js/pasteword.js","wp-includes/js/tinymce/plugins/paste/jscripts","wp-includes/js/tinymce/plugins/paste/langs","wp-includes/js/tinymce/plugins/paste/pastetext.htm","wp-includes/js/tinymce/plugins/paste/pasteword.htm","wp-includes/js/tinymce/plugins/safari/","wp-includes/js/tinymce/plugins/safari/blank.htm","wp-includes/js/tinymce/plugins/safari/editor_plugin.js","wp-includes/js/tinymce/plugins/spellchecker/","wp-includes/js/tinymce/plugins/spellchecker/changelog.txt","wp-includes/js/tinymce/plugins/spellchecker/classes","wp-includes/js/tinymce/plugins/spellchecker/classes/","wp-includes/js/tinymce/plugins/spellchecker/classes/EnchantSpell.php","wp-includes/js/tinymce/plugins/spellchecker/classes/GoogleSpell.php","wp-includes/js/tinymce/plugins/spellchecker/classes/PSpell.php","wp-includes/js/tinymce/plugins/spellchecker/classes/PSpellShell.php","wp-includes/js/tinymce/plugins/spellchecker/classes/SpellChecker.php","wp-includes/js/tinymce/plugins/spellchecker/classes/utils/","wp-includes/js/tinymce/plugins/spellchecker/classes/utils/JSON.php","wp-includes/js/tinymce/plugins/spellchecker/classes/utils/Logger.php","wp-includes/js/tinymce/plugins/spellchecker/config.php","wp-includes/js/tinymce/plugins/spellchecker/css","wp-includes/js/tinymce/plugins/spellchecker/css/","wp-includes/js/tinymce/plugins/spellchecker/css/content.css","wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js","wp-includes/js/tinymce/plugins/spellchecker/editor_plugin_src.js","wp-includes/js/tinymce/plugins/spellchecker/images","wp-includes/js/tinymce/plugins/spellchecker/img","wp-includes/js/tinymce/plugins/spellchecker/img/","wp-includes/js/tinymce/plugins/spellchecker/img/wline.gif","wp-includes/js/tinymce/plugins/spellchecker/includes","wp-includes/js/tinymce/plugins/spellchecker/includes/","wp-includes/js/tinymce/plugins/spellchecker/includes/general.php","wp-includes/js/tinymce/plugins/spellchecker/langs","wp-includes/js/tinymce/plugins/spellchecker/rpc.php","wp-includes/js/tinymce/plugins/spellchecker/tinyspell.php","wp-includes/js/tinymce/plugins/tabfocus/","wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js","wp-includes/js/tinymce/plugins/tabfocus/editor_plugin_src.js","wp-includes/js/tinymce/plugins/wordpress/","wp-includes/js/tinymce/plugins/wordpress/css","wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js","wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js","wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js","wp-includes/js/tinymce/plugins/wordpress/images","wp-includes/js/tinymce/plugins/wordpress/img","wp-includes/js/tinymce/plugins/wordpress/img/","wp-includes/js/tinymce/plugins/wordpress/img/audio.gif","wp-includes/js/tinymce/plugins/wordpress/img/image.gif","wp-includes/js/tinymce/plugins/wordpress/img/media.gif","wp-includes/js/tinymce/plugins/wordpress/img/page.gif","wp-includes/js/tinymce/plugins/wordpress/img/trans.gif","wp-includes/js/tinymce/plugins/wordpress/img/video.gif","wp-includes/js/tinymce/plugins/wordpress/langs","wp-includes/js/tinymce/plugins/wordpress/popups.css","wp-includes/js/tinymce/plugins/wordpress/wordpress.css","wp-includes/js/tinymce/plugins/wpdialogs/","wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.js","wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin_src.js","wp-includes/js/tinymce/plugins/wpdialogs/js/","wp-includes/js/tinymce/plugins/wpdialogs/js/popup.js","wp-includes/js/tinymce/plugins/wpdialogs/js/popup.min.js","wp-includes/js/tinymce/plugins/wpdialogs/js/wpdialog.js","wp-includes/js/tinymce/plugins/wpdialogs/js/wpdialog.min.js","wp-includes/js/tinymce/plugins/wpeditimage/","wp-includes/js/tinymce/plugins/wpeditimage/css","wp-includes/js/tinymce/plugins/wpeditimage/css/","wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css","wp-includes/js/tinymce/plugins/wpeditimage/editimage.html","wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.dev.js","wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js","wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin_src.js","wp-includes/js/tinymce/plugins/wpeditimage/img","wp-includes/js/tinymce/plugins/wpeditimage/img/","wp-includes/js/tinymce/plugins/wpeditimage/img/delete-2x.png","wp-includes/js/tinymce/plugins/wpeditimage/img/delete.png","wp-includes/js/tinymce/plugins/wpeditimage/img/image-2x.png","wp-includes/js/tinymce/plugins/wpeditimage/img/image.png","wp-includes/js/tinymce/plugins/wpeditimage/js","wp-includes/js/tinymce/plugins/wpeditimage/js/","wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js","wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.min.js","wp-includes/js/tinymce/plugins/wpfullscreen/","wp-includes/js/tinymce/plugins/wpfullscreen/css/","wp-includes/js/tinymce/plugins/wpfullscreen/css/wp-fullscreen.css","wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.js","wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js","wp-includes/js/tinymce/plugins/wpgallery/","wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.dev.js","wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js","wp-includes/js/tinymce/plugins/wpgallery/editor_plugin_src.js","wp-includes/js/tinymce/plugins/wpgallery/img","wp-includes/js/tinymce/plugins/wpgallery/img/","wp-includes/js/tinymce/plugins/wpgallery/img/delete-2x.png","wp-includes/js/tinymce/plugins/wpgallery/img/delete.png","wp-includes/js/tinymce/plugins/wpgallery/img/edit-2x.png","wp-includes/js/tinymce/plugins/wpgallery/img/edit.png","wp-includes/js/tinymce/plugins/wpgallery/img/t.gif","wp-includes/js/tinymce/plugins/wphelp/","wp-includes/js/tinymce/plugins/wphelp/editor_plugin.js","wp-includes/js/tinymce/plugins/wphelp/images","wp-includes/js/tinymce/plugins/wphelp/langs","wp-includes/js/tinymce/plugins/wplink/","wp-includes/js/tinymce/plugins/wplink/editor_plugin.js","wp-includes/js/tinymce/plugins/wplink/editor_plugin_src.js","wp-includes/js/tinymce/plugins/wpview/","wp-includes/js/tinymce/plugins/wpview/editor_plugin.js","wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js","wp-includes/js/tinymce/themes/","wp-includes/js/tinymce/themes/advanced/","wp-includes/js/tinymce/themes/advanced/about.htm","wp-includes/js/tinymce/themes/advanced/anchor.htm","wp-includes/js/tinymce/themes/advanced/charmap.htm","
14wp-includes/js/tinymce/themes/advanced/color_picker.htm","wp-includes/js/tinymce/themes/advanced/css","wp-includes/js/tinymce/themes/advanced/editor_template.js","wp-includes/js/tinymce/themes/advanced/editor_template_src.js","wp-includes/js/tinymce/themes/advanced/image.htm","wp-includes/js/tinymce/themes/advanced/images","wp-includes/js/tinymce/themes/advanced/img","wp-includes/js/tinymce/themes/advanced/img/","wp-includes/js/tinymce/themes/advanced/img/colorpicker.jpg","wp-includes/js/tinymce/themes/advanced/img/flash.gif","wp-includes/js/tinymce/themes/advanced/img/gotmoxie.png","wp-includes/js/tinymce/themes/advanced/img/icons.gif","wp-includes/js/tinymce/themes/advanced/img/iframe.gif","wp-includes/js/tinymce/themes/advanced/img/pagebreak.gif","wp-includes/js/tinymce/themes/advanced/img/quicktime.gif","wp-includes/js/tinymce/themes/advanced/img/realmedia.gif","wp-includes/js/tinymce/themes/advanced/img/shockwave.gif","wp-includes/js/tinymce/themes/advanced/img/trans.gif","wp-includes/js/tinymce/themes/advanced/img/video.gif","wp-includes/js/tinymce/themes/advanced/img/windowsmedia.gif","wp-includes/js/tinymce/themes/advanced/js","wp-includes/js/tinymce/themes/advanced/js/","wp-includes/js/tinymce/themes/advanced/js/about.js","wp-includes/js/tinymce/themes/advanced/js/anchor.js","wp-includes/js/tinymce/themes/advanced/js/charmap.js","wp-includes/js/tinymce/themes/advanced/js/color_picker.js","wp-includes/js/tinymce/themes/advanced/js/image.js","wp-includes/js/tinymce/themes/advanced/js/link.js","wp-includes/js/tinymce/themes/advanced/js/source_editor.js","wp-includes/js/tinymce/themes/advanced/jscripts","wp-includes/js/tinymce/themes/advanced/langs","wp-includes/js/tinymce/themes/advanced/link.htm","wp-includes/js/tinymce/themes/advanced/shortcuts.htm","wp-includes/js/tinymce/themes/advanced/skins","wp-includes/js/tinymce/themes/advanced/skins/","wp-includes/js/tinymce/themes/advanced/skins/default/","wp-includes/js/tinymce/themes/advanced/skins/default/content.css","wp-includes/js/tinymce/themes/advanced/skins/default/dialog.css","wp-includes/js/tinymce/themes/advanced/skins/default/img/","wp-includes/js/tinymce/themes/advanced/skins/default/img/buttons.png","wp-includes/js/tinymce/themes/advanced/skins/default/img/items.gif","wp-includes/js/tinymce/themes/advanced/skins/default/img/menu_arrow.gif","wp-includes/js/tinymce/themes/advanced/skins/default/img/menu_check.gif","wp-includes/js/tinymce/themes/advanced/skins/default/img/progress.gif","wp-includes/js/tinymce/themes/advanced/skins/default/img/tabs.gif","wp-includes/js/tinymce/themes/advanced/skins/default/ui.css","wp-includes/js/tinymce/themes/advanced/skins/highcontrast/","wp-includes/js/tinymce/themes/advanced/skins/highcontrast/content.css","wp-includes/js/tinymce/themes/advanced/skins/highcontrast/dialog.css","wp-includes/js/tinymce/themes/advanced/skins/highcontrast/ui.css","wp-includes/js/tinymce/themes/advanced/skins/o2k7/","wp-includes/js/tinymce/themes/advanced/skins/o2k7/content.css","wp-includes/js/tinymce/themes/advanced/skins/o2k7/dialog.css","wp-includes/js/tinymce/themes/advanced/skins/o2k7/img/","wp-includes/js/tinymce/themes/advanced/skins/o2k7/img/button_bg.png","wp-includes/js/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png","wp-includes/js/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png","wp-includes/js/tinymce/themes/advanced/skins/o2k7/ui.css","wp-includes/js/tinymce/themes/advanced/skins/o2k7/ui_black.css","wp-includes/js/tinymce/themes/advanced/skins/o2k7/ui_silver.css","wp-includes/js/tinymce/themes/advanced/skins/wp_theme/","wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css","wp-includes/js/tinymce/themes/advanced/skins/wp_theme/dialog.css","wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/","wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/embedded.png","wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/gallery.png","wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/more_bug.gif","wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/page_bug.gif","wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/tabs.gif","wp-includes/js/tinymce/themes/advanced/source_editor.htm","wp-includes/js/tinymce/tiny_mce.js","wp-includes/js/tinymce/tiny_mce_config.php","wp-includes/js/tinymce/tiny_mce_gzip.php","wp-includes/js/tinymce/tiny_mce_popup.js","wp-includes/js/tinymce/utils/","wp-includes/js/tinymce/utils/editable_selects.js","wp-includes/js/tinymce/utils/form_utils.js","wp-includes/js/tinymce/utils/mclayer.js","wp-includes/js/tinymce/utils/mctabs.js","wp-includes/js/tinymce/utils/validate.js","wp-includes/js/tinymce/wp-mce-help.php","wp-includes/js/tinymce/wp-tinymce-schema.js","wp-includes/js/tinymce/wp-tinymce.js.gz","wp-includes/js/tinymce/wp-tinymce.php","wp-includes/js/tw-sack.dev.js","wp-includes/js/tw-sack.js","wp-includes/js/tw-sack.min.js","wp-includes/js/underscore.min.js","wp-includes/js/utils.js","wp-includes/js/utils.min.js","wp-includes/js/wp-ajax-response.dev.js","wp-includes/js/wp-ajax-response.js","wp-includes/js/wp-ajax-response.min.js","wp-includes/js/wp-ajax.js","wp-includes/js/wp-auth-check.js","wp-includes/js/wp-auth-check.min.js","wp-includes/js/wp-backbone.js","wp-includes/js/wp-backbone.min.js","wp-includes/js/wp-list-revisions.dev.js","wp-includes/js/wp-list-revisions.js","wp-includes/js/wp-list-revisions.min.js","wp-includes/js/wp-lists.dev.js","wp-includes/js/wp-lists.js","wp-includes/js/wp-lists.min.js","wp-includes/js/wp-pointer.js","wp-includes/js/wp-pointer.min.js","wp-includes/js/wp-util.js","wp-includes/js/wp-util.min.js","wp-includes/js/wplink.js","wp-includes/js/wplink.min.js","wp-includes/kses.php","wp-includes/l10n.php","wp-includes/link-template.php","wp-includes/load.php","wp-includes/locale.php","wp-includes/media-template.php","wp-includes/media.php","wp-includes/meta.php","wp-includes/ms-blogs.php","wp-includes/ms-default-constants.php","wp-includes/ms-default-filters.php","wp-includes/ms-deprecated.php","wp-includes/ms-files.php","wp-includes/ms-functions.php","wp-includes/ms-load.php","wp-includes/ms-settings.php","wp-includes/nav-menu-template.php","wp-includes/nav-menu.php","wp-includes/option.php","wp-includes/pluggable-deprecated.php","wp-includes/pluggable.php","wp-includes/plugin.php","wp-includes/pomo/","wp-includes/pomo/entry.php","wp-includes/pomo/mo.php","wp-includes/pomo/po.php","wp-includes/pomo/streams.php","wp-includes/pomo/translations.php","wp-includes/post-formats.php","wp-includes/post-template.php","wp-includes/post-thumbnail-template.php","wp-includes/post.php","wp-includes/query.php","wp-includes/registration-functions.php","wp-includes/registration.php","wp-includes/revision.php","wp-includes/rewrite.php","wp-includes/rss-functions.php","wp-includes/rss.php","wp-includes/script-loader.php","wp-includes/shortcodes.php","wp-includes/SimplePie/","wp-includes/SimplePie/Author.php","wp-includes/SimplePie/Cache.php","wp-includes/SimplePie/Cache/","wp-includes/SimplePie/Cache/Base.php","wp-includes/SimplePie/Cache/DB.php","wp-includes/SimplePie/Cache/File.php","wp-includes/SimplePie/Cache/Memcache.php","wp-includes/SimplePie/Cache/MySQL.php","wp-includes/SimplePie/Caption.php","wp-includes/SimplePie/Category.php","wp-includes/SimplePie/Content/","wp-includes/SimplePie/Content/Type/","wp-includes/SimplePie/Content/Type/Sniffer.php","wp-includes/SimplePie/Copyright.php","wp-includes/SimplePie/Core.php","wp-includes/SimplePie/Credit.php","wp-includes/SimplePie/Decode/","wp-includes/SimplePie/Decode/HTML/","wp-includes/SimplePie/Decode/HTML/Entities.php","wp-includes/SimplePie/Enclosure.php","wp-includes/SimplePie/Exception.php","wp-includes/SimplePie/File.php","wp-includes/SimplePie/gzdecode.php","wp-includes/SimplePie/HTTP/","wp-includes/SimplePie/HTTP/Parser.php","wp-includes/SimplePie/IRI.php","wp-includes/SimplePie/Item.php","wp-includes/SimplePie/Locator.php","wp-includes/SimplePie/Misc.php","wp-includes/SimplePie/Net/","wp-includes/SimplePie/Net/IPv6.php","wp-includes/SimplePie/Parse/","wp-includes/SimplePie/Parse/Date.php","wp-includes/SimplePie/Parser.php","wp-includes/SimplePie/Rating.php","wp-includes/SimplePie/Registry.php","wp-includes/SimplePie/Restriction.php","wp-includes/SimplePie/Sanitize.php","wp-includes/SimplePie/Source.php","wp-includes/SimplePie/XML/","wp-includes/SimplePie/XML/Declaration/","wp-includes/SimplePie/XML/Declaration/Parser.php","wp-includes/streams.php","wp-includes/taxonomy.php","wp-includes/template-loader.php","wp-includes/template.php","wp-includes/Text/","wp-includes/Text/Diff.php","wp-includes/Text/Diff/","wp-includes/Text/Diff/Engine/","wp-includes/Text/Diff/Engine/native.php","wp-includes/Text/Diff/Engine/s
14hell.php","wp-includes/Text/Diff/Engine/string.php","wp-includes/Text/Diff/Engine/xdiff.php","wp-includes/Text/Diff/Renderer.php","wp-includes/Text/Diff/Renderer/","wp-includes/Text/Diff/Renderer/inline.php","wp-includes/theme-compat/","wp-includes/theme-compat/comments-popup.php","wp-includes/theme-compat/comments.php","wp-includes/theme-compat/footer.php","wp-includes/theme-compat/header.php","wp-includes/theme-compat/sidebar.php","wp-includes/theme.php","wp-includes/update.php","wp-includes/user.php","wp-includes/vars.php","wp-includes/version.php","wp-includes/widgets.php","wp-includes/wlwmanifest.xml","wp-includes/wp-db.php","wp-includes/wp-diff.php","wp-json/","wp-json/wp/v2/posts","wp-json/wp/v2/users","wp-links-opml.php","wp-load.php","wp-login.php","wp-mail.php","wp-pass.php","wp-rdf.php","wp-register.php","wp-rss.php","wp-rss2.php","wp-settings.php","wp-signup.php","wp-snapshots","wp-trackback.php","xmlrpc.php"]);n(59318);let S=Object.values(g.hW),k=Object.values(g.l1),C=Object.values(g.kX);C.push("OTHER");let I=/^[^0-9_!¡?÷?¿/\\+=@#$%ˆ&*(){}|~<>;:[\]]{1,}$/g,A=/^[\p{L}\p{M} '-]+$/u;h.Ry({firstName:h.Z_().min(1,{message:"Please provide a first name"}).max(100,"Your first name cannot be more than 100 characters").regex(new RegExp(I),"Contains invalid characters").transform(e=>e.trim()).refine(e=>e.length,{message:"Please provide a first name"}),lastName:h.Z_().min(1,{message:"Please provide a last name"}).max(100,"Your last name cannot be more than 100 characters").regex(new RegExp(I),"Contains invalid characters").transform(e=>e.trim()).refine(e=>e.length,{message:"Please provide a last name"}),merchantName:h.Z_().max(100,{message:"Please shorten your business name"}).transform(e=>e.trim()).refine(e=>e.length,{message:"Please provide a company name"}),marketingConsent:h.O7({required_error:"Marketing consent is a required field"}),email:h.Z_().min(1,{message:"Please provide an email address"}).email({message:"Invalid email address"}),country:h.Z_().min(1,{message:"Please select a country of operation"}).transform(e=>e).refine(e=>S.includes(e),{message:`Please provide a valid country from [${S.toString()}]`}),lead:h.jt(h.Z_()),password:h.jt(h.Z_())});let T=h.Ry({merchantSecondaryCategory:h.jb(b.MerchantCategory,{errorMap:()=>({message:"Please select a category"})}),merchantName:h.Z_().max(100,{message:"Please Shorten your business name"}).transform(e=>e.trim()).refine(e=>e.length>=3,{message:"Business name must be at least 3 characters"}),legalEntity:h.jb(b.LegalEntity,{errorMap:()=>({message:"Please select a business type"})}),merchantPrimaryCategory:h.jb(y.zu,{errorMap:()=>({message:"Please select an industry"})}),revenue:h.jb(b.Revenue,{errorMap:()=>({message:"Please select a Revenue Range"})}),otherBusinessType:h.jt(h.Z_().min(1).max(100).transform(e=>e.trim())),businessDescription:h.Z_().transform(e=>e?.trim()).pipe(h.Z_().min(6,{message:"Please provide a business description"}).refine(e=>!(e.length>400),e=>({message:`Please type a shorter description ${e.length}/400`}))),tradingForMoreThanSixMonths:h.O7().nullish(),paymentAcceptanceMode:h.jb(b.PaymentAcceptanceMode,{errorMap:()=>({message:"Please select how you accept payments"})}).nullish()}),R=new Set([b.MerchantCategory.ONLINE_GAMING,b.MerchantCategory.PAYMENTS_PROVIDER,b.MerchantCategory.CANNABIS,b.MerchantCategory.DIRECT_MARKETING]);T.superRefine((e,t)=>{R.has(e.merchantSecondaryCategory)&&t.addIssue({code:m.NL.custom,message:"This category has been replaced — please select a more specific category",path:["merchantSecondaryCategory"]})});let N=h.Z_().trim().regex(/^[0-9]+$/,"Account numbers should only contain numeric characters").min(1,{message:"Please provide a valid bank account number"}).max(13,{message:"Please provide a valid bank account number"}),O=h.Ry({bankId:h.Z_().trim().min(1,{message:"Please provide a bank"}).transform(e=>e).refine(e=>C.includes(e),{message:`Please provide a valid bank from [${C.join(", ")}]`}),type:h.Z_().trim().min(1,{message:"Please provide a bank account type"}).transform(e=>e).refine(e=>["PERSONAL","BUSINESS"].includes(e),{message:"Please provide a valid bank account type from [INDIVIDUAL, BUSINESS]"}),name:h.Z_().trim().min(1,{message:"Please provide the account holder's name"}).max(20,"Account holder's name cannot be more than 20 characters"),accountNumber:N}),P=h.Ry({bankId:h.G0([h.i0(""),h.lB()]),accountNumber:h.G0([h.i0(""),h.lB()]),name:h.G0([h.i0(""),h.lB()]),type:h.Z_()}).partial().transform(()=>null).nullable(),D=h.Ry({newEmail:h.Z_().email({message:"Please provide a valid email address"}).transform(e=>e.trim())}),M=h.Ry({emails:h.Z_().transform(e=>e.split(",").map(e=>e.trim())).pipe(h.IX(h.Z_().email({message:"One or more of the emails are not in the correct format"}))).or(h.Z_().length(0).transform(()=>[]))}),$=h.Z_().trim().regex(/^(\d{10})?$/,"VAT number must be 10 numerical characters long"),j=h.Ry({addressLine1:h.Z_().trim().min(1,"Please enter an address"),addressLine2:h.Z_().trim().min(1,"Please enter a suburb"),addressLevel1:h.Z_().trim().min(1,"Please enter a province"),addressLevel2:h.Z_().trim().min(1,"Please enter a city/town"),postalCode:h.Z_().trim().min(1,"Please enter a postal code")}),L=h.Ry({addressLine1:h.Z_().trim().min(1,"Please enter an address"),addressLine2:h.Z_().trim().optional(),addressLevel2:h.Z_().trim().min(1,"Please enter a city"),postalCode:h.Z_().trim().regex(/^\d{4}$/,"Please enter a 4-digit postal code"),addressLevel1:h.Km(g.bS,{errorMap:()=>({message:"Please select a province"})}),country:h.i0(b.Country.ZA).default(b.Country.ZA)}),F=h.Ry({merchantInfo:h.Ry({businessDescription:h.Z_().transform(e=>e?.trim()).optional(),name:h.Z_().max(100,{message:"Please Shorten your business name"}).transform(e=>e.trim()),legalEntity:h.jb(b.LegalEntity,{errorMap:()=>({message:"Please select a Legal Entity"})}),vatNumber:$}),addressInfo:j,bankInfo:h.G0([O,P])});h.Ry({shop:h.Z_()}),h.Ry({domain:h.Z_(),myshopify_domain:h.Z_()});let B=h.Ry({salesPersonIds:h.IX(h.Z_().uuid()),salesChannel:h.jb(b.SalesChannel,{message:"Please select one of the options"})}),U=h.Ry({product:h.Km(g.Fu,{message:"Please select a product"}),customProduct:h.Z_().trim().optional(),salesPersonIds:h.IX(h.Z_().uuid()).min(1,"Select at least one salesperson"),note:h.Z_().trim().optional(),occurredAt:h.Z_().min(1,"Please select a date").refine(e=>!Number.isNaN(Date.parse(e)),"Invalid date")}).superRefine((e,t)=>
14{"other"!==e.product||e.customProduct?.trim()||t.addIssue({code:m.NL.custom,path:["customProduct"],message:"Please enter the product name"})});h.Ry({merchantId:h.Z_().transform(e=>e.trim()).refine(e=>e.length,{message:"Please provide a merchant id"}),liveClient:h.O7(),createOnBehalfOfMerchant:h.jt(h.O7())}).merge(B.partial()).superRefine((e,t)=>{e.liveClient&&(e.salesChannel||t.addIssue({path:["salesChannel"],code:m.NL.custom,message:"Creating a live client requires a sales channel"}),e.salesPersonIds||t.addIssue({path:["salesPersonIds"],code:m.NL.custom,message:"Creating a live client requires a list of sales people IDs"}))});let z=[b.MerchantUrlType.SHOPIFY,b.MerchantUrlType.WOOCOMMERCE,b.MerchantUrlType.SQUARESPACE,b.MerchantUrlType.WEBFLOW,b.MerchantUrlType.API],Z=h.Km(z),V={salesChannels:h.IX(Z).min(1,"Please select at least one option").refine(e=>new Set(e).size===e.length,{message:"Please select each sales channel only once"}),storeUrl:h.Z_({required_error:"Please provide your store web address"}).trim().min(1,"Please provide your store web address").pipe(h.Z_().max(100,"Please provide a shorter URL").regex(/^(https?:\/\/)?(www\.)?([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/[^\s]*)?$/,"Please provide a valid URL"))},q=(e,t)=>{e.salesChannels.includes(b.MerchantUrlType.API)&&e.paymentAcceptanceMode===b.PaymentAcceptanceMode.IN_PERSON&&t.addIssue({code:m.NL.custom,message:"Custom API integration is only available if you accept payments online",path:["salesChannels"]})},W=h.Ry({paymentAcceptanceMode:h.jb(b.PaymentAcceptanceMode,{errorMap:()=>({message:"Please select how you accept payments"})}),...V}).superRefine(q);h.Ry({checkoutAccess:h.Z_().trim().max(2e3,"Please keep this under 2000 characters").transform(e=>e||void 0).optional()});let G=h.Ry({amount:h.dj(e=>parseFloat(e),h.Rx({invalid_type_error:"Please enter a payment amount"}).step(.01).gte(w.$v/100).refine(e=>{let[,t]=e.toString().split(".");return!t||t?.length<=2})),currency:h.i0("ZAR"),payerName:h.Z_().trim().min(3,"Payer name has to be at least 3 characters long").max(40,"Payer name has to be less than 20 characters long"),expires:h.Ry({days:h.jt(h.Rx({invalid_type_error:"Expiry date is required"}).lte(30,"Expiry should be no more than 30 days from today")),hours:h.Rx().min(0).lte(23)}).optional().transform(e=>e?.days&&e?.hours?{days:e.days,hours:e.hours}:{days:30,hours:0}),beneficiaryReference:h.Z_().trim().min(1,"Reference should not be empty").max(50,"Reference should be 50 or fewer characters long").regex(/^[a-zA-Z0-9\s-)]+$/,"Reference should not contain special characters"),clientId:h.Z_().trim(),deliveryFee:h.dj(e=>parseFloat(e.replace(/,/g,".")),h.Rx({invalid_type_error:"Please enter a delivery amount"}).gte(0)).optional()});function H(e){return h.Ry({withdrawalAmount:h.Rx({invalid_type_error:"Please enter an amount"}).gt(0,`You can't withdraw less than ${(0,x.xG)(1)}`).lte(e,`You can't withdraw more than ${(0,x.xG)(e)}`).refine(e=>2>=new r.Z(e).decimalPlaces()),merchantId:h.Z_().trim()})}function Y(e,t){return h.Ry({refundAmount:h.Rx({invalid_type_error:"Please enter a refund amount"}).gt(0,"There's no use trying to refund this amount").gte(w.$v/100,`Minimum refund amount is ${(0,x.xG)(w.$v/100)}`).lte(e/100,t).refine(e=>2>=new r.Z(e).decimalPlaces()),refundReason:h.jb(v.HZ,{errorMap:()=>({message:"Please provide a valid reason"})})})}let K=h.Ry({fullName:h.Z_().trim().min(1,{message:"Please provide your full name"}),company:h.Z_().trim().optional(),address:h.Z_().trim().min(3,{message:"Please provide your address"}),suburb:h.Z_().trim().optional(),postcode:h.Z_().trim().min(2,{message:"Please provide your post/zip code"}),city:h.Z_().trim().min(3,{message:"Please provide your city"}),province:h.Z_().trim().min(3,{message:"Please provide your province/state"}),phoneNumber:h.Z_().min(10,{message:"Must provide a valid phone number"}).max(14,{message:"Must provide a valid phone number"}).regex(/^([+]?[\s0-9]+)?(\d{3}|[(]?[0-9]+[)])?([-]?[\s]?[0-9]+)+$/,{message:"Phone numbers should match the format +27 12 345 6789 or 012 345 6789"}),country:h.Z_().trim().min(3,{message:"Please provide a country"})});h.Ry({deliveryFee:h.Rx({invalid_type_error:"Please specify a delivery fee"}
14).gte(0)});let J=h.Km(["failed","passed"]),X=h.Km(["api_data_store","awaiting_review","being_screened","incomplete","review_screening_results","run_screening","under_review"]),Q=h.Km([...J.options,...X.options]);h.Ry({status:h.Z_().min(1,{message:"Please input a valid status"}).transform(e=>e).refine(e=>k.includes(e),{message:`Please provide a valid status from [${k.toString()}]`})}),h.Ry({status:h.i0(b.KycbStatus.AWAITING_REVIEW),provider:h.jb(b.MerchantVerificationProvider).nullish()}),h.Ry({status:h.Km([b.VerificationStepStatus.PASSED,b.VerificationStepStatus.FAILED,b.VerificationStepStatus.AWAITING_DOCS])});let ee=["pending","in_review","approved","rejected","suspended","offboarded"];h.Ry({id:h.Z_().min(1),type:h.i0("kycb-application.status-changed"),createdAt:h.Z_(),data:h.Ry({merchantId:h.Z_().min(1),externalId:h.Z_().min(1).nullable(),status:h.Km(ee),reason:h.Z_().nullish(),businessName:h.Z_().nullish(),registeredName:h.Z_().nullish(),registrationNumber:h.Z_().nullish(),riskRating:h.Km(["low","medium","high"]).nullish(),bankAccountMasked:h.Z_().nullish(),people:h.IX(h.Ry({name:h.Z_(),roleCode:h.Z_(),idNumberMasked:h.Z_().nullish()})).nullish()})});let et=h.Km(["outstanding","satisfied","waived"]),en=h.Ry({id:h.Z_().min(1),requirementCode:h.Z_().min(1),status:et,subjectPartyId:h.Z_().nullish(),caseId:h.Z_().nullish()});h.Ry({id:h.Z_().min(1),type:h.i0("kycb-application.requirement-status-changed"),createdAt:h.Z_(),data:h.Ry({merchantId:h.Z_().min(1),externalId:h.Z_().min(1).nullable(),merchantStatus:h.Z_(),changed:h.IX(en.extend({previousStatus:et.nullable()})),requirements:h.IX(en)})}),h.Ry({reason:h.Z_().min(5,{message:"reason is required"}).trim()}),h.Ry({withdrawalsPaused:h.O7()}),h.Ry({paymentsPaused:h.O7()});let er=h.Ry({status:h.Z_(),error:h.Z_().optional()}),ei=h.Ry({company_registration_number:h.Z_().trim().nullable().optional(),company_name:h.Z_().trim().nullable().optional(),company_type_shortened:h.Z_().trim().nullable().optional(),registration_date:h.Z_().trim().nullable().optional(),tax_number:h.Z_().trim().nullable().optional(),company_status_code:h.Z_().trim().nullable().optional(),company_status:h.Z_().trim().nullable().optional()}).optional(),ea=h.Ry({name:h.Z_().trim().transform(e=>e.toLowerCase().replace(/\s/g,"_")),link:h.Z_().trim(),type:h.Z_().trim().nullable(),desc:h.Z_().trim().nullable()}).nullable().optional().transform(e=>e??void 0),eo=h.Z_().trim().nullish().transform(e=>e??void 0),es=h.Z_().trim().refine(e=>g.UY.fuzzyHas(e),e=>({message:`Invalid bank ID "${e}"`})).transform(e=>g.UY.fuzzyGet(e)).nullish().transform(e=>e??void 0),el=h.Ry({url:h.Z_().optional(),client_id:h.Z_().trim(),step:J,name:eo,client_risk_score:h.G0([h.Rx(),h.Z_(),h.S1()]).nullable().transform(e=>{if(null==e)return null;if("number"==typeof e)return e;let t=parseFloat(e);return isNaN(t)?null:t}),custom_id:h.Z_().trim(),sa_id_card_backside:ea,bank_account_holder:eo,bank_account_number:eo.transform(e=>e?.replaceAll(/\s*/gu,"")),address_line1:eo,address_line2:h.Z_().trim().nullable().optional(),city:h.Z_().trim().nullable().optional(),province:h.Z_().trim().nullable().optional(),postal_code:eo,bank_name:es,country:h.G0([h.i0(b.Country.ZA),h.i0(b.Country.NG),h.i0("SOUTH AFRICA")]).transform(e=>e===b.Country.NG?b.Country.NG:b.Country.ZA).nullish().transform(e=>e??void 0),company_documents_za:ea,your_banking_details:ea,identity_document:ea,proof_of_address:ea,vat_registration_number:h.Z_().trim().nullable().optional(),za_company_details:ei,director:h.IX(h.Ry({national_id:h.Z_().trim().optional()})).optional()}),ec=h.Ry({client_id:h.Z_().trim(),custom_id:h.Z_().trim(),step:X,name:eo,client_risk_score:h.G0([h.Rx(),h.Z_(),h.S1()]).nullable().transform(e=>{if(null==e)return null;if("number"==typeof e)return e;let t=parseFloat(e);return isNaN(t)?null:t})});h.VK("step",[el,ec]),h.jV(er,h.Ry({url:h.Z_().optional(),client_id:h.Z_().trim(),step:Q,name:eo,client_risk_score:h.G0([h.Rx(),h.Z_(),h.S1()]).nullable().transform(e=>{if(null==e)return null;if("number"==typeof e)return e;let t=parseFloat(e);return isNaN(t)?null:t}),custom_id:h.Z_().trim(),sa_id_card_backside:ea,bank_account_holder:eo,bank_account_number:eo.transform(e=>e?.replaceAll(/\s*/gu,"")),address_line1:eo,address_line2:h.Z_().trim().nullable().optional(),city:h.Z_().trim().nullable().optional(),province:h.Z_().trim().nullable().optional(),postal_code:eo,bank_name:es,country:h.G0([h.i0(b.Country.ZA),h.i0(b.Country.NG),h.i0("SOUTH AFRICA")]).transform(e=>e===b.Country.NG?b.Country.NG:b.Country.ZA).nullish().transform(e=>e??void 0),company_documents_za:ea,your_banking_details:ea,identity_document:ea,proof_of_address:ea,vat_registration_number:h.Z_().trim().nullable().optional()})),h.Ry({status:h.Z_()});let eu=h.Ry({id:h.Z_(),email:h.Z_(),firstName:h.Z_().trim(),lastName:h.Z_().trim()}),ed=h.Ry({merchants:h.Ry({id:h.Z_(),name:h.Z_(),createdAt:h.Z_().datetime(),capitecApprovalStatus:h.Km(["NOT_REQUESTED","APPROVED","REQUESTED","NOMINATED"]),members:h.IX(h.Ry({user:eu}))}).array()});
14h.Ry({start:h.Z_().datetime({message:"Start date is invalid"}).transform(e=>new Date(e)),end:h.Z_().datetime({message:"End date is invalid"}).transform(e=>new Date(e))});let ep=h.Ry({id:h.Rx(),createdAt:h.Z_().datetime().transform(e=>new Date(e)),updatedAt:h.Z_().datetime().transform(e=>new Date(e)),type:h.jb(b.MerchantUrlType),value:h.Z_().trim(),merchantId:h.Z_().trim()}).array(),ef=h.Ry({id:h.Z_().trim(),name:h.Z_().trim(),accountNumber:h.Z_().trim(),bankId:h.jb(b.BankId),merchantId:h.Z_().trim(),createdAt:h.Z_().datetime().transform(e=>new Date(e)),updatedAt:h.Z_().datetime().transform(e=>new Date(e))}),eh=h.Ry({id:h.Z_().trim(),name:h.Z_().trim(),userId:h.Z_().trim(),environment:h.jb(b.ClientEnvironment),createdAt:h.Z_().datetime().transform(e=>new Date(e)),updatedAt:h.Z_().datetime().transform(e=>new Date(e)),merchantId:h.Z_().trim()}),em=h.Ry({id:h.Z_().trim(),addressLine1:h.Z_().trim(),addressLevel2:h.Z_().trim().nullable(),addressLine2:h.Z_().trim().nullable(),addressLevel1:h.Z_().trim().nullable(),postalCode:h.Z_().trim(),country:h.jb(b.Country),merchantId:h.Z_().trim()});h.Ry({method:h.Km(["card","capitec","wallet","bnpl"]),value:h.O7()});let eg=h.Ry({numberOfDevices:h.Rx({invalid_type_error:"Enter a number of devices"}).int("Enter a whole number of devices").min(1,"Order at least 1 device").max(50,"Contact support to order more than 50 devices"),withPrinter:h.O7(),shopifyPosIntegration:h.O7()});h.Ry({merchant:h.Ry({id:h.Z_().trim(),name:h.Z_().trim(),kycbStatus:h.jb(b.KycbStatus),businessLegitimacyStatus:h.jb(b.BusinessLegitimacyStatus),industryCheckStatus:h.jb(b.IndustryCheckStatus),merchantCategory:h.jb(b.MerchantCategory),merchantUrls:ep,bankDetails:ef,clients:eh.array(),address:em,kycbFailureReason:h.Z_().trim().nullable()})}),h.Ry({clientId:h.Z_().min(1),merchantId:h.Z_().min(1)});let ey=h.Ry({id:h.Z_(),merchantId:h.Z_(),type:h.jb(b.TransactionType),amount:h.Rx(),description:h.Z_(),timestamp:h.Z_().datetime({message:"timestamp date is invalid"}).transform(e=>_.o.fromISO(e).toJSDate())}).array(),ev=h.Ry({id:h.Z_().trim(),name:h.Z_().trim(),kycbStatus:h.jb(b.KycbStatus),businessLegitimacyStatus:h.jb(b.BusinessLegitimacyStatus),industryCheckStatus:h.jb(b.IndustryCheckStatus),merchantCategory:h.jb(b.MerchantCategory),merchantUrls:ep,bankDetails:ef,clients:eh.array(),address:em,kycbFailureReason:h.Z_().trim().nullable(),transactions:ey,otherBusinessType:h.Z_().nullable(),legalEntity:h.jb(b.LegalEntity),country:h.jb(b.Country),createdAt:h.Z_().datetime({message:"createdAt date is invalid"}).transform(e=>_.o.fromISO(e).toJSDate()),updatedAt:h.Z_().datetime({message:"updatedAt date is invalid"}).transform(e=>_.o.fromISO(e).toJSDate()),revenue:h.jb(b.Revenue),capitecPayMerchantReference:h.Z_().trim(),balance:h.Rx(),capitecEnabled:h.O7()});h.Ry({id:h.Z_(),firstName:h.Z_().trim(),lastName:h.Z_().trim(),email:h.Z_().email(),merchantId:h.Z_().trim().nullable(),marketingConsent:h.O7(),createdAt:h.Z_().datetime({message:"createdAt date is invalid"}).transform(e=>_.o.fromISO(e).toJSDate()),updatedAt:h.Z_().datetime({message:"updatedAt date is invalid"}).transform(e=>_.o.fromISO(e).toJSDate()),lead:h.Z_().trim().nullable(),isStitchAdmin:h.O7(),clients:h.Ry({id:h.Z_().trim(),name:h.Z_().trim()}).array(),merchant:ev.nullable()}),h.Z_().transform(e=>new r.Z(e));let eb=h.Ry({amount:h.Rx({invalid_type_error:"Required"}).min(1).refine(e=>2>=new r.Z(e).decimalPlaces(),{message:"Amount must have at most 2 decimal places"}),reason:h.Z_().min(3,"Must be at least 3 characters long").trim(),type:h.jb(b.TransactionType,{invalid_type_error:"Required"}),merchantId:h.Z_().uuid(),includeOnInvoice:h.O7().optional(),quantity:h.Rx().int().min(1).optional()}).refine(e=>!e.includeOnInvoice||e.quantity&&e.quantity>=1,{message:"Quantity is required when including on tax invoice",path:["quantity"]}),ew=h.Ry({bnpl:h.Rx().lt(10,"BNPL should be a percentage less than 10"),debitCard:h.Rx().lt(10,"Debit should be a percentage less than 10"),creditCard:h.Rx().lt(10,"Credit should be a percentage less than 10"),internationalCard:h.Rx().lt(10,"International should be a percentage less than 10"),debitWallet:h.Rx().lt(10,"Debit should be a percentage less than 10"),creditWallet:h.Rx().lt(10,"Credit should be a percentage less than 10"),internationalWallet:h.Rx().lt(10,"International should be a percentage less than 10"),capitec:h.Rx().lt(2,"Capitec should be a percentage less than 2")}),e_=h.Ry({reservedBalance:h.Rx()}),ex=h.Ry({__typename:h.i0("PaymentInitiationCardPayer"),cardHolderName:h.Z_().trim(),expiryYear:h.Rx(),expiryMonth:h.Rx(),first6:h.Z_().trim(),last4:h.Z_().trim()}),eE=h.Ry({__typename:h.i0("PaymentInitiationBnplPayer"),date:h.Z_().datetime()});h.Z_().trim().transform(e=>e.slice(0,30).toLowerCase().replace(/ /g,"-").replace(/[^A-Za-z0-9-]/g,""));let eS=h.Z_().trim().min(3,"Your Stitch Express ID should be more than 3 characters").max(40,"Your Stitch Express ID should be 40 or fewer characters long").regex(/^[a-zA-Z0-9](?:[a-zA-Z0-9_-]*[a-zA-Z0-9])?$/,"Invalid Stitch Express ID. Use only letters, numbers, hyphens, and underscores. Ensure it starts and ends with a letter or number.").refine(e=>!E.has(e.toLowerCase())).transform(e=>e.toLowerCase()),ek=h.Ry({stitchExpressId:eS});h.dj(e=>parseFloat(e.replace(/,/g,".")),h.Rx().gte(w.$v/100).refine(e=>{let[,t]=e.toString().split(".");return!t||t?.length<=2})),h.Z_().trim().min(1,"Reference should not be empty").max(20,"Reference should be 20 or fewer characters long").regex(/^[a-zA-Z0-9\s-)]+$/,"Reference should not contain special characters"),h.dj(e=>parseFloat(e.replace(/,/g,".")),h.Rx().gte(0).refine(e=>{let[,t]=e.toString().split(".");return!t||t?.length<=2}));let eC=h.Ry({email:h.G0([h.Z_().email(),h.Z_().refine(e=>""===e)]).transform(e=>""===e?null:e).nullable().optional(),phoneNumber:h.G0([h.Z_().min(10,"Must provide a valid phone number").max(14,"Must provide a valid phone number").regex(/^([+]?[\s0-9]+)?(\d{3}|[(]?[0-9]+[)])?([-]?[\s]?[0-9])+$/).nullable(),h.Z_().refine(e=>""===e).transform(()=>null)]).optional(),collectEmail:h.O7().optional(),collectPhone:h.O7().optional()});function eI(e,t){let n=h.Ry({amount:h.dj(e=>parseFloat(e.replace(/,/g,".")),h.Rx({invalid_type_error:"You need to specify an amount you want to pay"}).step(.01).gte(w.$v/100,{message:`You cannot pay less than ${(0,x.xG)(w.$v/100)}`}).refine(e=>{let[,t]=e.toString().split(".");return!t||t?.length<=2}).transform(e=>e.toString())),currency:h.Z_().trim().refine(e=>"ZAR"===e),payerName:h.Z_().trim().min(3,"Your name needs to be at least 3 characters long").max(40,"Your name cannot be longer than 40 character"),beneficiaryReference:h.Z_().trim().min(1,"You need to specify a reference regarding what you are paying for").max(20,"The reference cannot be longer than 20 characters").regex(/^[a-zA-Z0-9\s-)]+$/,"Reference should not contain special characters"),clientId:h.Z_().trim()});return e&&(n=n.extend({payerEmailAddress:h.Z_().email({message:"Please provide a valid email address"})})),t&&(n=n.extend({payerPhoneNumber:h.Z_().min(10,{message:"Must provide a valid phone number"}).max(14,{message:"Must provide a valid phone number"}).regex(/^([+]?[\s0-9]+)?(\d{3}|[(]?[0-9]+[)])?([-]?[\s]?[0-9]+)+$/,{message:"Phone numbers should match the format +27 12 345 6789 or 012 345 6789"})})),n}G.extend({merchantId:h.Z_().trim(),payerPhoneNumber:h.Z_().min(10,"Must provide a valid phone number").max(14,"Must provide a valid phone number").regex(/^([+]?[\s0-9]+)?(\d{3}|[(]?[0-9]+[)])?([-]?[\s]?[0-9]+)+$/,"Phone numbers should match the format +27 12 345 6789 or 012 345 6789").optional(),payerEmailAddress:h.Z_().email({message:"Please provide a valid email address"}).optional()});let eA=h.Ry({amount:h.dj(e=>""===e?0:parseFloat(e),h.G0([h.Rx({invalid_type_error:"Please supply a valid amount"}
14).gte(w.$v/100,{message:`If you specify an amount it must be at least ${(0,x.xG)(w.$v/100)}`}).step(.01).refine(e=>{let[,t]=e.toString().split(".");return!t||t?.length<=2}),h.Rx().refine(e=>0===e)])).nullable(),reference:h.Z_().trim().max(20,"Reference should be 20 or fewer characters long").regex(/^[a-zA-Z0-9\s-]*$/gu,{message:"Reference should not contain special characters"}).nullable(),deliveryFee:h.dj(e=>""===e?0:parseFloat(e),h.G0([h.Rx({invalid_type_error:"Please supply a delivery amount"}).gte(0,{message:"Delivery fee must be at least 0"}).step(.01).refine(e=>{let[,t]=e.toString().split(".");return!t||t?.length<=2}),h.Rx().refine(e=>0===e)]).nullable())});h.Ry({imageData:h.Z_(),imageName:h.Z_(),imageContentType:h.Z_(),imageSize:h.Rx().lte(6e6,"Image size must be less than 6MB")}),h.Ry({clientId:h.Z_().trim()}),h.Ry({id:h.Z_().uuid(),redirect_url:h.Z_().url().transform(e=>new URL(e)).optional()}),h.Ry({id:h.Z_().uuid(),redirect_url:h.Z_().url().transform(e=>new URL(e)).optional()});let eT=h.Ry({cardHolderName:h.Z_(),expiryMonth:h.Rx(),expiryYear:h.Rx(),first6:h.Z_().min(6).max(8),id:h.Z_().nullable(),last4:h.Z_().length(4)}),eR={retrievalReferenceNumber:h.Z_().nullable().optional(),response:h.Ry({code:h.Z_()}).passthrough().nullable().optional()},eN=h.Ry({id:h.Z_(),updatedAt:h.Z_().datetime(),createdAt:h.Z_().datetime(),status:h.i0("SUCCESS"),statusReason:h.Z_().nullable(),consentRequestId:h.Z_().nullable(),paymentRequestId:h.Z_().nullable(),type:h.i0("CARD"),amount:h.Ry({currency:h.i0("ZAR"),quantity:h.Z_().transform(e=>new r.Z(e).toNumber())}),card:eT,originalAmount:h.Ry({currency:h.i0("ZAR"),quantity:h.Z_().transform(e=>new r.Z(e).toNumber())}),...eR}),eO=h.Ry({id:h.Z_(),updatedAt:h.Z_().datetime(),createdAt:h.Z_().datetime(),status:h.i0("FAILURE"),statusReason:h.Z_().nullable(),consentRequestId:h.Z_().nullable(),paymentRequestId:h.Z_().nullable(),type:h.i0("CARD"),amount:h.Ry({currency:h.i0("ZAR"),quantity:h.Z_().transform(e=>new r.Z(e).toNumber())}),card:eT.nullable(),originalAmount:h.Ry({currency:h.i0("ZAR"),quantity:h.Z_().transform(e=>new r.Z(e).toNumber())}),...eR}),eP=h.VK("status",[eN,eO]),eD=h.Ry({type:h.i0("WALLET_REFUND"),status:h.G0([h.i0("SUCCESS"),h.i0("FAILURE")]),id:h.Z_().optional(),...eR}),eM=h.Ry({type:h.i0("CARD_REFUND"),status:h.G0([h.i0("SUCCESS"),h.i0("FAILURE")]),id:h.Z_().optional(),...eR}),e$=h.Z_().transform(e=>e.toUpperCase()).pipe(h.G0([h.i0("DEBIT"),h.i0("CREDIT"),h.i0("PREPAID"),h.i0("UNKNOWN")])).transform(e=>"UNKNOWN"===e?null:e).nullable();h.Ry({beneficiaryReference:h.Z_(),paymentRequestID:h.Z_().uuid()});let ej=h.Ry({status:h.G0([h.i0("SUCCESS"),h.i0("FAILURE")]),statusReason:h.Z_().nullable(),amount:h.Ry({currency:h.Z_(),quantity:h.Z_()}),bin:h.Z_().nullable(),fundingType:e$.nullable(),id:h.Z_(),issuer:h.Ry({country:h.Z_(),name:h.Z_()}).nullable(),type:h.i0("APPLE_PAY"),externalReference:h.Z_().nullable().optional(),...eR}),eL=h.Ry({type:h.i0(b.PaymentMethod.GOOGLE_PAY),status:h.G0([h.i0("SUCCESS"),h.i0("FAILURE")]),statusReason:h.Z_().nullable(),amount:h.Ry({currency:h.Z_(),quantity:h.Z_()}),bin:h.Z_().nullable(),fundingType:e$.nullable(),id:h.Z_(),issuer:h.Ry({country:h.Z_(),name:h.Z_()}).nullable(),externalReference:h.Z_().nullable().optional(),...eR}),eF=h.Ry({id:h.Z_(),type:h.i0("BNPL"),status:h.G0([h.i0("SUCCESS"),h.i0("FAILURE")]),statusReason:h.Z_().nullable(),amount:h.Ry({currency:h.Z_(),quantity:h.Z_()})}),eB=h.Ry({id:h.Z_(),type:h.i0("BNPL_REFUND"),status:h.G0([h.i0("SUCCESS"),h.i0("FAILURE")]),statusReason:h.Z_().nullable(),amount:h.Ry({currency:h.Z_(),quantity:h.Z_()})});h.Ry({id:h.Z_(),type:h.i0("transaction"),datetime:h.Z_().datetime(),data:h.G0([eP,eM,eD,ej,eL,eF,eB])});let eU=h.Ry({__typename:h.i0("PaymentInitiationBankAccountPayer"),accountName:h.Z_(),accountNumber:h.Z_(),accountType:h.Z_(),bankId:h.i0("capitec").transform(e=>v.Uw.Capitec)}),ez=h.Ry({__typename:h.i0("PaymentInitiationRequestCompleted"),id:h.Z_(),date:h.Z_().datetime(),payer:h.VK("__typename",[ex,eU,eE])}),eZ=h.Ry({__typename:h.i0("PaymentInitiationRequestManuallyCompleted"),date:h.Z_().datetime()}),eV=h.Ry({__typename:h.i0("PaymentInitiationRequestCancelled"),id:h.Z_(),date:h.Z_().datetime().optional(),reason:h.Z_().optional()}),eq=h.Ry({__typename:h.i0("PaymentInitiationRequestExpired"),date:h.Z_().datetime().optional()}),eW=h.Ry({__typename:h.i0("PaymentInitiationRequestPending")}),eG=h.VK("__typename",[ez,eZ,eV,eq,eW]),eH=h.Ry({__typename:h.i0("RefundCompleted"),date:h.Z_().datetime(),expectedSettlement:h.Z_().datetime()}),eY=h.Ry({__typename:h.i0("RefundError"),date:h.Z_().datetime(),reason:h.jb(v.dk)}),eK=h.Ry({__typename:h.i0("RefundPaused"),date:h.Z_().datetime(),reason:h.jb(v.dk)}),eJ=h.Ry({__typename:h.i0("RefundPending"),date:h.Z_().datetime()}),eX=h.Ry({__typename:h.i0("RefundSubmitted"),date:h.Z_().datetime()}),eQ=h.VK("__typename",[eH,eY,eK,eJ,eX]),e0=h.Ry({__typename:h.jb(b.PaymentLinkEventType),description:h.Z_(),occurred:h.Z_().datetime()});h.Ry({type:h.i0("payment"),data:h.Ry({client:h.Ry({paymentInitiationRequests:h.Ry({node:h.Ry({id:h.Z_(),externalReference:h.Z_().nullable().optional(),amount:h.Ry({currency:h.i0("ZAR"),quantity:h.Z_().transform(e=>new r.Z(e).toNumber())}),events:h.IX(e0),state:eG,paymentMethods:h.IX(h.Ry({__typename:h.jb(v.yx),enabled:h.O7()}))})})})})}),h.Ry({type:h.i0("refund"),data:h.Ry({client:h.Ry({refunds:h.Ry({node:h.Ry({id:h.Z_(),benef
14iciaryReference:h.Z_(),status:eQ})})})})});let e1=h.PG(e=>{try{if("string"!=typeof e)return!1;let t=e.trim(),n=t.startsWith("+")?t:`+${t.replace(/\s/g,"")}`;if((0,i.t)(n)&&d(n))return!0;return(0,i.t)(t,"ZA")&&d(t,"ZA")}catch(e){return!1}},e=>({message:`Invalid phone number: ${e}`})).transform(e=>{let t=e.trim(),n=t.startsWith("+")?t:`+${t.replace(/\s/g,"")}`;try{return(0,p.h)(n).number}catch{return(0,p.h)(t,"ZA").number}});h.Ry({redirect_url:h.Z_().url().optional().transform(e=>"string"==typeof e?new URL(e):e),id:h.Z_()}),h.Ry({id:h.Z_(),status:h.Z_().optional().nullable(),redirect_url:h.Z_().optional().nullable()});let e2=h.Z_().trim().regex(/^https?:\/\//u,'URL should start with "http://" or "https://"').url("Invalid URL").regex(/^https?:\/\/(?:(?:localhost)|(?:\d{1,3}(?:\.\d{1,3}){3})|(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+))(?::\d{1,5})?(?:[/?#]|$)/iu,"Invalid URL"),e3=h.Ry({redirectUrl:e2.endsWith("/checkout","Must end with /checkout")});h.Ry({wooCommerceDomain:e2.endsWith("/index.php","Must end with /index.php")}),h.Ry({redirectUrl:e2});let e5=h.Z_().trim().transform(e=>/^https?:\/\//iu.test(e)?e:`https://${e}`).pipe(h.Z_().url({message:"Invalid URL"})),e4=h.Ry({name:h.Z_().trim().min(1,{message:"Please provide a name"}).max(100,{message:"Name must be 100 characters or fewer"}),code:h.Z_().trim().toLowerCase().regex(/^[a-z0-9-]{2,64}$/,{message:"Code must be 2-64 characters using lowercase letters, numbers or hyphens"}),type:h.jb(b.ReferrerType,{errorMap:()=>({message:"Please select a type"})}),email:h.G0([h.Z_().trim().email({message:"Invalid email address"}),h.i0("")]).optional().transform(e=>e||void 0),phoneNumber:h.G0([e1,h.i0("")]).optional().transform(e=>e||void 0),websiteUrls:h.IX(h.G0([e5,h.i0("")])).max(10,{message:"A maximum of 10 URLs is allowed"}).optional().transform(e=>(e??[]).filter(e=>""!==e)),notes:h.Z_().trim().max(1e3,{message:"Notes must be 1000 characters or fewer"}).optional().transform(e=>e||void 0)}),e9=e4.omit({code:!0}),e6=1e3,e7=h.Ry({title:h.Z_().trim().min(1,{message:"Please provide a title"}).max(100,{message:"Title must be 100 characters or fewer"}),message:h.Z_().trim().min(1,{message:"Please provide a message"}).max(e6,{message:`Message must be ${e6} characters or fewer`}),expiresAt:h.oQ.date({errorMap:()=>({message:"Please provide an expiry date"})}).refine(e=>e>new Date,{message:"Expiry date must be in the future"})}),e8=h.Ry({frequency:h.i0(f.Di.DAILY)}),te=h.Ry({frequency:h.i0(f.Di.WEEKLY),frequencyWeekDay:h.Km(f.ZA,{message:"Please select a weekday"})}),tt={errorMap:()=>({message:"Please select a day of the month"})},tn=h.Ry({frequency:h.i0(f.Di.MONTHLY),frequencyMonthDay:h.G0([h.i0(2,tt),h.i0(3,tt),h.i0(5,tt),h.i0(15,tt),h.i0(25,tt),h.i0(28,tt),h.i0(-1,tt)])}),tr=h.VK("frequency",[e8,te,tn],{errorMap:()=>({message:"Please select a frequency"})});h.Ry({transactionId:h.Z_(),paymentRequestId:h.Z_().optional(),paymentMethod:h.jb(b.PaymentMethod),stitchReference:h.Z_().uuid()});let ti=h.Z_().trim().regex(/^.{8,}$/g,"Password needs to be at least 8 characters long"),ta=h.Z_().trim().regex(/[A-Z]/g,"Password must contain a uppercase letter"),to=h.Z_().trim().regex(/[a-z]/g,"Password must contain a lowercase letter"),ts=h.Z_().trim().regex(/[0-9]/g,"Password must contain a number"),tl=h.Z_().trim().regex(/[^A-Za-z0-9]/g,"Password must contain a special character"),tc=h.Z_().max(64,"Password must be less than 64 characters long").refine(e=>[ti.safeParse(e).success,ta.safeParse(e).success,to.safeParse(e).success,ts.safeParse(e).success,tl.safeParse(e).success].filter(e=>e).length>=4,{message:""}),tu=h.Ry({oldPassword:h.Z_(),newPassword:tc,newPasswordMatch:tc}).refine(e=>e.newPassword===e.newPasswordMatch);h.Ry({newPassword:tc}).extend({confirmNewPassword:h.Z_()}).refine(e=>e.newPassword===e.confirmNewPassword,{path:["confirmNewPassword"],message:"Passwords must match"});let td=h.Ry({email:h.Z_().min(1,{message:"Please provide an email"}).email({message:"Invalid email address"}),password:h.Z_().min(1,{message:"Please provide a password"})}),tp=h.Ry({email:h.Z_().email("Please provide a valid email")});h.Ry({currentURL:h.Z_()});let tf=h.Ry({newPassword:tc,token:h.Z_().optional()}).extend({confirmNewPassword:h.Z_()}).refine(e=>e.newPassword===e.confirmNewPassword,{path:["confirmNewPassword"],message:"Passwords must match"});function th(e){return h.Z_().trim().min(1,{message:e}).max(50,{message:"Name must be 50 characters or fewer"}
14).regex(A,{message:"Contains invalid characters."})}h.Ry({token:h.Z_()});let tm=h.Ry({email:h.Z_().min(1,{message:"Please provide an email"}).email({message:"Invalid email address"}),name:th("Please provide your first name"),surname:th("Please provide your last name"),phoneNumber:e1,password:tc,confirmPassword:h.Z_(),acceptTsAndCs:h.O7().refine(e=>e,{message:"Please accept Ts&Cs"}),acceptAcquiringTsAndCs:h.O7().refine(e=>e,{message:"Please accept Acquiring Service Terms"}),marketingConsent:h.O7().optional()}).refine(e=>e.password===e.confirmPassword,{path:["confirmPassword"],message:"Passwords must match"}),tg=h.Ry({inviteEmail:h.Z_().email({message:"Please provide a valid email"}),role:h.jb(b.MemberRole,{errorMap:()=>({message:"Please select a role"})})});h.Ry({data:h.Ry({client:h.Ry({disbursements:h.Ry({node:h.Ry({__typename:h.i0("Disbursement"),id:h.Z_().min(1),amount:h.Ry({currency:h.i0("ZAR"),quantity:h.Z_()}),bankBeneficiary:h.Ry({__typename:h.i0("DisbursementBankBeneficiary"),accountHolder:h.Z_(),accountNumber:h.Z_(),accountType:h.Z_(),bankId:h.jb(v.Td)}),beneficiaryReference:h.Z_().min(1),linkedAccountId:h._4().optional(),status:h.VK("__typename",[h.Ry({__typename:h.i0("DisbursementError"),disbursementErrorReason:h.Z_(),disbursementErrorDescription:h.Z_()}),h.Ry({__typename:h.i0("DisbursementCancelled")}),h.Ry({__typename:h.i0("DisbursementCompleted")}),h.Ry({__typename:h.i0("DisbursementPaused")}),h.Ry({__typename:h.i0("DisbursementPending")}),h.Ry({__typename:h.i0("DisbursementReversed")}),h.Ry({__typename:h.i0("DisbursementSubmitted")})]).transform(e=>e)})})})})}),h.Ry({brandName:h.Z_().transform(e=>e.trim()).refine(e=>e.length>=3,{message:"Brand name must be at least 3 characters"})});let ty=h.Ry({brandName:h.Z_().min(3,"Brand name must be at least 3 characters").max(64,"Your brand name cannot be more than 64 characters").transform(e=>e.trim())});h.Ry({domain:h.Z_()});let tv=h.G0([h.i0(v.SH.ExceedsCardWithdrawalLimit),h.i0(v.SH.InsufficientFunds),h.i0(v.SH.InvalidCardError),h.i0("internal_error"),h.i0("payment_already_processed")]),tb=h.Ry({phoneNumber:e1}),tw=h.Ry({firstName:h.Z_().trim().min(1,"First name is required"),lastName:h.Z_().trim().min(1,"Last name is required")});h.Ry({merchantId:h.Z_().uuid(),userId:h.Z_().uuid()}),h.Ry({attemptId:h.Z_().uuid().optional(),consentRequestId:h.Z_().min(1,"Consent request ID is required"),consentRequestUrl:h.Z_().url("Invalid consent request URL")}),h.Ry({serialNumber:h.Z_().trim().min(1,"Serial number is required"),merchantId:h.Z_().uuid("Invalid merchant ID"),stitchTerminalId:h.Z_().trim().optional(),stitchMerchantId:h.Z_().uuid("Invalid Stitch merchant ID").optional(),clientId:h.Z_().uuid("Invalid client ID").optional()});let t_=h.Ry({firstName:h.Z_().trim().min(1,"Please enter the owner's first name"),lastName:h.Z_().trim().min(1,"Please enter the owner's last name"),email:h.Z_().trim().email({message:"Please provide a valid email address"}),phoneNumber:e1}),tx=T.extend({paymentAcceptanceMode:h.jb(b.PaymentAcceptanceMode,{errorMap:()=>({message:"Please select how you accept payments"})}),merchantSecondaryCategory:T.shape.merchantSecondaryCategory.refine(e=>g.Zw.get(e)?.code!==null,"Prohibited category — this merchant cannot be onboarded"),legalEntity:T.shape.legalEntity.refine(e=>e!==b.LegalEntity.UNKNOWN,"Please select a supported business type"),owner:t_,...V,addressInfo:L}).superRefine(q),tE=h.Ry({name:h.Z_().trim().min(1,{message:"Please provide a name"}).max(100,{message:"Name must be 100 characters or fewer"})}),tS=h.Ry({scheduleId:h.Z_().uuid()}),tk=h.Ry({merchantId:h.Z_().uuid({message:"Please provide a valid merchant id"})});h.Ry({cycleStart:h.Z_().datetime()}),h.Ry({cycleStart:h.Z_().datetime()})},75377:function(e,t,n){"use strict";n.d(t,{eN:function(){return i},hP:function(){return o},zu:function(){return a}});var r=n(51104);let i="REFUNDED",a={FOOD_AND_DRINK:"FOOD_AND_DRINK",HOME_AND_REPAIR:"HOME_AND_REPAIR",SERVICES:"SERVICES",TRANSPORTATION:"TRANSPORTATION",TRAVEL_AND_ACCOMMODATION:"TRAVEL_AND_ACCOMMODATION",RETAIL_AND_ECOMMERCE:"RETAIL_AND_ECOMMERCE",HEALTHCARE_AND_BEAUTY:"HEALTHCARE_AND_BEAUTY",RECREATION_AND_FITNESS:"RECREATION_AND_FITNESS",NON_PROFIT_ORGANISATIONS:"NON_PROFIT_ORGANISATIONS",ONLINE_AND_FINANCIAL_SERVICES:"ONLINE_AND_FINANCIAL_SERVICES"};r.TerminalStatus.ACTIVE,r.TerminalStatus.SUSPENDED,r.TerminalStatus.UNALLOCATED,r.TerminalStatus.ACTIVE,r.TerminalStatus.SUSPENDED,r.TerminalStatus.UNALLOCATED;let o=[7,30,90]},86365:function(e,t,n){"use strict";n.d(t,{iR:function(){return i}});var r=n(51104);
14function i({kycbStatus:e,clientEnvironment:t}){let n=e??r.KycbStatus.PENDING,i=t===r.ClientEnvironment.PROD;return{kycbStatus:n,hasLiveClient:i,isLive:n===r.KycbStatus.PASSED&&i}}},707:function(e,t,n){"use strict";n.d(t,{sF:function(){return S},fI:function(){return R},j4:function(){return C},ck:function(){return I},hv:function(){return T},Gt:function(){return E},En:function(){return k},Nf:function(){return A},L6:function(){return N}});var r,i,a,o,s,l,c,u,d,p,f,h,m=n(72633),g=n(20156);(r=s||(s={})).InviteAdmin="invite-admin",r.RemoveAdmin="remove-admin",r.InviteMember="invite-member",r.RemoveMember="remove-member",(i=l||(l={})).SetupAutomation="setup-automation",i.Create="create",i.StopAutomation="stop-automation",(c||(c={})).Create="create",(a=u||(u={})).Update="update",a.EditPaymentMethods="edit-payment-methods",a.EditClientSecret="edit-client-secret",a.EditRedirectUrls="edit-redirect-urls",a.EditStitchExpressId="edit-stitch-express-id",a.EditBrandLogoAndName="edit-brand-logo-and-name",(d||(d={})).Download="download",(p||(p={})).Activate="activate",(f||(f={})).Download="download",(o=h||(h={})).View="view",o.Update="update";let y={...g.Sd,user:Object.values(s),withdrawal:Object.values(l),refund:Object.values(c),merchantConfig:Object.values(u),transaction:Object.values(d),assistant:Object.values(p),statement:Object.values(f),terminal:Object.values(h)},v=(0,m.p)(y);v.newRole({...g.kW.statements,user:["invite-admin","invite-member","remove-admin","remove-member"],withdrawal:["setup-automation","create","stop-automation"],refund:["create"],merchantConfig:["update","edit-payment-methods","edit-client-secret","edit-redirect-urls","edit-stitch-express-id","edit-brand-logo-and-name"],transaction:["download"],assistant:["activate"],statement:["download"],terminal:["view","update"]}),v.newRole({...g.MU.statements,user:["invite-admin","invite-member","remove-admin","remove-member"],withdrawal:["setup-automation","create","stop-automation"],refund:["create"],merchantConfig:["update","edit-payment-methods","edit-client-secret","edit-redirect-urls","edit-stitch-express-id","edit-brand-logo-and-name"],transaction:["download"],statement:["download"],terminal:["view","update"]}),v.newRole({...g.zy.statements,user:[],withdrawal:[],refund:["create"],merchantConfig:[],transaction:[],assistant:[],statement:[],terminal:[]});var b=n(3539),w=n(75182),_=n(25092);function x(e){let{data:t,error:n}=(0,w.ZP)(["organization-has-permission",e],async()=>{let t=await _.Z.organization.hasPermission({permission:e});if(t.error)throw Error(t.error.message??"Failed to evaluate permission");return t.data.success},{revalidateOnFocus:!1,onError:e=>{b.Tb(e)}});return{hasPermission:t??!1,isLoading:void 0===t&&!n}}let E=()=>x({refund:[c.Create]}).hasPermission,S=()=>x({withdrawal:[l.Create,l.SetupAutomation]}).hasPermission,k=()=>x({withdrawal:[l.SetupAutomation]}).hasPermission,C=()=>x({transaction:[d.Download]}).hasPermission,I=()=>x({merchantConfig:[u.EditClientSecret]}).hasPermission,A=()=>x({user:[s.InviteMember,s.RemoveMember]}).hasPermission,T=()=>x({merchantConfig:[u.EditRedirectUrls]}).hasPermission,R=()=>x({statement:[f.Download]}).hasPermission,N=()=>x({terminal:[h.View]})},67622:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(75271),i=n(25092),a=n(89839),o=n(11362);function s(){let[e,t]=(0,r.useState)(null),{refreshUserSession:n}=(0,o.Z)(),s=async e=>{try{if(!(await fetch("/api/merchant/active-merchant",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({activeMerchantId:e})})).ok){(0,a.Z)("Error changing merchant - Contact support","error");return}await i.Z.organization.setActive({organizationId:e}),await n(),t(e)}catch(e){(0,a.Z)("Error changing merchant - Contact support","error")}};return{activeMerchantId:e,setActiveMerchantId:async e=>{e&&await s(e)}}}},11362:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(75271),i=n(20363);function a(){return(0,r.useContext)(i.Z)}},59667:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(97371),i=n.n(r);function a(){let{publicRuntimeConfig:e}=i()();return e}},3952:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(97371),i=n.n(r),a=n(75271);function o(e){return(0,a.useMemo)(()=>{let{publicRuntimeConfig:t}=i()();return t.ENVIRONMENT===e},[e])}},89967:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(56964),i=n(75271),a=n(41654),o=n(89839);function s(e=!0){let t=(0,r.useRouter)(),n=(0,i.useCallback)(e=>n=>{n.id===e&&"removed"===n.status&&t.push("/unauthorised")},[t]);return(0,i.useCallback)(async(r,i)=>{let s=await fetch(r,i);if(401===s.status){if(e){let e=(0,o.Z)("You have been inactive for too long. Refreshing...","warning",{autoClose:3e3});a.Am.onChange(n(e))}throw await t.push("/unauthorised"),Error("Expired login")}if(403===s.status)throw e&&(0,o.Z)("Something went wrong","error"),Error("Forbidden");return s},[n,t,e])}},65385:function(e,t,n){"use strict";n.d(t,{n:function(){return s}});var r=n(56964),i=n(75271);function a(e){return"string"!=typeof e?e.pathname??"":e.split("?")[0].split("#")[0]}function o(e,t,n){return e.events.on("routeChangeStart",t),e.events.on("routeChangeComplete",n),e.events.on("routeChangeError",n),()=>{e.events.off("routeChangeStart",t),e.events.off("routeChangeComplete",n),e.events.off("routeChangeError",n)}}function s(){let e=(0,r.useRouter)(),[t,n]=(0,i.useState)(!1);return(0,i.useEffect)(()=>o(e,()=>n(!0),()=>n(!1)),[e]),(0,i.useEffect)(()=>{n(!1)},[e.pathname,e.asPath]),t}t.Z=function(e){let t=(0,r.useRouter)(),[n,s]=(0,i.useState)(!1);return(0,i.useEffect)(()=>
14{if(function(e,t,n){let r=a(e);return!!r&&(t===r||a(n)===r)}(e,t.pathname,t.asPath)){s(!1);return}return o(t,t=>{a(t)===a(e)&&s(!0)},()=>s(!1))},[e,t,t.pathname,t.asPath]),n}},80515:function(e,t,n){"use strict";var r=n(10780),i=n(56964),a=n(75271),o=n(25092),s=n(89839),l=n(11362);t.Z=function(){let e=(0,i.useRouter)(),{userData:t}=(0,l.Z)(),n=!!t?.session?.impersonatedBy,c=t?.merchant?.id??null,[u,d]=(0,a.useState)(!1),p=(0,a.useRef)(!1);return{logOut:(0,a.useCallback)(async()=>{if(p.current)return;p.current=!0,d(!0);let t=()=>{p.current=!1,d(!1)};r.Z.reset();try{if(n){await o.Z.admin.stopImpersonating({fetchOptions:{onSuccess(){e.push(c?`/internal/merchants/${c}`:"/internal")},onError(){(0,s.Z)("Failed to stop impersonating","error"),t()}}});return}await o.Z.revokeSessions({fetchOptions:{onSuccess(){e.push("/unauthorised")},onError(){(0,s.Z)("Failed to logout","error"),t()}}})}catch{(0,s.Z)(n?"Failed to stop impersonating":"Failed to logout","error"),t()}},[e,n,c]),isLoggingOut:u}}},14316:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r={};n.r(r),n.d(r,{debug:function(){return l},error:function(){return d},fatal:function(){return p},fmt:function(){return a},info:function(){return c},trace:function(){return s},warn:function(){return u}});var i=n(91821);let a=function(e,...t){let n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n};function o(e,t,n,r){(0,i.hQ)({level:e,message:t,attributes:n,severityNumber:r})}function s(e,t){o("trace",e,t)}function l(e,t){o("debug",e,t)}function c(e,t){o("info",e,t)}function u(e,t){o("warn",e,t)}function d(e,t){o("error",e,t)}function p(e,t){o("fatal",e,t)}var f=n(3539),h=n(75271),m=n(20363);class g{constructor(e,t={}){this.contextLabel=e,this.defaultMeta=t}
14error(e,t={}){this.log("error",e.toString(),t),console.error(this.contextLabel,e,JSON.stringify({...this.defaultMeta,...t}))}warn(e,t={}){this.log("warn",e,t),console.warn(this.contextLabel,e,JSON.stringify({...this.defaultMeta,...t}))}info(e,t={}){this.log("info",e,t),console.info(this.contextLabel,e,JSON.stringify({...this.defaultMeta,...t}))}debug(e,t={}){this.log("debug",e,t),console.debug(this.contextLabel,e,JSON.stringify({...this.defaultMeta,...t}))}trace(e,t={}){this.log("trace",e,t),console.trace(this.contextLabel,e,JSON.stringify({...this.defaultMeta,...t}))}addToDefaultMeta(e){this.defaultMeta={...this.defaultMeta,defaultMeta:e}}log(e,t,n={}){let i=this.prependContext(t);r[e](i,{...n,...this.defaultMeta})}prependContext(e){return this.contextLabel?`[${this.contextLabel}] ${e}`:e}}function y(){let{userData:e}=(0,h.useContext)(m.Z),t=e?.merchant,n=(0,h.useMemo)(()=>new g,[]);return(0,h.useEffect)(()=>{f.av({id:e?.user?.id,email:e?.user?.email,username:e?.user?.email}),f.v("Merchant Info",{merchantId:t?.id,merchantName:t?.name}),n.addToDefaultMeta({id:e?.user?.id,email:e?.user?.email,username:e?.user?.email,merchantId:t?.id,merchantName:t?.name})},[n,t,e]),n}},27971:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(75271);function i(e){let[t,n]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let t=window.matchMedia(e),r=()=>{n(t.matches)};return r(),t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[e]),t}},37711:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(75271),i=n(25282),a=n(59369);function o(e){let{control:t,getValues:n,resetField:o}=e,s=(0,i.qo)({control:t,name:"merchantPrimaryCategory"}),l=(0,r.useMemo)(()=>{let e=s?a.Gn.get(s):void 0;return e?new Map([...a.Zw].filter(([t])=>e.includes(t))):a.Zw},[s]);return(0,r.useEffect)(()=>{let e=n("merchantSecondaryCategory");e&&!l.has(e)&&o("merchantSecondaryCategory")},[l,n,o]),l}},74757:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(89967);function i(){let e=(0,r.Z)();return async(t,n="")=>{let r=await e(`${t}${n}`);if(!r.ok)throw Error("An error occurred while fetching the data.");return r.json()}}},89976:function(e,t,n){"use strict";n.d(t,{V:function(){return el}});var r=n(75271),i=n(40507),a=n(15767);let o
vendor: 41,168 bytes, line 14
14=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function 
14s(e,t,n){let r=function(e){let{name:t}=e;if(t&&-1!==t.lastIndexOf(".")&&!e.type){let n=t.split(".").pop().toLowerCase(),r=o.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e),{webkitRelativePath:i}=e,a="string"==typeof t?t:"string"==typeof i&&i.length>0?i:`./${e.name}`;return"string"!=typeof r.path&&l(r,"path",a),void 0!==n&&Object.defineProperty(r,"handle",{value:n,writable:!1,configurable:!1,enumerable:!0}),l(r,"relativePath",a),r}function l(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}let c=[".DS_Store","Thumbs.db"];function u(e){return"object"==typeof e&&null!==e}function d(e){return e.filter(e=>-1===c.indexOf(e.name))}function p(e){if(null===e)return[];let t=[];for(let n=0;n<e.length;n++){let r=e[n];t.push(r)}return t}function f(e){if("function"!=typeof e.webkitGetAsEntry)return h(e);let t=e.webkitGetAsEntry();return t&&t.isDirectory?g(t):h(e,t)}function h(e,t){return(0,a.mG)(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&"function"==typeof e.getAsFileSystemHandle){let t=yield e.getAsFileSystemHandle();if(null===t)throw Error(`${e} is not a File`);if(void 0!==t){let e=yield t.getFile();return e.handle=t,s(e)}}let r=e.getAsFile();if(!r)throw Error(`${e} is not a File`);return s(r,null!==(n=null==t?void 0:t.fullPath)&&void 0!==n?n:void 0)})}function m(e){return(0,a.mG)(this,void 0,void 0,function*(){return e.isDirectory?g(e):function(e){return(0,a.mG)(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(n=>{t(s(n,e.fullPath))},e=>{n(e)})})})}(e)})}function g(e){let t=e.createReader();return new Promise((e,n)=>{let r=[];!function i(){t.readEntries(t=>(0,a.mG)(this,void 0,void 0,function*(){if(t.length){let e=Promise.all(t.map(m));r.push(e),i()}else try{let t=yield Promise.all(r);e(t)}catch(e){n(e)}}),e=>{n(e)})}()})}var y=n(71253);function v(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||E(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}}(e,t)||E(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var k="function"==typeof y?y:y.default,C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(","),n=t.length>1?"one of ".concat(t.join(", ")):t[0];return{code:"file-invalid-type",message:"File type must be ".concat(n)}},I=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},A=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},T={code:"too-many-files",message:"Too many files"};function R(e,t){var n="application/x-moz-file"===e.type||k(e,t);return[n,n?null:C(t)]}function N(e,t,n){if(O(e.size)){if(O(t)&&O(n)){if(e.size>n)return[!1,I(n)];if(e.size<t)return[!1,A(t)]}else if(O(t)&&e.size<t)return[!1,A(t)];else if(O(n)&&e.size>n)return[!1,I(n)]}return[!0,null]}function O(e){return null!=e}function P(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function D(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function M(e){e.preventDefault()}function $(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some(function(t){return!P(e)&&t&&t.apply(void 0,[e].concat(r)),P(e)})}}function j(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function L(e){return/^.*\.[\w]+$/.test(e)}var F=["children"],B=["open"],U=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],z=["refKey","onChange","onClick"];function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}}(e,t)||V(e,t)||function(){throw TypeError("Invalid attempt to de
14structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach(function(t){H(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var K=(0,r.forwardRef)(function(e,t){var n=e.children,i=Q(Y(e,F)),a=i.open,o=Y(i,B);return(0,r.useImperativeHandle)(t,function(){return{open:a}},[a]),r.createElement(r.Fragment,null,n(G(G({},o),{},{open:a})))});K.displayName="Dropzone";var J={disabled:!1,getFilesFromEvent:function(e){return(0,a.mG)(this,void 0,void 0,function*(){return u(e)&&u(e.dataTransfer)?function(e,t){return(0,a.mG)(this,void 0,void 0,function*(){if(e.items){let n=p(e.items).filter(e=>"file"===e.kind);return"drop"!==t?n:d(function e(t){return t.reduce((t,n)=>[...t,...Array.isArray(n)?e(n):[n]],[])}((yield Promise.all(n.map(f)))))}return d(p(e.files).map(e=>s(e)))})}(e.dataTransfer,e.type):u(e)&&u(e.target)?p(e.target.files).map(e=>s(e)):Array.isArray(e)&&e.every(e=>"getFile"in e&&"function"==typeof e.getFile)?function(e){return(0,a.mG)(this,void 0,void 0,function*(){return(yield Promise.all(e.map(e=>e.getFile()))).map(e=>s(e))})}(e):[]})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};K.defaultProps=J,K.propTypes={children:i.func,accept:i.objectOf(i.arrayOf(i.string)),multiple:i.bool,preventDropOnDocument:i.bool,noClick:i.bool,noKeyboard:i.bool,noDrag:i.bool,noDragEventsBubbling:i.bool,minSize:i.number,maxSize:i.number,maxFiles:i.number,disabled:i.bool,getFilesFromEvent:i.func,onFileDialogCancel:i.func,onFileDialogOpen:i.func,useFsAccessApi:i.bool,autoFocus:i.bool,onDragEnter:i.func,onDragLeave:i.func,onDragOver:i.func,onDrop:i.func,onDropAccepted:i.func,onDropRejected:i.func,onError:i.func,validator:i.func};var X={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=G(G({},J),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,s=t.minSize,l=t.multiple,c=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,p=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,y=t.onFileDialogOpen,b=t.useFsAccessApi,E=t.autoFocus,S=t.preventDropOnDocument,k=t.noClick,C=t.noKeyboard,I=t.noDrag,A=t.noDragEventsBubbling,F=t.onError,B=t.validator,W=(0,r.useMemo)(function(){return function(e){if(O(e))return Object.entries(e).reduce(function(e,t){var n=x(t,2),r=n[0],i=n[1];return[].concat(v(e),[r],v(i))},[]).filter(function(e){return j(e)||L(e)}).join(",")}(n)},[n]),K=(0,r.useMemo)(function(){return O(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=x(e,2),n=t[0],r=t[1],i=!0;return j(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every(L)||(console.warn('Skipped "'.concat(n,'" because an invali
14d file extension was provided.')),i=!1),i}).reduce(function(e,t){var n=x(t,2),r=n[0],i=n[1];return w(w({},e),{},_({},r,i))},{})}]:n},[n]),Q=(0,r.useMemo)(function(){return"function"==typeof y?y:et},[y]),en=(0,r.useMemo)(function(){return"function"==typeof g?g:et},[g]),er=(0,r.useRef)(null),ei=(0,r.useRef)(null),ea=Z((0,r.useReducer)(ee,X),2),eo=ea[0],es=ea[1],el=eo.isFocused,ec=eo.isFileDialogActive,eu=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),ed=function(){!eu.current&&ec&&setTimeout(function(){ei.current&&!ei.current.files.length&&(es({type:"closeDialog"}),en())},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",ed,!1),function(){window.removeEventListener("focus",ed,!1)}},[ei,ec,en,eu]);var ep=(0,r.useRef)([]),ef=function(e){er.current&&er.current.contains(e.target)||(e.preventDefault(),ep.current=[])};(0,r.useEffect)(function(){return S&&(document.addEventListener("dragover",M,!1),document.addEventListener("drop",ef,!1)),function(){S&&(document.removeEventListener("dragover",M),document.removeEventListener("drop",ef))}},[er,S]),(0,r.useEffect)(function(){return!i&&E&&er.current&&er.current.focus(),function(){}},[er,E,i]);var eh=(0,r.useCallback)(function(e){F?F(e):console.error(e)},[F]),em=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eA(e),ep.current=[].concat(function(e){if(Array.isArray(e))return q(e)}(t=ep.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||V(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),D(e)&&Promise.resolve(a(e)).then(function(t){if(!P(e)||A){var n,r,i,a,d,p,f,h,m=t.length,g=m>0&&(r=(n={files:t,accept:W,minSize:s,maxSize:o,multiple:l,maxFiles:c,validator:B}).files,i=n.accept,a=n.minSize,d=n.maxSize,p=n.multiple,f=n.maxFiles,h=n.validator,(!!p||!(r.length>1))&&(!p||!(f>=1)||!(r.length>f))&&r.every(function(e){var t=x(R(e,i),1)[0],n=x(N(e,a,d),1)[0],r=h?h(e):null;return t&&n&&!r}));es({isDragAccept:g,isDragReject:m>0&&!g,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}}).catch(function(e){return eh(e)})},[a,u,eh,A,W,s,o,l,c,B]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eA(e);var t=D(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&p&&p(e),!1},[p,A]),ey=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eA(e);var t=ep.current.filter(function(e){return er.current&&er.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ep.current=t,!(t.length>0)&&(es({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),D(e)&&d&&d(e))},[er,d,A]),ev=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=Z(R(e,W),2),i=t[0],a=t[1],l=Z(N(e,s,o),2),c=l[0],u=l[1],d=B?B(e):null;if(i&&c&&!d)n.push(e);else{var p=[a,u];d&&(p=p.concat(d)),r.push({file:e,errors:p.filter(function(e){return e})})}}),(!l&&n.length>1||l&&c>=1&&n.length>c)&&(n.forEach(function(e){r.push({file:e,errors:[T]})}),n.splice(0)),es({acceptedFiles:n,fileRejections:r,isDragReject:r.length>0,type:"setFiles"}),f&&f(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&h&&h(n,t)},[es,l,W,s,o,c,f,h,m,B]),eb=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eA(e),ep.current=[],D(e)&&Promise.resolve(a(e)).then(function(t){(!P(e)||A)&&ev(t,e)}).catch(function(e){return eh(e)}),es({type:"reset"})},[a,ev,eh,A]),ew=(0,r.useCallback)(function(){if(eu.current){es({type:"openDialog"}),Q(),window.showOpenFilePicker({multiple:l,types:K}).then(function(e){return a(e)}).then(function(e){ev(e,null),es({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(en(e),es({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(eu.current=!1,ei.current?(ei.current.value=null,ei.current.click()):eh(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):eh(e)});return}ei.current&&(es({type:"openDialog"}),Q(),ei.current.value=null,ei.current.click())},[es,Q,en,b,ev,eh,K,l]),e_=(0,r.useCallback)(function(e){er.current&&er.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ew())},[er,ew]),ex=(0,r.useCallback)(function(){es({type:"focus"})},[]),eE=(0,r.useCallback)(function(){es({type:"blur"})},[]),eS=(0,r.useCallback)(function(){k||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(ew,0):ew())},[k,ew]),ek=function(e){return i?null:e},eC=function(e){return C?null:ek(e)},eI=function(e){return I?null:ek(e)},eA=function(e){A&&e.stopPropagation()},eT=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,r=e.onKeyDown,a=e.onFocus,o=e.onBlur,s=e.onClick,l=e.onDragEnter,c=e.onDragOver,u=e.onDragLeave,d=e.onDrop,p=Y(e,U);return G(G(H({onKeyDown:eC($(r,e_)),onFocus:eC($(a,ex)),onBlur:eC($(o,eE)),onClick:ek($(s,eS)),onDragEnter:eI($(l,em)),onDragOver:eI($(c,eg)),onDragLeave:eI($(u,ey)),onDrop:eI($(d,eb)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===t?"ref":t,er),i||C?{}:{tabIndex:0}),p)}},[er,e_,ex,eE,eS,em,eg,ey,eb,C,I,i]),eR=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eN=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
14,t=e.refKey,n=e.onChange,r=e.onClick,i=Y(e,z);return G(G({},H({accept:W,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ek($(n,eb)),onClick:ek($(r,eR)),tabIndex:-1},void 0===t?"ref":t,ei)),i)}},[ei,n,l,eb,i]);return G(G({},eo),{},{isFocused:el&&!i,getRootProps:eT,getInputProps:eN,rootRef:er,inputRef:ei,open:ek(ew)})}function ee(e,t){switch(t.type){case"focus":return G(G({},e),{},{isFocused:!0});case"blur":return G(G({},e),{},{isFocused:!1});case"openDialog":return G(G({},X),{},{isFileDialogActive:!0});case"closeDialog":return G(G({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return G(G({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return G(G({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return G({},X);default:return e}}function et(){}var en=n(89839),er=n(15032);let ei={"image/png":[".png"],"image/gif":[".gif"],"image/jpeg":[".jpg",".jpeg"],"image/svg+xml":[".svg"]},ea=Object.values(ei).flat().join(","),eo=["image/png","image/jpeg"],es=6e6,el=({merchantId:e,maxSizeBytes:t=es})=>{let[n,i]=(0,r.useState)(),[a,o]=(0,r.useState)(null),[s,l]=(0,r.useState)(null),[c,u]=(0,r.useState)(null),[d,p]=(0,r.useState)(!1),[f,h]=(0,r.useState)(!1),m=(0,r.useRef)(null),g=(0,r.useCallback)(e=>{if(!e.length)return;let t=e[0];t&&t.type in ei&&o({imageData:URL.createObjectURL(t),imageName:t.name,imageContentType:t.type,imageSize:t.size})},[]),y=(0,r.useCallback)(async()=>{if(h(!1),n){let t=null;if(a){let e=eo.includes(a.imageContentType)?a.imageContentType:"image/png",r=n.getCroppedCanvas().toDataURL(e).split(",")[1];l(t={imageData:r,imageName:e===a.imageContentType?a.imageName:`${a.imageName.replace(/\.[^.]*$/,"")}.png`,imageContentType:e,imageSize:r.length})}try{if(!t)return;if(!e){(0,en.Z)("Unable to upload the image — please refresh and try again","error");return}p(!0);let n=await fetch(`/api/merchant/${e}/payment-page/logo`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok){if(413===n.status)throw Error("File too large");throw Error("Unable to upload the image")}let r=await n.json();if(r.success)l(null),u(r.data.merchantLogoUrl),p(!1),h(!0),(0,en.Z)("Successfully uploaded!","success");else throw Error("Unable to upload the image")}catch(e){(0,er.Iv)(e).includes("File too large")?(0,en.Z)("Image too large","error"):(0,en.Z)("Unable to upload the image","error"),l(null),u(null),p(!1),h(!1)}}},[n,a,e]),{getRootProps:v,getInputProps:b,fileRejections:w,isDragActive:_}=Q({onDrop:g,maxSize:t,accept:ei});return(0,r.useEffect)(()=>{w.length&&w.map(e=>e.errors).map(e=>{e.map(e=>{if(e.code.includes("file-invalid-type")){(0,en.Z)(`File type must be ${ea}`,"error");return}if(e.code.includes("file-too-large")){(0,en.Z)(`File is larger than ${t/1e6}MB`,"warning");return}})})},[w,t]),{reset:()=>{o(null),l(null),u(null),p(!1),h(!1)},setCropper:i,uploadCroppedImage:y,croppedImage:s,imageSource:a,setImageSource:o,isFetching:d,isDragActive:_,isSuccess:f,uploadedImage:c,inputRef:m,onChangeFile:e=>{if(e.target.files&&e.target.files.length>0){let t=e.target.files[0];t&&t.type in ei&&o({imageData:URL.createObjectURL(t),imageName:t.name,imageContentType:t.type,imageSize:t.size})}},getRootProps:v,getInputProps:b}}},2752:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(86365),i=n(11362);let a=["/verification","/go-live","/settings","/onboarding","/webhooks","/switching-merchant/[merchantId]"];function o(){let{userData:e}=(0,i.Z)(),t=e?.merchant,n=!!t,o=(0,r.iR)({kycbStatus:t?.kycbStatus,clientEnvironment:e?.client?.environment}),s=n?o.kycbStatus:null,l=!!e?.session?.impersonatedBy,c=!!t?.termsAndConditionsAcceptance;return{kycbStatus:s,hasLiveClient:o.hasLiveClient,isLive:o.isLive,isImpersonating:l,hasMerchant:n,isPathnameGated:e=>!!n&&!o.isLive&&!!c&&!l&&!(a.includes(e)||e.startsWith("/internal"))}}},12491:function(e,t,n){"use strict";n.d(t,{Uw:function(){return eY},Td:function(){return ts},kJ:function(){return tp}
14,yx:function(){return t$},dk:function(){return tU},HZ:function(){return tV},SH:function(){return t5}});var r,i,a,o,s,l,c,u,d,p,f,h,m,g,y,v,b,w,_,x,E,S,k,C,I,A,T,R,N,O,P,D,M,$,j,L,F,B,U,z,Z,V,q,W,G,H,Y,K,J,X,Q,ee,et,en,er,ei,ea,eo,es,el,ec,eu,ed,ep,ef,eh,em,eg,ey,ev,eb,ew,e_,ex,eE,eS,ek,eC,eI,eA,eT,eR,eN,eO,eP,eD,eM,e$,ej,eL,eF,eB,eU,ez,eZ,eV,eq,eW,eG,eH,eY,eK,eJ,eX,eQ,e0,e1,e2,e3,e5,e4,e9,e6,e7,e8,te,tt,tn,tr,ti,ta,to,ts,tl,tc,tu,td,tp,tf,th,tm,tg,ty,tv,tb,tw,t_,tx,tE,tS,tk,tC,tI,tA,tT,tR,tN,tO,tP,tD,tM,t$,tj,tL,tF,tB,tU,tz,tZ,tV,tq,tW,tG,tH,tY,tK,tJ,tX,tQ,t0,t1,t2,t3,t5,t4,t9,t6,t7,t8=n(15767);let ne=/\r\n|[\n\r]/g;function nt(e,t){let n=0,r=1;for(let i of e.body.matchAll(ne)){if("number"==typeof i.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function nn(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=1===t.line?n:0,l=t.column+s,c=`${e.name}:${o}:${l}
15`,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<d.length;e+=80)t.push(d.slice(e,e+80));return c+nr([[`${o} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return c+nr([[`${o-1} |`,u[i-1]],[`${o} |`,d],["|","^".padStart(l)],[`${o+1} |`,u[i+1]]])}function nr(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}
15class ni extends Error{constructor(e,...t){var n,r,i,a;let{nodes:o,source:s,positions:l,path:c,originalError:u,extensions:d}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=u?u:void 0,this.nodes=na(Array.isArray(o)?o:o?[o]:void 0);let p=na(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==p?void 0:null===(r=p[0])||void 0===r?void 0:r.source,this.positions=null!=l?l:null==p?void 0:p.map(e=>e.start),this.locations=l&&s?l.map(e=>nt(s,e)):null==p?void 0:p.map(e=>nt(e.source,e.start));let f="object"==typeof(a=null==u?void 0:u.extensions)&&null!==a?null==u?void 0:u.extensions:void 0;this.extensions=null!==(i=null!=d?d:f)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,ni):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(let n of this.nodes)if(n.loc){var t;e+="\n\n"+nn((t=n.loc).source,nt(t.source,t.start))}}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+nn(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function na(e){return void 0===e||0===e.length?void 0:e}function no(e,t,n){return new ni(`Syntax Error: ${n}`,{source:e,positions:[t]})}class ns{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class nl{constructor(e,t,n,r,i,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}function nc(e){return e>=48&&e<=57}function nu(e){return e>=97&&e<=122||e>=65&&e<=90}function nd(e){return nu(e)||95===e}(r=eM||(eM={})).QUERY="query",r.MUTATION="mutation",r.SUBSCRIPTION="subscription",(i=e$||(e$={})).QUERY="QUERY",i.MUTATION="MUTATION",i.SUBSCRIPTION="SUBSCRIPTION",i.FIELD="FIELD",i.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",i.FRAGMENT_SPREAD="FRAGMENT_SPREAD",i.INLINE_FRAGMENT="INLINE_FRAGMENT",i.VARIABLE_DEFINITION="VARIABLE_DEFINITION",i.SCHEMA="SCHEMA",i.SCALAR="SCALAR",i.OBJECT="OBJECT",i.FIELD_DEFINITION="FIELD_DEFINITION",i.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",i.INTERFACE="INTERFACE",i.UNION="UNION",i.ENUM="ENUM",i.ENUM_VALUE="ENUM_VALUE",i.INPUT_OBJECT="INPUT_OBJECT",i.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",(a=ej||(ej={})).NAME="Name",a.DOCUMENT="Document",a.OPERATION_DEFINITION="OperationDefinition",a.VARIABLE_DEFINITION="VariableDefinition",a.SELECTION_SET="SelectionSet",a.FIELD="Field",a.ARGUMENT="Argument",a.FRAGMENT_SPREAD="FragmentSpread",a.INLINE_FRAGMENT="InlineFragment",a.FRAGMENT_DEFINITION="FragmentDefinition",a.VARIABLE="Variable",a.INT="IntValue",a.FLOAT="FloatValue",a.STRING="StringValue",a.BOOLEAN="BooleanValue",a.NULL="NullValue",a.ENUM="EnumValue",a.LIST="ListValue",a.OBJECT="ObjectValue",a.OBJECT_FIELD="ObjectField",a.DIRECTIVE="Directive",a.NAMED_TYPE="NamedType",a.LIST_TYPE="ListType",a.NON_NULL_TYPE="NonNullType",a.SCHEMA_DEFINITION="SchemaDefinition",a.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",a.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",a.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",a.FIELD_DEFINITION="FieldDefinition",a.INPUT_VALUE_DEFINITION="InputValueDefinition",a.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",a.UNION_TYPE_DEFINITION="UnionTypeDefinition",a.ENUM_TYPE_DEFINITION="EnumTypeDefinition",a.ENUM_VALUE_DEFINITION="EnumValueDefinition",a.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",a.DIRECTIVE_DEFINITION="DirectiveDefinition",a.SCHEMA_EXTENSION="SchemaExtension",a.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",a.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",a.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",a.UNION_TYPE_EXTENSION="UnionTypeExtension",a.ENUM_TYPE_EXTENSION="EnumTypeExtension",a.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",(o=eL||(eL={})).SOF="<SOF>",o.EOF="<EOF>",o.BANG="!",o.DOLLAR="$",o.AMP="&",o.PAREN_L="(",o.PAREN_R=")",o.SPREAD="...",o.COLON=":",o.EQUALS="=",o.AT="@",o.BRACKET_L="[",o.BRACKET_R="]",o.BRACE_L="{",o.PIPE="|",o.BRACE_R="}
15",o.NAME="Name",o.INT="Int",o.FLOAT="Float",o.STRING="String",o.BLOCK_STRING="BlockString",o.COMMENT="Comment";class np{constructor(e){let t=new nl(eL.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==eL.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){let t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(10===e||13===e)break;if(nf(e))++i;else if(nh(n,i))i+=2;else break}return nv(e,eL.COMMENT,t,i,n.slice(t+1,i))}(e,i);case 33:return nv(e,eL.BANG,i,i+1);case 36:return nv(e,eL.DOLLAR,i,i+1);case 38:return nv(e,eL.AMP,i,i+1);case 40:return nv(e,eL.PAREN_L,i,i+1);case 41:return nv(e,eL.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return nv(e,eL.SPREAD,i,i+3);break;case 58:return nv(e,eL.COLON,i,i+1);case 61:return nv(e,eL.EQUALS,i,i+1);case 64:return nv(e,eL.AT,i,i+1);case 91:return nv(e,eL.BRACKET_L,i,i+1);case 93:return nv(e,eL.BRACKET_R,i,i+1);case 123:return nv(e,eL.BRACE_L,i,i+1);case 124:return nv(e,eL.PIPE,i,i+1);case 125:return nv(e,eL.BRACE_R,i,i+1);case 34:if(34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2))return function(e,t){let n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,s="",l=[];for(;a<r;){let r=n.charCodeAt(a);if(34===r&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2)){s+=n.slice(o,a),l.push(s);let r=nv(e,eL.BLOCK_STRING,t,a+3,(function(e){var t,n;let r=Number.MAX_SAFE_INTEGER,i=null,a=-1;for(let t=0;t<e.length;++t){let o=e[t],s=function(e){var t;let n=0;for(;n<e.length&&(9===(t=e.charCodeAt(n))||32===t);)++n;return n}(o);s!==o.length&&(i=null!==(n=i)&&void 0!==n?n:t,a=t,0!==t&&s<r&&(r=s))}return e.map((e,t)=>0===t?e:e.slice(r)).slice(null!==(t=i)&&void 0!==t?t:0,a+1)})(l).join("\n"));return e.line+=l.length-1,e.lineStart=i,r}if(92===r&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2)&&34===n.charCodeAt(a+3)){s+=n.slice(o,a),o=a+1,a+=4;continue}if(10===r||13===r){s+=n.slice(o,a),l.push(s),13===r&&10===n.charCodeAt(a+1)?a+=2:++a,s="",o=a,i=a;continue}if(nf(r))++a;else if(nh(n,a))a+=2;else throw no(e.source,a,`Invalid character within String: ${ny(e,a)}.`)}throw no(e.source,a,"Unterminated string.")}(e,i);return function(e,t){let n=e.source.body,r=n.length,i=t+1,a=i,o="";for(;i<r;){let r=n.charCodeAt(i);if(34===r)return o+=n.slice(a,i),nv(e,eL.STRING,t,i+1,o);if(92===r){o+=n.slice(a,i);let t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?function(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let e=n.charCodeAt(t+i++);if(125===e){if(i<5||!nf(r))break;return{value:String.fromCodePoint(r),size:i}}if((r=r<<4|n_(e))<0)break}throw no(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}(e,i):function(e,t){let n=e.source.body,r=nw(n,t+2);if(nf(r))return{value:String.fromCodePoint(r),size:6};if(nm(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=nw(n,t+8);if(ng(e))return{value:String.fromCodePoint(r,e),size:12}}throw no(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}(e,i):function(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw no(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}(e,i);o+=t.value,i+=t.size,a=i;continue}if(10===r||13===r)break;if(nf(r))++i;else if(nh(n,i))i+=2;else throw no(e.source,i,`Invalid character within String: ${ny(e,i)}.`)}throw no(e.source,i,"Unterminated string.")}(e,i)}if(nc(t)||45===t)return function(e,t,n){let r=e.source.body,i=t,a=n,o=!1;if(45===a&&(a=r.charCodeAt(++i)),48===a){if(nc(a=r.charCodeAt(++i))
15)throw no(e.source,i,`Invalid number, unexpected digit after 0: ${ny(e,i)}.`)}else i=nb(e,i,a),a=r.charCodeAt(i);if(46===a&&(o=!0,a=r.charCodeAt(++i),i=nb(e,i,a),a=r.charCodeAt(i)),(69===a||101===a)&&(o=!0,(43===(a=r.charCodeAt(++i))||45===a)&&(a=r.charCodeAt(++i)),i=nb(e,i,a),a=r.charCodeAt(i)),46===a||nd(a))throw no(e.source,i,`Invalid number, expected digit but got: ${ny(e,i)}.`);return nv(e,o?eL.FLOAT:eL.INT,t,i,r.slice(t,i))}(e,i,t);if(nd(t))return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){var a;if(nu(a=n.charCodeAt(i))||nc(a)||95===a)++i;else break}return nv(e,eL.NAME,t,i,n.slice(t,i))}(e,i);throw no(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":nf(t)||nh(n,i)?`Unexpected character: ${ny(e,i)}.`:`Invalid character: ${ny(e,i)}.`)}return nv(e,eL.EOF,r,r)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===eL.COMMENT);return e}}function nf(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function nh(e,t){return nm(e.charCodeAt(t))&&ng(e.charCodeAt(t+1))}function nm(e){return e>=55296&&e<=56319}function ng(e){return e>=56320&&e<=57343}function ny(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return eL.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function nv(e,t,n,r,i){let a=e.line,o=1+n-e.lineStart;return new nl(t,n,r,a,o,i)}function nb(e,t,n){if(!nc(n))throw no(e.source,t,`Invalid number, expected digit but got: ${ny(e,t)}.`);let r=e.source.body,i=t+1;for(;nc(r.charCodeAt(i));)++i;return i}function nw(e,t){return n_(e.charCodeAt(t))<<12|n_(e.charCodeAt(t+1))<<8|n_(e.charCodeAt(t+2))<<4|n_(e.charCodeAt(t+3))}function n_(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function nx(e,t){if(!e)throw Error(t)}function nE(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if("function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:nE(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(nE(e[r],t));return 1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function(e,t){let n=Object.entries(e);return 0===n.length?"{}":t.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+n.map(([e,n])=>e+": "+nE(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}let nS=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;let r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){let t=nE(e,[]);throw Error(`Cannot use ${r} "${t}" from another module or realm.
16
17Ensure that there is only one instance of "graphql" in the node_modules
18directory. If different versions of "graphql" are the dependencies of other
19relied on modules, use "resolutions" to ensure only one version is installed.
20
21https://yarnpkg.com/en/docs/selective-version-resolutions
22
23Duplicate "graphql" modules cannot be used at the same time since different
24versions may have different capabilities and behavior. The data from one
25version used in the function from another could produce confusing and
26spurious results.`)}}return!1};class nk{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||nx(!1,`Body must be a string. Received: ${nE(e,[])}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||nx(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||nx(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class nC{constructor(e,t={}){let n=nS(e,nk)?e:new nk(e);this._lexer=new np(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(eL.NAME);return this.node(e,{kind:ej.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:ej.DOCUMENT,definitions:this.many(eL.SOF,this.parseDefinition,eL.EOF)})}parseDefinition(){if(this.peek(eL.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===eL.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw no(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(eL.BRACE_L))return this.node(t,{kind:ej.OPERATION_DEFINITION,operation:eM.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType();return this.peek(eL.NAME)&&(e=this.parseName()),this.node(t,{kind:ej.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(eL.NAME);switch(e.value){case"query":return eM.QUERY;case"mutation":return eM.MUTATION;case"subscription":return eM.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(eL.PAREN_L,this.parseVariableDefinition,eL.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ej.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(eL.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(eL.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(eL.DOLLAR),this.node(e,{kind:ej.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ej.SELECTION_SET,selections:this.many(eL.BRACE_L,this.parseSelection,eL.BRACE_R)})}parseSelection(){return this.peek(eL.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(eL.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:ej.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(eL.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(eL.PAREN_L,t,eL.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(eL.COLON),this.node(t,{kind:ej.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(eL.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(eL.NAME)?this.node(e,{kind:ej.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:ej.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:ej.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:ej.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case eL.BRACKET_L:return this.parseList(e);case eL.BRACE_L:return this.parseObject(e);case eL.INT:return this.advanceLexer(),this.node(t,{kind:ej.INT,value:t.value});case eL.FLOAT:return this.advanceLexer(),this.node(t,{kind:ej.FLOAT,value:t.value});case eL.STRING:case eL.BLOCK_STRING:return this.parseStringLiteral();case eL.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:ej.BOOLEAN,value:!0});case"false":return this.node(t,{kind:ej.BOOLEAN,value:!1});case"null":return this.node(t,{kind:ej.NULL});default:return this.node(t,{kind:ej.ENUM,value:t.value})}case eL.DOLLAR:if(e){if(this.expectToken(eL.DOLLAR),this._lexer.token.kind===eL.NAME){let e=this._lexer.token.value;throw no(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:ej.STRING,value:e.value,block:e.kind===eL.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:ej.LIST,values:this.any(eL.BRACKET_L,()=>this.parseValueLiteral(e),eL.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:ej.OBJECT,fields:this.any(eL.BRACE_L,()=>this.parseObjectField(e),eL.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(eL.COLON),this.node(t,{kind:ej.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(eL.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(eL.AT),this.node(t,{kind:ej.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(eL.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(eL.BRACKET_R),e=this.node(t,{kind:ej.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(eL.BANG)?this.node(t,{kind:ej.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:ej.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(eL.STRING)||this.peek(eL.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(eL.BRACE_L,this.parseOperationTypeDefinition,eL.BRACE_R);return this.node(e,{kind:ej.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(eL.COLON);let n=this.parseNamedType();return this.node(e,{kind:ej.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:ej.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:ej.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(eL.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(eL.BRACE_L,this.parseFieldDefinition,eL.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(eL.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:ej.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(eL.PAREN_L,this.parseInputValueDef,eL.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(eL.COLON);let i=this.parseTypeReference();this.expectOptionalToken(eL.EQUALS)&&(e=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:ej.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:ej.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:ej.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(eL.EQUALS)?this.delimitedMany(eL.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:ej.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(eL.BRACE_L,this.parseEnumValueDefinition,eL.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:ej.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw no(this._lexer.source,this._lexer.token.start,`${nI(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:ej.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(eL.BRACE_L,this.parseInputValueDef,eL.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===eL.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(eL.BRACE_L,this.parseOperationTypeDefinition,eL.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:ej.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.
26unexpected();return this.node(e,{kind:ej.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ej.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ej.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ej.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ej.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ej.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(eL.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(e,{kind:ej.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(eL.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(e$,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new ns(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw no(this._lexer.source,t.start,`Expected ${nA(e)}, found ${nI(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===eL.NAME&&t.value===e)this.advanceLexer();else throw no(this._lexer.source,t.start,`Expected "${e}", found ${nI(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===eL.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return no(this._lexer.source,t.start,`Unexpected ${nI(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==eL.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw no(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function nI(e){let t=e.value;return nA(e.kind)+(null!=t?` "${t}"`:"")}function nA(e){return e===eL.BANG||e===eL.DOLLAR||e===eL.AMP||e===eL.PAREN_L||e===eL.PAREN_R||e===eL.SPREAD||e===eL.COLON||e===eL.EQUALS||e===eL.AT||e===eL.BRACKET_L||e===eL.BRACKET_R||e===eL.BRACE_L||e===eL.PIPE||e===eL.BRACE_R?`"${e}"`:e}var nT=new Map,nR=new Map,nN=!0,nO=!1;function nP(e){return e.replace(/[\s,]+/g," ").trim()}function nD(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]}),function(e){var t=nP(e);if(!nT.has(t)){var n,r,i,a,o,s=function(e,t){let n=new nC(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}(e,{experimentalFragmentVariables:nO,allowLegacyFragmentVariables:nO});if(!s||"Document"!==s.kind)throw Error("Not a valid GraphQL document.");nT.set(t,((a=new Set((n=new Set,r=[],s.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,a=nP((t=e.loc).source.body.substring(t.start,t.end)),o=nR.get(i);o&&!o.has(a)?nN&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||nR.set(i,o=new Set),o.add(a),n.has(a)||(n.add(a),r.push(e))}else r.push(e)}),i=(0,t8.pi)((0,t8.pi)({},s),{definitions:r}
26)).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var n=e[t];n&&"object"==typeof n&&a.add(n)})}),(o=i.loc)&&(delete o.startToken,delete o.endToken),i))}return nT.get(t)}(r)}var nM=nD;(s=nD||(nD={})).gql=nM,s.resetCaches=function(){nT.clear(),nR.clear()},s.disableFragmentWarnings=function(){nN=!1},s.enableExperimentalFragmentVariables=function(){nO=!0},s.disableExperimentalFragmentVariables=function(){nO=!1},nD.default=nD;var n$=nD;(l=eF||(eF={})).Float="float",l.Pool="pool",l.Settlement="settlement",(c=eB||(eB={})).Business="Business",c.Individual="Individual",(u=eU||(eU={})).Credit="credit",u.Current="current",u.Investment="investment",u.Loan="loan",u.Other="other",u.Savings="savings",u.Unknown="unknown",(d=ez||(ez={})).Failed="FAILED",d.Pending="PENDING",d.Processing="PROCESSING",d.Success="SUCCESS",(p=eZ||(eZ={})).AccountDormant="ACCOUNT_DORMANT",p.AccountHolderDeceased="ACCOUNT_HOLDER_DECEASED",p.AccountInvalid="ACCOUNT_INVALID",p.AccountStopped="ACCOUNT_STOPPED",p.AccountTypeRestricted="ACCOUNT_TYPE_RESTRICTED",p.AccountUnderLegal="ACCOUNT_UNDER_LEGAL",p.AcquirerConfigError="ACQUIRER_CONFIG_ERROR",p.AcquirerInternalError="ACQUIRER_INTERNAL_ERROR",p.Duplicate="DUPLICATE",p.InsufficientFunds="INSUFFICIENT_FUNDS",p.InvalidInput="INVALID_INPUT",p.InvalidPersonalDetails="INVALID_PERSONAL_DETAILS",p.IssuerInternalError="ISSUER_INTERNAL_ERROR",p.LimitsExceeded="LIMITS_EXCEEDED",p.MandateCancelled="MANDATE_CANCELLED",p.MandateExpired="MANDATE_EXPIRED",p.MandateProcessing="MANDATE_PROCESSING",p.MandateSuspended="MANDATE_SUSPENDED",p.MfaAccepted="MFA_ACCEPTED",p.MfaExpired="MFA_EXPIRED",p.MfaFailed="MFA_FAILED",p.MfaRejected="MFA_REJECTED",p.NewMandateRequired="NEW_MANDATE_REQUIRED",p.ReauthenticationRequired="REAUTHENTICATION_REQUIRED",p.Success="SUCCESS",p.TransmissionError="TRANSMISSION_ERROR",p.Unknown="UNKNOWN",(f=eV||(eV={})).Fixed="fixed",f.Variable="variable",(h=eq||(eq={})).Emv="EMV",h.Secure3D="Secure3D",(m=eW||(eW={})).IsClientToken="isClientToken",m.IsTenantUserToken="isTenantUserToken",m.IsTestUser="isTestUser",m.IsUserToken="isUserToken",(g=eG||(eG={})).Absa="absa",g.AfricanBank="african_bank",g.Capitec="capitec",g.DiscoveryBank="discovery_bank",g.Fnb="fnb",g.GrindrodBank="grindrod_bank",g.Investec="investec",g.Nedbank="nedbank",g.SasfinBank="sasfin_bank",g.StandardBank="standard_bank",g.Tymebank="tymebank",g.ZaAccessBank="za_access_bank",g.ZaAlbarakaBank="za_albaraka_bank",g.ZaBankZero="za_bank_zero",g.ZaBidvest="za_bidvest",g.ZaStandardCharteredBank="za_standard_chartered_bank",(y=eH||(eH={})).AccountFrozen="ACCOUNT_FROZEN",y.DebitsNotAllowedOnAccount="DEBITS_NOT_ALLOWED_ON_ACCOUNT",y.DormantAccount="DORMANT_ACCOUNT",(v=eY||(eY={})).Absa="absa",v.AccessBank="access_bank",v.Capitec="capitec",v.DiscoveryBank="discovery_bank",v.FirstBankOfNigeria="first_bank_of_nigeria",v.Fnb="fnb",v.Gtbank="gtbank",v.Investec="investec",v.Nedbank="nedbank",v.ProvidusBank="providus_bank",v.SasfinBank="sasfin_bank",v.StandardBank="standard_bank",v.SterlingBank="sterling_bank",v.Tymebank="tymebank",v.UnitedBankForAfrica="united_bank_for_africa",v.VfdMicrofinanceBank="vfd_microfinance_bank",v.WemaBank="wema_bank",v.ZaAccessBank="za_access_bank",v.ZaAlbarakaBank="za_albaraka_bank",v.ZaBankWindhoek="za_bank_windhoek",v.ZaBankZero="za_bank_zero",v.ZaBankZeroMukuru="za_bank_zero_mukuru",v.ZaBidvest="za_bidvest",v.ZaBnpParibas="za_bnp_paribas",v.ZaCapitecBusiness="za_capitec_business",v.ZaCitibank="za_citibank",v.ZaFinbondMutualBank="za_finbond_mutual_bank",v.ZaFinbondNet1="za_finbond_net1",v.ZaHabibOverseasBank="za_habib_overseas_bank",v.ZaHbzBank="za_hbz_bank",v.ZaHsbc="za_hsbc",v.ZaIthalaBank="za_ithala_bank",v.ZaJpMorganChaseBank="za_jp_morgan_chase_bank",v.ZaMercantileBank="za_mercantile_bank",v.ZaNedbankNamibia="za_nedbank_namibia",v.ZaOldMutualBank="za_old_mutual_bank",v.ZaOlympusMobile="za_olympus_mobile",v.ZaPeopleBank="za_people_bank",v.ZaPostbank="za_postbank",v.ZaStandardCharteredBank="za_standard_chartered_bank",v.ZaStateBankOfIndia="za_state_bank_of_india",v.ZaUBank="za_u_bank",v.ZaUnibank="za_unibank",v.ZaVbsMutualBank="za_vbs_mutual_bank",v.ZenithBank="zenith_bank",(b=eK||(eK={})).Private="private",b.Public="public",(w=eJ||(eJ={})).Absa="absa",w.AccessBank="access_bank",w.AfricanBank="african_bank",w.Capitec="capitec",
26w.DiscoveryBank="discovery_bank",w.FirstBankOfNigeria="first_bank_of_nigeria",w.Fnb="fnb",w.GrindrodBank="grindrod_bank",w.Gtbank="gtbank",w.GtbankMobile="gtbank_mobile",w.Investec="investec",w.Nedbank="nedbank",w.ProvidusBank="providus_bank",w.SasfinBank="sasfin_bank",w.StandardBank="standard_bank",w.SterlingBank="sterling_bank",w.Tymebank="tymebank",w.UnitedBankForAfrica="united_bank_for_africa",w.VfdMicrofinanceBank="vfd_microfinance_bank",w.WemaBank="wema_bank",w.ZaAccessBank="za_access_bank",w.ZaAlbarakaBank="za_albaraka_bank",w.ZaBankWindhoek="za_bank_windhoek",w.ZaBankZero="za_bank_zero",w.ZaBankZeroMukuru="za_bank_zero_mukuru",w.ZaBidvest="za_bidvest",w.ZaBnpParibas="za_bnp_paribas",w.ZaCapitecBusiness="za_capitec_business",w.ZaCitibank="za_citibank",w.ZaFinbondMutualBank="za_finbond_mutual_bank",w.ZaFinbondNet1="za_finbond_net1",w.ZaHabibOverseasBank="za_habib_overseas_bank",w.ZaHbzBank="za_hbz_bank",w.ZaHsbc="za_hsbc",w.ZaIthalaBank="za_ithala_bank",w.ZaJpMorganChaseBank="za_jp_morgan_chase_bank",w.ZaMercantileBank="za_mercantile_bank",w.ZaNedbankNamibia="za_nedbank_namibia",w.ZaOldMutualBank="za_old_mutual_bank",w.ZaOlympusMobile="za_olympus_mobile",w.ZaPeopleBank="za_people_bank",w.ZaPostbank="za_postbank",w.ZaStandardCharteredBank="za_standard_chartered_bank",w.ZaStateBankOfIndia="za_state_bank_of_india",w.ZaUBank="za_u_bank",w.ZaUnibank="za_unibank",w.ZaVbsMutualBank="za_vbs_mutual_bank",w.ZenithBank="zenith_bank",(_=eX||(eX={})).Absa="absa",_.AccessBank="access_bank",_.Capitec="capitec",_.DiscoveryBank="discovery_bank",_.FirstBankOfNigeria="first_bank_of_nigeria",_.Fnb="fnb",_.Gtbank="gtbank",_.GtbankMobile="gtbank_mobile",_.Investec="investec",_.Nedbank="nedbank",_.StandardBank="standard_bank",_.Tymebank="tymebank",_.UnitedBankForAfrica="united_bank_for_africa",_.ZenithBank="zenith_bank",(eQ||(eQ={})).BankBeneficiary="BankBeneficiary",(x=e0||(e0={})).Active="active",x.Deregistering="deregistering",(E=e1||(e1={})).Absa="absa",E.AfricanBank="african_bank",E.Capitec="capitec",E.Fnb="fnb",E.Investec="investec",E.Nedbank="nedbank",E.StandardBank="standard_bank",E.StandardBankLesotho="standard_bank_lesotho",E.StandardBankSwaziland="standard_bank_swaziland",E.ZaBankWindhoek="za_bank_windhoek",E.ZaHabibOverseasBank="za_habib_overseas_bank",E.ZaHbzBank="za_hbz_bank",E.ZaMercantileBank="za_mercantile_bank",E.ZaNedbankNamibia="za_nedbank_namibia",E.ZaPeopleBank="za_people_bank",E.ZaPostbank="za_postbank",E.ZaStandardCharteredBank="za_standard_chartered_bank",(S=e2||(e2={})).InstitutionNotSupported="institution_not_supported",S.InvalidAccount="invalid_account",S.InvalidAccountNumberLength="invalid_account_number_length",(k=e3||(e3={})).Invalid="invalid",k.Valid="valid",(C=e5||(e5={})).Daily="DAILY",C.Monthly="MONTHLY",C.OnceOff="ONCE_OFF",C.Weekly="WEEKLY",C.Yearly="YEARLY",(I=e4||(e4={})).Amex="Amex",I.Diners="Diners",I.Discover="Discover",I.Mastercard="Mastercard",I.Visa="Visa",(A=e9||(e9={})).Credit="credit",A.Debit="debit",A.Prepaid="prepaid",(T=e6||(e6={})).ClientReturning="clientReturning",T.OnceOff="onceOff",T.UserReturning="userReturning",(R=e7||(e7={})).ClientId="client_id",R.Sub="sub",R.TenantId="tenant_id",(N=e8||(e8={})).Default="DEFAULT",N.Instant="INSTANT",(O=te||(te={})).ConsentNotGranted="consent_not_granted",O.DuplicateNonce="duplicate_nonce",O.InvalidAgreementReference="invalid_agreement_reference",O.InvalidAmount="invalid_amount",O.InvalidAmountForConsent="invalid_amount_for_consent",O.InvalidConsent="invalid_consent",O.InvalidPaymentMethod="invalid_payment_method",O.InvalidSplitSettlement="invalid_split_settlement",O.InvalidToken="invalid_token",O.UnsupportedConsentFrequency="unsupported_consent_frequency",(P=tt||(tt={})).Current="current",P.Savings="savings",(D=tn||(tn={})).Annually="annually",D.Biannually="biannually",D.Never="never",D.Quarterly="quarterly",D.Repo="repo",(M=tr||(tr={})).Absa="absa",M.AccessBank="access_bank",M.AfricanBank="african_bank",M.Capitec="capitec",M.DiscoveryBank="discovery_bank",M.Fnb="fnb",M.Nedbank="nedbank",M.StandardBank="standard_bank",M.Tymebank="tymebank",M.ZaAccessBank="za_access_bank",M.ZaBidvest="za_bidvest",M.ZaFinbondMutualBank="za_finbond_mutual_bank",M.ZaFinbondNet1="za_finbond_net1",($=ti||(ti={})).AdHoc="adHoc",$.Biannually="biannually",$.Fortnightly="fortnightly",$.Monthly="monthly",$.Quarterly="quarterly",$.Weekly="weekly",$.Yearly="yearly",(j=ta||(ta={})).Accepted="accepted",j.InternalError="internalError",j.NoResponse="noResponse",j.PendingAuthorisation="pendingAuthorisation",j.Queued="queued",j.Saved="saved",j.SystemError="systemError",(L=to||(to={})).Fixed="fixed",L.UsageBased="usageBased",L.Variable="variable",(F=ts||(ts={})).Absa="absa",F.AfricanBank="african_bank",F.Capitec="capitec",F.DiscoveryBank="discovery_bank",F.Fnb="fnb",F.GrindrodBank="grindrod_bank",F.Investec="investec",F.Nedbank="nedbank",F.SasfinBank="sasfin_bank",F.StandardBank="standard_bank",F.Tymebank="tymebank",F.ZaAccessBank="za_access_bank",F.ZaAlbarakaBank="za_albaraka_bank",F.ZaBankWindhoek="za_bank_windhoek",F.ZaBankZero="za_bank_zero",F.ZaBankZeroMukuru="za_bank_zero_mukuru",F.ZaBidvest="za_bidvest",F.ZaBnpParibas="za_bnp_paribas",F.ZaCapitecBusiness="za_capitec_business",F.ZaCitibank="za_citibank",F.ZaFinbondMutualBank="za_finbond_mutual_bank",F.ZaFinbondNet1="za_finbond_net1",F.ZaHabibOver
26seasBank="za_habib_overseas_bank",F.ZaHbzBank="za_hbz_bank",F.ZaHsbc="za_hsbc",F.ZaIthalaBank="za_ithala_bank",F.ZaJpMorganChaseBank="za_jp_morgan_chase_bank",F.ZaMercantileBank="za_mercantile_bank",F.ZaNedbankNamibia="za_nedbank_namibia",F.ZaOldMutualBank="za_old_mutual_bank",F.ZaOlympusMobile="za_olympus_mobile",F.ZaPeopleBank="za_people_bank",F.ZaPostbank="za_postbank",F.ZaStandardCharteredBank="za_standard_chartered_bank",F.ZaStateBankOfIndia="za_state_bank_of_india",F.ZaUBank="za_u_bank",F.ZaUnibank="za_unibank",F.ZaVbsMutualBank="za_vbs_mutual_bank",(B=tl||(tl={})).AccountVerificationFailed="account_verification_failed",B.BankError="bank_error",B.BankProcessingError="bank_processing_error",B.BeneficiaryBankProcessingError="beneficiary_bank_processing_error",B.ExceededLimit="exceeded_limit",B.InactiveAccount="inactive_account",B.InsufficientFunds="insufficient_funds",B.InternalError="internal_error",B.InvalidAccount="invalid_account",B.InvalidDestination="invalid_destination",B.InvalidTransactionDetails="invalid_transaction_details",B.RestrictedAccount="restricted_account",(U=tc||(tc={})).InsufficientFunds="insufficient_funds",U.NoSatisfactorySourceBank="no_satisfactory_source_bank",(z=tu||(tu={})).InvalidAccount="invalid_account",z.InvalidDestination="invalid_destination",(Z=td||(td={})).DisbursementCancelled="DisbursementCancelled",Z.DisbursementCompleted="DisbursementCompleted",Z.DisbursementError="DisbursementError",Z.DisbursementPaused="DisbursementPaused",Z.DisbursementPending="DisbursementPending",Z.DisbursementReversed="DisbursementReversed",Z.DisbursementSubmitted="DisbursementSubmitted",(V=tp||(tp={})).Default="DEFAULT",V.Instant="INSTANT",(q=tf||(tf={})).Live="live",q.Test="test",(W=th||(th={})).BankIntegrationFailure="bankIntegrationFailure",W.Cancelled="cancelled",W.ExceededAccountLimits="exceededAccountLimits",W.Forbidden="forbidden",W.InsufficientFunds="insufficientFunds",(G=tm||(tm={})).Female="female",G.Male="male",G.Unspecified="unspecified",(H=tg||(tg={})).BusinessRegistrationDetails="BusinessRegistrationDetails",H.IdentityDocumentDetails="IdentityDocumentDetails",H.PassportDetails="PassportDetails",H.TemporaryResidenceDetails="TemporaryResidenceDetails",(Y=ty||(ty={})).IdentityDocument="IdentityDocument",Y.Passport="Passport",(K=tv||(tv={})).Auth48Hour="auth48Hour",K.AuthEndOfDay="authEndOfDay",K.AuthRealtime="authRealtime",K.RegisteredMandate="registeredMandate",(tb||(tb={})).Idnumber="IDNUMBER",(J=tw||(tw={})).Absa="absa",J.AfricanBank="african_bank",J.Capitec="capitec",J.DiscoveryBank="discovery_bank",J.Fnb="fnb",J.Investec="investec",J.Nedbank="nedbank",J.StandardBank="standard_bank",J.Tymebank="tymebank",(X=t_||(t_={})).UserBankAccountPayerConstraints="UserBankAccountPayerConstraints",X.UserPayerConstraints="UserPayerConstraints",(tx||(tx={})).Valid="valid",(Q=tE||(tE={})).ExceedsRetries="exceedsRetries",Q.RateLimitExceeded="rateLimitExceeded",(ee=tS||(tS={})).PaymentCollectionCancelled="PaymentCollectionCancelled",ee.PaymentCollectionCompleted="PaymentCollectionCompleted",ee.PaymentCollectionFailed="PaymentCollectionFailed",ee.PaymentCollectionPending="PaymentCollectionPending",(et=tk||(tk={})).PaymentPending="PaymentPending",et.PaymentReceived="PaymentReceived",et.PaymentUnsettled="PaymentUnsettled",(en=tC||(tC={})).BusinessRegistrationDetails="BusinessRegistrationDetails",en.IdentityDocumentDetails="IdentityDocumentDetails",en.PassportDetails="PassportDetails",en.TemporaryResidenceDetails="TemporaryResidenceDetails",(er=tI||(tI={})).CapitecPayRecurringConsentDetails="CapitecPayRecurringConsentDetails",er.CardPaymentConsentDetails="CardPaymentConsentDetails",er.DebicheckPaymentConsentDetails="DebicheckPaymentConsentDetails",(tA||(tA={})).AccountVerificationFailed="AccountVerificationFailed",(ei=tT||(tT={})).CapitecPayRecurringConsentMethodOptions="CapitecPayRecurringConsentMethodOptions",ei.CardPaymentConsentMethodOptions="CardPaymentConsentMethodOptions",ei.DebicheckPaymentConsentMethodOptions="DebicheckPaymentConsentMethodOptions",(ea=tR||(tR={})).CapitecPay="capitecPay",ea.Card="card",ea.Crypto="crypto",ea.Debicheck="debicheck",ea.DebitOrder="debitOrder",(eo=tN||(tN={})).PaymentConsentCancelled="PaymentConsentCancelled",eo.PaymentConsentExpired="PaymentConsentExpired",eo.PaymentConsentFailed="PaymentConsentFailed",eo.PaymentConsentGranted="PaymentConsentGranted",eo.PaymentConsentPaused="PaymentConsentPaused",eo.PaymentConsentPending="PaymentConsentPending",eo.PaymentConsentProcessing="PaymentConsentProcessing",eo.PaymentConsentRevoked="PaymentConsentRevoked",(es=tO||(tO={})).PaymentInitiationBankAccountPayer="PaymentInitiationBankAccountPayer",es.PaymentInitiationBnplPayer="PaymentInitiationBnplPayer",es.PaymentInitiationCardPayer="PaymentInitiationCardPayer",es.PaymentInitiationCashAtmPayer="PaymentInitiationCashAtmPayer",es.PaymentInitiationCashRetailerPayer="PaymentInitiationCashRetailerPayer",es.PaymentInitiationCryptoPayer="PaymentInitiationCryptoPayer",es.PaymentInitiationEftManualPayer="PaymentInitiationEftManualPayer",es.PaymentInitiationWalletPayer="PaymentInitiationWalletPayer",(el=tP||(tP={})).PaymentInitiationRequestCancelled="PaymentInitiationRequestCancelled",el.PaymentInitiationRequestCompleted="PaymentInitiationRequestCompleted",el.PaymentInitiationRequestExpired="PaymentInitiationRequestExpired",el.PaymentInitiationRequestManuallyCompleted="PaymentInitiationRequestManuallyCompleted",el.PaymentInitiationRequestPending="PaymentInitiationRequestPending",(ec=tD||(tD={})).PaymentInitiationCancelled="PaymentInitiationCancelled",ec.PaymentInitiationCompleted="PaymentInitiationCompleted",ec.PaymentInitiationExpired="PaymentInitiationExpired",ec.PaymentInitiationFailed="PaymentInitiationFailed",ec.PaymentInitiationPending="PaymentInitiationPending",(eu=tM||(tM={})).Cash="cash",eu.Eft="eft",(ed=t$||(t$={})).ApplePayPaymentMethodDetails="ApplePayPaymentMethodDetails",ed.BnplPaymentMethodDetails="BnplPaymentMethodDetails",ed.CardPaymentMethodDetails="CardPaymentMethodDetails",ed.CashAtmPaymentMethodDetails="CashAtmPaymentMethodDetails",ed.CashRetailerPaymentMethodDetails="CashRetailerPaymentMethodDetails",ed.CryptoPaymentMethodDetails="CryptoPaymentMethodDetails",ed.EftManualPaymentMethodDetails="EftManualPaymentMethodDetails",ed.EftPaymentMethodDetails="EftPaymentMethodDetails",ed.GooglePayPaymentMethodDetails="GooglePayPaymentMethodDetails",ed.PayshapRequestPaymentMethodDetails="PayshapRequestPaymentMethodDetails",ed.SamsungPayPaymentMethodDetails="SamsungPayPaymentMethodDetails",(ep=tj||(tj={})).DelayedCharge="DelayedCharge",ep.Installment="Installment",ep.NoShow="NoShow",ep.PartialShipment="PartialShipment",ep.Resubmission="Resubmission",ep.StandingOrder="StandingOrder",ep.Subscription="Subscription",ep.Unscheduled="Unscheduled",(ef=tL||(tL={})).Absa="absa",ef.AfricanBank="african_bank",ef.Capitec="capitec",ef.DiscoveryBank="discovery_bank",ef.Fnb="fnb",ef.Investec="investec",ef.Nedbank="nedbank",ef.StandardBank="standard_bank",ef.Tymebank="tymebank",(eh=tF||(tF={})).Complete="complete",eh.Failed="failed",eh.Pending="pending",(em=tB||(tB={})).CapitecAppNotFound="capitecAppNotFound",em.CapitecClientBlockedMerchant="capitecClientBlockedMerchant",em.CapitecClientDeactivated="capitecClientDeactivated",em.CapitecClientNotFound="capitecClientNotFound",em.CapitecClientTransactionLimitExceeded="c
26apitecClientTransactionLimitExceeded",em.CapitecConsentInvalid="capitecConsentInvalid",em.CapitecConsentRequestDeclined="capitecConsentRequestDeclined",em.CapitecConsentRequestFailed="capitecConsentRequestFailed",em.CapitecConsentRequestFraudulent="capitecConsentRequestFraudulent",em.CapitecConsentRequestInstitutionFailure="capitecConsentRequestInstitutionFailure",em.CapitecConsentRequestTimedOut="capitecConsentRequestTimedOut",em.CapitecDuplicateConsent="capitecDuplicateConsent",em.CapitecDuplicatePayment="capitecDuplicatePayment",em.CapitecExternalServerError="capitecExternalServerError",em.CapitecFirstPaymentDateInvalid="capitecFirstPaymentDateInvalid",em.CapitecForexImportLimitExceeded="capitecForexImportLimitExceeded",em.CapitecForexRestrictionActive="capitecForexRestrictionActive",em.CapitecForexSdaLimitExceeded="capitecForexSdaLimitExceeded",em.CapitecInitialDateInvalid="capitecInitialDateInvalid",em.CapitecInsufficientFunds="capitecInsufficientFunds",em.CapitecInvalidAmount="capitecInvalidAmount",em.CapitecInvalidDebitDay="capitecInvalidDebitDay",em.CapitecInvalidInterval="capitecInvalidInterval",em.CapitecMaxTransactionLimitExceeded="capitecMaxTransactionLimitExceeded",em.CapitecMaxTransactionLimitImportInitialInternationalExceeded="capitecMaxTransactionLimitImportInitialInternationalExceeded",em.CapitecMaxTransactionLimitInitialExceeded="capitecMaxTransactionLimitInitialExceeded",em.CapitecMaxTransactionLimitInitialInternationalExceeded="capitecMaxTransactionLimitInitialInternationalExceeded",em.CapitecMerchantBatchRtcNotConfigured="capitecMerchantBatchRtcNotConfigured",em.CapitecMerchantDeactivated="capitecMerchantDeactivated",em.CapitecMerchantNotEnabled="capitecMerchantNotEnabled",em.CapitecMerchantNotFound="capitecMerchantNotFound",em.CapitecMinimumAmountInvalid="capitecMinimumAmountInvalid",em.CapitecPartnerDeactivated="capitecPartnerDeactivated",em.CapitecPartnerNotEnabled="capitecPartnerNotEnabled",em.CapitecPartnerNotFound="capitecPartnerNotFound",em.CapitecPayRecurringTransactionExpired="capitecPayRecurringTransactionExpired",em.CapitecUsernameMissing="capitecUsernameMissing",em.InternalServerError="internalServerError",em.UnknownError="unknownError",(eg=tU||(tU={})).BankError="bank_error",eg.BankProcessingError="bank_processing_error",eg.BeneficiaryBankProcessingError="beneficiary_bank_processing_error",eg.ExceededLimit="exceeded_limit",eg.InactiveAccount="inactive_account",eg.InsufficientFunds="insufficient_funds",eg.InternalError="internal_error",eg.InvalidAccount="invalid_account",eg.InvalidDestination="invalid_destination",eg.InvalidTransactionDetails="invalid_transaction_details",eg.PaymentNotReceived="payment_not_received",eg.RestrictedAccount="restricted_account",(tz||(tz={})).InsufficientFunds="insufficient_funds",(ey=tZ||(tZ={})).Refund="refund",ey.Reversal="reversal",(ev=tV||(tV={})).CancelledPayment="cancelled_payment",ev.Duplicate="duplicate",ev.Fraudulent="fraudulent",ev.GoodsOrServicesNotProvided="goods_or_services_not_provided",ev.GoodsReturned="goods_returned",ev.OrderCancelled="order_cancelled",ev.RequestedByUser="requested_by_user",(eb=tq||(tq={})).RefundCompleted="RefundCompleted",eb.RefundError="RefundError",eb.RefundPaused="RefundPaused",eb.RefundPending="RefundPending",eb.RefundSubmitted="RefundSubmitted",(ew=tW||(tW={})).Noop="noop",ew.Ok="ok",ew.Suspicious="suspicious",(e_=tG||(tG={})).Fortnightly="fortnightly",e_.Monthly="monthly",e_.Weekly="weekly",(ex=tH||(tH={})).Accountholders="accountholders",ex.Accounts="accounts",ex.Balances="balances",ex.Bankstatements="bankstatements",ex.ClientBankaccountverification="client_bankaccountverification",ex.ClientBusinesslookup="client_businesslookup",ex.ClientCdv="client_cdv",ex.ClientDirectdeposits="client_directdeposits",ex.ClientDisbursement="client_disbursement",ex.ClientImageupload="client_imageupload",ex.ClientKycbOnboarding="client_kycb_onboarding",ex.ClientMerchantOnboarding="client_merchant_onboarding",ex.ClientPaymentauthorizationrequest="client_paymentauthorizationrequest",ex.ClientPaymentcollections="client_paymentcollections",ex.ClientPaymentrequest="client_paymentrequest",ex.ClientRecurringpaymentconsentrequest="client_recurringpaymentconsentrequest",ex.ClientRefund="client_refund",ex.ClientSettlements="client_settlements",ex.ClientVaultManage="client_vault_manage",ex.ClientVaultProxy="client_vault_proxy",ex.ClientWebhookManage="client_webhook_manage",ex.ClientWebhooksDashboard="client_webhooks_dashboard",ex.Openid="openid",ex.Paymentinitiationrequest="paymentinitiationrequest",ex.PciUnsafe="pci_unsafe",ex.TenantClientcreate="tenant_clientcreate",ex.TenantPaymentrequestcreate="tenant_paymentrequestcreate",ex.TenantSubscriptioncreate="tenant_subscriptioncreate",ex.TransactionCancel="transaction_cancel",ex.TransactionInitiate="transaction_initiate",ex.Transactions="transactions",(eE=tY||(tY={}
26)).Perform="perform",eE.Skip="skip",(eS=tK||(tK={})).ClientProvided="clientProvided",eS.ClientSpecified="clientSpecified",eS.RecommendedByShield="recommendedByShield",eS.RuleApplied="ruleApplied",(ek=tJ||(tJ={})).SettlementCompleted="SettlementCompleted",ek.SettlementFailed="SettlementFailed",ek.SettlementPending="SettlementPending",ek.SettlementSubmitted="SettlementSubmitted",(eC=tX||(tX={})).Bnpl="bnpl",eC.CashAtm="cash_atm",eC.CashRetailer="cash_retailer",eC.Crypto="crypto",eC.Eft="eft",eC.EftManual="eft_manual",(eI=tQ||(tQ={})).Accepted="accepted",eI.Rejected="rejected",eI.Timeout="timeout",(t0||(t0={})).Otp="otp",(eA=t1||(t1={})).Active="active",eA.Unsubscribed="unsubscribed",(t2||(t2={})).Consumer="consumer",(eT=t3||(t3={})).Merchant="merchant",eT.Payer="payer",(eR=t5||(t5={})).AbsaEftAccountNotFound="absaEftAccountNotFound",eR.AbsaEftAccountSelectionTimedOut="absaEftAccountSelectionTimedOut",eR.AbsaEftConsentRequestDeclined="absaEftConsentRequestDeclined",eR.AbsaEftConsentRequestFailed="absaEftConsentRequestFailed",eR.AbsaEftConsentRequestInstitutionFailure="absaEftConsentRequestInstitutionFailure",eR.AbsaEftConsentRequestTimedOut="absaEftConsentRequestTimedOut",eR.AbsaEftDuplicatePayment="absaEftDuplicatePayment",eR.AbsaEftIdentifierNotRecognized="absaEftIdentifierNotRecognized",eR.AbsaEftIncompleteAppRegistration="absaEftIncompleteAppRegistration",eR.AbsaEftInvalidBusinessAccount="absaEftInvalidBusinessAccount",eR.AbsaEftInvalidIdentifierOnVerifiedFlow="absaEftInvalidIdentifierOnVerifiedFlow",eR.AbsaEftInvalidMerchant="absaEftInvalidMerchant",eR.AbsaEftNoAccountsLinkedToProfile="absaEftNoAccountsLinkedToProfile",eR.AbsaEftNoValidTransactionalAccount="absaEftNoValidTransactionalAccount",eR.AbsaEftNotADigitalCustomer="absaEftNotADigitalCustomer",eR.AbsaEftTransactionLimitExceeded="absaEftTransactionLimitExceeded",eR.AmountValidationFailed="amountValidationFailed",eR.AuthenticationError="authenticationError",eR.AuthorizationFailed="authorizationFailed",eR.AuthorizationNotFinalised="authorizationNotFinalised",eR.BelowOriginalAmount="belowOriginalAmount",eR.BlockedByFraudChecks="blockedByFraudChecks",eR.CapitecAmountExceedsConsentLimit="capitecAmountExceedsConsentLimit",eR.CapitecAmountExceedsRemainingLimit="capitecAmountExceedsRemainingLimit",eR.CapitecApiRateLimitExceeded="capitecApiRateLimitExceeded",eR.CapitecAppNotFound="capitecAppNotFound",eR.CapitecClientBlockedMerchant="capitecClientBlockedMerchant",eR.CapitecClientDeactivated="capitecClientDeactivated",eR.CapitecClientNotFound="capitecClientNotFound",eR.CapitecConsentInvalid="capitecConsentInvalid",eR.CapitecConsentRequestAlreadyExists="capitecConsentRequestAlreadyExists",eR.CapitecConsentRequestDeclined="capitecConsentRequestDeclined",eR.CapitecConsentRequestFailed="capitecConsentRequestFailed",eR.CapitecConsentRequestFraudulent="capitecConsentRequestFraudulent",eR.CapitecConsentRequestInstitutionFailure="capitecConsentRequestInstitutionFailure",eR.CapitecConsentRequestTimedOut="capitecConsentRequestTimedOut",eR.CapitecConsentRevoked="capitecConsentRevoked",eR.CapitecDuplicatePayment="capitecDuplicatePayment",eR.CapitecExternalServerError="capitecExternalServerError",eR.CapitecForexImportLimitExceeded="capitecForexImportLimitExceeded",eR.CapitecForexRestrictionActive="capitecForexRestrictionActive",eR.CapitecForexSdaLimitExceeded="capitecForexSdaLimitExceeded",eR.CapitecInsufficientFunds="capitecInsufficientFunds",eR.CapitecInvalidAmount="capitecInvalidAmount",eR.CapitecInvalidConsentReceipt="capitecInvalidConsentReceipt",eR.CapitecInvalidDebitDay="capitecInvalidDebitDay",eR.CapitecInvalidIdentifierOnVerifiedFlow="capitecInvalidIdentifierOnVerifiedFlow",eR.CapitecInvalidInterval="capitecInvalidInterval",eR.CapitecInvalidPaymentAction="capitecInvalidPaymentAction",eR.CapitecInvalidPaymentId="capitecInvalidPaymentId",eR.CapitecMaxTransactionLimitExceeded="capitecMaxTransactionLimitExceeded",eR.CapitecMaxTransactionLimitImportInternationalExceeded="capitecMaxTransactionLimitImportInternationalExceeded",eR.CapitecMaxTransactionLimitInternationalExceeded="capitecMaxTransactionLimitInternationalExceeded",eR.CapitecMerchantBatchRtcNotConfigured="capitecMerchantBatchRtcNotConfigured",eR.CapitecMerchantDeactivated="capitecMerchantDeactivated",eR.CapitecMerchantNotFound="capitecMerchantNotFound",eR.CapitecPartnerDeactivated="capitecPartnerDeactivated",eR.CapitecPartnerNotEnabled="capitecPartnerNotEnabled",eR.CapitecPartnerNotFound="capitecPartnerNotFound",eR.CapitecPayRecurringTransactionExpired="capitecPayRecurringTransactionExpired",eR.CapitecPaymentAfterLastPaymentDate="capitecPaymentAfterLastPaymentDate",eR.CapitecPaymentAlreadyPaidForSelectedInterval="capitecPaymentAlreadyPaidForSelectedInterval",eR.CapitecPaymentBackendError="capitecPaymentBackendError",eR.CapitecPaymentBeforeFirstPaymentDate="capitecPaymentBeforeFirstPaymentDate",eR.CapitecPaymentBeforeInitialDate="capitecPaymentBeforeInitialDate",eR.CapitecPaymentFailed="capitecPaymentFailed",eR.CapitecPaymentRetriedBeforeRetryInterval="capitecPaymentRetriedBeforeRetryInterval",eR.CapitecTransactionLimitExceeded="c
26apitecTransactionLimitExceeded",eR.ClientNotFound="clientNotFound",eR.DownstreamProviderError="downstreamProviderError",eR.DownstreamProviderUnavailable="downstreamProviderUnavailable",eR.ExceedsCardWithdrawalLimit="exceedsCardWithdrawalLimit",eR.ExceedsOriginalAmount="exceedsOriginalAmount",eR.GetTokenError="getTokenError",eR.InsufficientFunds="insufficientFunds",eR.InternalServerError="internalServerError",eR.InvalidCardError="invalidCardError",eR.InvalidConfigurationError="invalidConfigurationError",eR.InvalidConsentRequest="invalidConsentRequest",eR.InvalidInputError="invalidInputError",eR.InvalidPaymentRequest="invalidPaymentRequest",eR.InvalidTransactionError="invalidTransactionError",eR.InvalidTransactionStatusError="invalidTransactionStatusError",eR.IssuerValidationFailed="issuerValidationFailed",eR.IssuerVerificationFailed="issuerVerificationFailed",eR.NedbankDirectConsentDeclined="nedbankDirectConsentDeclined",eR.NedbankDirectConsentExpired="nedbankDirectConsentExpired",eR.NedbankDirectConsentFailed="nedbankDirectConsentFailed",eR.NedbankDirectPaymentLimitExceeded="nedbankDirectPaymentLimitExceeded",eR.OutOfBandIncorrectReference="outOfBandIncorrectReference",eR.OutOfBandOverpaid="outOfBandOverpaid",eR.OutOfBandUnderpaid="outOfBandUnderpaid",eR.PaymentInitiationRequestCancelled="paymentInitiationRequestCancelled",eR.PaymentInitiationRequestExpired="paymentInitiationRequestExpired",eR.PaymentRefundFailed="paymentRefundFailed",eR.PaymentRequestInInvalidState="paymentRequestInInvalidState",eR.PayoutFailed="payoutFailed",eR.PayshapRequestAccountProxyInvalid="payshapRequestAccountProxyInvalid",eR.PayshapRequestAccountProxyResolutionFailed="payshapRequestAccountProxyResolutionFailed",eR.PayshapRequestBlocked="payshapRequestBlocked",eR.PayshapRequestClearingTimeout="payshapRequestClearingTimeout",eR.PayshapRequestDeclined="payshapRequestDeclined",eR.PayshapRequestExpired="payshapRequestExpired",eR.PayshapRequestExternalServerError="payshapRequestExternalServerError",eR.PayshapRequestFnbExternalServerError="payshapRequestFnbExternalServerError",eR.PayshapRequestIncorrectAccountNumber="payshapRequestIncorrectAccountNumber",eR.PayshapRequestInsufficientFunds="payshapRequestInsufficientFunds",eR.PayshapRequestInvalidAmount="payshapRequestInvalidAmount",eR.PayshapRequestInvalidCredentials="payshapRequestInvalidCredentials",eR.PayshapRequestInvalidDetails="payshapRequestInvalidDetails",eR.PayshapRequestMobileProxyResolutionFailed="payshapRequestMobileProxyResolutionFailed",eR.PayshapRequestOperationAborted="payshapRequestOperationAborted",eR.PayshapRequestPaymentFailed="payshapRequestPaymentFailed",eR.PayshapRequestPermissionToProcessNotAuthorised="payshapRequestPermissionToProcessNotAuthorised",eR.PayshapRequestStandardBankExternalServerError="payshapRequestStandardBankExternalServerError",eR.PayshapRequestTymebankExternalServerError="payshapRequestTymebankExternalServerError",eR.PayshapRequestUserNotActivated="payshapRequestUserNotActivated",eR.RestrictedCard="restrictedCard",eR.RestrictedCountryCode="restrictedCountryCode",eR.Secure3dDeclined="secure3dDeclined",eR.Secure3dLookupFailed="secure3dLookupFailed",eR.Secure3dNotCompleted="secure3dNotCompleted",eR.SuccessfulAfterCancellation="successfulAfterCancellation",eR.SuccessfulAfterExpiry="successfulAfterExpiry",eR.TokenDecryptionError="tokenDecryptionError",eR.TransactionAlreadySucceeded="transactionAlreadySucceeded",eR.TransactionDisputed="transactionDisputed",eR.TransactionExistsError="transactionExistsError",eR.UnknownError="unknownError",eR.UnknownExternalState="unknownExternalState",eR.WaitingFor3dSecure="waitingFor3dSecure",eR.WaitingForAbsaEftAccountSelection="waitingForAbsaEftAccountSelection",eR.WaitingForAbsaEftConsentRequest="waitingForAbsaEftConsentRequest",eR.WaitingForCapitecConsentRequest="waitingForCapitecConsentRequest",eR.WaitingForCapitecPayRecurringPayment="waitingForCapitecPayRecurringPayment",eR.WaitingForCapture="waitingForCapture",eR.WaitingForCashAtmOobReconciliationInteraction="waitingForCashAtmOobReconciliationInteraction",eR.WaitingForDownstreamProvider="waitingForDownstreamProvider",eR.WaitingForEftManualOobReconciliationInteraction="waitingForEftManualOobReconciliationInteraction",eR.WaitingForNedbankDirectConsentRequest="waitingForNedbankDirectConsentRequest",eR.WaitingForPayoutStatusUpdateEvent="waitingForPayoutStatusUpdateEvent",eR.WaitingForPayshapPaymentRequest="waitingForPayshapPaymentRequest",(eN=t4||(t4={})).TransactionCancelled="TransactionCancelled",eN.TransactionFailure="TransactionFailure",eN.TransactionPending="TransactionPending",eN.TransactionSuccess="TransactionSuccess",(eO=t9||(t9={})).Refuted="refuted",eO.Unknown="unknown",eO.Verified="verified",(eP=t6||(t6={})).ApplePayTransaction="ApplePayTransaction",eP.GooglePayTransaction="GooglePayTransaction",eP.SamsungPayTransaction="SamsungPayTransaction",(eD=t7||(t7={})).ApplePay="applePay",eD.GooglePay="googlePay",eD.SamsungPay="samsungPay",n$`
27    query GetClientBankAccounts {
28  client {
29    bankAccounts {
30      accountFunction
31      accountNumber
32      accountType
33      availableBalance
34      bankId
35      branchCode
36      currentBalance
37      name
38      updatedAt
39    }
40  }
41}
42    `,n$`
43    mutation cancelConsentRequest($consentRequestId: ID!, $reason: String!) {
44  paymentConsentRequestCancel(
45    consentRequestId: $consentRequestId
46    reason: $reason
47  ) {
48    id
49  }
50}
51    `,n$`
52    mutation cancelPaymentRequest($input: PaymentInitiationRequestCancelInput!) {
53  clientPaymentInitiationRequestCancel(input: $input) {
54    id
55  }
56}
57    `,n$`
58    mutation createApiCardPaymentRequest($amount: MoneyInput!, $externalReference: String!, $payerReference: String!, $beneficiaryReference: String!, $expireAt: Date!, $payerInformation: PayerInformationInput!, $merchantDetails: CardMerchantDetailsInput, $merchantId: String, $metadata: Json) {
59  clientPaymentInitiationRequestCreate(
60    input: {amount: $amount, externalReference: $externalReference, payerReference: $payerReference, beneficiaryReference: $beneficiaryReference, expireAt: $expireAt, paymentMethods: {card: {enabled: true, merchantDetails: $merchantDetails}, eft: {enabled: false, capitecPay: {enabled: false}}}, payerInformation: $payerInformation, merchantId: $merchantId, metadata: $metadata}
61  ) {
62    paymentInitiationRequest {
63      id
64      url
65    }
66  }
67}
68    `,n$`
69    mutation createBnplPaymentRequest($amount: MoneyInput!, $payerReference: String!, $beneficiaryReference: String!, $externalReference: String, $expireAt: Date, $payerInformation: PayerInformationInput, $merchantId: String!) {
70  clientPaymentInitiationRequestCreate(
71    input: {amount: $amount, payerReference: $payerReference, beneficiaryReference: $beneficiaryReference, externalReference: $externalReference, expireAt: $expireAt, paymentMethods: {bnpl: {enabled: true}, eft: {enabled: false, capitecPay: {enabled: false}}, card: {enabled: false}}, payerInformation: $payerInformation, merchantId: $merchantId}
72  ) {
73    paymentInitiationRequest {
74      id
75      url
76    }
77  }
78}
79    `,n$`
80    mutation InitiateBnplRefund($amount: MoneyInput!, $nonce: String!, $originalPaymentId: ID!, $reason: RefundReason!) {
81  refundTransactionInitiate(
82    input: {refundInput: {amount: $amount, reason: $reason, nonce: $nonce}, originalPaymentId: $originalPaymentId}
83  ) {
84    amount
85    id
86    state {
87      ... on TransactionPending {
88        __typename
89        date
90        reason
91      }
92      ... on TransactionSuccess {
93        __typename
94        date
95      }
96      ... on TransactionFailure {
97        __typename
98        date
99        reason
100      }
101    }
102  }
103}
104    `,n$`
105    mutation createCapitecPaymentRequest($amount: MoneyInput!, $payerReference: String!, $beneficiaryReference: String!, $externalReference: String!, $beneficiaryName: String!, $beneficiaryBankId: BankBeneficiaryBankId!, $beneficiaryAccountNumber: String!, $merchantDetails: MerchantDetailsInput, $metadata: Json) {
106  clientPaymentInitiationRequestCreate(
107    input: {amount: $amount, payerReference: $payerReference, beneficiaryReference: $beneficiaryReference, externalReference: $externalReference, beneficiary: {bankAccount: {name: $beneficiaryName, bankId: $beneficiaryBankId, accountNumber: $beneficiaryAccountNumber}}, merchantDetails: $merchantDetails, restrictPayerBank: capitec, paymentMethods: {eft: {enabled: true}, card: {enabled: false}}, metadata: $metadata}
108  ) {
109    paymentInitiationRequest {
110      id
111      url
112    }
113  }
114}
115    `,n$`
116    mutation createCapitecRefund($amount: MoneyInput!, $reason: RefundReason!, $nonce: String!, $clearingType: ClearingType!, $beneficiaryReference: String!, $paymentRequestId: ID!) {
117  clientRefundInitiate(
118    input: {amount: $amount, reason: $reason, nonce: $nonce, clearingType: $clearingType, beneficiaryReference: $beneficiaryReference, paymentRequestId: $paymentRequestId}
119  ) {
120    refund {
121      id
122      paymentInitiationRequest {
123        id
124      }
125    }
126  }
127}
128    `,n$`
129    mutation initiateCardRefund($amount: MoneyInput!, $nonce: String!, $originalTransactionId: ID!, $reason: RefundReason!) {
130  refundTransactionInitiate(
131    input: {refundInput: {amount: $amount, reason: $reason, nonce: $nonce}, originalPaymentId: $originalTransactionId}
132  ) {
133    amount
134    id
135    state {
136      ... on TransactionPending {
137        __typename
138        date
139        reason
140      }
141      ... on TransactionSuccess {
142        __typename
143        date
144      }
145      ... on TransactionFailure {
146        __typename
147        date
148        reason
149      }
150    }
151  }
152}
153    `,n$`
154    mutation createConsentRequestNoInitialCharge($nonce: String!, $payerId: String!, $email: String!, $payerFullName: String!, $merchantDetails: CardMerchantDetailsInput!) {
155  paymentConsentRequestCreate(
156    input: {nonce: $nonce, payerInformation: {payerId: $payerId, email: $email, fullName: $payerFullName}, paymentMethods: {card: {enabled: true, merchantDetails: $merchantDetails}}}
157  ) {
158    __typename
159    id
160    status {
161      __typename
162      ... on PaymentConsentPending {
163        __typename
164        date
165      }
166      ... on PaymentConsentGranted {
167        __typename
168        date
169      }
170    }
171    consentDetails {
172      __typename
173      ... on CardPaymentConsentDetails {
174        card {
175          __typename
176          id
177          cardHolderName
178          expiryYear
179          expiryMonth
180          network
181          first6
182          last4
183          clientId
184        }
185      }
186    }
187    url
188    nonce
189  }
190}
191    `,n$`
192    mutation createConsentRequest($nonce: String!, $payerId: String!, $email: String!, $payerFullName: String!, $merchantDetails: CardMerchantDetailsInput!, $initialCharge: CardPaymentConsentRequestInitialChargeInput!) {
193  paymentConsentRequestCreate(
194    input: {nonce: $nonce, payerInformation: {payerId: $payerId, email: $email, fullName: $payerFullName}, paymentMethods: {card: {enabled: true, merchantDetails: $merchantDetails, initialCharge: $initialCharge}}}
195  ) {
196    __typename
197    id
198    status {
199      __typename
200      ... on PaymentConsentPending {
201        __typename
202        date
203      }
204      ... on PaymentConsentGranted {
205        __typename
206        date
207      }
208    }
209    consentDetails {
210      __typename
211      ... on CardPaymentConsentDetails {
212        card {
213          __typename
214          id
215          cardHolderName
216          expiryYear
217          expiryMonth
218          network
219          first6
220          last4
221          clientId
222        }
223      }
224    }
225    url
226    nonce
227  }
228}
229    `,n$`
230    mutation InitiateWalletRefund($amount: MoneyInput!, $nonce: String!, $originalPaymentId: ID!, $reason: RefundReason!) {
231  refundTransactionInitiate(
232    input: {refundInput: {amount: $amount, reason: $reason, nonce: $nonce}, originalPaymentId: $originalPaymentId}
233  ) {
234    amount
235    id
236    state {
237      ... on TransactionPending {
238        __typename
239        date
240        reason
241      }
242      ... on TransactionSuccess {
243        __typename
244        date
245      }
246      ... on TransactionFailure {
247        __typename
248        date
249        reason
250      }
251    }
252  }
253}
254    `,n$`
255    mutation disburseFunds($amount: Decimal!, $currency: CurrencyCode!, $nonce: String!, $beneficiary: ClientDisbur
255sementCreateBeneficiaryBankAccountInput!, $beneficiaryReference: String!, $disbursementType: DisbursementType!) {
256  clientDisbursementCreate(
257    input: {amount: {currency: $currency, quantity: $amount}, bankBeneficiary: $beneficiary, beneficiaryReference: $beneficiaryReference, nonce: $nonce, disbursementType: $disbursementType}
258  ) {
259    disbursement {
260      id
261    }
262  }
263}
264    `,n$`
265    query getConsentRequestStatus($consentRequestId: ID!) {
266  node(id: $consentRequestId) {
267    ... on PaymentConsentRequest {
268      id
269      url
270      __typename
271      nonce
272      status {
273        __typename
274        ... on PaymentConsentPending {
275          date
276        }
277        ... on PaymentConsentProcessing {
278          date
279        }
280        ... on PaymentConsentGranted {
281          date
282        }
283        ... on PaymentConsentCancelled {
284          date
285        }
286        ... on PaymentConsentExpired {
287          date
288        }
289        ... on PaymentConsentRevoked {
290          date
291        }
292      }
293      consentDetails {
294        __typename
295        ... on CardPaymentConsentDetails {
296          card {
297            id
298            cardHolderName
299            first6
300            last4
301            network
302            expiryMonth
303            expiryYear
304          }
305        }
306      }
307    }
308  }
309}
310    `,n$`
311    query getPaymentRequestStatus($id: ID!) {
312  node(id: $id) {
313    ... on PaymentInitiationRequest {
314      __typename
315      url
316      state {
317        __typename
318        ... on PaymentInitiationRequestCancelled {
319          __typename
320          date
321          reason
322        }
323        ... on PaymentInitiationRequestCompleted {
324          __typename
325          date
326          amount
327        }
328        ... on PaymentInitiationRequestExpired {
329          __typename
330          date
331        }
332        ... on PaymentInitiationRequestManuallyCompleted {
333          __typename
334          date
335        }
336        ... on PaymentInitiationRequestPending {
337          __typename
338        }
339      }
340    }
341  }
342}
343    `,n$`
344    query getWalletTransactionStatus($id: ID!) {
345  node(id: $id) {
346    ... on ApplePayTransaction {
347      __typename
348      state {
349        __typename
350      }
351    }
352    ... on GooglePayTransaction {
353      __typename
354      state {
355        __typename
356      }
357    }
358  }
359}
360    `,n$`
361    mutation initiateHeadlessCardPayment($amount: Decimal!, $currency: CurrencyCode!, $nonce: String!, $consentRequestId: ID!, $merchantId: String, $metadata: Json) {
362  initiateTransaction(
363    input: {amount: {currency: $currency, quantity: $amount}, nonce: $nonce, token: $consentRequestId, paymentMethods: {card: {scenario: Unscheduled}}, merchantId: $merchantId, metadata: $metadata}
364  ) {
365    ... on CardTransaction {
366      __typename
367      id
368      amount
369      card {
370        first6
371        last4
372        cardHolderName
373        expiryMonth
374        expiryYear
375      }
376      state {
377        __typename
378        ... on TransactionFailure {
379          __typename
380          date
381          reason
382        }
383        ... on TransactionPending {
384          __typename
385          date
386          reason
387        }
388        ... on TransactionSuccess {
389          __typename
390          date
391        }
392      }
393      interactionUrl
394      nonce
395    }
396  }
397}
398    `,n$`
399    mutation initiateTransaction($amount: MoneyInput!, $externalReference: String, $cardConsentId: ID!, $nonce: String!, $merchantId: String, $metadata: Json) {
400  initiateTransaction(
401    input: {amount: $amount, externalReference: $externalReference, token: $cardConsentId, nonce: $nonce, paymentMethods: {card: {scenario: Unscheduled}}, merchantId: $merchantId, metadata: $metadata}
402  ) {
403    ... on CardTransaction {
404      __typename
405      id
406      amount
407      card {
408        first6
409        last4
410        cardHolderName
411        expiryMonth
412        expiryYear
413      }
414      state {
415        __typename
416        ... on TransactionFailure {
417          __typename
418          date
419          reason
420        }
421        ... on TransactionPending {
422          __typename
423          date
424          reason
425        }
426        ... on TransactionSuccess {
427          __typename
428          date
429        }
430      }
431      interactionUrl
432      nonce
433    }
434  }
435}
436    `,n$`
437    mutation revokeConsentRequest($consentRequestId: ID!, $reason: String!) {
438  paymentConsentRequestRevoke(
439    consentRequestId: $consentRequestId
440    reason: $reason
441  ) {
442    id
443  }
444}
445    `},25357:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return e4}});var r=n(52676),i=n(10780),a=n(56964),o=n(75271),s=n(41654),l=n(3539),
445c=n(4814),u=n(89155),d=n.n(u),p=n(25092),f=n(8643),h=n(66812),m=n.n(h),g=n(1957),y=n.n(g),v=n(69211);let b=(0,v.Z)("settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var w=({pathClassName:e,active:t=!1})=>(0,r.jsx)(b,{strokeWidth:t?2.25:1.5,className:e});let _=e=>e?"fill-white stroke-white stroke-[0.5] group-hover:stroke-secondary":"fill-stitch-express-grey-300";var x=n(93595),E=({pathClassName:e,active:t=!1})=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 13.975 21",fill:"currentColor",children:(0,r.jsx)("path",{d:"M2.15 21C1.53333 21 1.02083 20.7958 0.6125 20.3875C0.204167 19.9792 0 19.4667 0 18.85V2.15C0 1.538 0.205333 1.02667 0.616 0.616C1.0265 0.205334 1.53783 0 2.15 0H10.85C11.4667 0 11.9792 0.204167 12.3875 0.6125C12.7958 1.02083 13 1.53333 13 2.15V5.15C13.2667 5.18333 13.4958 5.30417 13.6875 5.5125C13.8792 5.72083 13.975 5.95833 13.975 6.225V7.875C13.975 8.14167 13.8792 8.37917 13.6875 8.5875C13.4958 8.79583 13.2667 8.91667 13 8.95V18.85C13 19.4667 12.7958 19.9792 12.3875 20.3875C11.9792 20.7958 11.4667 21 10.85 21H2.15ZM2.125 19.675H10.875C11.1083 19.675 11.3 19.6 11.45 19.45C11.6 19.3 11.675 19.1083 11.675 18.875V2.125C11.675 1.89167 11.6 1.7 11.45 1.55C11.3 1.4 11.1083 1.325 10.875 1.325H2.125C1.89167 1.325 1.7 1.4 1.55 1.55C1.4 1.7 1.325 1.89167 1.325 2.125V18.875C1.325 19.1083 1.4 19.3 1.55 19.45C1.7 19.6 1.89167 19.675 2.125 19.675ZM5.9 13.75H7.1L7.15 12.85C7.4 12.8167 7.60975 12.7532 7.77925 12.6595C7.94858 12.566 8.08883 12.4545 8.2 12.325L8.95 12.7L9.6 11.7L8.9 11.15C8.96667 10.95 9 10.7417 9 10.525C9 10.3083 8.96667 10.1 8.9 9.9L9.6 9.35L9 8.3L8.2 8.725C8.0885 8.57733 7.94783 8.45175 7.778 8.34825C7.608 8.24458 7.39867 8.1785 7.15 8.15L7.1 7.25H5.9L5.85 8.15C5.60133 8.1785 5.392 8.24458 5.222 8.34825C5.05217 8.45175 4.9115 8.57733 4.8 8.725L4 8.3L3.4 9.35L4.1 9.9C4.03333 10.1 4 
44510.3083 4 10.525C4 10.7417 4.03333 10.95 4.1 11.15L3.4 11.7L4.05 12.7L4.8 12.325C4.91117 12.4545 5.05142 12.566 5.22075 12.6595C5.39025 12.7532 5.6 12.8167 5.85 12.85L5.9 13.75ZM5.45 11.55C5.15 11.25 5 10.9 5 10.5C5 10.1 5.15 9.75 5.45 9.45C5.75 9.15 6.1 9 6.5 9C6.9 9 7.25 9.15 7.55 9.45C7.85 9.75 8 10.1 8 10.5C8 10.9 7.85 11.25 7.55 11.55C7.25 11.85 6.9 12 6.5 12C6.1 12 5.75 11.85 5.45 11.55Z",className:(0,x.cn)(e,_(t))})}),S=({pathClassName:e,active:t=!1})=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("mask",{id:"mask0_957_17766",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,r.jsx)("rect",{y:"0.0996094",width:"20",height:"20",fill:"#D9D9D9"})}),(0,r.jsx)("g",{mask:"url(#mask0_958_18425)",children:(0,r.jsx)("path",{className:(0,x.cn)(e,_(t)),d:"M5.58268 18.0162C5.07254 18.0162 4.64643 17.8451 4.30435 17.5029C3.96213 17.1608 3.79102 16.7347 3.79102 16.2245V3.97453C3.79102 3.46453 3.96213 3.03842 4.30435 2.69619C4.64643 2.35397 5.07254 2.18286 5.58268 2.18286H11.9577L16.2077 6.41203V16.2245C16.2077 16.7347 16.0366 17.1608 15.6943 17.5029C15.3521 17.8451 14.926 18.0162 14.416 18.0162H5.58268ZM11.416 6.97453V3.30786H5.58268C5.41602 3.30786 5.26324 3.37731 5.12435 3.51619C4.98546 3.65508 4.91602 3.80786 4.91602 3.97453V16.2245C4.91602 16.3912 4.98546 16.544 5.12435 16.6829C5.26324 16.8217 5.41602 16.8912 5.58268 16.8912H14.416C14.5827 16.8912 14.7355 16.8217 14.8743 16.6829C15.0132 16.544 15.0827 16.3912 15.0827 16.2245V6.97453H11.416Z"})})]}),k=({pathClassName:e,active:t=!1})=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("mask",{id:"mask0_957_17766",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,r.jsx)("rect",{y:"0.0996094",width:"20",height:"20",fill:"#D9D9D9"})}),(0,r.jsx)("g",{mask:"url(#mask0_1135_16767)",children:(0,r.jsx)("path",{className:(0,x.cn)(e,_(t)),d:"M8.91732 13.8079H5.79232C4.76635 13.8079 3.89183 13.4462 3.16878 12.7227C2.44558 11.9992 2.08398 11.1242 2.08398 10.0977C2.08398 9.07117 2.44558 8.19679 3.16878 7.47457C3.89183 6.75235 4.76635 6.39124 5.79232 6.39124H8.91732V7.51624H5.79232C5.08398 7.51624 4.47635 7.76971 3.9694 8.27665C3.46246 8.7836 3.20898 9.39124 3.20898 10.0996C3.20898 10.8079 3.46246 11.4155 3.9694 11.9225C4.47635 12.4294 5.08398 12.6829 5.79232 12.6829H8.91732V13.8079ZM6.83398 10.6412V9.51624H13.1673V10.6412H6.83398ZM11.084 13.8079V12.6829H14.209C14.9173 12.6829 15.525 12.4294 16.0319 11.9225C16.5388 11.4155 16.7923 10.8079 16.7923 10.0996C16.7923 9.39124 16.5388 8.7836 16.0319 8.27665C15.525 7.76971 14.9173 7.51624 14.209 7.51624H11.084V6.39124H14.209C15.235 6.39124 16.1095 6.75297 16.8325 7.47644C17.5557 8.19992 17.9173 9.07492 17.9173 10.1014C17.9173 11.128 17.5557 12.0023 16.8325 12.7246C16.1095 13.4468 15.235 13.8079 14.209 13.8079H11.084Z"})})]}),C=({pathClassName:e,active:t=!1})=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("mask",{id:"mask0_957_17766",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,r.jsx)("rect",{y:"0.0996094",width:"20",height:"20",fill:"#D9D9D9"})}),(0,r.jsx)("g",{mask:"url(#mask0_957_17746)",children:(0,r.jsx)("path",{className:(0,x.cn)(e,_(t)),d:"M4.70768 18.016C4.19379 18.016 3.76671 17.8459 3.42643 17.5056C3.08615 17.1653 2.91602 16.7382 2.91602 16.2243V7.72433C2.91602 7.21044 3.08615 6.78335 3.42643 6.44308C3.76671 6.1028 4.19379 5.93266 4.70768 5.93266H6.33268C6.33268 4.90488 6.68817 4.03682 7.39914 3.32849C8.11011 2.62016 8.97685 2.26599 9.99935 2.26599C11.0218 2.26599 11.8886 2.62148 12.5996 3.33245C13.3105 4.04342 13.666 4.91016 13.666 5.93266H15.291C15.8049 5.93266 16.232 6.1028 16.5723 6.44308C16.9125 6.78335 17.0827 7.21044 17.0827 7.72433V16.2243C17.0827 16.7382 16.9125 17.1653 16.5723 17.5056C16.232 17.8459 15.8049 18.016 15.291 18.016H4.70768ZM4.70768 16.891H15.291C15.4577 16.891 15.6105 16.8215 15.7493 16.6827C15.8882 16.5438 15.9577 16.391 15.9577 16.2243V7.72433C15.9577 7.55766 15.8882 7.40488 15.7493 7.26599C15.6105 7.1271 15.4577 7.05766 15.291 7.05766H4.70768C4.54102 7.05766 4.38824 7.1271 4.24935 7.26599C4.11046 7.40488 4.04102 7.55766 4.04102 7.72433V16.2243C4.04102 16.391 4.11046 16.5438 4.24935 16.6827C4.38824 16.8215 4.54102 16.891 4.70768 16.891ZM9.99935 11.5993C11.0218 11.5993 11.8886 11.2438 12.5996 10.5329C13.3105 9.82189 13.666 8.95516 13.666 7.93266H12.541C12.541 8.64099 12.2937 9.24169 11.7989 9.73474C11.3042 10.2278 10.7035 10.4743 9.99685 10.4743C9.29018 10.4743 8.69032 10.2272 8.19727 9.73308C7.70421 9.23877 7.45768 8.63863 7.45768 7.93266H6.33268C6.33268 8.96044 6.68817 9.82849 7.39914 10.5368C8.11011 11.2452 8.97685 11.5993 9.99935 11.5993ZM7.45768 5.93266H12.541C12.541 5.22432 12.2937 4.62363 11.7989 4.13057C11.3042 3.63752 10.7035 3.39099 9.99685 3.39099C9.29018 3.39099 8.69032 3.63807 8.19727 4.13224C7.70421 4.62655 7.45768 5.22669 7.45768 5.93266Z"})})]}),I=({pathClassName:e,active:t=!1})=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("mask",{id:"mask0_957_17766",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,r.jsx)("rect",{y:"0.0996094",width:"20",height:"20",fill:"#D9D9D9"})}),(0,r.jsx)("g",{mask:"url(#mask0_957_17771)",children:(0,r.jsx)("path",{className:(0,x.cn)(e,_(t)),d:"M5.58268 18.1667C5.06879 18.1667 4.64171 17.9966 4.30143 17.6563C3.96115 17.3161 3.79102 16.889 3.79102 16.3751V9.20842C3.79102 8.69453 3.96115 8.26744 4.30143 7.92716C4.64171 7.58689 5.06879 7.41675 5.58268 7.41675H6.33268V5.75008C6.33268 4.70841 6.68817 3.82994 7.39914 3.11466C8.11011 2.39939 8.97685 2.04175 9.99935 2.04175C11.0218 2.04175 11.8886 2.39939 12.5996 3.11466C13.3105 3.82994 13.666 4.70841 13.666 5.75008V7.41675H14.416C14.9299 7.41675 15.357 7.58689 15.6973 7.92716C16.0375 8.26744 16.2077 8.69453 16.2077 9.20842V16.3751C16.2077 16.889 16.0375 17.3161 15.6973 17.6563C15.357 17.9966 14.9299 18.1667 14.416 18.1667H5.58268ZM5.58268 17.0417H14.416C14.6105 17.0417 14.7702 16.9792 14.8952 16.8542C15.0202 16.7292 15.0827 16.5695 15.0827 16.3751V9.20842C15.0827 9.01397 15.0202 8.85425 14.8952 8.72925C14.7702 8.60425 14.6105 8.54175 14.416 8.54175H5.58268C5.38824 8.54175 5.22852 8.60425 5.10352 8.72925C4.97852 8.85425 4.91602 9.01397 4.91602 9.20842V16.3751C4.91602 16.5695 4.97852 16.7292 5.10352 16.8542C5.22852 16.9792 5.38824 
44517.0417 5.58268 17.0417ZM10.0027 14.2501C10.4032 14.2501 10.7389 14.1136 11.0098 13.8405C11.2806 13.5674 11.416 13.2306 11.416 12.8301C11.416 12.4295 11.2795 12.0938 11.0064 11.823C10.7334 11.5522 10.3966 11.4167 9.99602 11.4167C9.59546 11.4167 9.25977 11.5533 8.98893 11.8263C8.7181 12.0994 8.58268 12.4362 8.58268 12.8367C8.58268 13.2373 8.71921 13.573 8.99227 13.8438C9.26532 14.1147 9.60213 14.2501 10.0027 14.2501ZM7.45768 7.41675H12.541V5.75008C12.541 5.04175 12.2937 4.43411 11.7989 3.92716C11.3042 3.42022 10.7035 3.16675 9.99685 3.16675C9.29018 3.16675 8.69032 3.42022 8.19727 3.92716C7.70421 4.43411 7.45768 5.04175 7.45768 5.75008V7.41675Z"})})]}),A=({pathClassName:e,active:t=!1})=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("mask",{id:"mask0_957_17766",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,r.jsx)("rect",{y:"0.0996094",width:"20",height:"20",fill:"#D9D9D9"})}),(0,r.jsx)("g",{mask:"url(#mask0_957_17754)",children:(0,r.jsx)("path",{className:(0,x.cn)(e,_(t)),d:"M11.1606 10.2037C10.7537 10.2037 10.4134 10.0668 10.1398 9.79307C9.86604 9.51946 9.72917 9.17918 9.72917 8.77224C9.72917 8.36543 9.8666 8.03008 10.1415 7.76619C10.4163 7.50231 10.7581 7.37036 11.1667 7.37036C11.5636 7.37036 11.8955 7.50376 12.1623 7.77057C12.4291 8.03738 12.5625 8.36925 12.5625 8.76619C12.5625 9.17481 12.4306 9.51654 12.1667 9.7914C11.9028 10.0663 11.5674 10.2037 11.1606 10.2037ZM6 13.5162C5.48958 13.5162 5.0634 13.3452 4.72146 13.0031C4.37938 12.6611 4.20833 12.2349 4.20833 11.7245V5.84953C4.20833 5.33911 4.37938 4.91286 4.72146 4.57078C5.0634 4.22883 5.48958 4.05786 6 4.05786H16.3333C16.8438 4.05786 17.27 4.22883 17.6121 4.57078C17.954 4.91286 18.125 5.33911 18.125 5.84953V11.7245C18.125 12.2349 17.954 12.6611 17.6121 13.0031C17.27 13.3452 16.8438 13.5162 16.3333 13.5162H6ZM6.83333 12.3912H15.5C15.5 11.9745 15.6469 11.6204 15.9406 11.3287C16.2344 11.037 16.5875 10.8912 17 10.8912V6.68286C16.5833 6.68286 16.2292 6.53599 15.9375 6.24224C15.6458 5.94849 15.5 5.59536 15.5 5.18286H6.83333C6.83333 5.59953 6.68646 5.95369 6.39271 6.24536C6.09896 6.53703 5.74583 6.68286 5.33333 6.68286V10.8912C5.75 10.8912 6.10417 11.0381 6.39583 11.3318C6.6875 11.6256 6.83333 11.9787 6.83333 12.3912ZM15.5833 15.8079H3.66667C3.15625 15.8079 2.73007 15.6368 2.38812 15.2947C2.04604 14.9528 1.875 14.5266 1.875 14.0162V6.55786H3V14.0162C3 14.1829 3.06944 14.3356 3.20833 14.4745C3.34722 14.6134 3.5 14.6829 3.66667 14.6829H15.5833V15.8079ZM6 12.3912H5.33333V5.18286H6C5.81944 5.18286 5.66319 5.24883 5.53125 5.38078C5.39931 5.51272 5.33333 5.66897 5.33333 5.84953V11.7245C5.33333 11.9051 5.39931 12.0613 5.53125 12.1933C5.66319 12.3252 5.81944 12.3912 6 12.3912Z"})})]});let T=(0,v.Z)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);var R=({pathClassName:e,active:t=!1})=>(0,r.jsx)(T,{strokeWidth:t?2.25:1.5,className:e}),N=({pathClassName:e,active:t=!1})=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("mask",{id:"mask0_957_17766",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,r.jsx)("rect",{y:"0.0996094",width:"20",height:"20",fill:"#D9D9D9"})}),(0,r.jsx)("g",{mask:"url(#mask0_957_17742)",children:(0,r.jsx)("path",{className:(0,x.cn)(e,_(t)),d:"M6.69122 18.1452C6.30289 18.1452 5.97678 18.013 5.71289 17.7485C5.449 17.4842 5.31706 17.1578 5.31706 16.7693C5.31706 16.381 5.44928 16.0549 5.71372 15.791C5.97803 15.5271 6.30442 15.3952 6.69289 15.3952C7.08122 15.3952 7.40733 15.5274 7.67122 15.7918C7.93511 16.0562 8.06706 16.3825 8.06706 16.771C8.06706 17.1593 7.93483 17.4855 7.67039 17.7493C7.40608 18.0132 7.0797 18.1452 6.69122 18.1452ZM14.8579 18.1452C14.4696 18.1452 14.1434 18.013 13.8796 17.7485C13.6157 17.4842 13.4837 17.1578 13.4837 16.7693C13.4837 16.381 13.6159 16.0549 13.8804 15.791C14.1447 15.5271 14.4711 15.3952 14.8596 15.3952C15.2479 15.3952 15.574 15.5274 15.8379 15.7918C16.1018 16.0562 16.2337 16.3825 16.2337 16.771C16.2337 17.1593 16.1015 17.4855 15.8371 17.7493C15.5728 18.0132 15.2464 18.1452 14.8579 18.1452ZM5.65039 4.77018L7.85872 9.39518H13.4212C13.5462 9.39518 13.6573 9.36393 13.7546 9.30143C13.8518 9.23893 13.9351 9.15213 14.0046 9.04102L16.0254 5.35352C16.1087 5.20074 16.1157 5.06532 16.0462 4.94727C15.9768 4.82921 15.8587 4.77018 15.6921 4.77018H5.65039ZM5.10872 3.64518H16.6504C17.0186 3.64518 17.2947 3.79449 17.4787 4.0931C17.6626 4.39171 17.6643 4.70074 17.4837 5.02018L14.8587 9.77018C14.7337 9.9924 14.5605 10.173 14.3389 10.3118C14.1174 10.4507 13.874 10.5202 13.6087 10.5202H7.48372L6.69206 11.9368C6.58095 12.1035 6.57747 12.2841 6.68164 12.4785C6.78581 12.673 6.94206 12.7702 7.15039 12.7702H16.2754V13.8952H6.
44569206C6.1365 13.8952 5.73372 13.6625 5.48372 13.1973C5.23372 12.732 5.23372 12.2702 5.48372 11.8118L6.69206 9.60352L3.60872 3.10352H2.02539V1.97852H4.31706L5.10872 3.64518Z"})})]}),O=({pathClassName:e,active:t=!1})=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("mask",{id:"mask0_958_33347",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,r.jsx)("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),(0,r.jsx)("g",{mask:"url(#mask0_958_33347)",children:(0,r.jsx)("path",{className:(0,x.cn)(e,_(t)),d:"M20.8256 11.05V18.7C20.8256 19.3121 20.6202 19.8235 20.2096 20.234C19.7989 20.6446 19.2876 20.85 18.6756 20.85H5.27557C4.6634 20.85 4.15207 20.6446 3.74157 20.234C3.3309 19.8235 3.12557 19.3121 3.12557 18.7V11C2.59224 10.65 2.2464 10.1958 2.08807 9.63745C1.92974 9.07912 1.9589 8.49995 2.17557 7.89995L3.23057 4.60295C3.37724 4.18428 3.5964 3.84578 3.88807 3.58745C4.17974 3.32912 4.5589 3.19995 5.02557 3.19995H18.8756C19.3492 3.19995 19.7427 3.31662 20.0558 3.54995C20.369 3.78328 20.5922 4.11662 20.7256 4.54995L21.7756 7.89995C21.9922 8.49995 22.0339 9.11245 21.9006 9.73745C21.7672 10.3625 21.4089 10.8 20.8256 11.05ZM14.2376 10.35C14.8296 10.35 15.2797 10.2125 15.5881 9.93745C15.8964 9.66245 16.0256 9.33328 15.9756 8.94995L15.2756 4.54995H12.6756V8.64995C12.6756 9.11595 12.8309 9.51578 13.1416 9.84945C13.4522 10.1831 13.8176 10.35 14.2376 10.35ZM9.63807 10.35C10.1297 10.35 10.5339 10.1831 10.8506 9.84945C11.1672 9.51578 11.3256 9.11595 11.3256 8.64995V4.54995H8.67557L7.97557 8.99995C7.92557 9.36662 8.05474 9.68328 8.36307 9.94995C8.6714 10.2166 9.0964 10.35 9.63807 10.35ZM5.07557 10.35C5.49224 10.35 5.84224 10.2 6.12557 9.89995C6.4089 9.59995 6.59224 9.24995 6.67557 8.84995L7.27557 4.54995H5.47557C5.19224 4.54995 4.96724 4.61245 4.80057 4.73745C4.6339 4.86245 4.5089 5.04995 4.42557 5.29995L3.52557 8.19995C3.32557 8.79995 3.37974 9.30828 3.68807 9.72495C3.9964 10.1416 4.4589 10.35 5.07557 10.35ZM18.8756 10.35C19.4589 10.35 19.9089 10.1583 20.2256 9.77495C20.5422 9.39162 20.6089 8.86662 20.4256 8.19995L19.5756 5.24995C19.4922 4.99995 19.3672 4.82078 19.2006 4.71245C19.0339 4.60412 18.8089 4.54995 18.5256 4.54995H16.6756L17.2756 8.84995C17.3589 9.24995 17.5422 9.59995 17.8256 9.89995C18.1089 10.2 18.4589 10.35 18.8756 10.35ZM5.27557 19.5H18.6756C18.9089 19.5 19.1006 19.425 19.2506 19.275C19.4006 19.125 19.4756 18.9333 19.4756 18.7V11.6C19.4089 11.6166 19.3131 11.6375 19.1881 11.6625C19.0631 11.6875 18.9422 11.7 18.8256 11.7C18.3689 11.7 17.9672 11.6083 17.6206 11.425C17.2739 11.2416 16.9422 10.9666 16.6256 10.6C16.3422 10.9333 16.0131 11.2 15.6381 11.4C15.2631 11.6 14.8089 11.7 14.2756 11.7C13.8422 11.7 13.4422 11.6083 13.0756 11.425C12.7089 11.2416 12.3422 10.9666 11.9756 10.6C11.6589 10.9666 11.2964 11.2416 10.8881 11.425C10.4797 11.6083 10.0769 11.7 9.67957 11.7C9.2269 11.7 8.7964 11.6125 8.38807 11.4375C7.97974 11.2625 7.62557 10.9833 7.32557 10.6C6.8589 11.0666 6.45057 11.3666 6.10057 11.5C5.75057 11.6333 5.42557 11.7 5.12557 11.7C5.0089 11.7 4.8964 11.6875 4.78807 11.6625C4.67974 11.6375 4.57557 11.6166 4.47557 11.6V18.7C4.47557 18.9333 4.55057 19.125 4.70057 19.275C4.85057 19.425 5.04224 19.5 5.27557 19.5Z"})})]}),P=({pathClassName:e,active:t=!1})=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("mask",{id:"mask0_957_17766",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,r.jsx)("rect",{y:"0.0996094",width:"20",height:"20",fill:"#D9D9D9"})}),(0,r.jsx)("g",{mask:"url(#mask0_1140_16886)",children:(0,r.jsx)("path",{className:(0,x.cn)(e,_(t)),d:"M5.58268 7.41675H12.541V5.75008C12.541 5.04175 12.2937 4.43411 11.7989 3.92716C11.3042 3.42022 10.7035 3.16675 9.99685 3.16675C9.29018 3.16675 8.69032 3.42022 8.19727 3.92716C7.70421 4.43411 7.45768 5.04175 7.45768 5.75008H6.33268C6.33268 4.70841 6.68817 3.82994 7.39914 3.11466C8.11011 2.39939 8.97685 2.04175 9.99935 2.04175C11.0218 2.04175 11.8886 2.39939 12.5996 3.11466C13.3105 3.82994 13.666 4.70841 13.666 5.75008V7.41675H14.416C14.9299 7.41675 15.357 7.58689 15.6973 7.92716C16.0375 8.26744 16.2077 8.69453 16.2077 9.20841V16.3751C16.2077 16.889 16.0375 17.3161 15.6973 17.6563C15.357 17.9966 14.9299 18.1667 14.416 18.1667H5.58268C5.06879 18.1667 4.64171 17.9966 4.30143 17.6563C3.96115 17.3161 3.79102 16.889 3.79102 16.3751V9.20841C3.79102 8.69453 3.96115 8.26744 4.30143 7.92716C4.64171 7.58689 5.06879 7.41675 5.58268 7.41675ZM5.58268 17.0417H14.416C14.6105 17.0417 14.7702 16.9792 14.8952 16.8542C15.0202 16.7292 15.0827 16.5695 15.0827 16.3751V9.20841C15.0827 9.01397 15.0202 8.85425 14.8952 8.72925C14.7702 8.60425 14.6105 8.54175 14.416 8.54175H5.58268C5.38824 8.54175 5.22852 8.60425 5.10352 8.72925C4.97852 8.85425 4.91602 9.01397 4.91602 9.20841V16.3751C4.91602 16.5695 4.97852 16.7292 5.10352 16.8542C5.22852 16.9792 5.38824 
44517.0417 5.58268 17.0417ZM10.0027 14.2501C10.4032 14.2501 10.7389 14.1136 11.0098 13.8405C11.2806 13.5674 11.416 13.2306 11.416 12.8301C11.416 12.4295 11.2795 12.0938 11.0064 11.823C10.7334 11.5522 10.3966 11.4167 9.99602 11.4167C9.59546 11.4167 9.25977 11.5533 8.98893 11.8263C8.7181 12.0994 8.58268 12.4362 8.58268 12.8367C8.58268 13.2373 8.71921 13.573 8.99227 13.8438C9.26532 14.1147 9.60213 14.2501 10.0027 14.2501Z"})})]}),D=({pathClassName:e,active:t=!1})=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("mask",{id:"mask0_957_17766",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,r.jsx)("rect",{y:"0.0996094",width:"20",height:"20",fill:"#D9D9D9"})}),(0,r.jsx)("g",{mask:"url(#mask0_957_17758)",children:(0,r.jsx)("path",{className:(0,x.cn)(e,t?"stroke-white":"stroke-stitch-express-grey-300"),d:"M9.16602 12.5001H10.8327C11.2747 12.5001 11.6986 12.3245 12.0112 12.0119C12.3238 11.6994 12.4993 11.2754 12.4993 10.8334C12.4993 10.3914 12.3238 9.96746 12.0112 9.6549C11.6986 9.34234 11.2747 9.16675 10.8327 9.16675H8.33268C7.83268 9.16675 7.41602 9.33342 7.16602 9.66675L2.49935 14.1667M5.83268 17.5001L7.16602 16.3334C7.41602 16.0001 7.83268 15.8334 8.33268 15.8334H11.666C12.5827 15.8334 13.416 15.5001 13.9993 14.8334L17.8327 11.1667C18.1543 10.8629 18.3419 10.4437 18.3544 10.0014C18.3669 9.55912 18.2032 9.12999 17.8993 8.80841C17.5955 8.48684 17.1763 8.29916 16.734 8.28665C16.2917 8.27415 15.8626 8.43785 15.541 8.74175L12.041 11.9917M1.66602 13.3334L6.66602 18.3334M15.7493 7.50008C15.7493 8.83477 14.6674 9.91675 13.3327 9.91675C11.998 9.91675 10.916 8.83477 10.916 7.50008C10.916 6.16539 11.998 5.08341 13.3327 5.08341C14.6674 5.08341 15.7493 6.16539 15.7493 7.50008ZM7.49935 4.16675C7.49935 5.54746 6.38006 6.66675 4.99935 6.66675C3.61864 6.66675 2.49935 5.54746 2.49935 4.16675C2.49935 2.78604 3.61864 1.66675 4.99935 1.66675C6.38006 1.66675 7.49935 2.78604 7.49935 4.16675Z",strokeWidth:t?"1.8":"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),M=n(58363);function $({notificationCount:e,collapsed:t}){return t?null:(0,r.jsx)("div",{className:"w-6 h-6 flex items-center justify-center bg-primary rounded-full",children:e})}var j=n(75366),L=n(65385);let F="focus-visible:bg-primary-light outline-none rounded-sm hover:bg-primary-light w-full h-full block border border-transparent cursor-pointer hover:text-secondary transition-colors duration-300 ease-in-out";function B(e){let t=(0,L.Z)(e.link??""),n=(0,L.n)(),i=!0===e.loading||t,a=!0===e.disabled||i||n,o=e.active?"text-stitch-express-grey-100":"text-stitch-express-grey-500",s=e.active?"fill-stitch-express-grey-100":"fill-stitch-express-grey-500",l=t=>{if(a){t.preventDefault();return}e.onClick?.(t)},c=(0,r.jsxs)("div",{className:(0,x.cn)("py-3 px-3 flex flex-row gap-3 items-center",e.disabled&&"opacity-20",e.className),children:[(i||e.icon)&&(0,r.jsx)("span",{className:(0,x.cn)("w-6 h-6 shrink-0 flex items-center justify-center",o,!e.active&&!i&&"group-hover:text-secondary"),children:i?(0,r.jsx)(M.ZP,{size:"medium",className:s}):e.icon}),(0,r.jsx)("span",{className:(0,x.cn)("text-sm font-normal tracking-[0.01em] whitespace-nowrap","transition-opacity ease duration-500"),children:e.value}),e.notificationCount&&(0,r.jsx)($,{notificationCount:e.notificationCount,collapsed:e.collapsed})]}),u=e.link?(0,r.jsx)(y(),{href:e.link,className:(0,x.cn)(F,e.active?"bg-black text-stitch-express-grey-100":"text-stitch-express-grey-500",a&&"pointer-events-none",e.containerClassName),"aria-disabled":a||void 0,"aria-busy":i,onClick:l,children:c}):(0,r.jsx)("button",{type:"button",className:(0,x.cn)(F,e.active?"bg-black text-stitch-express-grey-100":"text-stitch-express-grey-500",a&&"cursor-default",e.containerClassName),disabled:a,"aria-busy":i,onClick:l,children:c}),d=e.disabled?(0,r.jsx)(j.Z,{text:"Coming soon.",children:u}):u;return(0,r.jsx)("li",{children:d})}var U=n(64941);let z="#68686b",Z="#807f83",V=[64,104,128,120,88,80,72];function q({collapsed:e}){return(0,r.jsx)("div",{"aria-hidden":!0,className:"flex flex-col gap-2 w-full",children:V.map((t,n)=>(0,r.jsxs)("div",{className:"py-3 px-3 flex flex-row gap-3 items-center",children:[(0,r.jsx)(U.Z,{baseColor:z,highlightColor:Z,width:24,height:24}),!e&&(0,r.jsx)(U.Z,{baseColor:z,highlightColor:Z,width:t,height:12})]},n))})}let W=(0,v.Z)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
445y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var G=n(2752),H=n(51104);function Y({onClick:e}){let{pathname:t}=(0,a.useRouter)(),{hasMerchant:n,kycbStatus:i}=(0,G.Z)();return n&&i!==H.KycbStatus.PASSED?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("li",{children:(0,r.jsx)(y(),{href:"/verification",onClick:e,className:(0,x.cn)("outline-none rounded-sm w-full h-full block border border-transparent cursor-pointer transition-colors duration-300 ease-in-out","/verification"===t?"bg-stitch-express-violet-500 text-white":"text-stitch-express-violet-200 hover:bg-stitch-express-violet-500/20 hover:text-stitch-express-violet-100 focus-visible:bg-stitch-express-violet-500/20"),children:(0,r.jsxs)("div",{className:"py-3 px-3 flex flex-row gap-3 items-center",children:[(0,r.jsxs)("span",{className:"relative w-6 h-6 shrink-0 flex items-center justify-center",children:[(0,r.jsx)(W,{strokeWidth:1.5}),(0,r.jsx)("span",{"data-testid":"verification-nav-dot",className:"absolute -top-0.5 -right-0.5 h-2.5 w-2.5 rounded-full bg-tertiary"})]}),(0,r.jsx)("span",{className:"text-sm font-medium tracking-[0.01em] whitespace-nowrap transition-opacity ease duration-500",children:"Verify your business"})]})})}),(0,r.jsx)("li",{"aria-hidden":"true",className:"mx-3 h-px bg-white/10"})]}):null}var K=n(707),J=n(20363),X=function({isSideNavCollapsed:e,setIsSideNavCollapsed:t,sideNavLock:n,onSideNavLockSave:i}){let{userData:s}=(0,o.useContext)(J.Z),{pathname:l}=(0,a.useRouter)(),{hasPermission:u,isLoading:d}=(0,K.L6)(),p=(0,o.useCallback)(()=>{i(!n)},[n,i]),f=()=>{n||t(!0)};return(0,r.jsx)("nav",{onMouseEnter:()=>t(!1),onMouseLeave:()=>f(),className:(0,c.Z)("z-50 hidden sm:flex flex-col justify-between items-start pt-8 pb-3 px-2 fixed h-full transition-[width] duration-500 ease left-0 bg-stitch-express-grey-900",e?"w-side-nav-closed":"w-side-nav-open"),children:(0,r.jsxs)("div",{className:"flex flex-col items-center justify-between h-full w-full font-tomato",children:[(0,r.jsxs)("ul",{className:"flex flex-col gap-2 w-full transition-opacity duration-500 thin-scrollbar overflow-y-auto overflow-x-hidden grow",children:[(0,r.jsx)("div",{className:"flex flex-col h-full w-full max-h-[76px] grow",children:(0,r.jsx)("li",{children:(0,r.jsxs)(y(),{href:"/",className:(0,x.cn)("outline-none flex flex-row items-center gap-4 w-full bg-gradient-to-r from-primary to-stitch-express-violet-400 rounded-sm p-1.5 justify-between transition-all ease-in-out duration-300 hover:brightness-110 focus-visible:brightness-110"),children:[(0,r.jsx)(m(),{src:"/images/logos/stitch-symbol-white.svg",alt:"stitch express logo",width:36,height:36}),(0,r.jsx)("span",{className:"italic text-white mr-2",children:"express"})]})})}),s?.merchant&&!d?(0,r.jsxs)("div",{className:"animate-enter flex flex-col gap-2 w-full",children:[(0,r.jsx)(Y,{}),(0,r.jsx)(B,{className:"group",value:"Sales",active:l.startsWith("/sales"),icon:(0,r.jsx)(N,{pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500",active:l.startsWith("/sales")}),collapsed:e,link:"/sales/overview"}),(0,r.jsx)(B,{className:"group",value:"Connections",active:"/connections"===l,icon:(0,r.jsx)(k,{active:"/connections"===l,pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500"}),collapsed:e,link:"/connections"}),(0,r.jsx)(B,{className:"group",value:"Payment experience",active:"/payment-experience"===l,icon:(0,r.jsx)(C,{active:"/payment-experience"===l,pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500"}),collapsed:e,link:"/payment-experience"}),(0,r.jsx)(B,{className:"group",value:"Transaction history",active:"/transaction-history"===l,icon:(0,r.jsx)(A,{active:"/transaction-history"===l,pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500"}),collapsed:e,link:"/transaction-history"}),(0,r.jsx)(B,{className:"group",value:"Withdrawals",active:"/withdrawals"===l,icon:(0,r.jsx)(D,{active:"/withdrawals"===l,pathClassName:"group-hover:stroke-secondary transition-colors ease-in-out duration-500"}),collapsed:e,link:"/withdrawals"}),s?.merchant?.cardPresentEnabled&&u?(0,r.jsx)(B,{className:"group",value:"Devices",active:l.startsWith("/terminals"),icon:(0,r.jsx)(E,{active:l.startsWith("/terminals"),pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500"}),collapsed:e,link:"/terminals"}):null,s?.merchant?.cardPresentEnabled&&u?(0,r.jsx)(B,{className:"group",value:"Stores",active:l.startsWith("/stores"),icon:(0,r.jsx)(O,{active:l.startsWith("/stores"),pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500"}),collapsed:e,link:"/stores"}):null,(0,r.jsx)(B,{className:"group",value:"Tax invoices",active:"/statements"===l,icon:(0,r.jsx)(S,{active:"/statements"===l,pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500"}),collapsed:e,link:"/statements"}),(0,r.jsx)(B,{className:"group",value:"Settings",active:"/settings"===l,icon:(0,r.jsx)(w,{active:"/settings"===l}),collapsed:e,link:"/settings"}),s?.user?.isStitchAdmin===!0?(0,r.jsx)(B,{className:"group",value:"Guardian",icon:(0,r.jsx)(R,{pathClassName:"group-hover:stroke-secondary transition-colors ease-in-out duration-500"}),collapsed:e,link:"/internal/merchants"}):null]}):(0,r.jsx)(q,{collapsed:e})]}),(0,r.jsx)("ul",{className:"flex flex-col gap-2 w-full transition-opacity duration-500 ease-in-out delay-150 thin-scrollbar overflow-y-auto overflow-x-hidden border-transparent border-t-8",children:(0,r.jsx)(B,{className:"group",value:n?"Unlock Menu":"Keep menu open",icon:n?(0,r.jsx)(P,{pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500"}):(0,r.jsx)(I,{pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500"}),collapsed:e,onClick:p})})]})})},Q=n(38442);let ee=o.forwardRef(function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M2 4.75A.75.75 0 0 1 2.75 4h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 4.75Zm0 10.5a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75ZM2 10a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5h-7.5A.75.75 0 0 1 2 10Z",clipRule:"evenodd"}))}),et=o.forwardRef(function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"}))});var en=n(41850);
445let er=(0,v.Z)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);var ei=n(32687),ea=({active:e=!1})=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("mask",{id:"mask0_957_17766",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,r.jsx)("rect",{y:"0.0996094",width:"20",height:"20",fill:"#D9D9D9"})}),(0,r.jsx)("g",{mask:"url(#mask0_957_17775)",children:(0,r.jsx)("path",{d:"M4.70768 17.0834C4.19754 17.0834 3.77143 16.9123 3.42935 16.5701C3.08713 16.228 2.91602 15.8019 2.91602 15.2917V4.70841C2.91602 4.19841 3.08713 3.7723 3.42935 3.43008C3.77143 3.08786 4.19754 2.91675 4.70768 2.91675H10.0202V4.04175H4.70768C4.54102 4.04175 4.38824 4.11119 4.24935 4.25008C4.11046 4.38897 4.04102 4.54175 4.04102 4.70841V15.2917C4.04102 15.4584 4.11046 15.6112 4.24935 15.7501C4.38824 15.889 4.54102 15.9584 4.70768 15.9584H10.0202V17.0834H4.70768ZM13.666 13.4167L12.8118 12.5834L14.8535 10.5417H7.58268V9.41675H14.8535L12.8118 7.37508L13.666 6.58342L17.0827 10.0001L13.666 13.4167Z",fill:(0,x.cn)(e?"#fff":"#DFDFDF")})})]}),eo=n(80515);function es({collapsed:e,showIcon:t,containerClassName:n}){let i=t?(0,r.jsx)(ea,{}):void 0,{logOut:a,isLoggingOut:o}=(0,eo.Z)();return(0,r.jsx)(B,{value:"Logout",icon:i,collapsed:e,loading:o,onClick:()=>{a()},containerClassName:n})}var el=n(27971),ec=function(){let[e,t]=(0,o.useState)(!1),n=(0,a.useRouter)(),i=(0,el.a)("(min-width: 640px)"),{userData:s}=(0,o.useContext)(J.Z),{hasPermission:l}=(0,K.L6)(),c=n.pathname,u=s?.merchant?.cardPresentEnabled&&l,d=()=>t(!1);return(0,o.useEffect)(()=>{let e=()=>t(!1);return n.events.on("routeChangeStart",e),()=>n.events.off("routeChangeStart",e)},[n.events]),(0,o.useEffect)(()=>{i&&t(!1)},[i]),(0,r.jsxs)(ei.Vq,{open:e,onOpenChange:t,children:[(0,r.jsx)(ei.hg,{asChild:!0,children:(0,r.jsx)("button",{type:"button","aria-label":"Open menu",className:"sm:hidden",children:(0,r.jsx)(ee,{className:"w-6 h-6 shrink-0 text-white"})})}),(0,r.jsxs)(ei.PK,{children:[(0,r.jsx)(en.aV,{className:"sm:hidden fixed inset-0 z-40 bg-black/40 data-[state=open]:animate-fadeIn data-[state=closed]:animate-fadeOut"}),(0,r.jsxs)(en.VY,{"aria-describedby":void 0,className:"font-inter sm:hidden fixed inset-0 z-50 flex flex-col bg-stitch-express-grey-900 data-[state=open]:animate-slideInLeft data-[state=closed]:animate-slideOutLeft",children:[(0,r.jsx)(en.Dx,{className:"sr-only",children:"Navigation menu"}),(0,r.jsxs)("div",{className:"flex items-center justify-between bg-primary px-4 py-3 shrink-0",children:[(0,r.jsx)(ei.GG,{asChild:!0,children:(0,r.jsx)(y(),{href:"/",children:(0,r.jsx)(m(),{src:"/images/logos/stitch-symbol-white.svg",alt:"Stitch logo",width:32,height:32})})}),(0,r.jsx)(ei.GG,{type:"button","aria-label":"Close menu",children:(0,r.jsx)(et,{className:"w-6 h-6 text-white"})})]}),(0,r.jsxs)("ul",{className:"flex flex-col gap-1 p-2 overflow-y-auto grow",children:[(0,r.jsx)(B,{className:"group",value:"Dashboard",active:"/"===c,icon:(0,r.jsx)(er,{strokeWidth:1.5}),collapsed:!1,link:"/",onClick:d}),(0,r.jsx)(Y,{onClick:d}),(0,r.jsx)(B,{className:"group",value:"Sales",active:c.startsWith("/sales"),icon:(0,r.jsx)(N,{pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500",active:c.startsWith("/sales")}),collapsed:!1,link:"/sales/overview",onClick:d}),(0,r.jsx)(B,{className:"group",value:"Connections",active:"/connections"===c,icon:(0,r.jsx)(k,{active:"/connections"===c,pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500"}),collapsed:!1,link:"/connections",onClick:d}),(0,r.jsx)(B,{className:"group",value:"Payment experience",active:"/payment-experience"===c,icon:(0,r.jsx)(C,{active:"/payment-experience"===c,pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500"}),collapsed:!1,link:"/payment-experience",onClick:d}),(0,r.jsx)(B,{className:"group",value:"Transaction history",active:"/transaction-history"===c,icon:(0,r.jsx)(A,{active:"/transaction-history"===c,pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500"}),collapsed:!1,link:"/transaction-history",onClick:d}),(0,r.jsx)(B,{className:"group",value:"Withdrawals",active:"/withdrawals"===c,icon:(0,r.jsx)(D,{active:"/withdrawals"===c,pathClassName:"group-hover:stroke-secondary transition-colors ease-in-out duration-500"}),collapsed:!1,link:"/withdrawals",onClick:d}),u?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B,{className:"group",value:"Devices",active:c.startsWith("/terminals"),icon:(0,r.jsx)(E,{active:c.startsWith("/terminals"),pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500"}),collapsed:!1,link:"/terminals",onClick:d}),(0,r.jsx)(B,{className:"group",value:"Stores",active:c.startsWith("/stores"),icon:(0,r.jsx)(O,{active:c.startsWith("/stores"),pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500"}),collapsed:!1,link:"/stores",onClick:d})]}):null,(0,r.jsx)(B,{className:"group",value:"Tax invoices",active:"/statements"===c,icon:(0,r.jsx)(S,{active:"/statements"===c,pathClassName:"group-hover:fill-secondary transition-colors ease-in-out duration-500"}),collapsed:!1,link:"/statements",onClick:d}),(0,r.jsx)(B,{className:"group",value:"Settings",active:"/settings"===c,icon:(0,r.jsx)(w,{active:"/settings"===c}),collapsed:!1,link:"/settings",onClick:d}),s?.user?.isStitchAdmin===!0?(0,r.jsx)(B,{className:"group",value:"Guardian",icon:(0,r.jsx)(R,{pathClassName:"group-hover:stroke-secondary transition-colors ease-in-out duration-500"}),collapsed:!1,link:"/internal/merchants",active:c.startsWith("/internal"),onClick:d}):null]}),(0,r.jsx)("div",{className:"p-2 border-t border-stitch-express-grey-800 shrink-0",children:(0,r.jsx)(es,{collapsed:!1,showIcon:!0})})]})]})]})},eu=function(){return(0,r.jsxs)("div",{className:"flex justify-between p-3 items-center w-full bg-primary",children:[(0,r.jsx)(y(),{href:"/dashboard",children:(0,r.jsx)(m(),{src:"/images/logos/stitch-symbol-white.svg",alt:"Stitch logo",width:"38",he
445ight:"38"})}),(0,r.jsx)(Q.Z,{badgeRadius:34,className:"flex sm:hidden"}),(0,r.jsx)(ec,{})]})},ed=function(){return(0,r.jsx)("div",{className:"sm:hidden overflow-hidden sm:transition-spacing sm:duration-500 sm:ease",children:(0,r.jsx)(eu,{})})},ep=n(51049),ef=n(88674);function eh({children:e,card:t}){let n=(0,o.useRef)(null),i=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let e=document.body.style.overflow,t=n.current;return document.body.style.overflow="hidden",t?.setAttribute("inert",""),i.current?.focus(),()=>{document.body.style.overflow=e,t?.removeAttribute("inert")}},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:n,"aria-hidden":"true",children:e}),(0,r.jsxs)("div",{className:"fixed inset-0 z-50 pointer-events-auto",children:[(0,r.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0 backdrop-blur-[2px] bg-gradient-radial from-black/45 via-black/5 to-transparent"}),(0,r.jsx)("div",{className:"fixed inset-0 z-[60] grid place-items-center pointer-events-none",children:(0,r.jsx)("div",{ref:i,role:"dialog","aria-modal":"true",tabIndex:-1,className:"pointer-events-auto min-w-[min(700px,90vw)] max-w-[min(90vw,900px)] w-fit rounded-xl bg-white text-neutral-900 shadow-2xl px-5 py-4 border outline-none",children:t})})]})]})}var em=n(89839),eg=n(11362),ey=n(89967),ev=n(14316);function eb(){return(0,r.jsxs)(r.Fragment,{children:["I have read and understand the"," ",(0,r.jsx)("a",{href:"https://stitch.money/express-legal/terms-and-conditions",target:"_blank",className:"underline",children:"Terms and Conditions"})," ","and"," ",(0,r.jsx)("a",{href:"https://stitch.money/express-legal/privacy-policy",target:"_blank",className:"underline",children:"Privacy Policy"}),"."]})}function ew(){return(0,r.jsxs)(r.Fragment,{children:["I have read and understand the"," ",(0,r.jsx)("a",{href:"https://stitch.money/legal/acquiring-service-terms",target:"_blank",className:"underline",children:"Acquiring Service Terms"}),"."]})}function e_({children:e}){let t=(0,ey.Z)(),{userData:n,refreshUserSession:i}=(0,eg.Z)(),a=n?.merchant?.id,s=(0,ev.Z)(),[l,c]=(0,o.useState)(!1),[u,d]=(0,o.useState)(!1),[p,f]=(0,o.useState)(!1),h=(0,o.useCallback)(e=>{c(e.target.checked)},[]),m=(0,o.useCallback)(e=>{d(e.target.checked)},[]),g=(0,o.useCallback)(async()=>{if(!a)return;f(!0);let e=await t(`/api/merchant/${a}/accept-terms-and-conditions`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})});if(!e.ok){s.error(await e.text(),{headers:e.headers}),f(!1),(0,em.Z)("Failed to accept terms and conditions - please try again.","error");return}await i(),f(!1)},[t,s,a,i]),y=!!n?.session?.impersonatedBy;return!n?.merchant||n.merchant.termsAndConditionsAcceptance||y?(0,r.jsx)(r.Fragment,{children:e}):(0,r.jsx)(eh,{card:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mb-4 text-sm",children:(0,r.jsx)("p",{children:"Before you can continue, please take a moment to read and accept our Terms & Conditions. It helps keep everything clear and transparent."})}),(0,r.jsx)(ef.Z,{id:"ts-and-cs-acceptance",label:(0,r.jsx)(eb,{}),onChange:h,variant:"small",containerClassName:"pl-0",labelClassName:"text-sm",hideStatusBar:!0}),(0,r.jsx)(ef.Z,{id:"acquiring-ts-and-cs-acceptance",label:(0,r.jsx)(ew,{}),onChange:m,variant:"small",containerClassName:"pl-0",labelClassName:"text-sm",hideStatusBar:!0}),(0,r.jsx)(ep.Z,{size:"small",className:"mt-3",onClick:g,disabled:!l||!u,loading:p,children:"Continue"})]}),children:e})}var ex=n(46883),eE=n(43741),eS=n(2110);function ek({kycbStatus:e,hasLiveClient:t,pathname:n}){let{title:i,body:a,action:o}=(0,eS.G5)({kycbStatus:e,hasLiveClient:t},n);return(0,r.jsxs)("div",{className:"flex flex-col gap-3 text-sm",children:[(0,r.jsx)("p",{className:"text-base font-semibold text-neutral-carbon",children:i}),(0,r.jsx)("p",{className:"text-secondary",children:a}),function(e){switch(e){case"get-verified":return(0,r.jsx)(ex.Z,{href:"/verification",size:"small",className:"w-fit",withLoading:!0,children:"Get verified"});case"support":return(0,r.jsx)(eE.Z,{variant:"primary",size:"small",className:"w-fit"});case"create-payment-link":case null:return null}}(o)]})}var eC=n(95253);function eI({children:e}){let t=(0,a.useRouter)(),{kycbStatus:n,hasLiveClient:i,isPathnameGated:o}=(0,G.Z)();return n&&o(t.pathname)?(0,r.jsx)(eC.Z,{card:(0,r.jsx)(ek,{kycbStatus:n,hasLiveClient:i,pathname:t.pathname}),children:e}):(0,r.jsx)(r.Fragment,{children:e})}var eA=n(59667),eT=n(44196);let eR=eT.Ry({currentClientId:eT.AG(eT.Z_()),isSideNavLocked:eT.O7()});
445class eN{static{this.storageKey="USER_SETTINGS"}constructor(e,t){this.currentClientId=e,this.isSideNavLocked=t}static fromJSON(e){let t=eR.safeParse(JSON.parse(e??"{}")),n=t.success?t.data:{currentClientId:null,isSideNavLocked:!1};return new eN(n.currentClientId,n.isSideNavLocked)}static fromLocalStorage(){return this.fromJSON(localStorage.getItem(this.storageKey))}toJSON(){return JSON.stringify({currentClientId:this.currentClientId,isSideNavLocked:this.isSideNavLocked})}save(){localStorage.setItem(eN.storageKey,this.toJSON())}}var eO=n(64501);function eP({merchantId:e,className:t}){let n=(0,a.useRouter)(),[i,s]=(0,o.useState)(!1),c=(0,o.useCallback)(()=>{s(!0),p.Z.admin.stopImpersonating({fetchOptions:{onSuccess(){n.push(`/internal/merchants/${e}`)},onError(e){(0,em.Z)(e.error.message,"error"),l.Tb(e.error),s(!1)}}})},[e,n]);return(0,r.jsx)(ep.Z,{loading:i,onClick:c,size:"xsmall",className:t,children:"Stop Impersonation"})}function eD({children:e}){let{refreshUserSession:t,userData:n}=(0,eg.Z)(),i=(0,eA.Z)(),a=(0,o.useMemo)(()=>!!n?.session.impersonatedBy,[n?.session]);(0,o.useEffect)(()=>{t()},[t]),(0,o.useEffect)(()=>{if(!n?.user)return;let e=()=>{if("function"!=typeof window.zE)return;window.zE("webWidget","updateSettings",{webWidget:{color:{theme:"#6e2cff"}}});let e=`${n.user.firstName} ${n.user.lastName}`;window.zE("webWidget","identify",{name:e,email:n.user.email})},t=null,r=null;return"function"==typeof window.zE?e():(t=setInterval(()=>{"function"==typeof window.zE&&(e(),t&&(clearInterval(t),t=null))},100),r=setTimeout(()=>{t&&(clearInterval(t),t=null)},1e4)),()=>{t&&clearInterval(t),r&&clearTimeout(r)}},[n?.user]);let[s,l]=(0,o.useState)(!0),{sideNavLock:u,lockSideNav:p}=function(){let e=function(){let[e,t]=(0,o.useState)(null);return(0,o.useEffect)(()=>{e||t(eN.fromLocalStorage())},[e]),e}(),[t,n]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{e&&n(e.isSideNavLocked)},[e]),{sideNavLock:t,lockSideNav:t=>{n(t),e&&(e.isSideNavLocked=t,e.save())}}}();return(0,o.useEffect)(()=>
445{l(!u)},[u]),(0,r.jsx)(eO.Z.Provider,{value:{isSideNavCollapsed:s},children:(0,r.jsxs)(e_,{children:[i.ZENDESK_WIDGET_KEY&&(0,r.jsx)(d(),{id:"ze-snippet",src:`https://static.zdassets.com/ekr/snippet.js?key=${i.ZENDESK_WIDGET_KEY}`,strategy:"afterInteractive"}),(0,r.jsx)(X,{sideNavLock:u,onSideNavLockSave:p,isSideNavCollapsed:s,setIsSideNavCollapsed:l}),(0,r.jsx)(ed,{}),(0,r.jsx)("div",{className:"flex w-full justify-end",children:a&&!!n?.user?.merchantId&&(0,r.jsx)(eP,{merchantId:n.user.merchantId,className:"m-2"})}),(0,r.jsx)("main",{className:(0,c.Z)("mx-1 sm:transition-spacing sm:duration-500 sm:ease flex flex-col flex-1 h-full",s?"sm:ml-side-nav-closed":"sm:ml-side-nav-open"),children:(0,r.jsxs)(eI,{children:[(0,r.jsx)(f.Z,{}),e]})})]})})}var eM=n(3952),e$=n(41309),ej=n(2437);function eL(e){return"string"==typeof e&&e.length>0?e:void 0}function eF({userData:e}){let t=(0,eM.Z)("production"),{pathname:n,query:r}=(0,a.useRouter)(),i="string"==typeof r.code&&r.code.length>0,s=(0,eA.Z)(),l=eL(s.DATADOG_RUM_APPLICATION_ID),c=eL(s.DATADOG_CLIENT_TOKEN),u=eL(s.DATADOG_VERSION)??"Unknown",d=t&&!!l&&!!c,p=(0,ej.g0)(n),f=d&&p;return(0,o.useEffect)(()=>{if(d&&l&&c){if(!p){(0,ej.qj)(!1);return}(0,ej.jy)({applicationId:l,clientToken:c,environment:"production",version:u,correlation:(0,e$.K)()}),(0,ej.qj)(!0)}},[d,p,l,c,u]),(0,o.useEffect)(()=>{if(!f)return;let e=(0,ej.UJ)(n,i);e&&(0,ej.Ov)(e)},[f,n,i]),(0,o.useEffect)(()=>{f&&e?.user&&!e.user.isStitchAdmin&&!e.session.impersonatedBy&&(0,ej.B9)({id:e.user.id,merchantId:e.user.merchantId})},[f,e]),null}var eB=n(35949);async function eU(e){try{return(await fetch("/api/device-telemetry",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceId:e}),keepalive:!0})).ok}catch{return!1}}function ez({userId:e}){let t=(0,o.useRef)(!1),n=`dt_submitted:${e}`;return(0,o.useEffect)(()=>{if(!t.current){try{if(sessionStorage.getItem(n))return}catch{}t.current=!0,eU((0,eB.ni)()).then(e=>{if(e)try{sessionStorage.setItem(n,"1")}catch{}else t.current=!1})}},[n]),null}n(5851);var eZ=n(9580);function eV({title:e}){let t=(0,eA.Z)(),n="Stitch Express is a payment gateway designed to elevate e-commerce businesses. Use Stitch Express to securely accept payments on your Shopify, WooCommerce, Squarespace, and Webflow store with a curated suite of high-converting payment methods.",i=t.SHORTLINK_BASE_URL,a=(0,o.useMemo)(()=>[{url:`${i}/images/logos/stitch-express-purple-bg-192x192.png`,width:192,height:192,alt:"Stitch Express logo",type:"image/png"}],[i]),s=[{rel:"apple-touch-icon",href:"/apple-touch-icon.png",type:"image/png",sizes:"180x180"},{rel:"icon",href:"/favicon-32x32.png",type:"image/png",sizes:"32x32"},{rel:"icon",href:"/favicon-16x16.png",type:"image/png",sizes:"16x16"},{rel:"manifest",href:"/site.webmanifest"},{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#6E2CFF"},{rel:"canonical",href:t.SHORTLINK_BASE_URL}];return(0,r.jsx)(eZ.lX,{title:e,defaultTitle:"Stitch Express",titleTemplate:"Stitch Express | %s",description:n,themeColor:"#6E2CFF",canonical:i,openGraph:{url:i,title:e,description:n,images:a,siteName:"Stitch Express"},twitter:{handle:"@stitchmoneyhq",site:"@stitchmoneyhq",cardType:"summary_large_image"},dangerouslySetAllPagesToNoFollow:!0,dangerouslySetAllPagesToNoIndex:!0,norobots:!0,additionalLinkTags:s,additionalMetaTags:[{name:"msapplication-TileColor",content:"#6E2CFF"}]})}class eq extends o.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,{componentStack:t}){this.setState({hasError:!0}),this.props.logger.error(e,{componentStack:t})}render(){return this.state.hasError?(0,r.jsx)("div",{className:"font-inter h-screen flex w-full items-center justify-center",children:(0,r.jsxs)("div",{className:"text-center text-xl",children:[(0,r.jsx)("p",{className:"text-xl",children:"Something went wrong"}),(0,r.jsx)("p",{className:"font-normal text-secondary-light",children:"Please refresh the page and try again"}),(0,r.jsx)("p",{className:"font-normal text-secondary-light",children:"or contact the merchant for assistance."})]})}):this.props.children}}var eW=n(3355);let eG=["/pay/","/subscribe/","/card-consent/","/[wigwagId]"];function eH(){let e=(0,eM.Z)("production"),{pathname:t}=(0,a.useRouter)(),n=eG.some(e=>
445t.startsWith(e));return!e||n?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d(),{id:"gtm-init",strategy:"afterInteractive",children:`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','${eW.Y4}');`}),(0,r.jsx)("noscript",{children:(0,r.jsx)("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${eW.Y4}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})}let eY=(0,o.createContext)(null);var eK=n(15032),eJ=n(32729),eX=n.n(eJ);async function eQ(e){let{clientSideEnvironmentKey:t,identity:n,traits:r,onFlagChange:i,onFeatureFlagFetchError:a,cacheFlags:o,defaultFlags:s,debugMode:l}=e;return void 0===t?null:(await eX().init({defaultFlags:s,identity:n,traits:r,environmentID:t,onChange:i,onError:a,cacheFlags:o,enableLogs:l}),{getFlagValue:(e,t)=>eX().getValue(e,t),isFlagEnabled:e=>eX().hasFeature(e)})}let e0={"daisy.fraud.merchant_fingerprint":{enabled:!1}},e1=["/signup","/onboarding"];var e2=n(3587),e3=n.n(e2);function e5({userData:e}){return!function(e,t){let n=(0,o.useContext)(eY);return n?n.isFlagEnabled(e):t}("daisy.fraud.merchant_fingerprint",!1)||!e?.user||e.session.impersonatedBy?null:(0,r.jsx)(ez,{userId:e.user.id})}var e4=function({Component:e,pageProps:t}){let n=(0,ev.Z)(),[l,c]=(0,o.useState)(null),[u,d]=(0,o.useState)("TEST"),f=(0,a.useRouter)(),h=(0,o.useMemo)(()=>e.getLayout??(e=>(0,r.jsx)(eD,{children:e})),[e.getLayout]),m=(0,o.useCallback)(async()=>{c((await p.Z.getSession()).data)},[]);(0,o.useEffect)(()=>{m()},[m]),(0,o.useEffect)(()=>{i.Z.init("56e9ecd9b529a9a2df8bf0084791a7ea",{api_host:"https://metrics.wigwag.me",persistence:"cookie",track_pageview:!0,autotrack:!0,cross_subdomain_cookie:!0}),l&&!l.user?.isStitchAdmin&&(i.Z.identify(l.user?.id),i.Z.register({email:l.user?.email,tenant_id:l.merchant?.id,tenant_name:l.merchant?.name,user_id:l.user?.id,industry:l.merchant?.merchantCategory,phone_number:l.user?.phoneNumber,...Object.entries(f.query).reduce((e,[t,n])=>(t.startsWith("utm_")&&"string"==typeof n&&(e[t]=n),e),{})}),i.Z.people.set({name:`${l.user?.firstName} ${l.user?.lastName}`,email:l.user?.email,tenant_id:l.merchant?.id,tenant_name:l.merchant?.name,user_id:l.user?.id,industry:l.merchant?.merchantCategory,phone_number:l.user?.phoneNumber})),window.mpa=i.Z},[f,l]),function(){let e=(0,a.useRouter)();(0,o.useEffect)(()=>{e.isReady&&e1.some(t=>e.pathname.startsWith(t))&&(0,eW.u1)(e.query)},[e.isReady,e.pathname,e.query])}();let g=function(e){let t=(0,eA.Z)(),n=(0,ev.Z)(),[r,i]=(0,o.useState)(null);return(0,o.useEffect)(()=>{r||eQ({clientSideEnvironmentKey:t.FLAGSMITH_CLIENT_SIDE_ENV_KEY,cacheFlags:!1,identity:e,traits:{clientId:e},defaultFlags:e0}).then(e=>{i(e)}).catch(e=>{if(!n){console.error(e);return}e instanceof Error?n.error(e):n.error((0,eK.Iv)(e))})},[e,t.FLAGSMITH_CLIENT_SIDE_ENV_KEY,r,n]),r}(l?.user?.merchantId??"");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eV,{title:e.title}),(0,r.jsx)(eH,{}),(0,r.jsx)(eF,{userData:l}),(0,r.jsxs)(eq,{logger:n,children:[(0,r.jsx)(eY.Provider,{value:g,children:(0,r.jsxs)(J.Z.Provider,{value:{userData:l??null,refreshUserSession:m,environment:u,setEnvironment:d},children:[(0,r.jsx)(e5,{userData:l}),(0,r.jsx)("span",{className:e3().className,children:h((0,r.jsx)(e,{...t}))})]})}),(0,r.jsx)(s.Ix,{closeButton:!1,position:"top-right",newestOnTop:!0,limit:3,transition:em.S,className:(0,x.cn)("toast_container",e3().className)})]})]})}},51104:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let{Decimal:r,objectEnumValues:i,makeStrictEnum:a,Public:o,getRuntime:s,skip:l}=n(81811),c={};t.Prisma=c,t.$Enums={},c.prismaVersion={client:"6.5.0",engine:"173f8d54f8d52e692c7e27e72a88314ec7aeff60"},c.PrismaClientKnownRequestError=()=>{let e=s().prettyName;throw Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
446In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)}
446,c.PrismaClientUnknownRequestError=()=>{let e=s().prettyName;throw Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
447In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},c.PrismaClientRustPanicError=()=>{let e=s().prettyName;throw Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
448In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},c.PrismaClientInitializationError=()=>{let e=s().prettyName;throw Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
449In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},c.PrismaClientValidationError=()=>{let e=s().prettyName;throw Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
450In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},c.Decimal=r,c.sql=()=>{let e=s().prettyName;throw Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
451In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},c.empty=()=>{let e=s().prettyName;throw Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
452In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},c.join=()=>{let e=s().prettyName;throw Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
453In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},c.raw=()=>{let e=s().prettyName;throw Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
454In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},c.validator=o.validator,c.getExtensionContext=()=>{let e=s().prettyName;throw Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
455In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},c.defineExtension=()=>{let e=s().prettyName;throw Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
456In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},c.DbNull=i.instances.DbNull,c.JsonNull=i.instances.JsonNull,c.AnyNull=i.instances.AnyNull,c.NullTypes={DbNull:i.classes.DbNull,JsonNull:i.classes.JsonNull,AnyNull:i.classes.AnyNull},t.Prisma.TransactionIsolationLevel=a({ReadUncommitted:"ReadUncommitted",ReadCommitted:"ReadCommitted",RepeatableRead:"RepeatableRead",Serializable:"Serializable"}),t.Prisma.ClientScalarFieldEnum={id:"id",name:"name",userId:"userId",environment:"environment",createdAt:"createdAt",updatedAt:"updatedAt",merchantId:"merchantId",acquirer:"acquirer"},t.Prisma.MerchantPaymentMethodsScalarFieldEnum={id:"id",card:"card",capitec:"capitec",applePay:"applePay",googlePay:"googlePay",bnpl:"bnpl",merchantId:"merchantId",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.ClientSecretScalarFieldEnum={id:"id",clientId:"clientId",value:"value",createdAt:"createdAt",updatedAt:"updatedAt",expiresAt:"expiresAt",deleted:"deleted"},t.Prisma.MerchantScalarFieldEnum={id:"id",name:"name",merchantCategory:"merchantCategory",createdAt:"createdAt",updatedAt:"updatedAt",legalEntity:"legalEntity",otherBusinessType:"otherBusinessType",revenue:"revenue",kycbStatus:"kycbStatus",activeVerificationProvider:"activeVerificationProvider",industryCheckStatus:"industryCheckStatus",businessLegitimacyStatus:"businessLegitimacyStatus",capitecPayMerchantReference:"capitecPayMerchantReference",capitecEnabled:"capitecEnabled",walletEnabled:"walletEnabled",capitecApprovalStatus:"capitecApprovalStatus",kycbFailureReason:"kycbFailureReason",balance:"balance",reservedBalance:"reservedBalance",redirectUrls:"redirectUrls",withdrawalsPaused:"withdrawalsPaused",paymentsPaused:"paymentsPaused",cardConsentsEnabled:"cardConsentsEnabled",b
456nplEnabled:"bnplEnabled",subscriptionsEnabled:"subscriptionsEnabled",businessDescription:"businessDescription",paymentAcceptanceMode:"paymentAcceptanceMode",shopifyDomain:"shopifyDomain",shopifyAccessToken:"shopifyAccessToken",shopifyPayWithStitchDomain:"shopifyPayWithStitchDomain",shopifyPayWithStitchAccessToken:"shopifyPayWithStitchAccessToken",wooCommerceDomain:"wooCommerceDomain",terminalId:"terminalId",applePayTransactionLimit:"applePayTransactionLimit",applePayTransactionRateLimit:"applePayTransactionRateLimit",googlePayTransactionLimit:"googlePayTransactionLimit",googlePayTransactionRateLimit:"googlePayTransactionRateLimit",withdrawalConfigId:"withdrawalConfigId",vatNumber:"vatNumber",emailSettingsId:"emailSettingsId",slug:"slug",logo:"logo",metadata:"metadata",salesLinkedWithdrawalsEnabled:"salesLinkedWithdrawalsEnabled",deletedAt:"deletedAt",blocked:"blocked",salesChannel:"salesChannel",isEligibleForOutbound:"isEligibleForOutbound",shopifySubscriptionsEnabled:"shopifySubscriptionsEnabled",shopifySubscriptionsClientId:"shopifySubscriptionsClientId",shopifyPosEnabled:"shopifyPosEnabled",shopifyPosClientId:"shopifyPosClientId",cardPresentEnabled:"cardPresentEnabled",cardMachinesRequestedAt:"cardMachinesRequestedAt",apiAccessEnabled:"apiAccessEnabled"},t.Prisma.ApiIntegrationReviewRequestScalarFieldEnum={id:"id",merchantId:"merchantId",details:"details",createdAt:"createdAt"},t.Prisma.ShopifyAppInstallationScalarFieldEnum={id:"id",merchantId:"merchantId",app:"app",shopDomain:"shopDomain",accessToken:"accessToken",accessTokenExpiresAt:"accessTokenExpiresAt",refreshToken:"refreshToken",refreshTokenExpiresAt:"refreshTokenExpiresAt",scope:"scope",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.PaymentPageScalarFieldEnum={id:"id",merchantId:"merchantId",wigwagId:"wigwagId",logoUrl:"logoUrl",email:"email",phoneNumber:"phoneNumber",collectEmail:"collectEmail",collectPhone:"collectPhone",references:"references",brandName:"brandName",updatedAt:"updatedAt",createdAt:"createdAt"},t.Prisma.MerchantMarketingFlagsScalarFieldEnum={id:"id",merchantId:"merchantId",goneLiveEventEmitted:"goneLiveEventEmitted",firstPaymentCompleted:"firstPaymentCompleted"},t.Prisma.EmailSettingsScalarFieldEnum={id:"id",paymentNotificationRecipients:"paymentNotificationRecipients",refundNotificationRecipients:"refundNotificationRecipients",withdrawalNotificationRecipients:"withdrawalNotificationRecipients",monthlyTransactionHistoryRecipients:"monthlyTransactionHistoryRecipients",monthlyTransactionHistoryLastSend:"monthlyTransactionHistoryLastSend",salesReportRecipients:"salesReportRecipients",salesReportLastSend:"salesReportLastSend",salesReportFrequency:"salesReportFrequency",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.UserScalarFieldEnum={id:"id",firstName:"firstName",lastName:"lastName",phoneNumber:"phoneNumber",email:"email",marketingConsent:"marketingConsent",createdAt:"createdAt",updatedAt:"updatedAt",lastLoginAt:"lastLoginAt",lead:"lead",isStitchAdmin:"isStitchAdmin",staffRole:"staffRole",intercomId:"intercomId",emailVerified:"emailVerified",image:"image",migratedToBetterAuth:"migratedToBetterAuth",role:"role",banned:"banned",banReason:"banReason",banExpires:"banExpires",passkeySetupDeclined:"passkeySetupDeclined"},t.Prisma.MerchantUrlScalarFieldEnum={id:"id",createdAt:"createdAt",updatedAt:"updatedAt",type:"type",value:"value",merchantId:"merchantId"},t.Prisma.PaymentLinkScalarFieldEnum={id:"id",link:"link",paymentRequestId:"paymentRequestId",clientId:"clientId",payerName:"payerName",payerEmailAddress:"payerEmailAddress",payerPhoneNumber:"payerPhoneNumber",amount:"amount",expireAt:"expireAt",createdAt:"createdAt",updatedAt:"updatedAt",payerReference:"payerReference",merchantReference:"merchantReference",shopifyOrderName:"shopifyOrderName",stitchReference:"stitchReference",status:"status",shortId:"shortId",paidAt:"paidAt",collectDeliveryDetails:"collectDeliveryDetails",deliveryDetailId:"deliveryDetailId",source:"source",skipCheckoutPage:"skipCheckoutPage",shopifyPaymentId:"shopifyPaymentId",storeCancelUrl:"storeCancelUrl",paymentMethod:"paymentMethod",allowedPaymentMethods:"allowedPaymentMethods",capitecAccountNumber:"capitecAccountNumber",paymentProvider:"paymentProvider",storeConfirmationSe
456ntAt:"storeConfirmationSentAt",storeCompletionUrl:"storeCompletionUrl"},t.Prisma.PaymentConfirmationScalarFieldEnum={id:"id",paymentConfirmationId:"paymentConfirmationId",paymentId:"paymentId",provider:"provider",createdAt:"createdAt"},t.Prisma.DeliveryDetailScalarFieldEnum={id:"id",firstName:"firstName",lastName:"lastName",phoneNumber:"phoneNumber",addressDetails:"addressDetails",deliveryFee:"deliveryFee"},t.Prisma.BankDetailsScalarFieldEnum={id:"id",createdAt:"createdAt",updatedAt:"updatedAt",accountNumber:"accountNumber",name:"name",bankId:"bankId",merchantId:"merchantId"},t.Prisma.CardConsentScalarFieldEnum={id:"id",clientId:"clientId",payerFullName:"payerFullName",email:"email",nonce:"nonce",payerId:"payerId",cardConsentId:"cardConsentId",url:"url",status:"status",initialAmount:"initialAmount"},t.Prisma.PayerBankDetailsScalarFieldEnum={id:"id",accountName:"accountName",accountNumber:"accountNumber",accountType:"accountType",bankId:"bankId",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.SubscriptionRequestAttemptScalarFieldEnum={id:"id",createdAt:"createdAt",updatedAt:"updatedAt",consentRequestId:"consentRequestId",consentRequestUrl:"consentRequestUrl",subscriptionId:"subscriptionId"},t.Prisma.ShopifySubscriptionConsentScalarFieldEnum={id:"id",consentReceiptId:"consentReceiptId",clientId:"clientId",paymentGroup:"paymentGroup",paymentSessionId:"paymentSessionId",checkoutId:"checkoutId",termsHash:"termsHash",amountCents:"amountCents",currency:"currency",capturedAt:"capturedAt",consentClaimId:"consentClaimId",consentClaimedAt:"consentClaimedAt",consentRequestId:"consentRequestId",supersededAt:"supersededAt",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.ShopifySubscriptionPaymentAttemptScalarFieldEnum={id:"id",paymentSessionId:"paymentSessionId",shopifySessionId:"shopifySessionId",shopifyPaymentGid:"shopifyPaymentGid",requestFingerprint:"requestFingerprint",shopifySubscriptionConsentId:"shopifySubscriptionConsentId",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.SubscriptionScalarFieldEnum={id:"id",shortId:"shortId",recurrence:"recurrence",checkoutId:"checkoutId",platformSubscriptionId:"platformSubscriptionId",payerReference:"payerReference",merchantReference:"merchantReference",consentRequestId:"consentRequestId",consentRequestUrl:"consentRequestUrl",startDate:"startDate",endDate:"endDate",status:"status",amount:"amount",clientId:"clientId",lastInitiatedOn:"lastInitiatedOn",expectedNextChargeDate:"expectedNextChargeDate",timesRetried:"timesRetried",payerFullName:"payerFullName",email:"email",payerId:"payerId",initialAmount:"initialAmount",sourcePlatform:"sourcePlatform",scheduler:"scheduler",shopifyContractGid:"shopifyContractGid",shopifyV1MigratedAt:"shopifyV1MigratedAt",shopifySubscriptionConsentId:"shopifySubscriptionConsentId",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.ShopifySubscriptionCollectionScalarFieldEnum={id:"id",collectId:"collectId",subscriptionId:"subscriptionId",amount:"amount",currency:"currency",contractGid:"contractGid",cycleIndex:"cycleIndex",orderGid:"orderGid",orderName:"orderName",state:"state",failureKind:"failureKind",failureCode:"failureCode",failureMessage:"failureMessage",paymentId:"paymentId",paidAt:"paidAt",failedAt:"failedAt",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.SubscriptionPaymentAllocationScalarFieldEnum={paymentId:"paymentId",subscriptionId:"subscriptionId",allocationAmount:"allocationAmount",createdAt:"createdAt",updatedAt:"updatedAt",merchantPaymentReference:"merchantPaymentReference"},t.Prisma.CardDetailScalarFieldEnum={id:"id",country:"country",type:"type",bin:"bin",last4:"last4",cardHolderName:"cardHolderName",expiryMonth:"expiryMonth",expiryYear:"expiryYear"},t.Prisma.PaymentScalarFieldEnum={id:"id",transactionId:"transactionId",retrievalReferenceNumber:"retrievalReferenceNumber",clientId:"clientId",status:"status",shortId:"shortId",paidAt:"paidAt",method:"method",amount:"amount",type:"type",createdAt:"createdAt",updatedAt:"updatedAt",subscriptionId:"subscriptionId",shopifySubscriptionOrderId:"shopifySubscriptionOrderId",linkId:"linkId",cardDetailId:"cardDetailId",payerBankDetailId:"payerBankDetailId",cardConsentId:"cardConsentId"},t.Prisma.PaymentRequestAttemptScalarFieldEnum={id:"id",createdAt:"createdAt",updatedAt:"updatedAt",linkId:"linkId",paymentRequestId:"paymentRequestId",method:"method",failureReason:"failureReason",failedAt:"failedAt"},t.Prisma.CheckoutEventScalarFieldEnum={id:"id",linkId:"linkId",subscriptionId:"subscriptionId",cardConsentId:"cardConsentId",name:"name",paymentMethod:"paymentMethod",sessionId:"sessionId",deviceId:"deviceId",clientEventId:"clientEventId",metadata:"metadata",occurredAt:"occurredAt",receivedAt:"receivedAt"},t.Prisma.MerchantJourneyEventScalarFieldEnum={id:"id",userId:"userId",merchantId:"merchantId",name:"name",source:"source",flowVersion:"flowVersion",step:"step",sessionId:"sessionId",deviceId:"deviceId",clientEventId:"clientEventId",metadata:"metadata",occurredAt:"occurredAt",receivedAt:"receivedAt"},t.Prisma.AuditLogScalarFieldEnum={id:"id",createdAt:"createdAt",userId:"userId",event:"event",tableName:"tableName",recordId:"recordId",metadata:"metadata",ip:"ip"},t.Prisma.ReferralCodeScalarFieldEnum={id:"id",merchantId:"merchantId",code:"code",createdAt:"createdAt"},t.Prisma.ReferralScalarFieldEnum={id:"id",referrerId:"referrerId",refereeId:"refereeId",referralCodeId:"referralCodeId",refereeUserId:"refereeUserId",createdAt:"createdAt",status:"status"},t.Prisma.RewardScalarFieldEnum={id:"id",merchantId:"merchantId",referralId:"referralId",amount:"amount",status:"status",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.ReferrerScalarFieldEnum={id:"id",name:"name",type:"type",email:"email",phoneNumber:"phoneNumber",websiteUrls:"websiteUrls",notes:"notes",merchantId:"merchantId",createdByUserId:"createdByUserId",archivedAt:"archivedAt",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.AttributionLinkScalarFieldEnum={id:"id",referrerId:"referrerId",code:"code",destinationPath:"destinationPath",createdAt:"createdAt"},t.Prisma.SignupAttributionScalarFieldEnum={id:"id",attributionLinkId:"attributionLinkId",refereeUserId:"refereeUserId",merchantId:"merchantId",capturedVia:"capturedVia",firstTouchAt:"firstTouchAt",lastTouchAt:"lastTouchAt",utmSnapshot:"utmSnapshot",createdAt:"createdAt"}
456,t.Prisma.AnnouncementScalarFieldEnum={id:"id",title:"title",message:"message",variant:"variant",expiresAt:"expiresAt",archivedAt:"archivedAt",createdByUserId:"createdByUserId",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.AnnouncementDismissalScalarFieldEnum={id:"id",announcementId:"announcementId",userId:"userId",dismissedAt:"dismissedAt"},t.Prisma.FeeScalarFieldEnum={id:"id",quantity:"quantity",amount:"amount",type:"type",statementId:"statementId",createdAt:"createdAt",updatedAt:"updatedAt",paymentId:"paymentId"},t.Prisma.StatementScalarFieldEnum={id:"id",merchantId:"merchantId",statementNumber:"statementNumber",totalBeforeTax:"totalBeforeTax",totalWithTax:"totalWithTax",cycleStart:"cycleStart",cycleEnd:"cycleEnd",finalised:"finalised",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.MerchantGroupScalarFieldEnum={id:"id",name:"name",volumePricingScheduleId:"volumePricingScheduleId",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.MerchantGroupMemberScalarFieldEnum={id:"id",groupId:"groupId",merchantId:"merchantId",createdAt:"createdAt"},t.Prisma.VolumePricingScheduleScalarFieldEnum={id:"id",name:"name",matrix:"matrix",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.VolumePricingTrueUpScalarFieldEnum={id:"id",groupId:"groupId",merchantId:"merchantId",scheduleId:"scheduleId",cycleStart:"cycleStart",cycleEnd:"cycleEnd",groupVolumeCents:"groupVolumeCents",resolvedTier:"resolvedTier",contractedCents:"contractedCents",takenCents:"takenCents",deltaCents:"deltaCents",feeId:"feeId",createdAt:"createdAt"},t.Prisma.MerchantVerificationRequestScalarFieldEnum={id:"id",merchantId:"merchantId",stepStatus:"stepStatus",createdAt:"createdAt",updatedAt:"updatedAt",merchantVerificationProvider:"merchantVerificationProvider",riskScore:"riskScore"},t.Prisma.MerchantVerificationEventScalarFieldEnum={id:"id",merchantId:"merchantId",provider:"provider",step:"step",payload:"payload",externalEventId:"externalEventId",receivedAt:"receivedAt"},t.Prisma.MerchantIdentifierScalarFieldEnum={id:"id",merchantId:"merchantId",identifierType:"identifierType",value:"value",source:"source",createdAt:"createdAt"},t.Prisma.MerchantDormancyScalarFieldEnum={id:"id",merchantId:"merchantId",status:"status",warnedAt:"warnedAt",exemptUntil:"exemptUntil",exemptedById:"exemptedById",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.BlockedMerchantScalarFieldEnum={id:"id",merchantId:"merchantId",reason:"reason",description:"description",blockedById:"blockedById",createdAt:"createdAt"},t.Prisma.UserIdentifierScalarFieldEnum={id:"id",userId:"userId",identifierType:"identifierType",value:"value",source:"source",createdAt:"createdAt",lastSeenAt:"lastSeenAt"},t.Prisma.AddressScalarFieldEnum={id:"id",merchantId:"merchantId",addressLine1:"addressLine1",addressLine2:"addressLine2",addressLevel1:"addressLevel1",addressLevel2:"addressLevel2",postalCode:"postalCode",country:"country"},t.Prisma.TransactionScalarFieldEnum={id:"id",merchantId:"merchantId",type:"type",amount:"amount",description:"description",timestamp:"timestamp",transactionDetailId:"transactionDetailId",ledgerId:"ledgerId"},t.Prisma.SettlementScalarFieldEnum={id:"id",merchantId:"merchantId",amount:"amount",createdAt:"createdAt",updatedAt:"updatedAt",paymentId:"paymentId",type:"type",withdrawalId:"withdrawalId"},t.Prisma.RedirectUrlScalarFieldEnum={id:"id",merchantId:"merchantId",value:"value"},t.Prisma.PaymentLinkEventScalarFieldEnum={id:"id",linkId:"linkId",type:"type",description:"description",timestamp:"timestamp"},t.Prisma.CustomBillingProfileScalarFieldEnum={id:"id",merchantId:"merchantId",international:"international",debit:"debit",credit:"credit",bnpl:"bnpl",capitec:"capitec",createdAt:"createdAt",updatedAt:"updatedAt",method:"method"},t.Prisma.SubscriptionCardBillingProfileScalarFieldEnum={id:"id",merchantId:"merchantId",sourcePlatform:"sourcePlatform",debit:"debit",credit:"credit",international:"international",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.CardPresentBillingProfileScalarFieldEnum={id:"id",merchantId:"merchantId",sourcePlatform:"sourcePlatform",debit:"debit",credit:"credit",international:"international",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.RefundScalarFieldEnum={id:"id",createdAt:"createdAt",updatedAt:"updatedAt",amount:"amount",status:"status",statusReason:"statusReason",reason:"reason",paymentId:"paymentId",refundRequestId:"refundRequestId",origin:"origin"},t.Prisma.TransactionDetailScalarFieldEnum={id:"id",withdrawalId:"withdrawalId",settlementId:"settlementId",feeId:"feeId",refundId:"refundId",adjustmentId:"adjustmentId",transactionId:"transactionId"},t.Prisma.WithdrawalScalarFieldEnum={id:"id",merchantId:"merchantId",upstreamWithdrawalId:"upstreamWithdrawalId",amount:"amount",createdAt:"createdAt",updatedAt:"updatedAt",createdById:"createdById",beneficiaryReference:"beneficiaryReference",status:"status",type:"type"},t.Prisma.BinInfoScalarFieldEnum={id:"id",fromBin:"fromBin",toBin:"toBin",cardType:"cardType",zaBankS
456hortName:"zaBankShortName",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.WithdrawalConfigScalarFieldEnum={id:"id",automatedWithdrawalEnabled:"automatedWithdrawalEnabled",automatedWithdrawalSchedule:"automatedWithdrawalSchedule",automatedWithdrawalType:"automatedWithdrawalType",merchantId:"merchantId",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.BalanceAdjustmentScalarFieldEnum={id:"id",createdAt:"createdAt",updatedAt:"updatedAt",merchantId:"merchantId",amount:"amount",reason:"reason",type:"type"},t.Prisma.SessionScalarFieldEnum={id:"id",expiresAt:"expiresAt",token:"token",createdAt:"createdAt",updatedAt:"updatedAt",ipAddress:"ipAddress",userAgent:"userAgent",userId:"userId",impersonatedBy:"impersonatedBy",activeOrganizationId:"activeOrganizationId"},t.Prisma.AccountScalarFieldEnum={id:"id",accountId:"accountId",providerId:"providerId",userId:"userId",accessToken:"accessToken",refreshToken:"refreshToken",idToken:"idToken",accessTokenExpiresAt:"accessTokenExpiresAt",refreshTokenExpiresAt:"refreshTokenExpiresAt",scope:"scope",password:"password",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.VerificationScalarFieldEnum={id:"id",identifier:"identifier",value:"value",expiresAt:"expiresAt",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.MerchantSalesAttributionScalarFieldEnum={id:"id",createdAt:"createdAt",updatedAt:"updatedAt",merchantId:"merchantId",salesPersonIds:"salesPersonIds",salesChannel:"salesChannel"},t.Prisma.MerchantUpsellScalarFieldEnum={id:"id",createdAt:"createdAt",updatedAt:"updatedAt",occurredAt:"occurredAt",deletedAt:"deletedAt",merchantId:"merchantId",product:"product",customProduct:"customProduct",salesPersonIds:"salesPersonIds",note:"note",loggedByUserId:"loggedByUserId"},t.Prisma.PasskeyScalarFieldEnum={id:"id",name:"name",publicKey:"publicKey",userId:"userId",credentialID:"credentialID",counter:"counter",deviceType:"deviceType",backedUp:"backedUp",transports:"transports",createdAt:"createdAt",aaguid:"aaguid"},t.Prisma.MemberScalarFieldEnum={id:"id",merchantId:"merchantId",userId:"userId",role:"role",createdAt:"createdAt"},t.Prisma.InvitationScalarFieldEnum={id:"id",merchantId:"merchantId",email:"email",role:"role",status:"status",expiresAt:"expiresAt",createdAt:"createdAt",inviterId:"inviterId"},t.Prisma.BlockedVisitorsScalarFieldEnum={id:"id",createdAt:"createdAt",updatedAt:"updatedAt",visitorId:"visitorId"},t.Prisma.ShopifyRefundDetailsScalarFieldEnum={id:"id",shopifyPaymentId:"shopifyPaymentId",shopifyRefundId:"shopifyRefundId",createdAt:"createdAt",resolvedAt:"resolvedAt",updatedAt:"updatedAt",refundId:"refundId"},t.Prisma.TermsAndConditionsAcceptanceScalarFieldEnum={id:"id",createdAt:"createdAt",updatedAt:"updatedAt",acceptedAt:"acceptedAt",merchantId:"merchantId",userId:"userId"},t.Prisma.TermsAndConditionsAcceptanceHistoryScalarFieldEnum={id:"id",merchantId:"merchantId",userId:"userId",action:"action",type:"type",ip:"ip",note:"note",occurredAt:"occurredAt"},t.Prisma.TerminalScalarFieldEnum={id:"id",stitchTerminalId:"stitchTerminalId",serialNumber:"serialNumber",friendlyName:"friendlyName",manufacturer:"manufacturer",status:"status",merchantId:"merchantId",stitchMerchantId:"stitchMerchantId",storeId:"storeId",clientId:"clientId",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.TerminalSessionScalarFieldEnum={id:"id",shortId:"shortId",stitchSessionId:"stitchSessionId",idempotencyKey:"idempotencyKey",correlationId:"correlationId",externalReference:"externalReference",clientId:"clientId",terminalId:"terminalId",storeId:"storeId",amount:"amount",status:"status",failureReason:"failureReason",source:"source",paymentId:"paymentId",paidAt:"paidAt",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.StoreScalarFieldEnum={id:"id",merchantId:"merchantId",name:"name",status:"status",addressMetadata:"addressMetadata",shopifyLocationId:"shopifyLocationId",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.StitchMerchantScalarFieldEnum={id:"id",merchantId:"merchantId",stitchMerchantId:"stitchMerchantId",environment:"environment",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.SortOrder={asc:"asc",desc:"desc"},t.Prisma.JsonNullValueInput={JsonNull:c.JsonNull},t.Prisma.NullableJsonNullValueInput={DbNull:c.DbNull,JsonNull:c.JsonNull},t.Prisma.QueryMode={default:"default",insensitive:"insensitive"},t.Prisma.NullsOrder={first:"first",last:"last"},t.Prisma.JsonNullValueFilter={DbNull:c.DbNull,JsonNull:c.JsonNull,AnyNull:c.AnyNull}
456,t.ClientEnvironment=t.$Enums.ClientEnvironment={PROD:"PROD",TEST:"TEST"},t.Acquirer=t.$Enums.Acquirer={STITCH:"STITCH",WIGWAG:"WIGWAG"},t.MerchantCategory=t.$Enums.MerchantCategory={WINE_BREWERY_DISTILLERY:"WINE_BREWERY_DISTILLERY",GROCERIES:"GROCERIES",RESTAURANTS:"RESTAURANTS",BAR_OR_CLUB:"BAR_OR_CLUB",BAKERY:"BAKERY",GARDEN_AND_LANDSCAPING:"GARDEN_AND_LANDSCAPING",CONTRACTOR:"CONTRACTOR",HANDYMAN_OR_BUILDER:"HANDYMAN_OR_BUILDER",HEATING_PLUMBING_AIRCONDITIONING:"HEATING_PLUMBING_AIRCONDITIONING",ELECTRICAL_SERVICES:"ELECTRICAL_SERVICES",STONEWORK_TILING_PLASTERING_INSULATION:"STONEWORK_TILING_PLASTERING_INSULATION",CARPENTRY:"CARPENTRY",ROOFING_SIDING_AND_SHEETMETAL_CONTRACTORS:"ROOFING_SIDING_AND_SHEETMETAL_CONTRACTORS",PEST_CONTROL:"PEST_CONTROL",TV_OR_SATELLITE_CONTRACTORS:"TV_OR_SATELLITE_CONTRACTORS",IT_OR_INTERNET_SERVICES:"IT_OR_INTERNET_SERVICES",LAUNDRY_AND_CLEANING:"LAUNDRY_AND_CLEANING",PRINTING_AND_PUBLISHING:"PRINTING_AND_PUBLISHING",REAL_ESTATE_MANAGEMENT:"REAL_ESTATE_MANAGEMENT",CHILDCARE:"CHILDCARE",FUNERAL_SERVICES:"FUNERAL_SERVICES",DEBT_COLLECTION:"DEBT_COLLECTION",COURIER_SERVICES:"COURIER_SERVICES",STORAGE_SERVICES:"STORAGE_SERVICES",LEGAL_SERVICES:"LEGAL_SERVICES",EDUCATIONAL_SERVICES:"EDUCATIONAL_SERVICES",PLANNING_AND_RECREATIONAL_SERVICES:"PLANNING_AND_RECREATIONAL_SERVICES",OTHER_SERVICES:"OTHER_SERVICES",TAXIS_AND_LIMOS:"TAXIS_AND_LIMOS",CAR_AND_PART_SUPPLIES:"CAR_AND_PART_SUPPLIES",TRAVEL_AND_TOURS:"TRAVEL_AND_TOURS",TOURIST_ATTRACTIONS:"TOURIST_ATTRACTIONS",ACCOMODATION:"ACCOMODATION",COMPUTER_EQUIPMENT:"COMPUTER_EQUIPMENT",FURNITURE:"FURNITURE",HARDWARE:"HARDWARE",FLORIST:"FLORIST",CLOTHING_AND_ACCESSORIES:"CLOTHING_AND_ACCESSORIES",MUSICAL_INSTRUMENTS_AND_GOODS:"MUSICAL_INSTRUMENTS_AND_GOODS",PHARMACY:"PHARMACY",GARDENING:"GARDENING",VINTAGE_GOODS:"VINTAGE_GOODS",SPORTS_GOODS:"SPORTS_GOODS",BOOKS:"BOOKS",STATIONERY_GOODS:"STATIONERY_GOODS",HOBBIES_TOYS_GAMES:"HOBBIES_TOYS_GAMES",PET_GOODS:"PET_GOODS",WATCHES_JEWELLERY:"WATCHES_JEWELLERY",OTHER_RETAIL:"OTHER_RETAIL",HAIR:"HAIR",BEAUTY_SPA:"BEAUTY_SPA",VET:"VET",DENTAL:"DENTAL",OPTICAL_GOODS_SERVICES:"OPTICAL_GOODS_SERVICES",NURSING:"NURSING",MEDICAL_LAB:"MEDICAL_LAB",OTHER_HEALTHCARE_BEAUTY:"OTHER_HEALTHCARE_BEAUTY",RECREATIONAL_CLUBS:"RECREATIONAL_CLUBS",SPORT_AND_FITNESS:"SPORT_AND_FITNESS",CHARITY:"CHARITY",POLITICAL_GROUP:"POLITICAL_GROUP",RELIGIOUS_GROUP:"RELIGIOUS_GROUP",ONLINE_GAMING:"ONLINE_GAMING",WALLETS:"WALLETS",PAYMENTS_PROVIDER:"PAYMENTS_PROVIDER",REMITTANCES:"REMITTANCES",PLATFORMS_AND_MARKETPLACES:"PLATFORMS_AND_MARKETPLACES",CRYPTO:"CRYPTO",CANNABIS:"CANNABIS",DIRECT_MARKETING:"DIRECT_MARKETING",DATING_AND_ESCORT_SERVICES:"DATING_AND_ESCORT_SERVICES",DIRECT_TRAVEL_MARKETING:"DIRECT_TRAVEL_MARKETING",TOBACCO_CIGARS_VAPES:"TOBACCO_CIGARS_VAPES",SECURITY_BROKERS:"SECURITY_BROKERS",GAMBLING_AND_BETTING:"GAMBLING_AND_BETTING",VIDEO_GAME_SALES:"VIDEO_GAME_SALES",PAYMENT_FACILITATOR:"PAYMENT_FACILITATOR",PAYMENT_GATEWAY_SOFTWARE:"PAYMENT_GATEWAY_SOFTWARE",CBD_AND_HEMP_PRODUCTS:"CBD_AND_HEMP_PRODUCTS",CANNABIS_ACCESSORIES:"CANNABIS_ACCESSORIES",DIRECT_MARKETING_CATALOG:"DIRECT_MARKETING_CATALOG",DIRECT_MARKETING_SUBSCRIPTION:"DIRECT_MARKETING_SUBSCRIPTION",DIRECT_MARKETING_TELEMARKETING:"DIRECT_MARKETING_TELEMARKETING",DIRECT_MARKETING_OTHER:"DIRECT_MARKETING_OTHER"},t.LegalEntity=t.$Enums.LegalEntity={SOLE_PROPRIETORSHIP:"SOLE_PROPRIETORSHIP",PERSONAL_LIABILITY:"PERSONAL_LIABILITY",PARTNERSHIP:"PARTNERSHIP",NON_PROFIT_COMPANY:"NON_PROFIT_COMPANY",CLOSE_CORPORATION:"CLOSE_CORPORATION",PRIVATE_COMPANY:"PRIVATE_COMPANY",UNKNOWN:"UNKNOWN"},t.Revenue=t.$Enums.Revenue={OVER_5M:"OVER_5M",BETWEEN_1M_AND_5M:"BETWEEN_1M_AND_5M",BETWEEN_500k_AND_1M:"BETWEEN_500k_AND_1M",BETWEEN_100k_AND_500k:"BETWEEN_100k_AND_500k",BETWEEN_20k_AND_100k:"BETWEEN_20k_AND_100k",LESS_20K:"LESS_20K",LESS_100K:"LESS_100K",UNKNOWN:"UNKNOWN"},t.KycbStatus=t.$Enums.KycbStatus={PENDING:"PENDING",AWAITING_REVIEW:"AWAITING_REVIEW",PASSED:"PASSED",FAILED:"FAILED"},t.MerchantVerificationProvider=t.$Enums.MerchantVerificationProvider={KYCDD:"KYCDD",STITCH:"STITCH"},t.IndustryCheckStatus=t.$Enums.IndustryCheckStatus={PENDING:"PENDING",PASSED:"PASSED",FAILED:"FAILED"},t.BusinessLegitimacyStatus=t.$Enums.BusinessLegitimacyStatus={PENDING:"PENDING",PASSED:"PASSED",FAILED:"FAILED"},t.CapitecApprovalStatus=t.$Enums.CapitecApprovalStatus={NOT_REQUESTED:"NOT_REQUESTED",APPROVED:"APPROVED",REQUESTED:"REQUESTED",NOMINATED:"NOMINATED"},t.PaymentAcceptanceMode=t.$Enums.PaymentAcceptanceMode={ONLINE:"ONLINE",IN_PERSON:"IN_PERSON",ONLINE_AND_IN_PERSON:"ONLINE_AND_IN_PERSON"}
456,t.SalesChannel=t.$Enums.SalesChannel={AGENCY:"AGENCY",DIRECT:"DIRECT",EMAIL_AUTO:"EMAIL_AUTO",EVENT:"EVENT",INBOUND:"INBOUND",OFFBOARDED:"OFFBOARDED",REFERRALS:"REFERRALS",STITCH_INBOUND:"STITCH_INBOUND",SUPPLIER:"SUPPLIER",OUTBOUND_DIRECT:"OUTBOUND_DIRECT",INBOUND_CONTACT:"INBOUND_CONTACT",INBOUND_SELFSERVE:"INBOUND_SELFSERVE",AGENCY_SALESPERSON:"AGENCY_SALESPERSON",AGENCY_SELFSERVE:"AGENCY_SELFSERVE",REFERRAL_SALESPERSON:"REFERRAL_SALESPERSON",REFERRAL_SELFSERVE:"REFERRAL_SELFSERVE"},t.ShopifyAppType=t.$Enums.ShopifyAppType={EXPRESS:"EXPRESS",PAY_WITH_STITCH:"PAY_WITH_STITCH"},t.SalesReportFrequency=t.$Enums.SalesReportFrequency={DAILY:"DAILY",WEEKLY:"WEEKLY",MONTHLY:"MONTHLY"},t.StaffRole=t.$Enums.StaffRole={staff_superuser:"staff_superuser",staff_admin:"staff_admin",staff_support:"staff_support",staff_member:"staff_member"},t.MerchantUrlType=t.$Enums.MerchantUrlType={WEBSITE:"WEBSITE",APPLE_APP_STORE:"APPLE_APP_STORE",GOOGLE_APP_STORE:"GOOGLE_APP_STORE",FACEBOOK:"FACEBOOK",INSTAGRAM:"INSTAGRAM",SHOPIFY:"SHOPIFY",WOOCOMMERCE:"WOOCOMMERCE",TIKTOK:"TIKTOK",SQUARESPACE:"SQUARESPACE",WEBFLOW:"WEBFLOW",API:"API"},t.PaymentLinkStatus=t.$Enums.PaymentLinkStatus={PENDING:"PENDING",PROCESSING:"PROCESSING",PAID:"PAID",EXPIRED:"EXPIRED",CANCELLED:"CANCELLED",FAILED:"FAILED"},t.PaymentLinkSource=t.$Enums.PaymentLinkSource={API:"API",CHECKOUT:"CHECKOUT",WOOCOMMERCE:"WOOCOMMERCE",FOXY:"FOXY",ASSISTANT:"ASSISTANT",SHOPIFY:"SHOPIFY",SHOPIFY_POS:"SHOPIFY_POS",SHOPIFY_PAY_WITH_STITCH:"SHOPIFY_PAY_WITH_STITCH"},t.PaymentMethod=t.$Enums.PaymentMethod={CARD:"CARD",MANUAL_EFT:"MANUAL_EFT",APPLE_PAY:"APPLE_PAY",GOOGLE_PAY:"GOOGLE_PAY",CAPITEC:"CAPITEC",BNPL:"BNPL",CARD_PRESENT:"CARD_PRESENT"},t.Providers=t.$Enums.Providers={STITCH:"STITCH",HAPPY_PAY:"HAPPY_PAY"},t.BankId=t.$Enums.BankId={ABSA:"ABSA",AFRICAN_BANK:"AFRICAN_BANK",CAPITEC:"CAPITEC",FNB:"FNB",NEDBANK:"NEDBANK",STANDARD_BANK:"STANDARD_BANK",TYMEBANK:"TYMEBANK",INVESTEC:"INVESTEC",MERCANTILE:"MERCANTILE",CAPITEC_BUSINESS:"CAPITEC_BUSINESS",ACCESS_BANK:"ACCESS_BANK",DISCOVERY_BANK:"DISCOVERY_BANK",BANK_ZERO:"BANK_ZERO",BIDVEST:"BIDVEST",SASFIN:"SASFIN",AL_BARAKA_BANK:"AL_BARAKA_BANK",GRINDROD_BANK:"GRINDROD_BANK",STANDARD_CHARTERED_BANK:"STANDARD_CHARTERED_BANK"},t.CardConsentStatus=t.$Enums.CardConsentStatus={PENDING:"PENDING",CONSENTED:"CONSENTED"},t.SubscriptionStatus=t.$Enums.SubscriptionStatus={EXPIRED:"EXPIRED",AUTHORISED:"AUTHORISED",FAILED:"FAILED",UNAUTHORISED:"UNAUTHORISED",CANCELLED:"CANCELLED",FAILED_AND_WILL_RETRY:"FAILED_AND_WILL_RETRY",PAUSED:"PAUSED"},t.SubscriptionSourcePlatform=t.$Enums.SubscriptionSourcePlatform={SHOPIFY:"SHOPIFY"},t.SubscriptionScheduler=t.$Enums.SubscriptionScheduler={WIGWAG:"WIGWAG",SHOPIFY_V2:"SHOPIFY_V2"},t.SubscriptionCollectionState=t.$Enums.SubscriptionCollectionState={PENDING:"PENDING",SUCCEEDED:"SUCCEEDED",FAILED:"FAILED"},t.SubscriptionCollectionFailureKind=t.$Enums.SubscriptionCollectionFailureKind={RETRYABLE:"RETRYABLE",TERMINAL:"TERMINAL"},t.PayerCardCountry=t.$Enums.PayerCardCountry={ZAF:"ZAF",OTHER:"OTHER"},t.CardType=t.$Enums.CardType={PREPAID:"PREPAID",CREDIT:"CREDIT",DEBIT:"DEBIT"},t.PaymentStatus=t.$Enums.PaymentStatus={PAID:"PAID",SETTLED:"SETTLED"},t.PaymentType=t.$Enums.PaymentType={SUBSCRIPTION:"SUBSCRIPTION",CONSENT:"CONSENT",LINK:"LINK",TERMINAL:"TERMINAL"},t.MerchantJourneyEventSource=t.$Enums.MerchantJourneyEventSource={CLIENT:"CLIENT",SERVER:"SERVER"},t.AuditLogEvent=t.$Enums.AuditLogEvent={LOGIN:"LOGIN",LOGOUT:"LOGOUT",CREATE:"CREATE",READ:"READ",UPDATE:"UPDATE",DELETE:"DELETE"},t.ReferralStatus=t.$Enums.ReferralStatus={SIGNED_UP:"SIGNED_UP",VERIFIED:"VERIFIED",COMPLETE:"COMPLETE"},t.RewardStatus=t.$Enums.RewardStatus={pending:"pending",approved:"approved",rejected:"rejected",expired:"expired",disbursed:"disbursed"},t.ReferrerType=t.$Enums.ReferrerType={INFLUENCER:"INFLUENCER",AGENCY:"AGENCY",MERCHANT:"MERCHANT",PARTNER:"PARTNER"},t.AttributionCaptureMethod=t.$Enums.AttributionCaptureMethod={SIGNUP_PARAM:"SIGNUP_PARAM",COOKIE:"COOKIE"},t.AnnouncementVariant=t.$Enums.AnnouncementVariant={INFO:"INFO"},t.FeeType=t.$Enums.FeeType={PAYMENT_LINKS:"PAYMENT_LINKS",DISBURSEMENT:"DISBURSEMENT",WITHDRAWAL:"WITHDRAWAL",TERMINAL_SERVICES:"TERMINAL_SERVICES",VOLUME_PRICING_TRUE_UP:"VOLUME_PRICING_TRUE_UP"},t.VerificationStepStatus=t.$Enums.VerificationStepStatus={PENDING:"PENDING",FAILED:"FAILED",PASSED:"PASSED",COMPLETED:"COMPLETED",AWAITING_REVIEW:"AWAITING_REVIEW",AWAITING_DOCS:"AWAITING_DOCS"},t.IdentifierType=t.$Enums.IdentifierType={COMPANY_REGISTRATION_NUMBER:"COMPANY_REGISTRATION_NUMBER",SA_ID_NUMBER:"SA_ID_NUMBER",BANK_ACCOUNT_NUMBER:"BANK_ACCOUNT_NUMBER"},t.DormancyStatus=t.$Enums.DormancyStatus={WARNED:"WARNED",BLOCKED:"BLOCKED",EXEMPT:"EXEMPT"},t.BlockReason=t.$Enums.BlockReason={FRAUD:"FRAUD",OTHER:"OTHER",DORMANT:"DORMANT"},t.UserIdentifierType=t.$Enums.UserIdentifierType={FINGERPRINT:"FINGERPRINT",DEVICE_ID:"DEVICE_ID"}
456,t.Country=t.$Enums.Country={ZA:"ZA",NG:"NG"},t.TransactionType=t.$Enums.TransactionType={DEBIT:"DEBIT",CREDIT:"CREDIT"},t.SettlementType=t.$Enums.SettlementType={DEFAULT:"DEFAULT",SALES_LINKED:"SALES_LINKED"},t.PaymentLinkEventType=t.$Enums.PaymentLinkEventType={IncorrectLoginCredentials:"IncorrectLoginCredentials",LoginMultifactorFailed:"LoginMultifactorFailed",LoginMultifactorTimeout:"LoginMultifactorTimeout",PaymentMultifactorFailed:"PaymentMultifactorFailed",PaymentMultifactorTimeout:"PaymentMultifactorTimeout",BeneficiaryMultifactorFailed:"BeneficiaryMultifactorFailed",BeneficiaryMultifactorTimeout:"BeneficiaryMultifactorTimeout",InsufficientFundsForPayment:"InsufficientFundsForPayment",DuplicatePayment:"DuplicatePayment",InvalidSourceAccount:"InvalidSourceAccount",InvalidDestinationAccount:"InvalidDestinationAccount",PaymentLimitsExceeded:"PaymentLimitsExceeded",PaymentMinimumNotMet:"PaymentMinimumNotMet",BankTimeout:"BankTimeout",BankUnavailable:"BankUnavailable",BankError:"BankError",AccountBlockedByBank:"AccountBlockedByBank",PaymentDeclinedByBank:"PaymentDeclinedByBank",CardMethodSelected:"CardMethodSelected",SavedCardSelected:"SavedCardSelected",NewCardCreated:"NewCardCreated",Secure3dInitiated:"Secure3dInitiated",Secure3dCompleted:"Secure3dCompleted",CryptoUserDeclaredPaid:"CryptoUserDeclaredPaid",PaymentRequestBlocked:"PaymentRequestBlocked",CryptoWalletBlocked:"CryptoWalletBlocked",UnkownPaymentError:"UnkownPaymentError",PaymentFailed:"PaymentFailed",PaymentSucceeded:"PaymentSucceeded",UnknownEvent:"UnknownEvent"},t.PaymentProfileMethod=t.$Enums.PaymentProfileMethod={CARD:"CARD",MANUAL_EFT:"MANUAL_EFT",WALLET:"WALLET",BNPL:"BNPL",CAPITEC:"CAPITEC"},t.CardPresentPlatform=t.$Enums.CardPresentPlatform={SHOPIFY:"SHOPIFY",DIRECT:"DIRECT"},t.RefundStatus=t.$Enums.RefundStatus={FAILED:"FAILED",PROCESSED:"PROCESSED",PENDING:"PENDING"},t.WithdrawalStatus=t.$Enums.WithdrawalStatus={PENDING:"PENDING",PROCESSED:"PROCESSED",FAILED:"FAILED"},t.WithdrawalType=t.$Enums.WithdrawalType={DEFAULT:"DEFAULT",INSTANT:"INSTANT"},t.MemberRole=t.$Enums.MemberRole={owner:"owner",admin:"admin",member:"member"},t.InvitationStatus=t.$Enums.InvitationStatus={accepted:"accepted",canceled:"canceled",pending:"pending",rejected:"rejected",expired:"expired"},t.TandCAction=t.$Enums.TandCAction={ACCEPTED:"ACCEPTED",ACCEPTED_AT_SIGNUP:"ACCEPTED_AT_SIGNUP",RESET:"RESET"},t.TandCType=t.$Enums.TandCType={GENERAL:"GENERAL",ACQUIRING:"ACQUIRING"},t.TerminalStatus=t.$Enums.TerminalStatus={ACTIVE:"ACTIVE",SUSPENDED:"SUSPENDED",UNALLOCATED:"UNALLOCATED"},t.TerminalSessionStatus=t.$Enums.TerminalSessionStatus={PENDING:"PENDING",SUCCESS:"SUCCESS",FAILURE:"FAILURE"},t.TerminalSessionSource=t.$Enums.TerminalSessionSource={SHOPIFY_POS:"SHOPIFY_POS",DIRECT:"DIRECT"},t.StoreStatus=t.$Enums.StoreStatus={ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},t.Prisma.ModelName={Client:"Client",MerchantPaymentMethods:"MerchantPaymentMethods",ClientSecret:"ClientSecret",Merchant:"Merchant",ApiIntegrationReviewRequest:"ApiIntegrationReviewRequest",ShopifyAppInstallation:"ShopifyAppInstallation",PaymentPage:"PaymentPage",MerchantMarketingFlags:"MerchantMarketingFlags",EmailSettings:"EmailSettings",User:"User",MerchantUrl:"MerchantUrl",PaymentLink:"PaymentLink",PaymentConfirmation:"PaymentConfirmation",DeliveryDetail:"DeliveryDetail",BankDetails:"BankDetails",CardConsent:"CardConsent",PayerBankDetails:"PayerBankDetails",SubscriptionRequestAttempt:"SubscriptionRequestAttempt",ShopifySubscriptionConsent:"ShopifySubscriptionConsent",ShopifySubscriptionPaymentAttempt:"ShopifySubscriptionPaymentAttempt",Subscription:"Subscription",ShopifySubscriptionCollection:"ShopifySubscriptionCollection",SubscriptionPaymentAllocation:"SubscriptionPaymentAllocation",CardDetail:"CardDetail",Payment:"Payment",PaymentRequestAttempt:"PaymentRequestAttempt",CheckoutEvent:"CheckoutEvent",MerchantJourneyEvent:"MerchantJourneyEvent",AuditLog:"AuditLog",ReferralCode:"ReferralCode",Referral:"Referral",Reward:"Reward",Referrer:"Referrer",AttributionLink:"AttributionLink",SignupAttribution:"SignupAttribution",Announcement:"Announcement",AnnouncementDism
456issal:"AnnouncementDismissal",Fee:"Fee",Statement:"Statement",MerchantGroup:"MerchantGroup",MerchantGroupMember:"MerchantGroupMember",VolumePricingSchedule:"VolumePricingSchedule",VolumePricingTrueUp:"VolumePricingTrueUp",MerchantVerificationRequest:"MerchantVerificationRequest",MerchantVerificationEvent:"MerchantVerificationEvent",MerchantIdentifier:"MerchantIdentifier",MerchantDormancy:"MerchantDormancy",BlockedMerchant:"BlockedMerchant",UserIdentifier:"UserIdentifier",Address:"Address",Transaction:"Transaction",Settlement:"Settlement",RedirectUrl:"RedirectUrl",PaymentLinkEvent:"PaymentLinkEvent",CustomBillingProfile:"CustomBillingProfile",SubscriptionCardBillingProfile:"SubscriptionCardBillingProfile",CardPresentBillingProfile:"CardPresentBillingProfile",Refund:"Refund",TransactionDetail:"TransactionDetail",Withdrawal:"Withdrawal",BinInfo:"BinInfo",WithdrawalConfig:"WithdrawalConfig",BalanceAdjustment:"BalanceAdjustment",Session:"Session",Account:"Account",Verification:"Verification",MerchantSalesAttribution:"MerchantSalesAttribution",MerchantUpsell:"MerchantUpsell",Passkey:"Passkey",Member:"Member",Invitation:"Invitation",BlockedVisitors:"BlockedVisitors",ShopifyRefundDetails:"ShopifyRefundDetails",TermsAndConditionsAcceptance:"TermsAndConditionsAcceptance",TermsAndConditionsAcceptanceHistory:"TermsAndConditionsAcceptanceHistory",Terminal:"Terminal",TerminalSession:"TerminalSession",Store:"Store",StitchMerchant:"StitchMerchant"};class u{constructor(){return new Proxy(this,{get(e,t){let n=s();throw Error((n.isEdge?`PrismaClient is not configured to run in ${n.prettyName}. In order to run Prisma Client on edge runtime, either:
457- Use Prisma Accelerate: https://pris.ly/d/accelerate
458- Use Driver Adapters: https://pris.ly/d/driver-adapters
459`:"PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `"+n.prettyName+"`).")+`
460If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`)}})}}t.PrismaClient=u,Object.assign(t,c)},81811:function(e){"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},o={};a(o,{Decimal:()=>e9,Public:()=>s,getRuntime:()=>I,makeStrictEnum:()=>b,objectEnumValues:()=>g}),e.exports=((e,a,o,s)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let l of r(a))i.call(e,l)||l===o||t(e,l,{get:()=>a[l],enumerable:!(s=n(a,l))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var s={};function l(...e){return e=>e}a(s,{validator:()=>l});var c=Symbol(),u=new WeakMap,d=class{constructor(e){e===c?u.set(this,"Prisma.".concat(this._getName())):u.set(this,"new Prisma.".concat(this._getNamespace(),".").concat(this._getName(),"()"))}_getName(){return this.constructor.name}toString(){return u.get(this)}},p=class extends d{_getNamespace(){return"NullTypes"}},f=class extends p{};y(f,"DbNull");var h=class extends p{};y(h,"JsonNull");var m=class extends p{};y(m,"AnyNull");var g={classes:{DbNull:f,JsonNull:h,AnyNull:m},instances:{DbNull:new f(c),JsonNull:new h(c),AnyNull:new m(c)}};function y(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}var v=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function b(e){return new Proxy(e,{get(e,t){if(t in e)return e[t];if(!v.has(t))throw TypeError("Invalid enum value: ".concat(String(t)))}})}var w=()=>{var e,t;return(null==(t=null==(e=globalThis.process)?void 0:e.release)?void 0:t.name)==="node"},_=()=>{var e,t;return!!globalThis.Bun||!!(null!=(t=null==(e=globalThis.process)?void 0:e.versions)&&t.bun)},x=()=>!!globalThis.Deno,E=()=>"object"==typeof globalThis.Netlify,S=()=>"object"==typeof globalThis.EdgeRuntime,k=()=>{var e;return(null==(e=globalThis.navigator)?void 0:e.userAgent)==="Cloudflare-Workers"},C={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function I(){var e;let t=null!=(e=[[E,"netlify"],[S,"edge-light"],[k,"workerd"],[x,"deno"],[_,"bun"],[w,"node"]].flatMap(e=>e[0]()?[e[1]]:[]).at(0))?e:"";return{id:t,prettyName:C[t]||t,isEdge:["workerd","deno","netlify","edge-light"].includes(t)}}
460var A,T,R="0123456789abcdef",N="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",O="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",P={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},D=!0,M="[DecimalError] ",$=M+"Invalid argument: ",j=M+"Precision limit exceeded",L=M+"crypto unavailable",F="[object Decimal]",B=Math.floor,U=Math.pow,z=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Z=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,V=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,q=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,W=N.length-1,G=O.length-1,H={toStringTag:F};function Y(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(a+=eo(n)),a+=r;(n=7-(r=(o=e[t])+"").length)&&(a+=eo(n))}else if(0===o)return"0";for(;o%10==0;)o/=10;return a+o}function K(e,t,n){if(e!==~~e||e<t||e>n)throw Error($+e)}function J(e,t,n,r){var i,a,o,s;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),a=U(10,7-t),s=e[i]%a|0,null==r?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),o=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):o=(n<4&&s+1==a||n>3&&s+1==a/2)&&(e[i+1]/a/100|0)==U(10,t-2)-1||(s==a/2||0==s)&&(e[i+1]/a/100|0)==0:t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),o=(r||n<4)&&9999==s||!r&&n>3&&4999==s):o=((r||n<4)&&s+1==a||!r&&n>3&&s+1==a/2)&&(e[i+1]/a/1e3|0)==U(10,t-3)-1,o}function X(e,t,n){for(var r,i,a=[0],o=0,s=e.length;o<s;){for(i=a.length;i--;)a[i]*=t;for(a[0]+=R.indexOf(e.charAt(o++)),r=0;r<a.length;r++)a[r]>n-1&&(void 0===a[r+1]&&(a[r+1]=0),a[r+1]+=a[r]/n|0,a[r]%=n)}return a.reverse()}H.absoluteValue=H.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),ee(e)},H.ceil=function(){return ee(new this.constructor(this),this.e+1,2)},H.clampedTo=H.clamp=function(e,t){var n=this.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error($+t);return 0>this.cmp(e)?e:this.cmp(t)>0?t:new n(this)},H.comparedTo=H.cmp=function(e){var t,n,r,i,a=this.d,o=(e=new this.constructor(e)).d,s=this.s,l=e.s;if(!a||!o)return s&&l?s!==l?s:a===o?0:!a^s<0?1:-1:NaN;if(!a[0]||!o[0])return a[0]?s:o[0]?-l:0;if(s!==l)return s;if(this.e!==e.e)return this.e>e.e^s<0?1:-1;for(r=a.length,i=o.length,t=0,n=r<i?r:i;t<n;++t)if(a[t]!==o[t])return a[t]>o[t]^s<0?1:-1;return r===i?0:r>i^s<0?1:-1},H.cosine=H.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r,i;if(t.isZero())return t;(r=t.d.length)<32?i=(1/em(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10"),e.precision+=n,t=eh(e,1,t.times(i),new e(1));for(var a=n;a--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=n,t}(r,eg(r,n)),r.precision=e,r.rounding=t,ee(2==T||3==T?n.neg():n,e,t,!0)):new r(1):new r(NaN)},H.cubeRoot=H.cbrt=function(){var e,t,n,r,i,a,o,s,l,c,u=this.constructor;if(!this.isFinite()||this.isZero())return new u(this);for(D=!1,(a=this.s*U(this.s*this,1/3))&&Math.abs(a)!=1/0?r=new u(a.toString()):(n=Y(this.d),(a=((e=this.e)-n.length+1)%3)&&(n+=1==a||-2==a?"0":"00"),a=U(n,1/3),e=B((e+1)/3)-(e%3==(e<0?-1:2)),(r=new u(n=a==1/0?"5e"+e:(n=a.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=this.s),o=(e=u.precision)+3;;)if(r=Q((c=(l=(s=r).times(s).times(s)).plus(this)).plus(this).times(s),c.plus(l),o+2,1),Y(s.d).slice(0,o)===(n=Y(r.d)).slice(0,o)){if
460("9999"!=(n=n.slice(o-3,o+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(ee(r,e+1,1),t=!r.times(r).times(r).eq(this));break}if(!i&&(ee(s,e+1,0),s.times(s).times(s).eq(this))){r=s;break}o+=4,i=1}return D=!0,ee(r,e,u.rounding,t)},H.decimalPlaces=H.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=((e=t.length-1)-B(this.e/7))*7,e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},H.dividedBy=H.div=function(e){return Q(this,new this.constructor(e))},H.dividedToIntegerBy=H.divToInt=function(e){var t=this.constructor;return ee(Q(this,new t(e),0,1,1),t.precision,t.rounding)},H.equals=H.eq=function(e){return 0===this.cmp(e)},H.floor=function(){return ee(new this.constructor(this),this.e+1,3)},H.greaterThan=H.gt=function(e){return this.cmp(e)>0},H.greaterThanOrEqualTo=H.gte=function(e){var t=this.cmp(e);return 1==t||0===t},H.hyperbolicCosine=H.cosh=function(){var e,t,n,r,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;n=o.precision,r=o.rounding,o.precision=n+Math.max(a.e,a.sd())+4,o.rounding=1,(i=a.d.length)<32?t=(1/em(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),a=eh(o,1,a.times(t),new o(1),!0);for(var l,c=e,u=new o(8);c--;)l=a.times(a),a=s.minus(l.times(u.minus(l.times(u))));return ee(a,o.precision=n,o.rounding=r,!0)},H.hyperbolicSine=H.sinh=function(){var e,t,n,r,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,n=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,(r=i.d.length)<3)i=eh(a,2,i,i,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,i=eh(a,2,i=i.times(1/em(5,e)),i,!0);for(var o,s=new a(5),l=new a(16),c=new a(20);e--;)o=i.times(i),i=i.times(s.plus(o.times(l.times(o).plus(c))))}return a.precision=t,a.rounding=n,ee(i,t,n,!0)},H.hyperbolicTangent=H.tanh=function(){var e,t,n=this.constructor;return this.isFinite()?this.isZero()?new n(this):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,Q(this.sinh(),this.cosh(),n.precision=e,n.rounding=t)):new n(this.s)},H.inverseCosine=H.acos=function(){var e=this,t=e.constructor,n=e.abs().cmp(1),r=t.precision,i=t.rounding;return -1!==n?0===n?e.isNeg()?ei(t,r,i):new t(0):new t(NaN):e.isZero()?ei(t,r+4,i).times(.5):(t.precision=r+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=r,t.rounding=i,e.times(2))},H.inverseHyperbolicCosine=H.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,D=!1,n=n.times(n).minus(1).sqrt().plus(n),D=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},H.inverseHyperbolicSine=H.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,D=!1,n=n.times(n).plus(1).sqrt().plus(n),D=!0,r.precision=e,r.rounding=t,n.ln())},H.inverseHyperbolicTangent=H.atanh=function(){var e,t,n,r,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,Math.max(r=i.sd(),e)<-(2*i.e)-1?ee(new a(i),e,t,!0):(a.precision=n=r-i.e,i=Q(i.plus(1),new a(1).minus(i),n+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5))):new a(NaN)},H.inverseSine=H.asin=function(){var e,t,n,r,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),n=a.precision,r=a.rounding,-1!==t?0===t?((e=ei(a,n+4,r).times(.5)).s=i.s,e):new a(NaN):(a.precision=n+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=n,a.rounding=r,i.times(2)))},H.inverseTangent=H.atan=function(){var e,t,n,r,i,a,o,s,l,c=this,u=c.constructor,d=u.precision,p=u.rounding;if(c.isFinite()){if(c.isZero())return new u(c);if(c.abs().eq(1)&&d+4<=G)return(o=ei(u,d+4,p).times(.25)).s=c.s,o}else{if(!c.s)return new u(NaN);if(d+4<=G)return(o=ei(u,d+4,p).times(.5)).s=c.s,o}for(u.precision=s=d+10,u.rounding=1,e=n=Math.min(28,s/7+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(D=!1,t=Math.ceil(s/7),r=1,l=c.times(c),o=new u(c),i=c;-1!==e;)if(i=i.times(l),a=o.minus(i.div(r+=2)),i=i.times(l),void 0!==(o=a.plus(i.div(r+=2))).d[t])for(e=t;o.d[e]===a.d[e]&&e--;);return n&&(o=o.times(2<<n-1)),D=!0,ee(o,u.precision=d,u.rounding=p,!0)},H.isFinite=function(){return!!this.d},H.isInteger=H.isInt=function(){return!!this.d&&B(this.e/7)>this.d.length-2},H.isNaN=function(){return!this.s},H.isNegative=H.isNeg=function(){return this.s<0},H.isPositive=H.isPos=function(){return this.s>0},H.isZero=function(){return!!this.d&&0===this.d[0]},H.lessThan=H.lt=function(e){return 0>this.cmp(e)},H.lessThanOrEqualTo=H.lte=function(e){return 1>this.cmp(e)},H.logarithm=H.log=function(e){var t,n,r,i,a,o,s,l=this.constructor,c=l.precision,u=l.rounding;if(null==e)e=new l(10),t=!0;else{if(n=(e=new l(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new l(NaN);t=e.eq(10)}if(n=this.d,this.s<0||!n||!n[0]||this.eq(1))return new l(n&&!n[0]?-1/0:1!=this.s?NaN:n?0:1/0);if(t){if(n.length>1)i=!0;else{for(r=n[0];r%10==0;)r/=10;i=1!==r}}if(D=!1,J((s=Q(ed(this,o=c+5),t?er(l,o+10):ed(e,o),o,1)).d,r=c,u))do if(o+=10,s=Q(ed(this,o),t?er(l,o+10):ed(e,o),o,1),!i){+Y(s.d).slice(r+1,r+15)+1==1e14&&(s=ee(s,c+1,0));break}while(J(s.d,r+=10,u));return D=!0,ee(s,c,u)},H.minus=H.sub=function(e){var t,n,r,i,a,o,s,l,c,u,d,p,f=this.constructor;if(e=new f(e),!this.d||!e.d)return this.s&&e.s?this.d?e.s=-e.s:e=new f(e.d||this.s!==e.s?this:NaN):e=new f(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.plus(e);
460if(c=this.d,p=e.d,s=f.precision,l=f.rounding,!c[0]||!p[0]){if(p[0])e.s=-e.s;else{if(!c[0])return new f(3===l?-0:0);e=new f(this)}return D?ee(e,s,l):e}if(n=B(e.e/7),u=B(this.e/7),c=c.slice(),a=u-n){for((d=a<0)?(t=c,a=-a,o=p.length):(t=p,n=u,o=c.length),a>(r=Math.max(Math.ceil(s/7),o)+2)&&(a=r,t.length=1),t.reverse(),r=a;r--;)t.push(0);t.reverse()}else{for((d=(r=c.length)<(o=p.length))&&(o=r),r=0;r<o;r++)if(c[r]!=p[r]){d=c[r]<p[r];break}a=0}for(d&&(t=c,c=p,p=t,e.s=-e.s),o=c.length,r=p.length-o;r>0;--r)c[o++]=0;for(r=p.length;r>a;){if(c[--r]<p[r]){for(i=r;i&&0===c[--i];)c[i]=1e7-1;--c[i],c[r]+=1e7}c[r]-=p[r]}for(;0===c[--o];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(e.d=c,e.e=en(c,n),D?ee(e,s,l):e):new f(3===l?-0:0)},H.modulo=H.mod=function(e){var t,n=this.constructor;return e=new n(e),this.d&&e.s&&(!e.d||e.d[0])?e.d&&(!this.d||this.d[0])?(D=!1,9==n.modulo?(t=Q(this,e.abs(),0,3,1),t.s*=e.s):t=Q(this,e,0,n.modulo,1),t=t.times(e),D=!0,this.minus(t)):ee(new n(this),n.precision,n.rounding):new n(NaN)},H.naturalExponential=H.exp=function(){return eu(this)},H.naturalLogarithm=H.ln=function(){return ed(this)},H.negated=H.neg=function(){var e=new this.constructor(this);return e.s=-e.s,ee(e)},H.plus=H.add=function(e){var t,n,r,i,a,o,s,l,c,u,d=this.constructor;if(e=new d(e),!this.d||!e.d)return this.s&&e.s?this.d||(e=new d(e.d||this.s===e.s?this:NaN)):e=new d(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.minus(e);if(c=this.d,u=e.d,s=d.precision,l=d.rounding,!c[0]||!u[0])return u[0]||(e=new d(this)),D?ee(e,s,l):e;if(a=B(this.e/7),r=B(e.e/7),c=c.slice(),i=a-r){for(i<0?(n=c,i=-i,o=u.length):(n=u,r=a,o=c.length),i>(o=(a=Math.ceil(s/7))>o?a+1:o+1)&&(i=o,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((o=c.length)-(i=u.length)<0&&(i=o,n=u,u=c,c=n),t=0;i;)t=(c[--i]=c[i]+u[i]+t)/1e7|0,c[i]%=1e7;for(t&&(c.unshift(t),++r),o=c.length;0==c[--o];)c.pop();return e.d=c,e.e=en(c,r),D?ee(e,s,l):e},H.precision=H.sd=function(e){var t;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error($+e);return this.d?(t=ea(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},H.round=function(){var e=this.constructor;return ee(new e(this),this.e+1,e.rounding)},H.sine=H.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:eh(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=eh(e,2,t=t.times(1/em(5,n)),t);for(var i,a=new e(5),o=new e(16),s=new e(20);n--;)i=t.times(t),t=t.times(a.plus(i.times(o.times(i).minus(s))));return t}(r,eg(r,n)),r.precision=e,r.rounding=t,ee(T>2?n.neg():n,e,t,!0)):new r(NaN)},H.squareRoot=H.sqrt=function(){var e,t,n,r,i,a,o=this.d,s=this.e,l=this.s,c=this.constructor;if(1!==l||!o||!o[0])return new c(!l||l<0&&(!o||o[0])?NaN:o?this:1/0);for(D=!1,0==(l=Math.sqrt(+this))||l==1/0?(((t=Y(o)).length+s)%2==0&&(t+="0"),l=Math.sqrt(t),s=B((s+1)/2)-(s<0||s%2),r=new c(t=l==1/0?"5e"+s:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new c(l.toString()),n=(s=c.precision)+3;;)if(r=(a=r).plus(Q(this,a,n+2,1)).times(.5),Y(a.d).slice(0,n)===(t=Y(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(ee(r,s+1,1),e=!r.times(r).eq(this));break}if(!i&&(ee(a,s+1,0),a.times(a).eq(this))){r=a;break}n+=4,i=1}return D=!0,ee(r,s,c.rounding,e)},H.tangent=H.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=Q(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,ee(2==T||4==T?n.neg():n,e,t,!0)):new r(NaN)},H.times=H.mul=function(e){var t,n,r,i,a,o,s,l,c,u=this.constructor,d=this.d,p=(e=new u(e)).d;if(e.s*=this.s,!d||!d[0]||!p||!p[0])return new u(e.s&&(!d||d[0]||p)&&(!p||p[0]||d)?d&&p?0*e.s:e.s/0:NaN);for(n=B(this.e/7)+B(e.e/7),(l=d.length)<(c=p.length)&&(a=d,d=p,p=a,o=l,l=c,c=o),a=[],r=o=l+c;r--;)a.push(0);for(r=c;--r>=0;){for(t=0,i=l+r;i>r;)s=a[i]+p[r]*d[i-r-1]+t,a[i--]=s%1e7|0,t=s/1e7|0;a[i]=(a[i]+t)%1e7|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=en(a,n),D?ee(e,u.precision,u.rounding):e},H.toBinary=function(e,t){return ey(this,2,e,t)},H.toDecimalPlaces=H.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(K(e,0,1e9),void 0===t?t=r.rounding:K(t,0,8),ee(n,e+n.e+1,t))},H.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=et(r,!0):(K(e,0,1e9),void 0===t?t=i.rounding:K(t,0,8),n=et(r=ee(new i(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},H.toFixed=function(e,t){var n,r,i=this.constructor;return void 0===e?n=et(this):(K(e,0,1e9),void 0===t?t=i.rounding:K(t,0,8),n=et(r=ee(new i(this),e+this.e+1,t),!1,e+r.e+1)),this.isNeg()&&!this.isZero()?"-"+n:n},H.toFraction=function(e){var t,n,r,i,a,o,s,l,c,u,d,p,f=this.d,h=this.constructor;if(!f)return new h(this);if(c=n=new h(1),r=l=new h(0),o=(a=(t=new h(r)).e=ea(f)-this.e-1)%7,t.d[0]=U(10,o<0?7+o:o),null==e)e=a>0?t:c;else{if(!(s=new h(e)).isInt()||s.lt(c))throw Error($+s);e=s.gt(t)?a>0?t:c:s}for(D=!1,s=new h(Y(f)),u=h.precision,h.precision=a=14*f.length;d=Q(s,t,0,1,1),1!=(i=n.plus(d.times(r))).cmp(e);)n=r,r=i,i=c,c=l.plus(d.times(i)),l=i,i=t,t=s.minus(d.times(i)),s=i;return i=Q(e.minus(n),r,0,1,1),l=l.plus(i.times(c)),n=n.plus(i.times(r)),l.s=c.s=this.s,p=1>Q(c,r,a,1).minus(this).abs().cmp(Q(l,n,a,1).minus(this).abs())?[c,r]:[l,n],h.precision=u,D=!0,p},H.toHexadecimal=H.toHex=function(e,t){return ey(this,16,e,t)},H.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:K(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(D=!1,n=Q(n,e,0,t,1).times(e),D=!0,ee(n)):(e.s=n.s,n=e),n},H.toNumber=function(){return+this},H.toOctal=function(e,t){return ey(this,8,e,t)},H.toPower=H.pow=function(e){var t,n,r,i,a,o,s=this,l=s.constructor,c=+(e=new l(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new l(U(+s,c));if((s=new l(s)).eq(1))return s;if(r=l.precision,a=l.rounding,e.eq(1))return ee(s,r,a);if((t=B(e.e/7))>=e.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return i=es(l,s,n,r),e.s<0?new l(1).div(i):ee(i,r,a);if((o=s.s)<0){if(t<e.d.length-1)return new l(NaN);if(1&e.d[t]||(o=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=o,s}return(t=0!=(n=U(+s,c))&&isFinite(n)?new l(n+"").e:B(c*(Math.log("0."+Y(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?o/0:0):(D=!1,l.rounding=s.s=1,n=Math.min(12,(t+"").length),(i=eu(e.times(ed(s,r+n)),r)).d&&J((i=ee(i,r+5,1)).d,r,a)&&(t=r
460+10,+Y((i=ee(eu(e.times(ed(s,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=ee(i,r+1,0))),i.s=o,D=!0,l.rounding=a,ee(i,r,a))},H.toPrecision=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=et(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(K(e,1,1e9),void 0===t?t=i.rounding:K(t,0,8),n=et(r=ee(new i(r),e,t),e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},H.toSignificantDigits=H.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(K(e,1,1e9),void 0===t?t=n.rounding:K(t,0,8)),ee(new n(this),e,t)},H.toString=function(){var e=this.constructor,t=et(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},H.truncated=H.trunc=function(){return ee(new this.constructor(this),this.e+1,1)},H.valueOf=H.toJSON=function(){var e=this.constructor,t=et(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var Q=function(){function e(e,t,n){var r,i=0,a=e.length;for(e=e.slice();a--;)r=e[a]*t+i,e[a]=r%n|0,i=r/n|0;return i&&e.unshift(i),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,a,o,s,l){var c,u,d,p,f,h,m,g,y,v,b,w,_,x,E,S,k,C,I,T,R=r.constructor,N=r.s==i.s?1:-1,O=r.d,P=i.d;if(!O||!O[0]||!P||!P[0])return new R(r.s&&i.s&&(O?!P||O[0]!=P[0]:P)?O&&0==O[0]||!P?0*N:N/0:NaN);for(l?(f=1,u=r.e-i.e):(l=1e7,f=7,u=B(r.e/f)-B(i.e/f)),I=P.length,k=O.length,v=(y=new R(N)).d=[],d=0;P[d]==(O[d]||0);d++);if(P[d]>(O[d]||0)&&u--,null==a?(x=a=R.precision,o=R.rounding):x=s?a+(r.e-i.e)+1:a,x<0)v.push(1),h=!0;else{if(x=x/f+2|0,d=0,1==I){for(p=0,P=P[0],x++;(d<k||p)&&x--;d++)E=p*l+(O[d]||0),v[d]=E/P|0,p=E%P|0;h=p||d<k}else{for((p=l/(P[0]+1)|0)>1&&(P=e(P,p,l),O=e(O,p,l),I=P.length,k=O.length),S=I,w=(b=O.slice(0,I)).length;w<I;)b[w++]=0;(T=P.slice()).unshift(0),C=P[0],P[1]>=l/2&&++C;do p=0,(c=t(P,b,I,w))<0?(_=b[0],I!=w&&(_=_*l+(b[1]||0)),(p=_/C|0)>1?(p>=l&&(p=l-1),g=(m=e(P,p,l)).length,w=b.length,1==(c=t(m,b,g,w))&&(p--,n(m,I<g?T:P,g,l))):(0==p&&(c=p=1),m=P.slice()),(g=m.length)<w&&m.unshift(0),n(b,m,w,l),-1==c&&(w=b.length,(c=t(P,b,I,w))<1&&(p++,n(b,I<w?T:P,w,l))),w=b.length):0===c&&(p++,b=[0]),v[d++]=p,c&&b[0]?b[w++]=O[S]||0:(b=[O[S]],w=1);while((S++<k||void 0!==b[0])&&x--);h=void 0!==b[0]}v[0]||v.shift()}if(1==f)y.e=u,A=h;else{for(d=1,p=v[0];p>=10;p/=10)d++;y.e=d+u*f-1,ee(y,s?a+y.e+1:a,o,h)}return y}}();function ee(e,t,n,r){var i,a,o,s,l,c,u,d,p,f=e.constructor;e:if(null!=t){if(!(d=e.d))return e;for(i=1,s=d[0];s>=10;s/=10)i++;if((a=t-i)<0)a+=7,o=t,l=(u=d[p=0])/U(10,i-o-1)%10|0;else if((p=Math.ceil((a+1)/7))>=(s=d.length)){if(r){for(;s++<=p;)d.push(0);u=l=0,i=1,a%=7,o=a-7+1}else break e}else{for(u=s=d[p],i=1;s>=10;s/=10)i++;a%=7,l=(o=a-7+i)<0?0:u/U(10,i-o-1)%10|0}if(r=r||t<0||void 0!==d[p+1]||(o<0?u:u%U(10,i-o-1)),c=n<4?(l||r)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||r||6==n&&(a>0?o>0?u/U(10,i-o):0:d[p-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,c?(t-=e.e+1,d[0]=U(10,(7-t%7)%7),e.e=-t||0):d[0]=e.e=0,e;if(0==a?(d.length=p,s=1,p--):(d.length=p+1,s=U(10,7-a),d[p]=o>0?(u/U(10,i-o)%U(10,o)|0)*s:0),c)for(;;)if(0==p){for(a=1,o=d[0];o>=10;o/=10)a++;for(o=d[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(e.e++,1e7==d[0]&&(d[0]=1));break}else{if(d[p]+=s,1e7!=d[p])break;d[p--]=0,s=1}for(a=d.length;0===d[--a];)d.pop()}return D&&(e.e>f.maxE?(e.d=null,e.e=NaN):e.e<f.minE&&(e.e=0,e.d=[0])),e}function et(e,t,n){if(!e.isFinite())return ep(e);var r,i=e.e,a=Y(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+"."+a.slice(1)+eo(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):i<0?(a="0."+eo(-i-1)+a,n&&(r=n-o)>0&&(a+=eo(r))):i>=o?(a+=eo(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+eo(r))):((r=i+1)<o&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+="."),a+=eo(r))),a}function en(e,t){var n=e[0];for(t*=7;n>=10;n/=10)t++;return t}function er(e,t,n){if(t>W)throw D=!0,n&&(e.precision=n),Error(j);return ee(new e(N),t,1,!0)}function ei(e,t,n){if(t>G)throw Error(j);return ee(new e(O),t,n,!0)}function ea(e){var t=e.length-1,n=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function eo(e){for(var t="";e--;)t+="0";return t}function es(e,t,n,r){var i,a=new e(1),o=Math.ceil(r/7+4);for(D=!1;;){if(n%2&&ev((a=a.times(t)).d,o)&&(i=!0),0===(n=B(n/2))){n=a.d.length-1,i&&0===a.d[n]&&++a.d[n];break}ev((t=t.times(t)).d,o)}return D=!0,a}
vendor: 6,339 bytes, line 460
460function el(e){return 1&e.d[e.d.length-1]}function ec(e,t,n){for(var r,i,a=new e(t[0]),o=0;++o<t.length;){if(!(i=new e(t[o])).s){a=i;break}((r=a.cmp(i))===n||0===r&&a.s===n)&&(a=i)}return a}function eu(e,t){var n,r,i,a,o,s,l,c=0,u=0,d=0,p=e.constructor,f=p.rounding,h=p.precision;if(!e.d||!e.d[0]||e.e>17)return new p(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(D=!1,l=h):l=t,s=new p(.03125);e.e>-2;)e=e.times(s),d+=5;for(l+=r=Math.log(U(2,d))/Math.LN10*2+5|0,n=a=o=new p(1),p.precision=l;;){if(a=ee(a.times(e),l,1),n=n.times(++u),Y((s=o.plus(Q(a,n,l,1))).d).slice(0,l)===Y(o.d).slice(0,l)){for(i=d;i--;)o=ee(o.times(o),l,1);if(null!=t)return p.precision=h,o;if(!(c<3&&J(o.d,l-r,f,c)))return ee(o,p.precision=h,f,D=!0);p.precision=l+=10,n=a=s=new p(1),u=0,c++}o=s}}function ed(e,t){var n,r,i,a,o,s,l,c,u,d,p,f=1,h=e,m=h.d,g=h.constructor,y=g.rounding,v=g.precision;if(h.s<0||!m||!m[0]||!h.e&&1==m[0]&&1==m.length)return new g(m&&!m[0]?-1/0:1!=h.s?NaN:m?0:h);if(null==t?(D=!1,u=v):u=t,g.precision=u+=10,r=(n=Y(m)).charAt(0),!(15e14>Math.abs(a=h.e)))return c=er(g,u+2,v).times(a+""),h=ed(new g(r+"."+n.slice(1)),u-10).plus(c),g.precision=v,null==t?ee(h,v,y,D=!0):h;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=Y((h=h.times(e)).d)).charAt(0),f++;for(a=h.e,r>1?(h=new g("0."+n),a++):h=new g(r+"."+n.slice(1)),d=h,l=o=h=Q(h.minus(1),h.plus(1),u,1),p=ee(h.times(h),u,1),i=3;;){if(o=ee(o.times(p),u,1),Y((c=l.plus(Q(o,new g(i),u,1))).d).slice(0,u)===Y(l.d).slice(0,u)){if(l=l.times(2),0!==a&&(l=l.plus(er(g,u+2,v).times(a+""))),l=Q(l,new g(f),u,1),null!=t)return g.precision=v,l;if(!J(l.d,u-10,y,s))return ee(l,g.precision=v,y,D=!0);g.precision=u+=10,c=o=h=Q(d.minus(1),d.plus(1),u,1),p=ee(h.times(h),u,1),i=s=1}l=c,i+=2}}function ep(e){return String(e.s*e.s/0)}function ef(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);r++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(r,i)){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=7;r<i;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=i;for(;r--;)t+="0";e.d.push(+t),D&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function eh(e,t,n,r,i){var a,o,s,l,c=e.precision,u=Math.ceil(c/7);for(D=!1,l=n.times(n),s=new e(r);;){if(o=Q(s.times(l),new e(t++*t++),c,1),s=i?r.plus(o):r.minus(o),r=Q(o.times(l),new e(t++*t++),c,1),void 0!==(o=s.plus(r)).d[u]){for(a=u;o.d[a]===s.d[a]&&a--;);if(-1==a)break}a=s,s=r,r=o,o=a}return D=!0,o.d.length=u+1,o}function em(e,t){for(var n=e;--t;)n*=e;return n}function eg(e,t){var n,r=t.s<0,i=ei(e,e.precision,1),a=i.times(.5);if((t=t.abs()).lte(a))return T=r?4:1,t;if((n=t.divToInt(i)).isZero())T=r?3:2;else{if((t=t.minus(n.times(i))).lte(a))return T=el(n)?r?2:3:r?4:1,t;T=el(n)?r?1:4:r?3:2}return t.minus(i).abs()}function ey(e,t,n,r){var i,a,o,s,l,c,u,d,p,f=e.constructor,h=void 0!==n;if(h?(K(n,1,1e9),void 0===r?r=f.rounding:K(r,0,8)):(n=f.precision,r=f.rounding),e.isFinite()){for(o=(u=et(e)).indexOf("."),h?(i=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):i=t,o>=0&&(u=u.replace(".",""),(p=new f(1)).e=u.length-o,p.d=X(et(p),10,i),p.e=p.d.length),a=l=(d=X(u,10,i)).length;0==d[--l];)d.pop();if(d[0]){if(o<0?a--:((e=new f(e)).d=d,e.e=a,d=(e=Q(e,p,n,r,0,i)).d,a=e.e,c=A),o=d[n],s=i/2,c=c||void 0!==d[n+1],c=r<4?(void 0!==o||c)&&(0===r||r===(e.s<0?3:2)):o>s||o===s&&(4===r||c||6===r&&1&d[n-1]||r===(e.s<0?8:7)),d.length=n,c)for(;++d[--n]>i-1;)d[n]=0,n||(++a,d.unshift(1));for(l=d.length;!d[l-1];--l);for(o=0,u="";o<l;o++)u+=R.charAt(d[o]);if(h){if(l>1){if(16==t||8==t){for(o=16==t?4:3,--l;l%o;l++)u+="0";for(l=(d=X(u,i,t)).length;!d[l-1];--l);for(o=1,u="1.";o<l;o++)u+=R.charAt(d[o])}else u=u.charAt(0)+"."+u.slice(1)}u=u+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)u="0"+u;u="0."+u}else if(++a>l)for(a-=l;a--;)u+="0";else a<l&&(u=u.slice(0,a)+"."+u.slice(a))}else u=h?"0p+0":"0";u=(16==t?"0x":2==t?"0b":8==t?"0o":"")+u}else u=ep(e);return e.s<0?"-"+u:u}function ev(e,t){if(e.length>t)return e.length=t,!0}function eb(e){return new this(e).abs()}function ew(e){return new this(e).acos()}function e_(e){return new this(e).acosh()}function ex(e,t){return new this(e).plus(t)}function eE(e){return new this(e).asin()}function eS(e){return new this(e).asinh()}function ek(e){return new this(e).atan()}function eC(e){return new this(e).atanh()}function eI(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,a=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?ei(this,r,i):new this(0)).s=e.s:!e.d||t.isZero()?(n=ei(this,a,1).times(.5)).s=e.s:t.s<0?(this.precision=a,this.rounding=1,n=this.atan(Q(e,t,a,1)),t=ei(this,a,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(Q(e,t,a,1)):(n=ei(this,a,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function eA(e){return new this(e).cbrt()}function eT(e){return ee(e=new this(e),e.e+1,2)}function eR(e,t,n){return new this(e).clamp(t,n)}function eN(e){if(!e||"object"!=typeof e)throw Error(M+"Object expected");var t,n,r,i=!0===e.defaults,a=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(t=0;t<a.length;t+=3)if(n=a[t],i&&(this[n]=P[n]),void 0!==(r=e[n])){if(B(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error($+n+": "+r)}if(n="crypto",i&&(this[n]=P[n]),void 0!==(r=e[n])){if(!0===r||!1===r||0===r||1===r){if(r){if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(L)}else this[n]=!1}else throw Error($+n+": "+r)}return this}function eO(e){return new this(e).cos()}function eP(e){return new this(e).cosh()}function eD(e,t){return new this(e).div(t)}function eM(e){return new this(e).exp()}function e$(e){return ee(e=new this(e),e.e+1,3)}function ej(){var e,t,n=new this(0);for(D=!1,e=0;e<arguments.length;)if(t=new this(arguments[e++]),t.d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return D=!0,new this(1/0);n=t}return D=!0,n.sqrt()}function eL(e){return e instanceof e4||e&&e.toStringTag===F||!1}function eF(e){return new this(e).ln()}function eB(e,t){return new this(e).log(t)}function eU(e){return new this(e).log(2)}function ez(e){return new this(e).log(10)}function eZ(){return ec(this,arguments,-1)}
460function eV(){return ec(this,arguments,1)}function eq(e,t){return new this(e).mod(t)}function eW(e,t){return new this(e).mul(t)}function eG(e,t){return new this(e).pow(t)}function eH(e){var t,n,r,i,a=0,o=new this(1),s=[];if(void 0===e?e=this.precision:K(e,1,1e9),r=Math.ceil(e/7),this.crypto){if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));a<r;)(i=t[a])>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(r*=4);a<r;)(i=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((127&t[a+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,a):(s.push(i%1e7),a+=4);a=r/4}else throw Error(L)}else for(;a<r;)s[a++]=1e7*Math.random()|0;for(r=s[--a],e%=7,r&&e&&(i=U(10,7-e),s[a]=(r/i|0)*i);0===s[a];a--)s.pop();if(a<0)n=0,s=[0];else{for(n=-1;0===s[0];n-=7)s.shift();for(r=1,i=s[0];i>=10;i/=10)r++;r<7&&(n-=7-r)}return o.e=n,o.d=s,o}function eY(e){return ee(e=new this(e),e.e+1,this.rounding)}function eK(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function eJ(e){return new this(e).sin()}function eX(e){return new this(e).sinh()}function eQ(e){return new this(e).sqrt()}function e0(e,t){return new this(e).sub(t)}function e1(){var e=0,t=arguments,n=new this(t[0]);for(D=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return D=!0,ee(n,this.precision,this.rounding)}function e2(e){return new this(e).tan()}function e3(e){return new this(e).tanh()}function e5(e){return ee(e=new this(e),e.e+1,1)}H[Symbol.for("nodejs.util.inspect.custom")]=H.toString,H[Symbol.toStringTag]="Decimal";
460var e4=H.constructor=function e(t){var n,r,i;function a(e){var t,n,r;if(!(this instanceof a))return new a(e);if(this.constructor=a,eL(e)){this.s=e.s,D?!e.d||e.e>a.maxE?(this.e=NaN,this.d=null):e.e<a.minE?(this.e=0,this.d=[0]):(this.e=e.e,this.d=e.d.slice()):(this.e=e.e,this.d=e.d?e.d.slice():e.d);return}if("number"==(r=typeof e)){if(0===e){this.s=1/e<0?-1:1,this.e=0,this.d=[0];return}if(e<0?(e=-e,this.s=-1):this.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;D?t>a.maxE?(this.e=NaN,this.d=null):t<a.minE?(this.e=0,this.d=[0]):(this.e=t,this.d=[e]):(this.e=t,this.d=[e]);return}if(0*e!=0){e||(this.s=NaN),this.e=NaN,this.d=null;return}return ef(this,e.toString())}if("string"===r)return 45===(n=e.charCodeAt(0))?(e=e.slice(1),this.s=-1):(43===n&&(e=e.slice(1)),this.s=1),q.test(e)?ef(this,e):function(e,t){var n,r,i,a,o,s,l,c,u;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),q.test(t))return ef(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Z.test(t))n=16,t=t.toLowerCase();else if(z.test(t))n=2;else if(V.test(t))n=8;else throw Error($+t);for((a=t.search(/p/i))>0?(l=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),o=(a=t.indexOf("."))>=0,r=e.constructor,o&&(a=(s=(t=t.replace(".","")).length)-a,i=es(r,new r(n),a,2*a)),a=u=(c=X(t,n,1e7)).length-1;0===c[a];--a)c.pop();return a<0?new r(0*e.s):(e.e=en(c,u),e.d=c,D=!1,o&&(e=Q(e,i,4*s)),l&&(e=e.times(54>Math.abs(l)?U(2,l):e4.pow(2,l))),D=!0,e)}(this,e);if("bigint"===r)return e<0?(e=-e,this.s=-1):this.s=1,ef(this,e.toString());throw Error($+e)}if(a.prototype=H,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.EUCLID=9,a.config=a.set=eN,a.clone=e,a.isDecimal=eL,a.abs=eb,a.acos=ew,a.acosh=e_,a.add=ex,a.asin=eE,a.asinh=eS,a.atan=ek,a.atanh=eC,a.atan2=eI,a.cbrt=eA,a.ceil=eT,a.clamp=eR,a.cos=eO,a.cosh=eP,a.div=eD,a.exp=eM,a.floor=e$,a.hypot=ej,a.ln=eF,a.log=eB,a.log10=ez,a.log2=eU,a.max=eZ,a.min=eV,a.mod=eq,a.mul=eW,a.pow=eG,a.random=eH,a.round=eY,a.sign=eK,a.sin=eJ,a.sinh=eX,a.sqrt=eQ,a.sub=e0,a.sum=e1,a.tan=e2,a.tanh=e3,a.trunc=e5,void 0===t&&(t={}),t&&!0!==t.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return a.config(t),a}(P);N=new e4(N),O=new e4(O);var e9=e4},42067:function(e,t,n){"use strict";n.d(t,{o:function(){return r.ou}});var r=n(32603)},92131:function(e,t,n){"use strict";let r;n.d(t,{J0:function(){return u},Ns:function(){return d},fC:function(){return l}});var i=n(35949);let a=["payment_link_opened","payment_link_summary_viewed","delivery_details_viewed","payment_method_selection_viewed","no_payment_methods_available","wallet_support_check_timed_out","stitch_wallet_sdk_failed","payment_method_selected","stitch_iframe_ready","stitch_iframe_load_timed_out","bnpl_redirect_started","returned_from_bnpl_provider","returned_via_back_navigation","stitch_payment_completed","stitch_payment_quit","success_page_viewed","quit_page_viewed","checkout_exited","expired_payment_link_viewed","cancelled_payment_link_viewed","consent_opened","consent_completed","consent_quit"],o="/api/checkout-telemetry",s=new Set;function l(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,"string"==typeof t?t.slice(0,200):t]))}function c(e,t){let n=JSON.stringify({event:e,...t,occurredAt:new Date().toISOString(),sessionId:(0,i.Wx)(()=>window.sessionStorage,"ww_sid")||(r??=(0,i.Ox)()),deviceId:(0,i.ni)(),eventId:(0,i.Ox)(),meta:t.meta?l(t.meta):void 0});navigator.sendBeacon?.(o,new Blob([n],{type:"application/json"}))||fetch(o,{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json"},body:n}).catch(()=>void 0)}function u(e,t){try{a.includes(e)&&function(e){try{let t=`ww_opened:${e}`;if(window.sessionStorage.getItem(t))return!1;return window.sessionStorage.setItem(t,"1"),!0}catch{if(s.has(e))return!1;return s.add(e),!0}}(t.paymentLinkShortId)&&"payment_link_opened"!==e&&c("payment_link_opened",{paymentLinkShortId:t.paymentLinkShortId,meta:{page:function(e){let t=window.location.pathname.split("/").filter(
460Boolean),n=t[t.length-1];return n&&n!==e?n:"summary"}(t.paymentLinkShortId)}}),c(e,t)}catch{}}function d(e,t,n){try{c(e,{...t,meta:n})}catch{return}}},57617:function(e,t,n){"use strict";n.d(t,{$9:function(){return m},$v:function(){return y},E4:function(){return S},Gj:function(){return g},Gq:function(){return w},HQ:function(){return E},PB:function(){return h},TC:function(){return f},VP:function(){return C},Wl:function(){return I},Wq:function(){return b},Y1:function(){return k},ZR:function(){return v},ZZ:function(){return c},Zo:function(){return u},Zp:function(){return l},f4:function(){return a},ng:function(){return x},ps:function(){return _},sM:function(){return p},uu:function(){return T},v7:function(){return o},vU:function(){return d},yi:function(){return A}});var r,i,a,o,s=n(25688);let l=200,c=1e3,u=1.15,d=new s.Z("2.3"),p=new s.Z("11.5"),f=.034,h=.0295,m=.057,g=.019,y=100,v=200,b=5e6,w=25e4,_={MONDAY:1,TUESDAY:2,WEDNESDAY:3,THURSDAY:4,FRIDAY:5,SATURDAY:6,SUNDAY:7},x={START:6,END:16},E={debit:.0295,credit:.0295,international:.034},S={debit:.0125,credit:.0225,international:.029};(r=a||(a={})).PAYMENT_PAID="PAYMENT_PAID",r.PAYMENT_QUIT="PAYMENT_QUIT";let k="https://secure.stitch.money";(i=o||(o={})).READY="ReadyEvent",i.PAYMENT_COMPLETED="PaymentCompletedEvent",i.PAYMENT_QUIT="PaymentQuitEvent",i.CONSENT_QUIT="ConsentQuitEvent";let C="https://pay.google.com/gp/p/js/pay.js",I="https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",A={cardConsents:"cardConsentsEnabled",subscriptions:"subscriptionsEnabled",bnpl:"bnplEnabled",capitec:"capitecEnabled",wallet:"walletEnabled",shopifySubscriptions:"shopifySubscriptionsEnabled",cardPresent:"cardPresentEnabled"},T=1e4},20363:function(e,t,n){"use strict";let r=(0,n(75271).createContext)({});r.displayName="ClientContext",t.Z=r},64501:function(e,t,n){"use strict";let r=(0,n(75271).createContext)({isSideNavCollapsed:!0});r.displayName="SideNavContext",t.Z=r},35949:function(e,t,n){"use strict";let r;function i(){return"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}${Math.random().toString(36).slice(2,12)}`}function a(e,t){try{let n=e(),r=n.getItem(t);if(r)return r;let a=i();return n.setItem(t,a),a}catch{return}}function o(){return a(()=>window.localStorage,"ww_ctx")||(r??=i())}n.d(t,{Ox:function(){return i},Wx:function(){return a},ni:function(){return o}})},15032:function(e,t,n){"use strict";n.d(t,{H1:function(){return r},Iv:function(){return i},Q6:function(){return a}});class r extends Error{constructor(e,t){super(e),Object.setPrototypeOf(this,new.target.prototype),this.status=t}}let i=e=>e instanceof Error?e.toString():JSON.stringify(e);function a(e){return e instanceof Error?e:JSON.stringify(e)}},74393:function(e,t,n){"use strict";n.d(t,{p6:function(){return l},t6:function(){return i},xG:function(){return s}});var r,i,a=n(42067);let o=new Intl.NumberFormat("en-ZA",{style:"currency",currency:"ZAR"});function s(e){let t="number"==typeof e?e:e.toNumber();return o.format(t)}function l(e,t="f"){return(e instanceof a.o?e:e instanceof Date?a.o.fromJSDate(e,{zone:"Africa/Johannesburg"}):a.o.fromISO(e,{zone:"Africa/Johannesburg"})).setLocale("en-GB").toFormat(t)}(r=i||(i={})).DATE_ONLY="yyyy-MM-dd",r.EXPORT="yyyy-MM-dd HH:mm:ss",r.LONG_TIME_SECOND="F",r.SHORT_TIME="f",r.SHORT="dd/MM/yyyy",r.SHORT_ABBREVIATED="dd MMM yyyy",r.SHORT_ABBREVIATED_COMPACT="d MMM yy"},3355:function(e,t,n){"use strict";n.d(t,{Rp:function(){return u},SX:function(){return c},Sc:function(){return d},Y4:function(){return r},sM:function(){return p},u1:function(){return l},wK:function(){return f}});let r="GTM-TPRD2N5W",i="stitch_express_attribution",a=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","fbclid","ttclid"];function o(e,t){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,...t})}function s(){if("undefined"==typeof document)return{};let e=RegExp(`(?:^|;\\s*)${i}=([^;]*)`).exec(document.cookie);return e?function(e){try{return JSON.parse(decodeURIComponent(e))}catch{return{}}}(e[1]):{}}function l(e){if("undefined"==typeof document)return;let t={};for(let n of a){let r=e[n];"string"==typeof r&&r&&(t[n]=r)}if(0===Object.keys(t).length)return;let n=s(),r={...t,...n},o=window.location.hostname.split("."),l=o.length>=2?o.slice(-2).join("."):void 0,c=l?`; Domain=${l}
460`:"";document.cookie=`${i}=${encodeURIComponent(JSON.stringify(r))}; Path=/; SameSite=Lax; Max-Age=7776000${c}${l?"; Secure":""}`}function c(){o("signup_form_submit")}function u(){o("sign_up",s())}function d(){o("submitted_verification",s())}function p(){o("gone_live",s())}function f(){o("first_payment_completed",s())}},41309:function(e,t,n){"use strict";let r;n.d(t,{H:function(){return p},K:function(){return u}});var i=n(84972),a=n(92131),o=n(35949),s=n(2437);let l="/api/onboarding-event";function c(){return(0,o.Wx)(()=>window.sessionStorage,"ww_osid")||(r??=(0,o.Ox)())}function u(){try{return{deviceId:(0,o.ni)(),sessionId:c()}}catch{return}}function d(){try{return i.vT.getInternalContext()?.session_id}catch{return}}function p(e,t){try{let n={event:e,step:t.step,occurredAt:new Date().toISOString(),sessionId:c(),deviceId:(0,o.ni)(),eventId:(0,o.Ox)()};!function(e){if(!(0,s.sV)(window.location.href)){e();return}!function e(t,n=0){if(d()||n>=5){t();return}window.setTimeout(()=>e(t,n+1),100)}(e)}(()=>(function(e,t){try{var n;n=JSON.stringify({...e,meta:function(e={}){let t=d(),n=Object.entries(t?{...e,rumSessionId:t}:e).flatMap(([e,t])=>void 0===t?[]:[[e,t]]);return(0,a.fC)(Object.fromEntries(n))}(t)}),navigator.sendBeacon?.(l,new Blob([n],{type:"text/plain"}))||fetch(l,{method:"POST",keepalive:!0,headers:{"Content-Type":"text/plain"},body:n}).catch(()=>void 0)}catch{return}})(n,t.metadata))}catch{return}}},2437:function(e,t,n){"use strict";n.d(t,{B9:function(){return v},Ov:function(){return _},UJ:function(){return w},WN:function(){return x},WO:function(){return E},ZP:function(){return C},_b:function(){return I},f9:function(){return k},g0:function(){return f},jy:function(){return g},o5:function(){return b},pN:function(){return A},qj:function(){return y},sV:function(){return h}});var r=n(84972),i=n(39164),a=n(3539),o=n(15903);let s=["/signup","/signup/[referralCode]","/signup/invitation/[invitationId]","/onboarding"],l=["/signup","/onboarding"],c="outside-signup-flow",u=!1,d=!1,p=!1;function f(e){return s.includes(e)}function h(e){let t;try{t=new URL(e).pathname}catch{return!1}return l.some(e=>t===e||t.startsWith(`${e}/`))}function m(e){if("error"===e.type&&"report"===e.error.source&&e.error.csp?.disposition==="report")return!1;let t=e.view?.url;return!!("string"==typeof t&&h(t))||"view"===e.type&&(e.view.url=new URL(`/${c}`,window.location.origin).href,e.view.name=c,e.view.referrer="",e.view.performance?.lcp?.resource_url&&(e.view.performance.lcp.resource_url=""),!0)}function g({applicationId:e,clientToken:t,environment:n,version:o,correlation:s}){u||(u=!0,d=!0,r.vT.init({applicationId:e,clientToken:t,site:"datadoghq.eu",service:"wigwag",env:n,version:o,proxy:"/api/session-events",sessionSampleRate:100,sessionReplaySampleRate:100,defaultPrivacyLevel:"mask-user-input",trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,allowedTracingUrls:[window.location.origin],beforeSend:m}),s&&(r.vT.setGlobalContextProperty("device_id",s.deviceId),r.vT.setGlobalContextProperty("journey_session_id",s.sessionId)),p||!i.s3()||(p=!0,a.Qy(e=>{let t=r.vT.getInternalContext()?.session_id;return t&&(e.tags={...e.tags,dd_session_id:t}),e})))}function y(e){u&&d!==e&&(d=e,r.vT.setTrackingConsent(e?"granted":"not-granted"))}function v({id:e,merchantId:t}){u&&(r.vT.setUser({id:e}),t&&b(t))}function b(e){u&&(r.vT.setAccount({id:e}),r.vT.setGlobalContextProperty("merchant_id",e))}function w(e,t){switch(e){case"/signup/invitation/[invitationId]":return"invitation";case"/signup/[referralCode]":return"referral";case"/signup":return t?"attribution_link":"organic";default:return}}function _(e){u&&r.vT.setGlobalContextProperty("signup_channel",e)}function x(){u&&r.vT.addAction("signup_succeeded")}function E({code:e,status:t},n){if(!u)return;let i=e??"unknown";r.vT.addAction("signup_failed",{error_code:i,status:t}),n||r.vT.addError(Error(`Sign-up failed: ${i}`),{error_code:i,status:t})}function S(e){return{step:e,step_name:o.r[e]}}function k(e){u&&r.vT.addAction("onboarding_step_viewed",S(e))}function C(e){u&&r.vT.addAction("onboarding_step_completed",S(e))}function I(e,t){u&&r.vT.addAction("onboarding_step_failed",{...S(e),reason:t})}function A(){u&&r.vT.addAction("onboarding_completed")}},73850:function(e,t){"use strict";t.Z=(e,t)=>{let n=new Date(e),r=new Date(t);return n.valueOf()-r.valueOf()}},93595:function(e,t,n){"use strict";n.d(t,{cn:function(){return U},un:function(){return B},Y$:function(){return z}});var r=n(4814),i=n(54224),a=n(4731),o=n(81307),s=n.n(o),l=/^\[(.+)\]$/;function c(e,t){var n=e;return t.split("-").forEach(function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}var u=/\s+/;function d(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){if("string"==typeof t)return t;for(var n,r="",i=0;i<t.length;i++)t[i]&&(n=e(t[i]))&&(r&&(r+=" "),r+=n);return r}(e))&&(r&&(r+=" "),r+=t);return r}function p(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var f=/^\[(?:([a-z-]+):)?(.+)\]$/i,h=/^\d+\/\d+$/,m=new Set(["px","full","screen"]),g=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,y=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,v=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function b(e){return k(e)||m.has(e)||h.test(e)||w(e)}function w(e){return O(e,"length",P)}function _(e){return O(e,"size",D)}function x(e){return O(e,"position",D)}function E(e){return O(e,"url",M)}function S(e){return O(e,"number",k)}function k(e){return!Number.isNaN(Number(e))}function C(e){return e.endsWith("%")&&k(e.slice(0,-1))}function I(e){return $(e)||O(e,"number",$)}function A(e){return f.test(e)}function T(){return!0}function R(e){return g.test(e)}
460function N(e){return O(e,"",j)}function O(e,t,n){var r=f.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function P(e){return y.test(e)}function D(){return!1}function M(e){return e.startsWith("url(")}function $(e){return Number.isInteger(Number(e))}function j(e){return v.test(e)}var L=function(){for(var e,t,n,r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=function(r){var a=i[0];return t=(e=function(e){var t,n,r,i,a,o,s,u,d,p,f;return{cache:function(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function i(i,a){n.set(i,a),++t>e&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):i(e,t)}}}(e.cacheSize),splitModifiers:(n=1===(t=e.separator||":").length,r=t[0],i=t.length,function(e){for(var a,o=[],s=0,l=0,c=0;c<e.length;c++){var u=e[c];if(0===s){if(u===r&&(n||e.slice(c,c+i)===t)){o.push(e.slice(l,c)),l=c+i;continue}if("/"===u){a=c;continue}}"["===u?s++:"]"===u&&s--}var d=0===o.length?e:e.substring(l),p=d.startsWith("!"),f=p?d.substring(1):d;return{modifiers:o,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:a&&a>l?a-l:void 0}}),...(u=e.theme,d=e.prefix,p={nextPart:new Map,validators:[]},(f=Object.entries(e.classGroups),d?f.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?d+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[d+e[0],e[1]]})):e})]}):f).forEach(function(e){var t=e[0];(function e(t,n,r,i){t.forEach(function(t){if("string"==typeof t){(""===t?n:c(n,t)).classGroupId=r;return}if("function"==typeof t){if(t.isThemeGetter){e(t(i),n,r,i);return}n.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(function(t){var a=t[0];e(t[1],c(n,a),r,i)})})})(e[1],p,t,u)}),a=e.conflictingClassGroups,s=void 0===(o=e.conflictingClassGroupModifiers)?{}:o,{getClassGroupId:function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function e(t,n){if(0===t.length)return n.classGroupId;var r=t[0],i=n.nextPart.get(r),a=i?e(t.slice(1),i):void 0;if(a)return a;if(0!==n.validators.length){var o=t.join("-");return n.validators.find(function(e){return(0,e.validator)(o)})?.classGroupId}}(t,p)||function(e){if(l.test(e)){var t=l.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var n=a[e]||[];return t&&s[e]?[].concat(n,s[e]):n}})}}(i.slice(1).reduce(function(e,t){return t(e)},a()))).cache.get,n=e.cache.set,o=s,s(r)};function s(r){var i,a,o,s,l,c=t(r);if(c)return c;var d=(a=(i=e).splitModifiers,o=i.getClassGroupId,s=i.getConflictingClassGroupIds,l=new Set,r.trim().split(u).map(function(e){var t=a(e),n=t.modifiers,r
460=t.hasImportantModifier,i=t.baseClassName,s=t.maybePostfixModifierPosition,l=o(s?i.substring(0,s):i),c=!!s;if(!l){if(!s||!(l=o(i)))return{isTailwindClass:!1,originalClassName:e};c=!1}var u=(function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)}),t.push.apply(t,n.sort()),t})(n).join(":");return{isTailwindClass:!0,modifierId:r?u+"!":u,classGroupId:l,originalClassName:e,hasPostfixModifier:c}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,i=t+n;return!l.has(i)&&(l.add(i),s(n,r).forEach(function(e){return l.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return n(r,d),d}return function(){return o(d.apply(null,arguments))}}(function(){var e=p("colors"),t=p("spacing"),n=p("blur"),r=p("brightness"),i=p("borderColor"),a=p("borderRadius"),o=p("borderSpacing"),s=p("borderWidth"),l=p("contrast"),c=p("grayscale"),u=p("hueRotate"),d=p("invert"),f=p("gap"),h=p("gradientColorStops"),m=p("gradientColorStopPositions"),g=p("inset"),y=p("margin"),v=p("opacity"),O=p("padding"),P=p("saturate"),D=p("scale"),M=p("sepia"),$=p("skew"),j=p("space"),L=p("translate"),F=function(){return["auto","contain","none"]},B=function(){return["auto","hidden","clip","visible","scroll"]},U=function(){return["auto",A,t]},z=function(){return[A,t]},Z=function(){return["",b]},V=function(){return["auto",k,A]},q=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},W=function(){return["solid","dashed","dotted","double","none"]},G=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},H=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",A]},K=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},J=function(){return[k,S]},X=function(){return[k,A]};return{cacheSize:500,theme:{colors:[T],spacing:[b],blur:["none","",R,A],brightness:J(),borderColor:[e],borderRadius:["none","","full",R,A],borderSpacing:z(),borderWidth:Z(),contrast:J(),grayscale:Y(),hueRotate:X(),invert:Y(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[C,w],inset:U(),margin:U(),opacity:J(),padding:z(),saturate:J(),scale:J(),sepia:Y(),skew:X(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",A]}],container:["container"],columns:[{columns:[R]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(q(),[A])}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",I]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",A]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",I]}],"grid-cols":[{"grid-cols":[T]}],"col-start-end":[{col:["auto",{span:["full",I]},A]}],"col-start":[{"col-start":V()}
vendor: 4,942 bytes, line 460
460],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[T]}],"row-start-end":[{row:["auto",{span:[I]},A]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",A]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",A]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(H())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(H(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(H(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",A,t]}],"min-w":[{"min-w":["min","max","fit",A,b]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[R]},R,A]}],h:[{h:[A,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",A,b]}],"max-h":[{"max-h":[A,t,"min","max","fit"]}],"font-size":[{text:["base",R,w]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",S]}],"font-family":[{font:[T]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",A]}],"line-clamp":[{"line-clamp":["none",k,S]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,b]}],"list-image":[{"list-image":["none",A]}],"list-style-type":[{list:["none","disc","decimal",A]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(W(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",b]}],"underline-offset":[{"underline-offset":["auto",A,b]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(q(),[x])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},E]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}
vendor: 4,175 bytes, line 460
460],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[].concat(W(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:W()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(W())}],"outline-offset":[{"outline-offset":[A,b]}],"outline-w":[{outline:[b]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[b]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",R,N]}],"shadow-color":[{shadow:[T]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":G()}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",R,A]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[P]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",A]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",A]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",A]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-x":[{"scale-x":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[I,A]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",A]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",A]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
460],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",A]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[b,S]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),F=n(42067);n(91620).lW,n(91620).lW;let B=e=>{if((0,i.t)(e)){let t=(0,a.h)(e);if(t?.isValid())return t.formatInternational()}return e};function U(...e){return L((0,r.Z)(e))}function z(e="Africa/Johannesburg"){let t=F.o.now().setZone(e),n=t.weekday,r=t.hour;return{currentDayOfWeek:n,time:t.toLocaleString(F.o.TIME_SIMPLE),currentHour:r}}function Z(e,t){let n=s().uuid();return()=>{if(this.cache.has(n))return this.cache.get(n);let r=e();return this.cache.set(n,r),setTimeout(()=>{this.cache.delete(n)},1e3*t),r}}!function(e){if(e.length>=255)throw TypeError("Alphabet too long");let t=new Uint8Array(256);for(let e=0;e<t.length;e++)t[e]=255;for(let n=0;n<e.length;n++){let r=e.charAt(n),i=r.charCodeAt(0);if(255!==t[i])throw TypeError(r+" is ambiguous");t[i]=n}let n=e.length;e.charAt(0)}("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"),Z.cache=new Map,Z.bind(Z)},63537:function(){},42488:function(){},5851:function(){},3587:function(e){e.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3', Arial, sans-serif",fontStyle:"normal"},className:"__className_f367f3"}},28702:function(e,t,n){e.exports=n(7320)},66812:function(e,t,n){e.exports=n(70467)},1957:function(e,t,n){e.exports=n(96032)},56964:function(e,t,n){e.exports=n(42232)},89155:function(e,t,n){e.exports=n(43901)},14224:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l=[],c=!1,u=-1;function d(){c&&r&&(c=!1,r.length?l=r.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(r=l,l=[];++u<t;)r&&r[u].run();u=-1,t=l.length}r=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||c||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},74049:function(e,t,n){"use strict";var r=n(36257);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
460:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},40507:function(e,t,n){e.exports=n(74049)()},36257:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},30717:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(75271),i=n(57290),a=n.n(i),o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}var l=["aspectRatio","autoCrop","autoCropArea","background","center","checkCrossOrigin","checkOrientation","cropBoxMovable","cropBoxResizable","data","dragMode","guides","highlight","initialAspectRatio","minCanvasHeight","minCanvasWidth","minContainerHeight","minContainerWidth","minCropBoxHeight","minCropBoxWidth","modal","movable","preview","responsive","restore","rotatable","scalable","toggleDragModeOnDblclick","viewMode","wheelZoomRatio","zoomOnTouch","zoomOnWheel","zoomable","cropstart","cropmove","cropend","crop","zoom","ready"],c={opacity:0,maxWidth:"100%"},u=r.forwardRef(function(e,t){var n,i=s(e,[]),u=i.dragMode,d=void 0===u?"crop":u,p=i.src,f=i.style,h=i.className,m=i.crossOrigin,g=i.scaleX,y=i.scaleY,v=i.enable,b=i.zoomTo,w=i.rotateTo,_=i.alt,x=i.ready,E=i.onInitialized,S=s(i,["dragMode","src","style","className","crossOrigin","scaleX","scaleY","enable","zoomTo","rotateTo","alt","ready","onInitialized"]),k={scaleY:y,scaleX:g,enable:v,zoomTo:b,rotateTo:w},C=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,r.useRef)(null);return r.useEffect(function(){e.forEach(function(e){e&&("function"==typeof e?e(n.current):e.current=n.current)})},[e]),n}(t,(0,r.useRef)(null));(0,r.useEffect)(function(){var e;(null===(e=C.current)||void 0===e?void 0:e.cropper)&&"number"==typeof b&&C.current.cropper.zoomTo(b)},[i.zoomTo]),(0,r.useEffect)(function(){var e;(null===(e=C.current)||void 0===e?void 0:e.cropper)&&void 0!==p&&C.current.cropper.reset().clear().replace(p)},[p]),(0,r.useEffect)(function(){if(null!==C.current){var e=new(a())(C.current,o(o({dragMode:d},S),{ready:function(e){var t,n,r,i,a,o,s,l;null!==e.currentTarget&&(t=e.currentTarget.cropper,void 0===(n=k)&&(n={}),r=n.enable,i=n.scaleX,a=n.scaleY,s=void 0===(o=n.zoomTo)?0:o,l=n.rotateTo,void 0===r||r?t.enable():t.disable(),t.scaleX(void 0===i?1:i),t.scaleY(void 0===a?1:a),void 0!==l&&t.rotateTo(l),s>0&&t.zoomTo(s)),x&&x(e)}}));E&&E(e)}return function(){var e,t;null===(t=null===(e=C.current)||void 0===e?void 0:e.cropper)||void 0===t||t.destroy()}},[C]);var I=(n=o(o({},S),{crossOrigin:m,src:p,alt:void 0===_?"picture":_}),l.reduce(function(e,t){return e[t],s(e,["symbol"==typeof t?t:t+""])},n));return r.createElement("div",{style:f,className:h},r.createElement("img",o({},I,{style:c,ref:C})))})},51963:function(e,t,n){"use strict";n.d(t,{Av:function(){return o},pF:function(){return r},xv:function(){return a},zi:function(){return i}});var r="right-scroll-bar-position",i="width-before-scroll-bar",a="with-scroll-bars-hidden",o="--removed-body-scroll-bar-size"},59885:function(e,t,n){"use strict";n.d(t,{jp:function(){return m}});var r=n(75271),i=n(10632),a=n(51963),o={left:0,top:0,right:0,gap:0},s=function(e){return parseInt(e||"",10)||0},l=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[s(n),s(r),s(i)]},c=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return o;var t=l(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},u=(0,i.Ws)(),d="data-scroll-locked",p=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n  .".concat(a.xv," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(l,"px ").concat(r,";\n  }\n  body[").concat(d,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";
460")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(a.pF," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(a.zi," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(a.pF," .").concat(a.pF," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(a.zi," .").concat(a.zi," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(d,"] {\n    ").concat(a.Av,": ").concat(l,"px;\n  }\n")},f=function(){var e=parseInt(document.body.getAttribute(d)||"0",10);return isFinite(e)?e:0},h=function(){r.useEffect(function(){return document.body.setAttribute(d,(f()+1).toString()),function(){var e=f()-1;e<=0?document.body.removeAttribute(d):document.body.setAttribute(d,e.toString())}},[])},m=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,a=void 0===i?"margin":i;h();var o=r.useMemo(function(){return c(a)},[a]);return r.createElement(u,{styles:p(o,!t,a,n?"":"!important")})}},56887:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(15767),i=n(75271),a=n(51963),o=n(81679),s=(0,n(10541)._)(),l=function(){},c=i.forwardRef(function(e,t){var n=i.useRef(null),a=i.useState({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:l}),c=a[0],u=a[1],d=e.forwardProps,p=e.children,f=e.className,h=e.removeScrollBar,m=e.enabled,g=e.shards,y=e.sideCar,v=e.noIsolation,b=e.inert,w=e.allowPinchZoom,_=e.as,x=e.gapMode,E=(0,r._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(0,o.q)([n,t]),k=(0,r.pi)((0,r.pi)({},E),c);return i.createElement(i.Fragment,null,m&&i.createElement(y,{sideCar:s,removeScrollBar:h,shards:g,noIsolation:v,inert:b,setCallbacks:u,allowPinchZoom:!!w,lockRef:n,gapMode:x}),d?i.cloneElement(i.Children.only(p),(0,r.pi)((0,r.pi)({},k),{ref:S})):i.createElement(void 0===_?"div":_,(0,r.pi)({},k,{className:f,ref:S}),p))});c.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},c.classNames={fullWidth:a.zi,zeroRight:a.pF};var u=n(41461),d=n(59885),p=n(10632),f=!1;if("undefined"!=typeof window)try{var h=Object.defineProperty({},"passive",{get:function(){return f=!0,!0}});window.addEventListener("test",h,h),window.removeEventListener("test",h,h)}catch(e){f=!1}var m=!!f&&{passive:!1},g=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},y=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),v(e,r)){var i=b(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},v=function(e,t){return"v"===e?g(t,"overflowY"):g(t,"overflowX")},b=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},w=function(e,t,n,r,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*r,l=n.target,c=t.contains(l),u=!1,d=s>0,p=0,f=0;do{var h=b(e,l),m=h[0],g=h[1]-h[2]-o*m;(m||g)&&v(e,l)&&(p+=g,f+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(p)||!i&&s>p)?u=!0:!d&&(i&&1>Math.abs(f)||!i&&-s>f)&&(u=!0),u},_=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},x=function(e){return[e.deltaX,e.deltaY]},E=function(e){return e&&"current"in e?e.current:e},S=0,k=[],C=(0,u.L)(s,function(e){var t=i.useRef([]),n=i.useRef([0,0]),a=i.useRef(),o=i.useState(S++)[0],s=i.useState(p.Ws)[0],l=i.useRef(e);i.useEffect(function(){l.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,r.ev)([e.lockRef.current],(e.shards||[]).map(E),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var r,i=_(e),o=n.current,s="deltaX"in e?e.deltaX:o[0]-i[0],c="deltaY"in e?e.deltaY:o[1]-i[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=y(d,u);if(!p)return!0;
460if(p?r=d:(r="v"===d?"h":"v",p=y(d,u)),!p)return!1;if(!a.current&&"changedTouches"in e&&(s||c)&&(a.current=r),!r)return!0;var f=a.current||r;return w(f,t,e,"h"===f?s:c,!0)},[]),u=i.useCallback(function(e){if(k.length&&k[k.length-1]===s){var n="deltaY"in e?x(e):_(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(l.current.shards||[]).map(E).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?c(e,i[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),f=i.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),h=i.useCallback(function(e){n.current=_(e),a.current=void 0},[]),g=i.useCallback(function(t){f(t.type,x(t),t.target,c(t,e.lockRef.current))},[]),v=i.useCallback(function(t){f(t.type,_(t),t.target,c(t,e.lockRef.current))},[]);i.useEffect(function(){return k.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",u,m),document.addEventListener("touchmove",u,m),document.addEventListener("touchstart",h,m),function(){k=k.filter(function(e){return e!==s}),document.removeEventListener("wheel",u,m),document.removeEventListener("touchmove",u,m),document.removeEventListener("touchstart",h,m)}},[]);var b=e.removeScrollBar,C=e.inert;return i.createElement(i.Fragment,null,C?i.createElement(s,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,b?i.createElement(d.jp,{gapMode:e.gapMode}):null)}),I=i.forwardRef(function(e,t){return i.createElement(c,(0,r.pi)({},e,{ref:t,sideCar:C}))});I.classNames=c.classNames;var A=I},10632:function(e,t,n){"use strict";n.d(t,{Ws:function(){return s}});var r,i=n(75271),a=function(){var e=0,t=null;return{add:function(i){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var a,o;(a=t).styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},o=function(){var e=a();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},s=function(){var e=o();return function(t){return e(t.styles,t.dynamic),null}}},30695:function(e,t,n){"use strict";n.d(t,{ZA:function(){return a},Di:function(){return i},Ci:function(){return eD},OG:function(){return o},SA:function(){return e$}});var r,i,a=["MO","TU","WE","TH","FR","SA","SU"],o=function(){function e(e,t){if(0===t)throw Error("Can't create weekday with n == 0");this.weekday=e,this.n=t}return e.fromStr=function(t){return new e(a.indexOf(t))},e.prototype.nth=function(t){return this.n===t?this:new e(this.weekday,t)},e.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},e.prototype.toString=function(){var e=a[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},e.prototype.getJsWeekday=function(){return 6===this.weekday?0:this.weekday+1},e}(),s=function(e){return null!=e},l=function(e){return"number"==typeof e},c=function(e){return"string"==typeof e&&a.includes(e)},u=Array.isArray,d=function(e,t){void 0===t&&(t=e),1==arguments.length&&(t=e,e=0);for(var n=[],r=e;r<t;r++)n.push(r);return n},p=function(e,t){var n=0,r=[];if(u(e))for(;n<t;n++)r[n]=[].concat(e);else for(;n<t;n++)r[n]=e;return r};function f(e,t,n){void 0===n&&(n=" ");var r=String(e);return(t>>=0,r.length>t)?String(r):((t-=r.length)>n.length&&(n+=p(n,t/n.length)),n.slice(0,t)+String(r))}var h=function(e,t,n){var r=e.split(t);return n?r.slice(0,n).concat([r.slice(n).join(t)]):r},m=function(e,t){var n=e%t;return n*t<0?n+t:n},g=function(e,t){return{div:Math.floor(e/t),mod:m(e,t)}},y=function(e){return!s(e)||0===e.length},v=function(e){return!y(e)},b=function(e,t){return v(e)&&-1!==e.indexOf(t)},w=function(e,t,n,r,i,a){return void 0===r&&(r=0),void 0===i&&(i=0),void 0===a&&(a=0),new Date(Date.UTC(e,t-1,n,r,i,a))},_=[31,28,31,30,31,30,31,31,30,31,30,31],x=w(1970,1,1),E=[6,0,1,2,3,4,5],S=function(e){return e%4==0&&e%100!=0||e%400==0},k=function(e){return e instanceof Date},C=function(e){return k(e)&&!isNaN(e.getTime())},I=function(e){return Math.round((e.getTime()-x.getTime())/864e5)},A=function(e){return new Date(x.getTime()+864e5*e)},T=function(e){var t=e.getUTCMonth();return 1===t&&S(e.getUTCFullYear())?29:_[t]},R=function(e){return E[e.getUTCDay()]},N=function(e,t){var n=w(e,t+1,1);return[R(n),T(n)]},O=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},P=function(e){return new Date(e.getTime())},D=function(e){for(var t=[],n=0;n<e.length;
460n++)t.push(P(e[n]));return t},M=function(e){e.sort(function(e,t){return e.getTime()-t.getTime()})},$=function(e,t){void 0===t&&(t=!0);var n=new Date(e);return[f(n.getUTCFullYear().toString(),4,"0"),f(n.getUTCMonth()+1,2,"0"),f(n.getUTCDate(),2,"0"),"T",f(n.getUTCHours(),2,"0"),f(n.getUTCMinutes(),2,"0"),f(n.getUTCSeconds(),2,"0"),t?"Z":""].join("")},j=function(e){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(e);if(!t)throw Error("Invalid UNTIL value: ".concat(e));return new Date(Date.UTC(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10),parseInt(t[5],10)||0,parseInt(t[6],10)||0,parseInt(t[7],10)||0))},L=function(e,t){return e.toLocaleString("sv-SE",{timeZone:t}).replace(" ","T")+"Z"},F=function(e,t){var n=new Date(L(e,Intl.DateTimeFormat().resolvedOptions().timeZone)),r=new Date(L(e,null!=t?t:"UTC")).getTime()-n.getTime();return new Date(e.getTime()-r)},B=function(){function e(e,t){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=e,this.args=t,"between"===e?(this.maxDate=t.inc?t.before:new Date(t.before.getTime()-1),this.minDate=t.inc?t.after:new Date(t.after.getTime()+1)):"before"===e?this.maxDate=t.inc?t.dt:new Date(t.dt.getTime()-1):"after"===e&&(this.minDate=t.inc?t.dt:new Date(t.dt.getTime()+1))}return e.prototype.accept=function(e){++this.total;var t=this.minDate&&e<this.minDate,n=this.maxDate&&e>this.maxDate;if("between"===this.method){if(t)return!0;if(n)return!1}else if("before"===this.method){if(n)return!1}else if("after"===this.method)return!!t||(this.add(e),!1);return this.add(e)},e.prototype.add=function(e){return this._result.push(e),!0},e.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;default:return e.length?e[e.length-1]:null}},e.prototype.clone=function(){return new e(this.method,this.args)},e}(),U=n(15767),z=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.iterator=r,i}return(0,U.ZT)(t,e),t.prototype.add=function(e){return!!this.iterator(e,this._result.length)&&(this._result.push(e),!0)},t}(B),Z={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},V=function(e,t){return -1!==e.indexOf(t)},q=function(e){return e.toString()},W=function(e,t,n){return"".concat(t," ").concat(n,", ").concat(e)},G=function(){function e(e,t,n,r){if(void 0===t&&(t=q),void 0===n&&(n=Z),void 0===r&&(r=W),this.text=[],this.language=n||Z,this.gettext=t,this.dateFormatter=r,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var i=[].concat(this.options.bymonthday),a=[].concat(this.options.bynmonthday);i.sort(function(e,t){return e-t}),a.sort(function(e,t){return t-e}),this.bymonthday=i.concat(a),this.bymonthday.length||(this.bymonthday=null)}if(s(this.origOptions.byweekday)){var o=u(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],l=String(o);this.byweekday={allWeeks:o.filter(function(e){return!e.n}),someWeeks:o.filter(function(e){return!!e.n}),isWeekdays:-1!==l.indexOf("MO")&&-1!==l.indexOf("TU")&&-1!==l.indexOf("WE")&&-1!==l.indexOf("TH")&&-1!==l.indexOf("FR")&&-1===l.indexOf("SA")&&-1===l.indexOf("SU"),isEveryDay:-1!==l.indexOf("MO")&&-1!==l.indexOf("TU")&&-1!==l.indexOf("WE")&&-1!==l.indexOf("TH")&&-1!==l.indexOf("FR")&&-1!==l.indexOf("SA")&&-1!==l.indexOf("SU")};var c=function(e,t){return e.weekday-t.weekday};this.byweekday.allWeeks.sort(c),this.byweekday.someWeeks.sort(c),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}
460return e.isFullyConvertible=function(t){if(!(t.options.freq in e.IMPLEMENTED)||t.origOptions.until&&t.origOptions.count)return!1;for(var n in t.origOptions){if(V(["dtstart","tzid","wkst","freq"],n))break;if(!V(e.IMPLEMENTED[t.options.freq],n))return!1}return!0},e.prototype.isFullyConvertible=function(){return e.isFullyConvertible(this.rrule)},e.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in e.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[eD.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var n=this.options.until;this.add(this.dateFormatter(n.getUTCFullYear(),this.language.monthNames[n.getUTCMonth()],n.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(t(this.plural(this.options.count)?"times":"time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},e.prototype.HOURLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"hours":"hour"))},e.prototype.MINUTELY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"minutes":"minute"))},e.prototype.DAILY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(e(this.plural(this.options.interval)?"weekdays":"weekday")):this.add(e(this.plural(this.options.interval)?"days":"day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},e.prototype.WEEKLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(e(this.plural(this.options.interval)?"weeks":"week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(e(this.plural(this.options.interval)?"weekdays":"weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(e(this.plural(this.options.interval)?"days":"day")):(1===this.options.interval&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.origOptions.byhour&&this._byhour())},e.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"months":"month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},e.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"years":"year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(e(this.plural(this.options.byweekno.length)?"weeks":"week")).add(this.list(this.options.byweekno,void 0,e("and")))},e.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},e.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},e.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},e.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},e.prototype.nth=function(e){e=parseInt(e.toString(),10);var t,n=this.gettext;if(-1===e)return n("last");var r=Math.abs(e);switch(r){case 1:case 21:case 31:t=r+n("st");break;
460case 2:case 22:t=r+n("nd");break;case 3:case 23:t=r+n("rd");break;default:t=r+n("th")}return e<0?t+" "+n("last"):t},e.prototype.monthtext=function(e){return this.language.monthNames[e-1]},e.prototype.weekdaytext=function(e){var t=l(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[t]},e.prototype.plural=function(e){return e%100!=1},e.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},e.prototype.list=function(e,t,n,r){var i=this;void 0===r&&(r=","),u(e)||(e=[e]),t=t||function(e){return e.toString()};var a=function(e){return t&&t.call(i,e)};return n?function(e,t,n){for(var r="",i=0;i<e.length;i++)0!==i&&(i===e.length-1?r+=" "+n+" ":r+=t+" "),r+=e[i];return r}(e.map(a),r,n):e.map(a).join(r+" ")},e}(),H=function(){function e(e){this.done=!0,this.rules=e}return e.prototype.start=function(e){return this.text=e,this.done=!1,this.nextSymbol()},e.prototype.isDone=function(){return this.done&&null===this.symbol},e.prototype.nextSymbol=function(){this.symbol=null,this.value=null;do{if(this.done)return!1;for(var e in t=null,this.rules){var t,n,r=(0,this.rules[e]).exec(this.text);r&&(null===t||r[0].length>t[0].length)&&(t=r,n=e)}if(null!=t&&(this.text=this.text.substr(t[0].length),""===this.text&&(this.done=!0)),null==t){this.done=!0,this.symbol=null,this.value=null;return}}while("SKIP"===n);return this.symbol=n,this.value=t,!0},e.prototype.accept=function(e){if(this.symbol===e){if(this.value){var t=this.value;return this.nextSymbol(),t}return this.nextSymbol(),!0}return!1},e.prototype.acceptNumber=function(){return this.accept("number")},e.prototype.expect=function(e){if(this.accept(e))return!0;throw Error("expected "+e+" but found "+this.symbol)},e}();function Y(e,t){void 0===t&&(t=Z);var n={},r=new H(t.tokens);if(!r.start(e))return null;return function(){r.expect("every");var e=r.acceptNumber();if(e&&(n.interval=parseInt(e[0],10)),r.isDone())throw Error("Unexpected end");switch(r.symbol){case"day(s)":n.freq=eD.DAILY,r.nextSymbol()&&(a(),c());break;case"weekday(s)":n.freq=eD.WEEKLY,n.byweekday=[eD.MO,eD.TU,eD.WE,eD.TH,eD.FR],r.nextSymbol(),a(),c();break;case"week(s)":n.freq=eD.WEEKLY,r.nextSymbol()&&(i(),a(),c());break;case"hour(s)":n.freq=eD.HOURLY,r.nextSymbol()&&(i(),c());break;case"minute(s)":n.freq=eD.MINUTELY,r.nextSymbol()&&(i(),c());break;case"month(s)":n.freq=eD.MONTHLY,r.nextSymbol()&&(i(),c());break;case"year(s)":n.freq=eD.YEARLY,r.nextSymbol()&&(i(),c());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":n.freq=eD.WEEKLY;var t=r.symbol.substr(0,2).toUpperCase();if(n.byweekday=[eD[t]],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw Error("Unexpected end");var u=s();if(!u)throw Error("Unexpected symbol "+r.symbol+", expected weekday");n.byweekday.push(eD[u]),r.nextSymbol()}a(),function(){r.accept("on"),r.accept("the");var e=l();if(e)for(n.bymonthday=[e],r.nextSymbol();r.accept("comma");){if(!(e=l()))throw Error("Unexpected symbol "+r.symbol+"; expected monthday");n.bymonthday.push(e),r.nextSymbol()}}(),c();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(n.freq=eD.YEARLY,n.bymonth=[o()],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw Error("Unexpected end");var d=o();if(!d)throw Error("Unexpected symbol "+r.symbol+", expected month");n.bymonth.push(d),r.nextSymbol()}i(),c();break;default:throw Error("Unknown symbol")}}(),n;function i(){var e=r.accept("on"),t=r.accept("the");if(e||t)do{var i=l(),a=s(),c=o();if(i)a?(r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(eD[a].nth(i))):(n.bymonthday||(n.bymonthday=[]),n.bymonthday.push(i),r.accept("day(s)"));else if(a)r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(eD[a]);else if("weekday(s)"===r.symbol)r.nextSymbol(),n.byweekday||(n.byweekday=[eD.MO,eD.TU,eD.WE,eD.TH,eD.FR]);else if("week(s)"===r.symbol){r.nextSymbol();var u=r.acceptNumber();if(!u)throw Error("Unexpected symbol "+r.symbol+", expected week number");for(n.byweekno=[parseInt(u[0],10)];r.accept("comma");){if(!(u=r.acceptNumber()))throw Error("Unexpected symbol "+r.symbol+"; expected monthday");n.byweekno.push(parseInt(u[0],10))}}else{if(!c)return;r.nextSymbol(),n.bymonth||(n.bymonth=[]),n.bymonth.push(c)}}while(r.accept("comma")||r.accept("the")||r.accept("on"))}function a(){if(r.accept("at"))do{var e=r.acceptNumber();if(!e)throw Error("Unexpected symbol "+r.symbol+", expected hour");for(n.byhour=[parseInt(e[0],10)];r.accept("comma");){if(!(e=r.acceptNumber()))throw Error("Unexpected symbol "+r.symbol+"; expected hour");n.byhour.push(parseInt(e[0],10))}}while(r.accept("comma")||r.accept("at"))}function o(){switch(r.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;
460case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function s(){switch(r.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return r.symbol.substr(0,2).toUpperCase();default:return!1}}function l(){switch(r.symbol){case"last":return r.nextSymbol(),-1;case"first":return r.nextSymbol(),1;case"second":return r.nextSymbol(),r.accept("last")?-2:2;case"third":return r.nextSymbol(),r.accept("last")?-3:3;case"nth":var e=parseInt(r.value[1],10);if(e<-366||e>366)throw Error("Nth out of range: "+e);return r.nextSymbol(),r.accept("last")?-e:e;default:return!1}}function c(){if("until"===r.symbol){var e=Date.parse(r.text);if(!e)throw Error("Cannot parse until date:"+r.text);n.until=new Date(e)}else r.accept("for")&&(n.count=parseInt(r.value[0],10),r.expect("number"))}}function K(e){return e<i.HOURLY}(r=i||(i={}))[r.YEARLY=0]="YEARLY",r[r.MONTHLY=1]="MONTHLY",r[r.WEEKLY=2]="WEEKLY",r[r.DAILY=3]="DAILY",r[r.HOURLY=4]="HOURLY",r[r.MINUTELY=5]="MINUTELY",r[r.SECONDLY=6]="SECONDLY";var J=["count","until","interval","byweekday","bymonthday","bymonth"];
vendor: 4,089 bytes, line 460
460G.IMPLEMENTED=[],G.IMPLEMENTED[i.HOURLY]=J,G.IMPLEMENTED[i.MINUTELY]=J,G.IMPLEMENTED[i.DAILY]=["byhour"].concat(J),G.IMPLEMENTED[i.WEEKLY]=J,G.IMPLEMENTED[i.MONTHLY]=J,G.IMPLEMENTED[i.YEARLY]=["byweekno","byyearday"].concat(J);var X=G.isFullyConvertible,Q=function(){function e(e,t,n,r){this.hour=e,this.minute=t,this.second=n,this.millisecond=r||0}return e.prototype.getHours=function(){return this.hour},e.prototype.getMinutes=function(){return this.minute},e.prototype.getSeconds=function(){return this.second},e.prototype.getMilliseconds=function(){return this.millisecond},e.prototype.getTime=function(){return(3600*this.hour+60*this.minute+this.second)*1e3+this.millisecond},e}(),ee=function(e){function t(t,n,r,i,a,o,s){var l=e.call(this,i,a,o,s)||this;return l.year=t,l.month=n,l.day=r,l}return(0,U.ZT)(t,e),t.fromDate=function(e){return new this(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.valueOf()%1e3)},t.prototype.getWeekday=function(){return R(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(e){this.year+=e},t.prototype.addMonths=function(e){if(this.month+=e,this.month>12){var t=Math.floor(this.month/12),n=m(this.month,12);this.month=n,this.year+=t,0===this.month&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(e,t){t>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-t))+7*e:this.day+=-(this.getWeekday()-t)+7*e,this.fixDay()},t.prototype.addDaily=function(e){this.day+=e,this.fixDay()},t.prototype.addHours=function(e,t,n){for(t&&(this.hour+=Math.floor((23-this.hour)/e)*e);;){this.hour+=e;var r=g(this.hour,24),i=r.div,a=r.mod;if(i&&(this.hour=a,this.addDaily(i)),y(n)||b(n,this.hour))break}},t.prototype.addMinutes=function(e,t,n,r){for(t&&(this.minute+=Math.floor((1439-(60*this.hour+this.minute))/e)*e);;){this.minute+=e;var i=g(this.minute,60),a=i.div,o=i.mod;if(a&&(this.minute=o,this.addHours(a,!1,n)),(y(n)||b(n,this.hour))&&(y(r)||b(r,this.minute)))break}},t.prototype.addSeconds=function(e,t,n,r,i){for(t&&(this.second+=Math.floor((86399-(3600*this.hour+60*this.minute+this.second))/e)*e);;){this.second+=e;var a=g(this.second,60),o=a.div,s=a.mod;if(o&&(this.second=s,this.addMinutes(o,!1,n,r)),(y(n)||b(n,this.hour))&&(y(r)||b(r,this.minute))&&(y(i)||b(i,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var e=N(this.year,this.month-1)[1];if(!(this.day<=e))for(;this.day>e;){if(this.day-=e,++this.month,13===this.month&&(this.month=1,++this.year,this.year>9999))return;e=N(this.year,this.month-1)[1]}}},t.prototype.add=function(e,t){var n=e.freq,r=e.interval,a=e.wkst,o=e.byhour,s=e.byminute,l=e.bysecond;switch(n){case i.YEARLY:return this.addYears(r);case i.MONTHLY:return this.addMonths(r);case i.WEEKLY:return this.addWeekly(r,a);case i.DAILY:return this.addDaily(r);case i.HOURLY:return this.addHours(r,t,o);case i.MINUTELY:return this.addMinutes(r,t,o,s);case i.SECONDLY:return this.addSeconds(r,t,o,s,l)}},t}(Q);function et(e){for(var t=[],n=Object.keys(e),r=0;r<n.length;r++){var i=n[r];b(eP,i)||t.push(i),k(e[i])&&!C(e[i])&&t.push(i)}if(t.length)throw Error("Invalid options: "+t.join(", "));return(0,U.pi)({},e)}function en(e){var t=e.split("\n").map(ei).filter(function(e){return null!==e});return(0,U.pi)((0,U.pi)({},t[0]),t[1])}function er(e){var t={},n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!n)return t;var r=n[1],i=n[2];return r&&(t.tzid=r),t.dtstart=j(i),t}function ei(e){if(!(e=e.replace(/^\s+|\s+$/,"")).length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return ea(e);var n=t[1];switch(n.toUpperCase()){case"RRULE":case"EXRULE":return ea(e);case"DTSTART":return er(e);default:throw Error("Unsupported RFC prop ".concat(n," in ").concat(e))}}function ea(e){var t=er(e.replace(/^RRULE:/i,""));
460return e.replace(/^(?:RRULE|EXRULE):/i,"").split(";").forEach(function(n){var r=n.split("="),a=r[0],s=r[1];switch(a.toUpperCase()){case"FREQ":t.freq=i[s.toUpperCase()];break;case"WKST":t.wkst=eN[s.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var l=-1!==s.indexOf(",")?s.split(",").map(eo):eo(s);t[a.toLowerCase()]=l;break;case"BYWEEKDAY":case"BYDAY":t.byweekday=s.split(",").map(function(e){if(2===e.length)return eN[e];var t=e.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!t||t.length<3)throw SyntaxError("Invalid weekday string: ".concat(e));var n=Number(t[1]);return new o(eN[t[2]].weekday,n)});break;case"DTSTART":case"TZID":var c=er(e);t.tzid=c.tzid,t.dtstart=c.dtstart;break;case"UNTIL":t.until=j(s);break;case"BYEASTER":t.byeaster=Number(s);break;default:throw Error("Unknown RRULE property '"+a+"'")}}),t}function eo(e){return/^[+-]?\d+$/.test(e)?Number(e):e}var es=function(){function e(e,t){if(isNaN(e.getTime()))throw RangeError("Invalid date passed to DateWithZone");this.date=e,this.tzid=t}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||"UTC"===this.tzid.toUpperCase()},enumerable:!1,configurable:!0}
460),e.prototype.toString=function(){var e=$(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(e):";TZID=".concat(this.tzid,":").concat(e)},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){return this.isUTC?this.date:F(this.date,this.tzid)},e}();function el(e){for(var t=[],n="",r=Object.keys(e),i=Object.keys(eO),a=0;a<r.length;a++)if("tzid"!==r[a]&&b(i,r[a])){var c,d=r[a].toUpperCase(),p=e[r[a]],f="";if(!(!s(p)||u(p)&&!p.length)){switch(d){case"FREQ":f=eD.FREQUENCIES[e.freq];break;case"WKST":f=l(p)?new o(p).toString():p.toString();break;case"BYWEEKDAY":d="BYDAY",f=(u(p)?p:[p]).map(function(e){return e instanceof o?e:u(e)?new o(e[0],e[1]):new o(e)}).toString();break;case"DTSTART":c=e.tzid,n=p?"DTSTART"+new es(new Date(p),c).toString():"";break;case"UNTIL":f=$(p,!e.tzid);break;default:if(u(p)){for(var h=[],m=0;m<p.length;m++)h[m]=String(p[m]);f=h.toString()}else f=String(p)}f&&t.push([d,f])}}var g=t.map(function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n.toString())}).join(";"),y="";return""!==g&&(y="RRULE:".concat(g)),[n,y].filter(function(e){return!!e}).join("\n")}var ec=function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(e,t,n){t&&(t=t instanceof Date?P(t):D(t)),"all"===e?this.all=t:(n._value=t,this[e].push(n))},e.prototype._cacheGet=function(e,t){var n=!1,r=t?Object.keys(t):[],i=this[e];if("all"===e)n=this.all;else if(u(i))for(var a=0;a<i.length;a++){var o=i[a];if(!(r.length&&function(e){for(var n=0;n<r.length;n++){var i=r[n];if(!function(e,t){return Array.isArray(e)?!!Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return e.getTime()===t[n].getTime()}):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():e===t}(t[i],e[i]))return!0}return!1}(o))){n=o._value;break}}if(!n&&this.all){for(var s=new B(e,t),a=0;a<this.all.length&&s.accept(this.all[a]);a++);n=s.getValue(),this._cacheAdd(e,n,t)}return u(n)?D(n):n instanceof Date?P(n):n},e}(),eu=(0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)([],p(1,31),!0),p(2,28),!0),p(3,31),!0),p(4,30),!0),p(5,31),!0),p(6,30),!0),p(7,31),!0),p(8,31),!0),p(9,30),!0),p(10,31),!0),p(11,30),!0),p(12,31),!0),p(1,7),!0),ed=(0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)([],p(1,31),!0),p(2,29),!0),p(3,31),!0),p(4,30),!0),p(5,31),!0),p(6,30),!0),p(7,31),!0),p(8,31),!0),p(9,30),!0),p(10,31),!0),p(11,30),!0),p(12,31),!0),p(1,7),!0),ep=d(1,29),ef=d(1,30),eh=d(1,31),em=d(1,32),eg=(0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)([],em,!0),ef,!0),em,!0),eh,!0),em,!0),eh,!0),em,!0),em,!0),eh,!0),em,!0),eh,!0),em,!0),em.slice(0,7),!0),ey=(0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)([],em,!0),ep,!0),em,!0),eh,!0),em,!0),eh,!0),em,!0),em,!0),eh,!0),em,!0),eh,!0),em,!0),em.slice(0,7),!0),ev=d(-28,0),eb=d(-29,0),ew=d(-30,0),e_=d(-31,0),ex=(0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)([],e_,!0),eb,!0),e_,!0),ew,!0),e_,!0),ew,!0),e_,!0),e_,!0),ew,!0),e_,!0),ew,!0),e_,!0),e_.slice(0,7),!0),eE=(0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)((0,U.ev)([],e_,!0),ev,!0),e_,!0),ew,!0),e_,!0),ew,!0),e_,!0),e_,!0),ew,!0),e_,!0),ew,!0),e_,!0),e_.slice(0,7),!0),eS=[0,31,60,91,121,152,182,213,244,274,305,335,366],ek=[0,31,59,90,120,151,181,212,243,273,304,334,365],eC=function(){for(var e=[],t=0;t<55;t++)e=e.concat(d(7));return e}(),eI=function(){function e(e){this.options=e}return e.prototype.rebuild=function(e,t){var n,r,i,a,o,l,c,u=this.options;if(e!==this.lastyear&&(this.yearinfo=function(e,t){var n,r,i,a,o=w(e,1,1),s=S(e)?366:365,l=S(e+1)?366:365,c=I(o),u=R(o),d=(0,U.pi)((0,U.pi)({yearlen:s,nextyearlen:l,yearordinal:c,yearweekday:u},(n=S(e)?366:365,r=R(w(e,1,1)),365===n?{mmask:eu,mdaymask:ey,nmdaymask:eE,wdaymask:eC.slice(r),mrange:ek}:{mmask:ed,mdaymask:eg,nmdaymask:ex,wdaymask:eC.slice(r),mrange:eS})),{wnomask:null});if(y(t.byweekno))return d;d.wnomask=p(0,s+7);var f=i=m(7-u+t.wkst,7);f>=4?(f=0,a=d.yearlen+m(u-t.wkst,7)):a=s-f;
460for(var h=Math.floor(Math.floor(a/7)+m(a,7)/4),g=0;g<t.byweekno.length;g++){var v=t.byweekno[g];if(v<0&&(v+=h+1),v>0&&v<=h){var _=void 0;v>1?(_=f+(v-1)*7,f!==i&&(_-=7-i)):_=f;for(var x=0;x<7&&(d.wnomask[_]=1,_++,d.wdaymask[_]!==t.wkst);x++);}}if(b(t.byweekno,1)){var _=f+7*h;if(f!==i&&(_-=7-i),_<s)for(var g=0;g<7&&(d.wnomask[_]=1,_+=1,d.wdaymask[_]!==t.wkst);g++);}if(f){var E=void 0;if(b(t.byweekno,-1))E=-1;else{var k=R(w(e-1,1,1)),C=m(7-k.valueOf()+t.wkst,7),A=S(e-1)?366:365,T=void 0;C>=4?(C=0,T=A+m(k-t.wkst,7)):T=s-f,E=Math.floor(52+m(T,7)/4)}if(b(t.byweekno,E))for(var _=0;_<f;_++)d.wnomask[_]=1}return d}(e,u)),v(u.bynweekday)&&(t!==this.lastmonth||e!==this.lastyear)){var d=this.yearinfo,f=d.yearlen,h=d.mrange,g=d.wdaymask;this.monthinfo=function(e,t,n,r,i,a){var o={lastyear:e,lastmonth:t,nwdaymask:[]},s=[];if(a.freq===eD.YEARLY){if(y(a.bymonth))s=[[0,n]];else for(var l=0;l<a.bymonth.length;l++)t=a.bymonth[l],s.push(r.slice(t-1,t+1))}else a.freq===eD.MONTHLY&&(s=[r.slice(t-1,t+1)]);if(y(s))return o;o.nwdaymask=p(0,n);for(var l=0;l<s.length;l++)for(var c=s[l],u=c[0],d=c[1]-1,f=0;f<a.bynweekday.length;f++){var h=void 0,g=a.bynweekday[f],v=g[0],b=g[1];b<0?(h=d+(b+1)*7,h-=m(i[h]-v,7)):(h=u+(b-1)*7,h+=m(7-i[h]+v,7)),u<=h&&h<=d&&(o.nwdaymask[h]=1)}return o}(e,t,f,h,g,u)}s(u.byeaster)&&(this.eastermask=(void 0===(n=u.byeaster)&&(n=0),r=e%19,i=Math.floor(e/100),a=e%100,o=Math.floor(19*r+i-Math.floor(i/4)-Math.floor((i-Math.floor((i+8)/25)+1)/3)+15)%30,l=Math.floor(32+i%4*2+2*Math.floor(a/4)-o-a%4)%7,c=Math.floor((r+11*o+22*l)/451),[Math.ceil((Date.UTC(e,Math.floor((o+l-7*c+114)/31)-1,(o+l-7*c+114)%31+1+n)-Date.UTC(e,0,1))/864e5)]))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),e.prototype.ydayset=function(){return[d(this.yearlen),0,this.yearlen]},e.prototype.mdayset=function(e,t){for(var n=this.mrange[t-1],r=this.mrange[t],i=p(null,this.yearlen),a=n;a<r;a++)i[a]=a;return[i,n,r]},e.prototype.wdayset=function(e,t,n){for(var r=p(null,this.yearlen+7),i=I(w(e,t,n))-this.yearordinal,a=i,o=0;o<7&&(r[i]=i,++i,this.wdaymask[i]!==this.options.wkst);o++);return[r,a,i]},e.prototype.ddayset=function(e,t,n){var r=p(null,this.yearlen),i=I(w(e,t,n))-this.yearordinal;return r[i]=i,[r,i,i+1]},e.prototype.htimeset=function(e,t,n,r){var i=this,a=[];return this.options.byminute.forEach(function(t){a=a.concat(i.mtimeset(e,t,n,r))}),M(a),a},e.prototype.mtimeset=function(e,t,n,r){var i=this.options.bysecond.map(function(n){return new Q(e,t,n,r)});return M(i),i},e.prototype.stimeset=function(e,t,n,r){return[new Q(e,t,n,r)]},e.prototype.getdayset=function(e){switch(e){case i.YEARLY:return this.ydayset.bind(this);case i.MONTHLY:return this.mdayset.bind(this);case i.WEEKLY:return this.wdayset.bind(this);case i.DAILY:default:return this.ddayset.bind(this)}},e.prototype.gettimeset=function(e){switch(e){case i.HOURLY:return this.htimeset.bind(this);case i.MINUTELY:return this.mtimeset.bind(this);case i.SECONDLY:return this.stimeset.bind(this)}},e}();function eA(e,t){var n,r,i,a,o=t.dtstart,l=t.freq,c=t.interval,u=t.until,d=t.bysetpos,p=t.count;if(0===p||0===c)return eR(e);var f=ee.fromDate(o),h=new eI(t);h.rebuild(f.year,f.month);for(var g=(n=t.freq,r=t.byhour,i=t.byminute,a=t.bysecond,K(n)?function(e){var t=e.dtstart.getTime()%1e3;if(!K(e.freq))return[];var n=[];return e.byhour.forEach(function(r){e.byminute.forEach(function(i){e.bysecond.forEac
460h(function(e){n.push(new Q(r,i,e,t))})})}),n}(t):n>=eD.HOURLY&&v(r)&&!b(r,f.hour)||n>=eD.MINUTELY&&v(i)&&!b(i,f.minute)||n>=eD.SECONDLY&&v(a)&&!b(a,f.second)?[]:h.gettimeset(n)(f.hour,f.minute,f.second,f.millisecond));;){var y=h.getdayset(l)(f.year,f.month,f.day),w=y[0],_=y[1],x=y[2],E=function(e,t,n,r,i){for(var a=!1,o=t;o<n;o++){var s=e[o];(a=function(e,t,n){var r=n.bymonth,i=n.byweekno,a=n.byweekday,o=n.byeaster,s=n.bymonthday,l=n.bynmonthday,c=n.byyearday;return v(r)&&!b(r,e.mmask[t])||v(i)&&!e.wnomask[t]||v(a)&&!b(a,e.wdaymask[t])||v(e.nwdaymask)&&!e.nwdaymask[t]||null!==o&&!b(e.eastermask,t)||(v(s)||v(l))&&!b(s,e.mdaymask[t])&&!b(l,e.nmdaymask[t])||v(c)&&(t<e.yearlen&&!b(c,t+1)&&!b(c,-e.yearlen+t)||t>=e.yearlen&&!b(c,t+1-e.yearlen)&&!b(c,-e.nextyearlen+t-e.yearlen))}(r,s,i))&&(e[s]=null)}return a}(w,_,x,h,t);if(v(d))for(var S=function(e,t,n,r,i,a){for(var o=[],l=0;l<e.length;l++){var c=void 0,u=void 0,d=e[l];d<0?(c=Math.floor(d/t.length),u=m(d,t.length)):(c=Math.floor((d-1)/t.length),u=m(d-1,t.length));for(var p=[],f=n;f<r;f++){var h=a[f];s(h)&&p.push(h)}var g=void 0;g=c<0?p.slice(c)[0]:p[c];var y=t[u],v=O(A(i.yearordinal+g),y);b(o,v)||o.push(v)}return M(o),o}(d,g,_,x,h,w),k=0;k<S.length;k++){var C=S[k];if(u&&C>u)return eR(e);if(C>=o){var I=eT(C,t);if(!e.accept(I)||p&&!--p)return eR(e)}}else for(var k=_;k<x;k++){var T=w[k];if(s(T))for(var R=A(h.yearordinal+T),N=0;N<g.length;N++){var C=O(R,g[N]);if(u&&C>u)return eR(e);if(C>=o){var I=eT(C,t);if(!e.accept(I)||p&&!--p)return eR(e)}}}if(0===t.interval||(f.add(t,E),f.year>9999))return eR(e);K(l)||(g=h.gettimeset(l)(f.hour,f.minute,f.second,0)),h.rebuild(f.year,f.month)}}function eT(e,t){return new es(e,t.tzid).rezonedDate()}function eR(e){return e.getValue()}var eN={MO:new o(0),TU:new o(1),WE:new o(2),TH:new o(3),FR:new o(4),SA:new o(5),SU:new o(6)},eO={freq:i.YEARLY,dtstart:null,interval:1,wkst:eN.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},eP=Object.keys(eO),eD=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t=!1),this._cache=t?null:new ec,this.origOptions=et(e);var n=function(e){var t=(0,U.pi)((0,U.pi)({},eO),et(e));if(s(t.byeaster)&&(t.freq=eD.YEARLY),!(s(t.freq)&&eD.FREQUENCIES[t.freq]))throw Error("Invalid frequency: ".concat(t.freq," ").concat(e.freq));if(t.dtstart||(t.dtstart=new Date(new Date().setMilliseconds(0))),s(t.wkst)?l(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=eD.MO.weekday,s(t.bysetpos)){l(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var n=0;n<t.bysetpos.length;n++){var r=t.bysetpos[n];if(0===r||!(r>=-366&&r<=366))throw Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(t.byweekno||v(t.byweekno)||v(t.byyearday)||t.bymonthday||v(t.bymonthday)||s(t.byweekday)||s(t.byeaster)))switch(t.freq){case eD.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case eD.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case eD.WEEKLY:t.byweekday=[R(t.dtstart)]}if(s(t.bymonth)&&!u(t.bymonth)&&(t.bymonth=[t.bymonth]),s(t.byyearday)&&!u(t.byyearday)&&l(t.byyearday)&&(t.byyearday=[t.byyearday]),s(t.bymonthday)){if(u(t.bymonthday)){for(var i=[],a=[],n=0;n<t.bymonthday.length;n++){var r=t.bymonthday[n];r>0?i.push(r):r<0&&a.push(r)}t.bymonthday=i,t.bynmonthday=a}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday])}else t.bymonthday=[],t.bynmonthday=[];if(s(t.byweekno)&&!u(t.byweekno)&&(t.byweekno=[t.byweekno]),s(t.byweekday)){if(l(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(c(t.byweekday))t.byweekday=[o.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof o)!t.byweekday.n||t.freq>eD.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{for(var d=[],p=[],n=0;n<t.byweekday.length;n++){var f=t.byweekday[n];if(l(f)){d.push(f);continue}if(c(f)){d.push(o.fromStr(f).weekday);continue}!f.n||t.freq>eD.MONTHLY?d.push(f.weekday):p.push([f.weekday,f.n])}t.byweekday=v(d)?d:null,t.bynweekday=v(p)?p:null}}else t.bynweekday=null;return s(t.byhour)?l(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<eD.HOURLY?[t.dtstart.getUTCHours()]:null,s(t.byminute)?l(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<eD.MINUTELY?[t.dtstart.getUTCMinutes()]:null,s(t.bysecond)?l(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<eD.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}(e).parsedOptions;this.options=n}return e.parseText=function(e,t){return Y(e,t)},e.fromText=function(e,t){var n;return void 0===(n=t)&&(n=Z),new eD(Y(e,n)||void 0)},e.fromString=function(t){return new e(e.parseString(t)||void 0)},e.prototype._iter=function(e){return eA(e,this.options)},e.prototype._cacheGet=function(e,t){return!!this._cache&&this._cache._cacheGet(e,t)},e.prototype._cacheAdd=function(e,t,n){if(this._cache)return this._cache._cacheAdd(e,t,n
460)},e.prototype.all=function(e){if(e)return this._iter(new z("all",{},e));var t=this._cacheGet("all");return!1===t&&(t=this._iter(new B("all",{})),this._cacheAdd("all",t)),t},e.prototype.between=function(e,t,n,r){if(void 0===n&&(n=!1),!C(e)||!C(t))throw Error("Invalid date passed in to RRule.between");var i={before:t,after:e,inc:n};if(r)return this._iter(new z("between",i,r));var a=this._cacheGet("between",i);return!1===a&&(a=this._iter(new B("between",i)),this._cacheAdd("between",a,i)),a},e.prototype.before=function(e,t){if(void 0===t&&(t=!1),!C(e))throw Error("Invalid date passed in to RRule.before");var n={dt:e,inc:t},r=this._cacheGet("before",n);return!1===r&&(r=this._iter(new B("before",n)),this._cacheAdd("before",r,n)),r},e.prototype.after=function(e,t){if(void 0===t&&(t=!1),!C(e))throw Error("Invalid date passed in to RRule.after");var n={dt:e,inc:t},r=this._cacheGet("after",n);return!1===r&&(r=this._iter(new B("after",n)),this._cacheAdd("after",r,n)),r},e.prototype.count=function(){return this.all().length},e.prototype.toString=function(){return el(this.origOptions)},e.prototype.toText=function(e,t,n){return new G(this,e,t,n).toString()},e.prototype.isFullyConvertibleToText=function(){return X(this)},e.prototype.clone=function(){return new e(this.origOptions)},e.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],e.YEARLY=i.YEARLY,e.MONTHLY=i.MONTHLY,e.WEEKLY=i.WEEKLY,e.DAILY=i.DAILY,e.HOURLY=i.HOURLY,e.MINUTELY=i.MINUTELY,e.SECONDLY=i.SECONDLY,e.MO=eN.MO,e.TU=eN.TU,e.WE=eN.WE,e.TH=eN.TH,e.FR=eN.FR,e.SA=eN.SA,e.SU=eN.SU,e.parseString=en,e.optionsToString=el,e}(),eM={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function e$(e,t){return void 0===t&&(t={}),function(e,t){var n,r,i,a,o,s,l,c=(n=[],r=[],i=[],a=[],s=(o=er(e)).dtstart,l=o.tzid,(function(e,t){if(void 0===t&&(t=!1),!(e=e&&e.trim()))throw Error("Invalid empty string");if(!t)return e.split(/\s/);for(var n=e.split("\n"),r=0;r<n.length;){var i=n[r]=n[r].replace(/\s+$/g,"");i?r>0&&" "===i[0]?(n[r-1]+=i.slice(1),n.splice(r,1)):r+=1:n.splice(r,1)}return n})(e,t.unfold).forEach(function(e){if(e){var t,o=function(e){var t=function(e){if(-1===e.indexOf(":"))return{name:"RRULE",value:e};var t=h(e,":",1);return{name:t[0],value:t[1]}}(e),n=t.name,r=t.value,i=n.split(";");if(!i)throw Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:r}}(e),s=o.name,c=o.parms,u=o.value;switch(s.toUpperCase()){case"RRULE":if(c.length)throw Error("unsupported RRULE parm: ".concat(c.join(",")));n.push(en(e));break;case"RDATE":var d=(null!==(t=/RDATE(?:;TZID=([^:=]+))?/i.exec(e))&&void 0!==t?t:[])[1];d&&!l&&(l=d),r=r.concat(eL(u,c));break;case"EXRULE":if(c.length)throw Error("unsupported EXRULE parm: ".concat(c.join(",")));i.push(en(u));break;case"EXDATE":a=a.concat(eL(u,c));break;case"DTSTART":break;default:throw Error("unsupported property: "+s)}}}),{dtstart:s,tzid:l,rrulevals:n,rdatevals:r,exrulevals:i,exdatevals:a}),u=c.rrulevals,d=c.rdatevals,p=c.exrulevals,f=c.exdatevals,m=c.dtstart,g=c.tzid,y=!1===t.cache;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||u.length>1||d.length||p.length||f.length){var v=new eB(y);return v.dtstart(m),v.tzid(g||void 0),u.forEach(function(e){v.rrule(new eD(ej(e,m,g),y))}),d.forEach(function(e){v.rdate(e)}),p.forEach(function(e){v.exrule(new eD(ej(e,m,g),y))}),f.forEach(function(e){v.exdate(e)}),t.compatible&&t.dtstart&&v.rdate(m),v}var b=u[0]||{};return new eD(ej(b,b.dtstart||t.dtstart||m,b.tzid||t.tzid||g),y)}(e,function(e){var t=[],n=Object.keys(e),r=Object.keys(eM);if(n.forEach(function(e){b(r,e)||t.push(e)}),t.length)throw Error("Invalid options: "+t.join(", "));return(0,U.pi)((0,U.pi)({},eM),e)}(t))}function ej(e,t,n){return(0,U.pi)((0,U.pi)({},e),{dtstart:t,tzid:n})}function eL(e,t){return!function(e){e.forEach(function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw Error("unsupported RDATE/EXDATE parm: "+e)})}(t),e.split(",").map(function(e){return j(e)})}function eF(e){var t=this;return function(n){if(void 0!==n&&(t["_".concat(e)]=n),void 0!==t["_".concat(e)
460])return t["_".concat(e)];for(var r=0;r<t._rrule.length;r++){var i=t._rrule[r].origOptions[e];if(i)return i}}}var eB=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this,{},t)||this;return n.dtstart=eF.apply(n,["dtstart"]),n.tzid=eF.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return(0,U.ZT)(t,e),t.prototype._iter=function(e){return function(e,t,n,r,i,a){var o={},s=e.accept;function l(e,t){n.forEach(function(n){n.between(e,t,!0).forEach(function(e){o[Number(e)]=!0})})}i.forEach(function(e){o[Number(new es(e,a).rezonedDate())]=!0}),e.accept=function(e){var t=Number(e);return isNaN(t)?s.call(this,e):!!o[t]||(l(new Date(t-1),new Date(t+1)),!!o[t])||(o[t]=!0,s.call(this,e))},"between"===e.method&&(l(e.args.after,e.args.before),e.accept=function(e){var t=Number(e);return!!o[t]||(o[t]=!0,s.call(this,e))});for(var c=0;c<r.length;c++){var u=new es(r[c],a).rezonedDate();if(!e.accept(new Date(u.getTime())))break}t.forEach(function(t){eA(e,t.options)});var d=e._result;switch(M(d),e.method){case"all":case"between":return d;case"before":return d.length&&d[d.length-1]||null;default:return d.length&&d[0]||null}}(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(e){eU(e,this._rrule)},t.prototype.exrule=function(e){eU(e,this._exrule)},t.prototype.rdate=function(e){ez(e,this._rdate)},t.prototype.exdate=function(e){ez(e,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(e){return e$(e.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(e){return e$(e.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(e){return new Date(e.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(e){return new Date(e.getTime())})},t.prototype.valueOf=function(){var e=[];return!this._rrule.length&&this._dtstart&&(e=e.concat(el({dtstart:this._dtstart}))),this._rrule.forEach(function(t){e=e.concat(t.toString().split("\n"))}),this._exrule.forEach(function(t){e=e.concat(t.toString().split("\n").map(function(e){return e.replace(/^RRULE:/,"EXRULE:")}).filter(function(e){return!/^DTSTART/.test(e)}))}),this._rdate.length&&e.push(eZ("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(eZ("EXDATE",this._exdate,this.tzid())),e},t.prototype.toString=function(){return this.valueOf().join("\n")},t.prototype.clone=function(){var e=new t(!!this._cache);return this._rrule.forEach(function(t){return e.rrule(t.clone())}),this._exrule.forEach(function(t){return e.exrule(t.clone())}),this._rdate.forEach(function(t){return e.rdate(new Date(t.getTime()))}),this._exdate.forEach(function(t){return e.exdate(new Date(t.getTime()))}),e},t}(eD);function eU(e,t){if(!(e instanceof eD))throw TypeError(String(e)+" is not RRule instance");b(t.map(String),String(e))||t.push(e)}function ez(e,t){if(!(e instanceof Date))throw TypeError(String(e)+" is not Date instance");b(t.map(Number),Number(e))||(t.push(e),M(t))}function eZ(e,t,n){var r=!n||"UTC"===n.toUpperCase(),i=r?"".concat(e,":"):"".concat(e,";TZID=").concat(n,":"),a=t.map(function(e){return $(e.valueOf(),r)}).join(",");return"".concat(i).concat(a)}},81307:function(e,t,n){let r;let{v4:i,validate:a}
460=n(15006),o=n(76907),s={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},l={consistentLength:!0},c=(e,t,n)=>{let r=t(e.toLowerCase().replace(/-/g,""));return n&&n.consistentLength?r.padStart(n.shortIdLength,n.paddingChar):r},u=(e,t)=>{let n=t(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[n[1],n[2],n[3],n[4],n[5]].join("-")},d=e=>Math.ceil(Math.log(3402823669209385e23)/Math.log(e));e.exports=(()=>{let e=(e,t)=>{let n=e||s.flickrBase58,r={...l,...t};if([...new Set(Array.from(n))].length!==n.length)throw Error("The provided Alphabet has duplicate characters resulting in unreliable results");let p=d(n.length),f={shortIdLength:p,consistentLength:r.consistentLength,paddingChar:n[0]},h=o(o.HEX,n),m=o(n,o.HEX),g=()=>c(i(),h,f),y={alphabet:n,fromUUID:e=>c(e,h,f),maxLength:p,generate:g,new:g,toUUID:e=>u(e,m),uuid:i,validate:(e,t=!1)=>{if(!e||"string"!=typeof e)return!1;let i=r.consistentLength?e.length===p:e.length<=p,o=e.split("").every(e=>n.includes(e));return!1===t?i&&o:i&&o&&a(u(e,m))}};return Object.freeze(y),y};return e.constants=s,e.uuid=i,e.generate=()=>(r||(r=e(s.flickrBase58).generate),r()),e})()},14228:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(78954)),i=n(51585);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,e.exports=a},51585:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var c;return(void 0===t&&(t={}),!(c=e)||i.test(c)||n.test(c))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,l):e.replace(a,l)).replace(r,s))}},78954:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),a="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;a?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(59703))},81679:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});var r=n(75271);function i(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var a="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,o=new WeakMap;function s(e,t){var n,s,l,c=(n=t||null,s=function(t){return e.forEach(function(e){return i(e,t)})},(l=(0,r.useState)(function(){return{value:n,callback:s,facade:{get current(){return l.value},set current(value){var e=l.value;e!==value&&(l.value=value,l.callback(value,e))}}}})[0]).callback=s,l.facade);return a(function(){var t=o.get(c);if(t){var n=new Set(t),r=new Set(e),a=c.current;n.forEach(function(e){r.has(e)||i(e,null)}),r.forEach(function(e){n.has(e)||i(e,a)})}o.set(c,e)},[e]),c}},41461:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(15767),i=n(75271),a=function(e){var t=e.sideCar,n=(0,r._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw Error("Sidecar medium not found");return i.createElement(a,(0,r.pi)({},n))};function o(e,t){return e.useMedium(t),a}a.isSideCarExport=!0},10541:function(e,t,n){"use strict";n.d(t,{_:function(){return a}});var r=n(15767);function i(e){return e}function a(e){void 0===e&&(e={});var t,n,a,o=(void 0===t&&(t=i),n=[],a=!1,{read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var r=t(e,a);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(a=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){a=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var n=t;
460t=[],n.forEach(e)},o=function(){return Promise.resolve().then(i)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}});return o.options=(0,r.pi)({async:!0,ssr:!1},e),o}},15006:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return l.default}});var r=p(n(66733)),i=p(n(93762)),a=p(n(98845)),o=p(n(60017)),s=p(n(91373)),l=p(n(91952)),c=p(n(3988)),u=p(n(24497)),d=p(n(43816));function p(e){return e&&e.__esModule?e:{default:e}}},9415:function(e,t){"use strict";function n(e){return(e+64>>>9<<4)+14+1}function r(e,t){let n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,a,o){var s;return r((s=r(r(t,e),r(i,o)))<<a|s>>>32-a,n)}function a(e,t,n,r,a,o,s){return i(t&n|~t&r,e,t,a,o,s)}function o(e,t,n,r,a,o,s){return i(t&r|n&~r,e,t,a,o,s)}function s(e,t,n,r,a,o,s){return i(t^n^r,e,t,a,o,s)}function l(e,t,n,r,a,o,s){return i(n^(t|~r),e,t,a,o,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){let t=[],n=32*e.length,r="0123456789abcdef";for(let i=0;i<n;i+=8){let n=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let i=1732584193,c=-271733879,u=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){let n=i,p=c,f=u,h=d;i=a(i,c,u,d,e[t],7,-680876936),d=a(d,i,c,u,e[t+1],12,-389564586),u=a(u,d,i,c,e[t+2],17,606105819),c=a(c,u,d,i,e[t+3],22,-1044525330),i=a(i,c,u,d,e[t+4],7,-176418897),d=a(d,i,c,u,e[t+5],12,1200080426),u=a(u,d,i,c,e[t+6],17,-1473231341),c=a(c,u,d,i,e[t+7],22,-45705983),i=a(i,c,u,d,e[t+8],7,1770035416),d=a(d,i,c,u,e[t+9],12,-1958414417),u=a(u,d,i,c,e[t+10],17,-42063),c=a(c,u,d,i,e[t+11],22,-1990404162),i=a(i,c,u,d,e[t+12],7,1804603682),d=a(d,i,c,u,e[t+13],12,-40341101),u=a(u,d,i,c,e[t+14],17,-1502002290),c=a(c,u,d,i,e[t+15],22,1236535329),i=o(i,c,u,d,e[t+1],5,-165796510),d=o(d,i,c,u,e[t+6],9,-1069501632),u=o(u,d,i,c,e[t+11],14,643717713),c=o(c,u,d,i,e[t],20,-373897302),i=o(i,c,u,d,e[t+5],5,-701558691),d=o(d,i,c,u,e[t+10],9,38016083),u=o(u,d,i,c,e[t+15],14,-660478335),c=o(c,u,d,i,e[t+4],20,-405537848),i=o(i,c,u,d,e[t+9],5,568446438),d=o(d,i,c,u,e[t+14],9,-1019803690),u=o(u,d,i,c,e[t+3],14,-187363961),c=o(c,u,d,i,e[t+8],20,1163531501),i=o(i,c,u,d,e[t+13],5,-1444681467),d=o(d,i,c,u,e[t+2],9,-51403784),u=o(u,d,i,c,e[t+7],14,1735328473),c=o(c,u,d,i,e[t+12],20,-1926607734),i=s(i,c,u,d,e[t+5],4,-378558),d=s(d,i,c,u,e[t+8],11,-2022574463),u=s(u,d,i,c,e[t+11],16,1839030562),c=s(c,u,d,i,e[t+14],23,-35309556),i=s(i,c,u,d,e[t+1],4,-1530992060),d=s(d,i,c,u,e[t+4],11,1272893353),u=s(u,d,i,c,e[t+7],16,-155497632),c=s(c,u,d,i,e[t+10],23,-1094730640),i=s(i,c,u,d,e[t+13],4,681279174),d=s(d,i,c,u,e[t],11,-358537222),u=s(u,d,i,c,e[t+3],16,-722521979),c=s(c,u,d,i,e[t+6],23,76029189),i=s(i,c,u,d,e[t+9],4,-640364487),d=s(d,i,c,u,e[t+12],11,-421815835),u=s(u,d,i,c,e[t+15],16,530742520),c=s(c,u,d,i,e[t+2],23,-995338651),i=l(i,c,u,d,e[t],6,-198630844),d=l(d,i,c,u,e[t+7],10,1126891415),u=l(u,d,i,c,e[t+14],15,-1416354905),c=l(c,u,d,i,e[t+5],21,-57434055),i=l(i,c,u,d,e[t+12],6,1700485571),d=l(d,i,c,u,e[t+3],10,-1894986606),u=l(u,d,i,c,e[t+10],15,-1051523),c=l(c,u,d,i,e[t+1],21,-2054922799),i=l(i,c,u,d,e[t+8],6,1873313359),d=l(d,i,c,u,e[t+15],10,-30611744),u=l(u,d,i,c,e[t+6],15,-1560198380),c=l(c,u,d,i,e[t+13],21,1309151649),i=l(i,c,u,d,e[t+4],6,-145523070),d=l(d,i,c,u,e[t+11],10,-1120210379),u=l(u,d,i,c,e[t+2],15,718787259),c=l(c,u,d,i,e[t+9],21,-343485551),i=r(i,n),c=r(c,p),u=r(u,f),d=r(d,h)}return[i,c,u,d]}(function(e){if(0===e.length)return[];let t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}},38445:function(e,t){"use strict";
460Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:n}},91373:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},43816:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(3988))&&r.__esModule?r:{default:r};t.default=function(e){let t;if(!(0,i.default)(e))throw TypeError("Invalid UUID");let n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},42342:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},62063:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};let r=new Uint8Array(16)},84993:function(e,t){"use strict";function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let i=Math.ceil((e.length/4+2)/16),a=Array(i);for(let t=0;t<i;++t){let n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];a[t]=n}a[i-1][14]=(e.length-1)*8/4294967296,a[i-1][14]=Math.floor(a[i-1][14]),a[i-1][15]=(e.length-1)*8&4294967295;for(let e=0;e<i;++e){let i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=a[e][t];for(let e=16;e<80;++e)i[e]=n(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let o=r[0],s=r[1],l=r[2],c=r[3],u=r[4];for(let e=0;e<80;++e){let r=Math.floor(e/20),a=n(o,5)+function(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}(r,s,l,c)+u+t[r]+i[e]>>>0;u=c,c=l,l=n(s,30)>>>0,s=o,o=a}r[0]=r[0]+o>>>0,r[1]=r[1]+s>>>0,r[2]=r[2]+l>>>0,r[3]=r[3]+c>>>0,r[4]=r[4]+u>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},24497:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=o;var r,i=(r=n(3988))&&r.__esModule?r:{default:r};let a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));function o(e,t=0){return a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]}t.default=function(e,t=0){let n=o(e,t);if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n}},66733:function(e,t,n){"use strict";let r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,o=(a=n(62063))&&a.__esModule?a:{default:a},s=n(24497);let l=0,c=0;t.default=function(e,t,n){let a=t&&n||0,u=t||Array(16),d=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==p){let t=e.random||(e.rng||o.default)();null==d&&(d=r=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==p&&(p=i=(t[6]<<8|t[7])&16383)}let f=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:c+1,m=f-l+(h-c)/1e4;if(m<0&&void 0===e.clockseq&&(p=p+1&16383),(m<0||f>l)&&void 0===e.nsecs&&(h=0),h>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");l=f,c=h,i=p;let g=((268435455&(f+=122192928e5))*1e4+h)%4294967296;u[a++]=g>>>24&255,u[a++]=g>>>16&255,u[a++]=g>>>8&255,u[a++]=255&g;let y=f/4294967296*1e4&268435455;u[a++]=y>>>8&255,u[a++]=255&y,u[a++]=y>>>24&15|16,u[a++]=y>>>16&255,u[a++]=p>>>8|128,u[a++]=255&p;for(let e=0;e<6;++e)u[a+e]=d[e];return t||(0,s.unsafeStringify)(u)}},93762:function(e,t,n){"use strict";
460Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(88340)),i=a(n(9415));function a(e){return e&&e.__esModule?e:{default:e}}let o=(0,r.default)("v3",48,i.default);t.default=o},88340:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,o,s){var l;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,a.default)(r)),(null===(l=r)||void 0===l?void 0:l.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),(c=n(c))[6]=15&c[6]|t,c[8]=63&c[8]|128,o){s=s||0;for(let e=0;e<16;++e)o[s+e]=c[e];return o}return(0,i.unsafeStringify)(c)}try{r.name=e}catch(e){}return r.DNS=o,r.URL=s,r};var r,i=n(24497),a=(r=n(43816))&&r.__esModule?r:{default:r};let o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=o;let s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=s},98845:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(38445)),i=o(n(62063)),a=n(24497);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();let o=(e=e||{}).random||(e.rng||i.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return(0,a.unsafeStringify)(o)}},60017:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(88340)),i=a(n(84993));function a(e){return e&&e.__esModule?e:{default:e}}let o=(0,r.default)("v5",80,i.default);t.default=o},3988:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(42342))&&r.__esModule?r:{default:r};t.default=function(e){return"string"==typeof e&&i.default.test(e)}},91952:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(3988))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},73434:function(e,t,n){"use strict";n.d(t,{r:function(){return o},y:function(){return s}});var r=n(93169),i=n(26558),a=n(32036);function o(e){let t={version:"7.13.0",onReady(e){e()},...e};return Object.defineProperty(t,"_setDebug",{get:()=>a.y,enumerable:!1}),t}function s(e,t,n){let a=e[t];a&&!a.q&&a.version&&r.j.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=n,a?.q&&a.q.forEach(e=>(0,i.Z)(e,"onReady callback threw an error:")())}},14447:function(e,t,n){"use strict";let r;n.d(t,{$k:function(){return p},EZ:function(){return l},Oo:function(){return c},jO:function(){return d},yw:function(){return u}});var i,a=n(98946),o=n(63488),s=n(1602);let l=((i={}).BEFORE_UNLOAD="beforeunload",i.CLICK="click",i.DBL_CLICK="dblclick",i.KEY_DOWN="keydown",i.LOAD="load",i.POP_STATE="popstate",i.SCROLL="scroll",i.TOUCH_START="touchstart",i.TOUCH_END="touchend",i.TOUCH_MOVE="touchmove",i.VISIBILITY_CHANGE="visibilitychange",i.PAGE_SHOW="pageshow",i.FREEZE="freeze",i.RESUME="resume",i.DOM_CONTENT_LOADED="DOMContentLoaded",i.POINTER_DOWN="pointerdown",i.POINTER_UP="pointerup",i.POINTER_CANCEL="pointercancel",i.HASH_CHANGE="hashchange",i.PAGE_HIDE="pagehide",i.MOUSE_DOWN="mousedown",i.MOUSE_UP="mouseup",i.MOUSE_MOVE="mousemove",i.FOCUS="focus",i.BLUR="blur",i.CONTEXT_MENU="contextmenu",i.RESIZE="resize",i.CHANGE="change",i.INPUT="input",i.PLAY="play",i.PAUSE="pause",i.SECURITY_POLICY_VIOLATION="securitypolicyviolation",i.SELECTION_CHANGE="selectionchange",i.STORAGE="storage",i.UNHANDLED_REJECTION="unhandledrejection",i);function c(e,t,n,r){return u(e,[t],n,r)}function u(e,t,n,{once:i,capture:o,passive:l}={}){let c=(0,s.zk)(e=>{(e.isTrusted||e.__ddIsTrusted||!1!==r)&&(i&&f(),n(e))}),u=l?{capture:o,passive:l}:o,d=window.EventTarget&&e instanceof EventTarget?window.EventTarget.prototype:e,p=(0,a.I)(d,"addEventListener");function f(){let n=(0,a.I)(d,"removeEventListener");t.forEach(t=>n.call(e,t,c,u))}return t.forEach(t=>p.call(e,t,c,u)),{stop:f}}function d(e,t){if(!e)return!1;try{return c(e,t,o.Z).stop(),!0}catch{return!1}}function p(e){!0!==r&&(r=e??!1)}},60563:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(98946),i=n(88427);function a(e,t){return(0,r.I)(i.globalObject,"fetch")(e,t)}},68075:function(e,t,n){"use strict";n.d(t,{FP:function(){return l},PT:function(){return c},k$:function(){return s}});var r=n(74614),i=n(14447),a=n(38566),o=n(88427);let s={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function l(){return new r.y$(e=>
460{let t=o.globalObject.window;if(!t)return;let{stop:n}=(0,i.yw)(t,["visibilitychange","freeze"],t=>{"visibilitychange"===t.type&&"hidden"===document.visibilityState?e.notify({reason:s.HIDDEN}):"freeze"===t.type&&e.notify({reason:s.FROZEN})},{capture:!0}),r=(0,i.Oo)(t,"beforeunload",()=>{e.notify({reason:s.UNLOADING})}).stop;return()=>{n(),r()}})}function c(e){return(0,a.TT)(s).includes(e)}},85727:function(e,t,n){"use strict";n.d(t,{T:function(){return a},_:function(){return o}});var r=n(63488),i=n(14447);function a(e,t){return document.readyState===e||"complete"===document.readyState?(t(),{stop:r.Z}):(0,i.Oo)(window,"complete"===e?"load":"DOMContentLoaded",t,{once:!0})}function o(e){return new Promise(t=>{a(e,t)})}},78694:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var r=n(88427);function i(){let{navigator:e}=r.globalObject;return{status:e?.onLine?"connected":"not_connected",interfaces:e?.connection?.type?[e.connection.type]:void 0,effective_type:e?.connection?.effectiveType}}},8222:function(e,t,n){"use strict";var r;n.d(t,{C:function(){return i}});let i=((r={})[r.REPLAY=1]="REPLAY",r[r.RUM=2]="RUM",r[r.TELEMETRY=4]="TELEMETRY",r[r.PROFILING=6]="PROFILING",r)},6908:function(e,t,n){"use strict";var r,i;n.d(t,{Xw:function(){return s},j9:function(){return o},zH:function(){return a}});let a={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"},o=((r={}).UNCAUGHT="Uncaught",r.PROVIDED="Provided",r),s=((i={}).HANDLED="handled",i.UNHANDLED="unhandled",i)},41305:function(e,t,n){"use strict";n.d(t,{K:function(){return r},V:function(){return i}});let r="No stack, consider using an instance of Error";function i(e){try{return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}catch{return!1}}},69657:function(e,t,n){"use strict";function r(e,t){return e*t/100}n.d(t,{HQ:function(){return r},HR:function(){return a}});let i=new Map;function a(e,t){if(100===t)return!0;if(0===t)return!1;let n=i.get(t);if(e===n?.sessionId)return n.decision;let r=function(e,t){let n=1n<<64n;return Number(0xf6b75ab2bc471c7n*e%n)<=t/100*Number(n)}(BigInt(`0x${e.split("-")[4]}`),t);return i.set(t,{sessionId:e,decision:r}),r}},57221:function(e,t,n){"use strict";n.d(t,{TN:function(){return i},_q:function(){return s},sr:function(){return a},uY:function(){return o}});var r=n(73987);let i=4*r.dV,a=15*r.yR,o=r.P5,s={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"}},44580:function(e,t,n){"use strict";n.d(t,{J:function(){return u},q:function(){return d}});var r=n(79e3),i=n(87057),a=n(88427);let o=new Map,s=new Set,l=!1;function c(){let e=a.globalObject.window?.DD_SOURCE_CODE_CONTEXT;if(!e)return;let t=!1,n=!1,c=!1;for(let[i,a]of Object.entries(e)){if(t=t||void 0!==a.ddDebugId,n=n||void 0!==a.service,c=c||void 0!==a.version,s.has(i))continue;s.add(i);let e=r._({stack:i}).stack[0]?.url;e&&!o.has(e)&&o.set(e,a)}l||(l=!0,(0,i.eG)({feature:"source-code-context",use_debug_id:t,use_service:n,use_version:c}))}function u(e){c();let t=new Set,n=[];for(let r of e){if(t.has(r))continue;t.add(r);let e=o.get(r)?.ddDebugId;void 0!==e&&n.push({url:r,id:e})}return n.length?n:void 0}function d(e){return c(),o.get(e)}},40324:function(e,t,n){"use strict";n.d(t,{MS:function(){return a}});var r=n(93169),i=n(31627);function a(e){let{env:t,service:n,version:r,datacenter:i,sdkVersion:a,variant:s}=e,l=[o("sdk_version",a??"7.13.0")];return t&&l.push(o("env",t)),n&&l.push(o("service",n)),r&&l.push(o("version",r)),i&&l.push(o("datacenter",i)),s&&l.push(o("variant",s)),l}function o(e,t){let n=t?`${e}:${t}`:e;return(n.length>200||RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(n))&&r.j.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${i.IA} ${i.aA}/getting_started/tagging/#defining-tags`),n.replace(/,/g,"_")}},87057:function(e,t,n){"use strict";let r;n.d(t,{T:function(){return O},y0:function(){return N},Uo:function(){return L},eJ:function(){return $},Sz:function(){return j},qZ:function(){return F},eG:function(){return B},VL:function(){return M}});var i,a,o=n(74614),s=n(93169),l=n(43502),c=n(63488),u=n(79e3),d=n(76807),p=n(25904),f=n(41305),h=n(40324),m=n(61423),g=n(78694),y=n(57057),v=n(9813);let b="configuration",w="usage";var _=n(25776),x=n(70269),E=n(80516),S=n(88427),k=n(32036),C=n(1602),I=n(73987),A=n(31009);function T(e){return 0!==e&&100*Math.random()<=e}let R=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],N=((i={}).LOGS="browser-logs-sdk",i.RUM="browser-rum-sdk",i),O=((a={}).CUSTOMER_DATA_METRIC_NAME="Customer data measures",a.REMOTE_CONFIGURATION_METRIC_NAME="remote configuration metrics",a.RECORDER_INIT_METRICS_TELEMETRY_NAME="Recorder init metrics",a.SEGMENT_METRICS_TELEMETRY_NAME="Segment network request metrics",a.SESSION_MANAGER_INIT_METRICS_TELEMETRY_NAME="Session manager init metrics",a),P=[_.y7,_.tx];function D(){return r||(r=new o.fk(100)),r}function M(e,t,n,r){let i=new o.y$,{enabled:a,metricsEnabled:s}=function(e,t,n,r,i,a=1,o=15){let s={},c=!P.includes(t.site)&&T(t.telemetrySampleRate),u={log:c,[b]:c&&T(t.telemetryConfigurationSampleRate),[w]:c&&T(t.telemetryUsageSampleRate),metric:c&&T(a)},d={is_local_file:S.globalObject.location?.protocol==="file:",is_worker:S.j},f=D();return f.subscribe(({rawEvent:a,metricName:c})=>{if(c&&!u.metric||!u[a.type])return;let f=c||a.status||a.type,y=s[f];if(y||(y=s[f]=new Set),y.size>=o)return;let v=(0,p.l)(a);if(y.has(v))return;let b=n.trigger({startTime:(0,I.$I)().relative});if(b===A.C_)return;let w=function(e,n,r,a){let o={type:"telemetry",date:(0,I.$I)().timeStamp,service:n,version:"7.13.0",source:"browser",_dd:{format_version:2},telemetry:(0,E.$e)(r,{runtime_env:a,connectivity:(0,g.T)(),sdk_setup:"npm",sdk_name:i}),ddtags:(0,h.MS)(t).join(","),experimental_features:Array.from((0,l.u0)())};return(0,E.$e)(o,e)}(b,e,a,d);r.notify(w),(0,m.j)("telemetry",w),y.add(v)}),f.unbuffer(),(0,C.P_)(j),{enabled:c,metricsEnabled:u.metric}}(e,t,n,i,r),{stop:u}=function(e,t){let n=[];if((0,y.xT)()){let e=(0,y.Ad)(),r=t.subscribe(t=>e.send("internal_telemetry",t));n.push(r.unsubscribe)}else{let r=[(0,x.Ez)(e,"rum")],i=(0,x.ji)(e,"rum");i&&e.site===_.DZ&&r.push(i);let a=(0,v.n)({endpoints:r,reportError:c.Z});n.push(a.stop);let o=t.subscribe(a.add);n.push(o.unsubscribe)}return{stop:()=>
460n.forEach(e=>e())}}(t,i);return{stop:u,enabled:a,metricsEnabled:s}}function $(e,t){(0,k.K)()&&s.j.debug("[Telemetry]",e,t),D().notify({rawEvent:{type:"log",message:e,status:"debug",...t}})}function j(e,t){D().notify({rawEvent:{type:"log",status:"error",...function(e){if((0,f.V)(e)){let t=(0,u._)(e);return{error:{kind:t.name,stack:(0,d.P3)((t.stack=t.stack.filter(e=>!e.url||R.some(t=>e.url.startsWith(t))),t))},message:t.message}}return{error:{stack:f.K},message:`Uncaught ${(0,p.l)(e)}`}}(e),...t}})}function L(e){D().notify({rawEvent:{type:b,configuration:e}})}function F(e,t){D().notify({rawEvent:{type:"log",message:e,status:"debug",...t},metricName:e})}function B(e){D().notify({rawEvent:{type:w,usage:e}})}},26558:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(93169);function i(e,t){return(...n)=>{try{return e(...n)}catch(e){r.j.error(t,e)}}}},93169:function(e,t,n){"use strict";n.d(t,{Q:function(){return a},j:function(){return i}});var r=n(31627);let i=(0,r.fT)("Datadog Browser SDK:"),a=`${r.aA}/real_user_monitoring/browser/troubleshooting`},11671:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(22944);function i(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(n,i){let a=(0,r.qt)(n);t+=a,e+=n,i&&i(a)},finish(e){e(this.finishSync())},finishSync(){let n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:e=>e.length}}},43502:function(e,t,n){"use strict";n.d(t,{W_:function(){return l},fG:function(){return s},u0:function(){return c},uh:function(){return a}});var r,i=n(28514);let a=((r={}).SESSION_REPLAY_RECORD_CANVAS="session_replay_record_canvas",r.TRACK_INTAKE_REQUESTS="track_intake_requests",r.TRACK_WEBSOCKETS="track_websockets",r),o=new Set;function s(e){Array.isArray(e)&&function(e){e.forEach(e=>{o.add(e)})}(e.filter(e=>(0,i.E5)(a,e)))}function l(e){return o.has(e)}function c(){return o}},98946:function(e,t,n){"use strict";n.d(t,{I:function(){return i}});var r=n(88427);function i(e,t){let n;let i=r.globalObject;return i.Zone&&"function"==typeof i.Zone.__symbol__&&(n=e[i.Zone.__symbol__(t)]),n||(n=e[t]),n}},48078:function(e,t,n){"use strict";n.d(t,{Su:function(){return s},Xk:function(){return d},t1:function(){return l}});var r=n(64435),i=n(63488),a=n(76807),o=n(1602);function s(e,t,n,{computeHandlingStack:r}={}){let o=e[t];if("function"!=typeof o){if(!(t in e&&"string"==typeof t&&t.startsWith("on")))return{stop:i.Z};o=i.Z}let s=!1,{stop:l}=c(e,t,o,function(){if(s)return o.apply(this,arguments);let e=Array.from(arguments);return u(n,{target:this,parameters:e,handlingStack:r?(0,a.Xp)("instrumented method"):void 0},()=>o.apply(this,e))});return{stop:()=>{s=!0,l()}}}function l(e,t,n,{computeHandlingStack:r}={}){let o=e[t];if("function"!=typeof o)return{stop:i.Z};let s=!1,l=function(){if(!new.target)return Reflect.apply(o,this,Array.from(arguments));let e=new.target===l?o:new.target;if(s)return Reflect.construct(o,arguments,e);let t=Array.from(arguments);return u(n,{parameters:t,handlingStack:r?(0,a.Xp)("instrumented constructor"):void 0},()=>Reflect.construct(o,t,e))},d=function(e,t){for(let n of[].concat(Object.getOwnPropertyNames(t),Object.getOwnPropertySymbols(t))){let r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r)}let{stop:n}=c(t.prototype,"constructor",t.prototype.constructor,e);return n}(l,o),{stop:p}=c(e,t,o,l);return{stop:()=>{s=!0,d(),p()}}}function c(e,t,n,r){return e[t]=r,{stop:()=>{e[t]===r&&(e[t]=n)}}}function u(e,t,n){let r;(0,o.L6)(e,null,[{...t,onPostCall:e=>{r=e}}]);let i=n();return r&&(0,o.L6)(r,null,[i]),i}function d(e,t,n){let a=Object.getOwnPropertyDescriptor(e,t);if(!a?.set||!a.configurable)return{stop:i.Z};let o=i.Z,s=(e,t)=>{(0,r.iK)(()=>{s!==o&&n(e,t)},0)},l=function(e){a.set.call(this,e),s(this,e)};return Object.defineProperty(e,t,{set:l}),{stop:()=>{Object.getOwnPropertyDescriptor(e,t)?.set===l&&Object.defineProperty(e,t,a),s=o}}}},28209:function(e,t,n){"use strict";function r(e){return e}n.d(t,{C:function(){return r}})},74614:function(e,t,n){"use strict";n.d(t,{fk:function(){return l},y$:function(){return o},$Z:function(){return s}});var r=n(88427),i=n(1602);function a(e){let t=r.globalObject.queueMicrotask;"function"==typeof t?t((0,i.zk)(e)):Promise.resolve().then((0,i.zk)(e))}var o=class{constructor(e){this.onFirstSubscribe=e,this.observers=[]}subscribe(e){return this.addObserver(e),{unsubscribe:()=>this.removeObserver(e)}}
460notify(e){this.observers.forEach(t=>t(e))}addObserver(e){this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(e){this.observers=this.observers.filter(t=>e!==t),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}};function s(...e){return new o(t=>{let n=e.map(e=>e.subscribe(e=>t.notify(e)));return()=>n.forEach(e=>e.unsubscribe())})}var l=class extends o{constructor(e,t){super(),this.maxBufferSize=e,this.onDrop=t,this.buffer=[],this.droppedCount=0}notify(e){this.buffer.push(e),this.buffer.length>this.maxBufferSize&&(this.buffer.shift(),this.droppedCount++),super.notify(e)}subscribe(e){let t=!1;return a(()=>{for(let n of this.buffer){if(t)return;e(n)}t||this.addObserver(e)}),{unsubscribe:()=>{t=!0,this.removeObserver(e)}}}unbuffer(){a(()=>{this.droppedCount>0&&this.onDrop&&this.onDrop(this.droppedCount),this.maxBufferSize=this.buffer.length=0})}}},10482:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(64435),i=n(1602),a=n(73987);function o(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){let n=window.requestIdleCallback((0,i.zk)(e),t);return()=>window.cancelIdleCallback(n)}return function(e){let t=(0,a.m6)(),n=(0,r.iK)(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,a.m6)()-t))})},0);return()=>(0,r.gr)(n)}(e)}},61423:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});var r=n(88427);function i(e,t){let n=r.globalObject.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}},25904:function(e,t,n){"use strict";n.d(t,{l:function(){return i},y:function(){return a}});var r=n(63488);function i(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);let r=a(Object.prototype),i=a(Array.prototype),o=a(Object.getPrototypeOf(e)),s=a(e);try{return JSON.stringify(e,t,n)}catch{return"<error: unable to serialize object>"}finally{r(),i(),o(),s()}}function a(e){let t=e.toJSON;return t?(delete e.toJSON,()=>{e.toJSON=t}):r.Z}},79e3:function(e,t,n){"use strict";let r;n.d(t,{_:function(){return a},f:function(){return m}});var i=n(33972);function a(e){let t=[],n=h(e,"stack"),i=String(e);if(n?.startsWith(i)&&(n=n.slice(i.length)),n&&n.split("\n").forEach(e=>{let n=function(e){let t=l.exec(e);if(!t)return;let n=t[2]?.indexOf("native")===0,r=t[2]?.indexOf("eval")===0,i=c.exec(t[2]);return r&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}(e)||function(e){let t=u.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:t[2]}}(e)||function(e){let t=d.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:+t[3],url:t[2]}}(e)||function(e){let t=p.exec(e);if(!t)return;let n=t[3]&&t[3].indexOf(" > eval")>-1,r=f.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}(e);n&&(!n.func&&n.line&&(n.func="?"),t.push(n))}),t.length>0&&function(){if(void 0!==r)return r;class e extends Error{constructor(){super(),this.name="Error"}}let[t,n]=[e,Error].map(e=>new e);return r=y(Object.getPrototypeOf(t))&&n.stack!==t.stack}()&&e instanceof Error){let n=[],r=e;for(;(r=Object.getPrototypeOf(r))&&y(r);){let e=r.constructor?.name||"?";n.push(e)}for(let e=n.length-1;e>=0&&t[0]?.func===n[e];e--)t.shift()}return{message:h(e,"message"),name:h(e,"name"),stack:t}}let o="((?:blob|native|eval|<anonymous>|[a-zA-Z][a-zA-Z0-9+.-]*:\\/\\/|\\w+\\.|\\/).*?)",s="(?::(\\d+))",l=RegExp(`^\\s*at (.*?) ?\\(${o}${s}?${s}?\\)?\\s*$`,"i"),c=RegExp(`\\((\\S*)${s}${s}\\)`),u=RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${o}${s}?${s}??\\s*$`,"i"),d=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,p=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,f=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function h(e,t){return(0,i.sK)(e)&&"string"==typeof e[t]?e[t]:void 0}function m(e,t,n,r){let i,a;if(void 0===t)return;let{name:o,message:s}=("[object String]"===({}).toString.call(e)&&([,i,a]=g.exec(e)),{name:i,message:a});return{name:o,message:s,stack:[{url:t,column:r,line:n}
460]}}let g=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function y(e){return String(e.constructor).startsWith("class ")}},76807:function(e,t,n){"use strict";n.d(t,{P3:function(){return o},Xp:function(){return a},jN:function(){return s}});var r=n(79e3),i=n(1602);function a(e){let t;let n=Error(e);return n.name="HandlingStack",(0,i.L6)(()=>{let e=(0,r._)(n);e.stack=e.stack.slice(2),t=o(e)}),t}function o(e){let t=s(e);return e.stack.forEach(e=>{let n="?"===e.func?"<anonymous>":e.func,r=e.args&&e.args.length>0?`(${e.args.join(", ")})`:"",i=e.line?`:${e.line}`:"",a=e.line&&e.column?`:${e.column}`:"";t+=`
461  at ${n}${r} @ ${e.url}${i}${a}`}),t}function s(e){return`${e.name||"Error"}: ${e.message}`}},64435:function(e,t,n){"use strict";n.d(t,{Zi:function(){return l},cv:function(){return c},gr:function(){return s},iK:function(){return o}});var r=n(98946),i=n(88427),a=n(1602);function o(e,t){return(0,r.I)(i.globalObject,"setTimeout")((0,a.zk)(e),t)}function s(e){(0,r.I)(i.globalObject,"clearTimeout")(e)}function l(e,t){return(0,r.I)(i.globalObject,"setInterval")((0,a.zk)(e),t)}function c(e){(0,r.I)(i.globalObject,"clearInterval")(e)}},15878:function(e,t,n){"use strict";function r(e,t){let n=e.indexOf(t);n>=0&&e.splice(n,1)}function i(e){return Array.isArray(e)&&e.length>0}n.d(t,{Of:function(){return i},cl:function(){return r}})},22944:function(e,t,n){"use strict";n.d(t,{Hi:function(){return r},Kb:function(){return s},X9:function(){return i},qt:function(){return o}});let r=1024,i=1048576,a=/[^\u0000-\u007F]/;function o(e){return a.test(e)?new TextEncoder().encode(e).length:e.length}function s(e){if(1===e.length)return e[0];let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}},63488:function(e,t,n){"use strict";n.d(t,{P:function(){return i},Z:function(){return a}});var r=n(64435);function i(e,t,n){let i,a;let o=n?.leading===void 0||n.leading,s=n?.trailing===void 0||n.trailing,l=!1;return{throttled:(...n)=>{if(l){i=n;return}o?e(...n):i=n,l=!0,a=(0,r.iK)(()=>{s&&i&&e(...i),l=!1,i=void 0},t)},cancel:()=>{(0,r.gr)(a),l=!1,i=void 0}}}function a(){}},28514:function(e,t,n){"use strict";n.d(t,{Cy:function(){return i},E5:function(){return o},Q8:function(){return l},Qr:function(){return s},mv:function(){return a}});let r=(e,t)=>"__proto__"===e?void 0:t;function i(e){try{return JSON.parse(e,r)}catch{}}function a(e){return{...e}}function o(e,t){return Object.keys(e).some(n=>e[n]===t)}function s(e){return 0===Object.keys(e).length}function l(e,t){let n={};for(let r of Object.keys(e))n[r]=t(e[r]);return n}},38566:function(e,t,n){"use strict";function r(e,t){for(let n=e.length-1;n>=0;n-=1){let r=e[n];if(t(r,n,e))return r}}function i(e){return Object.values(e)}function a(e){return Object.entries(e)}n.d(t,{TT:function(){return i},dF:function(){return r},qP:function(){return a}})},62028:function(e,t,n){"use strict";function r(e){return e>=500}function i(e){try{return e.clone()}catch{return}}n.d(t,{o:function(){return r},u:function(){return i}})},3664:function(e,t,n){"use strict";let r;n.d(t,{p:function(){return u}});var i=n(64435),a=n(15878),o=n(73987);let s=1/0,l=o.yR,c=new Set;function u({expireDelay:e,maxEntries:t}){let n=[],u=()=>{if(!e)return;let t=(0,o._q)()-e;for(;n.length>0&&n[n.length-1].endTime<t;)n.pop()};return e&&(r||(r=(0,i.Zi)(()=>void c.forEach(e=>e()),l)),c.add(u)),{add:function(e,r){let i={value:e,startTime:r,endTime:s,remove:()=>{(0,a.cl)(n,i)},close:e=>{i.endTime=e}};return t&&n.length>=t&&n.pop(),n.unshift(i),i},find:function(e=s,t={returnInactive:!1}){for(let r of n)if(r.startTime<=e){if(t.returnInactive||e<=r.endTime)return r.value;break}},closeActive:function(e){let t=n[0];t?.endTime===s&&t.close(e)},findAll:function(e=s,t=0){let r=(0,o.WK)(e,t);return n.filter(t=>t.startTime<=r&&e<=t.endTime).map(e=>e.value)},findAllEntries:function(e=s,t=0){let r=(0,o.WK)(e,t);return n.filter(t=>t.startTime<=r&&e<=t.endTime)},getEntries:function(e){return n.filter(t=>t.startTime===e)},reset:function(){n=[]},stop:function(){c.delete(u),0===c.size&&r&&((0,i.cv)(r),r=void 0)}}}},9813:function(e,t,n){"use strict";n.d(t,{n:function(){return b}});var r=n(93169),i=n(28209),a=n(22944),o=n(25904),s=n(44439),l=n(38566),c=n(68075),u=n(11671),d=n(74614),p=n(64435),f=n(88427);let h=30*n(73987).WT,m=f.j?1:50;function g({pageMayExitObservable:e}){let t,n;let r=new d.y$,i=e.subscribe(e=>{t=e.reason;try{r.notify(e.reason)}finally{t=void 0}c(e.reason)}
461),a=new d.y$(()=>()=>{i.unsubscribe()}),o=0,l=0;function c(e){if(0===l)return;let t=l,r=o;l=0,o=0,(0,p.gr)(n),n=void 0,a.notify({reason:e,messagesCount:t,bytesCount:r})}return{flushObservable:a,prepareUrgentFlushObservable:r,forceFlush:c,get messagesCount(){return l},notifyBeforeAddMessage(e){o+e>=s.Wj&&c(t??"bytes_limit"),l+=1,o+=e,void 0===n&&(n=(0,p.iK)(()=>{c("duration_limit")},h))},notifyAfterAddMessage(e=0){o+=e,l>=m?c(t??"messages_limit"):o>=s.Wj&&c(t??"bytes_limit")}}}var y=n(31627);let v=256*a.Hi;function b({encoder:e=(0,u.G)(),endpoints:t,reportError:n}){let d=(0,i.C)(s.UF)(t,n),p=(0,i.C)(c.FP)(),f=(0,i.C)(g)({pageMayExitObservable:p}),h={},m=f.flushObservable.subscribe(t=>(function(t){let n=(0,l.TT)(h).join("\n");h={};let r=(0,c.PT)(t.reason),i=r?d.sendOnExit:d.send;if(r&&e.isAsync){let t=e.finishSync();t.outputBytesCount&&i(w(t));let r=[t.pendingData,n].filter(Boolean).join("\n");r&&i({data:r,bytesCount:(0,a.qt)(r)})}else n&&e.write(e.isEmpty?n:`
462${n}`),e.finish(e=>{i(w(e))})})(t));function b(t,n){let i=(0,o.l)(t),s=e.estimateEncodedBytesCount(i);if(s>=v){r.j.warn(`Discarded a message whose size was bigger than the maximum allowed size ${v/a.Hi}KiB. ${y.IA} ${r.Q}/#technical-limitations`);return}!function(t,n,r){if(void 0!==r){let i;void 0!==h[r]?i=n-e.estimateEncodedBytesCount(h[r]):(f.notifyBeforeAddMessage(n),i=0),h[r]=t,f.notifyAfterAddMessage(i)}else f.notifyBeforeAddMessage(n),e.write(e.isEmpty?t:`
463${t}`,e=>{f.notifyAfterAddMessage(e-n)})}(i,s,n)}return{get isEmpty(){return 0===f.messagesCount},add:b,upsert:b,prepareUrgentFlushObservable:f.prepareUrgentFlushObservable,forceFlush:f.forceFlush,flushObservable:f.flushObservable,stop:m.unsubscribe}}function w(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}},57057:function(e,t,n){"use strict";n.d(t,{Ad:function(){return s},BP:function(){return o},ke:function(){return l},xT:function(){return c}});var r,i=n(93169),a=n(88427);let o=((r={}).RECORDS="records",r.PROFILES="profiles",r);function s(){let e=a.globalObject.DatadogEventBridge;if(e)return{getCapabilities:()=>JSON.parse(e.getCapabilities?.()||"[]"),getPrivacyLevel:()=>e.getPrivacyLevel?.(),getIsTraceSampled:()=>JSON.parse(e.getIsTraceSampled?.()||"null"),getAllowedWebViewHosts:()=>JSON.parse(e.getAllowedWebViewHosts()),send(t,n,r){e.send(JSON.stringify({eventType:t,event:n,view:r?{id:r}:void 0}))}}}function l(e){let t=s();return!!t&&t.getCapabilities().includes(e)}function c(e=a.globalObject.location?.hostname){return s()?.getAllowedWebViewHosts().some(t=>(function(e,t){if(!t.includes("*"))return e===t||e.endsWith(`.${t}`);let n=t.split("*");if(2!==n.length)return i.j.error(`Invalid WebView host pattern "${t}": only one wildcard (*) is supported.`),!1;let[r,a]=n;return e.length>r.length+a.length&&e.startsWith(r)&&e.endsWith(a)})(e,t))??!1}},44439:function(e,t,n){"use strict";n.d(t,{Wj:function(){return v},UF:function(){return b}});var r=n(74614),i=n(22944),a=n(60563),o=n(64435),s=n(62028),l=n(73987);let c=80*i.Hi,u=20*i.X9,d=l.yR,p=l.WT;function f(e,t,n,r,i,a){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?h(e,t,n,a,{onSuccess:()=>m(0,t,n,r,i,a),onFailure:()=>{t.queuedPayloads.enqueue(e)||a.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),function e(t,n,r,i,a){2===t.transportStatus&&(0,o.iK)(()=>{h(t.queuedPayloads.first(),t,n,a,{onSuccess:()=>{t.queuedPayloads.dequeue(),t.currentBackoffTime=p,m(1,t,n,r,i,a)},onFailure:()=>{t.currentBackoffTime=Math.min(d,2*t.currentBackoffTime),e(t,n,r,i,a)}})},t.currentBackoffTime)}(t,n,r,i,a)}}):t.queuedPayloads.enqueue(e)||a.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function h(e,t,n,r,{onSuccess:i,onFailure:a}){t.bandwidthMonitor.add(e),n(e,n=>{t.bandwidthMonitor.remove(e),"opaque"!==n.type&&(0===n.status&&!navigator.onLine||408===n.status||429===n.status||(0,s.o)(n.status))?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status}
463,r.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),a()):(t.transportStatus=0,r.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),i())})}function m(e,t,n,r,a,o){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(a(`Reached max ${r} events size queued for upload: ${u/i.X9}MiB`),t.queueFullReported=!0);let s=t.queuedPayloads;for(t.queuedPayloads=g();s.size()>0;)f(s.dequeue(),t,n,r,a,o)}function g(){let e=[];return{bytesCount:0,enqueue(t){return!this.isFull()&&(e.push(t),this.bytesCount+=t.bytesCount,!0)},first:()=>e[0],dequeue(){let t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:()=>e.length,isFull(){return this.bytesCount>=u}}}var y=n(1602);let v=16*i.Hi;function b(e,t,n=v){let i=new r.y$,a={transportStatus:0,currentBackoffTime:p,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=c&&this.ongoingRequestCount<32},add(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:g(),queueFullReported:!1};return{observable:i,send:n=>{for(let r of e)f(n,a,(e,t)=>{_(r,e,t)},r.trackType,t,i)},sendOnExit:t=>{for(let r of e)!function(e,t,n){if(n.bytesCount<t)try{let t=e.build("beacon",n);if(navigator.sendBeacon(t,n.data))return}catch(e){w||(w=!0,(0,y.$y)(e))}_(e,n)}(r,n,t)}}}let w=!1;function _(e,t,n){let r=e.build("fetch",t);(0,a.h)(r,{method:"POST",body:t.data,mode:"cors"}).then((0,y.zk)(e=>n?.({status:e.status,type:e.type}))).catch((0,y.zk)(()=>n?.({status:0})))}},95780:function(e,t,n){"use strict";let r,i,a,o,s,l,c,u,d,p,f,h;n.d(t,{Xn:function(){return tg},k6:function(){return tm},Y5:function(){return ej},zx:function(){return tp},$n:function(){return tf},nw:function(){return th},D$:function(){return m},wE:function(){return g},uo:function(){return e5},$S:function(){return tP},o8:function(){return w},nu:function(){return tD},QB:function(){return iq},Uo:function(){return eQ},q5:function(){return eM},IE:function(){return tb},SZ:function(){return t_},Ow:function(){return e0},$1:function(){return tA},X_:function(){return tT},Gm:function(){return iZ},FB:function(){return tC},PA:function(){return tN},AX:function(){return tR},Tv:function(){return eK},aT:function(){return eJ},VO:function(){return eX},_r:function(){return iU},Ch:function(){return tw},Pu:function(){return eH},vv:function(){return tE},gR:function(){return tx}});let m={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",VIEW_UPDATE:"view_update",RESOURCE:"resource",VITAL:"vital"},g={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},y={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",SESSION_RENEWAL:"session_renewal",BF_CACHE:"bf_cache"},v={CLICK:"click",CUSTOM:"custom"},b={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},w={DURATION:"duration",OPERATION_STEP:"operation_step"};function _(e,t){t.lastIndex=0;let n=t.exec(e);if(!n)return;let[r,i]=n;return i||r}let x=/[a-zA-Z_$]/,E=/[a-zA-Z0-9_$]/,S=/[0-9]/,k=/[a-fA-F0-9]/,C={0:()=>!1,1:()=>!1,2:e=>x.test(e),3:e=>E.test(e),4:e=>"."===e,5:e=>"["===e,6:e=>"]"===e,7:e=>S.test(e),8:e=>"'\"".includes(e),9:(e,t)=>e===t.quote,10:()=>!0,11:e=>"\\"===e,12:(e,t)=>void 0===t.escapeSequence?`${t.quote}/\\bfnrtu`.includes(e):!!t.escapeSequence.startsWith("u")&&t.escapeSequence.length<5&&k.test(e)},I={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},A=[2,3,7,10],T=[4,5,6],R={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"};var N,O,P,D,M,$=n(73987),j=n(33972),L=n(28514);function F(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,F)}let B=/(\S+?)\s*=\s*(.*?)(?:;|$)/g;function U(e,t){for(B.lastIndex=0;;){let n=B.exec(e);if(n){if(n[1]===t)return n[2]}else break}}function z(e,t,n=""){let r=e.charCodeAt(t-1),i=r>=55296&&r<=56319?t+1:t;return e.length<=i?e:`${e.slice(0,i)}${n}`}let Z={hit:"success",miss:"missing",error:"failure"};function V(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}var q=n(93169),W=n(87057),G=n(88427),H=n(39187);function Y(e,t,n=0,r){let i=new Date;i.setTime(i.getTime()+n);let a=`expires=${i.toUTCString()}`,o=r?.crossSite?"none":"strict",s=r?.domain?`;domain=${r.domain}`:"",l=r?.secure?";secure":"",c=r?.partitioned?";partitioned":"";document.cookie=`${e}=${t};${a};path=/;samesite=${o}${s}${l}${c}`}function K(e){let t=U(document.cookie,e);if(""!==t)return t}function J(e){return(function(e){let t=new Map;for(B.lastIndex=0;;){let n=B.exec(e);if(n){let e=n[1],r=n[2];t.has(e)?t.get(e).push(r):t.set(e,[r])}else break}return t})(document.cookie).get(e)||[]}function X(e){return r||(r=function(e){let t=new Map;for(B.lastIndex=0;;){let n=B.exec(e);if(n)t.set(n[1],n[2]);else break}return t}(document.cookie)),r.get(e)}var Q=n(60563),ee=n(1602),et=n(70269);let en=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","telemetrySampleRate","trackAnonymousUser","trackUserInteractions","trackResources","trackLongTasks","traceContextInjection","actionNameAttribute","defaultPrivacyLevel","enablePrivacyF
463orActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function er(e,t){let n;let r=ea(),i=await es(e);return i.ok?(r.increment("fetch","success"),n=ei(e,i.value,t,r)):(r.increment("fetch","failure"),q.j.error(i.error)),(0,W.qZ)(W.T.REMOTE_CONFIGURATION_METRIC_NAME,{metrics:r.get()}),n}function ei(e,t,n,r){let i={...e};if(t.rum){let e=t.rum;en.forEach(t=>{t in e&&(i[t]=a(e[t]))}),Object.keys(n).forEach(t=>{void 0!==e[t]&&function(e,t){t.forEach(({key:t,value:n})=>{e.setContextProperty(t,a(n))})}(n[t],e[t])})}return t.profiling?.sampleRate!==void 0&&(i.profilingSampleRate=t.profiling.sampleRate),i;function a(e){if(Array.isArray(e))return e.map(a);if((0,j.sK)(e)){if("rcSerializedType"in e){let t=e.rcSerializedType;switch(t){case"string":return e.value;case"regex":return eo(e.value);case"dynamic":return function(e){let t;let n=e.strategy;switch(n){case"cookie":t=function({name:e}){let t=K(e);return r.increment("cookie",void 0!==t?"success":"missing"),t}(e);break;case"dom":t=function({selector:e,attribute:t}){let n;try{n=document.querySelector(e)}catch{q.j.error(`Invalid selector in the remote configuration: '${e}'`),r.increment("dom","failure");return}if(!n){r.increment("dom","missing");return}if("password"===n.getAttribute("type")&&"value"===t){q.j.error(`Forbidden element selected by the remote configuration: '${e}'`),r.increment("dom","failure");return}let i=void 0!==t?n.getAttribute(t):n.textContent;if(null===i){r.increment("dom","missing");return}return r.increment("dom","success"),i}(e);break;case"js":t=function({path:e}){let t=window,n=function(e){let t;let n=[],r=0,i={quote:void 0,escapeSequence:void 0},a="";for(let l of e){if(!(t=I[r].find(e=>C[e](l,i))))return[];if(void 0!==i.escapeSequence&&12!==t){var o,s;if(o=i.escapeSequence,!("\"'/\\bfnrt".includes(o)||o.startsWith("u")&&5===o.length))return[];a+=(s=i.escapeSequence).startsWith("u")?String.fromCharCode(parseInt(s.slice(1),16)):R[s],i.escapeSequence=void 0}A.includes(t)?a+=l:T.includes(t)&&""!==a?(n.push(a),a=""):12===t?i.escapeSequence=i.escapeSequence?`${i.escapeSequence}${l}`:l:8===t?i.quote=l:9===t&&(i.quote=void 0),r=t}return I[r].includes(1)?(""!==a&&n.push(a),n):[]}(e);if(0===n.length){q.j.error(`Invalid JSON path in the remote configuration: '${e}'`),r.increment("js","failure");return}for(let i of n){if(!(i in t)){r.increment("js","missing");return}try{t=t[i]}catch(t){q.j.error(`Error accessing: '${e}'`,t),r.increment("js","failure");return}}return r.increment("js","success"),t}(e);break;case"localStorage":t=function({key:e}){let t;try{t=localStorage.getItem(e)}catch{r.increment("localStorage","failure");return}return r.increment("localStorage",null!==t?"success":"missing"),t??void 0}(e);break;default:q.j.error(`Unsupported remote configuration: "strategy": "${n}"`);return}let i=e.extractor;return void 0!==i&&"string"==typeof t?function(e,t){let n=eo(e.value);if(void 0!==n)return _(t,n)}(i,t):t}(e);default:q.j.error(`Unsupported remote configuration: "rcSerializedType": "${t}"`);return}}return(0,L.Q8)(e,a)}return e}}function ea(){let e={fetch:{}};return{get:()=>e,increment:(t,n)=>{e[t]||(e[t]={}),e[t][n]||(e[t][n]=0),e[t][n]=e[t][n]+1}}}function eo(e){try{return new RegExp(e)}catch{q.j.error(`Invalid regex in the remote configuration: '${e}'`)}}async function es(e){let t;try{t=await (0,Q.h)(function(e){if(e.remoteConfigurationProxy)return e.remoteConfigurationProxy;let t=el(e);return(0,et.lp)({site:e.site,path:`/v1/${encodeURIComponent(t)}.json`,subdomain:"sdk-configuration"})}(e))}catch{t=void 0}if(!t?.ok)return{ok:!1,error:Error("Error fetching the remote configuration.")};let n=await t.json();return n.rum||n.profiling?{ok:!0,value:n,lastModified:function(e){let t=e.headers?.get("last-modified");if(!t)return;let n=new Date(t).getTime();return isNaN(n)?void 0:n}(t)}:{ok:!1,error:Error("No remote configuration for RUM.")}}function el(e){return e.remoteConfiguration?.id??e.remoteConfigurationId}var ec=n(74614);let eu={GRANTED:"granted",NOT_GRANTED:"not-granted"};var ed=n(25776);let ep={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},ef={ALL:"all",SAMPLED:"sampled"},eh={clientToken:{type:"string",required:!0},service:{type:"string"},env:{type:"string"},version:{type:"string"},site:{type:"site",default:ed.D_},proxy:{type:"union",variants:[{type:"string"},{type:"function",signature:void 0}]},sessionSampleRate:{type:"percentage",default:100},telemetrySampleRate:{type:"percentage",default:20},telemetryConfigurationSampleRate:{type:"percentage",default:5},telemetryUsageSampleRate:{type:"percentage",default:5},silentMultipleInit:{type:"boolean",default:!1,strict:!1},storeContextsAcrossPages:{type:"boolean",default:!1,strict:!1},trackAnonymousUser:{type:"boolean",default:!0,strict:!1},useSecureSessionCookie:{type:"boolean",default:!1,strict:!1},usePartitionedCrossSiteSessionCookie:{type:"boolean",default:!1,strict:!1}
463,trackSessionAcrossSubdomains:{type:"boolean",default:!1,strict:!1},allowedTrackingOrigins:{type:"match-option",multiple:!0,strict:!1},trackingConsent:{type:"enum",values:eu,default:eu.GRANTED},beforeSend:{type:"function",signature:void 0},source:{type:"enum",values:["browser","flutter","unity"],default:"browser",strict:!1},sessionPersistence:{type:"enum",values:["cookie","local-storage","memory"],multiple:!0,strict:!1},replica:{type:"schema",schema:{clientToken:{type:"string",required:!0},applicationId:{type:"string"}}},datacenter:{type:"string"},sdkVersion:{type:"string"},variant:{type:"string"}};var em=n(57057),eg=n(43502),ey=n(26558);function ev(e,t){return+e.toFixed(t)}function eb(e){return"number"==typeof e}var ew=n(15878),e_=n(80516),ex=n(31627);function eE(e,t,n){let r={};for(let[i,a]of Object.entries(e)){let e=t[i],o=a.multiple?function(e,t,n){if(null==t)return;if("enum"===e.type&&e.allowAll&&"all"===t)return eC(e.values).slice();let r=Array.isArray(t)?t:[t],i=[];for(let t of r){let r=ek(e,t,n);if(void 0===r){if(!1!==e.strict)return}else i.push(r)}if(!1!==e.strict||0!==i.length||!(r.length>0))return i}(a,e,n):ek(a,e,n);if(void 0===o){if(null!=e&&""!==e){if(n.error(function(e,t){switch(t.type){case"string":return`"${e}" must be a non-empty string`;case"number":if(void 0!==t.min&&void 0!==t.max)return`"${e}" must be a number between ${t.min} and ${t.max}`;if(void 0!==t.min)return`"${e}" must be a number greater than or equal to ${t.min}`;if(void 0!==t.max)return`"${e}" must be a number less than or equal to ${t.max}`;return`"${e}" must be a finite number`;case"percentage":return`"${e}" must be a number between 0 and 100`;case"boolean":return`"${e}" must be a boolean`;case"site":return`"${e}" must be a valid Datadog site. ${ex.IA} ${ex.aA}/getting_started/site/.`;case"match-option":return`"${e}" must be a string, RegExp, or function`;case"enum":return`"${e}" must be one of: "${eC(t.values).join('", "')}"`;case"union":return`"${e}" does not match any expected type`;case"schema":return`"${e}" is not a valid object`;case"function":return`"${e}" must be a function`}}(i,a)),a.required||!1!==a.strict)return}else if(a.required){n.error(`"${i}" is required`);return}r[i]="default"in a?(0,e_.I8)(a.default):void 0}else r[i]=o}return r}let eS=/(datadog|ddog|datad0g|dd0g)/;function ek(e,t,n){if("schema"===e.type){if("object"!=typeof t||null===t)return;return eE(e.schema,t,n)}if("union"===e.type){if(null==t)return;for(let r of e.variants){let e=ek(r,t,n);if(void 0!==e)return e}return}if(null!=t)switch(e.type){case"function":return"function"==typeof t?t:void 0;case"string":return"string"==typeof t&&t.length>0?t:void 0;case"number":return"number"==typeof t&&Number.isFinite(t)&&(void 0===e.min||t>=e.min)&&(void 0===e.max||t<=e.max)?t:void 0;case"percentage":return(0,j.zz)(t)?t:void 0;case"boolean":return"boolean"==typeof t?t:!1===e.strict?!!t:void 0;case"site":if("string"!=typeof t||!eS.test(t))return;return t;case"match-option":return(0,j.o)(t)?t:void 0;case"enum":return"string"==typeof t&&eC(e.values).includes(t)?t:void 0}}function eC(e){return Array.isArray(e)?e:Object.values(e)}let eI=["tracecontext","datadog"],eA=["cache-control","etag","age","expires","content-type","content-encoding","vary","content-length","server-timing","x-cache","cf-cache-status","x-vercel-cache"],eT={...eh,applicationId:{type:"string",required:!0},actionNameAttribute:{type:"string"},workerUrl:{type:"string"},subdomain:{type:"string"},sessionReplaySampleRate:{type:"percentage",default:0},traceSampleRate:{type:"percentage",default:100},profilingSampleRate:{type:"percentage",default:0},compressIntakeRequests:{type:"boolean",default:!1},trackUserInteractions:{type:"boolean",default:!0,strict:!1},trackResources:{type:"boolean",default:!0,strict:!1},trackLongTasks:{type:"boolean",default:!0,strict:!1},trackViewsManually:{type:"boolean",default:!1,strict:!1},betaEnableViewUpdates:{type:"boolean"},betaTrackWebSockets:{type:"boolean",default:!1,strict:!1},enablePrivacyForActionName:{type:"boolean",default:!0},propagateTraceBaggage:{type:"boolean",default:!0},startSessionReplayRecordingManually:{type:"boolean",default:!1,strict:!1},sessionReplayCanvasRecording:{type:"schema",schema:{enable:{type:"boolean",required:!0},maxFramesPerSecond:{type:"number",min:0,max:5,default:1},hashingMaxDimension:{type:"number",min:1,max:100,default:100},maxImageDimension:{type:"number",min:1,max:1e3,default:1e3}}},defaultPrivacyLevel:{type:"enum",values:ep,default:ep.MASK_USER_INPUT,strict:!1},traceContextInjection:{type:"enum",values:ef,default:ef.SAMPLED,strict:!1},excludedActivityUrls:{type:"match-option",multiple:!0,default:[]},allowedTracingUrls:{type:"union",multiple:!0,strict:!1,default:[],variants:[{type:"match-option"},{type:"schema",schema:{match:{type:"match-option",required:!0},propagatorTypes:{type:"enum",values:["datadog","b3","b3multi","tracecontext"],multiple:!0,strict:!1,default:eI}}}]},plugins:{type:"schema",multiple:!0,strict:!1,default:[],schema:{name:{type:"string",required:!0},getConfigurationTelemetry:{type:"function",strict:!1,signature:void 0},onInit:{type:"function",strict:!1,signature:void 0},onRumStart:{type:"function",strict:!1,signature:void 0}}},trackFeatureFlagsForEvents:{type:"enum",values:["vital","action","long_task","resource"],multiple:!0,strict:!1,default:[]}};function eR(e,t,n){return!(0,em.xT)()&&(e??!1)}function eN(e){return(0,j.o)(e)?{match:e,propagatorTypes:eI}:(0,j.sK)(e)&&(0,j.o)(e.match)&&(null===e.propagatorTypes||void 0===e.propagatorTypes||Array.isArray(e.propagatorTypes))?{match:e.match,propagatorTypes:e.propagatorTypes||eI}:void 0}let eO=["request","response","any"];var eP=n(98946),eD=n(63488);function eM(){let e;let t=window;if(t.Zone&&(e=(0,eP.I)(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){let n=new t.MutationObserver(eD.Z);e=eP.I(n,"originalInstance")?.constructor}return e||(e=t.MutationObserver),e}var e$=class{constructor(){this.callbacks={}}notify(e,t){let n=this.callbacks[e];
463n&&n.forEach(e=>e(t))}subscribe(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:()=>{this.callbacks[e]=this.callbacks[e].filter(e=>t!==e)}}}};let ej=((N={})[N.AUTO_ACTION_COMPLETED=0]="AUTO_ACTION_COMPLETED",N[N.BEFORE_VIEW_CREATED=1]="BEFORE_VIEW_CREATED",N[N.VIEW_CREATED=2]="VIEW_CREATED",N[N.BEFORE_VIEW_UPDATED=3]="BEFORE_VIEW_UPDATED",N[N.VIEW_UPDATED=4]="VIEW_UPDATED",N[N.VIEW_ENDED=5]="VIEW_ENDED",N[N.AFTER_VIEW_ENDED=6]="AFTER_VIEW_ENDED",N[N.REQUEST_STARTED=7]="REQUEST_STARTED",N[N.REQUEST_COMPLETED=8]="REQUEST_COMPLETED",N[N.WEBSOCKET_COMPLETED=9]="WEBSOCKET_COMPLETED",N[N.SESSION_EXPIRED=10]="SESSION_EXPIRED",N[N.SESSION_RENEWED=11]="SESSION_RENEWED",N[N.PREPARE_URGENT_FLUSH=12]="PREPARE_URGENT_FLUSH",N[N.RAW_RUM_EVENT_COLLECTED=13]="RAW_RUM_EVENT_COLLECTED",N[N.RUM_EVENT_COLLECTED=14]="RUM_EVENT_COLLECTED",N[N.RAW_ERROR_COLLECTED=15]="RAW_ERROR_COLLECTED",N[N.ACTION_STARTED=16]="ACTION_STARTED",N[N.DURATION_VITAL_STARTED=17]="DURATION_VITAL_STARTED",N);var eL=n(57221),eF=n(3664);let eB=eL.TN,eU={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",WEBSOCKET:"websocket",OTHER:"other"},ez={FETCH:eU.FETCH,XHR:eU.XHR},eZ=[[eU.DOCUMENT,e=>"navigation"===e],[eU.XHR,e=>"xmlhttprequest"===e],[eU.FETCH,e=>"fetch"===e],[eU.BEACON,e=>"beacon"===e],[eU.CSS,(e,t)=>/\.css$/i.test(t)],[eU.JS,(e,t)=>/\.js$/i.test(t)],[eU.IMAGE,(e,t)=>["image","img","icon"].includes(e)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)],[eU.FONT,(e,t)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(t)],[eU.MEDIA,(e,t)=>["audio","video"].includes(e)||null!==/\.(mp3|mp4)$/i.exec(t)]];function eV(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function eq(e,t,n){if(e<=t&&t<=n)return{duration:(0,$.dg)((0,$._J)(t,n)),start:(0,$.dg)((0,$._J)(e,t))}}function eW(e){return e&&(!(0,ed.iU)(e)||(0,eg.W_)(eg.uh.TRACK_INTAKE_REQUESTS))}let eG=/data:(.+)?(;base64)?,/g;function eH(e,t=24e3){if(e.length<=t||!e.startsWith("data:"))return e;let n=e.substring(0,100).match(eG);return n?`${n[0]}[...]`:e}function eY(e){return e.nodeType===Node.TEXT_NODE}function eK(e){return e.nodeType===Node.ELEMENT_NODE}function eJ(e){return eK(e)&&!!e.shadowRoot}function eX(e){return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&eK(e.host)}function eQ(e,t){let n=e.firstChild;for(;n;)t(n),n=n.nextSibling;eJ(e)&&t(e.shadowRoot)}function e0(e){return eX(e)?e.host:e.parentNode}function e1(e){if(e.parentElement)return e.parentElement;let t=e.parentNode;return t&&eX(t)?t.host:null}var e2=n(64435),e3=n(14447);let e5=((O={}).EVENT="event",O.FIRST_INPUT="first-input",O.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",O.LAYOUT_SHIFT="layout-shift",O.LONG_TASK="longtask",O.LONG_ANIMATION_FRAME="long-animation-frame",O.NAVIGATION="navigation",O.PAINT="paint",O.RESOURCE="resource",O.VISIBILITY_STATE="visibility-state",O);function e4(e){return new ec.y$(t=>{let n;let r=e=>{let n=e.filter(e=>!("resource"===e.entryType&&(!eW(e.name)||!(e.duration>=0))));n.length>0&&t.notify(n)},i=!0,o=new PerformanceObserver((0,ee.zk)(e=>{i?n=(0,e2.iK)(()=>r(e.getEntries())):r(e.getEntries())}));return o.observe(e),i=!1,!a&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(a=(0,e3.Oo)(performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),()=>{o.disconnect(),(0,e2.gr)(n)}})}function e9(e){return PerformanceObserver.supportedEntryTypes.includes(e)}let e6="Masked Element",e7=["data-dd-action-name","data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],e8=[ta,tr],te=[ta,function(e){if("BODY"===e.tagName)return;let t=e.classList;for(let n=0;n<t.length;n+=1){let r=t[n];if(!tn(r))return`${CSS.escape(e.tagName)}.${CSS.escape(r)}`}},ti];function tt(e,t){if(!e.isConnected)return;let n=function(e){let t=[],n=e;for(;n;){let e=n.getRootNode();if(t.push({rootNode:e,target:n}),eX(e))n=e.host;else break}return t.reverse()}(e),r=[];for(let{rootNode:e,target:i}of n){let n=function(e,t,n){let r;let i=e;for(;i&&"HTML"!==i.nodeName;){let e=tl(i,t,e8,tc,n,r);if(e)return td(e,r);r=td(tl(i,t,te,tu,n,r)||function(e){let t=ts(e);return`${CSS.escape(e.tagName)}:nth-of-type(${t})`}(i),r),i=i.parentElement}return r}(i,e,t);if(!n)return;r.push(n)}return r.join("::shadow ")}function tn(e){return/[0-9]/.test(e)}function tr(e){if(e.id&&!tn(e.id))return`#${CSS.escape(e.id)}`}function ti(e){return CSS.escape(e.tagName)}function ta(e,t){if(t){let e=n(t);if(e)return e}for(let e of e7){let t=n(e);if(t)return t}function n(t){if(e.hasAttribute(t))return`${CSS.escape(e.tagName)}${to(t,e.getAttribute(t))}`}}function to(e,t){return`[${e}="${CSS.escape(t)}"]`}function ts(e){let t=e.parentNode.firstElementChild,n=1;for(;t&&t!==e;)t.tagName===e.tagName&&(n+=1),t=t.nextElementSibling;return n}function tl(e,t,n,r,i,a){for(let o of n){let n=o(e,i);if(n&&r(e,t,n,a))return n}}function tc(e,t,n,r){return 1===t.querySelectorAll(td(n,r)).length}function tu(e,t,n,r){let i;if(void 0===r)i=e=>e.matches(n);else{let e=td(`${n}:scope`,r);i=t=>null!==t.querySelector(e)}let a=e.previousElementSibling;for(;a;){if(i(a))return!1;a=a.previousElementSibling}for(a=e.nextElementSibling;a;){if(i(a))return!1;a=a.nextElementSibling}return!0}function td(e,t){return t?`${e}>${t}`:e}let tp={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:ep.ALLOW,MASK:ep.MASK,MASK_USER_INPUT:ep.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:ep.MASK_UNLESS_ALLOWLISTED},tf="data-dd-privacy",th="hidden",tm="***",tg="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",ty={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function tv(e){return`[${tf}="${e}"], .dd-privacy-${e}`}function tb(e,t,n){if(n?.has(e))return n.get(e);let r=e0(e),i=r?tb(r,t,n):t,a=tw(t_(e),i);return n&&n.set(e,a),a}
463function tw(e,t){switch(t){case tp.HIDDEN:case tp.IGNORE:return t}switch(e){case tp.ALLOW:case tp.MASK:case tp.MASK_USER_INPUT:case tp.MASK_UNLESS_ALLOWLISTED:case tp.HIDDEN:case tp.IGNORE:return e;default:return t}}function t_(e){if(eK(e)){if("BASE"===e.tagName)return tp.ALLOW;if("INPUT"===e.tagName){if("password"===e.type||"email"===e.type||"tel"===e.type||"hidden"===e.type)return tp.MASK;let t=e.getAttribute("autocomplete");if(t&&(t.startsWith("cc-")||t.endsWith("-password")))return tp.MASK}if(e.matches(tv(tp.HIDDEN)))return tp.HIDDEN;if(e.matches(tv(tp.MASK)))return tp.MASK;if(e.matches(tv(tp.MASK_UNLESS_ALLOWLISTED)))return tp.MASK_UNLESS_ALLOWLISTED;if(e.matches(tv(tp.MASK_USER_INPUT)))return tp.MASK_USER_INPUT;if(e.matches(tv(tp.ALLOW)))return tp.ALLOW;if(function(e){if("SCRIPT"===e.nodeName)return!0;if("LINK"===e.nodeName){let e=t("rel");return/preload|prefetch/i.test(e)&&"script"===t("as")||"shortcut icon"===e||"icon"===e}if("META"===e.nodeName){let n=t("name"),r=t("rel"),i=t("property");return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===r||"apple-touch-icon"===r||"shortcut icon"===r||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(i)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||e.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(i)||/^product:/.test(i)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function t(t){return(e.getAttribute(t)||"").toLowerCase()}return!1}(e))return tp.IGNORE}}function tx(e,t){switch(t){case tp.MASK:case tp.HIDDEN:case tp.IGNORE:return!0;case tp.MASK_UNLESS_ALLOWLISTED:if(eY(e))return!!tS(e.parentNode)||!tI(e.textContent||"");return tS(e);case tp.MASK_USER_INPUT:return eY(e)?tS(e.parentNode):tS(e);default:return!1}}function tE(e,t,n,r,i){if(r!==tp.MASK&&r!==tp.MASK_UNLESS_ALLOWLISTED||"data-dd-privacy"===t||e7.includes(t)||t===i.actionNameAttribute)return!1;switch(t){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!("A"===e&&"href"===t||"IFRAME"===e&&"srcdoc"===t||n&&t.startsWith("data-"))||("IMG"===e||"SOURCE"===e)&&("src"===t||"srcset"===t)}function tS(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!ty[e.tagName]}function tk(e){return e.replace(/\S/g,"x")}function tC(e,t){let n=e.parentElement?.tagName,r=e.textContent||"";return("SCRIPT"===n?r="***":t===tp.HIDDEN?r="***":tx(e,t)&&("DATALIST"===n||"SELECT"===n||"OPTGROUP"===n||(r="OPTION"===n?"***":tk(r))),"HEAD"!==n||r.trim())?r:""}function tI(e){return!e?.trim()||window.$DD_ALLOW?.has(e.toLocaleLowerCase())||!1}function tA(){let e=window.visualViewport;return Math.round(e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function tT(){let e=window.visualViewport;return Math.round(e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function tR(){return o||(o=new ec.y$(e=>{let{throttled:t}=(0,eD.P)(()=>{e.notify(tN())},200);return(0,e3.Oo)(window,e3.EZ.RESIZE,t,{capture:!0,passive:!0}).stop})),o}function tN(){let e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var tO=n(69657);let tP=((P={})[P.OFF=0]="OFF",P[P.SAMPLED=1]="SAMPLED",P[P.FORCED=2]="FORCED",P);function tD(e,t){return(0,em.xT)()?(0,em.ke)(em.BP.RECORDS)?1:0:(0,tO.HR)(e.id,(0,tO.HQ)(t.sessionSampleRate,t.sessionReplaySampleRate))?1:e.isReplayForced?2:0}var tM=n(48078);function t$(e){let t=crypto.getRandomValues(new Uint32Array(2)),n=BigInt(t[0])+(BigInt(t[1])<<32n);return 63===e&&(n&=0x7fffffffffffffffn),n}function tj(e){return e.toString(16).padStart(16,"0")}var tL=n(38566);function tF(e,t,n=!1){return e.some(e=>{try{if("function"==typeof e)return e(t);if(e instanceof RegExp)return e.lastIndex=0,e.test(t);if("string"==typeof e)return n?t.startsWith(e):e===t}catch(e){q.j.error(e)}return!1})}function tB(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function tU(e,t,n,r,i,a){let o=n.findTrackedSession();if(!o)return;let s=e.allowedTracingUrls.find(e=>tF([e.match],t.url,!0));if(!s)return;let l=(0,tO.HR)(o.id,(0,tO.HQ)(e.sessionSampleRate,e.traceSampleRate)),c=(0,em.xT)()?em.Ad()?.getIsTraceSampled()??l:l;(c||e.traceContextInjection===ef.ALL)&&(t.traceSampled=c,t.traceId=t$(64),t.spanId=t$(63),a(function(e,t,n,r,i,a,o,s){let l={};if(i.forEach(r=>{switch(r){case"datadog":Object.assign(l,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":e.toString()});break;case"tracecontext":Object.assign(l,{traceparent:`00-0000000000000000${tj(e)}-${tj(t)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break;case"b3":Object.assign(l,{b3:`${tj(e)}-${tj(t)}-${n?"1":"0"}`});break;case"b3multi":Object.assign(l,{"X-B3-TraceId":tj(e),"X-B3-SpanId":tj(t),"X-B3-Sampled":n?"1":"0"})}}),s.propagateTraceBaggage){let e={"session.id":r},t=a.getContext().id;"string"==typeof t&&(e["user.id"]=t);let n=o.getContext().id;"string"==typeof n&&(e["account.id"]=n);let i=Object.entries(e).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join(",");i&&(l.baggage=i)}return l}(t.traceId,t.spanId,t.traceSampled,o.id,s.propagatorTypes,r,i,e)))}var tz=n(22944);let tZ=32*tz.Hi;function tV(e,t){return t.allowedGraphQlUrls.find(t=>tF([t.match],e))}let tq=new WeakMap;function tW(){return s||(s="XMLHttpRequest"in G.globalObject?new ec.y$(e=>{let{stop:t}=(0,tM.Su)(XMLHttpRequest.prototype,"open",tG),{stop:n}=(0,tM.Su)(XMLHttpRequest.prototype,"send",t=>{(function({target:e,parameters:[t],handlingStack:n},r){let i=tq.get(e);if(!i)return;i.state="start",i.startClocks=(0,$.$I)(),i.isAborted=!1,i.xhr=e,i.handlingStack=n,i.requestBody=t;let a=!1,{stop:o}=(0,tM.Su)(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&s()}),s=()=>
463{l(),o(),a||(a=!0,i.duration=(0,$._J)(i.startClocks.timeStamp,(0,$.n$)()),i.status=e.status,"string"==typeof e.response&&(i.responseBody=e.response),r.notify({...i,state:"complete"}))},{stop:l}=(0,e3.Oo)(e,"loadend",s);r.notify(i)})(t,e)},{computeHandlingStack:!0}),{stop:r}=(0,tM.Su)(XMLHttpRequest.prototype,"abort",tH);return()=>{t(),n(),r()}}):new ec.y$),s}function tG({target:e,parameters:[t,n]}){tq.set(e,{state:"open",method:String(t).toUpperCase(),url:(0,H.D5)(String(n))})}function tH({target:e}){let t=tq.get(e);t&&(t.isAborted=!0)}var tY=n(28209),tK=n(79e3),tJ=n(41305),tX=n(6908),tQ=n(76807),t0=n(25904);let t1=220*tz.Hi;function t2(e,t=t1){let n=(0,t0.y)(Object.prototype),r=(0,t0.y)(Array.prototype);try{let n=[],r=new WeakMap,i=t3(e,"$",void 0,n,r),a=JSON.stringify(i),o=a?a.length:0;if(o>t){t5(t,"discarded",e);return}for(;n.length>0&&o<t;){let i=n.shift(),a=0;if(Array.isArray(i.source))for(let s=0;s<i.source.length;s++){let l=t3(i.source[s],i.path,s,n,r);if(void 0!==l?o+=JSON.stringify(l).length:o+=4,o+=a,a=1,o>t){t5(t,"truncated",e);break}i.target[s]=l}else for(let s in i.source)if(Object.prototype.hasOwnProperty.call(i.source,s)){let l=t3(i.source[s],i.path,s,n,r);if(void 0!==l&&(o+=JSON.stringify(l).length+a+s.length+3,a=1),o>t){t5(t,"truncated",e);break}i.target[s]=l}}return i}finally{n(),r()}}function t3(e,t,n,r,i){let a=function(e){if(("object"!=typeof e||null===e)&&"function"!=typeof e)return e;if("function"==typeof e.toJSON)try{return e.toJSON()}catch{}return e}(e);if(!a||"object"!=typeof a)return"bigint"==typeof a?`[BigInt] ${a.toString()}`:"function"==typeof a?`[Function] ${a.name||"unknown"}`:"symbol"==typeof a?`[Symbol] ${a.description||a.toString()}`:a;let o=function e(t){try{if(t instanceof Event)return{type:t.type,isTrusted:t.isTrusted,currentTarget:t.currentTarget?e(t.currentTarget):null,target:t.target?e(t.target):null};if(t instanceof RegExp)return`[RegExp] ${t.toString()}`;let n=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(n?.[1])return`[${n[1]}]`}catch{}return"[Unserializable]"}(a);if("[Object]"!==o&&"[Array]"!==o&&"[Error]"!==o)return o;if(i.has(e))return`[Reference seen at ${i.get(e)}]`;let s=void 0!==n?`${t}.${n}`:t,l=Array.isArray(a)?[]:{};return i.set(e,s),r.push({source:a,target:l,path:s}),l}function t5(e,t,n){q.j.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,n)}var t4=n(44580);function t9({originalError:e,stackTrace:t,source:n,useFallbackStack:r=!0,nonErrorPrefix:i}){let a=(0,tJ.V)(e);return{source:n,type:t?t.name:void 0,message:t?.message&&t?.name?t.message:a?"Empty message":i?`${i} ${(0,t0.l)(t2(e))}`:(0,t0.l)(t2(e)),stack:t?(0,tQ.P3)(t):r?tJ.K:void 0}}function t6(e){return e?.stack.map(e=>e.url).filter(e=>!!e)??[]}function t7({stackTrace:e,originalError:t,handlingStack:n,componentStack:r,startClocks:i,nonErrorPrefix:a,useFallbackStack:o=!0,source:s,handling:l}){let c=e??((0,tJ.V)(t)?(0,tK._)(t):void 0),u=(0,tJ.V)(t)?function(e){let t=[],n=e.cause;for(;null!=n&&t.length<10;){let e=(0,tJ.V)(n),r=e?(0,tK._)(n):void 0;t.push({originalError:n,stackTrace:r}),n=e?n.cause:void 0}return t}(t):[],d=t9({originalError:t,stackTrace:c,source:s,useFallbackStack:o,nonErrorPrefix:a}),p=u.map(({originalError:e,stackTrace:t})=>t9({originalError:e,stackTrace:t,source:s,useFallbackStack:!1}));return{startClocks:i,handling:l,handlingStack:n,componentStack:r,originalError:t,...d,debugIds:function(e,t){let n=t.flatMap(({stackTrace:e})=>t6(e));return(0,t4.J)(t6(e).concat(n))}(c,u),causes:p.length?p:void 0,fingerprint:(0,tJ.V)(t)&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0,context:function(e){if((0,j.sK)(e))return e.dd_context}(t)}}function t8(){return new ec.y$(e=>{let t=(t,n)=>{let r=t7({stackTrace:n,originalError:t,startClocks:(0,$.$I)(),nonErrorPrefix:"Uncaught",source:tX.zH.SOURCE,handling:"unhandled"});e.notify(r)},{stop:n}=(0,tM.Su)(G.globalObject,"onerror",({parameters:[e,n,r,i,a]})=>{let o;(0,tJ.V)(a)||(o=(0,tK.f)(e,n,r,i)),t(a??e,o)}),{stop:r}=(0,e3.jO)(G.globalObject.window,"unhandledrejection")?(0,tM.Su)(G.globalObject,"onunhandledrejection",({parameters:[e]})=>{t(e.reason||"Empty reason")}):{stop:eD.Z};return()=>{n(),r()}})}var ne=n(62028);async function nt(e){let t=e.getReader(),n=[];for(;;){let e=await t.read();if(e.done)break;n.push(e.value)}return t.cancel().catch(eD.Z),(0,tz.Kb)(n)}let nn=((D={})[D.IGNORE=0]="IGNORE",D[D.COLLECT=1]="COLLECT",D),nr=[];function ni({responseBodyAction:e}={}){return e&&nr.push(e),l||(l=new ec.y$(e=>{if(!G.globalObject.fetch)return;let{stop:t}=(0,tM.Su)(G.globalObject,"fetch",t=>(function({parameters:e,onPostCall:t,handlingStack:n},r){let[i,a]=e,o=a?.method;void 0===o&&i instanceof Request&&(o=i.method);let s=void 0!==o?String(o).toUpperCase():"GET",l=i instanceof Request?i.url:(0,H.D5)(String(i)),c={state:"start",init:a,input
463:i,method:s,startClocks:(0,$.$I)(),url:l,handlingStack:n,isAbortedOnStart:i instanceof Request&&i.signal?.aborted||a?.signal?.aborted||!1};r.notify(c),e[0]=c.input,e[1]=c.init,t(e=>{na(r,e,c).catch(ee.$y)})})(t,e),{computeHandlingStack:!0});return t})),l}async function na(e,t,n){let r;try{r=await t}catch(t){e.notify({...n,state:"resolve",status:0,isAborted:n.init?.signal?.aborted||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t});return}if(n.response=r,n.status=r.status,n.responseType=r.type,n.isAborted=!1,1===nr.reduce((e,t)=>Math.max(e,t(n)),0)){let e=(0,ne.u)(r);if(e?.body)try{let t=await nt(e.body);n.responseBody=new TextDecoder().decode(t)}catch{}}e.notify({...n,state:"resolve"})}let no={},ns=((M={})[M.RUNTIME_ERROR=0]="RUNTIME_ERROR",M[M.FETCH=1]="FETCH",M[M.XHR=2]="XHR",M[M.CONSOLE=3]="CONSOLE",M),nl=1;function nc(e){e.requestIndex||(e.requestIndex=nl++)}function nu(e){return"string"==typeof e?(0,tz.qt)(e):e instanceof ArrayBuffer||ArrayBuffer.isView(e)?e.byteLength:"undefined"!=typeof Blob&&e instanceof Blob?e.size:0}function nd(e,t,n){if(void 0===e.openClocks)return;let r=(0,$._J)(e.openClocks.timeStamp,t.timeStamp);if("in"===n&&void 0===e.firstMessageInOffset?e.firstMessageInOffset=r:"out"===n&&void 0===e.firstMessageOutOffset&&(e.firstMessageOutOffset=r),"in"===n){if(void 0!==e.lastMessageInAt){let n=(0,$._J)(e.lastMessageInAt,t.timeStamp);n>e.longestInboundSilence&&(e.longestInboundSilence=n)}e.lastMessageInAt=t.timeStamp}}function np(e){return eb(e)&&e<0?void 0:e}function nf(e,t,n,r,i,a){let o;let s=(0,tY.C)(nh)(e,t,n,r),l=!1,c=(0,e2.iK)((0,ee.zk)(()=>f({hadActivity:!1})),100),u=void 0!==a?(0,e2.iK)((0,ee.zk)(()=>f({hadActivity:!0,end:(0,$.n$)()})),a):void 0,d=s.subscribe(({isBusy:e})=>{(0,e2.gr)(c),(0,e2.gr)(o);let t=(0,$.n$)();e||(o=(0,e2.iK)((0,ee.zk)(()=>f({hadActivity:!0,end:t})),100))}),p=()=>{l=!0,(0,e2.gr)(c),(0,e2.gr)(o),(0,e2.gr)(u),d.unsubscribe()};function f(e){l||(p(),i(e))}return{stop:p}}function nh(e,t,n,r){return new ec.y$(i=>{let a;let o=[],s=0;return o.push(t.subscribe(e=>{e.every(ng)||l()}),n.subscribe(l),e4({type:"resource"}).subscribe(e=>{e.some(e=>!nm(r,e.name))&&l()}),e.subscribe(7,e=>{nm(r,e.url)||(void 0===a&&(a=e.requestIndex),s+=1,l())}),e.subscribe(8,e=>{nm(r,e.url)||void 0===a||e.requestIndex<a||(s-=1,l())})),()=>{o.forEach(e=>e.unsubscribe())};function l(){i.notify({isBusy:s>0})}})}function nm(e,t){return tF(e.excludedActivityUrls,t)}function ng(e){let t="characterData"===e.type?e.target.parentElement:e.target;return!!(t&&eK(t)&&t.matches("[data-dd-excluded-activity-mutations], [data-dd-excluded-activity-mutations] *"))}function ny({lifeCycle:e,isChildEvent:t,onChange:n=eD.Z}){let r={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},i=e.subscribe(14,e=>{if("view"!==e.type&&"vital"!==e.type&&t(e))switch(e.type){case m.ERROR:r.errorCount+=1,n();break;case m.ACTION:r.actionCount+=1,e.action.frustration&&(r.frustrationCount+=e.action.frustration.type.length),n();break;case m.LONG_TASK:r.longTaskCount+=1,n();break;case m.RESOURCE:e._dd?.discarded||(r.resourceCount+=1,n())}});return{stop:()=>{i.unsubscribe()},eventCounts:r}}let nv=5*$.yR;function nb(e){let t=(0,eF.p)({expireDelay:nv}),n=new Map;function r(e){n.delete(e.key),e.eventCounts?.stop()}function i(){n.forEach(e=>{r(e)}),t.reset()}let a=e.subscribe(11,i);return{start:function(i,a,o,s){let l=F(),c=t.add(l,a.relative),u=n.get(i);u&&r(u);let d={id:l,key:i,startClocks:a,data:o,historyEntry:c,eventCounts:s?.isChildEvent?ny({lifeCycle:e,isChildEvent:s.isChildEvent(l)}):void 0};return n.set(i,d),d},stop:function(e,t,i){let a=n.get(e);if(!a)return;let o=i?(0,e_.$e)(a.data,i):a.data;a.historyEntry.close(t.relative);let s=(0,$._J)(a.startClocks.timeStamp,t.timeStamp),l=a.eventCounts?.eventCounts;return r(a),{...o,id:a.id,startClocks:a.startClocks,duration:s,counts:l}},discard:function(e){let t=n.get(e);if(!t)return;let i=t.eventCounts?.eventCounts;return r(t),t.historyEntry.remove(),{...t.data,id:t.id,startClocks:t.startClocks,counts:i}},getCounts:function(e){return n.get(e)?.eventCounts?.eventCounts},findId:function(e){return t.findAll(e)},stopAll:function(){a.unsubscribe(),i(),t.stop()}}}let nw=["HTML","BODY"],n_=2*tz.Hi,nx=e7.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]),nE=$.WT;function nS(e,t){let n=function(e,t){let n=e;for(;n;){if(n.matches(t))return n;n=e1(n)}return null}(e,`[${t}]`);
463if(n)return nT(nA(n.getAttribute(t).trim()))}let nk=[(e,t,n)=>{if("labels"in e&&e.labels&&e.labels.length>0)return nN(e.labels[0],t,n)},e=>{if("INPUT"===e.nodeName){let t=e.getAttribute("type");if("button"===t||"submit"===t||"reset"===t)return{name:e.value,nameSource:"text_content"}}},(e,t,n)=>{if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return nN(e,t,n)},(e,t,n)=>nR(e,"aria-label",t,n),(e,t,n)=>{let r=e.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(t=>(function(e,t){let n=e.getRootNode();if(n instanceof ShadowRoot){let e=n.getElementById(t);if(e)return e}return e.ownerDocument?e.ownerDocument.getElementById(t):null})(e,t)).filter(e=>!!e).map(e=>nO(e,t,n)).join(" "),nameSource:"text_content"}},(e,t,n)=>nR(e,"alt",t,n),(e,t,n)=>nR(e,"name",t,n),(e,t,n)=>nR(e,"title",t,n),(e,t,n)=>nR(e,"placeholder",t,n),(e,t,n)=>{if("options"in e&&e.options.length>0)return nN(e.options[0],t,n)}],nC=[(e,t,n)=>nN(e,t,n)];function nI(e,t,n,r){let i=e,a=0;for(;a<=10&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(let e of t){let t=e(i,n,r);if(t){let{name:e,nameSource:n}=t,r=e?.trim();if(r)return{name:nT(nA(r)),nameSource:n}}}if("FORM"===i.nodeName)break;i=e1(i),a+=1}}function nA(e){return e.replace(/\s+/g," ")}function nT(e){return e.length>100?`${z(e,100)} [...]`:e}function nR(e,t,n,r){let{enablePrivacyForActionName:i,defaultPrivacyLevel:a}=n,o=e.getAttribute(t);if(o&&i){let i=tb(e,a,r);if(tE(e.tagName,t,o,i,n)){var s;o=tI(s=o)?s:e6||tk(s)}}else o||(o="");return{name:o,nameSource:"standard_attribute"}}function nN(e,t,n){return{name:nO(e,t,n)||"",nameSource:"text_content"}}function nO(e,t,n){if(e.isContentEditable)return;let{enablePrivacyForActionName:r,actionNameAttribute:i,defaultPrivacyLevel:a}=t,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(e){let t=tb(e,a,n);if(r&&t&&tx(e,t))return NodeFilter.FILTER_REJECT;if(eK(e)){if(e.hasAttribute("data-dd-action-name")||i&&e.hasAttribute(i))return NodeFilter.FILTER_REJECT;let t=getComputedStyle(e);if("visible"!==t.visibility||"none"===t.display||t.contentVisibility&&"visible"!==t.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}),s="";for(;o.nextNode();){let e=o.currentNode;if(eK(e)){("BR"===e.nodeName||"P"===e.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(e).display))&&(s+=" ");continue}s+=e.textContent||""}return s.replace(/\s+/g," ").trim()}function nP(){let e=window.getSelection();return!e||e.isCollapsed}function nD(e){return e.target instanceof Element&&!1!==e.isPrimary}function nM(e){if((2&e.ignore)!=0||e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll)return!1;let t=e.event.target;return"LABEL"===t.tagName&&t.hasAttribute("for")&&(t=document.getElementById(t.getAttribute("for"))),!t?.matches('input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}let n$=10*$.WT,nj=new Map;function nL(e,t){nj.set(e,t),nj.forEach((e,t)=>{(0,$._J)(t,(0,$._q)())>n$&&nj.delete(t)})}function nF(e){return t=>t.action?.id?.includes(e)??!1}function nB(e){if(e.composed&&eJ(e.target)&&"function"==typeof e.composedPath){let t=e.composedPath();if(t.length>0&&t[0]instanceof Element)return t[0]}return e.target}var nU=n(31009);function nz(e){let t="events"in e,n=np((0,$.dg)(e.duration));return{rawRumEvent:{type:m.ACTION,date:e.startClocks.timeStamp,action:{id:e.id,target:{name:e.name},type:e.type,...void 0!==n&&{loading_time:n},...e.counts&&{error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},frustration:{type:e.frustrationTypes}},...t?{_dd:{action:{target:{selector:e.target?.selector||void 0,width:e.target?.width||void 0,height:e.target?.height||void 0,composed_path_selector:e.target?.composedPathSelector},position:e.position,name_source:e.nameSource}}}:{context:e.context}},duration:e.duration,startClocks:e.startClocks,domainContext:t?{events:e.events}:{handlingStack:e.handlingStack}}}let nZ="csp_violation";function nV(e){return{startClocks:(0,$.$I)(),source:tX.zH.REPORT,handling:"unhandled",...e}}function nq(e,t,n,r,i){return n?(0,tQ.P3)({name:e,message:t,stack:[{func:"?",url:n,line:r??void 0,column:i??void 0}]}):void 0}function nW(){if(e9("navigation")){let e=performance.getEntriesByType("navigation")[0];if(e&&!(e.loadEventEnd>0&&e.domComplete<=0))return e}let e=function(){let e={},t=performance.timing;for(let n in t)if(eb(t[n])){let r=t[n];e[n]=0===r?0:(0,$.zj)(r)}return e}(),t={entryType:"navigation",initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...t,toJSON:void 0}),...e};return t}function nG(e){return e.responseStart>=0&&e.responseStart<=(0,$._q)()?e.responseStart:void 0}let nH=2*$.yR;function nY(e){let t=function(e){let t=e.querySelector("meta[name=dd-trace-id]"),n=e.querySelector("meta[name=dd-trace-time]");return nK(t?.content,n?.content)}(e)||function(e){let t=function(e){for(let t=0;t<e.childNodes.length;t+=1){let n=nJ(e.childNodes[t]);if(n)return n}if(e.body)for(let t=e.body.childNodes.length-1;t>=0;t-=1){let n=e.body.childNodes[t],r=nJ(n);if(r)return r;if(!eY(n))break}}(e);if(t)return nK(U(t,"trace-id"),U(t,"trace-time"))}(e);if(!(!t||t.traceTime<=(0,$.U)()-nH))return t.traceId}function nK(e,t){let n=t&&Number(t);if(e&&n)return{traceId:e,traceTime:n}}function nJ(e){if(e&&e.nodeType===Node.COMMENT_NODE){let t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}var nX=n(10482);let nQ=$.WT;function n0(){let e=[];function t(t){let r;if(!t||t.didTimeout){let e=performance.now();r=()=>30-(performance.now()-e)}else r=t.timeRemaining.bind(t);for(;r()>0&&e.length;)e.shift()();e.length&&n()}function n(){(0,nX.K)(t,{timeout:nQ})}return{push(t){1===e.push(t)&&n()},stop(){e.length=0}}}var n1=n(85727);function n2(e,t,n){var r;let i=t?function(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}(t,n):function(e,t){if("navigation"!==e.initiatorType)return;let n=(0,tY.C)(nY)(document);if(n)return{_dd:{trace_id:n,span_id:t$(63).toString(),rule_psr:t.rulePsr}}}
463(e,n);if(!n.trackResources&&!i)return;let a=(0,$.DY)(e.startTime),o=function(e){let{duration:t,startTime:n,responseEnd:r}=e;return"navigation"===e.initiatorType||0===t&&n<r?(0,$._J)(n,r):t}(e),s=function(e,t){let n=t.trackResourceHeaders;if(0===n.length||!e)return;let r=n.filter(t=>void 0===t.url||tF([t.url],e.url,!0));if(0===r.length)return;let i=r.filter(e=>void 0===e.location||"any"===e.location||"response"===e.location),a=r.filter(e=>void 0===e.location||"any"===e.location||"request"===e.location),o=i.length>0?function(e,t){if(e.type===ez.FETCH&&e.response)return n4(e.response.headers,t);if(e.type===ez.XHR&&e.xhr){let n=e.xhr.getAllResponseHeaders();if(n)try{return n4(new Headers(function(e){let t=[];for(let n of e.trim().split(/\r\n/)){let e=n.indexOf(":");e>0&&t.push([n.substring(0,e).trim(),n.substring(e+1).trim()])}return t}(n)),t)}catch{}}}(e,i):void 0,s=a.length>0?function(e,t){let n;if(e.type===ez.FETCH)return e.init?.headers?n=new Headers(e.init.headers):e.input instanceof Request&&(n=e.input.headers),n?n4(n,t):void 0}(e,a):void 0;if(o||s)return{resource:{request:s?{headers:s}:void 0,response:o?{headers:o}:void 0}}}(t,n);return{startClocks:a,duration:o,rawRumEvent:(0,e_.$e)({date:a.timeStamp,resource:{id:F(),duration:(0,$.dg)(o),type:function(e){let t=e.name;if(!(0,H.jv)(t))return eU.OTHER;let n=(0,H.ye)(t);for(let[t,r]of eZ)if(r(e.initiatorType,n))return t;return eU.OTHER}(e),method:t?.method,status_code:t?t.status:0===(r=e.responseStatus)?void 0:r,url:t?eH(t.url):e.name,protocol:""===e.nextHopProtocol?void 0:e.nextHopProtocol,delivery_type:""===e.deliveryType?"other":e.deliveryType,graphql:t&&function(e,t){let n=tV(e.url,t);if(n)return function(e,t){let n=function(e,t=!1){let n;if("POST"===e.method?n=function(e){if(!e||"string"!=typeof e)return;let t=(0,L.Cy)(e);if(t)return{query:t.query,operationName:t.operationName,variables:t.variables?JSON.stringify(t.variables):void 0,operationType:t.operationType}}(e.requestBody):"GET"===e.method&&(n=function(e){let t=(0,H.Q2)(e).searchParams,n=t.get("variables"),r=n&&void 0!==(0,L.Cy)(n)?n:void 0;return{query:t.get("query")||void 0,operationName:t.get("operationName")||void 0,variables:r,operationType:t.get("operationType")||void 0}}(e.url)),n)return function(e,t){let n,r,i;if(e.query){let i=e.query.trim();n=i.match(/^\s*(query|mutation|subscription)\b/i)?.[1],t&&(r=z(i,tZ,"..."))}if(!n){let t=e.operationType;("query"===t||"mutation"===t||"subscription"===t)&&(n=t)}return e.variables&&(i=e.variables),{operationType:n,operationName:e.operationName,variables:i,payload:r}}(n,t)}(e,t.trackPayload);if(n){if(t.trackResponseErrors&&e.responseBody){let t=function(e){let t=(0,L.Cy)(e);if(t&&"object"==typeof t&&(0,ew.Of)(t.errors))return t.errors.map(e=>({message:e.message,path:e.path,locations:e.locations,code:e.extensions?.code}))}(e.responseBody);t&&(n.error_count=t.length,n.errors=t)}return n}}(e,n)}(t,n),render_blocking_status:e.renderBlockingStatus,...function(e){if(e.startTime<e.responseStart){let{encodedBodySize:t,decodedBodySize:n,transferSize:r}=e;return{size:n,encoded_body_size:t,decoded_body_size:n,transfer_size:r}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}(e),...function(e){if(!function(e){let t=eV(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),n=!(e.redirectEnd>e.startTime)||eV(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart);return t&&n}(e))return;let{startTime:t,fetchStart:n,workerStart:r,redirectStart:i,redirectEnd:a,domainLookupStart:o,domainLookupEnd:s,connectStart:l,secureConnectionStart:c,connectEnd:u,requestStart:d,responseStart:p,responseEnd:f}=e,h={download:eq(t,p,f),first_byte:eq(t,d,p)};return 0<r&&r<n&&(h.worker=eq(t,r,n)),n<u&&(h.connect=eq(t,l,u),l<=c&&c<=u&&(h.ssl=eq(t,c,u))),n<s&&(h.dns=eq(t,o,s)),t<a&&(h.redirect=eq(t,i,a)),h}(e)},type:m.RESOURCE,_dd:{discarded:!n.trackResources}},i,function(e){let t=e.contentType;if(t)return{resource:{response:{headers:{"content-type":t}}}}}(e),s),domainContext:{performanceEntry:e,isManual:!1,isAborted:!!t&&t.isAborted,isWebSocket:!1,handlingStack:t?.handlingStack,requestInit:t?.init,requestInput:t?.input,response:t?.response,error:t?.error,xhr:t?.xhr}}}let n3=/(token|cookie|secret|authorization|(api|secret|access|app).?key|(client|connecting|real).?ip|forwarded)/,n5=e=>eA.includes(e);function n4(e,t){let n={},r=0,i=!1;return e.forEach((e,a)=>{if(r>=100){i||(q.j.warn("Maximum number of headers (100) has been reached. Further headers are dropped."),i=!0);return}let o=a.toLowerCase();if(n3.test(o))return;let s=t.find(e=>tF([e.name??n5],o));if(!s)return;let{extractor:l}=s,c=l?_(e,l):e;void 0!==c&&(c.length>128&&q.j.warn(`Header "${o}" value was truncated from ${c.length} to 128 characters.`),n[o]=z(c,128),r++)}),r>0?n:void 0}let n9=10*$.yR,n6=10*$.yR;function n7(e,t=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:eD.Z};if(e9("visibility-state")){let t=performance.getEntriesByType("visibility-state").filter(e=>"hidden"===e.name).find(t=>t.startTime>=e.relative);if(t)return{timeStamp:t.startTime,stop:eD.Z}}let n=1/0,{stop:r}=(0,e3.yw)(t,[e3.EZ.PAGE_HIDE,e3.EZ.VISIBILITY_CHANGE],e=>{(e.type===e3.EZ.PAGE_HIDE||"hidden"===document.visibilityState)&&(n=e.timeStamp,r())},{capture:!0});return{get timeStamp(){return n},stop:r}}let n8=(e,t)=>e*t,re=(e,t)=>
463{let n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),i=Math.min(e.right,t.right),a=Math.min(e.bottom,t.bottom);return n>=i||r>=a?0:n8(i-n,a-r)},rt=e=>n8(e.previousRect.width,e.previousRect.height)+n8(e.currentRect.width,e.currentRect.height)-re(e.previousRect,e.currentRect);function rn({x:e,y:t,width:n,height:r}){return{x:e,y:t,width:n,height:r}}let rr=5*$.WT,ri=$.WT,ra=0,ro=1/0,rs=0,rl=()=>u?ra:window.performance.interactionCount||0,rc=1*$.yR;function ru(e){return Math.min(e,rc)}let rd=$.WT;function rp(e,t,n){let r={...e};for(let[e,{required:i,type:a}]of Object.entries(t))"string"!==a||rf(r[e])||(r[e]=String(r[e])),i&&rf(r[e])&&q.j.warn(`The property ${e} of ${n} is required; context will not be sent to the intake.`);return r}function rf(e){return null==e||""===e}function rh(e="",{propertiesConfig:t={}}={}){let n={},r=new ec.y$,i={getContext:()=>(0,e_.I8)(n),setContext:a=>{!function(e){let t="object"===(0,j.oL)(e);return t||q.j.error("Unsupported context:",e),t}(a)?i.clearContext():n=t2(rp(a,t,e)),r.notify()},setContextProperty:(i,a)=>{n=t2(rp({...n,[i]:a},t,e)),r.notify()},removeContextProperty:i=>{delete n[i],rp(n,t,e),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return i}var rm=n(68075);let rg=5*$.yR,ry=5*$.yR;function rv(e){let t=e.indexOf("?");return t<0?e:e.slice(0,t)}function rb(e,t){let n=new Set;for(let r of e)r.startsWith(`${t}.`)&&n.add(r.slice(t.length+1));return n}var rw=n(61423),r_=n(9813),rx=n(8222);let rE=eL.TN;function rS(){return(0,tY.C)(G.globalObject.location)}function rk(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}let rC=eL.TN,rI=10*$.WT;function rA(){0!==d.batchCount&&((0,W.qZ)(W.T.CUSTOMER_DATA_METRIC_NAME,d),rN())}function rT(){return{min:1/0,max:0,sum:0}}function rR(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function rN(){d={batchCount:0,batchBytesCount:rT(),batchMessagesCount:rT()}}let rO=eL.TN;function rP(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function rD(e){let{startClocks:t,type:n,name:r,description:i,context:a,handlingStack:o}=e,s={id:(e.type===w.DURATION?e.id:void 0)??F(),type:n,name:r,description:i,...n===w.DURATION?{duration:(0,$.dg)(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason}};return{rawRumEvent:{date:t.timeStamp,vital:s,type:m.VITAL,context:a},startClocks:t,duration:n===w.DURATION?e.duration:void 0,domainContext:o?{handlingStack:o}:{}}}async function rM(e,t){let n=`dd_cookie_test_${F()}`,r="test",i=e(n,t);try{return await i.getAllAndSet(()=>({value:r,expireDelay:$.yR})),(await i.getAll()).includes(r)}catch(e){return q.j.error(e),!1}finally{try{await i.delete()}catch{}}}function r$(e,t){let n=(0,tY.C)(G.globalObject.cookieStore),r=new ec.y$(()=>(0,e3.Oo)(n,"change",t=>{(t.changed.some(t=>t.name===e)||t.deleted.some(t=>t.name===e))&&r.notify()}).stop);return{getAll:async()=>(await n.getAll(e)).map(e=>e.value),delete:()=>n.delete({name:e,domain:t.domain,path:"/",partitioned:t.partitioned}),async getAllAndSet(r){let i=await n.getAll(e),{value:a,expireDelay:o}=r(i.map(e=>e.value));try{await n.set({name:e,value:a,expires:(0,$.m6)()+o,path:"/",sameSite:t.crossSite?"none":"strict",domain:t.domain,secure:t.secure,partitioned:t.partitioned})}catch(n){if(!e.startsWith("dd_cookie_test_")){let r=J(e);(0,W.eJ)("Failed to set cookie using Cookie Store API",{"error.message":n.message,newValue:a,cookieOptions:{...t},cookies:i.map(e=>({...e})),cookieCount:i.length,documentCookies:r})}}},observable:r}}let rj=$.WT;function rL(e,t){let n=J(e),r=new ec.y$(()=>{let t=(0,e2.Zi)(()=>{i(J(e))},rj);return()=>{(0,e2.cv)(t)}});function i(e){String(e)!==String(n)&&(n=e,r.notify())}return{getAll:()=>Promise.resolve(J(e)),async getAllAndSet(n){let{value:r,expireDelay:a}=n(J(e));Y(e,r,a,t),await Promise.resolve(),i([r])},async delete(){Y(e,"",0,t),await Promise.resolve(),i([])},observable:r}}function rF(){let e=(0,tY.C)(G.globalObject.cookieStore);return!!(e&&(0,e3.jO)(e,"change"))}let rB=$.WT;function rU(e,t){let n=K(e),r=(0,e2.Zi)(()=>{let r=K(e);r!==n&&(n=r,t(r))},rB);return()=>{(0,e2.cv)(r)}}let rz="datadog-synthetics-",rZ=`${rz}public-id`,rV=`${rz}result-id`,rq=`${rz}injects-rum`,rW=`${rz}rum-context`;function rG(){return!G.j&&!!(G.globalObject._DATADOG_SYNTHETICS_INJECTS_RUM||X(rq))}function rH(){let e=function(){let e=G.globalObject._DATADOG_SYNTHETICS_RUM_CONTEXT;if(e)return e;let t=X(rW);return t?(0,L.Cy)(decodeURIComponent(t)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||X(rZ),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||X(rV)}}();return"object"==typeof e&&null!==e&&"string"==typeof e.test_id&&"string"==typeof e.result_id?e:void 0}function rY(e){return"object"===(0,j.oL)(e)}function rK(e,t,n=3e3){let r=0,i=!1;return{isLimitReached(){if(0===r&&(0,e2.iK)(()=>{r=0},$.yR),(r+=1)<=n||i)return i=!1,!1;if(r===n+1){i=!0;try{t(`Reached max number of ${e}s by minute: ${n}`)}finally{i=!1}}return!0}}}var rJ=n(40324);let rX={"view.name":"string","view.url":"string","view.referrer":"string",context:"object",service:"string",version:"string"},rQ={[m.VIEW]:{...rX,"view.performance.lcp.resource_url":"string"},[m.ERROR]:{...rX,"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string","_dd.debug_ids":"array"},[m.RESOURCE]:{...rX,"resource.url":"string","resource.graphql.variables":"string","resource.request.headers":"object","resource.response.headers":"object","resource.websocket.close_reason":"string","resource.websocket.protocol":"string"},[m.ACTION]:{...rX,"action.target.name":"string"},[m.LONG_TASK]:{...rX,"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string","_dd.debug_ids":"array"},[m.VITAL]:rX};var r0=n(78694);let r1=[m.ACTION,m.ERROR,m.LONG_TASK,m.RESOURCE,m.VITAL],r2="_dd_tab_id",r3=[];function r5(e,t,n){if("undefined"==typeof window||"undefined"==typeof localStorage)return;let r=`_dd_c_${t}_${n}`;r3.push((0,e3.Oo)(window,"storage",({key:t})=>{r===t&&e.setContext(a())})),e.changeObservable.subscribe(function(){localStorage.setItem(r,JSON.stringify(e.getContext()))});let i=(0,e_.$e)(a(),e.getContext());function a(){let e=localStorage.getItem(r);return e?(0,L.Cy)(e)??{}:{}}(0,L.Qr)(i)||e.setContext(i)}function r4(){return rh("global context")}function r9(){return rh("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function r6(){return rh("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function r7(e,t,n,r,i,a,o,s,l,h){let _=[],x=new e$;x.subscribe(14,e=>(0,rw.j)("rum",e)),t.expireObservable.subscribe(()=>x.notify(10,{endClocks:(0,$.$I)()})),t.renewObservable.subscribe(()=>x.notify(11));let E=e=>{x.notify(15,{error:{message:e,source:tX.zH.AGENT,startClocks:(0,$.$I)()}}),(0,W.eJ)("Error reported to customer",{"error.message":e})};if((0,em.xT)()){!function(e){let t=(0,em.Ad)();e.subscribe(14,e=>{t.send("rum",e)})}(x);let e=(0,rm.FP)().subscribe(e=>{x.notify(12,e.reason)});_.push(()=>e.unsubscribe())}else{var S;let n=function(e,t,n,r,i){let a=[(0,et.Ez)(e,"rum")],o=(0,et.ji)(e,"rum");o&&a.push(o);let s=(0,r_.n)({encoder:i(rx.C.RUM),endpoints:a,reportError:n});r.subscribe(()=>s.forceFlush("session_expire"));let{dispatch:l,stop:c}=function(e,t){let n,r;let i=!1,a=0,{unsubscribe:o}=e.flushObservable.subscribe(()=>{i=!1,r=n});return{dispatch:o=>
463{if(o.type!==m.VIEW){e.add(o);return}if(!t){e.upsert(o,o.view.id);return}let s=o.view.id;if(!o.view.is_active){s===n?.view.id&&(n=void 0,r=void 0,i=!1,a=0),e.upsert(o,s);return}if(s!==n?.view.id){a=0,e.upsert(o,s),n=o,i=!e.isEmpty;return}if(n=o,i){e.upsert(o,s);return}if((a+=1)>=100){a=0,e.upsert(o,s),i=!e.isEmpty;return}if(r){let t=function(e,t){let n=function e(t,n,r){let i={},a=r?.replaceKeys??new Set,o=r?.appendKeys??new Set,s=r?.ignoreKeys??new Set;for(let r of Object.keys(t)){if(s.has(r))continue;let l=t[r],c=n[r];if(!a.has(r)&&(0,j.sK)(l)&&(0,j.sK)(c)){let t=e(l,c,{replaceKeys:rb(a,r),appendKeys:rb(o,r),ignoreKeys:rb(s,r)});t&&(i[r]=t)}else o.has(r)&&Array.isArray(l)&&Array.isArray(c)?l.length>c.length&&(i[r]=l.slice(c.length)):!function e(t,n){if(t===n)return!0;if(null===t||"object"!=typeof t||null===n||"object"!=typeof n)return t===n;if(Array.isArray(t)&&Array.isArray(n))return t.length===n.length&&t.every((t,r)=>e(t,n[r]));if(Array.isArray(t)||Array.isArray(n))return!1;let r=Object.keys(t),i=Object.keys(n);return r.length===i.length&&r.every(r=>i.includes(r)&&e(t[r],n[r]))}(l,c)&&(i[r]=l)}for(let e of Object.keys(n))e in t||(i[e]=null);return Object.keys(i).length>0?i:void 0}(e,t,{replaceKeys:new Set(["view.custom_timings","context","connectivity","usr","device","privacy"]),appendKeys:new Set(["_dd.page_states"]),ignoreKeys:new Set(["date","type","application","session","view.id","view.url","_dd.document_version","_dd.format_version"])});if(n)return(0,e_.$e)(n,{type:m.VIEW_UPDATE,date:e.date,application:e.application,session:e.session,view:{id:e.view.id,url:e.view.url},_dd:{document_version:e._dd.document_version,format_version:e._dd.format_version}})}(o,r);t&&((0,rw.j)("rum",t),e.upsert(t,s))}},stop:o}}(s,e.betaEnableViewUpdates);t.subscribe(14,l);let u=s.stop.bind(s);return s.stop=()=>{c(),u()},s}(e,x,E,t.expireObservable,a),r=n.prepareUrgentFlushObservable.subscribe(e=>{x.notify(12,e)});_.push(()=>r.unsubscribe()),_.push(()=>n.stop()),S=n.flushObservable,s.metricsEnabled&&(rN(),p=!1,x.subscribe(14,()=>{p=!0}),S.subscribe(({bytesCount:e,messagesCount:t})=>{p&&(p=!1,d.batchCount+=1,rR(d.batchBytesCount,e),rR(d.batchMessagesCount,t))}),(0,e2.Zi)(rA,rI))}let{stop:k,...C}=function(e,t,n,r,i,a,o,s,l){var d,p;let h;let _=[],x=function(){let e=eM();return new ec.y$(t=>{let n=new e((0,ee.zk)(e=>t.notify(e)));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}(),E=(h=(0,L.mv)(rS()),new ec.y$(e=>{let{stop:t}=function(e){let{stop:t}=(0,tM.Su)(rk("pushState"),"pushState",({onPostCall:t})=>{t(e)}),{stop:n}=(0,tM.Su)(rk("replaceState"),"replaceState",({onPostCall:t})=>{t(e)}),{stop:r}=(0,e3.Oo)(window,e3.EZ.POP_STATE,e);return{stop:()=>{t(),n(),r()}}}(r),{stop:n}=(0,e3.Oo)(window,e3.EZ.HASH_CHANGE,r);function r(){if(h.href===rS().href)return;let t=(0,L.mv)(rS());e.notify({newLocation:t,oldLocation:h}),h=t}return()=>{t(),n()}})),{observable:S,stop:k}=function(){let e=new ec.y$,{stop:t}=(0,tM.Su)(window,"open",()=>e.notify());return{observable:e,stop:t}}();_.push(k);let{assembleEventDefaults:C}=t;!function(e,t,n){e.register(({eventType:e})=>{let r=t.source;return{type:e,_dd:{format_version:2,drift:(0,$.Pv)(),configuration:{session_sample_rate:ev(t.sessionSampleRate,3),session_replay_sample_rate:ev(t.sessionReplaySampleRate,3),profiling_sample_rate:ev(t.profilingSampleRate,3),trace_sample_rate:ev(t.traceSampleRate,3)},browser_sdk_version:(0,em.xT)()?"7.13.0":void 0,sdk_name:n},application:{id:t.applicationId},date:(0,$.n$)(),source:r}})}(C,n,s);let I=function(e,t=500){let n;let r=(0,eF.p)({expireDelay:rO,maxEntries:4e3});e9("visibility-state")&&performance.getEntriesByType("visibility-state").forEach(e=>{a("hidden"===e.name?"hidden":"active",e.startTime)}),a(rP(),(0,$._q)());let{stop:i}=(0,e3.yw)(window,[e3.EZ.PAGE_SHOW,e3.EZ.FOCUS,e3.EZ.BLUR,e3.EZ.VISIBILITY_CHANGE,e3.EZ.RESUME,e3.EZ.FREEZE,e3.EZ.PAGE_HIDE],e=>{a(e.type===e3.EZ.FREEZE?"frozen":e.type===e3.EZ.PAGE_HIDE?e.persisted?"frozen":"terminated":rP(),e.timeStamp)},{capture:!0});function a(e,t=(0,$._q)()){e!==n&&(n=e,r.closeActive(t),r.add({state:n,startTime:t},t))}function o(e,t,n){return r.findAll(t,n).some(t=>t.state===e)}return e.register(({startTime:e,duration:n=0,eventType:i})=>i===m.VIEW?{type:i,_dd:{page_states:function(e,t,n){if(0!==e.length)return e.slice(-n).reverse().map(({state:e,startTime:n})=>({state:e,start:(0,$.dg)((0,$._J)(t,n))}
463))}(r.findAll(e,n),e,t)}}:i===m.ACTION||i===m.ERROR?{type:i,view:{in_foreground:o("active",e,0)}}:nU.kb),{wasInPageStateDuringPeriod:o,addPageState:a,stop:()=>{i(),r.stop()}}}(C);_.push(()=>I.stop());let A=function(e){let t=(0,eF.p)({expireDelay:eB});return e.subscribe(1,e=>{t.add({service:e.service,version:e.version,context:e.context,id:e.id,name:e.name,startClocks:e.startClocks},e.startClocks.relative)}),e.subscribe(6,({endClocks:e})=>{t.closeActive(e.relative)}),e.subscribe(3,e=>{let n=t.find(e.startClocks.relative);n&&(e.name&&(n.name=e.name),e.context&&(n.context=e.context),n.sessionIsActive=e.sessionIsActive)}),e.subscribe(11,()=>{t.reset()}),{findView:(e,n)=>t.find(e,n),stop:()=>{t.stop()}}}(e);_.push(()=>A.stop());let T=function(e,t,n){let r;let i=(0,eF.p)({expireDelay:rE});e.subscribe(1,({startClocks:e,url:t})=>{let n=(0,tY.C)(G.globalObject.location).href,a=void 0!==t?(0,H.Q2)(t,n).href:n;i.add(o({url:a,referrer:r||document.referrer}),e.relative),r=a}),e.subscribe(6,({endClocks:e})=>{i.closeActive(e.relative)});let a=n.subscribe(({newLocation:e})=>{let t=i.find();if(t){let n=(0,$._q)();i.closeActive(n),i.add(o({url:e.href,referrer:t.referrer}),n)}});function o({url:e,referrer:t}){return{url:e,referrer:t}}return t.register(({startTime:e,eventType:t})=>{let n=i.find(e);return n?{type:t,view:{url:n.url,referrer:n.referrer}}:nU.C_}),{findUrl:e=>i.find(e),stop:()=>{a.unsubscribe(),i.stop()}}}(e,C,E);_.push(()=>T.stop());let R=function(e,t,n){let r=(0,eF.p)({expireDelay:rC});return e.subscribe(1,({startClocks:e})=>{r.add({},e.relative)}),e.subscribe(6,({endClocks:e})=>{r.closeActive(e.relative)}),t.register(({startTime:e,eventType:t})=>{if(!n.trackFeatureFlagsForEvents.concat([m.VIEW,m.ERROR]).includes(t))return nU.kb;let i=r.find(e);return!i||(0,L.Qr)(i)?nU.kb:{type:t,feature_flags:i}}),{addFeatureFlagEvaluation:(e,t)=>{let n=r.find();n&&(n[e]=t)}}}(e,C,n);!function(e,t,n,r,i){e.register(({eventType:e,startTime:a})=>{let o,s,l;let c=n.findTrackedSession(a),u=i.findView(a);return c&&u?(e===m.VIEW?(o=!!r.getReplayStats(u.id)||void 0,s=1===tD(c,t),l=!!u.sessionIsActive&&void 0):o=!!r.isRecording()||void 0,{type:e,session:{id:c.id,type:"user",has_replay:o,sampled_for_replay:s,is_active:l}}):nU.C_})}(C,n,r,i,A),function(e){e.register(({eventType:e})=>({type:e,connectivity:(0,r0.T)()}))}(C),function(e){let t=(f||(f=function(){try{let e=sessionStorage.getItem(r2);if(e)return e;let t=F();return sessionStorage.setItem(r2,t),t}catch{return}}()??F()),f);e.register(()=>({tab:{id:t}}))}(C);let N=function(e,t,n,r){let i=r4();return t.storeContextsAcrossPages&&r5(i,"rum",2),e.register(()=>{let e=i.getContext();return r?{context:e}:e}),i}(C,n,0,!0),O=function(e,t,n,r){let i=r9();return t.storeContextsAcrossPages&&r5(i,"rum",1),e.register(({eventType:e,startTime:r})=>{let a=i.getContext(),o=n.findTrackedSession(r);return(o?.anonymousId&&!a.anonymous_id&&t.trackAnonymousUser&&(a.anonymous_id=o.anonymousId),(0,L.Qr)(a))?nU.kb:{type:e,usr:a}}),i}(C,n,r,0),P=function(e,t,n){let r=r6();return t.storeContextsAcrossPages&&r5(r,"rum",4),e.register(()=>{let e=r.getContext();return(0,L.Qr)(e)||!e.id?nU.kb:{account:e}}),r}(C,n,0),D=function(e,t,n,r,i){let a;let{unsubscribe:o}=e.subscribe(0,t=>{e.notify(13,nz(t))}),s=eD.Z;i.trackUserInteractions&&(a=function(e,t,n,r){let i;let a=nb(e),o=new ec.y$;e.subscribe(5,c),e.subscribe(12,c);let{stop:s}=function({onPointerDown:e,onPointerUp:t}){let n,r;let i={selection:!1,input:!1,scroll:!1},a=[(0,e3.Oo)(window,e3.EZ.POINTER_DOWN,t=>{nD(t)&&(n=nP(),i={selection:!1,input:!1,scroll:!1},r=e(t))},{capture:!0}),(0,e3.Oo)(window,e3.EZ.SELECTION_CHANGE,()=>{n&&nP()||(i.selection=!0)},{capture:!0}),(0,e3.Oo)(window,e3.EZ.SCROLL,()=>{i.scroll=!0},{capture:!0,passive:!0}),(0,e3.Oo)(window,e3.EZ.POINTER_UP,e=>{if(nD(e)&&r){let n=i;t(r,e,()=>n),r=void 0}},{capture:!0}),(0,e3.Oo)(window,e3.EZ.INPUT,()=>{i.input=!0},{capture:!0})];return{stop:()=>{a.forEach(e=>e.stop())}}}({onPointerDown:i=>(function(e,t,n,r,i){let a;if((a=e.enablePrivacyForActionName?tb(nB(r),e.defaultPrivacyLevel):tp.ALLOW)===tp.HIDDEN)return;let o=function(e,t,n){let r=nB(e),i=r.getBoundingClientRect(),a=tt(r,n.actionNameAttribute),o=function(e,t){let n=e.filter(e=>e instanceof Element&&!nw.includes(e.tagName));if(0===n.length)return"";let r=t?[t].concat(nx):nx,i="";for(let e of n)if((i+=function(e,t){let n=ti(e),r=tr(e),i=Array.from(e.classList).filter(e=>!tn(e)).sort().map(e=>`.${CSS.escape(e)}`).join(""),a=function(e,t){let n=[];for(let r of Array.from(e.attributes))t.includes(r.name)&&n.push(to(r.name,r.value));return n.sort().join("")}(e,t),o=function(e){let t=Array.from(e.parentNode.children);if(t.length<=1)return"";let n=t.filter(t=>t.tagName===e.tagName),r=t.indexOf(e),i=ts(e);return`:nth-child(${r+1})${n.length>1?`:nth-of-type(${i})`:""}`}(e);return`${n}${r||""}${a}${i}${o};`}(e,r)).length>=n_)return z(i,n_);return i}(e.composedPath(),n.actionNameAttribute);a&&nL(e.timeStamp,a);let{name:s,nameSource:l}=function(e,t,n=tp.ALLOW){let r=new Map,{actionNameAttribute:i}=t,a=nS(e,"data-dd-action-name")||i&&nS(e,i);return a?{name:a,nameSource:"custom_attribute"}:n===tp.MASK?{name:e6,nameSource:"mask_placeholder"}:nI(e,nk,t,r)||nI(e,nC,t,r)||{name:"",nameSource:"blank"}}(r,n,t);return{type:v.CLICK,target:{width:Math.round(i.width),height:Math.round(i.height),selector:a,composedPathSelector:o||void 0},position:{x:Math.round(e.clientX-i.left),y:Math.round(e.clientY-i.top)},name:s,nameSource:l}}(r,a,e),s=!1;return nf(t,n,i,e,e=>{s=e.hadActivity},100),{clickActionBase:o,ignore:function(e){let t=0,n=e;for(;n;){let e=n.getAttribute("data-dd-ignore-frustration");if(null!==e){let n=e.split(/\s+/);if(""===e.trim()||n.includes("all"))return 7;n.includes("rage-click")&&(t|=1),n.includes("dead-click")&&(t|=2),n.includes("error-click")&&(t|=4)}if(7===t)break;n=e1(n)}return t}(nB(r)),hadActivityOnPointerDown:()=>s}})(r,e,t,i,n),onPointerUp:({clickActionBase:i,ignore:s,hadActivityOnPointerDown:c},u,d)=>{!function(e,t,n,r,i,a,o,s,l,c,u,d){let p=function e(t,n,r,i,a,o){let s;let l=F(),c=(0,$.DY)(o.timeStamp),u=n.start(l,c,i,{isChildEvent:nF});
463t.notify(16,u);let d=0,p=[],f=new ec.y$;function h(e){0===d&&(d=1,s=e?n.stop(l,(0,$.lO)(e)):n.discard(l),f.notify())}return{event:o,ignore:a,stop:h,stopObservable:f,get hasError(){let e=s?.counts??n.getCounts(l);return!!e&&e.errorCount>0},get hasPageActivity(){return s&&"duration"in s},getUserActivity:r,addFrustration:e=>{p.push(e)},get startClocks(){return c},isStopped:()=>1===d||2===d,clone:()=>e(t,n,r,i,a,o),validate:e=>{if(h(),1!==d||!s)return;let n={frustrationTypes:p,events:e??[o],event:o,...s,counts:s.counts};t.notify(0,n),d=2},discard:()=>{h(),d=2}}}(t,i,u,s,l,c);o(p);let f=s?.target?.selector;f&&nL(c.timeStamp,f);let{stop:h}=nf(t,n,r,e,e=>{e.hadActivity&&e.end<p.startClocks.timeStamp?p.discard():e.hadActivity?p.stop(e.end):d()?p.stop(p.startClocks.timeStamp):p.stop()},n$),m=t.subscribe(5,({endClocks:e})=>{p.stop(e.timeStamp)}),g=t.subscribe(12,()=>{p.stop((0,$.n$)())}),y=a.subscribe(()=>{p.stop()});p.stopObservable.subscribe(()=>{g.unsubscribe(),m.unsubscribe(),h(),y.unsubscribe()})}(r,e,t,n,a,o,l,i,s,u,d,c)}});return{stop:()=>{c(),o.notify(),s(),a.stopAll()},findActionId:a.findId};function l(e){if(!i?.tryAppend(e)){let t=e.clone(),n=function(e,t){let n;let r=[],i=0;function a(e){e.stopObservable.subscribe(o),r.push(e),(0,e2.gr)(n),n=(0,e2.iK)(s,nE)}function o(){1===i&&r.every(e=>e.isStopped())&&(i=2,t(r))}function s(){(0,e2.gr)(n),0===i&&(i=1,o())}return a(e),{tryAppend:e=>{var t,n,o;return 0===i&&(!(r.length>0)||(1&(t=r[r.length-1]).ignore)!=0==((1&e.ignore)!=0)&&t.event.target===e.event.target&&100>=(n=t.event,o=e.event,Math.sqrt(Math.pow(n.clientX-o.clientX,2)+Math.pow(n.clientY-o.clientY,2)))&&t.event.timeStamp-e.event.timeStamp<=nE?(a(e),!0):(s(),!1))},stop:()=>{s()}}}(e,e=>{(function(e,t){let{isRage:n}=function(e,t){if(function(e){if(e.some(e=>(1&e.ignore)!=0||e.getUserActivity().selection||e.getUserActivity().scroll))return!1;for(let t=0;t<e.length-2;t+=1)if(e[t+3-1].event.timeStamp-e[t].event.timeStamp<=$.WT)return!0;return!1}(e))return t.addFrustration(b.RAGE_CLICK),e.some(nM)&&t.addFrustration(b.DEAD_CLICK),t.hasError&&!((4&t.ignore)!=0)&&t.addFrustration(b.ERROR_CLICK),{isRage:!0};let n=e.some(e=>e.getUserActivity().selection);return e.forEach(e=>{e.hasError&&!((4&e.ignore)!=0)&&e.addFrustration(b.ERROR_CLICK),nM(e)&&!n&&e.addFrustration(b.DEAD_CLICK)}),{isRage:!1}}(e,t);n?(e.forEach(e=>e.discard()),t.stop((0,$.n$)()),t.validate(e.map(e=>e.event))):(t.discard(),e.forEach(e=>e.validate()))})(e,t),i===n&&(i=void 0)});i=n}}function c(){i&&i.stop()}}(e,n,r,i));let l=function(e,t){let n=nb(e);return{addAction:function(e){t({id:F(),frustrationTypes:[],...e})},startAction:function(t,r={},i=(0,$.$I)()){let a=r.actionKey??t,o=n.start(a,i,{name:t,...r},{isChildEvent:nF});e.notify(16,o)},stopAction:function(e,r={},i=(0,$.$I)()){let a=r.actionKey??e,o=n.stop(a,i,r);if(!o)return;let s=[];o.counts&&o.counts.errorCount>0&&s.push(b.ERROR_CLICK),t({...o,type:o.type||v.CUSTOM,frustrationTypes:s})},findActionId:n.findId,stop:n.stopAll}}(e,t=>{e.notify(13,nz(t))}),c={findActionId:e=>{let t=l.findActionId(e),n=a?.findActionId(e)??[];return t.concat(n)}};return t.assembleEventDefaults.register(({startTime:e,eventType:t})=>{if(t!==m.ERROR&&t!==m.RESOURCE&&t!==m.LONG_TASK)return nU.kb;let n=t===m.LONG_TASK?(0,$.WK)(e,1):e,r=c.findActionId(n);return r.length?{type:t,action:{id:r}}:nU.kb}),t.assembleTelemetry.register(({startTime:e})=>({action:{id:c.findActionId(e)}})),{addAction:l.addAction,startAction:l.startAction,stopAction:l.stopAction,actionContexts:c,stop:()=>{o(),s(),l.stop(),a?.stop()}}}(e,t,x,S,n);_.push(D.stop);let M=function(e){let t;let n=requestAnimationFrame((0,ee.zk)(()=>{t=tN()})),r=tR().subscribe(e=>{t=e}).unsubscribe;return e.register(({eventType:e})=>({type:e,display:t?{viewport:t}:void 0})),{stop:()=>{r(),n&&cancelAnimationFrame(n)}}}(C);_.push(M.stop);let B=function(e,t=function(e){let t=rF()?(e,t)=>(0,e3.Oo)(G.globalObject.cookieStore,e3.EZ.CHANGE,n=>{let r=n.changed.find(t=>t.name===e)||n.deleted.find(t=>t.name===e);r&&t(r.value)}).stop:rU;return new ec.y$(n=>t(e,e=>n.notify(e)))}("datadog-ci-visibility-test-execution-id")){let n=X("datadog-ci-visibility-test-execution-id")||function(){let e=window.Cypress;if(e)try{return e.env("traceId")}catch{q.j.warn("Failed to read Cypress test execution id via Cypress.env(). Upgrade dd-trace-js to >= 5.88.0 to keep RUM ↔ test correlation working.");return}}(),r=t.subscribe(e=>{n=e});return e.register(({eventType:e})=>"string"!=typeof n?nU.kb:{type:e,session:{type:"ci_test"},ci_test:{test_execution_id:n}}),{stop:()=>{r.unsubscribe()}}}(C);_.push(B.stop),function(e){e.register(({eventType:e})=>rH()?{type:e,session:{type:"synthetics"},synthetics:{...rH(),injected:rG()}}:nU.kb)}(C),function(e,t,n,r,i){let a={[m.ERROR]:rK(m.ERROR,r,void 0),[m.ACTION]:rK(m.ACTION,r,void 0),[m.VITAL]:rK(m.VITAL,r,void 0)};t.subscribe(13,({startClocks:r,duration:i,rawRumEvent:o,domainContext:s})=>{let l={eventType:o.type,rawRumEvent:o,domainContext:s,startTime:r.relative,duration:i},c=n.assembleEventDefaults.trigger(l);if(c===nU.C_)return;let u=n.assembleEvent.trigger(l);if(u===nU.C_)return;let d=(0,e_.$e)(c,o,u,{ddtags:(0,rJ.MS)(e).join(",")});(function(e,t,n,r){if(t){let r=function(e,t,n){let r=(0,e_.I8)(e),i=n(r);return(0,tL.qP)(t).forEach(([t,n])=>(function e(t,n,r,i){let[a,...o]=r;if("[]"===a){Array.isArray(t)&&Array.isArray(n)&&t.forEach((t,r)=>e(t,n[r],o,i));return}
463if(rY(t)&&rY(n)){if(o.length>0)return e(t[a],n[a],o,i);(function(e,t,n,r){if(e[t]===n)return;let i=(0,j.oL)(n);i===r?e[t]=t2(n):"object"===r&&("undefined"===i||"null"===i)?e[t]={}:"array"===r&&("undefined"===i||"null"===i)&&(e[t]=[])})(t,a,n[a],i)}})(e,r,t.split(/\.|(?=\[\])/),n)),i}(e,rQ[e.type],e=>t(e,n));if(!1===r&&e.type!==m.VIEW)return!1;!1===r&&q.j.warn("Can't dismiss view events using beforeSend!")}return!r[e.type]?.isLimitReached()})(d,e.beforeSend,s,a)&&((0,L.Qr)(d.context)&&delete d.context,t.notify(14,d))})}(n,e,t,l);let{addTiming:U,setLoadingTime:Z,startView:V,setViewName:W,setViewContext:Y,setViewContextProperty:K,getViewContext:J,stop:Q}=(e.subscribe(4,t=>e.notify(13,function(e,t,n){let r=n.getReplayStats(e.id),i=e.commonViewMetrics?.cumulativeLayoutShift?.devicePixelRatio,a={_dd:{document_version:e.documentVersion,replay_stats:r,cls:i?{device_pixel_ratio:i}:void 0,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually,remote_configuration_id:t.remoteConfigurationId}},date:e.startClocks.timeStamp,type:m.VIEW,view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:e.commonViewMetrics.cumulativeLayoutShift?.value,cumulative_layout_shift_time:(0,$.dg)(e.commonViewMetrics.cumulativeLayoutShift?.time),cumulative_layout_shift_target_selector:e.commonViewMetrics.cumulativeLayoutShift?.targetSelector,first_byte:(0,$.dg)(e.initialViewMetrics.navigationTimings?.firstByte),dom_complete:(0,$.dg)(e.initialViewMetrics.navigationTimings?.domComplete),dom_content_loaded:(0,$.dg)(e.initialViewMetrics.navigationTimings?.domContentLoaded),dom_interactive:(0,$.dg)(e.initialViewMetrics.navigationTimings?.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:(0,$.dg)(e.initialViewMetrics.firstContentfulPaint),interaction_to_next_paint:(0,$.dg)(e.commonViewMetrics.interactionToNextPaint?.value),interaction_to_next_paint_time:(0,$.dg)(e.commonViewMetrics.interactionToNextPaint?.time),interaction_to_next_paint_target_selector:e.commonViewMetrics.interactionToNextPaint?.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:(0,$.dg)(e.initialViewMetrics.largestContentfulPaint?.value),largest_contentful_paint_target_selector:e.initialViewMetrics.largestContentfulPaint?.targetSelector,load_event:(0,$.dg)(e.initialViewMetrics.navigationTimings?.loadEvent),loading_time:np((0,$.dg)(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},performance:function({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:n,largestContentfulPaint:r}){return{cls:e&&{score:e.value,timestamp:(0,$.dg)(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:n&&{timestamp:(0,$.dg)(n)},inp:t&&{duration:(0,$.dg)(t.value),timestamp:(0,$.dg)(t.time),target_selector:t.targetSelector,sub_parts:t.subParts?{input_delay:(0,$.dg)(t.subParts.inputDelay),processing_duration:(0,$.dg)(t.subParts.processingDuration),presentation_delay:(0,$.dg)(t.subParts.presentationDelay)}:void 0},lcp:r&&{timestamp:(0,$.dg)(r.value),target_selector:r.targetSelector,resource_url:r.resourceUrl,sub_parts:r.subParts?{load_delay:(0,$.dg)(r.subParts.loadDelay),load_time:(0,$.dg)(r.subParts.loadTime),render_delay:(0,$.dg)(r.subParts.renderDelay)}:void 0}}}(e.commonViewMetrics,e.initialViewMetrics),resource:{count:e.eventCounts.resourceCount},time_spent:(0,$.dg)(e.duration)},display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,$.dg)(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:t.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:function(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}()}};return(0,L.Qr)(e.customTimings)||(a.view.custom_timings=(0,L.Q8)(e.customTimings,$.dg)),{rawRumEvent:a,startClocks:e.startClocks,duration:e.duration,domainContext:{location:e.location,handlingStack:e.handlingStack}}}(t,n,i))),t.assembleEventDefaults.register(({startTime:e,eventType:t})=>{let n=A.findView(e);return n?{type:t,service:n.service,version:n.version,context:n.context,view:{id:n.id,name:n.name}}:nU.C_}),t.assembleTelemetry.register(({startTime:e})=>({view:{id:A.findView(e)?.id}})),function(e,t,n,r,i,a,o){let s,l;let c=new Set,d=p(y.INITIAL_LOAD,(0,$.cQ)(),o);function p(i,a,o){let s=function(e,t,n,r,i,a=(0,$.$I)(),o){let s;let l=F(),c=new ec.y$,d={},p=0,f=(0,L.mv)((0,tY.C)(window.location)),h=rh(),m=!0,g=o?.name,v=o?.service||r.service,b=o?.version||r.version,w=o?.context,_=o?.handlingStack;w&&h.setContext(w);let x={id:l,name:g,startClocks:a,service:v,version:b,context:w,url:o?.url};e.notify(1,x),e.notify(2,x);let{throttled:E,cancel:S}=(0,eD.P)(W,3e3,{leading:!1}),{setLoadEvent:k,setViewEnd:C,stop:I,stopINPTracking:A,getCommonViewMetrics:T,setLoadingTime:R}=function(e,t,n,r,i,a,o){let s={}
463,l=!1,c=!1,{stop:d,setLoadEvent:p}=function(e,t,n,r,i,a,o){let s=i===y.INITIAL_LOAD,l=!0,c=[],u=n7(a);function d(){if(!l&&!s&&c.length>0){let e=Math.max(...c);e<u.timeStamp-a.relative&&o(e)}}let{stop:p}=nf(e,t,n,r,e=>{l&&(l=!1,e.hadActivity&&c.push((0,$._J)(a.timeStamp,e.end)),d())});return{stop:()=>{p(),u.stop()},setLoadEvent:e=>{s&&(s=!1,c.push(e),d())}}}(e,t,n,r,a,o,e=>{l||(s.loadingTime=e,i())}),{stop:f}=function(e,t,n=function(e=rd){return new ec.y$(t=>{let n=(0,eD.P)(function(){t.notify(function(){let e=tT(),{height:t}=tN();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(t+e),scrollTop:e}}())},e,{leading:!1,trailing:!0}),r=document.scrollingElement||document.documentElement,i=new ResizeObserver((0,ee.zk)(n.throttled));r&&i.observe(r);let a=(0,e3.Oo)(window,e3.EZ.SCROLL,n.throttled,{passive:!0});return()=>{n.cancel(),i.disconnect(),a.stop()}})}()){let r=0,i=0,a=0,o=n.subscribe(({scrollDepth:n,scrollTop:o,scrollHeight:s})=>{let l=!1;if(n>r&&(r=n,l=!0),s>i){i=s;let t=(0,$._q)();a=(0,$._J)(e.relative,t),l=!0}l&&t({maxDepth:Math.min(r,i),maxDepthScrollTop:o,maxScrollHeight:i,maxScrollHeightTime:a})});return{stop:()=>o.unsubscribe()}}(o,e=>{s.scroll=e}),{stop:h}=function(e,t,n){let r,i,a,o,s;if(!(e9("layout-shift")&&"WeakRef"in window))return{stop:eD.Z};let l=0;n({value:0});let c=(o=0,s=0,{update:e=>{let t;return void 0===i||e.startTime-a>=ri||e.startTime-i>=rr?(i=a=e.startTime,s=o=e.value,t=!0):(o+=e.value,a=e.startTime,(t=e.value>s)&&(s=e.value)),{cumulatedValue:o,isMaxValue:t}}}),u=e4({type:"layout-shift",buffered:!0}).subscribe(i=>{for(let a of i){if(a.hadRecentInput||a.startTime<t)continue;let{cumulatedValue:i,isMaxValue:o}=c.update(a);if(o){let e=function(e){let t;for(let n of e)if(n.node&&eK(n.node)){let e=rt(n);(!t||rt(t)<e)&&(t=n)}return t}(a.sources);r={target:e?.node?new WeakRef(e.node):void 0,time:(0,$._J)(t,a.startTime),previousRect:e?.previousRect,currentRect:e?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(i>l){l=i;let t=r?.target?.deref();n({value:ev(l,4),targetSelector:t&&tt(t,e.actionNameAttribute),time:r?.time,previousRect:r?.previousRect?rn(r.previousRect):void 0,currentRect:r?.currentRect?rn(r.currentRect):void 0,devicePixelRatio:r?.devicePixelRatio})}}});return{stop:()=>{u.unsubscribe()}}}(r,o.relative,e=>{s.cumulativeLayoutShift=e,i()}),{stop:m,getInteractionToNextPaint:g,setViewEnd:v}=function(e,t,n){let r;if(!(e9("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>void 0,setViewEnd:eD.Z,stop:eD.Z};let i=1/0,{getViewInteractionCount:a,stopViewInteractionCount:o}=function(e){"interactionCount"in performance||u||(u=new window.PerformanceObserver((0,ee.zk)(e=>{e.getEntries().forEach(e=>{e.interactionId&&(ro=Math.min(ro,e.interactionId),ra=((rs=Math.max(rs,e.interactionId))-ro)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0});let t=e===y.INITIAL_LOAD?0:rl(),n={stopped:!1};return{getViewInteractionCount:()=>n.stopped?n.interactionCount:rl()-t,stopViewInteractionCount:()=>{n={stopped:!0,interactionCount:rl()-t}}}}(n),s=function(e){let t=[];function n(){t.sort((e,t)=>t.duration-e.duration).splice(10)}return{process(e){let r=t.findIndex(t=>e.interactionId===t.interactionId),i=t[t.length-1];-1!==r?e.duration>t[r].duration&&(t[r]=e,n()):(t.length<10||e.duration>i.duration)&&(t.push(e),n())},estimateP98Interaction(){let n=Math.min(t.length-1,Math.floor(e()/50));return t[n]},isTracked:e=>t.some(t=>t.interactionId===e)}}(a),l=function(e){let t=new Map;function n(e,t){e.startTime=Math.min(t.startTime,e.startTime),e.processingStart=Math.min(t.processingStart,e.processingStart),e.processingEnd=Math.max(t.processingEnd,e.processingEnd)}return{process(e){if(void 0===e.interactionId||!e.processingStart||!e.processingEnd)return;let r=e.startTime+e.duration,i=t.get(e.interactionId);if(i){n(i,e);return}for(let[,i]of t.entries())if(8>=Math.abs(r-i.referenceRenderTime)){n(i,e),t.set(e.interactionId,i);return}t.set(e.interactionId,{startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,referenceRenderTime:r})},pruneUntracked(){for(let[n]of t)e.isTracked(n)||t.delete(n)},computeSubParts(e,n){if(!e.processingStart||!e.processingEnd||void 0===e.interactionId)return;let r=t.get(e.interactionId);if(!r)return;let i=Math.max(r.startTime+n,r.processingStart),a=Math.min(r.processingEnd,i);return{inputDelay:(0,$._J)(r.startTime,r.processingStart),processingDuration:(0,$._J)(r.processingStart,a),presentationDelay:(0,$._J)(a,i)}},stop(){t.clear()}}}(s),c=e4({type:"first-input",buffered:!0}).subscribe(p),d=e4({type:"event",durationThreshold:40,buffered:!0}).subscribe(p);function p(n){for(let e of n)e.interactionId&&e.startTime>=t&&e.startTime<=i&&(s.process(e),l.process(e));l.pruneUntracked();let a=s.estimateP98Interaction();a&&function(n){let i=(0,$._J)(t,n.startTime);if(n.duration!==r?.duration||i!==r.startTime){let t=function(e){let t=nj.get(e);return nj.delete(e),t}(n.startTime);!t&&n.target&&eK(n.target)&&(t=tt(n.target,e.actionNameAttribute)),r={duration:n.duration,startTime:i,targetSelector:t}}r.subParts=l.computeSubParts(n,ru(r.duration))}(a)}return{getInteractionToNextPaint:()=>r?{value:ru(r.duration),targetSelector:r.targetSelector,time:r.startTime,subParts:r.subParts}:a()?{value:0}
463:void 0,setViewEnd:e=>{i=e,o()},stop:()=>{d.unsubscribe(),c.unsubscribe(),l.stop()}}}(r,o.relative,a);return{stop:()=>{d(),h(),f()},stopINPTracking:m,setLoadEvent:p,setViewEnd:e=>{c=!0,v(e)},getCommonViewMetrics:()=>(s.interactionToNextPaint=g(),s),setLoadingTime:e=>{if(c)return;let t=(0,$._J)(o.timeStamp,e??(0,$.n$)());l||d(),l=!0,s.loadingTime=t,i()}}}(e,t,n,r,V,i,a),{stop:N,initialViewMetrics:O}=i===y.INITIAL_LOAD?function(e,t,n,r){var i,a;let o={},{stop:s}=(i=e=>{n(e.loadEvent),o.navigationTimings=e,r()},function(e){let t;let{stop:n}=(0,n1.T)("complete",()=>{t=(0,e2.iK)(()=>e())});return{stop:()=>{n(),(0,e2.gr)(t)}}}(()=>{let e=(0,tY.C)(nW)();e.loadEventEnd<=0||i({domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:nG(e)})})),l=n7(t),{stop:c}=(a=e=>{o.firstContentfulPaint=e,r()},{stop:e4({type:"paint",buffered:!0}).subscribe(e=>{let t=e.find(e=>"first-contentful-paint"===e.name&&e.startTime<l.timeStamp&&e.startTime<n9);t&&a(t.startTime)}).unsubscribe}),{stop:u}=function(e,t,n,r){let i=1/0,{stop:a}=(0,e3.yw)(n,[e3.EZ.POINTER_DOWN,e3.EZ.KEY_DOWN],e=>{i=e.timeStamp},{capture:!0,once:!0}),o=0,s=e4({type:"largest-contentful-paint",buffered:!0}).subscribe(n=>{let a=(0,tL.dF)(n,e=>"largest-contentful-paint"===e.entryType&&e.startTime<i&&e.startTime<t.timeStamp&&e.startTime<n6&&e.size>o);if(a){let t;a.element&&(t=tt(a.element,e.actionNameAttribute));let n=""===a.url?void 0:a.url,i=a.startTime,s=function(e,t){let n=nG(nW());if(void 0===n)return;let r=e?function(e,t){let n=function(){if(e9("resource"))return performance.getEntriesByType("resource")}();if(n)return(0,tL.dF)(n,n=>n.name===e&&n.startTime<=t)}(e,t):void 0,i=r?Math.max(n,r.requestStart||r.startTime):n,a=Math.min(t,Math.max(i,r?.responseEnd||0));return{loadDelay:i-n,loadTime:a-i,renderDelay:t-a}}(n,i);r({value:i,targetSelector:t,resourceUrl:n,subParts:s}),o=a.size}});return{stop:()=>{a(),s.unsubscribe()}}}(e,l,window,e=>{o.largestContentfulPaint=e,r()});return{stop:function(){s(),c(),u(),l.stop()},initialViewMetrics:o}}(r,a,k,V):{stop:eD.Z,initialViewMetrics:{}};if(i===y.BF_CACHE){var P,D,M;P=V,D=a.relative,M=e=>{O.firstContentfulPaint=e,O.largestContentfulPaint={value:e},P()},requestAnimationFrame(()=>{requestAnimationFrame(()=>{M((0,$._J)(D,(0,$._q)()))})})}let{stop:j,eventCounts:B}=function(e,t,n){let{stop:r,eventCounts:i}=ny({lifeCycle:e,isChildEvent:e=>e.view.id===t,onChange:n});return{stop:r,eventCounts:i}}(e,l,V),U=(0,e2.Zi)(W,rg),z=e.subscribe(12,e=>{e===rm.k$.UNLOADING&&W()});function Z(){e.notify(3,{id:l,name:g,context:h.getContext(),startClocks:a,sessionIsActive:m})}function V(){Z(),E()}function W(){S(),Z(),p+=1;let t=void 0===s?(0,$.n$)():s.timeStamp;e.notify(4,{customTimings:d,documentVersion:p,id:l,name:g,service:v,version:b,context:h.getContext(),loadingType:i,location:f,handlingStack:_,startClocks:a,commonViewMetrics:T(),initialViewMetrics:O,duration:(0,$._J)(a.timeStamp,t),isActive:void 0===s,sessionIsActive:m,eventCounts:B})}return W(),h.changeObservable.subscribe(V),{get name(){return g},service:v,version:b,contextManager:h,stopObservable:c,end(t={}){s||(s=t.endClocks??(0,$.$I)(),m=t.sessionIsActive??!0,e.notify(5,{endClocks:s}),e.notify(6,{endClocks:s}),(0,e2.cv)(U),C(s.relative),I(),z.unsubscribe(),W(),(0,e2.iK)(()=>{this.stop()},ry))},stop(){N(),j(),A(),c.notify()},addTiming(e,t){if(s)return;let n=(0,$.MN)(t)?t:(0,$._J)(a.timeStamp,t);d[function(e){let t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&q.j.warn(`Invalid timing name: ${e}, sanitized to: ${t}`),t}(e)]=n,V()},setLoadingTime:R,setViewName(e){g=e,W()}}}(e,t,n,r,i,a,o);return c.add(s),s.stopObservable.subscribe(()=>{c.delete(s)}),s}return e.subscribe(11,()=>{d=p(y.SESSION_RENEWAL,void 0,{name:d.name,service:d.service,version:d.version,context:d.contextManager.getContext()})}),e.subscribe(10,({endClocks:e})=>{d.end({sessionIsActive:!1,endClocks:e})}),a&&(l=i.subscribe(({oldLocation:e,newLocation:t})=>{(e.pathname!==t.pathname||!function(e){let t=e.substring(1);return""!==t&&!!document.getElementById(t)}(t.hash)&&rv(t.hash)!==rv(e.hash))&&(d.end(),d=p(y.ROUTE_CHANGE))}),s=function(e){let{stop:t}=(0,e3.Oo)(window,e3.EZ.PAGE_SHOW,t=>{t.persisted&&e(t)},{capture:!0});return t}(e=>{d.end();let t=(0,$.DY)(e.timeStamp);d=p(y.BF_CACHE,t,void 0)})),{addTiming:(e,t=(0,$.n$)())=>{d.addTiming(e,t)}
463,setLoadingTime:e=>d.setLoadingTime(e),startView:(e,t)=>{d.end({endClocks:t}),d=p(y.ROUTE_CHANGE,t,e)},setViewContext:e=>{d.contextManager.setContext(e)},setViewContextProperty:(e,t)=>{d.contextManager.setContextProperty(e,t)},setViewName:e=>{d.setViewName(e)},getViewContext:()=>d.contextManager.getContext(),stop:()=>{l&&l.unsubscribe(),s&&s(),d.end(),c.forEach(e=>e.stop())}}}(e,x,S,n,E,!n.trackViewsManually,a));!function(e){e.register(({domainContext:e,rawRumEvent:t})=>{let n;let r="long_task"===t.type&&"long-animation-frame"===t.long_task.entry_type?t.long_task.scripts[0]?.source_url:("handlingStack"in e&&(n=e.handlingStack),"error"===t.type&&t.error.stack&&(n=t.error.stack),tK._({stack:n}).stack[0]?.url);if(!r)return nU.kb;let i=(0,t4.q)(r);return i?{type:t.type,service:i.service,version:i.version}:nU.kb})}(C),_.push(Q);let et=function(e,t){let n=(0,tY.C)(n0)(),r=function(e){let t=new Set,n=e.subscribe(8,e=>{t.add(e),t.size>1e3&&t.delete(t.values().next().value)});return{getMatchingRequest(e){let n,r=1/0;for(let i of t){let t=e.startTime-i.startClocks.relative;0<=t&&t<r&&i.url===e.name&&(r=Math.abs(t),n=i)}return n&&t.delete(n),n},stop(){n.unsubscribe()}}}(e);e.subscribe(9,n=>{let r=function(e,t){let n=(0,$._J)(e.startClocks.timeStamp,e.endClocks.timeStamp),r={date:e.startClocks.timeStamp,type:m.RESOURCE,resource:{id:F(),type:eU.WEBSOCKET,url:e.url,duration:(0,$.dg)(n),websocket:{connection_id:e.connectionId,handshake_succeeded:e.handshakeSucceeded,start_time:e.startClocks.timeStamp,end_time:e.endClocks.timeStamp,start_view_id:e.startViewId,end_view_id:e.endViewId,tracking_end_reason:e.trackingEndReason,close_code:e.closeCode,close_reason:e.closeReason,was_clean:e.wasClean,messages_in:e.messagesIn,messages_out:e.messagesOut,time_to_first_message_in:(0,$.dg)(e.firstMessageInOffset),time_to_first_message_out:(0,$.dg)(e.firstMessageOutOffset),last_message_in_at:e.lastMessageInAt,longest_inbound_silence:(0,$.dg)(e.longestInboundSilence),inbound_idle_duration_before_close:(0,$.dg)(e.inboundIdleDurationBeforeClose),buffered_amount_max:e.bufferedAmountMax,protocol:e.protocol,setup_duration:(0,$.dg)(e.setupDuration)}},_dd:{discarded:!t.trackResources}};return{startClocks:e.startClocks,duration:n,rawRumEvent:r,domainContext:{isWebSocket:!0,isManual:!1,webSocket:e.webSocket}}}(n,t);r&&e.notify(13,r)});let i=e4({type:"resource",buffered:!0}).subscribe(n=>{for(let i of n)"xmlhttprequest"===i.initiatorType||"fetch"===i.initiatorType?(0,e2.iK)(()=>{let n=n2(i,r.getMatchingRequest(i),t);n&&e.notify(13,n)},50):o(()=>n2(i,void 0,t))}),{stop:a}=(0,n1.T)("interactive",()=>{o(()=>n2(nW(),void 0,t))});function o(t){n.push(()=>{let n=t();n&&e.notify(13,n)})}let s=nb(e);return{startResource:function(e,t={},n=(0,$.$I)()){let r=t.resourceKey??e;s.start(r,n,{url:e,...t})},stopResource:function(t,n={},r=(0,$.$I)()){let i=n.resourceKey??t,a=s.stop(i,r,{context:n.context,type:n.type});if(!a)return;let o=(0,$._J)(a.startClocks.relative,r.relative),l={date:a.startClocks.timeStamp,type:m.RESOURCE,resource:{id:a.id,type:a.type||eU.OTHER,url:eH(a.url),duration:(0,$.dg)(o),method:a.method,status_code:n.statusCode,size:n.size},_dd:{},context:a.context};e.notify(13,{rawRumEvent:l,startClocks:a.startClocks,duration:o,domainContext:{isManual:!0}})},stop:()=>{a(),n.stop(),i.unsubscribe(),s.stopAll()}}}(e,n);_.push(et.stop);let{stop:en}=function(e,t){let n=e4({type:e9("long-animation-frame")?"long-animation-frame":"longtask",buffered:!0}).subscribe(n=>{for(let r of n){if(!t.trackLongTasks)break;let n=(0,$.DY)(r.startTime),i=function(e,t){let n=F(),r=(0,$.dg)(e.duration),i={date:t.timeStamp,type:m.LONG_TASK,_dd:{discarded:!1}};if("longtask"===e.entryType)return{...i,long_task:{id:n,entry_type:g.LONG_TASK,duration:r}};let a=e.scripts.map(e=>e.sourceURL).filter(e=>!!e),o=(0,t4.J)(a);return{...i,_dd:{discarded:!1,debug_ids:o},long_task:{id:n,entry_type:g.LONG_ANIMATION_FRAME,duration:r,blocking_duration:(0,$.dg)(e.blockingDuration),first_ui_event_timestamp:(0,$.dg)(e.firstUIEventTimestamp),render_start:(0,$.dg)(e.renderStart),style_and_layout_start:(0,$.dg)(e.styleAndLayoutStart),start_time:(0,$.dg)(e.startTime),scripts:e.scripts.map(e=>({duration:(0,$.dg)(e.duration),pause_duration:(0,$.dg)(e.pauseDuration),forced_style_and_layout_duration:(0,$.dg)(e.forcedStyleAndLayoutDuration),start_time:(0,$.dg)(e.startTime),execution_start:(0,$.dg)(e.executionStart),source_url:e.sourceURL,source_function_name:e.sourceFunctionName,source_char_position:e.sourceCharPosition,invoker:e.invoker,invoker_type:e.invokerType,window_attribution:e.windowAttribution}))}}}(r,n);e.notify(13,{rawRumEvent:i,startClocks:n,duration:r.duration,domainContext:{performanceEntry:r}})}});return{stop:()=>n.unsubscribe()}}(e,n);_.push(en);let{addError:er}=function(e,t){let n=new ec.y$;return t.subscribe(({data:e,type:t})=>{t===ns.RUNTIME_ERROR?n.notify(e):t===ns.CONSOLE&&e.api===ex.vA.error&&n.notify(e.error)}),(function(e){let t=[];
463e.includes(nZ)&&t.push(new ec.y$(e=>{if(!(0,e3.jO)(document,"securitypolicyviolation"))return;let{stop:t}=(0,e3.Oo)(document,"securitypolicyviolation",t=>{e.notify(function(e){let t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return nV({type:e.effectiveDirective,message:`${nZ}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:nq(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${z(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber),debugIds:e.sourceFile?(0,t4.J)([e.sourceFile]):void 0})}(t))});return t}));let n=e.filter(e=>e!==nZ);return n.length&&t.push(new ec.y$(e=>{if(!window.ReportingObserver)return;let t=(0,ee.zk)((t,n)=>t.forEach(t=>e.notify(function(e){let{type:t,body:n}=e;return nV({type:n.id,message:`${t}: ${n.message}`,originalError:e,stack:nq(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber),debugIds:n.sourceFile?(0,t4.J)([n.sourceFile]):void 0})}(t)))),r=new window.ReportingObserver(t,{types:n,buffered:!0});return r.observe(),()=>{r.disconnect()}})),(0,ec.$Z)(...t)})([nZ,"intervention"]).subscribe(e=>n.notify(e)),n.subscribe(t=>e.notify(15,{error:t})),e.subscribe(15,({error:t})=>{e.notify(13,function(e){let t={date:e.startClocks.timeStamp,error:{id:F(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,component_stack:e.componentStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},_dd:{debug_ids:e.debugIds},type:m.ERROR,context:e.context},n={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:t,startClocks:e.startClocks,domainContext:n}}(t))}),{addError:({error:t,handlingStack:n,componentStack:r,startClocks:i,context:a})=>{let o=t7({originalError:t,handlingStack:n,componentStack:r,startClocks:i,nonErrorPrefix:tX.j9.PROVIDED,source:tX.zH.CUSTOM,handling:tX.Xw.HANDLED});o.context=(0,e_.$e)(o.context,a),e.notify(15,{error:o})}}}(e,o);!function(e,t,n,r,i,a){let o={clearTracingIfNeeded:tB,traceFetch:e=>tU(t,e,n,r,i,t=>{if(e.input instanceof Request&&!e.init?.headers)e.input=new Request(e.input),Object.keys(t).forEach(n=>{e.input.headers.append(n,t[n])});else{e.init=(0,L.mv)(e.init);let n=[];e.init.headers instanceof Headers?e.init.headers.forEach((e,t)=>{n.push([t,e])}):Array.isArray(e.init.headers)?e.init.headers.forEach(e=>{n.push(e)}):e.init.headers&&Object.keys(e.init.headers).forEach(t=>{n.push([t,e.init.headers[t]])}),e.init.headers=n.concat((0,tL.qP)(t))}}),traceXhr:(e,a)=>tU(t,e,n,r,i,e=>{try{Object.keys(e).forEach(t=>{a.setRequestHeader(t,e[t])})}catch{}})};(function(e,t,n){let r=[];r.push(tW().subscribe(e=>{"start"===e.state&&eW(e.url)&&(t.traceXhr(e,e.xhr),nc(e))})),r.push(n.subscribe(({data:n,type:r})=>{if(r===ns.XHR&&eW(n.url))switch(n.state){case"start":nc(n),e.notify(7,{requestIndex:n.requestIndex,url:n.url});break;case"complete":t.clearTracingIfNeeded(n),e.notify(8,{...n,type:ez.XHR,isAbortedOnStart:!1})}}))})(e,o,a),function(e,t,n,r){let i=[];i.push(ni({responseBodyAction:e=>tV(e.url,t)?.trackResponseErrors?nn.COLLECT:nn.IGNORE}).subscribe(e=>{"start"===e.state&&eW(e.url)&&(n.traceFetch(e),nc(e))})),i.push(r.subscribe(({data:t,type:r})=>{if(r===ns.FETCH&&eW(t.url))switch(t.state){case"start":nc(t),e.notify(7,{requestIndex:t.requestIndex,url:t.url});break;case"resolve":n.clearTracingIfNeeded(t),e.notify(8,{...t,duration:(0,$._J)(t.startClocks.timeStamp,(0,$.n$)()),type:ez.FETCH,requestBody:t.init?.body})}}))}(e,t,o,a)}(e,n,r,O,P,o);let ei=function(e,t){let n=nb(e);function r(n){t.wasInPageStateDuringPeriod("frozen",n.startClocks.relative,n.duration)||e.notify(13,rD(n))}return{addOperationStepVital:function(t,n,r,i){let{operationKey:a,context:o,description:s,handlingStack:l}=r||{},c={name:t,type:w.OPERATION_STEP,operationKey:a,failureReason:i,stepType:n,startClocks:(0,$.$I)(),context:t2(o),description:s,handlingStack:l};e.notify(13,rD(c))},addDurationVital:r,startDurationVital:function(t,r={},i=(0,$.$I)()){let{id:a}=n.start(r.vitalKey??t,i,{name:t,...r});e.notify(17,{id:a,name:t,startClocks:i,...r})},stopDurationVital:function(e,t={},i=(0,$.$I)()){let a=n.stop(t.vitalKey??e,i,t);a&&r({type:w.DURATION,...a})}}}(e,I);if(n.trackResources&&(n.betaTrackWebSockets||(0,eg.W_)(eg.uh.TRACK_WEBSOCKETS))){let t=function(e,t,n){let r=function(e,t,n,r){let i=new Map;function a(t,i,a){let o=function(e,t,n,r){let i=t.at,a="session_end"===n?r.findView(i.relative,{returnInactive:!0})?.id:r.findView(i.relative)?.id,o=void 0!==e.lastMessageInAt?(0,$._J)(e.lastMessageInAt,i.timeStamp):void 0,{openClocks:s,...l}=e;return{...l,endClocks:i,endViewId:a,inboundIdleDurationBeforeClose:o,trackingEndReason:n,handshakeSucceeded:void 0!==s,setupDuration:e.setupDuration??(0,$._J)(e.startClocks.timeStamp,i.timeStamp),closeCode:t.code,closeReason:t.reason,wasClean:t.wasClean}}(t,i,a,n);e.notify(9,o),r({id:F(),name:"websocket-closed",type:w.DURATION,startClocks:o.endClocks,duration:0,
463context:t2({url:o.url,connection_id:o.connectionId})})}let o=t.subscribe(e=>{switch(e.state){case"connecting":{let t=F(),a=n.findView(e.startClocks.relative)?.id,o=function(e){let t=(0,H.Q2)(e);return t.search="",t.href}(e.url),s={webSocket:e.instance,connectionId:t,url:o,startClocks:e.startClocks,startViewId:a,messagesIn:{count:0,size:0},messagesOut:{count:0,size:0},longestInboundSilence:0,bufferedAmountMax:0};i.set(e.instance,s),r({id:F(),name:"websocket-connecting",type:w.DURATION,startClocks:e.startClocks,duration:0,context:t2({url:o,connection_id:t})});return}case"open":{let t=i.get(e.instance);if(!t)return;t.openClocks=e.openClocks,t.protocol=e.protocol,t.setupDuration=(0,$._J)(t.startClocks.timeStamp,e.openClocks.timeStamp);return}case"message-in":{let t=i.get(e.instance);if(!t)return;t.messagesIn.count+=1,t.messagesIn.size+=e.size,nd(t,e.at,"in");return}case"message-out":{let t=i.get(e.instance);if(!t)return;e.bufferedAmountPreSend>t.bufferedAmountMax&&(t.bufferedAmountMax=e.bufferedAmountPreSend),t.messagesOut.count+=1,t.messagesOut.size+=e.size,nd(t,e.at,"out");return}case"closed":{let t=i.get(e.instance);if(!t)return;i.delete(e.instance),a(t,e,"close_event");return}}});return{flushOpenConnections:(e,t=(0,$.$I)())=>{i.forEach(n=>{a(n,{at:t},e)}),i.clear()},stop:()=>{o.unsubscribe(),i.clear()}}}(e,(c||(c=new ec.y$(e=>{if("function"!=typeof G.globalObject.WebSocket)return;let{stop:t}=(0,tM.t1)(G.globalObject,"WebSocket",({parameters:t,onPostCall:n})=>{let r=Array.isArray(t[1])?[].concat(t[1]):t[1],i=(0,$.$I)();n(t=>{e.notify({state:"connecting",instance:t,url:t.url,protocols:r,startClocks:i}),function(e,t){let{stop:n}=(0,e3.Oo)(e,"open",()=>{t.notify({state:"open",instance:e,openClocks:(0,$.$I)(),protocol:e.protocol||""}),n()}),{stop:r}=(0,e3.Oo)(e,"message",n=>{t.notify({state:"message-in",instance:e,size:nu(n.data),at:(0,$.$I)()})}),{stop:i}=(0,e3.Oo)(e,"close",n=>{t.notify({state:"closed",instance:e,code:n.code,reason:n.reason,wasClean:n.wasClean,at:(0,$.$I)()}),r(),i()})}(t,e)})}),{stop:n}=(0,tM.Su)(G.globalObject.WebSocket.prototype,"send",({target:t,parameters:[n],onPostCall:r})=>{let i=nu(n),a=t.bufferedAmount;r(()=>{e.notify({state:"message-out",instance:t,size:i,bufferedAmountPreSend:a,at:(0,$.$I)()})})});return()=>{t(),n()}})),c),t,n),i=e.subscribe(10,({endClocks:e})=>{r.flushOpenConnections("session_end",e)});return{stop:()=>{i.unsubscribe(),r.flushOpenConnections("session_end"),r.stop()}}}(e,A,ei.addDurationVital);_.push(t.stop)}let ea=(d=n.applicationId,p=D.actionContexts,{get:e=>{let t=A.findView(e),n=T.findUrl(e),i=r.findTrackedSession(e);if(i&&t&&n){let r=p.findActionId(e);return{application_id:d,session_id:i.id,user_action:r?{id:r}:void 0,view:{id:t.id,name:t.name,referrer:n.referrer,url:n.url}}}}});return{addAction:D.addAction,startAction:D.startAction,stopAction:D.stopAction,startResource:et.startResource,stopResource:et.stopResource,addEvent:(t,n,r,i)=>{r1.includes(n.type)&&e.notify(13,{startClocks:(0,$.DY)(t),rawRumEvent:n,domainContext:r,duration:i})},addError:er,addTiming:U,setLoadingTime:Z,addFeatureFlagEvaluation:R.addFeatureFlagEvaluation,startView:V,setViewContext:Y,setViewContextProperty:K,getViewContext:J,setViewName:W,viewHistory:A,sessionManager:r,stopSession:()=>r.expire(),getInternalContext:ea.get,startDurationVital:ei.startDurationVital,stopDurationVital:ei.stopDurationVital,addDurationVital:ei.addDurationVital,addOperationStepVital:ei.addOperationStepVital,globalContext:N,userContext:O,accountContext:P,stop:()=>_.forEach(e=>e())}}(x,l,e,t,n,i,o,h,E);return _.push(k),o.unbuffer(),_.push(()=>r.stop()),{...C,lifeCycle:x,sessionManager:t,stopSession:()=>t.expire(),telemetry:s,stop:()=>{_.forEach(e=>e())},hooks:l}}function r8(e){return!!e&&"function"==typeof e.then}function ie(e,t,n,r){return(0,ee.zk)((...i)=>(r&&(0,W.eG)({feature:r}),e()[t][n](...i)))}function it(e,t,n){e.changeObservable.subscribe(()=>{let r=e.getContext();n.notify(e=>e[t].setContext(r))})}let ir="userContext",ii="globalContext",ia="accountContext",io="getContext",is="setContext",il="setContextProperty",ic="removeContextProperty",iu="clearContext";function id(e,t){t.silentMultipleInit||q.j.error(`${e} is already initialized.`)}let ip=["chrome-extension://","moz-extension://"];function ih(e){return ip.some(t=>e.includes(t))}let im=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function ig(e){return e.created?Number(e.created):void 0}function iy(e){let t=e.expire&&Number(e.expire),n=ig(e);if(t&&n)return Math.min(t,n+eL.TN)}function iv(e,t){let n={isExpired:"1"};
463return t.trackAnonymousUser&&e?.anonymousId&&(n.anonymousId=e?.anonymousId),n}function ib(e){return(0,L.Qr)(e)}function iw(e){return void 0!==e.isExpired||!function(e){let t=iy(e);return!!t&&(0,$.m6)()<t}(e)}function i_(e){e.expire=String((0,$.m6)()+eL.sr)}function ix(e){return(0,tL.qP)(e).map(([e,t])=>"anonymousId"===e?`aid=${t}`:`${e}=${t}`).join("&")}function iE(e){let t={};return e&&(-1!==e.indexOf("&")||im.test(e))&&e.split("&").forEach(e=>{let n=im.exec(e);if(null!==n){let[,e,r]=n;"aid"===e?t.anonymousId=r:t[e]=r}}),t}function iS(e,t){return ib(e)?(t.trackAnonymousUser&&(e.anonymousId=F()),iv(e,t)):e}function ik(e,t){if(ib(e))return e;let n=e;return iw(e)&&(n=iv(e,t)),n.id||(n.id=F(),n.created=String((0,$.m6)())),t.trackAnonymousUser&&!n.anonymousId&&(n.anonymousId=F()),delete n.isExpired,i_(n),n}let iC="_dd_s_v2",iI="_dd_s";async function iA(e){let t=function(e){let t={};if(t.secure=e.useSecureSessionCookie||e.usePartitionedCrossSiteSessionCookie,t.crossSite=e.usePartitionedCrossSiteSessionCookie,t.partitioned=e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){let e=function(e=G.globalObject.location?.hostname??"",t="undefined"!=typeof document?document.referrer:""){if("undefined"!=typeof document){if(void 0===i){let n=function(e,t){try{return e||(0,H.Q2)(t).hostname}catch{}}(e,t);if(n){let e=`dd_site_test_${F()}`,t=n.split("."),r=t.pop();for(;t.length&&!K(e);)r=`${t.pop()}.${r}`,Y(e,"test",$.WT,{domain:r});Y(e,"",0,{domain:r}),i=r}}return i}}();if(!e)return;t.domain=e}return t}(e);if(t){if(rF()&&await rM(r$,t))return{type:eL._q.COOKIE,cookieOptions:t,cookieApi:1};if(await rM(rL,t))return{type:eL._q.COOKIE,cookieOptions:t,cookieApi:0}}}function iT(e,t){return 1===e?r$(iC,t):rL(iC,t)}function iR(e,t){let n;for(let r of e.slice().reverse())if((n=iE(r)).c===t)break;return delete n?.c,n??{}}function iN(e){return(0|(e.domain?e.domain.split(".").length-1:0)<<1|(e.crossSite?1:0)).toString(16)}let iO="_DD_SESSION";async function iP(e){var t;for(let n of void 0!==(t=e.sessionPersistence)?t:G.j?[eL._q.MEMORY]:[eL._q.COOKIE]){let t=await function(e,t){switch(e){case eL._q.COOKIE:return iA(t);case eL._q.LOCAL_STORAGE:return function(){try{let e=F(),t=`_dd_test_${e}`;localStorage.setItem(t,e);let n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:eL._q.LOCAL_STORAGE}:void 0}catch{return}}();case eL._q.MEMORY:return{type:eL._q.MEMORY};default:q.j.error(`Invalid session persistence '${String(e)}'`);return}}(n,e);if(void 0!==t)return t}}function iD(e,t){switch(e.type){case eL._q.COOKIE:return function(e,t){let{cookieOptions:n,cookieApi:r}=e,i=new ec.y$,a=!!t.trackAnonymousUser,o=iN(n),s=(0,tY.C)(iT)(r,n),l=!0;function c(e){return s.getAllAndSet(t=>{var r;let i=iR(t,o);return l&&(0,L.Qr)(i)&&(i=iR(J(iI),o)),l=!1,{value:(r=e(i),ix((0,L.Qr)(r)?r:{...r,c:iN(n)})),expireDelay:a?eL.uY:eL.TN}})}return s.observable.subscribe(()=>{s.getAll().then(e=>{i.notify(iR(e,o))}).catch(e=>(0,ee.$y)(Error(`Error while reading session cookies on change: ${e}`)))}),{async setSessionState(e,t){"undefined"!=typeof navigator&&navigator.locks?await navigator.locks.request(iC,()=>c(e)).catch(e=>{if(!(e instanceof Error&&("AbortError"===e.name||e.message.includes("no longer runnable"))))throw e}):(h=(h??Promise.resolve()).then(()=>c(e)),await h)},sessionObservable:i}}(e,t);case eL._q.LOCAL_STORAGE:return function(){let e=new ec.y$(e=>(0,e3.Oo)(window,"storage",t=>{"_dd_s_v2"===t.key&&t.storageArea===localStorage&&e.notify(iE(t.newValue))}).stop),t=!0;return{async setSessionState(n,r){let i=iE(localStorage.getItem(iC));t&&ib(i)&&(i=iE(localStorage.getItem(iI))),t=!1;let a=n(i);localStorage.setItem(iC,ix(a)),await Promise.resolve(),e.notify(a)},sessionObservable:e}}();case eL._q.MEMORY:return function(){let e=G.globalObject;e._DD_SESSION||(e[iO]={});let t=e[iO],n=new ec.y$,r=t.onChange;return t.onChange=e=>{r?.(e),n.notify(e)},{async setSessionState(e,n){let r=t.state??{},i=(0,L.mv)(e(r));t.state=i,await Promise.resolve(),t.onChange?.(i)},sessionObservable:n}}()}}let iM=$.yR,i$=12*$.dV,ij=[];async function iL(e,t){let n;let r=(0,$._q)(),i=new ec.y$,a=new ec.y$,o=await (0,tY.C)(iP)(e);if(!o){q.j.warn("No storage available for session. We will not send any data.");return}let s=(0,tY.C)(iD)(o,e),l=(0,eF.p)({maxEntries:1e3});ij.push(()=>l.stop());let c=!1,{throttled:u,cancel:d}=(0,eD.P)(()=>{c=!1,s.setSessionState(t=>ik(t,e),"expandOrRenewOnActivity").catch(ee.$y)},$.WT);ij.push(d),ij.push(()=>(0,e2.gr)(n));let p=!1;ij.push(()=>{p=!0});let f=await h().catch(e=>(0,ee.$y)(Error(`Error while resolving initial session state: ${e}`)));if(f&&!p){for(;!t.isGranted();)if(y(),await new Promise(e=>t.onGrantedOnce(e)),p||!(f=await h().catch(ee.$y))||p)return;return l.add(v(f),(0,$.cQ)().relative),m(f),function(){let e=s.sessionObservable.subscribe(e=>{m(e),g(e)});ij.push(()=>e.unsubscribe())}(),t.observable.subscribe(()=>{t.isGranted()?(c=!1,s.setSessionState(t=>ik(t,e),"expandOrRenewOnConsent").catch(ee.$y)):y()}),G.j||(function(e){let{stop:t}=(0,e3.yw)(window,["click","touchstart","keydown","scroll"],e,{capture:!0,passive:!0});ij.push(t)}(()=>{t.isGranted()&&u()}),function(e){let t=()=>{"visible"===document.visibilityState&&e()},{stop:n}=(0,e3.Oo)(document,"visibilitychange",t);ij.push(n);let r=(0,e2.Zi)(t,iM);ij.push(()=>{(0,e2.cv)(r)})}(()=>{c||s.setSessionState(e=>(iw(e)||ib(e)||!e.id||i_(e),e),"expandOnVisibility").catch(ee.$y)}),function(e){let{stop:t}=(0,e3.Oo)(window,"resume",e,{capture:!0});ij.push(t)}(()=>{s.setSessionState(t=>iS(t,e),"initializeOnResume").catch(ee.$y)})),(0,W.qZ)("Session manager init metrics",{metrics:{duration:(0,$._J)(r,(0,$._q)())}}),{findSession:(e,t)=>l.find(e,t),findTrackedSession:(t,{returnInactive:n=!1,maxAge:r=i$}={})=>{let i=l.find(t,{returnInactive:n});if(i&&"invalid"!==i.id&&(0,tO.HR)(i.id,e.sessionSampleRate)&&!((0,$.m6)()-i.createdAt>r))return i},renewObservable:i,expireObservable:a,expire:y,updateSessionState:e=>{s.setSessionState(t=>({...t,...e}),"updateState").catch(ee.$y)}}}async function h(){let t={};return await s.setSessionState(n=>t=ik(iS(n,e),e),"initialize"),t}function m(r){(0,e2.gr)(n);let i=iy(r);if(i){let r=i-(0,$.m6)();n=(0,e2.iK)(()=>{s.setSessionState(n=>iw(n)?(t.isGranted()||delete n.anonymousId,iv(n,e)):n,"expireOnTimeout").catch(ee.$y)},r)}}function g(e){let t=l.find(),n=t?.id!==void 0,r=void 0!==e.id,o=n&&r&&t.id!==e.id;if(n&&(!r||o)&&(c=!0,a.notify(),l.closeActive((0,$._q)())),r&&(!n||o)){if
463(c)return;l.add(v(e),(0,$._q)()),i.notify()}else n&&r&&!o&&(t.isReplayForced=!!e.forcedReplay)}function y(){d();let n=iv(l.find(),e);t.isGranted()||delete n.anonymousId,g(n),s.setSessionState(n=>(t.isGranted()||delete n.anonymousId,iv(n,e)),"expire").catch(ee.$y)}function v(e){let t=ig(e)??(0,$.n$)();return e.id?{id:e.id,isReplayForced:!!e.forcedReplay,anonymousId:e.anonymousId,createdAt:t}:{id:"invalid",isReplayForced:!1,anonymousId:void 0,createdAt:t}}}var iF=n(11671),iB=n(73434);function iU(e,t,n={}){let r=function(e){let t=new ec.y$;function n(){return e===eu.GRANTED}return{tryToInit(t){e||(e=t)},onGrantedOnce(e){if(n())e();else{let r=t.subscribe(()=>{n()&&(e(),r.unsubscribe())})}},update(n){e=n,t.notify()},isGranted:n,observable:t}}(),i=function(){let e=new ec.fk(500,e=>{(0,W.eJ)("Early data collection dropped data on unbuffer",{count:e})}),t=[];function n(n,r){t.push(r.subscribe(t=>{e.notify({type:n,data:t})}))}return n(0,(0,tY.C)(t8)()),n(1,ni()),n(2,tW()),n(3,function(e){let t=e.map(e=>(no[e]||(no[e]=new ec.y$(t=>{let n=ex.jG[e];return ex.jG[e]=(...r)=>{n.apply(console,r);let i=(0,tQ.Xp)("console error");(0,ee.L6)(()=>{t.notify(function(e,t,n){let r=e.map(e=>"string"==typeof e?t2(e):(0,tJ.V)(e)?(0,tQ.jN)((0,tK._)(e)):(0,t0.l)(t2(e),void 0,2)).join(" ");if(t===ex.vA.error){let i=t7({originalError:e.find(tJ.V),handlingStack:n,startClocks:(0,$.$I)(),source:tX.zH.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return i.message=r,{api:t,message:r,handlingStack:n,error:i}}return{api:t,message:r,error:void 0,handlingStack:n}}(r,e,i))})},()=>{ex.jG[e]=n}})),no[e]));return(0,ec.$Z)(...t)}(Object.values(ex.vA))),{observable:e,stop:()=>t.forEach(e=>e.unsubscribe())}}(),a=function({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t,s
463dkName:n},r,i){let a,o,s,l,c,u;let d=new ec.fk(500,e=>{(0,W.eJ)("preStartRum buffer data lost",{count:e})}),p=r4();it(p,ii,d);let f=r9();it(f,ir,d);let h=r6();it(h,ia,d);let m={assembleEventDefaults:(0,nU.Bi)(),assembleTelemetry:(0,nU.Bi)(),assembleEvent:(0,nU.Bi)()},g=r.observable.subscribe(b),y={},v=!1;function b(){let e;if(v||!s||!l||!c||!u)return;if(g.unsubscribe(),l.trackViewsManually){if(!a)return;e=a.options}let t=l.trackViewsManually?a?.callback:void 0,n=i(l,c,o,e,u,m);v=!0,d.subscribe(e=>{e!==t&&e(n)}),d.unbuffer()}function w(e,i,a){var d;let p=(0,em.xT)();if(p&&(e={...d=e,service:d.service||d.applicationId,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:d.defaultPrivacyLevel??em.Ad()?.getPrivacyLevel()}),s=e,l){id("DD_RUM",e);return}let f=function(e,t){let n=function(e,t,n){if(!e||"object"!=typeof e){n.error("Configuration must be an object");return}return eE(t,e,n)}(e,eT,q.j);if(!n)return;let r=n.allowedTracingUrls.map(eN).filter(Boolean);if(r.length>0&&!n.service){q.j.error("Service needs to be configured when tracing is enabled");return}let i=(0,eg.W_)(eg.uh.SESSION_REPLAY_RECORD_CANVAS)?n.sessionReplayCanvasRecording:void 0;return{...n,service:n.service||n.applicationId,sessionReplayCanvasRecording:i,betaEnableViewUpdates:eR(n.betaEnableViewUpdates,n.proxy,t),allowedTracingUrls:r,beforeSend:n.beforeSend?(0,ey.Z)(n.beforeSend,"beforeSend threw an error:"):void 0,rulePsr:eb(e.traceSampleRate)?e.traceSampleRate/100:void 0,trackResourceHeaders:function(e){let t=e.trackResourceHeaders;if(void 0===t||!1===t)return[];if(!0===t)return eA.map(e=>({name:e}));if(!Array.isArray(t))return q.j.warn("trackResourceHeaders should be true or an array of MatchHeader"),[];if(0===t.length)return q.j.warn("trackResourceHeaders is an empty array, no headers will be captured"),[];let n=[];return t.forEach((e,t)=>{if(!(0,j.sK)(e)){q.j.warn(`trackResourceHeaders[${t}] should be a MatchHeader object`);return}if(void 0!==e.name&&!(0,j.o)(e.name)){q.j.warn(`trackResourceHeaders[${t}].name should be a MatchOption`);return}if(void 0!==e.url&&!(0,j.o)(e.url)){q.j.warn(`trackResourceHeaders[${t}].url should be a MatchOption`);return}if(void 0!==e.extractor&&!(e.extractor instanceof RegExp)){q.j.warn(`trackResourceHeaders[${t}].extractor should be a RegExp`);return}if(void 0!==e.location&&("string"!=typeof e.location||!eO.includes(e.location))){q.j.warn(`trackResourceHeaders[${t}].location should be 'request', 'response', or 'any'`);return}let{name:r,...i}=e;n.push({...i,...void 0!==r?{name:"string"==typeof r?r.toLowerCase():r}:{}})}),n}(e),allowedGraphQlUrls:function(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return q.j.warn("allowedGraphQlUrls should be an array"),[];let t=[];
463return e.allowedGraphQlUrls.forEach(e=>{(0,j.o)(e)?t.push({match:e,trackPayload:!1,trackResponseErrors:!1}):(0,j.sK)(e)&&(0,j.o)(e.match)&&t.push({match:e.match,trackPayload:!!e.trackPayload,trackResponseErrors:!!e.trackResponseErrors})}),t}(e),remoteConfigurationId:el(e)}}(e,n);if(f&&function(e,t){let n=(0,tY.C)(G.globalObject.location),r=n?n.origin:"",i=e.allowedTrackingOrigins;if(!i)return!function(e,t=""){return!ih(e)&&ih(t.split("\n").filter(e=>{let t=e.trim();return t.length&&/^at\s+|@/.test(t)})[1]||"")}(r,t)||(q.j.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);let a=tF(i,r);return a||q.j.error("SDK initialized on a non-allowed domain."),a}(f,i??"")){if(f.compressIntakeRequests&&!p&&t&&!(o=t(f,"Datadog RUM",eD.Z)))return;l=f,r.tryToInit(f.trackingConsent),r.onGrantedOnce(()=>{let t;let{assembleTelemetry:i}=m;if(function(e,t){e.register(()=>t.isGranted()?nU.kb:nU.C_)}(i,r),u=(0,tY.C)(W.VL)(W.y0.RUM,f,i,n),G.j){q.j.warn("The RUM SDK is not supported in a web or service worker environment.");return}((0,em.xT)()?(t={id:F(),isReplayForced:!1,anonymousId:void 0,createdAt:(0,$.n$)()},Promise.resolve({findSession:()=>t,findTrackedSession:()=>t,renewObservable:new ec.y$,expireObservable:new ec.y$,expire:eD.Z,updateSessionState:e=>{t={...t,...e}}})):(0,tY.C)(iL)(f,r)).then(t=>{t&&(function(e,t,n){e.register(({startTime:e})=>{let r=t.findTrackedSession(e);return r?{session:{id:r.id},anonymous_id:r.anonymousId,...n}:nU.kb})}(i,c=t,{application:{id:f.applicationId}}),(0,W.Uo)(function(e,t,n){var r,i,a;let o={session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_anonymous_user:e.trackAnonymousUser,session_persistence:Array.isArray(e.sessionPersistence)?e.sessionPersistence[0]:e.sessionPersistence,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent,use_allowed_tracking_origins:Array.isArray(e.allowedTrackingOrigins),source:e.source,sdk_version:e.sdkVersion,variant:e.variant};return{session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,propagate_trace_baggage:e.propagateTraceBaggage,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:(0,ew.Of)(e.allowedTracingUrls),use_allowed_graph_ql_urls:(0,ew.Of)(e.allowedGraphQlUrls),use_track_graph_ql_payload:(r=e.allowedGraphQlUrls,(0,ew.Of)(r)&&r.some(e=>(0,j.sK)(e)&&e.trackPayload)),use_track_graph_ql_response_errors:(i=e.allowedGraphQlUrls,(0,ew.Of)(i)&&i.some(e=>(0,j.sK)(e)&&e.trackResponseErrors)),selected_tracing_propagators:function(e){let t=new Set;return(0,ew.Of)(e.allowedTracingUrls)&&e.allowedTracingUrls.forEach(e=>{eN(e)?.propagatorTypes.forEach(e=>t.add(e))}),Array.from(t)}(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:(0,ew.Of)(e.excludedActivityUrls),use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,plugins:e.plugins?.map(e=>({name:e.name,...e.getConfigurationTelemetry?.()})),track_feature_flags_for_events:e.trackFeatureFlagsForEvents,remote_configuration_id:el(e),remote_configuration:n&&{last_modified:n.lastModified,last_synced:n.lastSynced,first_applied:n.firstApplied,sync_id:n.syncId},profiling_sample_rate:e.profilingSampleRate,use_remote_configuration_proxy:!!e.remoteConfigurationProxy,track_resource_headers:!0===(a=e.trackResourceHeaders)?"default_headers":Array.isArray(a)?"custom"
463:void 0,beta_enable_view_updates:eR(e.betaEnableViewUpdates,e.proxy,t),beta_track_web_sockets:e.betaTrackWebSockets,...o}}(e,n,a)),b())}).catch(ee.$y)})}}return{init(t,n,r){if(!t){q.j.error("Missing configuration");return}if((0,eg.fG)(t.enableExperimentalFeatures),(0,e3.$k)(t.allowUntrustedEvents),s=t,e&&rG())return;let i=function(e,t){if(!e)return!0;let n=e.map(e=>e.onInit?.(t));return n.some(r8)?Promise.all(n).then(e=>!e.includes(!1)):!n.includes(!1)}(t.plugins,{initConfiguration:t,publicApi:n,registerAssembleEventHook:m.assembleEvent.register});function a(){if(el(t)){let e={user:f,context:p};if(t.remoteConfigurationId||t.remoteConfiguration?.sync)er(t,e).then(e=>{e&&w(e,r)}).catch(ee.$y);else{let n=function(e,t){let n=function({remoteConfigurationId:e}){let t=`dd_rc_${e}`;return{read(){let e;try{e=localStorage.getItem(t)}catch{return{status:"error"}}if(null===e)return{status:"miss"};let n=(0,L.Cy)(e);return void 0===n||!function(e){if("object"!=typeof e||null===e)return!1;let t="version"in e&&3===e.version,n="config"in e&&"object"==typeof e.config&&null!==e.config,r="metadata"in e&&(0,j.sK)(e.metadata)&&"string"==typeof e.metadata.syncId&&"number"==typeof e.metadata.lastSynced;return t&&n&&r}(n)?(this.remove(),{status:"error"}):{status:"hit",config:n.config,metadata:n.metadata}},remove(){try{localStorage.removeItem(t)}catch{}},write(e,n){let r=this.read();("hit"!==r.status||JSON.stringify(r.config)!==JSON.stringify(e))&&V(t,{version:3,config:e,metadata:{lastModified:n,lastSynced:(0,$.n$)(),syncId:F()}})},stampFirstApplied(e){if(void 0!==e.metadata.firstApplied)return e.metadata;let n={...e.metadata,firstApplied:(0,$.n$)()};return V(t,{version:3,config:e.config,metadata:n}),n}}}({remoteConfigurationId:el(e)}),r=ea(),i=n.read();return(r.increment("cache",Z[i.status]),!function(e,t,n){es(e).then(e=>{e.ok?(n.increment("fetch","success"),t.write(e.value,e.lastModified)):(n.increment("fetch","failure"),q.j.error(e.error))}).catch(ee.$y).finally(()=>{(0,W.qZ)(W.T.REMOTE_CONFIGURATION_METRIC_NAME,{metrics:n.get()})})}(e,n,r),"hit"===i.status)?{metadata:n.stampFirstApplied(i),initConfiguration:ei(e,i.config,t,r)}:e.remoteConfiguration?.required?void 0:{initConfiguration:e}}(t,e);n&&w(n.initConfiguration,r,n.metadata)}}else w(t,r)}"boolean"==typeof i?i&&a():i.then(e=>{e&&a()}).catch(ee.$y)},get initConfiguration(){return s},getInternalContext:eD.Z,stopSession:eD.Z,addTiming(e,t=(0,$.n$)()){d.notify(n=>n.addTiming(e,t))},setLoadingTime:e=>{d.notify(t=>t.setLoadingTime(e))},startView(e,t=(0,$.$I)()){let n=n=>{n.startView(e,t)};d.notify(n),a||(a={options:e,callback:n},b())},setViewName(e){d.notify(t=>t.setViewName(e))},setViewContext(e){d.notify(t=>t.setViewContext(e))},setViewContextProperty(e,t){d.notify(n=>n.setViewContextProperty(e,t))},getViewContext:()=>y,globalContext:p,userContext:f,accountContext:h,addAction(e){d.notify(t=>t.addAction(e))},startAction(e,t){let n=(0,$.$I)();d.notify(r=>r.startAction(e,t,n))},stopAction(e,t){let n=(0,$.$I)();d.notify(r=>r.stopAction(e,t,n))},startResource(e,t){let n=(0,$.$I)();d.notify(r=>r.startResource(e,t,n))},stopResource(e,t){let n=(0,$.$I)();d.notify(r=>r.stopResource(e,t,n))},addError(e){d.notify(t=>t.addError(e))},addFeatureFlagEvaluation(e,t){d.notify(n=>n.addFeatureFlagEvaluation(e,t))},startDurationVital(e,t){let n=(0,$.$I)();d.notify(r=>r.startDurationVital(e,t,n))},stopDurationVital(e,t){let n=(0,$.$I)();d.notify(r=>r.stopDurationVital(e,t,n))},addDurationVital(e){d.notify(t=>t.addDurationVital(e))},addOperationStepVital:(e,t,n,r)=>{d.notify(i=>i.addOperationStepVital(t2(e),t,t2(n),t2(r)))}}}(n,r,(r,o,s,l,c,u)=>{let d=s&&n.createDeflateEncoder?e=>n.createDeflateEncoder(s,e):iF.G,p=(0,tY.C)(r7)(r,o,e,t,l,d,i.observable,c,u,n.sdkName);return e.onRumStart(p.lifeCycle,r,o,p.viewHistory,s,p.telemetry),t.onRumStart(p.lifeCycle,p.hooks,r,o,p.viewHistory,d),a={...a,init:e=>{id("DD_RUM",e)},getInternalContext:p.getInternalContext,stopSession:p.stopSession,getViewContext:p.getViewContext,globalContext:p.globalContext,userContext:p.userContext,accountContext:p.accountContext},!function(e,t){for(let n of e??[])n.onRumStart?.(t)}(r.plugins,{addEvent:p.addEvent,addError:p.addError}),p}),o=()=>a,s=(e,t)=>{let n=(0,tQ.Xp)("vital");(0,ee.L6)(()=>{(0,W.eG)({feature:"add-operation-step-vital",action_type:"start"}),a.addOperationStepVital(e,"start",{...t,handlingStack:n})})},l=(0,ee.zk)((e,t)=>{(0,W.eG)({feature:"add-operation-step-vital",action_type:"succeed"}),a.addOperationStepVital(e,"end",t)}),c=(0,ee.zk)((e,t,n)=>{(0,W.eG)({feature:"add-operation-step-vital",action_type:"fail"}),a.addOperationStepVital(e,"end",n,t)}
463),u=(0,iB.r)({init:e=>{let t=Error().stack;(0,ee.L6)(()=>a.init(e,u,t))},setTrackingConsent:(0,ee.zk)(e=>{r.update(e),(0,W.eG)({feature:"set-tracking-consent",tracking_consent:e})}),setViewName:(0,ee.zk)(e=>{a.setViewName(iz(e,"view name")),(0,W.eG)({feature:"set-view-name"})}),setViewContext:(0,ee.zk)(e=>{a.setViewContext(e),(0,W.eG)({feature:"set-view-context"})}),setViewContextProperty:(0,ee.zk)((e,t)=>{a.setViewContextProperty(e,t),(0,W.eG)({feature:"set-view-context-property"})}),getViewContext:(0,ee.zk)(()=>((0,W.eG)({feature:"set-view-context-property"}),a.getViewContext())),getInternalContext:(0,ee.zk)(e=>a.getInternalContext(e)),getInitConfiguration:(0,ee.zk)(()=>(0,e_.I8)(a.initConfiguration)),addAction:(e,t)=>{let n=(0,tQ.Xp)("action");(0,ee.L6)(()=>{a.addAction({name:t2(e),context:t2(t),startClocks:(0,$.$I)(),type:v.CUSTOM,handlingStack:n}),(0,W.eG)({feature:"add-action"})})},startAction:(0,ee.zk)((e,t)=>{(0,W.eG)({feature:"start-action"}),a.startAction(t2(e),{type:t2(t?.type),context:t2(t?.context),actionKey:t?.actionKey})}),stopAction:(0,ee.zk)((e,t)=>{(0,W.eG)({feature:"stop-action"}),a.stopAction(t2(e),{type:t2(t?.type),context:t2(t?.context),actionKey:t?.actionKey})}),startResource:(0,ee.zk)((e,t)=>{(0,W.eG)({feature:"start-resource"}),a.startResource(t2(e),{type:t2(t?.type),method:t2(t?.method),context:t2(t?.context),resourceKey:t?.resourceKey})}),stopResource:(0,ee.zk)((e,t)=>{(0,W.eG)({feature:"stop-resource"}),a.stopResource(t2(e),{type:t2(t?.type),statusCode:t?.statusCode,size:t?.size,context:t2(t?.context),resourceKey:t?.resourceKey})}),addError:(e,t)=>{let n=(0,tQ.Xp)("error");(0,ee.L6)(()=>{a.addError({error:e,handlingStack:n,context:t2(t),startClocks:(0,$.$I)()}),(0,W.eG)({feature:"add-error"})})},addTiming:(0,ee.zk)((e,t)=>{a.addTiming(t2(e),t)}),setViewLoadingTime:(0,ee.zk)(()=>{let e=(0,$.n$)();a.setLoadingTime(e),(0,W.eG)({feature:"addViewLoadingTime"})}),setGlobalContext:ie(o,ii,is,"set-global-context"),getGlobalContext:ie(o,ii,io,"get-global-context"),setGlobalContextProperty:ie(o,ii,il,"set-global-context-property"),removeGlobalContextProperty:ie(o,ii,ic,"remove-global-context-property"),clearGlobalContext:ie(o,ii,iu,"clear-global-context"),setUser:ie(o,ir,is,"set-user"),getUser:ie(o,ir,io,"get-user"),setUserProperty:ie(o,ir,il,"set-user-property"),removeUserProperty:ie(o,ir,ic,"remove-user-property"),clearUser:ie(o,ir,iu,"clear-user"),setAccount:ie(o,ia,is,"set-account"),getAccount:ie(o,ia,io,"get-account"),setAccountProperty:ie(o,ia,il,"set-account-property"),removeAccountProperty:ie(o,ia,ic,"remove-account-property"),clearAccount:ie(o,ia,iu,"clear-account"),startView:e=>{let t=(0,tQ.Xp)("view");(0,ee.L6)(()=>{let n="object"==typeof e?e:{name:e};a.startView({...n,name:iz(n.name,"view name"),service:iz(n.service,"view service"),version:iz(n.version,"view version"),handlingStack:t}),(0,W.eG)({feature:"start-view"})})},stopSession:(0,ee.zk)(()=>{a.stopSession(),(0,W.eG)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,ee.zk)((e,t)=>{a.addFeatureFlagEvaluation(t2(e),t2(t)),(0,W.eG)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,ee.zk)(()=>e.getSessionReplayLink()),startSessionReplayRecording:(0,ee.zk)(t=>{e.start(t),(0,W.eG)({feature:"start-session-replay-recording",force:t?.force})}),stopSessionReplayRecording:(0,ee.zk)(()=>e.stop()),addDurationVital:(e,t)=>{let n=(0,tQ.Xp)("vital");(0,ee.L6)(()=>{(0,W.eG)({feature:"add-duration-vital"}),a.addDurationVital({id:F(),name:t2(e),type:w.DURATION,startClocks:(0,$.lO)(t.startTime),duration:t.duration,context:t2(t?.context),description:t2(t?.description),handlingStack:n})})},startDurationVital:(e,t)=>{let n=(0,tQ.Xp)("vital");(0,ee.L6)(()=>{(0,W.eG)({feature:"start-duration-vital"}),a.startDurationVital(t2(e),{vitalKey:t?.vitalKey,context:t2(t?.context),description:t2(t?.description),handlingStack:n})})},stopDurationVital:(0,ee.zk)((e,t)=>{(0,W.eG)({feature:"stop-duration-vital"}),a.stopDurationVital(t2(e),{vitalKey:t?.vitalKey,context:t2(t?.context),description:t2(t?.description)})}),startOperation:s,succeedOperation:l,failOperation:c,startFeatureOperation:s,succeedFeatureOperation:l,failFeatureOperation:c,DEFAULT_TRACKED_RESOURCE_HEADERS:eA});return u}function iz(e,t){if(void 0!==e){if("string"!=typeof e){q.j.warn(`Invalid ${t} provided (expected a string, got ${typeof e}). Ignoring.`);return}return t2(e)}}function iZ(e,{session:t,viewContext:n,errorType:r}){let i=t?t.id:"no-session-id",a=[];return void 0!==r&&a.push(`error-type=${r}`),n&&(a.push(`seed=${n.id}`),a.push(`from=${n.startClocks.timeStamp}`)),`${function(e){let t=e.site,n=e.subdomain||function(e){switch(e.site){case ed.D_:case ed.Ds:return"app";case ed.DZ:return"dd";default:return}}(e);return`https://${n?`${n}.`:""}${t}`}(e)}/rum/replay/sessions/${i}?${a.join("&")}`}var iV=n(44439);function iq(e,t,n,r){let i=(0,iV.UF)([(0,et.Ez)(e,"profile")],e=>{t.notify(15,{error:{message:e,source:tX.zH.AGENT,startClocks:(0,$.$I)()}}),(0,W.eJ)("Error reported to customer",{"error.message":e})}),a=n(r);return{async send({event:e,...t}){let n=new FormData,r=(0,t0.l)(e);if(!r)throw Error("Failed to serialize event");n.append("event",new Blob([r],{type:"application/json"}),"event.json");let o=r.length;for(let[e,r]of(0,tL.qP)(t)){let t=(0,t0.l)(r);if(!t)throw Error("Failed to serialize attachment");let i=await function(e,t){return new Promise(n=>{e.write(t),e.finish(e=>{n(e)})})}(a,t);o+=i.outputBytesCount,n.append(e,new Blob([i.output]),e)}i.send({data:n,bytesCount:o})}}}},70533:function(e,t,n){"use strict";let r;function i(e){return c(e).segments_count}function a(e){c(e).segments_count+=1}function o(e){c(e).records_count+=1}function s(e,t){c(e).segments_total_raw_size+=t}function l(e){return r?.get(e)}function c(e){let t;return r||(r=new Map),r.has(e)?t=r.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},r.set(e,t),r.size>1e3&&function(){if(!r)return;let e=r.keys().next().value;e&&r.delete(e)}()),t}n.d(t,{FT:function(){return i},MA:function(){return l},pk:function(){return s},ui:function(){return a},xK:function(){return o}})},84972:function(e,t,n){"use strict";let r;n.d(t,{vT:function(){return L}});var i=n(14447),a=n(22944);function o(e,t){let n,r=0,o=[],s=!0,l=0,c=[],{stop:u}=(0,i.Oo)(e,"message",({data:e})=>
463{if("wrote"!==e.type||e.streamId!==t)return;let i=c[0];i&&(i.id===e.id?(c.shift(),r+=e.additionalBytesCount,o.push(e.result),n=e.trailer,i.writeCallback?i.writeCallback(e.result.byteLength):i.finishCallback&&i.finishCallback()):i.id<e.id&&u())});function d(){let e=0===o.length?new Uint8Array(0):(0,a.Kb)(o.concat(n)),t={rawBytesCount:r,output:e,outputBytesCount:e.byteLength,encoding:"deflate"};return r=0,o=[],t}function p(){s||(e.postMessage({action:"reset",streamId:t}),s=!0)}return{isAsync:!0,get isEmpty(){return s},write(n,r){e.postMessage({action:"write",id:l,data:n,streamId:t}),c.push({id:l,writeCallback:r,data:n}),s=!1,l+=1},finish(e){p(),c.length?(c.forEach(e=>{delete e.writeCallback}),c[c.length-1].finishCallback=()=>e(d())):e(d())},finishSync(){p();let e=c.map(e=>e.data).join("");return c.length=0,{...d(),pendingData:e}},estimateEncodedBytesCount:e=>e.length/8,stop(){u()}}}var s=n(93169),l=n(87057),c=n(31627);function u({configuredUrl:e,error:t,source:n,scriptType:r}){var i;if(s.j.error(`${n} failed to start: an error occurred while initializing the ${r}:`,t),t instanceof Event||t instanceof Error&&((i=t.message).includes("Content Security Policy")||i.includes("requires 'TrustedScriptURL'"))){let t;t=e?`Please make sure the ${r} URL ${e} is correct and CSP is correctly configured.`:"Please make sure CSP is correctly configured.",s.j.error(`${t} See documentation at ${c.aA}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else"worker"===r&&(0,l.Sz)(t)}var d=n(28209),p=n(64435),f=n(73987);let h=30*f.WT;function m(e){return new Worker(e.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function p(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t?.length}function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;
vendor: 4,235 bytes, line 463
463a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},D=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},M=!1,j=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},C=j,L=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},S=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},T={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},q=C,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=T[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?j(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r<n;r++)m(t,t.bl_tree[2*i[r]+1],3);D(t,t.dyn_ltree,e-1),D(t,t.dyn_dtree,a-1)}
vendor: 8,488 bytes, line 463
463(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=O(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=H-(u-i),i=u-H,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=F(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t?.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){M||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),M=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},_t=function(t,e){var a,n;if(!t?.state||e>5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra?.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>
463=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=H-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t?.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(T[n]);if(t.header&&(e=this.strm,a=t.header,e?.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ct.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t?.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(V(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
463i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(T[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch{t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"7.13.0"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=(new TextEncoder).encode(a.data);return n.push(i,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}let g={status:0};function y(e,t,n){switch(0===g.status&&function(e,t){try{let n=(0,d.C)(m)(e),{stop:r}=(0,i.Oo)(n,"error",n=>{v(e,t,n)}),{stop:a}=(0,i.Oo)(n,"message",({data:n})=>{var r;"errored"===n.type?v(e,t,n.error,n.streamId):"initialized"===n.type&&(r=n.version,1===g.status&&(g={status:3,worker:g.worker,stop:g.stop,version:r}))});n.postMessage({action:"init"}),(0,p.iK)(()=>{1===g.status&&(s.j.error(`${t} failed to start: a timeout occurred while initializing the Worker`),g.initializationFailureCallbacks.forEach(e=>e()),g={status:2})},h),g={status:1,worker:n,stop:()=>{r(),a()},initializationFailureCallbacks:[]}}catch(n){v(e,t,n)}}(e,t),g.status){case 1:return g.initializationFailureCallbacks.push(n),g.worker;case 3:return g.worker}}function v(e,t,n,r){1===g.status||0===g.status?(u({configuredUrl:e.workerUrl,error:n,source:t,scriptType:"worker"}),1===g.status&&g.initializationFailureCallbacks.forEach(e=>e()),g={status:2}):(0,l.Sz)(n,{worker_version:3===g.status&&g.version,stream_id:r})}var b=n(70533),w=n(95780),_=n(63488);async function x(){try{return await (0,d.C)(E)()}catch(e){u({error:e,source:"Recorder",scriptType:"module"})}}async function E(){return(await n.e(1133).then(n.bind(n,93334))).startRecording}var S=n(74614),k=n(85727),C=n(1602);async function I(e,t,n){try{return await n}finally{e.notify(t)}}var A=n(57057),T=n(8222),R=n(88427);function N(){return void 0!==R.globalObject.Profiler}var O=n(31009);async function P(){try{return await (0,d.C)(D)()}catch(e){u({error:e,source:"Profiler",scriptType:"module"})}}async function D(){return(await n.e(9050).then(n.bind(n,48857))).createRumProfiler}var M=n(69657),$=n(73434);let j=function(){let e;if((0,A.xT)()&&!(0,A.ke)(A.BP.RECORDS))return{start:_.Z,stop:_.Z,getReplayStats:()=>void 0,onRumStart:_.Z,isRecording:()=>!1,getSessionReplayLink:()=>void 0};let{strategy:t,shouldStartImmediately:n}=(e=0,{strategy:{start(){e=1},stop(){e=2},isRecording:()=>!1,getSessionReplayLink:_.Z},shouldStartImmediately:t=>1===e||0===e&&!t.startSessionReplayRecordingManually});return{start:e=>t.start(e),stop:()=>t.stop(),getSessionReplayLink:()=>t.getSessionReplayLink(),onRumStart:function(e,r,i,a,s,c){let u;t=function(e,t,n,r,i,a){let o,s=0;t.subscribe(w.Y5.SESSION_EXPIRED,()=>{(2===s||3===s)&&(p(),s=1)}),t.subscribe(w.Y5.SESSION_RENEWED,()=>{1===s&&d()});let c=new S.y$;!function(e,t){let n,r,i;if(!e.metricsEnabled)return _.Z;let{unsubscribe:a}=t.subscribe(e=>{switch(e.type){case"start":n={forced:e.forced,timestamp:(0,f.n$)()},r=void 0,i=void 0;break;case"document-ready":n&&(r=(0,f._J)(n.timestamp,(0,f.n$)()));break;
463case"recorder-settled":n&&(i=(0,f._J)(n.timestamp,(0,f.n$)()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":var t,o,s;a(),n&&(0,l.qZ)(l.T.RECORDER_INIT_METRICS_TELEMETRY_NAME,{metrics:(t=n.forced,o=i,s=(0,f._J)(n.timestamp,(0,f.n$)()),{forced:t,loadRecorderModuleDuration:o,recorderInitDuration:s,result:e.type,waitForDocReadyDuration:r})})}})}(a,c);let u=async l=>{c.notify({type:"start",forced:l});let[u]=await Promise.all([I(c,{type:"recorder-settled"},x()),I(c,{type:"document-ready"},(0,k._)("interactive"))]);if(2!==s){c.notify({type:"aborted"});return}if(!u){s=0,c.notify({type:"recorder-load-failed"});return}let d=i();if(!d){s=0,c.notify({type:"deflate-encoder-load-failed"});return}({stop:o}=u(t,e,n,r,d,a)),s=3,c.notify({type:"succeeded"})};function d(t){var r;let i=n.findTrackedSession(),a=i?(0,w.nu)(i,e):void 0;if(!(void 0!==a&&(a!==w.$S.OFF||t?.force))){s=1;return}if(2===(r=s)||3===r)return;s=2;let o=t&&t.force&&a===w.$S.OFF||!1;u(o).catch(C.$y),o&&n.updateSessionState({forcedReplay:"1"})}function p(){3===s&&o?.(),s=0}return{start:d,stop:p,getSessionReplayLink:()=>(function(e,t,n,r){let i=t.findTrackedSession(),a=i?(0,w.nu)(i,e)===w.$S.OFF?"incorrect-session-plan":r?void 0:"replay-not-started":"rum-not-tracked",o=n.findView();return(0,w.Gm)(e,{viewContext:o,errorType:a,session:i})})(e,n,r,0!==s),isRecording:()=>3===s}}(r,e,i,a,function(){return!u&&(s??=y(r,"Datadog Session Replay",()=>t.stop()))&&(u=o(s,T.C.REPLAY)),u},c),n(r)&&t.start()},isRecording:()=>3===g.status&&t.isRecording(),getReplayStats:e=>3===g.status?(0,b.MA)(e):void 0}}(),L=(0,w._r)(j,{onRumStart:function(e,t,n,i,a,o){let s;let l=i.findTrackedSession();if(!l||((0,A.xT)()?!(0,A.ke)(A.BP.PROFILES):!(0,M.HR)(l.id,(0,M.HQ)(n.sessionSampleRate,n.profilingSampleRate))))return;let c=(s={status:"starting"},t.assembleEventDefaults.register(({eventType:e})=>e!==w.D$.VIEW&&e!==w.D$.LONG_TASK&&e!==w.D$.ACTION&&e!==w.D$.VITAL?O.kb:{type:e,_dd:{profiling:s}}),{get:()=>s,set:e=>{s=e}});if(!(0,d.C)(N)()){c.set({status:"error",error_reason:"not-supported-by-browser"});return}(0,d.C)(P)().then(t=>{if(!t){c.set({status:"error",error_reason:"failed-to-lazy-load"});return}(r=t(n,e,i,c,o,a,void 0)).start()}).catch(C.$y)},stop:()=>{r?.stop()}},{startDeflateWorker:y,createDeflateEncoder:o,sdkName:"rum"});(0,$.y)(R.globalObject,"DD_RUM",L)},31009:function(e,t,n){"use strict";n.d(t,{Bi:function(){return i},C_:function(){return a},kb:function(){return o}});var r=n(80516);function i(){let e=[];return{register:t=>(e.push(t),{unregister(){e=e.filter(e=>e!==t)}}),trigger(t){let n=[];for(let r of e){let e=r(t);if("DISCARDED"===e)return a;"SKIPPED"!==e&&n.push(e)}return(0,r.$e)(...n)}}}let a="DISCARDED",o="SKIPPED"},1602:function(e,t,n){"use strict";let r;n.d(t,{$y:function(){return c},L6:function(){return l},P_:function(){return u},zk:function(){return s}});var i=n(31627),a=n(32036);let o=function(e,t){function n(e){return function(...t){return r(e,this,t)}}function r(e,t,n){try{return e.apply(t,n)}catch(e){i(e)}}function i(n){let r=t=>{(0,a.K)()&&e.error("[MONITOR]",t)};r(n);try{t(n)}catch(e){r(e)}}return{monitored:function(e,t,r){r.value=n(r.value)},monitor:n,callMonitored:r,monitorError:i}}((0,i.fT)("Datadog SDK:"),e=>r?.(e)),s=o.monitor,l=o.callMonitored,c=o.monitorError;function u(e){return!r&&(r=e,!0)}},73987:function(e,t,n){"use strict";let r;n.d(t,{$I:function(){return h},DY:function(){return g},MN:function(){return b},P5:function(){return s},Pv:function(){return w},U:function(){return _},WK:function(){return p},WT:function(){return i},_J:function(){return u},_q:function(){return f},cQ:function(){return m},dV:function(){return o},dg:function(){return d},lO:function(){return y},m6:function(){return l},n$:function(){return c},yR:function(){return a},zj:function(){return v}});let i=1e3,a=6e4,o=36e5,s=31536e6;function l(){return new Date().getTime()}function c(){return l()}function u(e,t){return t-e}function d(e){return"number"!=typeof e?e:Math.round(1e6*e)}function p(e,t){return e+t}function f(){return performance.now()}function h(){return{relative:f(),timeStamp:c()}}function m(){return{relative:0,timeStamp:_()}}function g(e){return{relative:e,timeStamp:function(e){let t=l()-performance.now();return t>_()?Math.round(t+e):Math.round(_()+e)}(e)}}function y(e){return{relative:v(e),timeStamp:e}}function v(e){return e-_()}function b(e){return e<s}function w(){return Math.round(l()-(_()+performance.now()))}function _(){return void 0===r&&(r=performance.timing?.navigationStart??performance.timeOrigin),r}},70269:function(e,t,n){"use strict";n.d(t,{Ez:function(){return o},ji:function(){return s},lp:function(){return l}});var r=n(39187),i=n(73987),a=n(25776);function o(e,t,n){return{build:(r,a)=>l({proxy:e.proxy,site:e.site,path:`/api/v2/${t}`,parameters:function({clientToken:e,source:t="browser"},n,r,{retry:a,encoding:o},s=[]){let l=[`ddsource=${t}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("7.13.0")}`,"dd-evp-origin=browser",`dd-request-id=${function e(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e)}()}`].concat(s);return o&&l.push(`dd-evp-encoding=${o}`),"rum"===n&&(l.push(`batch_time=${(0,i.n$)()}`,`_dd.api=${r}`),a&&l.push(`_dd.retry_count=${a.count}`,`_dd.retry_after=${a.lastFailureStatus}`)),l.join("&")}(e,t,r,a,n)}),trackType:t}}function s({replica:e,proxy:t,source:n},r){if(e)return o({clientToken:e.clientToken,proxy:t,source:n,site:a.D_}
463,r,"rum"===r?[`application.id=${e.applicationId}`]:void 0)}function l({proxy:e,site:t=a.D_,path:n,parameters:i="",subdomain:o}){let s=n;if(i&&(s+=`?${i}`),"string"==typeof e){let t=`${(0,r.D5)(e)}?ddforward=${encodeURIComponent(s)}`;return o&&(t+=`&ddforwardSubdomain=${o}`),t}if("function"==typeof e)return e({path:n,parameters:i,subdomain:o});let l=t.split("."),c=l.pop(),u=`browser-intake-${l.join("-")}.${c}`;return o&&(u=`${o}.${u}`),`https://${u}${s}`}},25776:function(e,t,n){"use strict";n.d(t,{DZ:function(){return r},D_:function(){return i},Ds:function(){return a},iU:function(){return c},tx:function(){return s},y7:function(){return o}});let r="datad0g.com",i="datadoghq.com",a="datadoghq.eu",o="ddog-gov.com",s="us2.ddog-gov.com",l=["ddsource","dd-api-key","dd-request-id"];function c(e){return l.every(t=>e.includes(t))}},32036:function(e,t,n){"use strict";n.d(t,{K:function(){return a},y:function(){return i}});let r=!1;function i(e){r=e}function a(){return r}},31627:function(e,t,n){"use strict";n.d(t,{IA:function(){return i},aA:function(){return r},fT:function(){return l},jG:function(){return o},vA:function(){return a}});let r="https://docs.datadoghq.com",i="More details:",a={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},o=console,s={log:o.log,debug:o.debug,info:o.info,warn:o.warn,error:o.error};function l(e){return{debug:s.debug.bind(o,e),log:s.log.bind(o,e),info:s.info.bind(o,e),warn:s.warn.bind(o,e),error:s.error.bind(o,e)}}},88427:function(e,t,n){"use strict";n.d(t,{globalObject:function(){return r},j:function(){return i}});let r=globalThis,i="WorkerGlobalScope"in r},80516:function(e,t,n){"use strict";n.d(t,{$e:function(){return o},I8:function(){return a}});var r=n(33972);function i(e,t,n){if(void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t.source,t.flags);if(n.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){let r=Array.isArray(e)?e:[];for(let e=0;e<t.length;++e)r[e]=i(r[e],t[e],n);return r}let a="object"===(0,r.oL)(e)?e:{};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&"__proto__"!==e&&(a[e]=i(a[e],t[e],n));return a}function a(e){return i(void 0,e,s())}function o(...e){let t;for(let n of e)null!=n&&(t=i(t,n,s()));return t}function s(){let e=new WeakSet;return{hasAlreadyBeenSeen(t){let n=e.has(t);return n||e.add(t),n}}}},33972:function(e,t,n){"use strict";function r(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function i(e){return"object"===r(e)}function a(e){return"number"==typeof e&&e>=0&&e<=100}function o(e){return"string"==typeof e||e instanceof RegExp||"function"==typeof e}n.d(t,{o:function(){return o},oL:function(){return r},sK:function(){return i},zz:function(){return a}})},39187:function(e,t,n){"use strict";let r,i;n.d(t,{D5:function(){return o},Q2:function(){return c},jv:function(){return s},ye:function(){return l}});var a=n(88427);function o(e){return c(e,a.globalObject.document?.baseURI??a.globalObject.location?.href).href}function s(e){try{return!!c(e)}catch{return!1}}function l(e){let t=c(e).pathname;return"/"===t[0]?t:`/${t}`}function c(e,t){let n=function(){if(!r){let e=!1;try{e="http://a/b"===new a.globalObject.URL("b","http://a").href}catch{}r=e?a.globalObject.URL:function(){if(!i){let e,t;try{(e=document.createElement("iframe")).style.display="none",document.body.appendChild(e),t=e.contentWindow??a.globalObject}catch{t=a.globalObject}i={URL:t.URL},e?.remove()}return i}().URL}return r}();try{return void 0!==t?new n(e,t):new n(e)}catch(e){throw Error(`Failed to construct URL: ${String(e)}`)}}},32879:function(e,t,n){"use strict";n.d(t,{x7:function(){return Y},Me:function(){return Z},oo:function(){return J},RR:function(){return W},Cp:function(){return H},dr:function(){return K},cv:function(){return V},uY:function(){return q},dp:function(){return G}});let r=["top","right","bottom","left"],i=Math.min,a=Math.max,o=Math.round,s=Math.floor,l=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(p(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>u[e])}function v(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function b(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function w(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function _(e,t,n){let r,{reference:i,floating:a}=e,o=g(t),s=h(g(t)),l=m(s),c=p(t),u="y"===o,d=i.x+i.width/2-a.width/2,y=i.y+i.height/2-a.height/2,v=i[l]/2-a[l]/2;switch(c){case"top":r={x:d,y:i.y-a.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:y};break;case"left":r={x:i.x-a.width,y:y};break;default:r={x:i.x,y:i.y}}switch(f(t)){case"start":r[s]-=v*(n&&u?-1:1);break;case"end":r[s]+=v*(n&&u?-1:1)}return r}let x=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}
463=n,s=a.filter(Boolean),l=await (null==o.isRTL?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=_(c,r,l),p=r,f={},h=0;for(let n=0;n<s.length;n++){let{name:a,fn:m}=s[n],{x:g,y:y,data:v,reset:b}=await m({x:u,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:f,rects:c,platform:o,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,f={...f,[a]:{...f[a],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:u,y:d}=_(c,p,l)),n=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:f}};async function E(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:h=0}=d(t,e),m=b(h),g=s[f?"floating"===p?"reference":"floating":p],y=w(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===p?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,_=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),x=await (null==a.isElement?void 0:a.isElement(_))&&await (null==a.getScale?void 0:a.getScale(_))||{x:1,y:1},E=w(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:_,strategy:l}):v);return{top:(y.top-E.top+m.top)/x.y,bottom:(E.bottom-y.bottom+m.bottom)/x.y,left:(y.left-E.left+m.left)/x.x,right:(E.right-y.right+m.right)/x.x}}function S(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function k(e){return r.some(t=>e[t]>=0)}async function C(e,t){let{placement:n,platform:r,elements:i}=e,a=await (null==r.isRTL?void 0:r.isRTL(i.floating)),o=p(n),s=f(n),l="y"===g(n),c=["left","top"].includes(o)?-1:1,u=a&&l?-1:1,h=d(t,e),{mainAxis:m,crossAxis:y,alignmentAxis:v}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"==typeof v&&(y="end"===s?-1*v:v),l?{x:y*u,y:m*c}:{x:m*c,y:y*u}}var I=n(92602);function A(e){let t=(0,I.Dx)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=(0,I.Re)(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=o(n)!==a||o(r)!==s;return l&&(n=a,r=s),{width:n,height:r,$:l}}function T(e){return(0,I.kK)(e)?e:e.contextElement}function R(e){let t=T(e);if(!(0,I.Re)(t))return l(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=A(t),s=(a?o(n.width):n.width)/r,c=(a?o(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),c&&Number.isFinite(c)||(c=1),{x:s,y:c}}let N=l(0);function O(e){let t=(0,I.Jj)(e);return(0,I.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:N}function P(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),o=T(e),s=l(1);t&&(r?(0,I.kK)(r)&&(s=R(r)):s=R(e));let c=(void 0===(i=n)&&(i=!1),r&&(!i||r===(0,I.Jj)(o))&&i)?O(o):l(0),u=(a.left+c.x)/s.x,d=(a.top+c.y)/s.y,p=a.width/s.x,f=a.height/s.y;if(o){let e=(0,I.Jj)(o),t=r&&(0,I.kK)(r)?(0,I.Jj)(r):r,n=e,i=(0,I.wK)(n);for(;i&&r&&t!==n;){let e=R(i),t=i.getBoundingClientRect(),r=(0,I.Dx)(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,d*=e.y,p*=e.x,f*=e.y,u+=a,d+=o,n=(0,I.Jj)(i),i=(0,I.wK)(n)}}return w({width:p,height:f,x:u,y:d})}function D(e,t){let n=(0,I.Lw)(e).scrollLeft;return t?t.left+n:P((0,I.tF)(e)).left+n}function M(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:D(e,r)),y:r.top+t.scrollTop}}function $(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=(0,I.Jj)(e),r=(0,I.tF)(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=(0,I.Pf)();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=(0,I.tF)(e),n=(0,I.Lw)(e),r=e.ownerDocument.body,i=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+D(e),l=-n.scrollTop;return"rtl"===(0,I.Dx)(r).direction&&(s+=a(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}((0,I.tF)(e));else if((0,I.kK)(t))r=function(e,t){let n=P(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=(0,I.Re)(e)?R(e):l(1),o=e.clientWidth*a.x;return{width:o,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n);else{let n=O(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return w(r)}function j(e){return"static"===(0,I.Dx)(e).position}function L(e,t){if(!(0,I.Re)(e)||"fixed"===(0,I.Dx)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,I.tF)(e)===n&&(n=n.ownerDocument.body),n}function F(e,t){let n=(0,I.Jj)(e);if((0,I.tR)(e))return n;if(!(0,I.Re)(e)){let t=(0,I.Ow)(e);for(;t&&!(0,I.Py)(t);){if((0,I.kK)(t)&&!j(t))return t;t=(0,I.Ow)(t)}return n}let r=L(e,t);for(;r&&(0,I.Ze)(r)&&j(r);)r=L(r,t);return r&&(0,I.Py)(r)&&j(r)&&!(0,I.hT)(r)?n:r||(0,I.gQ)(e)||n}let B=async function(e){let t=this.getOffsetParent||F,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=(0,I.Re)(t),i=(0,I.tF)(t),a="fixed"===n,o=P(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=l(0);if(r||!r&&!a){if(("body"!==(0,I.wk)(t)||(0,I.ao)(i))&&(s=(0,I.Lw)(t)),r){let e=P(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=D(i))}let u=!i||r||a?l(0):M(i,s);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},U={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a="fixed"===i,o=(0,I.tF)(r),s=!!t&&(0,I.tR)(t.floating);if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},u=l(1),d=l(0),p=(0,I.Re)(r);if((p||!p&&!a)&&(("body"!==(0,I.wk)(r)||(0,I.ao)(o))&&(c=(0,I.Lw)(r)),(0,I.Re)(r))){let e=P(r);u=R(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let f=!o||p||a?l(0):M(o,c,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-c.scrollTop*u.y+d.y+f.y}},getDocumentElement:I.tF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,s=[..."clippingAncestors"===n?(0,I.tR)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,I.Kx)(e,[],!1).filter(e=>(0,I.kK)(e)&&"body"!==(0,I.wk)(e)),i=null,a="fixed"===(0,I.Dx)(e).position,o=a?(0,I.Ow)(e):e;for(;(0,I.kK)(o)&&!(0,I.Py)(o);){let t=(0,I.Dx)(o),n=(0,I.hT)(o);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||(0,I.ao)(o)&&!n&&function e(t,n){let r=(0,I.Ow)(t);return!(r===n||!(0,I.kK)(r)||(0,I.Py)(r))&&("fixed"===(0,I.Dx)(r).position||e(r,n))}(e,o))?r=r.filter(e=>e!==o):i=t,o=(0,I.Ow)(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=s[0],c=s.reduce((e,n)=>{let r=$(t,n,o);return e.top=a(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=a(r.left,e.left),e},$(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:F,getElementRects:B,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=A(e);return{width:t,height:n}},getScale:R,isElement:I.kK,isRTL:function(e){return"rtl"===(0,I.Dx)(e).direction}};function z(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Z(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:c=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:p=!1}
463=r,f=T(e),h=l||c?[...f?(0,I.Kx)(f):[],...(0,I.Kx)(t)]:[];h.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});let m=f&&d?function(e,t){let n,r=null,o=(0,I.tF)(e);function l(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function c(u,d){void 0===u&&(u=!1),void 0===d&&(d=1),l();let p=e.getBoundingClientRect(),{left:f,top:h,width:m,height:g}=p;if(u||t(),!m||!g)return;let y=s(h),v=s(o.clientWidth-(f+m)),b={rootMargin:-y+"px "+-v+"px "+-s(o.clientHeight-(h+g))+"px "+-s(f)+"px",threshold:a(0,i(1,d))||1},w=!0;function _(t){let r=t[0].intersectionRatio;if(r!==d){if(!w)return c();r?c(!1,r):n=setTimeout(()=>{c(!1,1e-7)},1e3)}1!==r||z(p,e.getBoundingClientRect())||c(),w=!1}try{r=new IntersectionObserver(_,{...b,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(_,b)}r.observe(e)}(!0),l}(f,n):null,g=-1,y=null;u&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),f&&!p&&y.observe(f),y.observe(t));let v=p?P(e):null;return p&&function t(){let r=P(e);v&&!z(v,r)&&n(),v=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,p&&cancelAnimationFrame(o)}}let V=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:a,placement:o,middlewareData:s}=t,l=await C(t,e);return o===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},q=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=d(e,t),f={x:n,y:r},m=await E(t,u),y=g(p(o)),v=h(y),b=f[v],w=f[y];if(s){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=b+m[e],r=b-m[t];b=a(n,i(b,r))}if(l){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+m[e],r=w-m[t];w=a(n,i(w,r))}let _=c.fn({...t,[v]:b,[y]:w});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[v]:s,[y]:l}}}}}},W=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,a,o;let{placement:s,middlewareData:l,rects:c,initialPlacement:u,platform:b,elements:w}=t,{mainAxis:_=!0,crossAxis:x=!0,fallbackPlacements:S,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:I=!0,...A}=d(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let T=p(s),R=g(u),N=p(u)===u,O=await (null==b.isRTL?void 0:b.isRTL(w.floating)),P=S||(N||!I?[v(u)]:function(e){let t=v(e);return[y(e),t,y(t)]}(u)),D="none"!==C;!S&&D&&P.push(...function(e,t,n,r){let i=f(e),a=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===n,r);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(y)))),a}(u,I,C,O));let M=[u,...P],$=await E(t,A),j=[],L=(null==(r=l.flip)?void 0:r.overflows)||[];if(_&&j.push($[T]),x){let e=function(e,t,n){void 0===n&&(n=!1);let r=f(e),i=h(g(e)),a=m(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=v(o)),[o,v(o)]}(s,c,O);j.push($[e[0]],$[e[1]])}if(L=[...L,{placement:s,overflows:j}],!j.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=M[e];if(t)return{data:{index:e,overflows:L},reset:{placement:t}};let n=null==(a=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(k){case"bestFit":{let e=null==(o=L.filter(e=>{if(D){let t=g(e.placement);return t===R||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=u}if(s!==n)return{reset:{placement:n}}}return{}}}},G=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,s;let{placement:l,rects:c,platform:u,elements:h}=t,{apply:m=()=>{},...y}=d(e,t),v=await E(t,y),b=p(l),w=f(l),_="y"===g(l),{width:x,height:S}=c.floating;"top"===b||"bottom"===b?(o=b,s=w===(await (null==u.isRTL?void 0:u.isRTL(h.floating))?"start":"end")?"left":"right"):(s=b,o="end"===w?"top":"bottom");let k=S-v.top-v.bottom,C=x-v.left-v.right,I=i(S-v[o],k),A=i(x-v[s],C),T=!t.middlewareData.shift,R=I,N=A;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(N=C),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(R=k),T&&!w){let e=a(v.left,0),t=a(v.right,0),n=a(v.top,0),r=a(v.bottom,0);_?N=x-2*(0!==e||0!==t?e+t:a(v.left,v.right)):R=S-2*(0!==n||0!==r?n+r:a(v.top,v.bottom))}await m({...t,availableWidth:N,availableHeight:R});let O=await u.getDimensions(h.floating);return x!==O.width||S!==O.height?{reset:{rects:!0}}:{}}}},H=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=d(e,t);switch(r){case"referenceHidden":{let e=S(await E(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:k(e)}}}case"escaped":{let e=S(await E(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:k(e)}}}default:return{}}}}},Y=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:s,platform:l,elements:c,middlewareData:u}=t,{element:p,padding:y=0}=d(e,t)||{};if(null==p)return{};let v=b(y),w={x:n,y:r},_=h(g(o)),x=m(_),E=await l.getDimensions(p),S="y"===_,k=S?"clientHeight":"clientWidth",C=s.reference[x]+s.reference[_]-w[_]-s.floating[x],I=w[_]-s.reference[_],A=await (null==l.getOffsetParent?void 0:l.getOffsetParent(p)),T=A?A[k]:0;T&&await (null==l.isElement?void 0:l.isElement(A))||(T=c.floating[k]||s.floating[x]);let R=T/2-E[x]/2-1,N=i(v[S?"top":"left"],R),O=i(v[S?"bottom":"right"],R),P=T-E[x]-O,D=T/2-E[x]/2+(C/2-I/2),M=a(N,i(D,P)),$=!u.arrow&&null!=f(o)&&D!==M&&s.reference[x]/2-(D<N?N:O)-E[x]/2<0,j=$?D<N?D-N:D-P:0;return{[_]:w[_]+j,data:{[_]:M,centerOffset:D-M-j,...$&&{alignmentOffset:j}},reset:$}}}),K=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=d(e,t),u={x:n,y:r},f=g(i),m=h(f),y=u[m],v=u[f],b=d(s,t),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){let e="y"===m?"height":"width",t=a.reference[m]-a.floating[e]+w.mainAxis,n=a.reference[m]+a.reference[e]-w.mainAxis;y<t?y=t:y>n&&(y=n)}if(c){var _,x;let e="y"===m?"width":"height",t=["top","left"].includes(p(i)),n=a.reference[f]-a.floating[e]+(t&&(null==(_=o.offset)?void 0:_[f])||0)+(t?0:w.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:(null==(x=o.offset)?void 0:x[f])||0)-(t?w.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[m]:y,[f]:v}}}}
463,J=(e,t,n)=>{let r=new Map,i={platform:U,...n},a={...i.platform,_c:r};return x(e,t,{...i,platform:a})}},41039:function(e,t,n){"use strict";n.d(t,{Cp:function(){return v},RR:function(){return g},YF:function(){return d},cv:function(){return f},dp:function(){return y},dr:function(){return m},uY:function(){return h},x7:function(){return b}});var r=n(32879),i=n(75271),a=n(30967),o="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function s(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!s(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!s(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){let n=l(e);return Math.round(t*n)/n}function u(e){let t=i.useRef(e);return o(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:p,elements:{reference:f,floating:h}={},transform:m=!0,whileElementsMounted:g,open:y}=e,[v,b]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,_]=i.useState(d);s(w,d)||_(d);let[x,E]=i.useState(null),[S,k]=i.useState(null),C=i.useCallback(e=>{e!==R.current&&(R.current=e,E(e))},[]),I=i.useCallback(e=>{e!==N.current&&(N.current=e,k(e))},[]),A=f||x,T=h||S,R=i.useRef(null),N=i.useRef(null),O=i.useRef(v),P=null!=g,D=u(g),M=u(p),$=u(y),j=i.useCallback(()=>{if(!R.current||!N.current)return;let e={placement:t,strategy:n,middleware:w};M.current&&(e.platform=M.current),(0,r.oo)(R.current,N.current,e).then(e=>{let t={...e,isPositioned:!1!==$.current};L.current&&!s(O.current,t)&&(O.current=t,a.flushSync(()=>{b(t)}))})},[w,t,n,M,$]);o(()=>{!1===y&&O.current.isPositioned&&(O.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[y]);let L=i.useRef(!1);o(()=>(L.current=!0,()=>{L.current=!1}),[]),o(()=>{if(A&&(R.current=A),T&&(N.current=T),A&&T){if(D.current)return D.current(A,T,j);j()}},[A,T,j,D,P]);let F=i.useMemo(()=>({reference:R,floating:N,setReference:C,setFloating:I}),[C,I]),B=i.useMemo(()=>({reference:A,floating:T}),[A,T]),U=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!B.floating)return e;let t=c(B.floating,v.x),r=c(B.floating,v.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...l(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,m,B.floating,v.x,v.y]);return i.useMemo(()=>({...v,update:j,refs:F,elements:B,floatingStyles:U}),[v,j,F,B,U])}let p=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.x7)({element:n.current,padding:i}).fn(t):{}:n?(0,r.x7)({element:n,padding:i}).fn(t):{}}}),f=(e,t)=>({...(0,r.cv)(e),options:[e,t]}),h=(e,t)=>({...(0,r.uY)(e),options:[e,t]}),m=(e,t)=>({...(0,r.dr)(e),options:[e,t]}),g=(e,t)=>({...(0,r.RR)(e),options:[e,t]}),y=(e,t)=>({...(0,r.dp)(e),options:[e,t]}),v=(e,t)=>
463({...(0,r.Cp)(e),options:[e,t]}),b=(e,t)=>({...p(e),options:[e,t]})},92602:function(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function i(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function a(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s(e){return!!r()&&(e instanceof Node||e instanceof a(e).Node)}function l(e){return!!r()&&(e instanceof Element||e instanceof a(e).Element)}function c(e){return!!r()&&(e instanceof HTMLElement||e instanceof a(e).HTMLElement)}function u(e){return!!r()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof a(e).ShadowRoot)}function d(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function p(e){return["table","td","th"].includes(i(e))}function f(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function h(e){let t=g(),n=l(e)?v(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function m(e){let t=w(e);for(;c(t)&&!y(t);){if(h(t))return t;if(f(t))break;t=w(t)}return null}function g(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function y(e){return["html","body","#document"].includes(i(e))}function v(e){return a(e).getComputedStyle(e)}function b(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function w(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||u(e)&&e.host||o(e);return u(t)?t.host:t}function _(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}n.d(t,{Dx:function(){return v},Jj:function(){return a},Kx:function(){return function e(t,n,r){var i;void 0===n&&(n=[]),void 0===r&&(r=!0);let o=function e(t){let n=w(t);return y(n)?t.ownerDocument?t.ownerDocument.body:t.body:c(n)&&d(n)?n:e(n)}(t),s=o===(null==(i=t.ownerDocument)?void 0:i.body),l=a(o);if(s){let t=_(l);return n.concat(l,l.visualViewport||[],d(o)?o:[],t&&r?e(t):[])}return n.concat(o,e(o,[],r))}},Lw:function(){return b},Ow:function(){return w},Pf:function(){return g},Py:function(){return y},Re:function(){return c},Ze:function(){return p},ao:function(){return d},gQ:function(){return m},hT:function(){return h},kK:function(){return l},tF:function(){return o},tR:function(){return f},wK:function(){return _},wk:function(){return i}})},50416:function(e,t,n){"use strict";n.d(t,{F:function(){return c}});var r=n(25282);let i=(e,t,n)=>{if(e&&"reportValidity"in e){let i=(0,r.U2)(n,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},a=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?i(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>i(t,n,e))}},o=(e,t)=>{t.shouldUseNativeValidation&&a(e,t);let n={};for(let i in e){let a=(0,r.U2)(t.fields,i),o=Object.assign(e[i]||{},{ref:a&&a.ref});if(s(t.names||Object.keys(e),i)){let e=Object.assign({},(0,r.U2)(n,i));(0,r.t8)(e,"root",o),(0,r.t8)(n,i,e)}else(0,r.t8)(n,i,o)}return n},s=(e,t)=>{let n=l(t);return e.some(e=>l(e).match(`^${n}\\.\\d+`))};function l(e){return e.replace(/\]|\[/g,"")}function c(e,t,n){return void 0===n&&(n={}),function(i,s,l){try{return Promise.resolve(function(r,o){try{var s=Promise.resolve(e["sync"===n.mode?"parse":"parseAsync"](i,t)).then(function(e){return l.shouldUseNativeValidation&&a({},l),{errors:{},values:n.raw?Object.assign({},i):e}})}catch(e){return o(e)}return s&&s.then?s.then(void 0,o):s}(0,function(e){if(Array.isArray(null==e?void 0:e.errors))return{values:{},errors:o(function(e,t){for(var n={};e.length;){var i=e[0],a=i.code,o=i.message,s=i.path.join(".");
463if(!n[s]){if("unionErrors"in i){var l=i.unionErrors[0].errors[0];n[s]={message:l.message,type:l.code}}else n[s]={message:o,type:a}}if("unionErrors"in i&&i.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=n[s].types,u=c&&c[i.code];n[s]=(0,r.KN)(s,t,n,a,u?[].concat(u,i.message):i.message)}e.shift()}return n}(e.errors,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw e}))}catch(e){return Promise.reject(e)}}}},29161:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{M:function(){return r}})},99622:function(e,t,n){"use strict";n.d(t,{Mj:function(){return o}});var r=Object.defineProperty,i=(e,t)=>r(e,"name",{value:t,configurable:!0}),a=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function o(e,t,{checkForDefaultPrevented:n=!0}={}){return i(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function s(e){if(!a)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function l(e){return"IFRAME"===e.tagName}i(o,"composeEventHandlers"),i(function(e){if(!a)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),i(s,"getOwnerDocument"),i(function e(t,n=!1){let{activeElement:r}=s(t);if(!r?.nodeName)return null;if(l(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=s(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),i(l,"isFrame")},5837:function(e,t,n){"use strict";n.d(t,{B:function(){return u}});var r=n(75271),i=n(43589),a=n(71507),o=n(61828),s=n(52676),l=Object.defineProperty,c=(e,t)=>l(e,"name",{value:t,configurable:!0});function u(e){let t=e+"CollectionProvider",[n,l]=(0,i.b)(t),[u,d]=n(t,{collectionRef:{current:null},itemMap:new Map}),p=c(e=>{let{scope:t,children:n}=e,i=r.useRef(null),a=r.useRef(new Map).current;return(0,s.jsx)(u,{scope:t,itemMap:a,collectionRef:i,children:n})},"CollectionProvider");p.displayName=t;let f=e+"CollectionSlot",h=(0,o.Z8)(f),m=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=d(f,n),o=(0,a.e)(t,i.collectionRef);return(0,s.jsx)(h,{ref:o,children:r})});m.displayName=f;let g=e+"CollectionItemSlot",y="data-radix-collection-item",v=(0,o.Z8)(g),b=r.forwardRef((e,t)=>{let{scope:n,children:i,...o}=e,l=r.useRef(null),c=(0,a.e)(t,l),u=d(g,n);return r.useEffect(()=>(u.itemMap.set(l,{ref:l,...o}),()=>void u.itemMap.delete(l))),(0,s.jsx)(v,{[y]:"",ref:c,children:i})});function w(t){let n=d(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${y}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return b.displayName=g,c(w,"useCollection"),[{Provider:p,Slot:m,ItemSlot:b},w,l]}c(u,"createCollection");var d=new WeakMap,p=class e extends Map{static{c(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],d.set(this,!0)}set(e,t){return d.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r;let i=this.has(t),a=this.#e.length,o=m(e),s=o>=0?o:a+o,l=s<0||s>=a?-1:s;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,n),this;let c=this.size+(i?0:1);o<0&&s++;let u=[...this.#e],d=!1;for(let e=s;e<c;e++)if(s===e){let a=u[e];u[e]===t&&(a=u[e+1]),i&&this.delete(t),r=this.get(a),this.set(t,n)}else{d||u[e-1]!==t||(d=!0);let n=u[d?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=f(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=f(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return f(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
463}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=0===r&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&1===e.length?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function f(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=h(e,t);return -1===n?void 0:e[n]}function h(e,t){let n=e.length,r=m(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}function m(e){return e!=e||0===e?0:Math.trunc(e)}function g(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function y(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function v(e,t){return e[1].element&&t[1].element?y(e[1].element,t[1].element)?-1:1:0}function b(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type){e();return}})}c(f,"at"),c(h,"toSafeIndex"),c(m,"toSafeInteger"),c(function(e){let t=e+"CollectionProvider",[n,l]=(0,i.b)(t),[u,d]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new p,setItemMap:c(()=>void 0,"setItemMap")}),f=c(({state:e,...t})=>e?(0,s.jsx)(m,{...t,state:e}):(0,s.jsx)(h,{...t}),"CollectionProvider");f.displayName=t;let h=c(e=>{let t=k();return(0,s.jsx)(m,{...e,state:t})},"CollectionInit");h.displayName=t+"Init";let m=c(e=>{let{scope:t,children:n,state:i}=e,o=r.useRef(null),[l,c]=r.useState(null),d=(0,a.e)(o,c),[p,f]=i;return r.useEffect(()=>{if(!l)return;let e=b(()=>{});return e.observe(l,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[l]),(0,s.jsx)(u,{scope:t,itemMap:p,setItemMap:f,collectionRef:d,collectionRefObject:o,collectionElement:l,children:n})},"CollectionProviderImpl");m.displayName=t+"Impl";let y=e+"CollectionSlot",w=(0,o.Z8)(y),_=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=d(y,n),o=(0,a.e)(t,i.collectionRef);return(0,s.jsx)(w,{ref:o,children:r})});_.displayName=y;let x=e+"CollectionItemSlot",E=(0,o.Z8)(x),S=r.forwardRef((e,t)=>{let{scope:n,children:i,...o}=e,l=r.useRef(null),[c,u]=r.useState(null),f=(0,a.e)(t,l,u),{setItemMap:h}=d(x,n),m=r.useRef(o);g(m.current,o)||(m.current=o);let y=m.current;return r.useEffect(()=>(h(e=>c?e.has(c)?e.set(c,{...y,element:c}).toSorted(v):(e.set(c,{...y,element:c}),e.toSorted(v)):e),()=>{h(e=>c&&e.has(c)?(e.delete(c),new p(e)):e)}),[c,y,h]),(0,s.jsx)(E,{"data-radix-collection-item":"",ref:f,children:i})});function k(){return r.useState(new p)}function C(t){let{itemMap:n}=d(e+"CollectionConsumer",t);return n}return S.displayName=x,c(k,"useInitCollection"),c(C,"useCollection"),[{Provider:f,Slot:_,ItemSlot:S},{createCollectionScope:l,useCollection:C,useInitCollection:k}]},"createCollection"),c(g,"shallowEqual"),c(y,"isElementPreceding"),c(v,"sortByDocumentPosition"),c(b,"getChildListObserver")},49204:function(e,t,n){"use strict";n.d(t,{F:function(){return a},e:function(){return o}});var r=n(75271);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function o(...e){return r.useCallback(a(...e),e)}},71507:function(e,t,n){"use strict";n.d(t,{e:function(){return l}});var r=n(75271),i=Object.defineProperty,a=(e,t)=>i(e,"name",{value:t,configurable:!0});function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function l(...e){return r.useCallback(s(...e),e)}a(o,"setRef"),a(s,"composeRefs"),a(l,"useComposedRefs")},42478:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(75271),i=n(52676);function a(e,t=[]){let n=[],a=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return a.scopeName=e,[function(t,a){let o=r.createContext(a),s=n.length;n=[...n,a];let l=t=>{let{scope:n,children:a,...l}=t,c=n?.[e]?.[s]||o,u=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(c.Provider,{value:u,children:a})};return l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e]?.[s]||o,c=r.useContext(l);if(c)return c;if(void 0!==a)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(a,...t)]}},43589:function(e,t,n){"use strict";n.d(t,{b:function(){return s}});var r=n(75271),i=n(52676),a=Object.defineProperty,o=(e,t)=>a(e,"name",{value:t,configurable:!0});function s(e,t=[]){let n=[];function a(t,a){let s=r.createContext(a);s.displayName=t+"Context";let l=n.length;n=[...n,a];let c=o(t=>{let{scope:n,children:a,...o}=t,c=n?.[e]?.[l]||s,u=r.useMemo(()=>o,Object.values(o));return(0,i.jsx)(c.Provider,{value:u,children:a})},"Provider");function u(n,i,o={}){let{optional:c=!1}
463=o,u=i?.[e]?.[l]||s,d=r.useContext(u);if(d)return d;if(void 0!==a)return a;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return c.displayName=t+"Provider",o(u,"useContext"),[c,u]}o(a,"createContext");let s=o(()=>{let t=n.map(e=>r.createContext(e));return o(function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])},"useScope")},"createScope");return s.scopeName=e,[a,l(s,...t)]}function l(...e){let t=e[0];if(1===e.length)return t;let n=o(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return o(function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}o(function(e,t){let n=r.createContext(t);n.displayName=e+"Context";let a=o(e=>{let{children:t,...a}=e,o=r.useMemo(()=>a,Object.values(a));return(0,i.jsx)(n.Provider,{value:o,children:t})},"Provider");function s(i,a={}){let{optional:o=!1}=a,s=r.useContext(n);if(s)return s;if(void 0!==t)return t;if(!o)throw Error(`\`${i}\` must be used within \`${e}\``)}return a.displayName=e+"Provider",o(s,"useContext"),[a,s]},"createContext"),o(s,"createContextScope"),o(l,"composeContextScopes")},41850:function(e,t,n){"use strict";let r;n.d(t,{x8:function(){return eR},VY:function(){return eI},dk:function(){return eT},aV:function(){return eC},h_:function(){return ek},fC:function(){return eE},Dx:function(){return eA},xz:function(){return eS}});var i,a=n(75271),o=n.t(a,2);function s(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function c(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():l(e[t],null)}}}}function u(...e){return a.useCallback(c(...e),e)}var d=n(52676),p=globalThis?.document?a.useLayoutEffect:()=>{},f=o[" useId ".trim().toString()]||(()=>void 0),h=0;function m(e){let[t,n]=a.useState(f());return p(()=>{e||n(e=>e??String(h++))},[e]),e||(t?`radix-${t}`:"")}var g=o[" useInsertionEffect ".trim().toString()]||p;Symbol("RADIX:SYNC_STATE");var y=n(30967);function v(e){let t=function(e){let t=a.forwardRef((e,t)=>{let{children:n,...r}=e;if(a.isValidElement(n)){let e,i;let o=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,s=function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(s.ref=t?c(t,o):o),a.cloneElement(n,s)}return a.Children.count(n)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=a.forwardRef((e,n)=>{let{children:r,...i}=e,o=a.Children.toArray(r),s=o.find(w);if(s){let e=s.props.children,r=o.map(t=>t!==s?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,d.jsx)(t,{...i,ref:n,children:a.isValidElement(e)?a.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var b=Symbol("radix.slottable");function w(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===b}var _=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=v(`Primitive.${t}`),r=a.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function x(e){let t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...e)=>t.current?.(...e),[])}var E="dismissableLayer.update",S=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),k=a.forwardRef((e,t)=>
463{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:c,onDismiss:p,...f}=e,h=a.useContext(S),[m,g]=a.useState(null),y=m?.ownerDocument??globalThis?.document,[,v]=a.useState({}),b=u(t,e=>g(e)),w=Array.from(h.layers),[k]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),A=w.indexOf(k),T=m?w.indexOf(m):-1,R=h.layersWithOutsidePointerEventsDisabled.size>0,N=T>=A,O=function(e,t=globalThis?.document){let n=x(e),r=a.useRef(!1),i=a.useRef(()=>{});return a.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){I("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...h.branches].some(e=>e.contains(t));!N||n||(o?.(e),c?.(e),e.defaultPrevented||p?.())},y),P=function(e,t=globalThis?.document){let n=x(e),r=a.useRef(!1);return a.useEffect(()=>{let e=e=>{e.target&&!r.current&&I("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...h.branches].some(e=>e.contains(t))||(l?.(e),c?.(e),e.defaultPrevented||p?.())},y);return!function(e,t=globalThis?.document){let n=x(e);a.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{T!==h.layers.size-1||(r?.(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))},y),a.useEffect(()=>{if(m)return n&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(i=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),C(),()=>{n&&1===h.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=i)}},[m,y,n,h]),a.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),C())},[m,h]),a.useEffect(()=>{let e=()=>v({});return document.addEventListener(E,e),()=>document.removeEventListener(E,e)},[]),(0,d.jsx)(_.div,{...f,ref:b,style:{pointerEvents:R?N?"auto":"none":void 0,...e.style},onFocusCapture:s(e.onFocusCapture,P.onFocusCapture),onBlurCapture:s(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:s(e.onPointerDownCapture,O.onPointerDownCapture)})});function C(){let e=new CustomEvent(E);document.dispatchEvent(e)}function I(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&y.flushSync(()=>i.dispatchEvent(a)):i.dispatchEvent(a)}k.displayName="DismissableLayer",a.forwardRef((e,t)=>{let n=a.useContext(S),r=a.useRef(null),i=u(t,r);return a.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,d.jsx)(_.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var A="focusScope.autoFocusOnMount",T="focusScope.autoFocusOnUnmount",R={bubbles:!1,cancelable:!0},N=a.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[l,c]=a.useState(null),p=x(i),f=x(o),h=a.useRef(null),m=u(t,e=>c(e)),g=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let e=function(e){if(g.paused||!l)return;let t=e.target;l.contains(t)?h.current=t:D(h.current,{select:!0})},t=function(e){if(g.paused||!l)return;let t=e.relatedTarget;null===t||l.contains(t)||D(h.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&D(l)});return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,l,g.paused]),a.useEffect(()=>{if(l){M.add(g);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(A,R);l.addEventListener(A,p),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(D(r,{select:t}),document.activeElement!==n)return}(O(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&D(l))}return()=>{l.removeEventListener(A,p),setTimeout(()=>{let t=new CustomEvent(T,R);l.addEventListener(T,f),l.dispatchEvent(t),t.defaultPrevented||D(e??document.body,{select:!0}),l.removeEventListener(T,f),M.remove(g)},0)}}},[l,p,f,g]);let y=a.useCallback(e=>{if(!n&&!r||g.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=function(e){let t=O(e);return[P(t,e),P(t.reverse(),e)]}(t);
463r&&a?e.shiftKey||i!==a?e.shiftKey&&i===r&&(e.preventDefault(),n&&D(a,{select:!0})):(e.preventDefault(),n&&D(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,d.jsx)(_.div,{tabIndex:-1,...s,ref:m,onKeyDown:y})});function O(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function P(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function D(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}N.displayName="FocusScope";var M=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=$(r,e)).unshift(e)},remove(e){r=$(r,e),r[0]?.resume()}});function $(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var j=a.forwardRef((e,t)=>{let{container:n,...r}=e,[i,o]=a.useState(!1);p(()=>o(!0),[]);let s=n||i&&globalThis?.document?.body;return s?y.createPortal((0,d.jsx)(_.div,{...r,ref:t}),s):null});j.displayName="Portal";var L=e=>{let t,n;let{present:r,children:i}=e,o=function(e){var t,n;let[r,i]=a.useState(),o=a.useRef({}),s=a.useRef(e),l=a.useRef("none"),[c,u]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},a.useReducer((e,t)=>n[e][t]??e,t));return a.useEffect(()=>{let e=F(o.current);l.current="mounted"===c?e:"none"},[c]),p(()=>
463{let t=o.current,n=s.current;if(n!==e){let r=l.current,i=F(t);e?u("MOUNT"):"none"===i||t?.display==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),s.current=e}},[e,u]),p(()=>{if(r){let e;let t=r.ownerDocument.defaultView??window,n=n=>{let i=F(o.current).includes(n.animationName);if(n.target===r&&i&&(u("ANIMATION_END"),!s.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},i=e=>{e.target===r&&(l.current=F(o.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(e=>{e&&(o.current=getComputedStyle(e)),i(e)},[])}}(r),s="function"==typeof i?i({present:o.isPresent}):a.Children.only(i),l=u(o.ref,(t=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?s.ref:(t=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?s.props.ref:s.props.ref||s.ref);return"function"==typeof i||o.isPresent?a.cloneElement(s,{ref:l}):null};function F(e){return e?.animationName||"none"}L.displayName="Presence";var B=0;function U(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var z=n(56887),Z=n(19800),V="Dialog",[q,W]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>a.createContext(e));return function(n){let r=n?.[e]||t;return a.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=a.createContext(r),o=n.length;n=[...n,r];let s=t=>{let{scope:n,children:r,...s}=t,l=n?.[e]?.[o]||i,c=a.useMemo(()=>s,Object.values(s));return(0,d.jsx)(l.Provider,{value:c,children:r})};return s.displayName=t+"Provider",[s,function(n,s){let l=s?.[e]?.[o]||i,c=a.useContext(l);if(c)return c;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(V),[G,H]=q(V),Y=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,l=a.useRef(null),c=a.useRef(null),[u,p]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,o,s]=function({defaultProp:e,onChange:t}){let[n,r]=a.useState(e),i=a.useRef(n),o=a.useRef(t);return g(()=>{o.current=t},[t]),a.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,r,o]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:i;{let t=a.useRef(void 0!==e);a.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,r])}return[c,a.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else o(t)},[l,e,o,s])]}({prop:r,defaultProp:i??!1,onChange:o,caller:V});return(0,d.jsx)(G,{scope:t,triggerRef:l,contentRef:c,contentId:m(),titleId:m(),descriptionId:m(),open:u,onOpenChange:p,onOpenToggle:a.useCallback(()=>p(e=>!e),[p]),modal:s,children:n})};Y.displayName=V;var K="DialogTrigger",J=a.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=H(K,n),a=u(t,i.triggerRef);return(0,d.jsx)(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ey(i.open),...r,ref:a,onClick:s(e.onClick,i.onOpenToggle)})});J.displayName=K;var X="DialogPortal",[Q,ee]=q(X,{forceMount:void 0}),et=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=H(X,t);return(0,d.jsx)(Q,{scope:t,forceMount:n,children:a.Children.map(r,e=>(0,d.jsx)(L,{present:n||o.open,children:(0,d.jsx)(j,{asChild:!0,container:i,children:e})}))})};et.displayName=X;var en="DialogOverlay",er=a.forwardRef((e,t)=>
463{let n=ee(en,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=H(en,e.__scopeDialog);return a.modal?(0,d.jsx)(L,{present:r||a.open,children:(0,d.jsx)(ea,{...i,ref:t})}):null});er.displayName=en;var ei=v("DialogOverlay.RemoveScroll"),ea=a.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=H(en,n);return(0,d.jsx)(z.Z,{as:ei,allowPinchZoom:!0,shards:[i.contentRef],children:(0,d.jsx)(_.div,{"data-state":ey(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),eo="DialogContent",es=a.forwardRef((e,t)=>{let n=ee(eo,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=H(eo,e.__scopeDialog);return(0,d.jsx)(L,{present:r||a.open,children:a.modal?(0,d.jsx)(el,{...i,ref:t}):(0,d.jsx)(ec,{...i,ref:t})})});es.displayName=eo;var el=a.forwardRef((e,t)=>{let n=H(eo,e.__scopeDialog),r=a.useRef(null),i=u(t,n.contentRef,r);return a.useEffect(()=>{let e=r.current;if(e)return(0,Z.Ry)(e)},[]),(0,d.jsx)(eu,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:s(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:s(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:s(e.onFocusOutside,e=>e.preventDefault())})}),ec=a.forwardRef((e,t)=>{let n=H(eo,e.__scopeDialog),r=a.useRef(!1),i=a.useRef(!1);return(0,d.jsx)(eu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),eu=a.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,l=H(eo,n),c=a.useRef(null),p=u(t,c);return a.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??U()),document.body.insertAdjacentElement("beforeend",e[1]??U()),B++,()=>{1===B&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),B--}},[]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(N,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,d.jsx)(k,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":ey(l.open),...s,ref:p,onDismiss:()=>l.onOpenChange(!1)})}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(e_,{titleId:l.titleId}),(0,d.jsx)(ex,{contentRef:c,descriptionId:l.descriptionId})]})]})}),ed="DialogTitle",ep=a.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=H(ed,n);return(0,d.jsx)(_.h2,{id:i.titleId,...r,ref:t})});ep.displayName=ed;var ef="DialogDescription",eh=a.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=H(ef,n);return(0,d.jsx)(_.p,{id:i.descriptionId,...r,ref:t})});eh.displayName=ef;var em="DialogClose",eg=a.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=H(em,n);return(0,d.jsx)(_.button,{type:"button",...r,ref:t,onClick:s(e.onClick,()=>i.onOpenChange(!1))})});function ey(e){return e?"open":"closed"}eg.displayName=em;var ev="DialogTitleWarning",[eb,ew]=function(e,t){let n=a.createContext(t),r=e=>{let{children:t,...r}=e,i=a.useMemo(()=>r,Object.values(r));return(0,d.jsx)(n.Provider,{value:i,children:t})};return r.displayName=e+"Provider",[r,function(r){let i=a.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}(ev,{contentName:eo,titleName:ed,docsSlug:"dialog"}),e_=({titleId:e})=>{let t=ew(ev),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
464
465If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
466
467For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&!document.getElementById(e)&&console.error(n)},[n,e]),null},ex=({contentRef:e,descriptionId:t})=>{let n=ew("DialogDescriptionWarning"),r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return a.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&!document.getElementById(t)&&console.warn(r)},[r,e,t]),null},eE=Y,eS=J,ek=et,eC=er,eI=es,eA=ep,eT=eh,eR=eg},16525:function(e,t,n){"use strict";n.d(t,{gm:function(){return o}});var r=n(75271);n(52676);var i=Object.defineProperty,a=r.createContext(void 0);function o(e){let t=r.useContext(a);return e||t||"ltr"}i(o,"name",{value:"useDirection",configurable:!0})},72037:function(e,t,n){"use strict";n.d(t,{XB:function(){return p}});var r,i=n(75271),a=n(29161),o=n(64457),s=n(49204),l=n(90808),c=n(52676),u="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=i.forwardRef((e,t)=>
467{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:y,onDismiss:v,...b}=e,w=i.useContext(d),[_,x]=i.useState(null),E=_?.ownerDocument??globalThis?.document,[,S]=i.useState({}),k=(0,s.e)(t,e=>x(e)),C=Array.from(w.layers),[I]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),A=C.indexOf(I),T=_?C.indexOf(_):-1,R=w.layersWithOutsidePointerEventsDisabled.size>0,N=T>=A,O=function(e,t=globalThis?.document){let n=(0,l.W)(e),r=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){h("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...w.branches].some(e=>e.contains(t));!N||n||(m?.(e),y?.(e),e.defaultPrevented||v?.())},E),P=function(e,t=globalThis?.document){let n=(0,l.W)(e),r=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!r.current&&h("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...w.branches].some(e=>e.contains(t))||(g?.(e),y?.(e),e.defaultPrevented||v?.())},E);return!function(e,t=globalThis?.document){let n=(0,l.W)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{T!==w.layers.size-1||(p?.(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},E),i.useEffect(()=>{if(_)return n&&(0===w.layersWithOutsidePointerEventsDisabled.size&&(r=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(_)),w.layers.add(_),f(),()=>{n&&1===w.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=r)}},[_,E,n,w]),i.useEffect(()=>()=>{_&&(w.layers.delete(_),w.layersWithOutsidePointerEventsDisabled.delete(_),f())},[_,w]),i.useEffect(()=>{let e=()=>S({});return document.addEventListener(u,e),()=>document.removeEventListener(u,e)},[]),(0,c.jsx)(o.WV.div,{...b,ref:k,style:{pointerEvents:R?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,O.onPointerDownCapture)})});function f(){let e=new CustomEvent(u);document.dispatchEvent(e)}function h(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,o.jH)(i,a):i.dispatchEvent(a)}p.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(d),r=i.useRef(null),a=(0,s.e)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(o.WV.div,{...e,ref:a})}).displayName="DismissableLayerBranch"},67369:function(e,t,n){"use strict";n.d(t,{EW:function(){return a}});var r=n(75271),i=0;function a(){r.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??o()),document.body.insertAdjacentElement("beforeend",e[1]??o()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function o(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},45446:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return p}});var i=n(75271),a=n(49204),o=n(64457),s=n(90808),l=n(52676),c="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},p=i.forwardRef((e,t)=>
467{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:p,onUnmountAutoFocus:y,...v}=e,[b,w]=i.useState(null),_=(0,s.W)(p),x=(0,s.W)(y),E=i.useRef(null),S=(0,a.e)(t,e=>w(e)),k=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(k.paused||!b)return;let t=e.target;b.contains(t)?E.current=t:m(E.current,{select:!0})},t=function(e){if(k.paused||!b)return;let t=e.relatedTarget;null===t||b.contains(t)||m(E.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&m(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,b,k.paused]),i.useEffect(()=>{if(b){g.add(k);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(c,d);b.addEventListener(c,_),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(f(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(b))}return()=>{b.removeEventListener(c,_),setTimeout(()=>{let t=new CustomEvent(u,d);b.addEventListener(u,x),b.dispatchEvent(t),t.defaultPrevented||m(e??document.body,{select:!0}),b.removeEventListener(u,x),g.remove(k)},0)}}},[b,_,x,k]);let C=i.useCallback(e=>{if(!n&&!r||k.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=function(e){let t=f(e);return[h(t,e),h(t.reverse(),e)]}(t);r&&a?e.shiftKey||i!==a?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(a,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,k.paused]);return(0,l.jsx)(o.WV.div,{tabIndex:-1,...v,ref:S,onKeyDown:C})});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function h(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}p.displayName="FocusScope";var g=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=y(r,e)).unshift(e)},remove(e){r=y(r,e),r[0]?.resume()}});function y(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},8921:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,i=n(75271),a=n(929),o=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(o());return(0,a.b)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},26114:function(e,t,n){"use strict";n.d(t,{M:function(){return c}});var r,i=n(75271),a=n(61678),o=Object.defineProperty,s=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),l=0;function c(e){let[t,n]=i.useState(s());return(0,a.b)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}o(c,"name",{value:"useId",configurable:!0})},59860:function(e,t,n){"use strict";n.d(t,{ee:function(){return O},Eh:function(){return D},VY:function(){return P},fC:function(){return N},D7:function(){return m}});var r=n(75271),i=n(41039),a=n(32879),o=n(64457),s=n(52676),l=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,s.jsx)(o.WV.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,s.jsx)("polygon",{points:"0,0 30,0 15,10"})})});l.displayName="Arrow";var c=n(49204),u=n(42478),d=n(90808),p=n(929),f="Popper",[h,m]=(0,u.b)(f),[g,y]=h(f),v=e=>{let{__scopePopper:t,children:n}=e,[i,a]=r.useState(null);return(0,s.jsx)(g,{scope:t,anchor:i,onAnchorChange:a,children:n})};v.displayName=f;var b="PopperAnchor",w=r.forwardRef((e,t)=>
467{let{__scopePopper:n,virtualRef:i,...a}=e,l=y(b,n),u=r.useRef(null),d=(0,c.e)(t,u);return r.useEffect(()=>{l.onAnchorChange(i?.current||u.current)}),i?null:(0,s.jsx)(o.WV.div,{...a,ref:d})});w.displayName=b;var _="PopperContent",[x,E]=h(_),S=r.forwardRef((e,t)=>{let{__scopePopper:n,side:l="bottom",sideOffset:u=0,align:f="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:v=[],collisionPadding:b=0,sticky:w="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:k,...C}=e,I=y(_,n),[N,O]=r.useState(null),P=(0,c.e)(t,e=>O(e)),[D,M]=r.useState(null),$=function(e){let[t,n]=r.useState(void 0);return(0,p.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(D),j=$?.width??0,L=$?.height??0,F="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},B=Array.isArray(v)?v:[v],U=B.length>0,z={padding:F,boundary:B.filter(A),altBoundary:U},{refs:Z,floatingStyles:V,placement:q,isPositioned:W,middlewareData:G}=(0,i.YF)({strategy:"fixed",placement:l+("center"!==f?"-"+f:""),whileElementsMounted:(...e)=>(0,a.Me)(...e,{animationFrame:"always"===S}),elements:{reference:I.anchor},middleware:[(0,i.cv)({mainAxis:u+L,alignmentAxis:h}),g&&(0,i.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===w?(0,i.dr)():void 0,...z}),g&&(0,i.RR)({...z}),(0,i.dp)({...z,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty("--radix-popper-available-width",`${n}px`),o.setProperty("--radix-popper-available-height",`${r}px`),o.setProperty("--radix-popper-anchor-width",`${i}px`),o.setProperty("--radix-popper-anchor-height",`${a}px`)}}),D&&(0,i.x7)({element:D,padding:m}),T({arrowWidth:j,arrowHeight:L}),E&&(0,i.Cp)({strategy:"referenceHidden",...z})]}),[H,Y]=R(q),K=(0,d.W)(k);(0,p.b)(()=>{W&&K?.()},[W,K]);let J=G.arrow?.x,X=G.arrow?.y,Q=G.arrow?.centerOffset!==0,[ee,et]=r.useState();return(0,p.b)(()=>{N&&et(window.getComputedStyle(N).zIndex)},[N]),(0,s.jsx)("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:W?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,s.jsx)(x,{scope:n,placedSide:H,onArrowChange:M,arrowX:J,arrowY:X,shouldHideArrow:Q,children:(0,s.jsx)(o.WV.div,{"data-side":H,"data-align":Y,...C,ref:P,style:{...C.style,animation:W?void 0:"none"}})})})});S.displayName=_;var k="PopperArrow",C={top:"bottom",right:"left",bottom:"top",left:"right"},I=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=E(k,n),a=C[i.placedSide];return(0,s.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,s.jsx)(l,{...r,ref:t,style:{...r.style,display:"block"}})})});function A(e){return null!==e}I.displayName=k;var T=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,c]=R(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(i.arrow?.x??0)+o/2,p=(i.arrow?.y??0)+s/2,f="",h="";return"bottom"===l?(f=a?u:`${d}px`,h=`${-s}px`):"top"===l?(f=a?u:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(f=`${-s}px`,h=a?u:`${p}px`):"left"===l&&(f=`${r.floating.width+s}px`,h=a?u:`${p}px`),{data:{x:f,y:h}}}});function R(e){let[t,n="center"]=e.split("-");return[t,n]}var N=v,O=w,P=S,D=I},43498:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var r=n(75271),i=n(30967),a=n(64457),o=n(929),s=n(52676),l=r.forwardRef((e,t)=>
467{let{container:n,...l}=e,[c,u]=r.useState(!1);(0,o.b)(()=>u(!0),[]);let d=n||c&&globalThis?.document?.body;return d?i.createPortal((0,s.jsx)(a.WV.div,{...l,ref:t}),d):null});l.displayName="Portal"},616:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=n(75271),i=n(61678),a=Object.defineProperty,o=(e,t)=>a(e,"name",{value:t,configurable:!0});function s(e,t){return r.useReducer((e,n)=>t[e][n]??e,e)}o(s,"useStateMachine");var l=o(e=>{let{present:t,children:n}=e,i=c(t),a="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),o=d(i.ref,f(a));return"function"==typeof n||i.isPresent?r.cloneElement(a,{ref:o}):null},"Presence");function c(e){let[t,n]=r.useState(),a=r.useRef(null),l=r.useRef(e),c=r.useRef("none"),u=r.useRef(void 0),[d,f]=s(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect(()=>{"mounted"===d?(c.current=u.current??p(a.current),u.current=void 0):c.current="none"},[d]),(0,i.b)(()=>{let t=a.current,n=l.current;if(n!==e){let r=c.current,i=p(t);e?(u.current=i,f("MOUNT")):"none"===i||t?.display==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),l.current=e}},[e,f]),(0,i.b)(()=>{if(t){let e;let n=t.ownerDocument.defaultView??window,r=o(r=>{let i=p(a.current).includes(CSS.escape(r.animationName));if(r.target===t&&i&&(f("ANIMATION_END"),!l.current)){let r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),i=o(e=>{e.target===t&&(c.current=p(a.current))},"handleAnimationStart");return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{if(e){let t=getComputedStyle(e);a.current=t,u.current=p(t)}else a.current=null;n(e)},[])}}function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function d(...e){let t=r.useRef(e);return t.current=e,r.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=u(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];"function"==typeof t?t():u(n[e],null)}}},[])}function p(e){return e?.animationName||"none"}function f(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}o(c,"usePresence"),o(u,"setRef"),o(d,"useStableComposedRefs"),o(p,"getAnimationName"),o(f,"getElementRef")},48101:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(75271),i=n(49204),a=n(929),o=e=>{let t,n;let{present:o,children:l}=e,c=function(e){var t,n;let[i,o]=r.useState(),l=r.useRef({}),c=r.useRef(e),u=r.useRef("none"),[d,p]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=s(l.current);u.current="mounted"===d?e:"none"},[d]),(0,a.b)(()=>{let t=l.current,n=c.current;if(n!==e){let r=u.current,i=s(t);e?p("MOUNT"):"none"===i||t?.display==="none"?p("UNMOUNT"):n&&r!==i?p("ANIMATION_OUT"):p("UNMOUNT"),c.current=e}},[e,p]),(0,a.b)(()=>{if(i){let e;let t=i.ownerDocument.defaultView??window,n=n=>{let r=s(l.current).includes(n.animationName);if(n.target===i&&r&&(p("ANIMATION_END"),!c.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(u.current=s(l.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}p("ANIMATION_END")},[i,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(l.current=getComputedStyle(e)),o(e)},[])}}(o),u="function"==typeof l?l({present:c.isPresent}):r.Children.only(l),d=(0,i.e)(c.ref,(t=Object.getOwnPropertyDescriptor(u.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?u.ref:(t=Object.getOwnPropertyDescriptor(u,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?u.props.ref:u.props.ref||u.ref);return"function"==typeof l||c.isPresent?r.cloneElement(u,{ref:d}):null};function s(e){return e?.animationName||"none"}o.displayName="Presence"},64457:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(75271),i=n(30967),a=n(65187),o=n(52676),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>
467{let n=r.forwardRef((e,n)=>{let{asChild:r,...i}=e,s=r?a.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(s,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},55695:function(e,t,n){"use strict";n.d(t,{WV:function(){return l},jH:function(){return c}});var r=n(75271),i=n(30967),a=n(61828),o=n(52676),s=Object.defineProperty,l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,a.Z8)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...a}=e,s=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(s,{...a,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function c(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}s(c,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0})},65187:function(e,t,n){"use strict";n.d(t,{g7:function(){return o}});var r=n(75271),i=n(49204),a=n(52676),o=r.forwardRef((e,t)=>{let{children:n,...i}=e,o=r.Children.toArray(n),l=o.find(c);if(l){let e=l.props.children,n=o.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,a.jsx)(s,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,a.jsx)(s,{...i,ref:t,children:n})});o.displayName="Slot";var s=r.forwardRef((e,t)=>{let{children:n,...a}=e;if(r.isValidElement(n)){let e,o;let s=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,l=function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(a,n.props);return n.type!==r.Fragment&&(l.ref=t?(0,i.F)(t,s):s),r.cloneElement(n,l)}return r.Children.count(n)>1?r.Children.only(null):null});s.displayName="SlotClone";var l=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});function c(e){return r.isValidElement(e)&&e.type===l}},61828:function(e,t,n){"use strict";n.d(t,{Z8:function(){return l}});var r,i=n(75271),a=n(71507),o=Object.defineProperty,s=(e,t)=>o(e,"name",{value:t,configurable:!0});function l(e){let t=i.forwardRef((t,n)=>{let{children:r,...o}=t,s=null,l=!1,c=[];m(r)&&"function"==typeof b&&(r=b(r._payload)),i.Children.forEach(r,e=>{if(f(e)){l=!0;let t="child"in e.props?e.props.child:e.props.children;m(t)&&"function"==typeof b&&(t=b(t._payload)),s=u(e,t),c.push(s?.props?.children)}else c.push(e)}),s?s=i.cloneElement(s,void 0,c):!l&&1===i.Children.count(r)&&i.isValidElement(r)&&(s=r);let h=s?p(s):void 0,g=(0,a.e)(n,h);if(!s){if(r||0===r)throw Error(l?v(e):y(e));return r}let w=d(o,s.props??{});return s.type!==i.Fragment&&(w.ref=n?g:h),i.cloneElement(s,w)});return t.displayName=`${e}.Slot`,t}s(l,"createSlot");var c=Symbol.for("radix.slottable");s(function(e){let t=s(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=c,t},"createSlottable");var u=s((e,t)=>{if("child"in e.props){let t=e.props.child;return i.isValidElement(t)?i.cloneElement(t,void 0,e.props.children(t.props.children)):null}return i.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function d(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function p(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function f(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}s(d,"mergeProps"),s(p,"getElementRef"),s(f,"isSlottable");var h=Symbol.for("react.lazy");function m(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===h&&"_payload"in e&&g(e._payload)}function g(e){return"object"==typeof e&&null!==e&&"then"in e}s(m,"isLazyComponent"),s(g,"isPromiseLike");var y=s(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),v=s(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),b=(r||(r=n.t(i,2)))[" use ".trim().toString()]},90808:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(75271);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},10500:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(75271);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}(0,Object.defineProperty)(i,"name",{value:"useCallbackRef",configurable:!0})},30710:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(75271),i=n(90808);function a({prop:e,defaultProp:t,onChange:n=()=>{}}){let[a,o]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[a]=n,o=r.useRef(a),s=(0,i.W)(t);return r.useEffect(()=>{o.current!==a&&(s(a),o.current=a)},[a,o,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:a,c=(0,i.W)(n);return[l,r.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&c(n)}else o(t)},[s,e,o,c])]}},75051:function(e,t,n){"use strict";n.d(t,{T:function(){return f}});var r=n(75271),i=n.t(r,2),a=n(61678),o=Object.defineProperty,s=i[" useEffectEvent ".trim().toString()],l=i[" useInsertionEffect ".trim().toString()];function c(e){if("function"==typeof s)return s(e);let t=r.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof l?l(()=>{t.current=e}):(0,a.b)(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}o(c,"name",{value:"useEffectEvent",configurable:!0});var u=Object.defineProperty,d=(e,t)=>u(e,"name",{value:t,configurable:!0}),p=i[" useInsertionEffect ".trim().toString()]||a.b;function f({prop:e,defaultProp:t,onChange:n=d(()=>{},"onChange"),caller:i}){let[a,o,s]=h({defaultProp:t,onChange:n}),l=void 0!==e;return[l?e:a,r.useCallback(t=>{if(l){let n=m(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[l,e,o,s])]}function h({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),a=r.useRef(n),o=r.useRef(t);return p(()=>{o.current=t},[t]),r.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,i,o]}function m(e){return"function"==typeof e}d(f,"useControllableState"),d(h,"useUncontrolledState"),d(m,"isFunction");var g=Symbol("RADIX:SYNC_STATE");d(function(e,t,n,i){let{prop:a,defaultProp:o,onChange:s,caller:l}=t,u=void 0!==a,d=c(s),p=[{...n,state:o}];i&&p.push(i);let[f,h]=r.useReducer((t,n)=>{if(n.type===g)return{...t,state:n.state};let r=e(t,n);return u&&!Object.is(r.state,t.state)&&d(r.state),r},...p),m=f.state,y=r.useRef(m);r.useEffect(()=>{y.current===m||(y.current=m,u||d(m))},[m,y,u]);let v=r.useMemo(()=>void 0!==a?{...f,state:a}:f,[f,a]);return r.useEffect(()=>{u&&!Object.is(a,f.state)&&h({type:g,state:a})},[a,f.state,u]),[v,h]},"useControllableStateReducer")},929:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(75271),i=globalThis?.document?r.useLayoutEffect:()=>{}},61678:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(75271),i=globalThis?.document?r.useLayoutEffect:()=>{}},50912:function(e,t,n){"use strict";n.d(t,{t:function(){return a}});var r=n(75271),i=n(61678);function a(e){let[t,n]=r.useState(void 0);return(0,i.b)(()=>
467{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(0,Object.defineProperty)(a,"name",{value:"useSize",configurable:!0})},78749:function(e,t,n){"use strict";n.d(t,{G:function(){return d}});var r=n(13094),i=n(42712),a=n(28725);class o{constructor(e,t){let n,r;n=e||new i.s,r=t||new i.s,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t;let n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return(0,a.J8)(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function s(){let e=(0,r.cu)(),t=(0,r.qA)(e);return t.stack=t.stack||new o((0,r.YO)("defaultCurrentScope",()=>new i.s),(0,r.YO)("defaultIsolationScope",()=>new i.s))}function l(e){return s().withScope(e)}function c(e,t){let n=s();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function u(e){return s().withScope(()=>e(s().getIsolationScope()))}function d(e){let t=(0,r.qA)(e);return t.acs?t.acs:{withIsolationScope:u,withScope:l,withSetScope:c,withSetIsolationScope:(e,t)=>u(t),getCurrentScope:()=>s().getScope(),getIsolationScope:()=>s().getIsolationScope()}}},24499:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(39164),i=n(75184),a=n(31347);function o(e,t){let n=(0,r.s3)(),o=(0,r.aF)();if(!n)return;let{beforeBreadcrumb:s=null,maxBreadcrumbs:l=100}=n.getOptions();if(l<=0)return;let c={timestamp:(0,a.yW)(),...e},u=s?(0,i.Cf)(()=>s(c,t)):c;null!==u&&(n.emit&&n.emit("beforeAddBreadcrumb",u,t),o.addBreadcrumb(u,l))}},13094:function(e,t,n){"use strict";n.d(t,{YO:function(){return s},cu:function(){return a},qA:function(){return o}});var r=n(97543),i=n(17666);function a(){return o(i.GLOBAL_OBJ),i.GLOBAL_OBJ}function o(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r.J,t[r.J]=t[r.J]||{}}function s(e,t,n=i.GLOBAL_OBJ){let a=n.__SENTRY__=n.__SENTRY__||{},o=a[r.J]=a[r.J]||{};return o[e]||(o[e]=t())}},25659:function(e,t,n){"use strict";n.d(t,{KU:function(){return N},NV:function(){return D}});var r=n(42520),i=n(39164),a=n(74141),o=n(43221),s=n(64289),l=n(64609),c=n(97043),u=n(48467),d=n(44384),p=n(89953),f=n(63656),h=n(38146),m=n(2796),g=n(4890),y=n(31347),v=n(81100),b=n(28725),w=n(75184),_=n(29995),x=n(70532);let E="Not capturing exception because it's already been captured.",S="Discarded session because of missing or non-string release",k=Symbol.for("SentryInternalError"),C=Symbol.for("SentryDoNotSendEventError");function I(e){return{message:e,[k]:!0}}function A(e){return{message:e,[C]:!0}}function T(e){return!!e&&"object"==typeof e&&k in e}function R(e){return!!e&&"object"==typeof e&&C in e}class N{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,v.vK)(e.dsn):a.X&&w.kg.warn("No DSN provided, client will not send events."),this._dsn){var t,n,r;let i=(t=this._dsn,n=e.tunnel,r=e._metadata?e._metadata.sdk:void 0,n||`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${function(e,t){let n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(t,r)}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:i})}}captureException(e,t,n){let r=(0,_.DM)();if((0,_.YO)(e))return a.X&&w.kg.log(E),r;let i={event_id:r,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n))),i.event_id}captureMessage(e,t,n,r){let i={event_id:(0,_.DM)(),...n}
467,a=(0,b.Le)(e)?e:String(e),o=(0,b.pt)(e)?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(o.then(e=>this._captureEvent(e,i,r))),i.event_id}captureEvent(e,t,n){let r=(0,_.DM)();if(t?.originalException&&(0,_.YO)(t.originalException))return a.X&&w.kg.log(E),r;let i={event_id:r,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,l=o.capturedSpanIsolationScope;return this._process(this._captureEvent(e,i,s||n,l)),i.event_id}captureSession(e){this.sendSession(e),(0,l.CT)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):(0,x.WD)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];(0,s.m7)(this,e,this._integrations),t||(0,s.uf)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=(0,o.Mq)(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=(0,g.BO)(n,(0,g.zQ)(e));let r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let{release:t,environment:n=r.J}=this._options;if("aggregates"in e){let r=e.attrs||{};if(!r.release&&!t){a.X&&w.kg.warn(S);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){a.X&&w.kg.warn(S);return}e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);let i=(0,o.Q3)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;a.X&&w.kg.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(a.X&&w.kg.error("Error while sending envelope:",e),e)):(a.X&&w.kg.error("Transport disabled"),(0,x.WD)({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=(0,s.q4)(this,e),(0,s.uf)(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1,i=t.exception?.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t?.handled===!1){n=!0;break}}let a="ok"===e.status;(a&&0===e.errors||a&&n)&&((0,l.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new x.cW(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){let a=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o?.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,f.R)(a,e,t,n,this,r).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:(0,i.XX)(n),...e.contexts};let r=(0,c.CG)(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:r,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},n=(0,i.nZ)(),r=(0,i.aF)()){return a.X&&O(e)&&w.kg.log(`Captured error event \`${(0,u.h)(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{a.X&&(R(e)?w.kg.log(e.message):T(e)?w.kg.warn(e.message):w.kg.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=P(e),s=O(e),l=e.type||"error",c=`before send for type \`${l}\``,u=void 0===a?void 0:(0,p.o)(a);if(s&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error"),(0,x.$2)(A(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let f="replay_event"===l?"replay":l;return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",f),A("An event processor returned `null`, will not send event.");return t.data&&!0===t.data.__sentry__?e:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,b.J8)(e))return e.then(e=>{if(!(0,b.PO)(e)&&null!==e)throw I(n);return e},e=>{throw I(`${t} rejected with ${e}`)});if(!(0,b.PO)(e)&&null!==e)throw I(n);return e}(function(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:o}=t,s=n;if(O(s)&&i)return i(s,r);
467if(P(s)){if(o){let e=o(function(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:o?.[m.p6],exclusive_time:o?.[m.JQ],measurements:e.measurements,is_segment:!0}}(s));if(e?s=(0,d.T)(n,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[m.p6]:e.profile_id},...e.exclusive_time&&{[m.JQ]:e.exclusive_time}}}},measurements:e.measurements}):(0,h.R6)(),s.spans){let e=[];for(let t of s.spans){let n=o(t);n?e.push(n):((0,h.R6)(),e.push(t))}s.spans=e}}if(a){if(s.spans){let e=s.spans.length;s.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(s,r)}}return s}(0,i,e,t),c)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",f),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw A(`${c} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(R(e)||T(e))throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),I(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
468Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){a.X&&w.kg.log("Flushing outcomes...");let e=this._clearOutcomes();if(0===e.length){a.X&&w.kg.log("No outcomes to send");return}if(!this._dsn){a.X&&w.kg.log("No dsn provided, will not send outcomes");return}a.X&&w.kg.log("Sending outcomes:",e);let t=function(e,t,n){let r=[{type:"client_report"},{timestamp:(0,y.yW)(),discarded_events:e}];return(0,g.Jd)(t?{dsn:t}:{},[r])}(e,this._options.tunnel&&(0,v.RA)(this._dsn));this.sendEnvelope(t)}}function O(e){return void 0===e.type}function P(e){return"transaction"===e.type}function D(e,t){return t?(0,i.$e)(t,()=>{let n=(0,h.HN)(),r=n?(0,h.wy)(n):(0,i.XX)(t);return[n?(0,c.jC)(n):(0,c.CG)(e,t),r]}):[void 0,void 0]}},42520:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="production"},39164:function(e,t,n){"use strict";n.d(t,{$e:function(){return u},XX:function(){return p},aF:function(){return l},lW:function(){return c},nZ:function(){return s},s3:function(){return d}});var r=n(78749),i=n(13094),a=n(42712),o=n(40359);function s(){let e=(0,i.cu)();return(0,r.G)(e).getCurrentScope()}function l(){let e=(0,i.cu)();return(0,r.G)(e).getIsolationScope()}function c(){return(0,i.YO)("globalScope",()=>new a.s)}function u(...e){let t=(0,i.cu)(),n=(0,r.G)(t);if(2===e.length){let[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}function d(){return s().getClient()}function p(e){let{traceId:t,parentSpanId:n,propagationSpanId:r}=e.getPropagationContext(),i={trace_id:t,span_id:r||(0,o.M)()};return n&&(i.parent_span_id=n),i}},74141:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},43221:function(e,t,n){"use strict";n.d(t,{Mq:function(){return l},Q3:function(){return s},uE:function(){return c}});var r=n(97043),i=n(38146),a=n(81100),o=n(4890);function s(e,t,n,r){let i=(0,o.HY)(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:(0,a.RA)(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,o.Jd)(s,[l])}function l(e,t,n,r){var i;let a=(0,o.HY)(n),s=e.type&&"replay_event"!==e.type?e.type:"event";(i=n?.sdk)&&(e.sdk=e.sdk||{}
468,e.sdk.name=e.sdk.name||i.name,e.sdk.version=e.sdk.version||i.version,e.sdk.integrations=[...e.sdk.integrations||[],...i.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...i.packages||[]]);let l=(0,o.Cd)(e,a,r,t);delete e.sdkProcessingMetadata;let c=[{type:s},e];return(0,o.Jd)(l,[c])}function c(e,t){let n=(0,r.jC)(e[0]),s=t?.getDsn(),l=t?.getOptions().tunnel,c={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!l&&s&&{dsn:(0,a.RA)(s)}},u=t?.getOptions().beforeSendSpan,d=u?e=>{let t=(0,i.XU)(e);return u(t)||((0,i.R6)(),t)}:i.XU,p=[];for(let t of e){let e=d(t);e&&p.push((0,o.KQ)(e))}return(0,o.Jd)(c,p)}},3539:function(e,t,n){"use strict";n.d(t,{Qy:function(){return m},Tb:function(){return c},_k:function(){return h},av:function(){return p},cg:function(){return b},eN:function(){return u},v:function(){return d},yj:function(){return g},yl:function(){return f}});var r=n(39164),i=n(74141),a=n(64609),o=n(63656),s=n(75184),l=n(17666);function c(e,t){return(0,r.nZ)().captureException(e,(0,o.U0)(t))}function u(e,t){return(0,r.nZ)().captureEvent(e,t)}function d(e,t){(0,r.aF)().setContext(e,t)}function p(e){(0,r.aF)().setUser(e)}async function f(e){let t=(0,r.s3)();return t?t.flush(e):(i.X&&s.kg.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function h(){let e=(0,r.s3)();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function m(e){(0,r.aF)().addEventProcessor(e)}function g(e){let t=(0,r.aF)(),n=(0,r.nZ)(),{userAgent:i}=l.GLOBAL_OBJ.navigator||{},o=(0,a.Hv)({user:n.getUser()||t.getUser(),...i&&{userAgent:i},...e}),s=t.getSession();return s?.status==="ok"&&(0,a.CT)(s,{status:"exited"}),y(),t.setSession(o),o}function y(){let e=(0,r.aF)(),t=(0,r.nZ)().getSession()||e.getSession();
468t&&(0,a.RJ)(t),v(),e.setSession()}function v(){let e=(0,r.aF)(),t=(0,r.s3)(),n=e.getSession();n&&t&&t.captureSession(n)}function b(e=!1){if(e){y();return}v()}},64289:function(e,t,n){"use strict";n.d(t,{_I:function(){return u},m7:function(){return c},m8:function(){return o},q4:function(){return s},uf:function(){return l}});var r=n(74141),i=n(75184);let a=[];function o(e){let t;let n=e.defaultIntegrations||[],r=e.integrations;if(n.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(r))t=[...n,...r];else if("function"==typeof r){let e=r(n);t=Array.isArray(e)?e:[e]}else t=n;return function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(t)}function s(e,t){let n={};return t.forEach(t=>{t&&c(e,t,n)}),n}function l(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function c(e,t,n){if(n[t.name]){r.X&&i.kg.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,-1===a.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),a.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}r.X&&i.kg.log(`Integration installed: ${t.name}`)}function u(e){return e}},91821:function(e,t,n){"use strict";n.d(t,{hQ:function(){return y},lP:function(){return v}});var r=n(25659),i=n(39164),a=n(74141),o=n(55495),s=n(12856),l=n(28725),c=n(75184),u=n(31347),d=n(17666);let p={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};var f=n(81100),h=n(4890);function m(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function g(e,t){let n=b(e);void 0===n?d.GLOBAL_OBJ._sentryClientToLogBufferMap?.set(e,[t]):(d.GLOBAL_OBJ._sentryClientToLogBufferMap?.set(e,[...n,t]),n.length>=100&&v(e,n))}function y(e,t=(0,i.s3)(),n=(0,i.nZ)(),d=g){if(!t){a.X&&c.kg.warn("No client available to capture log.");return}let{_experiments:f,release:h,environment:y}=t.getOptions(),{enableLogs:v=!1,beforeSendLog:b}=f??{};if(!v){a.X&&c.kg.warn("logging option not enabled, log will not be captured.");return}
468let[,w]=(0,r.NV)(t,n),_={...e.attributes},{user:{id:x,email:E,username:S}}=function(e){let t=(0,i.lW)().getScopeData();return(0,o.yo)(t,(0,i.aF)().getScopeData()),(0,o.yo)(t,e.getScopeData()),t}(n);m(_,"user.id",x,!1),m(_,"user.email",E,!1),m(_,"user.name",S,!1),m(_,"sentry.release",h),m(_,"sentry.environment",y);let{name:k,version:C}=t.getSdkMetadata()?.sdk??{};m(_,"sentry.sdk.name",k),m(_,"sentry.sdk.version",C);let I=e.message;if((0,l.Le)(I)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=I;_["sentry.message.template"]=e,t.forEach((e,t)=>{_[`sentry.message.parameter.${t}`]=e})}let A=(0,s.Y)(n);m(_,"sentry.trace.parent_span_id",A?.spanContext().spanId);let T={...e,attributes:_};t.emit("beforeCaptureLog",T);let R=b?b(T):T;if(!R){t.recordDroppedEvent("before_send","log_item",1),a.X&&c.kg.warn("beforeSendLog returned null, log will not be captured.");return}let{level:N,message:O,attributes:P={},severityNumber:D}=R;d(t,{timestamp:(0,u.ph)(),level:N,body:O,trace_id:w?.trace_id,severity_number:D??p[N],attributes:Object.keys(P).reduce((e,t)=>(e[t]=function(e){switch(typeof e){case"number":if(Number.isInteger(e))return{value:e,type:"integer"};return{value:e,type:"double"};case"boolean":return{value:e,type:"boolean"};case"string":return{value:e,type:"string"};default:{let t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}(P[t]),e),{})}),t.emit("afterCaptureLog",R)}function v(e,t){let n=t??b(e)??[];if(0===n.length)return;let r=e.getOptions(),i=function(e,t,n,r){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=(0,f.RA)(r)),(0,h.Jd)(i,[[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]])}(n,r._metadata,r.tunnel,e.getDsn());d.GLOBAL_OBJ._sentryClientToLogBufferMap?.set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function b(e){return d.GLOBAL_OBJ._sentryClientToLogBufferMap?.get(e)}d.GLOBAL_OBJ._sentryClientToLogBufferMap=new WeakMap},42712:function(e,t,n){"use strict";n.d(t,{s:function(){return p}});var r=n(64609),i=n(44384),a=n(12856),o=n(28725),s=n(75184),l=n(29995),c=n(40359),u=n(12943),d=n(31347);class p{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,c.H)(),sampleRand:Math.random()}}clone(){let e=new p;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,a.D)(e,(0,a.Y)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,r.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:n,extra:r,user:i,contexts:a,level:s,fingerprint:l=[],propagationContext:c}=(t instanceof p?t.getScopeData():(0,o.PO)(t)?e:void 0)||{};return this._tags={...this._tags,...n},this._extra={...this._extra,...r},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),s&&(this._level=s),l.length&&(this._fingerprint=l),c&&
468(this._propagationContext=c),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,(0,a.D)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,c.H)(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,d.yW)(),...e,message:e.message?(0,u.$G)(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,a.Y)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,i.T)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||(0,l.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||(0,l.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t?.event_id||(0,l.DM)();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):s.kg.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},2796:function(e,t,n){"use strict";n.d(t,{$J:function(){return o},E1:function(){return c},JQ:function(){return f},S3:function(){return s},TE:function(){return i},Wb:function(){return u},Zj:function(){return r},iT:function(){return a},ju:function(){return l},lH:function(){return h},p6:function(){return p},xF:function(){return d}});let r="sentry.source",i="sentry.sample_rate",a="sentry.previous_trace_sample_rate",o="sentry.op",s="sentry.origin",l="sentry.idle_span_finish_reason",c="sentry.measurement_unit",u="sentry.measurement_value",d="sentry.custom_span_name",p="sentry.profile_id",f="sentry.exclusive_time",h="sentry.link.type"},64609:function(e,t,n){"use strict";n.d(t,{CT:function(){return o},Hv:function(){return a},RJ:function(){return s}});var r=n(29995),i=n(31347);function a(e){let t=(0,i.ph)(),n={sid:(0,r.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&o(n,e),n}function o(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,r.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function s(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),o(e,n)}},97043:function(e,t,n){"use strict";n.d(t,{CG:function(){return m},Lh:function(){return f},jC:function(){return g}});var r=n(42520),i=n(39164),a=n(2796),o=n(25496),s=n(38146),l=n(35654),c=n(81100),u=n(40130),d=n(58336);let p="_frozenDsc";function f(e,t){(0,u.xp)(e,p,t)}function h(e,t){let n;let i=t.getOptions(),{publicKey:a,host:o}=t.getDsn()||{};i.orgId?n=String(i.orgId):o&&(n=(0,c.so)(o));let s={environment:i.environment||r.J,release:i.release,public_key:a,trace_id:e,org_id:n};return t.emit("createDsc",s),s}function m(e,t){let n=t.getPropagationContext();return n.dsc||h(n.traceId,e)}function g(e){let t=(0,i.s3)();if(!t)return{};let n=(0,s.Gx)(e),r=(0,s.XU)(n),c=r.data,u=n.spanContext().traceState,f=u?.get("sentry.sample_rate")??c[a.TE]??c[a.iT];function m(e){return("number"==typeof f||"string"==typeof f)&&(e.sample_rate=`${f}`),e}let g=n[p];if(g)return m(g);let y=u?.get("sentry.dsc"),v=y&&(0,l.EN)(y);if(v)return m(v);let b=h(e.spanContext().traceId,t),w=c[a.Zj],_=r.description;return"url"!==w&&_&&(b.transaction=_),(0,o.f)()&&(b.sampled=String((0,s.Tt)(n)),b.sample_rand=u?.get("sentry.sample_rand")??d.I(n).scope?.getPropagationContext().sampleRand.toString()),m(b),t.emit("createDsc",b,n),b}},38443:function(e,t,n){"use strict";n.d(t,{OP:function(){return i},Q0:function(){return o},jt:function(){return a},pq:function(){return r}});let r=0,i=1,a=2;function o(e,t){e.setAttribute("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:a,message:"unauthenticated"};case 403:return{code:a,message:"permission_denied"};case 404:return{code:a,message:"not_found"};case 409:return{code:a,message:"already_exists"};case 413:return{code:a,message:"failed_precondition"};case 429:return{code:a,message:"resource_exhausted"};case 499:return{code:a,message:"cancelled"};default:return{code:a,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:a,message:"unimplemented"};case 503:return{code:a,message:"unavailable"};case 504:return{code:a,message:"deadline_exceeded"};default:return{code:a,message:"internal_error"}}return{code:a,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}},58336:function(e,t,n){"use strict";n.d(t,{I:function(){return s},Y:function(){return o}});var r=n(40130);let i="_sentryScope",a="_sentryIsolationScope";function o(e,t,n){e&&((0,r.xp)(e,a,n),(0,r.xp)(e,i,t))}function s(e){return{scope:e[i],isolationScope:e[a]}}},35654:function(e,t,n){"use strict";n.d(t,{EN:function(){return l},IQ:function(){return c},XM:function(){return u},lq:function(){return o}});
468var r=n(74141),i=n(28725),a=n(75184);let o="sentry-",s=/^sentry-/;function l(e){let t=u(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.match(s)&&(e[t.slice(o.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function c(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],i)=>{let o=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===i?o:`${e},${o}`;return s.length>8192?(r.X&&a.kg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${o}${t}`]=n),e),{}))}function u(e){return e&&((0,i.HD)(e)||Array.isArray(e))?Array.isArray(e)?e.reduce((e,t)=>(Object.entries(d(t)).forEach(([t,n])=>{e[t]=n}),e),{}):d(e):void 0}function d(e){return e.split(",").map(e=>e.split("=").map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}},15586:function(e,t,n){"use strict";n.d(t,{Rt:function(){return a},iY:function(){return s},l4:function(){return o}});var r=n(28725);let i=n(17666).GLOBAL_OBJ;function a(e,t={}){if(!e)return"<unknown>";try{let n,a=e,o=[],s=0,l=0,c=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;for(;a&&s++<5&&(n=function(e,t){let n=[];if(!e?.tagName)return"";if(i.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}n.push(e.tagName.toLowerCase());let a=t?.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(a?.length)a.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&n.push(`#${e.id}`);let t=e.className;if(t&&(0,r.HD)(t))for(let e of t.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=e.getAttribute(t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(a,c),"html"!==n&&(!(s>1)||!(l+3*o.length+n.length>=u)));)o.push(n),l+=n.length,a=a.parentNode;return o.reverse().join(" > ")}catch(e){return"<unknown>"}}function o(){try{return i.document.location.href}catch(e){return""}}function s(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},81100:function(e,t,n){"use strict";n.d(t,{RA:function(){return s},U4:function(){return l},so:function(){return u},vK:function(){return d}});var r=n(74141),i=n(75184);let a=/^o(\d+)\./,o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function s(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${o}`}function l(e){let t=o.exec(e);if(!t){(0,i.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,a="",s="",l="",u=""]=t.slice(1),d="",p=u,f=p.split("/");if(f.length>1&&(d=f.slice(0,-1).join("/"),p=f.pop()),p){let e=p.match(/^\d+/);e&&(p=e[0])}return c({host:s,pass:a,path:d,projectId:p,port:l,protocol:n,publicKey:r})}function c(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){let t=e.match(a);return t?.[1]}function d(e){let t="string"==typeof e?l(e):c(e);if(t&&function(e){if(!r.X)return!0;let{port:t,projectId:n,protocol:a}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.kg.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"===a||"https"===a?!(t&&isNaN(parseInt(t,10)))||(i.kg.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.kg.error(`Invalid Sentry Dsn: Invalid protocol ${a}`),!1):(i.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}},4890:function(e,t,n){"use strict";n.d(t,{BO:function(){return l},Cd:function(){return y},HY:function(){return g},Jd:function(){return s},KQ:function(){return p},V$:function(){return d},gv:function(){return c},mL:function(){return m},zQ:function(){return f}});var r=n(13094),i=n(81100),a=n(41356),o=n(17666);function s(e,t=[]){return[e,t]}function l(e,t){let[n,r]=e;return[n,[...r,t]]}function c(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function u(e){let t=(0,r.qA)(o.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function d(e){let[t,n]=e,r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[u(r),e]:r.push("string"==typeof e?u(e):e)}for(let e of n){let[t,n]=e;if(i(`
469${JSON.stringify(t)}
470`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,a.Fv)(n))}i(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>
470e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}function p(e){return[{type:"span"},e]}function f(e){let t="string"==typeof e.data?u(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}let h={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function m(e){return h[e]}function g(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function y(e,t,n,r){let a=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:(0,i.RA)(r)},...a&&{trace:a}}}},28725:function(e,t,n){"use strict";n.d(t,{Cy:function(){return y},HD:function(){return c},J8:function(){return g},Kj:function(){return m},Le:function(){return u},PO:function(){return p},TX:function(){return s},V9:function(){return v},VW:function(){return o},VZ:function(){return i},cO:function(){return f},fm:function(){return l},gJ:function(){return w},kK:function(){return h},pt:function(){return d},y1:function(){return b}});let r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(e,Error)}}function a(e,t){return r.call(e)===`[object ${t}]`}function o(e){return a(e,"ErrorEvent")}function s(e){return a(e,"DOMError")}function l(e){return a(e,"DOMException")}function c(e){return a(e,"String")}function u(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||u(e)||"object"!=typeof e&&"function"!=typeof e}function p(e){return a(e,"Object")}function f(e){return"undefined"!=typeof Event&&v(e,Event)}function h(e){return"undefined"!=typeof Element&&v(e,Element)}function m(e){return a(e,"RegExp")}function g(e){return!!(e?.then&&"function"==typeof e.then)}
470function y(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch(e){return!1}}function b(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function w(e){return"undefined"!=typeof Request&&v(e,Request)}},75184:function(e,t,n){"use strict";n.d(t,{Cf:function(){return l},LD:function(){return s},RU:function(){return o},kg:function(){return c}});var r=n(13094),i=n(74141),a=n(17666);let o=["debug","info","warn","error","log","assert","trace"],s={};function l(e){if(!("console"in a.GLOBAL_OBJ))return e();let t=a.GLOBAL_OBJ.console,n={},r=Object.keys(s);r.forEach(e=>{let r=s[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let c=(0,r.YO)("logger",function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return i.X?o.forEach(n=>{t[n]=(...t)=>{e&&l(()=>{a.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...t)})}}):o.forEach(e=>{t[e]=()=>void 0}),t})},29995:function(e,t,n){"use strict";n.d(t,{DM:function(){return a},Db:function(){return l},EG:function(){return c},YO:function(){return u},jH:function(){return s}});var r=n(40130),i=n(17666);function a(e=function(){let e=i.GLOBAL_OBJ;return e.crypto||e.msCrypto}()){let t=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function o(e){return e.exception?.values?.[0]}function s(e){let{message:t,event_id:n}=e;if(t)return t;let r=o(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function l(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function c(e,t){let n=o(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r?.data,...t.data};n.mechanism.data=e}}function u(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{(0,r.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}},41356:function(e,t,n){"use strict";n.d(t,{Fv:function(){return o},Qy:function(){return function e(t,n=3,r=102400){let i=o(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}}});var r=n(28725),i=n(40130),a=n(61553);function o(e,t=100,n=Infinity){try{return function e(t,n,o=Infinity,s=Infinity,l=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[c,u]=l;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,r.y1)(t))return"[VueViewModel]";if((0,r.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,a.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let n=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(n))return`[HTMLElement: ${n}]`;return`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(t,n);if(!d.startsWith("[object "))return d;if(n.__sentry_skip_normalization__)return n;let p="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:o;if(0===p)return d.replace("object ","");if(c(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,p-1,s,l)}catch(e){}let f=Array.isArray(n)?[]:{},h=0,m=(0,i.Sh)(n);for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(h>=s){f[t]="[MaxProperties ~]";break}let n=m[t];f[t]=e(t,n,p-1,s,l),h++}return u(n),f}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},40130:function(e,t,n){"use strict";n.d(t,{$Q:function(){return u},HK:function(){return d},Sh:function(){return p},hl:function(){return l},xp:function(){return c},zf:function(){return m}});
470var r=n(74141),i=n(15586),a=n(28725),o=n(75184),s=n(12943);function l(e,t,n){if(!(t in e))return;let i=e[t];if("function"!=typeof i)return;let a=n(i);"function"==typeof a&&u(a,i);try{e[t]=a}catch{r.X&&o.kg.log(`Failed to replace method "${t}" in object`,e)}}function c(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){r.X&&o.kg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,c(e,"__sentry_original__",t)}catch(e){}}function d(e){return e.__sentry_original__}function p(e){if((0,a.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...h(e)};if(!(0,a.cO)(e))return e;{let t={type:e.type,target:f(e.target),currentTarget:f(e.currentTarget),...h(e)};return"undefined"!=typeof CustomEvent&&(0,a.V9)(e,CustomEvent)&&(t.detail=e.detail),t}}function f(e){try{return(0,a.kK)(e)?(0,i.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function h(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function m(e,t=40){let n=Object.keys(p(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return(0,s.$G)(r,t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return(0,s.$G)(r,t)}}return""}},40359:function(e,t,n){"use strict";n.d(t,{H:function(){return i},M:function(){return a}});var r=n(29995);function i(){return(0,r.DM)()}function a(){return(0,r.DM)().substring(16)}},61553:function(e,t,n){"use strict";n.d(t,{$P:function(){return u},Fi:function(){return r},Fr:function(){return d},Sq:function(){return s},pE:function(){return o}});let r="?",i=/\(error: (.*)\)/,a=/captureMessage|captureException/;function o(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,o=0)=>{let s=[],c=e.split("\n");for(let e=n;e<c.length;e++){let n=c[e];if(n.length>1024)continue;let r=i.test(n)?n.replace(i,"$1"):n;if(!r.match(/\S*Error: /)){for(let e of t){let t=e(r);if(t){s.push(t);break}}if(s.length>=50+o)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(l(t).function||"")&&t.pop(),t.reverse(),a.test(l(t).function||"")&&(t.pop(),a.test(l(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||l(t).filename,function:e.function||r}))}(s.slice(o))}}function s(e){return Array.isArray(e)?o(...e):e}function l(e){return e[e.length-1]||{}}let c="<anonymous>";function u(e){try{if(!e||"function"!=typeof e)return c;return e.name||c}catch(e){return c}}function d(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(e){}}}},12943:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},U0:function(){return o},nK:function(){return a}});var r=n(28725);function i(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function a(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let i=e[t];try{(0,r.y1)(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function o(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):!!(0,r.HD)(t)&&(n?e===t:e.includes(t)))})(e,t,n))}},70532:function(e,t,n){"use strict";n.d(t,{$2:function(){return s},WD:function(){return o},cW:function(){return l}});var r,i,a=n(28725);function o(e){return new l(t=>{t(e)})}function s(e){return new l((t,n)=>{n(e)})}(r=i||(i={}))[r.PENDING=0]="PENDING",r[r.RESOLVED=1]="RESOLVED",r[r.REJECTED=2]="REJECTED";class l{constructor(e){this._state=i.PENDING,this._handlers=[],this._runExecutor(e)}then(e,t){return new l((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new l((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}_executeHandlers(){if(this._state===i.PENDING)return;let e=this._handlers.slice();
470this._handlers=[],e.forEach(e=>{e[0]||(this._state===i.RESOLVED&&e[1](this._value),this._state===i.REJECTED&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===i.PENDING){if((0,a.J8)(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(i.RESOLVED,e)},r=e=>{t(i.REJECTED,e)};try{e(n,r)}catch(e){r(e)}}}},31347:function(e,t,n){"use strict";let r;n.d(t,{Z1:function(){return s},ph:function(){return o},yW:function(){return a}});var i=n(17666);function a(){return Date.now()/1e3}let o=function(){let{performance:e}=i.GLOBAL_OBJ;if(!e?.now)return a;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();function s(){return r||(r=function(){let{performance:e}=i.GLOBAL_OBJ;if(!e?.now)return[void 0,"none"];let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,a=e.timing?.navigationStart,o="number"==typeof a?Math.abs(a+t-n):36e5;return r<36e5||o<36e5?r<=o?[e.timeOrigin,"timeOrigin"]:[a,"navigationStart"]:[n,"dateNow"]}()),r[0]}},40554:function(e,t,n){"use strict";n.d(t,{$p:function(){return l},Ke:function(){return o},pT:function(){return s}});var r=n(89953),i=n(35654),a=n(40359);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function s(e,t){let n=function(e){let t;if(!e)return;let n=e.match(o);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),s=(0,i.EN)(t);if(!n?.traceId)return{traceId:(0,a.H)(),sampleRand:Math.random()};let l=function(e,t){let n=(0,r.o)(t?.sample_rand);if(void 0!==n)return n;let i=(0,r.o)(t?.sample_rate);return i&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*i:i+Math.random()*(1-i):Math.random()}(n,s);s&&(s.sample_rand=l.toString());let{traceId:c,parentSpanId:u,parentSampled:d}=n;return{traceId:c,parentSpanId:u,sampled:d,dsc:s||{},sampleRand:l}}function l(e=(0,a.H)(),t=(0,a.M)(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}},97543:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="9.30.0"},17666:function(e,t,n){"use strict";n.d(t,{GLOBAL_OBJ:function(){return r}});let r=globalThis},55495:function(e,t,n){"use strict";n.d(t,{gi:function(){return o},yo:function(){return s}});var r=n(97043),i=n(44384),a=n(38146);function o(e,t){let{fingerprint:n,span:i,breadcrumbs:o,sdkProcessingMetadata:s}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&"transaction"!==e.type&&(e.transaction=s)})(e,t),i&&function(e,t){e.contexts={trace:(0,a.wy)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,r.jC)(t),...e.sdkProcessingMetadata};let n=(0,a.Gx)(t),i=(0,a.XU)(n).description;i&&!e.transaction&&"transaction"===e.type&&(e.transaction=i)}(e,i),e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],n&&(e.fingerprint=e.fingerprint.concat(n)),e.fingerprint.length||delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...s}}function s(e,t){let{extra:n,tags:r,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:d,eventProcessors:p,attachments:f,propagationContext:h,transactionName:m,span:g}=t;l(e,"extra",n),l(e,"tags",r),l(e,"user",a),l(e,"contexts",o),e.sdkProcessingMetadata=(0,i.T)(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),g&&(e.span=g),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...h}}function l(e,t,n){e[t]=(0,i.T)(e[t],n,1)}},48467:function(e,t,n){"use strict";function r(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch(e){}return t}n.d(t,{h:function(){return r}})},25496:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(39164);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||r.s3()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}},44384:function(e,t,n){"use strict";n.d(t,{T:function(){return function e(t,n,r=2){if(!n||"object"!=typeof n||r<=0)return n;if(t&&0===Object.keys(n).length)return t;let i={...t};for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=e(i[t],n[t],r-1));return i}}})}
470,89953:function(e,t,n){"use strict";function r(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}n.d(t,{o:function(){return r}})},63656:function(e,t,n){"use strict";let r,i,a;n.d(t,{U0:function(){return w},R:function(){return b}});var o=n(42520),s=n(39164),l=n(74141),c=n(28725),u=n(75184),d=n(70532),p=n(42712),f=n(17666),h=n(29995),m=n(41356),g=n(12943),y=n(31347),v=n(55495);function b(e,t,n,b,w,_){let{normalizeDepth:x=3,normalizeMaxBreadth:E=1e3}=e,S={...t,event_id:t.event_id||n.event_id||(0,h.DM)(),timestamp:t.timestamp||(0,y.yW)()},k=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:a=250}=t;e.environment=e.environment||n||o.J,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let s=e.request;s?.url&&(s.url=(0,g.$G)(s.url,a))})(S,e),k.length>0&&(S.sdk=S.sdk||{},S.sdk.integrations=[...S.sdk.integrations||[],...k]),w&&w.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let n=function(e){let t=f.GLOBAL_OBJ._sentryDebugIds;if(!t)return{};let n=Object.keys(t);return a&&n.length===i?a:(i=n.length,a=n.reduce((n,i)=>{r||(r={});let a=r[i];if(a)n[a[0]]=a[1];else{let a=e(i);for(let e=a.length-1;e>=0;e--){let o=a[e],s=o?.filename,l=t[i];if(s&&l){n[s]=l,r[i]=[s,l];break}}}return n},{}))}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}(S,e.stackParser);let C=function(e,t){if(!t)return e;let n=e?e.clone():new p.s;return n.update(t),n}(b,n.captureContext);n.mechanism&&(0,h.EG)(S,n.mechanism);let I=w?w.getEventProcessors():[],A=(0,s.lW)().getScopeData();if(_){let e=_.getScopeData();(0,v.yo)(A,e)}if(C){let e=C.getScopeData();(0,v.yo)(A,e)}let T=[...n.attachments||[],...A.attachments];return T.length&&(n.attachments=T),(0,v.gi)(S,A),(function e(t,n,r,i=0){return new d.cW((a,o)=>{let s=t[i];if(null===n||"function"!=typeof s)a(n);else{let d=s({...n},r);l.X&&s.id&&null===d&&u.kg.log(`Event processor "${s.id}" dropped event`),(0,c.J8)(d)?d.then(n=>e(t,n,r,i+1).then(a)).then(null,o):e(t,d,r,i+1).then(a).then(null,o)}})})([...I,...A.eventProcessors],S,n).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof x&&x>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,m.Fv)(e.data,t,n)}}))},...e.user&&{user:(0,m.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,m.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,m.Fv)(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,m.Fv)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,m.Fv)(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=(0,m.Fv)(e.contexts.flags,3,n)),r}(e,x,E):e)}function w(e){return e?e instanceof p.s||"function"==typeof e||Object.keys(e).some(e=>_.includes(e))?{captureContext:e}:e:void 0}let _=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},12856:function(e,t,n){"use strict";n.d(t,{D:function(){return a},Y:function(){return o}});var r=n(40130);let i="_sentrySpan";function a(e,t){t?(0,r.xp)(e,i,t):delete e[i]}function o(e){return e[i]}},38146:function(e,t,n){"use strict";n.d(t,{$k:function(){return x},Dp:function(){return N},FF:function(){return _},Gx:function(){return O},HN:function(){return P},HR:function(){return v},Hb:function(){return w},R6:function(){return D},Tt:function(){return k},XU:function(){return S},_4:function(){return C},ed:function(){return R},i0:function(){return g},j5:function(){return T},ve:function(){return m},wy:function(){return b}});var r=n(78749),i=n(13094),a=n(39164),o=n(2796),s=n(38443),l=n(58336),c=n(75184),u=n(40130),d=n(40359),p=n(31347),f=n(40554),h=n(12856);let m=0,g=1,y=!1;function v(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:l}=S(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:l}}function b(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:S(e).parent_span_id,a=(0,l.I)(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||(0,d.M)():t,trace_id:n}}function w(e){let{traceId:t,spanId:n}=e.spanContext(),r=k(e);return(0,f.$p)(t,n,r)}function _(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===g,attributes:i,...r})):void 0}function x(e){return"number"==typeof e?E(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?E(e.getTime()):(0,p.ph)()}function E(e){return e>9999999999?e/1e3:e}function S(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:r,startTime:i,name:a,endTime:s,status:l,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:x(i),timestamp:x(s)||void 0,status:C(l),op:r[o.$J],origin:r[o.S3],links:_(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function k(e){let{traceFlags:t}=e.spanContext();return t===g}function C(e){return e&&e.code!==s.pq?e.code===s.OP?"ok":e.message||"unknown_error":void 0}let I="_sentryChildSpans",A="_sentryRootSpan";function T(e,t){let n=e[A]||e;(0,u.xp)(t,A,n),e[I]?e[I].add(t):(0,u.xp)(e,I,new Set([t]))}function R(e,t){e[I]&&e[I].delete(t)}function N(e){let t=new Set;return!function e(n){if(!t.has(n)&&k(n))for(let r of(t.add(n),n[I]?Array.from(n[I]):[]))e(r)}(e),Array.from(t)}function O(e){return e[A]||e}function P(){let e=(0,i.cu)(),t=(0,r.G)(e);return t.getActiveSpan?t.getActiveSpan():(0,h.Y)((0,a.nZ)())}function D(){y||((0,c.Cf)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),y=!0)}},33459:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},4814:function(e,t,n){"use strict";function r(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var a=t.length;for(n=0;n<a;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{W:function(){return r}}),t.Z=r},25688:function(e,t,n){"use strict";n.d(t,{t:function(){return eD}});var r,i,a="0123456789abcdef",o="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",s="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823
470066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",l={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},c=!0,u="[DecimalError] ",d=u+"Invalid argument: ",p=u+"Precision limit exceeded",f=u+"crypto unavailable",h="[object Decimal]",m=Math.floor,g=Math.pow,y=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,v=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,b=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,w=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,_=o.length-1,x=s.length-1,E={toStringTag:h};function S(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(a+=M(n)),a+=r;(n=7-(r=(o=e[t])+"").length)&&(a+=M(n))}else if(0===o)return"0";for(;o%10==0;)o/=10;return a+o}function k(e,t,n){if(e!==~~e||e<t||e>n)throw Error(d+e)}function C(e,t,n,r){var i,a,o,s;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),a=g(10,7-t),s=e[i]%a|0,null==r?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),o=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):o=(n<4&&s+1==a||n>3&&s+1==a/2)&&(e[i+1]/a/100|0)==g(10,t-2)-1||(s==a/2||0==s)&&(e[i+1]/a/100|0)==0:t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),o=(r||n<4)&&9999==s||!r&&n>3&&4999==s):o=((r||n<4)&&s+1==a||!r&&n>3&&s+1==a/2)&&(e[i+1]/a/1e3|0)==g(10,t-3)-1,o}function I(e,t,n){for(var r,i,o=[0],s=0,l=e.length;s<l;){for(i=o.length;i--;)o[i]*=t;for(o[0]+=a.indexOf(e.charAt(s++)),r=0;r<o.length;r++)o[r]>n-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}E.absoluteValue=E.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),T(e)},E.ceil=function(){return T(new this.constructor(this),this.e+1,2)},E.clampedTo=E.clamp=function(e,t){var n=this.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error(d+t);return 0>this.cmp(e)?e:this.cmp(t)>0?t:new n(this)},E.comparedTo=E.cmp=function(e){var t,n,r,i,a=this.d,o=(e=new this.constructor(e)).d,s=this.s,l=e.s;if(!a||!o)return s&&l?s!==l?s:a===o?0:!a^s<0?1:-1:NaN;if(!a[0]||!o[0])return a[0]?s:o[0]?-l:0;if(s!==l)return s;if(this.e!==e.e)return this.e>e.e^s<0?1:-1;for(t=0,n=(r=a.length)<(i=o.length)?r:i;t<n;++t)if(a[t]!==o[t])return a[t]>o[t]^s<0?1:-1;return r===i?0:r>i^s<0?1:-1},E.cosine=E.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r,i;if(t.isZero())return t;(r=t.d.length)<32?i=(1/V(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10"),e.precision+=n,t=Z(e,1,t.times(i),new e(1));for(var a=n;a--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=n,t}(r,q(r,n)),r.precision=e,r.rounding=t,T(2==i||3==i?n.neg():n,e,t,!0)):new r(1):new r(NaN)},E.cubeRoot=E.cbrt=function(){var e,t,n,r,i,a,o,s,l,u,d=this.constructor;if(!this.isFinite()||this.isZero())return new d(this);for(c=!1,(a=this.s*g(this.s*this,1/3))&&Math.abs(a)!=1/0?r=new d(a.toString()):(n=S(this.d),(a=((e=this.e)-n.length+1)%3)&&(n+=1==a||-2==a?"0":"00"),a=g(n,1/3),e=m((e+1)/3)-(e%3==(e<0?-1:2)),(r=new d(n=a==1/0?"5e"+e:(n=a.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=this.s),o=(e=d.precision)+3;;)if(r=A((u=(l=(s=r).times(s).times(s)).plus(this)).plus(this).times(s),u.plus(l),o+2,1),S(s.d).slice(0,o)===(n=S(r.d)).slice(0,o)){if
vendor: 4,221 bytes, line 470
470("9999"!=(n=n.slice(o-3,o+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(T(r,e+1,1),t=!r.times(r).times(r).eq(this));break}if(!i&&(T(s,e+1,0),s.times(s).times(s).eq(this))){r=s;break}o+=4,i=1}return c=!0,T(r,e,d.rounding,t)},E.decimalPlaces=E.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=((e=t.length-1)-m(this.e/7))*7,e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},E.dividedBy=E.div=function(e){return A(this,new this.constructor(e))},E.dividedToIntegerBy=E.divToInt=function(e){var t=this.constructor;return T(A(this,new t(e),0,1,1),t.precision,t.rounding)},E.equals=E.eq=function(e){return 0===this.cmp(e)},E.floor=function(){return T(new this.constructor(this),this.e+1,3)},E.greaterThan=E.gt=function(e){return this.cmp(e)>0},E.greaterThanOrEqualTo=E.gte=function(e){var t=this.cmp(e);return 1==t||0===t},E.hyperbolicCosine=E.cosh=function(){var e,t,n,r,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;n=o.precision,r=o.rounding,o.precision=n+Math.max(a.e,a.sd())+4,o.rounding=1,(i=a.d.length)<32?t=(1/V(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),a=Z(o,1,a.times(t),new o(1),!0);for(var l,c=e,u=new o(8);c--;)l=a.times(a),a=s.minus(l.times(u.minus(l.times(u))));return T(a,o.precision=n,o.rounding=r,!0)},E.hyperbolicSine=E.sinh=function(){var e,t,n,r,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,n=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,(r=i.d.length)<3)i=Z(a,2,i,i,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,i=Z(a,2,i=i.times(1/V(5,e)),i,!0);for(var o,s=new a(5),l=new a(16),c=new a(20);e--;)o=i.times(i),i=i.times(s.plus(o.times(l.times(o).plus(c))))}return a.precision=t,a.rounding=n,T(i,t,n,!0)},E.hyperbolicTangent=E.tanh=function(){var e,t,n=this.constructor;return this.isFinite()?this.isZero()?new n(this):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,A(this.sinh(),this.cosh(),n.precision=e,n.rounding=t)):new n(this.s)},E.inverseCosine=E.acos=function(){var e=this,t=e.constructor,n=e.abs().cmp(1),r=t.precision,i=t.rounding;return -1!==n?0===n?e.isNeg()?P(t,r,i):new t(0):new t(NaN):e.isZero()?P(t,r+4,i).times(.5):(t.precision=r+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=r,t.rounding=i,e.times(2))},E.inverseHyperbolicCosine=E.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,c=!1,n=n.times(n).minus(1).sqrt().plus(n),c=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},E.inverseHyperbolicSine=E.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,c=!1,n=n.times(n).plus(1).sqrt().plus(n),c=!0,r.precision=e,r.rounding=t,n.ln())},E.inverseHyperbolicTangent=E.atanh=function(){var e,t,n,r,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,Math.max(r=i.sd(),e)<-(2*i.e)-1)?T(new a(i),e,t,!0):(a.precision=n=r-i.e,i=A(i.plus(1),new a(1).minus(i),n+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5)):new a(NaN)},E.inverseSine=E.asin=function(){var e,t,n,r,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),n=a.precision,r=a.rounding,-1!==t)?0===t?((e=P(a,n+4,r).times(.5)).s=i.s,e):new a(NaN):(a.precision=n+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=n,a.rounding=r,i.times(2))},E.inverseTangent=E.atan=function(){var e,t,n,r,i,a,o,s,l,u=this,d=u.constructor,p=d.precision,f=d.rounding;if(u.isFinite()){if(u.isZero())return new d(u);if(u.abs().eq(1)&&p+4<=x)return(o=P(d,p+4,f).times(.25)).s=u.s,o}else{if(!u.s)return new d(NaN);if(p+4<=x)return(o=P(d,p+4,f).times(.5)).s=u.s,o}for(d.precision=s=p+10,d.rounding=1,e=n=Math.min(28,s/7+2|0);e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(c=!1,t=Math.ceil(s/7),r=1,l=u.times(u),o=new d(u),i=u;-1!==e;)if(i=i.times(l),a=o.minus(i.div(r+=2)),i=i.times(l),void 0!==(o=a.plus(i.div(r+=2))).d[t])for(e=t;o.d[e]===a.d[e]&&e--;);
470return n&&(o=o.times(2<<n-1)),c=!0,T(o,d.precision=p,d.rounding=f,!0)},E.isFinite=function(){return!!this.d},E.isInteger=E.isInt=function(){return!!this.d&&m(this.e/7)>this.d.length-2},E.isNaN=function(){return!this.s},E.isNegative=E.isNeg=function(){return this.s<0},E.isPositive=E.isPos=function(){return this.s>0},E.isZero=function(){return!!this.d&&0===this.d[0]},E.lessThan=E.lt=function(e){return 0>this.cmp(e)},E.lessThanOrEqualTo=E.lte=function(e){return 1>this.cmp(e)},E.logarithm=E.log=function(e){var t,n,r,i,a,o,s,l=this.constructor,u=l.precision,d=l.rounding;if(null==e)e=new l(10),t=!0;else{if(n=(e=new l(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new l(NaN);t=e.eq(10)}if(n=this.d,this.s<0||!n||!n[0]||this.eq(1))return new l(n&&!n[0]?-1/0:1!=this.s?NaN:n?0:1/0);if(t){if(n.length>1)i=!0;else{for(r=n[0];r%10==0;)r/=10;i=1!==r}}if(c=!1,C((s=A(B(this,o=u+5),t?O(l,o+10):B(e,o),o,1)).d,r=u,d))do if(o+=10,s=A(B(this,o),t?O(l,o+10):B(e,o),o,1),!i){+S(s.d).slice(r+1,r+15)+1==1e14&&(s=T(s,u+1,0));break}while(C(s.d,r+=10,d));return c=!0,T(s,u,d)},E.minus=E.sub=function(e){var t,n,r,i,a,o,s,l,u,d,p,f,h=this.constructor;if(e=new h(e),!this.d||!e.d)return this.s&&e.s?this.d?e.s=-e.s:e=new h(e.d||this.s!==e.s?this:NaN):e=new h(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.plus(e);if(u=this.d,f=e.d,s=h.precision,l=h.rounding,!u[0]||!f[0]){if(f[0])e.s=-e.s;else{if(!u[0])return new h(3===l?-0:0);e=new h(this)}return c?T(e,s,l):e}if(n=m(e.e/7),d=m(this.e/7),u=u.slice(),a=d-n){for((p=a<0)?(t=u,a=-a,o=f.length):(t=f,n=d,o=u.length),a>(r=Math.max(Math.ceil(s/7),o)+2)&&(a=r,t.length=1),t.reverse(),r=a;r--;)t.push(0);t.reverse()}else{for((p=(r=u.length)<(o=f.length))&&(o=r),r=0;r<o;r++)if(u[r]!=f[r]){p=u[r]<f[r];break}a=0}for(p&&(t=u,u=f,f=t,e.s=-e.s),o=u.length,r=f.length-o;r>0;--r)u[o++]=0;for(r=f.length;r>a;){if(u[--r]<f[r]){for(i=r;i&&0===u[--i];)u[i]=1e7-1;--u[i],u[r]+=1e7}u[r]-=f[r]}for(;0===u[--o];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(e.d=u,e.e=N(u,n),c?T(e,s,l):e):new h(3===l?-0:0)},E.modulo=E.mod=function(e){var t,n=this.constructor;return(e=new n(e),this.d&&e.s&&(!e.d||e.d[0]))?e.d&&(!this.d||this.d[0])?(c=!1,9==n.modulo?(t=A(this,e.abs(),0,3,1),t.s*=e.s):t=A(this,e,0,n.modulo,1),t=t.times(e),c=!0,this.minus(t)):T(new n(this),n.precision,n.rounding):new n(NaN)},E.naturalExponential=E.exp=function(){return F(this)},E.naturalLogarithm=E.ln=function(){return B(this)},E.negated=E.neg=function(){var e=new this.constructor(this);return e.s=-e.s,T(e)},E.plus=E.add=function(e){var t,n,r,i,a,o,s,l,u,d,p=this.constructor;if(e=new p(e),!this.d||!e.d)return this.s&&e.s?this.d||(e=new p(e.d||this.s===e.s?this:NaN)):e=new p(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.minus(e);if(u=this.d,d=e.d,s=p.precision,l=p.rounding,!u[0]||!d[0])return d[0]||(e=new p(this)),c?T(e,s,l):e;if(a=m(this.e/7),r=m(e.e/7),u=u.slice(),i=a-r){for(i<0?(n=u,i=-i,o=d.length):(n=d,r=a,o=u.length),i>(o=(a=Math.ceil(s/7))>o?a+1:o+1)&&(i=o,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((o=u.length)-(i=d.length)<0&&(i=o,n=d,d=u,u=n),t=0;i;)t=(u[--i]=u[i]+d[i]+t)/1e7|0,u[i]%=1e7;for(t&&(u.unshift(t),++r),o=u.length;0==u[--o];)u.pop();return e.d=u,e.e=N(u,r),c?T(e,s,l):e},E.precision=E.sd=function(e){var t;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(d+e);return this.d?(t=D(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},E.round=function(){var e=this.constructor;return T(new e(this),this.e+1,e.rounding)},E.sine=E.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:Z(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=Z(e,2,t=t.times(1/V(5,n)),t);for(var i,a=new e(5),o=new e(16),s=new e(20);n--;)i=t.times(t),t=t.times(a.plus(i.times(o.times(i).minus(s))));return t}(r,q(r,n)),r.precision=e,r.rounding=t,T(i>2?n.neg():n,e,t,!0)):new r(NaN)},E.squareRoot=E.sqrt=function(){var e,t,n,r,i,a,o=this.d,s=this.e,l=this.s,u=this.constructor;if(1!==l||!o||!o[0])return new u(!l||l<0&&(!o||o[0])?NaN:o?this:1/0);for(c=!1,0==(l=Math.sqrt(+this))||l==1/0?(((t=S(o)).length+s)%2==0&&(t+="0"),l=Math.sqrt(t),s=m((s+1)/2)-(s<0||s%2),r=new u(t=l==1/0?"5e"+s:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new u(l.toString()),n=(s=u.precision)+3;;)if(r=(a=r).plus(A(this,a,n+2,1)).times(.5),S(a.d).slice(0,n)===(t=S(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(T(r,s+1,1),e=!r.times(r).eq(this));break}if(!i&&(T(a,s+1,0),a.times(a).eq(this))){r=a;break}n+=4,i=1}return c=!0,T(r,s,u.rounding,e)},E.tangent=E.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=A(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,T(2==i||4==i?n.neg():n,e,t,!0)):new r(NaN)},E.times=E.mul=function(e){var t,n,r,i,a,o,s,l,u,d=this.constructor,p=this.d,f=(e=new d(e)).d;if(e.s*=this.s,!p||!p[0]||!f||!f[0])return new d(e.s&&(!p||p[0]||f)&&(!f||f[0]||p)?p&&f?0*e.s:e.s/0:NaN);
470for(n=m(this.e/7)+m(e.e/7),(l=p.length)<(u=f.length)&&(a=p,p=f,f=a,o=l,l=u,u=o),a=[],r=o=l+u;r--;)a.push(0);for(r=u;--r>=0;){for(t=0,i=l+r;i>r;)s=a[i]+f[r]*p[i-r-1]+t,a[i--]=s%1e7|0,t=s/1e7|0;a[i]=(a[i]+t)%1e7|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=N(a,n),c?T(e,d.precision,d.rounding):e},E.toBinary=function(e,t){return W(this,2,e,t)},E.toDecimalPlaces=E.toDP=function(e,t){var n=this,r=n.constructor;return(n=new r(n),void 0===e)?n:(k(e,0,1e9),void 0===t?t=r.rounding:k(t,0,8),T(n,e+n.e+1,t))},E.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=R(r,!0):(k(e,0,1e9),void 0===t?t=i.rounding:k(t,0,8),n=R(r=T(new i(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},E.toFixed=function(e,t){var n,r,i=this.constructor;return void 0===e?n=R(this):(k(e,0,1e9),void 0===t?t=i.rounding:k(t,0,8),n=R(r=T(new i(this),e+this.e+1,t),!1,e+r.e+1)),this.isNeg()&&!this.isZero()?"-"+n:n},E.toFraction=function(e){var t,n,r,i,a,o,s,l,u,p,f,h,m=this.d,y=this.constructor;if(!m)return new y(this);if(u=n=new y(1),r=l=new y(0),o=(a=(t=new y(r)).e=D(m)-this.e-1)%7,t.d[0]=g(10,o<0?7+o:o),null==e)e=a>0?t:u;else{if(!(s=new y(e)).isInt()||s.lt(u))throw Error(d+s);e=s.gt(t)?a>0?t:u:s}for(c=!1,s=new y(S(m)),p=y.precision,y.precision=a=14*m.length;f=A(s,t,0,1,1),1!=(i=n.plus(f.times(r))).cmp(e);)n=r,r=i,i=u,u=l.plus(f.times(i)),l=i,i=t,t=s.minus(f.times(i)),s=i;return i=A(e.minus(n),r,0,1,1),l=l.plus(i.times(u)),n=n.plus(i.times(r)),l.s=u.s=this.s,h=1>A(u,r,a,1).minus(this).abs().cmp(A(l,n,a,1).minus(this).abs())?[u,r]:[l,n],y.precision=p,c=!0,h},E.toHexadecimal=E.toHex=function(e,t){return W(this,16,e,t)},E.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:k(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(c=!1,n=A(n,e,0,t,1).times(e),c=!0,T(n)):(e.s=n.s,n=e),n},E.toNumber=function(){return+this},E.toOctal=function(e,t){return W(this,8,e,t)},E.toPower=E.pow=function(e){var t,n,r,i,a,o,s=this,l=s.constructor,u=+(e=new l(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new l(g(+s,u));if((s=new l(s)).eq(1))return s;if(r=l.precision,a=l.rounding,e.eq(1))return T(s,r,a);if((t=m(e.e/7))>=e.d.length-1&&(n=u<0?-u:u)<=9007199254740991)return i=$(l,s,n,r),e.s<0?new l(1).div(i):T(i,r,a);if((o=s.s)<0){if(t<e.d.length-1)return new l(NaN);if((1&e.d[t])==0&&(o=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=o,s}return(t=0!=(n=g(+s,u))&&isFinite(n)?new l(n+"").e:m(u*(Math.log("0."+S(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?o/0:0):(c=!1,l.rounding=s.s=1,n=Math.min(12,(t+"").length),(i=F(e.times(B(s,r+n)),r)).d&&C((i=T(i,r+5,1)).d,r,a)&&(t=r+10,+S((i=T(F(e.times(B(s,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=T(i,r+1,0))),i.s=o,c=!0,l.rounding=a,T(i,r,a))},E.toPrecision=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=R(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(k(e,1,1e9),void 0===t?t=i.rounding:k(t,0,8),n=R(r=T(new i(r),e,t),e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},E.toSignificantDigits=E.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(k(e,1,1e9),void 0===t?t=n.rounding:k(t,0,8)),T(new n(this),e,t)},E.toString=function(){var e=this.constructor,t=R(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},E.truncated=E.trunc=function(){return T(new this.constructor(this),this.e+1,1)},E.valueOf=E.toJSON=function(){var e=this.constructor,t=R(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var A=function(){function e(e,t,n){var r,i=0,a=e.length;for(e=e.slice();a--;)r=e[a]*t+i,e[a]=r%n|0,i=r/n|0;return i&&e.unshift(i),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(i,a,o,s,l,c){var u,d,p,f,h,g,y,v,b,w,_,x,E,S,k,C,I,A,R,N,O=i.constructor,P=i.s==a.s?1:-1,D=i.d,M=a.d;if(!D||!D[0]||!M||!M[0])return new O(i.s&&a.s&&(D?!M||D[0]!=M[0]:M)?D&&0==D[0]||!M?0*P:P/0:NaN);for(c?(h=1,d=i.e-a.e):(c=1e7,h=7,d=m(i.e/h)-m(a.e/h)),R=M.length,I=D.length,w=(b=new O(P)).d=[],p=0;M[p]==(D[p]||0);p++);if(M[p]>(D[p]||0)&&d--,null==o?(S=o=O.precision,s=O.rounding):S=l?o+(i.e-a.e)+1:o,S<0)w.push(1),g=!0;else{if(S=S/h+2|0,p=0,1==R){for(f=0,M=M[0],S++;(p<I||f)&&S--;p++)k=f*c+(D[p]||0),w[p]=k/M|0,f=k%M|0;g=f||p<I}else{for((f=c/(M[0]+1)|0)>1&&(M=e(M,f,c),D=e(D,f,c),R=M.length,I=D.length),C=R,x=(_=D.slice(0,R)).length;x<R;)_[x++]=0;(N=M.slice()).unshift(0),A=M[0],M[1]>=c/2&&++A;do f=0,(u=t(M,_,R,x))<0?(E=_[0],R!=x&&(E=E*c+(_[1]||0)),(f=E/A|0)>1?(f>=c&&(f=c-1),v=(y=e(M,f,c)).length,x=_.length,1==(u=t(y,_,v,x))&&(f--,n(y,R<v?N:M,v,c))):(0==f&&(u=f=1),y=M.slice()),(v=y.length)<x&&y.unshift(0),n(_,y,x,c),-1==u&&(x=_.length,(u=t(M,_,R,x))<1&&(f++,n(_,R<x?N:M,x,c))),x=_.length):0===u&&(f++,_=[0]),w[p++]=f,u&&_[0]?_[x++]=D[C]||0:(_=[D[C]],x=1);while((C++<I||void 0!==_[0])&&S--);g=void 0!==_[0]}w[0]||w.shift()}if(1==h)b.e=d,r=g;else{for(p=1,f=w[0];f>=10;f/=10)p++;b.e=p+d*h-1,T(b,l?o+b.e+1:o,s,g)}return b}}();function T(e,t,n,r){var i,a,o,s,l,u,d,p,f,h=e.constructor;t:if(null!=t){if(!(p=e.d))return e;for(i=1,s=p[0];s>=10;s/=10)i++;if((a=t-i)<0)a+=7,o=t,l=(d=p[f=0])/g(10,i-o-1)%10|0;else if((f=Math.ceil((a+1)/7))>=(s=p.length)){if(r){for(;s++<=f;)p.push(0);
vendor: 8,001 bytes, line 470
470d=l=0,i=1,a%=7,o=a-7+1}else break t}else{for(i=1,d=s=p[f];s>=10;s/=10)i++;a%=7,l=(o=a-7+i)<0?0:d/g(10,i-o-1)%10|0}if(r=r||t<0||void 0!==p[f+1]||(o<0?d:d%g(10,i-o-1)),u=n<4?(l||r)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||r||6==n&&(a>0?o>0?d/g(10,i-o):0:p[f-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,u?(t-=e.e+1,p[0]=g(10,(7-t%7)%7),e.e=-t||0):p[0]=e.e=0,e;if(0==a?(p.length=f,s=1,f--):(p.length=f+1,s=g(10,7-a),p[f]=o>0?(d/g(10,i-o)%g(10,o)|0)*s:0),u)for(;;){if(0==f){for(a=1,o=p[0];o>=10;o/=10)a++;for(o=p[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(e.e++,1e7==p[0]&&(p[0]=1));break}if(p[f]+=s,1e7!=p[f])break;p[f--]=0,s=1}for(a=p.length;0===p[--a];)p.pop()}return c&&(e.e>h.maxE?(e.d=null,e.e=NaN):e.e<h.minE&&(e.e=0,e.d=[0])),e}function R(e,t,n){if(!e.isFinite())return U(e);var r,i=e.e,a=S(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+"."+a.slice(1)+M(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):i<0?(a="0."+M(-i-1)+a,n&&(r=n-o)>0&&(a+=M(r))):i>=o?(a+=M(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+M(r))):((r=i+1)<o&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+="."),a+=M(r))),a}function N(e,t){var n=e[0];for(t*=7;n>=10;n/=10)t++;return t}function O(e,t,n){if(t>_)throw c=!0,n&&(e.precision=n),Error(p);return T(new e(o),t,1,!0)}function P(e,t,n){if(t>x)throw Error(p);return T(new e(s),t,n,!0)}function D(e){var t=e.length-1,n=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function M(e){for(var t="";e--;)t+="0";return t}function $(e,t,n,r){var i,a=new e(1),o=Math.ceil(r/7+4);for(c=!1;;){if(n%2&&G((a=a.times(t)).d,o)&&(i=!0),0===(n=m(n/2))){n=a.d.length-1,i&&0===a.d[n]&&++a.d[n];break}G((t=t.times(t)).d,o)}return c=!0,a}function j(e){return 1&e.d[e.d.length-1]}function L(e,t,n){for(var r,i,a=new e(t[0]),o=0;++o<t.length;){if(!(i=new e(t[o])).s){a=i;break}((r=a.cmp(i))===n||0===r&&a.s===n)&&(a=i)}return a}function F(e,t){var n,r,i,a,o,s,l,u=0,d=0,p=0,f=e.constructor,h=f.rounding,m=f.precision;if(!e.d||!e.d[0]||e.e>17)return new f(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:0/0);for(null==t?(c=!1,l=m):l=t,s=new f(.03125);e.e>-2;)e=e.times(s),p+=5;for(l+=r=Math.log(g(2,p))/Math.LN10*2+5|0,n=a=o=new f(1),f.precision=l;;){if(a=T(a.times(e),l,1),n=n.times(++d),S((s=o.plus(A(a,n,l,1))).d).slice(0,l)===S(o.d).slice(0,l)){for(i=p;i--;)o=T(o.times(o),l,1);if(null!=t)return f.precision=m,o;if(!(u<3&&C(o.d,l-r,h,u)))return T(o,f.precision=m,h,c=!0);f.precision=l+=10,n=a=s=new f(1),d=0,u++}o=s}}function B(e,t){var n,r,i,a,o,s,l,u,d,p,f,h=1,m=e,g=m.d,y=m.constructor,v=y.rounding,b=y.precision;if(m.s<0||!g||!g[0]||!m.e&&1==g[0]&&1==g.length)return new y(g&&!g[0]?-1/0:1!=m.s?NaN:g?0:m);if(null==t?(c=!1,d=b):d=t,y.precision=d+=10,r=(n=S(g)).charAt(0),!(15e14>Math.abs(a=m.e)))return u=O(y,d+2,b).times(a+""),m=B(new y(r+"."+n.slice(1)),d-10).plus(u),y.precision=b,null==t?T(m,b,v,c=!0):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=S((m=m.times(e)).d)).charAt(0),h++;for(a=m.e,r>1?(m=new y("0."+n),a++):m=new y(r+"."+n.slice(1)),p=m,l=o=m=A(m.minus(1),m.plus(1),d,1),f=T(m.times(m),d,1),i=3;;){if(o=T(o.times(f),d,1),S((u=l.plus(A(o,new y(i),d,1))).d).slice(0,d)===S(l.d).slice(0,d)){if(l=l.times(2),0!==a&&(l=l.plus(O(y,d+2,b).times(a+""))),l=A(l,new y(h),d,1),null!=t)return y.precision=b,l;if(!C(l.d,d-10,v,s))return T(l,y.precision=b,v,c=!0);y.precision=d+=10,u=o=m=A(p.minus(1),p.plus(1),d,1),f=T(m.times(m),d,1),i=s=1}l=u,i+=2}}function U(e){return String(e.s*e.s/0)}function z(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);r++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(r,i)){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=7;r<i;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=i;for(;r--;)t+="0";e.d.push(+t),c&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function Z(e,t,n,r,i){var a,o,s,l,u=e.precision,d=Math.ceil(u/7);for(c=!1,l=n.times(n),s=new e(r);;){if(o=A(s.times(l),new e(t++*t++),u,1),s=i?r.plus(o):r.minus(o),r=A(o.times(l),new e(t++*t++),u,1),void 0!==(o=s.plus(r)).d[d]){for(a=d;o.d[a]===s.d[a]&&a--;);if(-1==a)break}a=s,s=r,r=o,o=a}return c=!0,o.d.length=d+1,o}function V(e,t){for(var n=e;--t;)n*=e;return n}function q(e,t){var n,r=t.s<0,a=P(e,e.precision,1),o=a.times(.5);if((t=t.abs()).lte(o))return i=r?4:1,t;if((n=t.divToInt(a)).isZero())i=r?3:2;else{if((t=t.minus(n.times(a))).lte(o))return i=j(n)?r?2:3:r?4:1,t;i=j(n)?r?1:4:r?3:2}return t.minus(a).abs()}function W(e,t,n,i){var o,s,l,c,u,d,p,f,h,m=e.constructor,g=void 0!==n;if(g?(k(n,1,1e9),void 0===i?i=m.rounding:k(i,0,8)):(n=m.precision,i=m.rounding),e.isFinite()){for(l=(p=R(e)).indexOf("."),g?(o=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):o=t,l>=0&&(p=p.replace(".",""),(h=new m(1)).e=p.length-l,h.d=I(R(h),10,o),h.e=h.d.length),s=u=(f=I(p,10,o)).length;0==f[--u];)f.pop();if(f[0]){if(l<0?s--:((e=new m(e)).d=f,e.e=s,f=(e=A(e,h,n,i,0,o)).d,s=e.e,d=r),l=f[n],c=o/2,d=d||void 0!==f[n+1],d=i<4?(void 0!==l||d)&&(0===i||i===(e.s<0?3:2)):l>c||l===c&&(4===i||d||6===i&&1&f[n-1]||i===(e.s<0?8:7)),f.length=n,d)for(;++f[--n]>o-1;)f[n]=0,n||(++s,f.unshift(1));for(u=f.length;!f[u-1];--u);for(l=0,p="";l<u;l++)p+=a.charAt(f[l]);if(g){if(u>1){if(16==t||8==t){for(l=16==t?4:3,--u;u%l;u++)p+="0";for(u=(f=I(p,o,t)).length;!f[u-1];--u);for(l=1,p="1.";l<u;l++)p+=a.charAt(f[l])}else p=p.charAt(0)+"."+p.slice(1)}p=p+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)p="0"+p;p="0."+p}else if(++s>u)for(s-=u;s--;)p+="0";else s<u&&(p=p.slice(0,s)+"."+p.slice(s))}else p=g?"0p+0":"0";p=(16==t?"0x":2==t?"0b":8==t?"0o":"")+p}else p=U(e);return e.s<0?"-"+p:p}function G(e,t){if(e.length>t)return e.length=t,!0}function H(e){return new this(e).abs()}function Y(e){return new this(e).acos()}function K(e){return new this(e).acosh()}function J(e,t){return new this(e).plus(t)}function X(e){return new this(e).asin()}function Q(e){return new this(e).asinh()}function ee(e){return new this(e).atan()}function et(e){return new this(e).atanh()}function en(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,a=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?P(this,r,i):new this(0)).s=e.s:!e.d||t.isZero()?(n=P(this,a,1).times(.5)).s=e.s:t.s<0?(this.precision=a,this.rounding=1,n=this.atan(A(e,t,a,1)),t=P(this,a,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(A(e,t,a,1)):(n=P(this,a,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function er(e){return new this(e).cbrt()}function ei(e){return T(e=new this(e),e.e+1,2)}function ea(e,t,n){return new this(e).clamp(t,n)}function eo(e){if(!e||"object"!=typeof e)throw Error(u+"Object expected");var t,n,r,i=!0===e.defaults,a=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(t=0;t<a.length;t+=3)if(n=a[t],i&&(this[n]=l[n]),void 0!==(r=e[n])){if(m(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(d+n+": "+r)}if(n="crypto",i&&(this[n]=l[n]),void 0!==(r=e[n])){if(!0===r||!1===r||0===r||1===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(f)}else this[n]=!1}else throw Error(d+n+": "+r)}return this}function es(e){return new this(e).cos()}function el(e){return new this(e).cosh()}function ec(e,t){return new this(e).div(t)}function eu(e){return new this(e).exp()}function ed(e){return T(e=new this(e),e.e+1,3)}function ep(){var e,t,n=new this(0);for(e=0,c=!1;e<arguments.length;)if(t=new this(arguments[e++]),t.d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return c=!0,new this(1/0);n=t}return c=!0,n.sqrt()}function ef(e){return e instanceof eD||e&&e.toStringTag===h||!1}function eh(e){return new this(e).ln()}function em(e,t){return new this(e).log(t)}function eg(e){return new this(e).log(2)}function ey(e){return new this(e).log(10)}function ev(){return L(this,arguments,-1)}
470function eb(){return L(this,arguments,1)}function ew(e,t){return new this(e).mod(t)}function e_(e,t){return new this(e).mul(t)}function ex(e,t){return new this(e).pow(t)}function eE(e){var t,n,r,i,a=0,o=new this(1),s=[];if(void 0===e?e=this.precision:k(e,1,1e9),r=Math.ceil(e/7),this.crypto){if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));a<r;)(i=t[a])>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(r*=4);a<r;)(i=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((127&t[a+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,a):(s.push(i%1e7),a+=4);a=r/4}else throw Error(f)}else for(;a<r;)s[a++]=1e7*Math.random()|0;for(r=s[--a],e%=7,r&&e&&(i=g(10,7-e),s[a]=(r/i|0)*i);0===s[a];a--)s.pop();if(a<0)n=0,s=[0];else{for(n=-1;0===s[0];n-=7)s.shift();for(r=1,i=s[0];i>=10;i/=10)r++;r<7&&(n-=7-r)}return o.e=n,o.d=s,o}function eS(e){return T(e=new this(e),e.e+1,this.rounding)}function ek(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function eC(e){return new this(e).sin()}function eI(e){return new this(e).sinh()}function eA(e){return new this(e).sqrt()}function eT(e,t){return new this(e).sub(t)}function eR(){var e=0,t=arguments,n=new this(t[0]);for(c=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return c=!0,T(n,this.precision,this.rounding)}function eN(e){return new this(e).tan()}function eO(e){return new this(e).tanh()}function eP(e){return T(e=new this(e),e.e+1,1)}E[Symbol.for("nodejs.util.inspect.custom")]=E.toString,E[Symbol.toStringTag]="Decimal";var eD=E.constructor=function e(t){var n,r,i;function a(e){var t,n,r;if(!(this instanceof a))return new a(e);if(this.constructor=a,ef(e)){this.s=e.s,c?!e.d||e.e>a.maxE?(this.e=NaN,this.d=null):e.e<a.minE?(this.e=0,this.d=[0]):(this.e=e.e,this.d=e.d.slice()):(this.e=e.e,this.d=e.d?e.d.slice():e.d);return}if("number"==(r=typeof e)){if(0===e){this.s=1/e<0?-1:1,this.e=0,this.d=[0];return}if(e<0?(e=-e,this.s=-1):this.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;c?t>a.maxE?(this.e=NaN,this.d=null):t<a.minE?(this.e=0,this.d=[0]):(this.e=t,this.d=[e]):(this.e=t,this.d=[e]);return}if(0*e!=0){e||(this.s=NaN),this.e=NaN,this.d=null;return}return z(this,e.toString())}if("string"===r)return 45===(n=e.charCodeAt(0))?(e=e.slice(1),this.s=-1):(43===n&&(e=e.slice(1)),this.s=1),w.test(e)?z(this,e):function(e,t){var n,r,i,a,o,s,l,u,p;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),w.test(t))return z(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(v.test(t))n=16,t=t.toLowerCase();else if(y.test(t))n=2;else if(b.test(t))n=8;else throw Error(d+t);for((a=t.search(/p/i))>0?(l=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),o=(a=t.indexOf("."))>=0,r=e.constructor,o&&(a=(s=(t=t.replace(".","")).length)-a,i=$(r,new r(n),a,2*a)),a=p=(u=I(t,n,1e7)).length-1;0===u[a];--a)u.pop();return a<0?new r(0*e.s):(e.e=N(u,p),e.d=u,c=!1,o&&(e=A(e,i,4*s)),l&&(e=e.times(54>Math.abs(l)?g(2,l):eD.pow(2,l))),c=!0,e)}(this,e);if("bigint"===r)return e<0?(e=-e,this.s=-1):this.s=1,z(this,e.toString());throw Error(d+e)}if(a.prototype=E,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.EUCLID=9,a.config=a.set=eo,a.clone=e,a.isDecimal=ef,a.abs=H,a.acos=Y,a.acosh=K,a.add=J,a.asin=X,a.asinh=Q,a.atan=ee,a.atanh=et,a.atan2=en,a.cbrt=er,a.ceil=ei,a.clamp=ea,a.cos=es,a.cosh=el,a.div=ec,a.exp=eu,a.floor=ed,a.hypot=ep,a.ln=eh,a.log=em,a.log10=ey,a.log2=eg,a.max=ev,a.min=eb,a.mod=ew,a.mul=e_,a.pow=ex,a.random=eE,a.round=eS,a.sign=ek,a.sin=eC,a.sinh=eI,a.sqrt=eA,a.sub=eT,a.sum=eR,a.tan=eN,a.tanh=eO,a.trunc=eP,void 0===t&&(t={}),t&&!0!==t.defaults)for(n=0,i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return a.config(t),a}(l);o=new eD(o),s=new eD(s),t.Z=eD},4729:function(e,t,n){"use strict";function r(){}function i(){}n.d(t,{ok:function(){return r},t1:function(){return i}})},52484:function(e,t,n){"use strict";function r(e){return(r="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 i(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))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,n)}function n(){return o(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)})(e)}function o(e,t,n){return(o=s()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&l(i,n.prototype),i}).apply(null,arguments)}function s(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}
470function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,{Z:function(){return u}});var u=function(e){!function(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(a,e);var t,n=(t=s(),function(){var e,n=c(a);return e=t?Reflect.construct(n,arguments,c(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return i(e)}(this,e)});function a(e){var t;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),Object.setPrototypeOf(i(t=n.call(this,e)),a.prototype),t.name=t.constructor.name,t}return Object.defineProperty(a,"prototype",{writable:!1}),a}(a(Error))},23028:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r={}.constructor;function i(e){return null!=e&&e.constructor===r}},89914:function(e,t,n){"use strict";function r(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return -1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return -1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}n.d(t,{ZP:function(){return d},Gg:function(){return b},aS:function(){return w},zW:function(){return y}});var i=n(23028);function a(e){return(a="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 o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var c=" ext. ",u=/^\d+$/,d=function(){function e(t){o(this,e),y(t),this.metadata=t,_.call(this,t)}return l(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return"001"!==e})}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!this.v1&&!this.v2&&!this.v3)return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&u.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw Error("Unknown country: ".concat(e));this.numberingPlan=new p(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw Error("Unknown calling code: ".concat(t));this.numberingPlan=new p(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&1===r.length&&"001"===r[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),e}(),p=function(){function e(t,n){o(this,e),this.globalMetadataObject=n,this.metadata=t,_.call(this,n.metadata)}return l(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map(function(t){return new f(t,e)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&g(this.types(),e))return new m(g(this.t
470ypes(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?c:this.metadata[13]||c}}]),e}(),f=function(){function e(t,n){o(this,e),this._format=t,this.metadata=n}return l(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!this.nationalPrefixFormattingRule()&&!h.test(this.nationalPrefixFormattingRule())}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),h=/^\(?\$1\)?$/,m=function(){function e(t,n){o(this,e),this.type=t,this.metadata=n}return l(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
470ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function g(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function y(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!(0,i.Z)(e)||!(0,i.Z)(e.countries))throw Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat((0,i.Z)(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+v(e)+": "+e,"."))}var v=function(e){return a(e)};function b(e,t){if((t=new d(t)).hasCountry(e))return t.country(e).countryCallingCode();throw Error("Unknown country: ".concat(e))}function w(e,t){return t.countries.hasOwnProperty(e)}function _(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===r(t,"1.2.0")?this.v2=!0:-1===r(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}},47876:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(23028);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e){var t,n,o,s,l=function(e){if(Array.isArray(e))return e}(t=Array.prototype.slice.call(e))||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),4!==a.length);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}}(t,4)||function(e,t){if(e){if("string"==typeof e)return a(e,4);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,4)}}(t,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=l[0],u=l[1],d=l[2],p=l[3];if("string"==typeof c)n=c;else throw TypeError("A text for parsing must be a string.");if(u&&"string"!=typeof u){if((0,r.Z)(u))d?(o=u,s=d):s=u;else throw Error("Invalid second argument: ".concat(u))}else p?(o=d,s=p):(o=void 0,s=d),u&&(o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({defaultCountry:u},o));return{text:n,options:o,metadata:s}}},53498:function(e,t,n){"use strict";n.d(t,{Z:function(){return K}});var r="0-90-9٠-٩۰-۹",i="".concat("-‐-―−ー-").concat("//").concat("..").concat(" \xa0\xad​⁠ ").concat("()()[]\\[\\]").concat("~⁓∼~"),a="++",o=n(52484),s=n(89914),l=function(e){return"([".concat(r,"]{1,").concat(e,"})")};function c(e){var t="[ \xa0\\t,]*",n="[:\\..]?[ \xa0\\t,-]*",r="[ \xa0\\t]*";return";ext="+l("20")+"|"+(t+"(?:e?xt(?:ensi(?:ó?|\xf3))?n?|e?xtn?|доб|anexo)"+n)+l("20")+"#?|"+(t+"(?:[xx##~~]|int|int)"+n)+l("9")+"#?|[- ]+"+l("6")+"#|"+(r+"(?:,{2}|;)"+n)+l("15")+"#?|"+(r+"(?:,)+"+n)+l("9")+"#?"}var u=RegExp("^["+a+"]{0,1}(?:["+i+"]*["+r+"]){1,2}$","i"),d="["+a+"]{0,1}(?:["+i+"]*["+r+"]){3,}["+i+r+"]*(?:"+c()+")?",p=RegExp("^["+r+"]{2}$|^"+d+"$","i"),f=RegExp("(?:"+c()+")$","i"),h={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(e){for(var t,n="",r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return m(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,void 0)}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.split(""));!(t=r()).done;){var i=t.value;n+=function(e,t,n){if("+"===e){if(t)return;return"+"}return h[e]}(i,n)||""}return n}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){return function e(t,n,r){var i=r.type(n),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===n){if(!r.type("FIXED_LINE"))return e(t,"MOBILE",r);var o=r.type("MOBILE");o&&(a=function(e,t){for(var n,r=e.slice(),i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return y(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,void 0)}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=i()).done;){var a=n.value;0>e.indexOf(a)&&r.push(a)}return r.sort(function(e,t){return e-t})}(a,o.possibleLengths()))}else if(n&&!i)return"INVALID_LENGTH";var s=t.length,l=a[0];return l===s?"IS_POSSIBLE":l>s?"TOO_SHORT":a[a.length-1]<s?"TOO_LONG":a.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,void 0,t)}function b(e,t){return"IS_POSSIBLE"===v(e,t)}function w(e,t){return e=e||"",RegExp("^(?:"+t+")$").test(e)}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function E(e,t,n){if(t=t||{},e.country||e.countryCallingCode){(n=new s.ZP(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(w(r,n.nationalNumberPattern())){if(S(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()||!n.type("MOBILE")||S(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";
470for(var i,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,void 0)}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(x);!(i=a()).done;){var o=i.value;if(S(r,o,n))return o}}}}function S(e,t,n){return!(!(t=n.type(t))||!t.pattern()||t.possibleLengths()&&0>t.possibleLengths().indexOf(e.length))&&w(e,t.pattern())}var k=RegExp("(["+r+"])");function C(e,t){var n=function(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,a,o,s=r.length-1,l=s>0&&r[s];if(t.nationalPrefixTransformRule()&&l)i=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(a=r[1]);else{var c=r[0];i=e.slice(c.length),l&&(a=r[1])}if(l){var u=e.indexOf(r[1]);e.slice(0,u)===t.numberingPlan.nationalPrefix()&&(o=t.numberingPlan.nationalPrefix())}else o=r[0];return{nationalNumber:i,nationalPrefix:o,carrierCode:a}}}return{nationalNumber:e}}(e,t),r=n.carrierCode,i=n.nationalNumber;return i!==e&&(!(!w(e,t.nationalNumberPattern())||w(i,t.nationalNumberPattern()))||t.possibleLengths()&&!function(e,t){switch(v(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(i,t))?{nationalNumber:e}:{nationalNumber:i,carrierCode:r}}function I(e,t,n,r){if(!e)return{};if("+"!==e[0]){var i,a=function(e,t,n,r){if(t){var i=new s.ZP(r);i.selectNumberingPlan(t,n);var a=new RegExp(i.IDDPrefix());if(0===e.search(a)){var o=(e=e.slice(e.match(a)[0].length)).match(k);if(!o||null==o[1]||!(o[1].length>0)||"0"!==o[1])return e}}}(e,t,n,r);if(a&&a!==e)i=!0,e="+"+a;else{if(t||n){var o=function(e,t,n,r){var i=t?(0,s.Gg)(t,r):n;if(0===e.indexOf(i)){(r=new s.ZP(r)).selectNumberingPlan(t,n);var a=e.slice(i.length),o=C(a,r).nationalNumber,l=C(e,r).nationalNumber;if(!w(l,r.nationalNumberPattern())&&w(o,r.nationalNumberPattern())||"TOO_LONG"===v(l,r))return{countryCallingCode:i,number:a}}return{number:e}}(e,t,n,r),l=o.countryCallingCode,c=o.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:c}}return{number:e}}}if("0"===e[1])return{};r=new s.ZP(r);for(var u=2;u-1<=3&&u<=e.length;){var d=e.slice(1,u);if(r.hasCallingCode(d))return r.selectNumberingPlan(d),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:d,number:e.slice(u)};u++}return{}}var A=n(23028),T=/(\$\d)/,R=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var D={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function M(e,t,n,r,a){var o,s,l,c,u=function(e,t){for(var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return N(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,void 0)}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(n=r()).done;){var i=n.value;if(i.leadingDigitsPatterns().length>0){var a=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(0!==t.search(a))continue}if(w(t,i.pattern()))return i}}(r.formats(),e);return u?(s=(o={useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!u.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!a||!1!==a.nationalPrefix,carrierCode:t,metadata:r}).useInternationalFormat,l=o.withNationalPrefix,o.carrierCode,o.metadata,c=e.replace(new RegExp(u.pattern()),s?u.internationalFormat():l&&u.nationalPrefixFormattingRule()?u.format().replace(T,u.
470nationalPrefixFormattingRule()):u.format()),s?c.replace(RegExp("[".concat(i,"]+"),"g")," ").trim():c):e}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var L=function(){var e;function t(e,n,r){if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),!e)throw TypeError("First argument is required");if("string"!=typeof e)throw TypeError("First argument must be a string");if("string"==typeof e){if("+"===e[0]&&!n)throw TypeError("`metadata` argument not passed");if((0,A.Z)(n)&&(0,A.Z)(n.countries)){r=n;var i,a,o,l,c,u=e;if(!F.test(u))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var d=I(u,void 0,void 0,r),p=d.countryCallingCode;if(n=d.number,e=p,!n)throw Error("Invalid `number` argument passed: too short")}}if(!n)throw TypeError("`nationalNumber` argument is required");if("string"!=typeof n)throw TypeError("`nationalNumber` argument must be a string");(0,s.zW)(r);var f=(i=e,a=r,c=new s.ZP(a),/^[A-Z]{2}$/.test(i)?(o=i,c.selectNumberingPlan(o),l=c.countryCallingCode()):l=i,{country:o,countryCallingCode:l}),h=f.country,m=f.countryCallingCode;this.country=h,this.countryCallingCode=m,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return e=[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){var e,t,n,r;return this.country?[this.country]:(e=this.countryCallingCode,t=this.nationalNumber,n=this.getMetadata(),(r=new s.ZP(n).getCountryCodesForCallingCode(e))?r.filter(function(e){var r;
470return(r=new s.ZP(n)).selectNumberingPlan(e),r.numberingPlan.possibleLengths().indexOf(t.length)>=0}):[])}},{key:"isPossible",value:function(){return function(e,t,n){if(void 0===t&&(t={}),n=new s.ZP(n),t.v2){if(!e.countryCallingCode)throw Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return b(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){var e,t;return e={v2:!0},t=this.getMetadata(),(e=e||{},(t=new s.ZP(t)).selectNumberingPlan(this.country,this.countryCallingCode),t.hasTypes())?void 0!==E(this,e,t.metadata):w(e.v2?this.nationalNumber:this.phone,t.nationalNumberPattern())}},{key:"isNonGeographic",value:function(){return new s.ZP(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return E(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return function(e,t,n,r){if(n=n?P(P({},D),n):D,r=new s.ZP(r),e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.selectNumberingPlan(e.countryCallingCode)}var i,a,o,l,c,u,d,p,f,h,m,g,y,v=r.countryCallingCode(),b=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":if(!b)return"";return i=y=M(b,e.carrierCode,"NATIONAL",r,n),a=e.ext,o=r,l=n.formatExtension,a?l(i,a,o):i;case"INTERNATIONAL":if(!b)return"+".concat(v);return y=M(b,null,"INTERNATIONAL",r,n),c=y="+".concat(v," ").concat(y),u=e.ext,d=r,p=n.formatExtension,u?p(c,u,d):c;case"E.164":return"+".concat(v).concat(b);case"RFC3966":return function(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}({number:"+".concat(v).concat(b),ext:e.ext});case"IDD":if(!n.fromCountry)return;return f=function(e,t,n,r,i){if((0,s.Gg)(r,i.metadata)===n){var a,o,l,c=M(e,t,"NATIONAL",i);return"1"===n?n+" "+c:c}var u=(a=void 0,o=i.metadata,((l=new s.ZP(o)).selectNumberingPlan(r,a),l.defaultIDDPrefix())?l.defaultIDDPrefix():R.test(l.IDDPrefix())?l.IDDPrefix():void 0);if(u)return"".concat(u," ").concat(n," ").concat(M(e,null,"INTERNATIONAL",i))}(b,e.carrierCode,v,n.fromCountry,r),h=e.ext,m=r,g=n.formatExtension,h?g(f,h,m):f;default:throw Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}(this,e,t?j(j({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(),F=/^\+\d+$/;function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var U="(["+r+"]|[\\-\\.\\(\\)]?)",z=RegExp("^\\+"+U+"*["+r+"]"+U+"*$","g"),Z=RegExp("^(["+r+"]+((\\-)*["+r+"])*\\.)*[a-zA-Z]+((\\-)*["+r+"])*\\.?$","g"),V="tel:",q=";phone-context=",W=RegExp("["+a+r+"]"),G=RegExp("[^"+r+"#]+$");function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
470t%2?H(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function K(e,t,n){return function(e,t,n){if(t=t||{},n=new s.ZP(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry)){if(t.v2)throw new o.Z("INVALID_COUNTRY");throw Error("Unknown country: ".concat(t.defaultCountry))}var r,i=function(e,t,n){var r=function(e,t){var n=t.extractFormattedPhoneNumber,r=function(e){var t=e.indexOf(q);if(t<0)return null;var n=t+q.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}(e);if(!(null===r||0!==r.length&&(z.test(r)||Z.test(r))))throw new o.Z("NOT_A_NUMBER");if(null===r)i=n(e)||"";else{i="","+"===r.charAt(0)&&(i+=r);var i,a,s=e.indexOf(V);a=s>=0?s+V.length:0;var l=e.indexOf(q);i+=e.substring(a,l)}var c=i.indexOf(";isub=");if(c>0&&(i=i.substring(0,c)),""!==i)return i}(e,{extractFormattedPhoneNumber:function(e){return function(e,t,n){if(e){if(e.length>250){if(n)throw new o.Z("TOO_LONG");return}if(!1===t)return e;var r=e.search(W);if(!(r<0))return e.slice(r).replace(G,"")}}(e,n,t)}});if(!r)return{};if(!(r.length>=2&&p.test(r)))return u.test(r)?{error:"TOO_SHORT"}:{};var i=function(e){var t=e.search(f);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(f),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}(r);return i.ext?i:{number:r}}(e,t.v2,t.extract),a=i.number,l=i.ext,c=i.error;if(!a){if(t.v2){if("TOO_SHORT"===c)throw new o.Z("TOO_SHORT");throw new o.Z("NOT_A_NUMBER")}return{}}var d=function(e,t,n,r){var i,a,o,l,c,u,d,p=I(g(e),t,n,r.metadata),f=p.countryCallingCodeSource,h=p.countryCallingCode,m=p.number;if(h)r.selectNumberingPlan(h);else{if(!m||!t&&!n)return{};r.selectNumberingPlan(t,n),t&&(d=t),h=n||(0,s.Gg)(t,r.metadata)}if(!m)return{countryCallingCodeSource:f,countryCallingCode:h};var y=C(g(m),r),v=y.nationalNumber,b=y.carrierCode,w=(i=h,o=(a={nationalNumber:v,defaultCountry:t,metadata:r}).nationalNumber,l=a.defaultCountry,(u=(c=a.metadata).getCountryCodesForCallingCode(i))?1===u.length?u[0]:function(e,t){var n=t.countries,r=(t.defaultCountry,t.metadata);r=new s.ZP(r);for(var i,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return B(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B(e,void 0)}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(i=a()).done;){var o=i.value;if(r.country(o),r.leadingDigits()){if(e&&0===e.search(r.leadingDigits()))return o}else if(E({phone:e,country:o},void 0,r.metadata))return o}}(o,{countries:u,defaultCountry:l,metadata:c.metadata}):void 0);return w&&(d=w,"001"===w||r.country(d)),{country:d,countryCallingCode:h,countryCallingCodeSource:f,nationalNumber:v,carrierCode:b}}(a,t.defaultCountry,t.defaultCallingCode,n),h=d.country,m=d.nationalNumber,y=d.countryCallingCode,v=d.countryCallingCodeSource,_=d.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new o.Z("INVALID_COUNTRY");return{}}if(!m||m.length<2){if(t.v2)throw new o.Z("TOO_SHORT");return{}}if(m.length>17){if(t.v2)throw new o.Z("TOO_LONG");return{}}if(t.v2){var x=new L(y,m,n.metadata);return h&&(x.country=h),_&&(x.carrierCode=_),l&&(x.ext=l),x.__countryCallingCodeSource=v,x}var S=(t.extended?!!n.hasSelectedNumberingPlan():!!h)&&w(m,n.nationalNumberPattern());return t.extended?{country:h,countryCallingCode:y,carrierCode:_,valid:S,possible:!!S||!!(!0===t.extended&&n.possibleLengths()&&b(m,n)),phone:m,ext:l}:S?(r={country:h,phone:m},l&&(r.ext=l),r):{}}(e,Y(Y({},t),{},{v2:!0}),n)}},61590:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(53498),i=n(52484),a=n(89914);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
470t%2?o(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){t&&t.defaultCountry&&!(0,a.aS)(t.defaultCountry,n)&&(t=s(s({},t),{},{defaultCountry:void 0}));try{return(0,r.Z)(e,t,n)}catch(e){if(e instanceof i.Z);else throw e}}},54224:function(e,t,n){"use strict";n.d(t,{t:function(){return c}});var r=n(15517),i=n(47876),a=n(61590);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(){var e=(0,i.Z)(arguments),t=e.text,n=e.options,r=e.metadata;n=s(s({},n),{},{extract:!1});var o=(0,a.Z)(t,n,r);return o&&o.isPossible()||!1}function c(){return(0,r.Z)(l,arguments)}},4731:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(15517),i=n(53498),a=n(47876);function o(){var e=(0,a.Z)(arguments),t=e.text,n=e.options,r=e.metadata;return(0,i.Z)(t,n,r)}function s(){return(0,r.Z)(o,arguments)}},15517:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-4
4706-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4}
470)","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4
vendor: 12,078 bytes, line 470
470])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","
470(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,
vendor: 14,089 bytes, line 470
4703})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3
4700[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7}
470)","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4}
470)","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-468]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4}
470)","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function i(e,t){var n=Array.prototype.slice.call(t);return n.push(r),e.apply(this,n)}},32603:function(e,t,n){"use strict";let r;n.d(t,{ou:function(){return nV}});class i extends Error{}class a extends i{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class o extends i{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class s extends i{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class l extends i{}class c extends i{constructor(e){super(`Invalid unit ${e}`)}}class u extends i{}class d extends i{constructor(){super("Zone is an abstract class")}}let p="numeric",f="short",h="long",m={year:p,month:p,day:p},g={year:p,month:f,day:p},y={year:p,month:f,day:p,weekday:f},v={year:p,month:h,day:p},b={year:p,month:h,day:p,weekday:h},w={hour:p,minute:p},_={hour:p,minute:p,second:p},x={hour:p,minute:p,second:p,timeZoneName:f},E={hour:p,minute:p,second:p,timeZoneName:h},S={hour:p,minute:p,hourCycle:"h23"},k={hour:p,minute:p,second:p,hourCycle:"h23"},C={hour:p,minute:p,second:p,hourCycle:"h23",timeZoneName:f},I={hour:p,minute:p,second:p,hourCycle:"h23",timeZoneName:h},A={year:p,month:p,day:p,hour:p,minute:p},T={year:p,month:p,day:p,hour:p,minute:p,second:p},R={year:p,month:f,day:p,hour:p,minute:p},N={year:p,month:f,day:p,hour:p,minute:p,second:p},O={year:p,month:f,day:p,weekday:f,hour:p,minute:p},P={year:p,month:h,day:p,hour:p,minute:p,timeZoneName:f},D={year:p,month:h,day:p,hour:p,minute:p,second:p,timeZoneName:f},M={year:p,month:h,day:p,weekday:h,hour:p,minute:p,timeZoneName:h},$={year:p,month:h,day:p,weekday:h,hour:p,minute:p,second:p,timeZoneName:h};class j{get type(){throw new d}get name(){throw new d}get ianaName(){return this.name}get isUniversal(){throw new d}offsetName(e,t){throw new d}formatOffset(e,t){throw new d}offset(e){throw new d}equals(e){throw new d}get isValid(){throw new d}}let L=null;class F extends j{static get instance(){return null===L&&(L=new F),L}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return e2(e,t,n)}formatOffset(e,t){return e9(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let B={},U={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},z={};class Z extends j{static create(e){return z[e]||(z[e]=new Z(e)),z[e]}static resetCache(){z={},B={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=Z.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return e2(e,t,n,this.name)}formatOffset(e,t){return e9(this.offset(e),t)}offset(e){var t;let n=new Date(e);if(isNaN(n))return NaN;let r=(B[t=this.name]||(B[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),B[t]),[i,a,o,s,l,c,u]=r.formatToParts?function(e,t){let n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){let{type:t,value:i}=n[e],a=U[t];"era"===t?r[a]=i:eM(a)||(r[a]=parseInt(i,10))}return r}(r,n):function(e,t){let n=e.format(t).replace(/\u200E/g,""),[,r,i,a,o,s,l,c]=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n);return[a,r,i,o,s,l,c]}(r,n);"BC"===s&&(i=-Math.abs(i)+1);let d=eX({year:i,month:a,day:o,hour:24===l?0:l,minute:c,second:u,millisecond:0}),p=+n,f=p%1e3;return(d-(p-=f>=0?f:1e3+f))/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let V={},q={};function W(e,t={}){let n=JSON.stringify([e,t]),r=q[n];return r||(r=new Intl.DateTimeFormat(e,t),q[n]=r),r}let G={},H={},Y=null,K={};function J(e,t,n,r){let i=e.listingMode();return"error"===i?null:"en"===i?n(t):r(t)}class X{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:r,floor:i,...a}=n;if(!t||Object.keys(a).length>0){let t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){let n=JSON.stringify([e,t]),r=G[n];return r||(r=new Intl.NumberFormat(e,t),G[n]=r),r}(e,t)}}format(e){if(!this.inf)return eV(this.floor?Math.floor(e):eH(e,3),this.padTo);{let t=this.floor?Math.floor(e):e;return this.inf.format(t)}}}class Q{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){let t=-(e.offset/60*1),n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&Z.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=W(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"!==e.type)return e;{let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ee{constructor(e,t,n){this.opts={style:"long",...n},!t&&eL()&&(this.rtf=function(e,t={}){let{base:n,...r}=t,i=JSON.stringify([e,r]),a=H[i];return a||(a=new Intl.RelativeTimeFormat(e,t),H[i]=a),a}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="al
470ways",r=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&a){let n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${i[e][0]}`;case -1:return n?"yesterday":`last ${i[e][0]}`;case 0:return n?"today":`this ${i[e][0]}`}}let o=Object.is(t,-0)||t<0,s=Math.abs(t),l=1===s,c=i[e],u=r?l?c[1]:c[2]||c[1]:l?i[e][0]:e;return o?`${s} ${u} ago`:`in ${s} ${u}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}let et={firstDay:1,minimalDays:4,weekend:[6,7]};class en{static fromOpts(e){return en.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,r,i=!1){let a=e||ew.defaultLocale,o=a||(i?"en-US":Y||(Y=new Intl.DateTimeFormat().resolvedOptions().locale));return new en(o,t||ew.defaultNumberingSystem,n||ew.defaultOutputCalendar,ez(r)||ew.defaultWeekSettings,a)}static resetCache(){Y=null,q={},G={},H={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:r}={}){return en.create(e,t,n,r)}constructor(e,t,n,r,i){var a,o,s;let[l,c,u]=function(e){let t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));let n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=W(e).resolvedOptions(),r=e}catch(a){let i=e.substring(0,n);t=W(i).resolvedOptions(),r=i}let{numberingSystem:i,calendar:a}=t;return[r,i,a]}}(e);this.locale=l,this.numberingSystem=t||c||null,this.outputCalendar=n||u||null,this.weekSettings=r,this.intl=(a=this.locale,o=this.numberingSystem,((s=this.outputCalendar)||o)&&(a.includes("-u-")||(a+="-u"),s&&(a+=`-ca-${s}`),o&&(a+=`-nu-${o}`)),a),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=(!this.numberingSystem||"latn"===this.numberingSystem)&&("latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(this.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?en.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,ez(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return J(this,e,tt,()=>{let n=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=function(e){let t=[];for(let n=1;n<=12;n++){let r=nV.utc(2009,n,1);t.push(e(r))}return t}(e=>this.extract(e,n,"month"))),this.monthsCache[r][e]})}weekdays(e,t=!1){return J(this,e,ta,()=>{let n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){let t=[];for(let n=1;n<=7;n++){let r=nV.utc(2016,11,13+n);t.push(e(r))}return t}(e=>this.extract(e,n,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return J(this,void 0,()=>to,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[nV.utc(2016,11,13,9),nV.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return J(this,e,tu,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[nV.utc(-40,1,1),nV.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,n){let r=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return r?r.value:null}numberFormatter(e={}){return new X(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Q(e,this.intl,t)}relFormatter(e={}){return new ee(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){let n=JSON.stringify([e,t]),r=V[n];return r||(r=new Intl.ListFormat(e,t),V[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:eF()?function(e){let t=K[e];if(!t){let n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,K[e]=t}return t}(this.locale):et}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let er=null;
470class ei extends j{static get utcInstance(){return null===er&&(er=new ei(0)),er}static instance(e){return 0===e?ei.utcInstance:new ei(e)}static parseSpecifier(e){if(e){let t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new ei(e3(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${e9(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${e9(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return e9(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class ea extends j{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function eo(e,t){if(eM(e)||null===e)return t;if(e instanceof j)return e;if("string"==typeof e){let n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?F.instance:"utc"===n||"gmt"===n?ei.utcInstance:ei.parseSpecifier(n)||Z.create(e)}return e$(e)?ei.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new ea(e)}let es={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},el={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ec=es.hanidec.replace(/[\[|\]]/g,"").split(""),eu={};function ed({numberingSystem:e},t=""){let n=e||"latn";return eu[n]||(eu[n]={}),eu[n][t]||(eu[n][t]=RegExp(`${es[n]}${t}`)),eu[n][t]}let ep=()=>Date.now(),ef="system",eh=null,em=null,eg=null,ey=60,ev,eb=null;class ew{static get now(){return ep}static set now(e){ep=e}static set defaultZone(e){ef=e}static get defaultZone(){return eo(ef,F.instance)}static get defaultLocale(){return eh}static set defaultLocale(e){eh=e}static get defaultNumberingSystem(){return em}static set defaultNumberingSystem(e){em=e}
470static get defaultOutputCalendar(){return eg}static set defaultOutputCalendar(e){eg=e}static get defaultWeekSettings(){return eb}static set defaultWeekSettings(e){eb=ez(e)}static get twoDigitCutoffYear(){return ey}static set twoDigitCutoffYear(e){ey=e%100}static get throwOnInvalid(){return ev}static set throwOnInvalid(e){ev=e}static resetCaches(){en.resetCache(),Z.resetCache(),nV.resetCache(),eu={}}}class e_{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}let ex=[0,31,59,90,120,151,181,212,243,273,304,334],eE=[0,31,60,91,121,152,182,213,244,274,305,335];function eS(e,t){return new e_("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function ek(e,t,n){let r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);let i=r.getUTCDay();return 0===i?7:i}function eC(e,t){let n=eY(e)?eE:ex,r=n.findIndex(e=>e<t),i=t-n[r];return{month:r+1,day:i}}function eI(e,t){return(e-t+7)%7+1}function eA(e,t=4,n=1){let{year:r,month:i,day:a}=e,o=a+(eY(r)?eE:ex)[i-1],s=eI(ek(r,i,a),n),l=Math.floor((o-s+14-t)/7),c;return l<1?l=e0(c=r-1,t,n):l>e0(r,t,n)?(c=r+1,l=1):c=r,{weekYear:c,weekNumber:l,weekday:s,...e6(e)}}function eT(e,t=4,n=1){let{weekYear:r,weekNumber:i,weekday:a}=e,o=eI(ek(r,1,t),n),s=eK(r),l=7*i+a-o-7+t,c;l<1?l+=eK(c=r-1):l>s?(c=r+1,l-=eK(r)):c=r;let{month:u,day:d}=eC(c,l);return{year:c,month:u,day:d,...e6(e)}}function eR(e){let{year:t,month:n,day:r}=e,i=r+(eY(t)?eE:ex)[n-1];return{year:t,ordinal:i,...e6(e)}}function eN(e){let{year:t,ordinal:n}=e,{month:r,day:i}=eC(t,n);return{year:t,month:r,day:i,...e6(e)}}function eO(e,t){if(!(!eM(e.localWeekday)||!eM(e.localWeekNumber)||!eM(e.localWeekYear)))return{minDaysInFirstWeek:4,startOfWeek:1};if(!eM(e.weekday)||!eM(e.weekNumber)||!eM(e.weekYear))throw new l("Cannot mix locale-based week fields with ISO-based week fields");return eM(e.localWeekday)||(e.weekday=e.localWeekday),eM(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),eM(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}function eP(e){let t=ej(e.year),n=eZ(e.month,1,12),r=eZ(e.day,1,eJ(e.year,e.month));return t?n?!r&&eS("day",e.day):eS("month",e.month):eS("year",e.year)}function eD(e){let{hour:t,minute:n,second:r,millisecond:i}=e,a=eZ(t,0,23)||24===t&&0===n&&0===r&&0===i,o=eZ(n,0,59),s=eZ(r,0,59),l=eZ(i,0,999);return a?o?s?!l&&eS("millisecond",i):eS("second",r):eS("minute",n):eS("hour",t)}function eM(e){return void 0===e}function e$(e){return"number"==typeof e}function ej(e){return"number"==typeof e&&e%1==0}function eL(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function eF(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function eB(e,t,n){if(0!==e.length)return e.reduce((e,r)=>{let i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function eU(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ez(e){if(null==e)return null;if("object"!=typeof e)throw new u("Week settings must be an object");if(!eZ(e.firstDay,1,7)||!eZ(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!eZ(e,1,7)))throw new u("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function eZ(e,t,n){return ej(e)&&e>=t&&e<=n}function eV(e,t=2){return e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0")}function eq(e){if(!eM(e)&&null!==e&&""!==e)return parseInt(e,10)}function eW(e){if(!eM(e)&&null!==e&&""!==e)return parseFloat(e)}function eG(e){if(!eM(e)&&null!==e&&""!==e)return Math.floor(1e3*parseFloat("0."+e))}function eH(e,t,n=!1){let r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function eY(e){return e%4==0&&(e%100!=0||e%400==0)}function eK(e){return eY(e)?366:365}function eJ(e,t){var n;let r=(n=t-1)-12*Math.floor(n/12)+1;return 2===r?eY(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function eX(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(e.year,e.month-1,e.day),+t}function eQ(e,t,n){return-eI(ek(e,1,t),n)+t-1}function e0(e,t=4,n=1){let r=eQ(e,t,n),i=eQ(e+1,t,n);return(eK(e)-r+i)/7}function e1(e){return e>99?e:e>ew.twoDigitCutoffYear?1900+e:2e3+e}function e2(e,t,n,r=null){let i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);let o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(n,o).formatToParts(i).find(e=>"timezonename"===e.type.toLowerCase());return s?s.value:null}function e3(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);let r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return 60*n+i}function e5(e){let t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new u(`Invalid unit value ${e}`);return t}function e4(e,t){let n={};for(let r in e)if(eU(e,r)){let i=e[r];if(null==i)continue;n[t(r)]=e5(i)}return n}function e9(e,t){let n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${eV(n,2)}:${eV(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${eV(n,2)}${eV(r,2)}`;default:throw RangeError(`Value format ${t} is out of range for property format`)}}function e6(e){return["hour","minute","second","millisecond"].reduce((t,n)=>(t[n]=e[n],t),{})}let e7=["January","February","March","April","May","June","July","August","September","October","November","December"],e8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],te=["J","F","M","A","M","J","J","A","S","O","N","D"];function tt(e){switch(e){case"narrow":return[...te];case"short":return[...e8];case"long":return[...e7];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}
470let tn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ti=["M","T","W","T","F","S","S"];function ta(e){switch(e){case"narrow":return[...ti];case"short":return[...tr];case"long":return[...tn];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}let to=["AM","PM"],ts=["Before Christ","Anno Domini"],tl=["BC","AD"],tc=["B","A"];function tu(e){switch(e){case"narrow":return[...tc];case"short":return[...tl];case"long":return[...ts];default:return null}}function td(e,t){let n="";for(let r of e)r.literal?n+=r.val:n+=t(r.val);return n}let tp={D:m,DD:g,DDD:v,DDDD:b,t:w,tt:_,ttt:x,tttt:E,T:S,TT:k,TTT:C,TTTT:I,f:A,ff:R,fff:P,ffff:M,F:T,FF:N,FFF:D,FFFF:$};class tf{static create(e,t={}){return new tf(e,t)}static parseFormat(e){let t=null,n="",r=!1,i=[];for(let a=0;a<e.length;a++){let o=e.charAt(a);"'"===o?(n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),t=null,n="",r=!r):r?n+=o:o===t?n+=o:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=o,t=o)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return tp[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return eV(e,t);let n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){let n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(t,n)=>this.loc.extract(e,t,n),a=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",o=()=>n?to[e.hour<12?0:1]:i({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(t,r)=>n?tt(t)[e.month-1]:i(r?{month:t}:{month:t,day:"numeric"},"month"),l=(t,r)=>n?ta(t)[e.weekday-1]:i(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),c=t=>{let n=tf.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},u=t=>n?tu(t)[e.year<0?0:1]:i({era:t},"era");return td(tf.parseFormat(t),t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return r?i({day:"numeric"},"day"):this.num(e.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(e.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(e.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);
470case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return c(t)}})}formatDurationFromString(e,t){let n;let r=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=tf.parseFormat(t),a=i.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]);return td(i,(n=e.shiftTo(...a.map(r).filter(e=>e)),e=>{let t=r(e);return t?this.num(n.get(t),e.length):e}))}}let th=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function tm(...e){let t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function tg(...e){return t=>e.reduce(([e,n,r],i)=>{let[a,o,s]=i(t,r);return[{...e,...a},o||n,s]},[{},null,1]).slice(0,2)}function ty(e,...t){if(null==e)return[null,null];for(let[n,r]of t){let t=n.exec(e);if(t)return r(t)}return[null,null]}function tv(...e){return(t,n)=>{let r;let i={};for(r=0;r<e.length;r++)i[e[r]]=eq(t[n+r]);return[i,null,n+r]}}let tb=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,tw=`(?:${tb.source}?(?:\\[(${th.source})\\])?)?`,t_=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,tx=RegExp(`${t_.source}${tw}`),tE=RegExp(`(?:T${tx.source})?`),tS=tv("weekYear","weekNumber","weekDay"),tk=tv("year","ordinal"),tC=RegExp(`${t_.source} ?(?:${tb.source}|(${th.source}))?`),tI=RegExp(`(?: ${tC.source})?`);function tA(e,t,n){let r=e[t];return eM(r)?n:eq(r)}function tT(e,t){return[{hours:tA(e,t,0),minutes:tA(e,t+1,0),seconds:tA(e,t+2,0),milliseconds:eG(e[t+3])},null,t+4]}function tR(e,t){let n=!e[t]&&!e[t+1],r=e3(e[t+1],e[t+2]);return[{},n?null:ei.instance(r),t+3]}function tN(e,t){return[{},e[t]?Z.create(e[t]):null,t+1]}let tO=RegExp(`^T?${t_.source}$`),tP=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function tD(e){let[t,n,r,i,a,o,s,l,c]=e,u="-"===t[0],d=l&&"-"===l[0],p=(e,t=!1)=>void 0!==e&&(t||e&&u)?-e:e;return[{years:p(eW(n)),months:p(eW(r)),weeks:p(eW(i)),days:p(eW(a)),hours:p(eW(o)),minutes:p(eW(s)),seconds:p(eW(l),"-0"===l),milliseconds:p(eG(c),d)}]}let tM={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function t$(e,t,n,r,i,a,o){let s={year:2===t.length?e1(eq(t)):eq(t),month:e8.indexOf(n)+1,day:eq(r),hour:eq(i),minute:eq(a)};return o&&(s.second=eq(o)),e&&(s.weekday=e.length>3?tn.indexOf(e)+1:tr.indexOf(e)+1),s}let tj=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function tL(e){let[,t,n,r,i,a,o,s,l,c,u,d]=e;return[t$(t,i,r,n,a,o,s),new ei(l?tM[l]:c?0:e3(u,d))]}let tF=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,tB=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,tU=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function tz(e){let[,t,n,r,i,a,o,s]=e;return[t$(t,i,r,n,a,o,s),ei.utcInstance]}function tZ(e){let[,t,n,r,i,a,o,s]=e;return[t$(t,s,n,r,i,a,o),ei.utcInstance]}let tV=tm(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,tE),tq=tm(/(\d{4})-?W(\d\d)(?:-?(\d))?/,tE),tW=tm(/(\d{4})-?(\d{3})/,tE),tG=tm(tx),tH=tg(function(e,t){return[{year:tA(e,t),month:tA(e,t+1,1),day:tA(e,t+2,1)},null,t+3]},tT,tR,tN),tY=tg(tS,tT,tR,tN),tK=tg(tk,tT,tR,tN),tJ=tg(tT,tR,tN),tX=tg(tT),tQ=tm(/(\d{4})-(\d\d)-(\d\d)/,tI),t0=tm(tC),t1=tg(tT,tR,tN),t2="Invalid Duration",t3={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},t5={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...t3},t4={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:31556952,milliseconds:31556952e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238e3},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...t3},t9=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],t6=t9.slice(0).reverse();function t7(e,t,n=!1){return new nt({values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix})}function t8(e,t){let n=t.milliseconds??0;for(let r of t6.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function ne(e,t){let n=0>t8(e,t)?-1:1;t9.reduceRight((r,i)=>{if(eM(t[i]))return r;if(r){let a=t[r]*n,o=e[i][r],s=Math.floor(a/o);t[i]+=s*n,t[r]-=s*o*n}return i},null),t9.reduce((n,r)=>{if(eM(t[r]))return n;if(n){let i=t[n]%1;t[n]-=i,t[r]+=i*e[n][r]}return r},null)}class nt{constructor(e){let t="longterm"===e.conversionAccuracy,n=t?t4:t5;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||en.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return nt.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new u(`Duration.fromObject: argument expected to be an object, got ${null===e?"null":typeof e}`);return new nt({values:e4(e,nt.normalizeUnit),loc:en.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(e$(e))return nt.fromMillis(e);
470if(nt.isDuration(e))return e;if("object"==typeof e)return nt.fromObject(e);throw new u(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){let[n]=ty(e,[tP,tD]);return n?nt.fromObject(n,t):nt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){let[n]=ty(e,[tO,tX]);return n?nt.fromObject(n,t):nt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Duration is invalid");let n=e instanceof e_?e:new e_(e,t);if(!ew.throwOnInvalid)return new nt({invalid:n});throw new s(n)}static normalizeUnit(e){let t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new c(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){let n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?tf.create(this.loc,n).formatDurationFromString(this,e):t2}toHuman(e={}){if(!this.isValid)return t2;let t=t9.map(t=>{let n=this.values[t];return eM(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(e+=eH(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},nV.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?t8(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=nt.fromDurationLike(e),n={};for(let e of t9)(eU(t.values,e)||eU(this.values,e))&&(n[e]=t.get(e)+this.get(e));return t7(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let t=nt.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=e5(e(this.values[n],n));return t7(this,{values:t},!0)}get(e){return this[nt.normalizeUnit(e)]}set(e){return this.isValid?t7(this,{values:{...this.values,...e4(e,nt.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return t7(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return ne(this.matrix,e),t7(this,{values:e},!0)}rescale(){return this.isValid?t7(this,{values:function(e){let t={};for(let[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){let t;if(!this.isValid||0===e.length)return this;e=e.map(e=>nt.normalizeUnit(e));let n={},r={},i=this.toObject();for(let a of t9)if(e.indexOf(a)>=0){t=a;let e=0;for(let t in r)e+=this.matrix[t][a]*r[t],r[t]=0;e$(i[a])&&(e+=i[a]);let o=Math.trunc(e);n[a]=o,r[a]=(1e3*e-1e3*o)/1e3}else e$(i[a])&&(r[a]=i[a]);for(let e in r)0!==r[e]&&(n[t]+=e===t?r[e]:r[e]/this.matrix[t][e]);return ne(this.matrix,n),t7(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return t7(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;for(let r of t9){var t,n;if(t=this.values[r],n=e.values[r],void 0===t||0===t?void 0!==n&&0!==n:t!==n)return!1}return!0}}let nn="Invalid Interval";class nr{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}
470static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Interval is invalid");let n=e instanceof e_?e:new e_(e,t);if(!ew.throwOnInvalid)return new nr({invalid:n});throw new o(n)}static fromDateTimes(e,t){let n=nq(e),r=nq(t),i=n&&n.isValid?r&&r.isValid?r<n?nr.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${r.toISO()}`):null:nr.invalid("missing or invalid end"):nr.invalid("missing or invalid start");return null==i?new nr({start:n,end:r}):i}static after(e,t){let n=nt.fromDurationLike(t),r=nq(e);return nr.fromDateTimes(r,r.plus(n))}static before(e,t){let n=nt.fromDurationLike(t),r=nq(e);return nr.fromDateTimes(r.minus(n),r)}static fromISO(e,t){let[n,r]=(e||"").split("/",2);if(n&&r){let e,i,a,o;try{i=(e=nV.fromISO(n,t)).isValid}catch(e){i=!1}try{o=(a=nV.fromISO(r,t)).isValid}catch(e){o=!1}if(i&&o)return nr.fromDateTimes(e,a);if(i){let n=nt.fromISO(r,t);if(n.isValid)return nr.after(e,n)}else if(o){let e=nt.fromISO(n,t);if(e.isValid)return nr.before(a,e)}}return nr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){let n;if(!this.isValid)return NaN;let r=this.start.startOf(e,t);return Math.floor((n=(n=t?.useLocaleWeeks?this.end.reconfigure({locale:r.locale}):this.end).startOf(e,t)).diff(r,e).get(e))+(n.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?nr.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];let t=e.map(nq).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),n=[],{s:r}=this,i=0;for(;r<this.e;){let e=t[i]||this.e,a=+e>+this.e?this.e:e;n.push(nr.fromDateTimes(r,a)),r=a,i+=1}return n}splitBy(e){let t=nt.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let{s:n}=this,r=1,i,a=[];for(;n<this.e;){let e=this.start.plus(t.mapUnits(e=>e*r));i=+e>+this.e?this.e:e,a.push(nr.fromDateTimes(n,i)),n=i,r+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!!this.isValid&&!!e.isValid&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:nr.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;let t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return nr.fromDateTimes(t,n)}static merge(e){let[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0,r=[],i=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]);for(let e of Array.prototype.concat(...i).sort((e,t)=>e.time-t.time))1===(n+="s"===e.type?1:-1)?t=e.time:(t&&+t!=+e.time&&r.push(nr.fromDateTimes(t,e.time)),t=null);return nr.merge(r)}difference(...e){return nr.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:nn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=m,t={}){return this.isValid?tf.create(this.s.loc.clone(t),e).formatInterval(this):nn}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:nn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:nn}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:nn}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:nn}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):nt.invali
470d(this.invalidReason)}mapEndpoints(e){return nr.fromDateTimes(e(this.s),e(this.e))}}class ni{static hasDST(e=ew.defaultZone){let t=nV.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Z.isValidZone(e)}static normalizeZone(e){return eo(e,ew.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||en.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||en.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||en.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||en.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||en.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||en.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||en.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return en.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return en.create(t,null,"gregory").eras(e)}static features(){return{relative:eL(),localeWeek:eF()}}}function na(e,t){let n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(nt.fromMillis(r).as("days"))}function no(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(!isNaN(t))return t;t="";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(-1!==e[n].search(es.hanidec))t+=ec.indexOf(e[n]);else for(let e in el){let[n,i]=el[e];r>=n&&r<=i&&(t+=r-n)}}return parseInt(t,10)}(e))}}let ns=String.fromCharCode(160),nl=`[ ${ns}]`,nc=RegExp(nl,"g");function nu(e){return e.replace(/\./g,"\\.?").replace(nc,nl)}function nd(e){return e.replace(/\./g,"").replace(nc," ").toLowerCase()}function np(e,t){return null===e?null:{regex:RegExp(e.map(nu).join("|")),deser:([n])=>e.findIndex(e=>nd(n)===nd(e))+t}}function nf(e,t){return{regex:e,deser:([,e,t])=>e3(e,t),groups:t}}function nh(e){return{regex:e,deser:([e])=>e}}
470let nm={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}},ng=null;function ny(e,t){return Array.prototype.concat(...e.map(e=>(function(e,t){if(e.literal)return e;let n=nw(tf.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n})(e,t)))}class nv{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=ny(tf.parseFormat(t),e),this.units=this.tokens.map(t=>(function(e,t){let n=ed(t),r=ed(t,"{2}"),i=ed(t,"{3}"),a=ed(t,"{4}"),o=ed(t,"{6}"),s=ed(t,"{1,2}"),l=ed(t,"{1,3}"),c=ed(t,"{1,6}"),u=ed(t,"{1,9}"),d=ed(t,"{2,4}"),p=ed(t,"{4,6}"),f=e=>({regex:RegExp(e.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:([e])=>e,literal:!0}),h=(h=>{if(e.literal)return f(h);switch(h.val){case"G":return np(t.eras("short"),0);case"GG":return np(t.eras("long"),0);case"y":return no(c);case"yy":case"kk":return no(d,e1);case"yyyy":case"kkkk":return no(a);case"yyyyy":return no(p);case"yyyyyy":return no(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return no(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return no(r);case"MMM":return np(t.months("short",!0),1);case"MMMM":return np(t.months("long",!0),1);case"LLL":return np(t.months("short",!1),1);case"LLLL":return np(t.months("long",!1),1);case"o":case"S":return no(l);case"ooo":case"SSS":return no(i);case"u":return nh(u);case"uu":return nh(s);case"uuu":case"E":case"c":return no(n);case"a":return np(t.meridiems(),0);case"EEE":return np(t.weekdays("short",!1),1);case"EEEE":return np(t.weekdays("long",!1),1);case"ccc":return np(t.weekdays("short",!0),1);case"cccc":return np(t.weekdays("long",!0),1);case"Z":case"ZZ":return nf(RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return nf(RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return nh(/[a-z_+-/]{1,256}?/i);case" ":return nh(/[^\S\n\r]/);default:return f(h)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return h.token=e,h})(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){let[e,t]=function(e){let t=e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"");return[`^${t}$`,e]}(this.units);this.regex=RegExp(e,"i"),this.handlers=t}}explainFromTokens(e){if(!this.isValid)return{input:e,tokens:this.tokens,invalidReason:this.invalidReason};{let[t,n]=function(e,t,n){let r=e.match(t);if(!r)return[r,{}];{let e={},t=1;for(let i in n)if(eU(n,i)){let a=n[i],o=a.groups?a.groups+1:1;!a.literal&&a.token&&(e[a.token.val[0]]=a.deser(r.slice(t,t+o))),t+=o}return[r,e]}}(e,this.regex,this.handlers),[r,i,a]=n?function(e){let t;let n=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null;return eM(e.z)||(r=Z.create(e.z)),eM(e.Z)||(r||(r=new ei(e.Z)),t=e.Z),eM(e.q)||(e.M=(e.q-1)*3+1),eM(e.h)||(e.h<12&&1===e.a?e.h+=12:12!==e.h||0!==e.a||(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),eM(e.u)||(e.S=eG(e.u)),[Object.keys(e).reduce((t,r)=>{let i=n(r);return i&&(t[i]=e[r]),t},{}),r,t]}(n):[null,null,void 0];if(eU(n,"a")&&eU(n,"H"))throw new l("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:i,specificOffset:a}}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invali
470dReason:null}}function nb(e,t,n){return new nv(e,n).explainFromTokens(t)}function nw(e,t){if(!e)return null;let n=tf.create(t,e).dtFormatter((ng||(ng=nV.fromMillis(1555555555555)),ng)),r=n.formatToParts(),i=n.resolvedOptions();return r.map(t=>(function(e,t,n){let{type:r,value:i}=e;if("literal"===r){let e=/^\s+$/.test(i);return{literal:!e,val:e?" ":i}}let a=t[r],o=r;"hour"===r&&(o=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let s=nm[o];if("object"==typeof s&&(s=s[a]),s)return{literal:!1,val:s}})(t,e,i))}let n_="Invalid DateTime";function nx(e){return new e_("unsupported zone",`the zone "${e.name}" is not supported`)}function nE(e){return null===e.weekData&&(e.weekData=eA(e.c)),e.weekData}function nS(e){return null===e.localWeekData&&(e.localWeekData=eA(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function nk(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new nV({...n,...t,old:n})}function nC(e,t,n){let r=e-6e4*t,i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*6e4;let a=n.offset(r);return i===a?[r,i]:[e-6e4*Math.min(i,a),Math.max(i,a)]}function nI(e,t){let n=new Date(e+=6e4*t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function nA(e,t){let n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),a={...e.c,year:r,month:i,day:Math.min(e.c.day,eJ(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},o=nt.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),[s,l]=nC(eX(a),n,e.zone);return 0!==o&&(s+=o,l=e.zone.offset(s)),{ts:s,o:l}}function nT(e,t,n,r,i,a){let{setZone:o,zone:s}=n;if((!e||0===Object.keys(e).length)&&!t)return nV.invalid(new e_("unparsable",`the input "${i}" can't be parsed as ${r}`));{let r=nV.fromObject(e,{...n,zone:t||s,specificOffset:a});return o?r:r.setZone(s)}}function nR(e,t,n=!0){return e.isValid?tf.create(en.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function nN(e,t){let n=e.c.year>9999||e.c.year<0,r="";return n&&e.c.year>=0&&(r+="+"),r+=eV(e.c.year,n?6:4),t?r+="-"+eV(e.c.month)+"-"+eV(e.c.day):r+=eV(e.c.month)+eV(e.c.day),r}function nO(e,t,n,r,i,a){let o=eV(e.c.hour);return t?(o+=":"+eV(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(o+=":")):o+=eV(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(o+=eV(e.c.second),0===e.c.millisecond&&r||(o+="."+eV(e.c.millisecond,3))),i&&(e.isOffsetFixed&&0===e.offset&&!a?o+="Z":e.o<0?o+="-"+eV(Math.trunc(-e.o/60))+":"+eV(Math.trunc(-e.o%60)):o+="+"+eV(Math.trunc(e.o/60))+":"+eV(Math.trunc(e.o%60))),a&&(o+="["+e.zone.ianaName+"]"),o}let nP={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},nD={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},nM={ordinal:1,hour:0,minute:0,second:0,millisecond:0},n$=["year","month","day","hour","minute","second","millisecond"],nj=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],nL=["year","ordinal","hour","minute","second","millisecond"];function nF(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new c(e);return t}(e)}}function nB(e,t){let n,i;let a=eo(t.zone,ew.defaultZone);if(!a.isValid)return nV.invalid(nx(a));let o=en.fromObject(t);if(eM(e.year))n=ew.now();else{for(let t of n$)eM(e[t])&&(e[t]=nP[t]);let t=eP(e)||eD(e);if(t)return nV.invalid(t);let o=(nZ[a]||(void 0===r&&(r=ew.now()),nZ[a]=a.offset(r)),nZ[a]);[n,i]=nC(eX(e),o,a)}return new nV({ts:n,zone:a,loc:o,o:i})}
470function nU(e,t,n){let r=!!eM(n.round)||n.round,i=(e,i)=>(e=eH(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,i)),a=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return i(a(n.unit),n.unit);for(let e of n.units){let t=a(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,n.units[n.units.length-1])}function nz(e){let t={},n;return e.length>0&&"object"==typeof e[e.length-1]?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let nZ={};class nV{constructor(e){let t=e.zone||ew.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new e_("invalid input"):null)||(t.isValid?null:nx(t));this.ts=eM(e.ts)?ew.now():e.ts;let r=null,i=null;if(!n){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,i]=[e.old.c,e.old.o];else{let a=e$(e.o)&&!e.old?e.o:t.offset(this.ts);r=(n=Number.isNaN((r=nI(this.ts,a)).year)?new e_("invalid input"):null)?null:r,i=n?null:a}}this._zone=t,this.loc=e.loc||en.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new nV({})}static local(){let[e,t]=nz(arguments),[n,r,i,a,o,s,l]=t;return nB({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:l},e)}static utc(){let[e,t]=nz(arguments),[n,r,i,a,o,s,l]=t;return e.zone=ei.utcInstance,nB({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:l},e)}static fromJSDate(e,t={}){let n="[object Date]"===Object.prototype.toString.call(e)?e.valueOf():NaN;if(Number.isNaN(n))return nV.invalid("invalid input");let r=eo(t.zone,ew.defaultZone);return r.isValid?new nV({ts:n,zone:r,loc:en.fromObject(t)}):nV.invalid(nx(r))}static fromMillis(e,t={}){if(e$(e))return e<-864e13||e>864e13?nV.invalid("Timestamp out of range"):new nV({ts:e,zone:eo(t.zone,ew.defaultZone),loc:en.fromObject(t)});throw new u(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(e$(e))return new nV({ts:1e3*e,zone:eo(t.zone,ew.defaultZone),loc:en.fromObject(t)});throw new u("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};let n=eo(t.zone,ew.defaultZone);if(!n.isValid)return nV.invalid(nx(n));let r=en.fromObject(t),i=e4(e,nF),{minDaysInFirstWeek:a,startOfWeek:o}=eO(i,r),s=ew.now(),c=eM(t.specificOffset)?n.offset(s):t.specificOffset,u=!eM(i.ordinal),d=!eM(i.year),p=!eM(i.month)||!eM(i.day),f=d||p,h=i.weekYear||i.weekNumber;if((f||u)&&h)throw new l("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(p&&u)throw new l("Can't mix ordinal dates with month/day");let m=h||i.weekday&&!f,g,y,v=nI(s,c);m?(g=nj,y=nD,v=eA(v,a,o)):u?(g=nL,y=nM,v=eR(v)):(g=n$,y=nP);let b=!1;for(let e of g)eM(i[e])?b?i[e]=y[e]:i[e]=v[e]:b=!0;let w=(m?function(e,t=4,n=1){let r=ej(e.weekYear),i=eZ(e.weekNumber,1,e0(e.weekYear,t,n)),a=eZ(e.weekday,1,7);return r?i?!a&&eS("weekday",e.weekday):eS("week",e.weekNumber):eS("weekYear",e.weekYear)}(i,a,o):u?function(e){let t=ej(e.year),n=eZ(e.ordinal,1,eK(e.year));return t?!n&&eS("ordinal",e.ordinal):eS("year",e.year)}(i):eP(i))||eD(i);if(w)return nV.invalid(w);let[_,x]=nC(eX(m?eT(i,a,o):u?eN(i):i),c,n),E=new nV({ts:_,zone:n,o:x,loc:r});return i.weekday&&f&&e.weekday!==E.weekday?nV.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${E.toISO()}`):E.isValid?E:nV.invalid(E.invalid)}static fromISO(e,t={}){let[n,r]=ty(e,[tV,tH],[tq,tY],[tW,tK],[tG,tJ]);return nT(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[n,r]=ty(e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[tj,tL]);return nT(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[n,r]=ty(e,[tF,tz],[tB,tz],[tU,tZ]);return nT(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(eM(e)||eM(t))throw new u("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:i=null}=n,[a,o,s,l]=function(e,t,n){let{result:r,zone:i,specificOffset:a,invalidReason:o}=nb(e,t,n);return[r,i,a,o]}(en.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),e,t);return l?nV.invalid(l):nT(a,o,n,`format ${t}`,e,s)}static fromString(e,t,n={}){return nV.fromFormat(e,t,n)}static fromSQL(e,t={}){let[n,r]=ty(e,[tQ,tH],[t0,t1]);return nT(n,r,t,"SQL",e)}
470static invalid(e,t=null){if(!e)throw new u("need to specify a reason the DateTime is invalid");let n=e instanceof e_?e:new e_(e,t);if(!ew.throwOnInvalid)return new nV({invalid:n});throw new a(n)}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let n=nw(e,en.fromObject(t));return n?n.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return ny(tf.parseFormat(e),en.fromObject(t)).map(e=>e.val).join("")}static resetCache(){r=void 0,nZ={}}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?nE(this).weekYear:NaN}get weekNumber(){return this.isValid?nE(this).weekNumber:NaN}get weekday(){return this.isValid?nE(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?nS(this).weekday:NaN}get localWeekNumber(){return this.isValid?nS(this).weekNumber:NaN}get localWeekYear(){return this.isValid?nS(this).weekYear:NaN}get ordinal(){return this.isValid?eR(this.c).ordinal:NaN}get monthShort(){return this.isValid?ni.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ni.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ni.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ni.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=eX(this.c),t=this.zone.offset(e-864e5),n=this.zone.offset(e+864e5),r=this.zone.offset(e-6e4*t),i=this.zone.offset(e-6e4*n);if(r===i)return[this];let a=e-6e4*r,o=e-6e4*i,s=nI(a,r),l=nI(o,i);return s.hour===l.hour&&s.minute===l.minute&&s.second===l.second&&s.millisecond===l.millisecond?[nk(this,{ts:a}),nk(this,{ts:o})]:[this]}get isInLeapYear(){return eY(this.year)}get daysInMonth(){return eJ(this.year,this.month)}get daysInYear(){return this.isValid?eK(this.year):NaN}get weeksInWeekYear(){return this.isValid?e0(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?e0(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:n,calendar:r}=tf.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(ei.instance(e),t)}toLocal(){return this.setZone(ew.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=eo(e,ew.defaultZone)).equals(this.zone))return this;if(!e.isValid)return nV.invalid(nx(e));{let i=this.ts;if(t||n){var r;let t=e.offset(this.ts),n=this.toObject();[i]=(r=e,nC(eX(n),t,r))}return nk(this,{ts:i,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return nk(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){var t,n,r;let i;if(!this.isValid)return this;let a=e4(e,nF),{minDaysInFirstWeek:o,startOfWeek:s}=eO(a,this.loc),c=!eM(a.weekYear)||!eM(a.weekNumber)||!eM(a.weekday),u=!eM(a.ordinal),d=!eM(a.year),p=!eM(a.month)||!eM(a.day),f=a.weekYear||a.weekNumber;if((d||p||u)&&f)throw new l("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(p&&u)throw new l("Can't mix ordinal dates with month/day");c?i=eT({...eA(this.c,o,s),...a},o,s):eM(a.ordinal)?(i={...this.toObject(),...a},eM(a.day)&&(i.day=Math.min(eJ(i.year,i.month),i.day))):i=eN({...eR(this.c),...a}
470);let[h,m]=(t=i,n=this.o,r=this.zone,nC(eX(t),n,r));return nk(this,{ts:h,o:m})}plus(e){return this.isValid?nk(this,nA(this,nt.fromDurationLike(e))):this}minus(e){return this.isValid?nk(this,nA(this,nt.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let n={},r=nt.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r){if(t){let e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1}if("quarters"===r){let e=Math.ceil(this.month/3);n.month=(e-1)*3+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?tf.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):n_}toLocaleString(e=m,t={}){return this.isValid?tf.create(this.loc.clone(t),e).formatDateTime(this):n_}toLocaleParts(e={}){return this.isValid?tf.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;let a="extended"===e;return nN(this,a)+"T"+nO(this,a,t,n,r,i)}toISODate({format:e="extended"}={}){return this.isValid?nN(this,"extended"===e):null}toISOWeekDate(){return nR(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:i=!1,format:a="extended"}={}){return this.isValid?(r?"T":"")+nO(this,"extended"===a,t,e,n,i):null}toRFC2822(){return nR(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return nR(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?nN(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),nR(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():n_}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return nt.invalid("created by diffing an invalid DateTime");let r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=(Array.isArray(t)?t:[t]).map(nt.normalizeUnit),a=e.valueOf()>this.valueOf(),o=function(e,t,n,r){let[i,a,o,s]=function(e,t,n){let r,i;let a={},o=e;for(let[s,l]of[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{let n=na(e,t);return(n-n%7)/7}],["days",na]])n.indexOf(s)>=0&&(r=s,a[s]=l(e,t),(i=o.plus(a))>t?(a[s]--,(e=o.plus(a))>t&&(i=e,a[s]--,e=o.plus(a))):e=i);return[e,a,i,r]}(e,t,n),l=t-i,c=n.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===c.length&&(o<t&&(o=i.plus({[s]:1})),o!==i&&(a[s]=(a[s]||0)+l/(o-i)));let u=nt.fromObject(a,r);return c.length>0?nt.fromMillis(l,r).shiftTo(...c).plus(u):u}(a?this:e,a?e:this,i,r);return a?o.negate():o}diffNow(e="milliseconds",t={}){return this.diff(nV.now(),e,t)}until(e){return this.isValid?nr.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;let r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,n)<=r&&r<=i.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||nV.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0,r=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(r=e.unit,i=void 0),nU(t,this.plus(n),{...e,numeric:"always",units:r,unit:i})}toRelativeCalendar(e={}){return this.isValid?nU(e.base||nV.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(nV.isDateTime))throw new u("min requires all arguments be DateTimes");return eB(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every(nV.isDateTime))throw new u("max requires all arguments be DateTimes");return eB(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){let{locale:r=null,numberingSystem:i=null}=n;return nb(en.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return nV.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){let{locale:n=null,numberingSystem:r=null}=t;return new nv(en.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0}),e)}static fromFormatParser(e,t,n={}){if(eM(e)||eM(t))throw new u("fromFormatParser requires an input string and a format parser");let{locale:r=null,numberingSystem:i=null}=n,a=en.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});if(!a.equals(t.locale))throw new u(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${t.locale}`);let{result:o,zone:s,specificOffset:l,invalidReason:c}=t.explainFromTokens(e);return c?nV.invalid(c):nT(o,s,n,`format ${t.format}`,e,l)}static get DATE_SHORT(){return m}static get DATE_MED(){return g}static get DATE_MED_WITH_WEEKDAY(){return y}static get DATE_FULL(){return v}static get DATE_HUGE(){return b}static get TIME_SIMPLE(){return w}static get TIME_WITH_SECONDS(){return _}static get TIME_WITH_SHORT_OFFSET(){return x}static get TIME_WITH_LONG_OFFSET(){return E}static get TIME_24_SIMPLE(){return S}static get TIME_24_WITH_SECONDS(){return k}static get TIME_24_WITH_SHORT_OFFSET(){return C}static get TIME_24_WITH_LONG_OFFSET(){return I}static get DATETIME_SHORT(){return A}static get DATETIME_SHORT_WITH_SECONDS(){return T}static get DATETIME_MED(){return R}static get DATETIME_MED_WITH_SECONDS(){return N}static get DATETIME_MED_WITH_WEEKDAY(){return O}static get DATETIME_FULL(){return P}static get DATETIME_FULL_WITH_SECONDS(){return D}static get DATETIME_HUGE(){return M}static get DATETIME_HUGE_WITH_SECONDS(){return $}}function nq(e){if(nV.isDateTime(e))return e;if(e&&e.valueOf&&e$(e.valueOf()))return nV.fromJSDate(e);if(e&&"object"==typeof e)return nV.fromObject(e);throw new u(`Unknown datetime argument: ${e}, of type ${typeof e}`)}},11721:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});let r={};function i(e,t){let n=t||r;return a(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function a(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return o(e.children,t,n)}return Array.isArray(e)?o(e,t,n):""}function o(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=a(e[i],t,n);return r.join("")}},43590:function(e,t,n){"use strict";n.d(t,{w:function(){return a}});var r=n(60403),i=n(6020);let a={partial:!0,tokenize:function(e,t,n){return function(t){return(0,i.xz)(t)?(0,r.f)(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||(0,i.Ch)(e)?t(e):n(e)}}}},60403:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(6020);function i(e,t,n,i){let a=i?i-1:Number.POSITIVE_INFINITY,o=0;return function(i){return(0,r.xz)(i)?(e.enter(n),function i(s){return(0,r.xz)(s)&&o++<a?(e.consume(s),i):(e.exit(n),t(s))}(i)):t(i)}}},6020:function(e,t,n){"use strict";n.d(t,{AF:function(){return l},Av:function(){return o},B8:function(){return h},Ch:function(){return u},H$:function(){return i},Xh:function(){return f},jv:function(){return r},n9:function(){return a},pY:function(){return s},sR:function(){return c},xz:function(){return p},z3:function(){return d}});let r=m(/[A-Za-z]/),i=m(/[\dA-Za-z]/),a=m(/[#-'*+\--9=?A-Z^-~]/);function o(e){return null!==e&&(e<32||127===e)}let s=m(/\d/),l=m(/[\dA-Fa-f]/),c=m(/[!-/:-@[-`{-~]/);function u(e){return null!==e&&e<-2}function d(e){return null!==e&&(e<0||32===e)}function p(e){return -2===e||-1===e||32===e}let f=m(/\p{P}|\p{S}/u),h=m(/\s/);function m(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},57974:function(e,t,n){"use strict";function r(e,t,n,r){let i;let a=e.length,o=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:function(){return i},d:function(){return r}})},72147:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(6020);function i(e){return null===e||(0,r.z3)(e)||(0,r.B8)(e)?1:(0,r.Xh)(e)?2:void 0}},33850:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(57974);let i={}.hasOwnProperty;function a(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let a;let o=(i.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];
470if(s)for(a in s){i.call(o,a)||(o[a]=[]);let e=s[a];!function(e,t){let n=-1,i=[];for(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);(0,r.d)(e,0,0,i)}(o[a],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}},23185:function(e,t,n){"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{d:function(){return r}})},797:function(e,t,n){"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}n.d(t,{C:function(){return r}})},80991:function(e,t,n){"use strict";var r=n(75271);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});t.Z=i},62717:function(e,t,n){"use strict";var r=n(75271);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",clipRule:"evenodd"}))});t.Z=i},71659:function(e,t,n){"use strict";var r=n(75271);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M10 1a4.5 4.5 0 0 0-4.5 4.5V9H5a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2h-.5V5.5A4.5 4.5 0 0 0 10 1Zm3 8V5.5a3 3 0 1 0-6 0V9h6Z",clipRule:"evenodd"}))});t.Z=i},46384:function(e,t,n){"use strict";var r=n(75271);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"}))});t.Z=i},72633:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var r=n(13907);function i(e){return{newRole:e=>{var t;return{authorize(e,n="AND"){let i=!1;for(let[a,o]of Object.entries(e)){let e=t[a];if(!e)return{success:!1,error:`You are not allowed to access resource: ${a}`};if(Array.isArray(o))i=o.every(t=>e.includes(t));else if("object"==typeof o)i="OR"===o.connector?o.actions.some(t=>e.includes(t)):o.actions.every(t=>e.includes(t));else throw new r.B("Invalid access control request");if(i&&"OR"===n)return{success:i};if(!i&&"AND"===n)return{success:!1,error:`unauthorized to access resource "${a}"`}}return i?{success:i}:{success:!1,error:"Not authorized"}},statements:t=e}},statements:e}}},20156:function(e,t,n){"use strict";n.d(t,{MU:function(){return o},O9:function(){return c},Sd:function(){return i},kW:function(){return s},zy:function(){return l}});var r=n(72633);n(13907);let i={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"]}
470,a=(0,r.p)(i),o=a.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"]}),s=a.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"]}),l=a.newRole({organization:[],member:[],invitation:[],team:[]}),c={admin:o,owner:s,member:l}},13907:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});class r extends Error{constructor(e,t){super(e),this.name="BetterAuthError",this.message=e,this.cause=t,this.stack=""}}},25282:function(e,t,n){"use strict";n.d(t,{KN:function(){return j},Qr:function(){return $},U2:function(){return y},cI:function(){return eE},qo:function(){return M},t8:function(){return _}});var r=n(75271),i=e=>"checkbox"===e.type,a=e=>e instanceof Date,o=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!o(e)&&!Array.isArray(e)&&s(e)&&!a(e),c=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,u=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(u(t)),p=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},f="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(e){let t;let n=Array.isArray(e),r="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(f&&(e instanceof Blob||r))&&(n||l(e))))return e;else if(t=n?[]:{},n||p(e))for(let n in e)e.hasOwnProperty(n)&&(t[n]=h(e[n]));else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],g=e=>void 0===e,y=(e,t,n)=>{if(!t||!l(e))return n;let r=m(t.split(/[,[\].]+?/)).reduce((e,t)=>o(e)?e:e[t],e);return g(r)||r===e?g(e[t])?n:e[t]:r},v=e=>"boolean"==typeof e,b=e=>/^\w*$/.test(e),w=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/)),_=(e,t,n)=>{let r=-1,i=b(t)?[t]:w(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=l(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=a,e=e[t]}return e};let x={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},E={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},S={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},k=r.createContext(null),C=()=>r.useContext(k);var I=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>(t._proxyFormState[a]!==E.all&&(t._proxyFormState[a]=!r||E.all),n&&(n[a]=!0),e[a])});return i},A=e=>l(e)&&!Object.keys(e).length,T=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return A(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||E.all))},R=e=>Array.isArray(e)?e:[e],N=(e,t,n)=>!e||!t||e===t||R(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e)));function O(e){let t=r.useRef(e);t.current=e,r.useEffect(()=>{let n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var P=e=>"string"==typeof e,D=(e,t,n,r,i)=>P(e)?(r&&t.watch.add(e),y(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),y(n,e))):(r&&(t.watchAll=!0),n);function M(e){let t=C(),{control:n=t.control,name:i,defaultValue:a,disabled:o,exact:s}=e||{},l=r.useRef(i);l.current=i,O({disabled:o,subject:n._subjects.values,next:e=>{N(l.current,e.name,s)&&u(h(D(l.current,n._names,e.values||n._formValues,!1,a)))}});let[c,u]=r.useState(n._getWatch(i,a));return r.useEffect(()=>n._removeUnmounted()),c}let $=e=>e.render(function(e){let t=C(),{name:n,disabled:i,control:a=t.control,shouldUnregister:o}=e,s=d(a._names.array,n),l=M({control:a,name:n,defaultValue:y(a._formValues,n,y(a._defaultValues,n,e.defaultValue)),exact:!0}),u=function(e){let t=C(),{control:n=t.control,disabled:i,name:a,exact:o}=e||{},[s,l]=r.useState(n._formState),c=r.useRef(!0),u=r.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=r.useRef(a);return d.current=a,O({disabled:i,next:e=>c.current&&N(d.current,e.name,o)&&T(e,u.current,n._updateFormState)&&l({...n._formState,...e}),subject:n._subjects.state}),r.useEffect(()=>
470(c.current=!0,u.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),r.useMemo(()=>I(s,n,u.current,!1),[s,n])}({control:a,name:n,exact:!0}),p=r.useRef(a.register(n,{...e.rules,value:l,...v(e.disabled)?{disabled:e.disabled}:{}})),f=r.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!y(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!y(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!y(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!y(u.validatingFields,n)},error:{enumerable:!0,get:()=>y(u.errors,n)}}),[u,n]),m=r.useMemo(()=>({name:n,value:l,...v(i)||u.disabled?{disabled:u.disabled||i}:{},onChange:e=>p.current.onChange({target:{value:c(e),name:n},type:x.CHANGE}),onBlur:()=>p.current.onBlur({target:{value:y(a._formValues,n),name:n},type:x.BLUR}),ref:e=>{let t=y(a._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}}),[n,a._formValues,i,u.disabled,l,a._fields]);return r.useEffect(()=>{let e=a._options.shouldUnregister||o,t=(e,t)=>{let n=y(a._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=h(y(a._options.defaultValues,n));_(a._defaultValues,n,e),g(y(a._formValues,n))&&_(a._formValues,n,e)}return s||a.register(n),()=>{(s?e&&!a._state.action:e)?a.unregister(n):t(n,!1)}},[n,a,s,o]),r.useEffect(()=>{a._updateDisabledField({disabled:i,fields:a._fields,name:n})},[i,n,a]),r.useMemo(()=>({field:m,formState:u,fieldState:f}),[m,u,f])}(e));var j=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},L=e=>({isOnSubmit:!e||e===E.onSubmit,isOnBlur:e===E.onBlur,isOnChange:e===E.onChange,isOnAll:e===E.all,isOnTouch:e===E.onTouched}),F=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let B=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=y(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(B(a,t))break}else if(l(a)&&B(a,t))break}}};var U=(e,t,n)=>{let r=R(y(e,n));return _(r,"root",t[n]),_(e,n,r),e},z=e=>"file"===e.type,Z=e=>"function"==typeof e,V=e=>{if(!f)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},q=e=>P(e),W=e=>"radio"===e.type,G=e=>e instanceof RegExp;let H={value:!1,isValid:!1},Y={value:!0,isValid:!0};var K=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!g(e[0].attributes.value)?g(e[0].value)||""===e[0].value?Y:{value:e[0].value,isValid:!0}:Y:H}return H};let J={isValid:!1,value:null};var X=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,J):J;function Q(e,t,n="validate"){if(q(e)||Array.isArray(e)&&e.every(q)||v(e)&&!e)return{type:n,message:q(e)?e:"",ref:t}}var ee=e=>l(e)&&!G(e)?e:{value:e,message:""},et=async(e,t,n,r,a,s)=>{let{ref:c,refs:u,required:d,maxLength:p,minLength:f,min:h,max:m,pattern:b,validate:w,name:_,valueAsNumber:x,mount:E}=e._f,k=y(n,_);if(!E||t.has(_))return{};let C=u?u[0]:c,I=e=>{a&&C.reportValidity&&(C.setCustomValidity(v(e)?"":e||""),C.reportValidity())},T={},R=W(c),N=i(c),O=(x||z(c))&&g(c.value)&&g(k)||V(c)&&""===c.value||""===k||Array.isArray(k)&&!k.length,D=j.bind(null,_,r,T),M=(e,t,n,r=S.maxLength,i=S.minLength)=>{let a=e?t:n;T[_]={type:e?r:i,message:a,ref:c,...D(e?r:i,a)}};if(s?!Array.isArray(k)||!k.length:d&&(!(R||N)&&(O||o(k))||v(k)&&!k||N&&!K(u).isValid||R&&!X(u).isValid)){let{value:e,message:t}=q(d)?{value:!!d,message:d}:ee(d);if(e&&(T[_]={type:S.required,message:t,ref:C,...D(S.required,t)},!r))return I(t),T}if(!O&&(!o(h)||!o(m))){let e,t;let n=ee(m),i=ee(h);if(o(k)||isNaN(k)){let r=c.valueAsDate||new Date(k),a=e=>new Date(new Date().toDateString()+" "+e),o="time"==c.type,s="week"==c.type;P(n.value)&&k&&(e=o?a(k)>a(n.value):s?k>n.value:r>new Date(n.value)),P(i.value)&&k&&(t=o?a(k)<a(i.value):s?k<i.value:r<new Date(i.value))}else{let r=c.valueAsNumber||(k?+k:k);o(n.value)||(e=r>n.value),o(i.value)||(t=r<i.value)}if((e||t)&&(M(!!e,n.message,i.message,S.max,S.min),!r))return I(T[_].message),T}if((p||f)&&!O&&(P(k)||s&&Array.isArray(k))){let e=ee(p),t=ee(f),n=!o(e.value)&&k.length>+e.value,i=!o(t.value)&&k.length<+t.value;if((n||i)&&(M(n,e.message,t.message),!r))return I(T[_].message),T}if(b&&!O&&P(k)){let{value:e,message:t}=ee(b);if(G(e)&&!k.match(e)&&(T[_]={type:S.pattern,message:t,ref:c,...D(S.pattern,t)},!r))return I(t),T}if(w){if(Z(w)){let e=Q(await w(k,n),C);if(e&&(T[_]={...e,...D(S.validate,e.message)},!r))return I(e.message),T}else if(l(w)){let e={};for(let t in w){if(!A(e)&&!r)break;let i=Q(await w[t](k,n),C,t);
470i&&(e={...i,...D(t,i.message)},I(i.message),r&&(T[_]=e))}if(!A(e)&&(T[_]={ref:C,...e},!r))return T}}return I(!0),T};function en(e,t){let n=Array.isArray(t)?t:b(t)?[t]:w(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r<n;)e=g(e)?r++:e[t[r++]];return e}(e,n),i=n.length-1,a=n[i];return r&&delete r[a],0!==i&&(l(r)&&A(r)||Array.isArray(r)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!g(e[t]))return!1;return!0}(r))&&en(e,n.slice(0,-1)),e}var er=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},ei=e=>o(e)||!s(e);function ea(e,t){if(ei(e)||ei(t))return e===t;if(a(e)&&a(t))return e.getTime()===t.getTime();let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n){let n=e[i];if(!r.includes(i))return!1;if("ref"!==i){let e=t[i];if(a(n)&&a(e)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!ea(n,e):n!==e)return!1}}return!0}var eo=e=>"select-multiple"===e.type,es=e=>W(e)||i(e),el=e=>V(e)&&e.isConnected,ec=e=>{for(let t in e)if(Z(e[t]))return!0;return!1};function eu(e,t={}){let n=Array.isArray(e);
470if(l(e)||n)for(let n in e)Array.isArray(e[n])||l(e[n])&&!ec(e[n])?(t[n]=Array.isArray(e[n])?[]:{},eu(e[n],t[n])):o(e[n])||(t[n]=!0);return t}var ed=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!ec(t[i])?g(n)||ei(r[i])?r[i]=Array.isArray(t[i])?eu(t[i],[]):{...eu(t[i])}:e(t[i],o(n)?{}:n[i],r[i]):r[i]=!ea(t[i],n[i]);return r})(e,t,eu(t)),ep=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>g(e)?e:t?""===e?NaN:e?+e:e:n&&P(e)?new Date(e):r?r(e):e;function ef(e){let t=e.ref;return z(t)?t.files:W(t)?X(e.refs).value:eo(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?K(e.refs).value:ep(g(t.value)?e.ref.value:t.value,e)}var eh=(e,t,n,r)=>{let i={};for(let n of e){let e=y(t,n);e&&_(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},em=e=>g(e)?e:G(e)?e.source:l(e)?G(e.value)?e.value.source:e.value:e;let eg="AsyncFunction";var ey=e=>!!e&&!!e.validate&&!!(Z(e.validate)&&e.validate.constructor.name===eg||l(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===eg)),ev=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function eb(e,t,n){let r=y(e,n);if(r||b(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),a=y(t,r),o=y(e,r);if(a&&!Array.isArray(a)&&n!==r)break;if(o&&o.type)return{name:r,error:o};i.pop()}return{name:n}}var ew=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?!r.isOnChange:!i.isOnChange)||e),e_=(e,t)=>!m(y(e,t)).length&&en(e,t);let ex={mode:E.onSubmit,reValidateMode:E.onChange,shouldFocusError:!0};function eE(e={}){let t=r.useRef(void 0),n=r.useRef(void 0),[s,u]=r.useState({isDirty:!1,isValidating:!1,isLoading:Z(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Z(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={}){let t,n={...ex,...e},r={submitCount:0,isDirty:!1,isLoading:Z(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},s={},u=(l(n.defaultValues)||l(n.values))&&h(n.defaultValues||n.values)||{},p=n.shouldUnregister?{}:h(u),b={action:!1,mount:!1,watch:!1},w={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},S=0,k={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},C={values:er(),array:er(),state:er()},I=L(n.mode),T=L(n.reValidateMode),N=n.criteriaMode===E.all,O=e=>t=>{clearTimeout(S),S=setTimeout(e,t)},M=async e=>{if(!n.disabled&&(k.isValid||e)){let e=n.resolver?A((await H()).errors):await K(s,!0);e!==r.isValid&&C.state.next({isValid:e})}},$=(e,t)=>{!n.disabled&&(k.isValidating||k.validatingFields)&&((e||Array.from(w.mount)).forEach(e=>{e&&(t?_(r.validatingFields,e,t):en(r.validatingFields,e))}),C.state.next({validatingFields:r.validatingFields,isValidating:!A(r.validatingFields)}))},j=(e,t)=>{_(r.errors,e,t),C.state.next({errors:r.errors})},q=(e,t,n,r)=>{let i=y(s,e);if(i){let a=y(p,e,g(n)?y(u,e):n);g(a)||r&&r.defaultChecked||t?_(p,e,t?a:ef(i._f)):Q(e,a),b.mount&&M()}},W=(e,t,i,a,o)=>{let l=!1,c=!1,d={name:e};if(!n.disabled){let n=!!(y(s,e)&&y(s,e)._f&&y(s,e)._f.disabled);if(!i||a){k.isDirty&&(c=r.isDirty,r.isDirty=d.isDirty=J(),l=c!==d.isDirty);let i=n||ea(y(u,e),t);c=!!(!n&&y(r.dirtyFields,e)),i||n?en(r.dirtyFields,e):_(r.dirtyFields,e,!0),d.dirtyFields=r.dirtyFields,l=l||k.dirtyFields&&!i!==c}if(i){let t=y(r.touchedFields,e);t||(_(r.touchedFields,e,i),d.touchedFields=r.touchedFields,l=l||k.touchedFields&&t!==i)}l&&o&&C.state.next(d)}return l?d:{}},G=(e,i,a,o)=>{let s=y(r.errors,e),l=k.isValid&&v(i)&&r.isValid!==i;if(n.delayError&&a?(t=O(()=>j(e,a)))(n.delayError):(clearTimeout(S),t=null,a?_(r.errors,e,a):en(r.errors,e)),(a?!ea(s,a):s)||!A(o)||l){let t={...o,...l&&v(i)?{isValid:i}:{},errors:r.errors,name:e};r={...r,...t},C.state.next(t)}},H=async e=>{$(e,!0);let t=await n.resolver(p,n.context,eh(e||w.mount,s,n.criteriaMode,n.shouldUseNativeValidation));return $(e),t},Y=async e=>{let{errors:t}=await H(e);if(e)for(let n of e){let e=y(t,n);e?_(r.errors,n,e):en(r.errors,n)}else r.errors=t;return t},K=async(e,t,i={valid:!0})=>{for(let a in e){let o=e[a];if(o){let{_f:e,...s}=o;if(e){let s=w.array.has(e.name),l=o._f&&ey(o._f);l&&k.validatingFields&&$([a],!0);let c=await et(o,w.disabled,p,N,n.shouldUseNativeValidation&&!t,s);if(l&&k.validatingFields&&$([a]),c[e.name]&&(i.valid=!1,t))break;
470t||(y(c,e.name)?s?U(r.errors,c,e.name):_(r.errors,e.name,c[e.name]):en(r.errors,e.name))}A(s)||await K(s,t,i)}}return i.valid},J=(e,t)=>!n.disabled&&(e&&t&&_(p,e,t),!ea(eE(),u)),X=(e,t,n)=>D(e,w,{...b.mount?p:g(t)?u:P(e)?{[e]:t}:t},n,t),Q=(e,t,n={})=>{let r=y(s,e),a=t;if(r){let n=r._f;n&&(n.disabled||_(p,e,ep(t,n)),a=V(n.ref)&&o(t)?"":t,eo(n.ref)?[...n.ref.options].forEach(e=>e.selected=a.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(a)?!!a.find(t=>t===e.value):a===e.value)):n.refs[0]&&(n.refs[0].checked=!!a):n.refs.forEach(e=>e.checked=e.value===a):z(n.ref)?n.ref.value="":(n.ref.value=a,n.ref.type||C.values.next({name:e,values:{...p}})))}(n.shouldDirty||n.shouldTouch)&&W(e,a,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&eg(e)},ee=(e,t,n)=>{for(let r in t){let i=t[r],o=`${e}.${r}`,c=y(s,o);(w.array.has(e)||l(i)||c&&!c._f)&&!a(i)?ee(o,i,n):Q(o,i,n)}},ei=(e,t,n={})=>{let i=y(s,e),a=w.array.has(e),l=h(t);_(p,e,l),a?(C.array.next({name:e,values:{...p}}),(k.isDirty||k.dirtyFields)&&n.shouldDirty&&C.state.next({name:e,dirtyFields:ed(u,p),isDirty:J(e,l)})):!i||i._f||o(l)?Q(e,l,n):ee(e,l,n),F(e,w)&&C.state.next({...r}),C.values.next({name:b.mount?e:void 0,values:{...p}})},ec=async e=>{b.mount=!0;let i=e.target,o=i.name,l=!0,u=y(s,o),d=e=>{l=Number.isNaN(e)||a(e)&&isNaN(e.getTime())||ea(e,y(p,o,e))};if(u){let a,f;let h=i.type?ef(u._f):c(e),m=e.type===x.BLUR||e.type===x.FOCUS_OUT,g=!ev(u._f)&&!n.resolver&&!y(r.errors,o)&&!u._f.deps||ew(m,y(r.touchedFields,o),r.isSubmitted,T,I),v=F(o,w,m);_(p,o,h),m?(u._f.onBlur&&u._f.onBlur(e),t&&t(0)):u._f.onChange&&u._f.onChange(e);let b=W(o,h,m,!1),E=!A(b)||v;if(m||C.values.next({name:o,type:e.type,values:{...p}}),g)return k.isValid&&("onBlur"===n.mode&&m?M():m||M()),E&&C.state.next({name:o,...v?{}:b});if(!m&&v&&C.state.next({...r}),n.resolver){let{errors:e}=await H([o]);if(d(h),l){let t=eb(r.errors,s,o),n=eb(e,s,t.name||o);a=n.error,o=n.name,f=A(e)}}else $([o],!0),a=(await et(u,w.disabled,p,N,n.shouldUseNativeValidation))[o],$([o]),d(h),l&&(a?f=!1:k.isValid&&(f=await K(s,!0)));l&&(u._f.deps&&eg(u._f.deps),G(o,f,a,b))}},eu=(e,t)=>{if(y(r.errors,t)&&e.focus)return e.focus(),1},eg=async(e,t={})=>{let i,a;let o=R(e);if(n.resolver){let t=await Y(g(e)?e:o);i=A(t),a=e?!o.some(e=>y(t,e)):i}else e?((a=(await Promise.all(o.map(async e=>{let t=y(s,e);return await K(t&&t._f?{[e]:t}:t)}))).every(Boolean))||r.isValid)&&M():a=i=await K(s);return C.state.next({...!P(e)||k.isValid&&i!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:i}:{},errors:r.errors}),t.shouldFocus&&!a&&B(s,eu,e?o:w.mount),a},eE=e=>{let t={...b.mount?p:u};return g(e)?t:P(e)?y(t,e):e.map(e=>y(t,e))},eS=(e,t)=>({invalid:!!y((t||r).errors,e),isDirty:!!y((t||r).dirtyFields,e),error:y((t||r).errors,e),isValidating:!!y(r.validatingFields,e),isTouched:!!y((t||r).touchedFields,e)}),ek=(e,t,n)=>{let i=(y(s,e,{_f:{}})._f||{}).ref,{ref:a,message:o,type:l,...c}=y(r.errors,e)||{};_(r.errors,e,{...c,...t,ref:i}),C.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},eC=(e,t={})=>{for(let i of e?R(e):w.mount)w.mount.delete(i),w.array.delete(i),t.keepValue||(en(s,i),en(p,i)),t.keepError||en(r.errors,i),t.keepDirty||en(r.dirtyFields,i),t.keepTouched||en(r.touchedFields,i),t.keepIsValidating||en(r.validatingFields,i),n.shouldUnregister||t.keepDefaultValue||en(u,i);C.values.next({values:{...p}}),C.state.next({...r,...t.keepDirty?{isDirty:J()}:{}}),t.keepIsValid||M()},eI=({disabled:e,name:t,field:n,fields:r})=>{(v(e)&&b.mount||e||w.disabled.has(t))&&(e?w.disabled.add(t):w.disabled.delete(t),W(t,ef(n?n._f:y(r,t)._f),!1,!1,!0))},eA=(e,t={})=>{let r=y(s,e),i=v(t.disabled)||v(n.disabled);return _(s,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),w.mount.add(e),r?eI({field:r,disabled:v(t.disabled)?t.disabled:n.disabled,name:e}):q(e,!0,t.value),{...i?{disabled:t.disabled||n.disabled}:{},...n.progressive?{required:!!t.required,min:em(t.min),max:em(t.max),minLength:em(t.minLength),maxLength:em(t.maxLength),pattern:em(t.pattern)}:{}
470,name:e,onChange:ec,onBlur:ec,ref:i=>{if(i){eA(e,t),r=y(s,e);let n=g(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,a=es(n),o=r._f.refs||[];(a?o.find(e=>e===n):n===r._f.ref)||(_(s,e,{_f:{...r._f,...a?{refs:[...o.filter(el),n,...Array.isArray(y(u,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),q(e,!1,void 0,n))}else(r=y(s,e,{}))._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&!(d(w.array,e)&&b.action)&&w.unMount.add(e)}}},eT=()=>n.shouldFocusError&&B(s,eu,w.mount),eR=(e,t)=>async i=>{let a;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let o=h(p);if(w.disabled.size)for(let e of w.disabled)_(o,e,void 0);if(C.state.next({isSubmitting:!0}),n.resolver){let{errors:e,values:t}=await H();r.errors=e,o=t}else await K(s);if(en(r.errors,"root"),A(r.errors)){C.state.next({errors:{}});try{await e(o,i)}catch(e){a=e}}else t&&await t({...r.errors},i),eT(),setTimeout(eT);if(C.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:A(r.errors)&&!a,submitCount:r.submitCount+1,errors:r.errors}),a)throw a},eN=(e,t={})=>{let i=e?h(e):u,a=h(i),o=A(e),l=o?u:a;if(t.keepDefaultValues||(u=i),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...w.mount,...Object.keys(ed(u,p))])))y(r.dirtyFields,e)?_(l,e,y(p,e)):ei(e,y(l,e));else{if(f&&g(e))for(let e of w.mount){let t=y(s,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(V(e)){let t=e.closest("form");if(t){t.reset();break}}}}s={}}p=n.shouldUnregister?t.keepDefaultValues?h(u):{}:h(l),C.array.next({values:{...l}}),C.values.next({values:{...l}})}w={mount:t.keepDirtyValues?w.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},b.mount=!k.isValid||!!t.keepIsValid||!!t.keepDirtyValues,b.watch=!!n.shouldUnregister,C.state.next({submitCount:t.keepSubmitCount?r.submitCount:0,isDirty:!o&&(t.keepDirty?r.isDirty:!!(t.keepDefaultValues&&!ea(e,u))),isSubmitted:!!t.keepIsSubmitted&&r.isSubmitted,dirtyFields:o?{}:t.keepDirtyValues?t.keepDefaultValues&&p?ed(u,p):r.dirtyFields:t.keepDefaultValues&&e?ed(u,e):t.keepDirty?r.dirtyFields:{},touchedFields:t.keepTouched?r.touchedFields:{},errors:t.keepErrors?r.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},eO=(e,t)=>eN(Z(e)?e(p):e,t);return{control:{register:eA,unregister:eC,getFieldState:eS,handleSubmit:eR,setError:ek,_executeSchema:H,_getWatch:X,_getDirty:J,_updateValid:M,_removeUnmounted:()=>{for(let e of w.unMount){let t=y(s,e);t&&(t._f.refs?t._f.refs.every(e=>!el(e)):!el(t._f.ref))&&eC(e)}w.unMount=new Set},_updateFieldArray:(e,t=[],i,a,o=!0,l=!0)=>{if(a&&i&&!n.disabled){if(b.action=!0,l&&Array.isArray(y(s,e))){let t=i(y(s,e),a.argA,a.argB);o&&_(s,e,t)}if(l&&Array.isArray(y(r.errors,e))){let t=i(y(r.errors,e),a.argA,a.argB);o&&_(r.errors,e,t),e_(r.errors,e)}if(k.touchedFields&&l&&Array.isArray(y(r.touchedFields,e))){let t=i(y(r.touchedFields,e),a.argA,a.argB);o&&_(r.touchedFields,e,t)}k.dirtyFields&&(r.dirtyFields=ed(u,p)),C.state.next({name:e,isDirty:J(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else _(p,e,t)},_updateDisabledField:eI,_getFieldArray:e=>m(y(b.mount?p:u,e,n.shouldUnregister?y(u,e,[]):[])),_reset:eN,_resetDefaultValues:()=>Z(n.defaultValues)&&n.defaultValues().then(e=>{eO(e,n.resetOptions),C.state.next({isLoading:!1})}),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{v(e)&&(C.state.next({disabled:e}),B(s,(t,n)=>{let r=y(s,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach(t=>{t.disabled=r._f.disabled||e}))},0,!1))},_subjects:C,_proxyFormState:k,_setErrors:e=>{r.errors=e,C.state.next({errors:r.errors,isValid:!1})},get _fields(){return s},get _formValues(){return p},get _state(){return b},set _state(value){b=value},get _defaultValues(){return u},get _names(){return w},set _names(value){w=value},get _formState(){return r},set _formState(value){r=value},get _options(){return n},set _options(value){n={...n,...value}}},trigger:eg,register:eA,handleSubmit:eR,watch:(e,t)=>Z(e)?C.values.subscribe({next:n=>e(X(void 0,t),n)}):X(e,t,!0),setValue:ei,getValues:eE,reset:eO,resetField:(e,t={})=>{y(s,e)&&(g(t.defaultValue)?ei(e,h(y(u,e))):(ei(e,t.defaultValue),_(u,e,h(t.defaultValue))),t.keepTouched||en(r.touchedFields,e),t.keepDirty||(en(r.dirtyFields,e),r.isDirty=t.defaultValue?J(e,h(y(u,e))):J()),!t.keepError&&(en(r.errors,e),k.isValid&&M()),C.state.next({...r}))},clearErrors:e=>
470{e&&R(e).forEach(e=>en(r.errors,e)),C.state.next({errors:e?r.errors:{}})},unregister:eC,setError:ek,setFocus:(e,t={})=>{let n=y(s,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&Z(e.select)&&e.select())}},getFieldState:eS}}(e),formState:s});let p=t.current.control;return p._options=e,O({subject:p._subjects.state,next:e=>{T(e,p._proxyFormState,p._updateFormState,!0)&&u({...p._formState})}}),r.useEffect(()=>p._disableForm(e.disabled),[p,e.disabled]),r.useEffect(()=>{if(p._proxyFormState.isDirty){let e=p._getDirty();e!==s.isDirty&&p._subjects.state.next({isDirty:e})}},[p,s.isDirty]),r.useEffect(()=>{e.values&&!ea(e.values,n.current)?(p._reset(e.values,p._options.resetOptions),n.current=e.values,u(e=>({...e}))):p._resetDefaultValues()},[e.values,p]),r.useEffect(()=>{e.errors&&p._setErrors(e.errors)},[e.errors,p]),r.useEffect(()=>{p._state.mount||(p._updateValid(),p._state.mount=!0),p._state.watch&&(p._state.watch=!1,p._subjects.state.next({...p._formState})),p._removeUnmounted()}),r.useEffect(()=>{e.shouldUnregister&&p._subjects.values.next({values:p._getWatch()})},[e.shouldUnregister,p]),t.current.formState=I(s,p),t.current}},73764:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(75271);let i=r.createContext({});function a({count:e=1,wrapper:t,className:n,containerClassName:a,containerTestId:o,circle:s=!1,style:l,...c}){var u,d,p;let f=r.useContext(i),h={...c};for(let[e,t]of Object.entries(c))void 0===t&&delete h[e];let m={...f,...h,circle:s},g={...l,...function({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:i,circle:a,direction:o,duration:s,enableAnimation:l=!0,customHighlightBackgroun
470d:c}){let u={};return"rtl"===o&&(u["--animation-direction"]="reverse"),"number"==typeof s&&(u["--animation-duration"]=`${s}s`),l||(u["--pseudo-element-display"]="none"),("string"==typeof n||"number"==typeof n)&&(u.width=n),("string"==typeof r||"number"==typeof r)&&(u.height=r),("string"==typeof i||"number"==typeof i)&&(u.borderRadius=i),a&&(u.borderRadius="50%"),void 0!==e&&(u["--base-color"]=e),void 0!==t&&(u["--highlight-color"]=t),"string"==typeof c&&(u["--custom-highlight-background"]=c),u}(m)},y="react-loading-skeleton";n&&(y+=` ${n}`);let v=null!==(u=m.inline)&&void 0!==u&&u,b=[],w=Math.ceil(e);for(let t=0;t<w;t++){let n=g;if(w>e&&t===w-1){let t=null!==(d=n.width)&&void 0!==d?d:"100%",r=e%1,i="number"==typeof t?t*r:`calc(${t} * ${r})`;n={...n,width:i}}let i=r.createElement("span",{className:y,style:n,key:t},"‌");v?b.push(i):b.push(r.createElement(r.Fragment,{key:t},i,r.createElement("br",null)))}return r.createElement("span",{className:a,"data-testid":o,"aria-live":"polite","aria-busy":null===(p=m.enableAnimation)||void 0===p||p},t?b.map((e,n)=>r.createElement(t,{key:n},e)):b)}},82356:function(e,t,n){"use strict";n.d(t,{UG:function(){return np}});var r={};n.r(r),n.d(r,{boolean:function(){return y},booleanish:function(){return v},commaOrSpaceSeparated:function(){return E},commaSeparated:function(){return x},number:function(){return w},overloadedBoolean:function(){return b},spaceSeparated:function(){return _}});var i={};n.r(i),n.d(i,{attentionMarkers:function(){return tf},contentInitial:function(){return ts},disable:function(){return th},document:function(){return to},flow:function(){return tc},flowInitial:function(){return tl},insideSpan:function(){return tp},string:function(){return tu},text:function(){return td}});var a=n(4729);let o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l={};function c(e,t){return((t||l).jsx?s:o).test(e)}let u=/[ \t\n\f\r]/g;function d(e){return""===e.replace(u,"")}class p{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function f(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new p(n,r,t)}function h(e){return e.toLowerCase()}p.prototype.normal={},p.prototype.property={},p.prototype.space=void 0;class m{constructor(e,t){this.attribute=t,this.property=e}}m.prototype.attribute="",m.prototype.booleanish=!1,m.prototype.boolean=!1,m.prototype.commaOrSpaceSeparated=!1,m.prototype.commaSeparated=!1,m.prototype.defined=!1,m.prototype.mustUseProperty=!1,m.prototype.number=!1,m.prototype.overloadedBoolean=!1,m.prototype.property="",m.prototype.spaceSeparated=!1,m.prototype.space=void 0;let g=0,y=S(),v=S(),b=S(),w=S(),_=S(),x=S(),E=S();function S(){return 2**++g}let k=Object.keys(r);class C extends m{constructor(e,t,n,i){var a,o;let s=-1;if(super(e,t),i&&(this.space=i),"number"==typeof n)for(;++s<k.length;){let e=k[s];a=k[s],(o=(n&r[e])===r[e])&&(this[a]=o)}}}function I(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new C(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[h(r)]=r,n[h(a.attribute)]=r}return new p(t,n,e.space)}C.prototype.defined=!0;let A=I({properties:{ariaActiveDescendant:null,ariaAtomic:v,ariaAutoComplete:null,ariaBusy:v,ariaChecked:v,ariaColCount:w,ariaColIndex:w,ariaColSpan:w,ariaControls:_,ariaCurrent:null,ariaDescribedBy:_,ariaDetails:null,ariaDisabled:v,ariaDropEffect:_,ariaErrorMessage:null,ariaExpanded:v,ariaFlowTo:_,ariaGrabbed:v,ariaHasPopup:null,ariaHidden:v,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_,ariaLevel:w,ariaLive:null,ariaModal:v,ariaMultiLine:v,ariaMultiSelectable:v,ariaOrientation:null,ariaOwns:_,ariaPlaceholder:null,ariaPosInSet:w,ariaPressed:v,ariaReadOnly:v,ariaRelevant:null,ariaRequired:v,ariaRoleDescription:_,ariaRowCount:w,ariaRowIndex:w,ariaRowSpan:w,ariaSelected:v,ariaSetSize:w,ariaSort:null,ariaValueMax:w,ariaValueMin:w,ariaValueNow:w,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function T(e,t){return t in e?e[t]:t}function R(e,t){return T(e,t.toLowerCase())}
vendor: 4,512 bytes, line 470
470let N=I({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:_,accessKey:_,action:null,allow:null,allowFullScreen:y,allowPaymentRequest:y,allowUserMedia:y,alt:null,as:null,async:y,autoCapitalize:null,autoComplete:_,autoFocus:y,autoPlay:y,blocking:_,capture:null,charSet:null,checked:y,cite:null,className:_,cols:w,colSpan:null,content:null,contentEditable:v,controls:y,controlsList:_,coords:w|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:y,defer:y,dir:null,dirName:null,disabled:y,download:b,draggable:v,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:y,formTarget:null,headers:_,height:w,hidden:b,high:w,href:null,hrefLang:null,htmlFor:_,httpEquiv:_,id:null,imageSizes:null,imageSrcSet:null,inert:y,inputMode:null,integrity:null,is:null,isMap:y,itemId:null,itemProp:_,itemRef:_,itemScope:y,itemType:_,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:y,low:w,manifest:null,max:null,maxLength:w,media:null,method:null,min:null,minLength:w,multiple:y,muted:y,name:null,nonce:null,noModule:y,noValidate:y,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:y,optimum:w,pattern:null,ping:_,placeholder:null,playsInline:y,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:y,referrerPolicy:null,rel:_,required:y,reversed:y,rows:w,rowSpan:w,sandbox:_,scope:null,scoped:y,seamless:y,selected:y,shadowRootClonable:y,shadowRootDelegatesFocus:y,shadowRootMode:null,shape:null,size:w,sizes:null,slot:null,span:w,spellCheck:v,src:null,srcDoc:null,srcLang:null,srcSet:null,start:w,step:null,style:null,tabIndex:w,target:null,title:null,translate:null,type:null,typeMustMatch:y,useMap:null,value:v,width:w,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_,axis:null,background:null,bgColor:null,border:w,borderColor:null,bottomMargin:w,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:y,declare:y,event:null,face:null,frame:null,frameBorder:null,hSpace:w,leftMargin:w,link:null,longDesc:null,lowSrc:null,marginHeight:w,marginWidth:w,noResize:y,noHref:y,noShade:y,noWrap:y,object:null,profile:null,prompt:null,rev:null,rightMargin:w,rules:null,scheme:null,scrolling:v,standby:null,summary:null,text:null,topMargin:w,valueType:null,version:null,vAlign:null,vLink:null,vSpace:w,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:y,disableRemotePlayback:y,prefix:null,property:null,results:w,security:null,unselectable:null},space:"html",transform:R}),O=I({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
470dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:E,accentHeight:w,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:w,amplitude:w,arabicForm:null,ascent:w,attributeName:null,attributeType:null,azimuth:w,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:w,by:null,calcMode:null,capHeight:w,className:_,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
470dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:w,diffuseConstant:w,direction:null,display:null,dur:null,divisor:w,dominantBaseline:null,download:y,dx:null,dy:null,edgeMode:null,editable:null,elevation:w,enableBackground:null,end:null,event:null,exponent:w,externalResourcesRequired:null,fill:null,fillOpacity:w,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:w,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:w,horizOriginX:w,horizOriginY:w,id:null,ideographic:w,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:w,k:w,k1:w,k2:w,k3:w,k4:w,kernelMatrix:E,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:w,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:w,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:w,overlineThickness:w,paintOrder:null,panose1:null,path:null,pathLength:w,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:w,pointsAtY:w,pointsAtZ:w,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:E,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:E,rev:E,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:E,requiredFeatures:E,requiredFonts:E,requiredFormats:E,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:w,specularExponent:w,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:w,strikethroughThickness:w,string:null,stroke:null,strokeDashArray:E,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:w,strokeOpacity:w,strokeWidth:null,style:null,surfaceScale:w,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:E,tabIndex:w,tableValues:null,target:null,targetX:w,targetY:w,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:E,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:w,underlineThickness:w,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:w,values:null,vAlphabetic:w,vMathematical:w,vectorEffect:null,vHanging:w,vIdeographic:w,version:null,vertAdvY:w,vertOriginX:w,vertOriginY:w,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:w,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:T}),P=I({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>
470"xlink:"+t.slice(5).toLowerCase()}),D=I({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:R}),M=I({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),$=f([A,N,P,D,M],"html"),j=f([A,O,P,D,M],"svg"),L=/[A-Z]/g,F=/-[a-z]/g,B=/^data[-\w.:]+$/i;function U(e){return"-"+e.toLowerCase()}function z(e){return e.charAt(1).toUpperCase()}let Z={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var V=n(14228);let q=G("end"),W=G("start");function G(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function H(e){return e&&"object"==typeof e?"position"in e||"type"in e?K(e.position):"start"in e||"end"in e?K(e):"line"in e||"column"in e?Y(e):"":""}function Y(e){return J(e&&e.line)+":"+J(e&&e.column)}function K(e){return Y(e&&e.start)+"-"+Y(e&&e.end)}function J(e){return e&&"number"==typeof e?e:1}class X extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},a=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=H(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}X.prototype.file="",X.prototype.name="",X.prototype.reason="",X.prototype.message="",X.prototype.stack="",X.prototype.column=void 0,X.prototype.line=void 0,X.prototype.ancestors=void 0,X.prototype.cause=void 0,X.prototype.fatal=void 0,X.prototype.place=void 0,X.prototype.ruleId=void 0,X.prototype.source=void 0;let Q={}.hasOwnProperty,ee=new Map,et=/[A-Z]/g,en=new Set(["table","tbody","thead","tfoot","tr"]),er=new Set(["td","th"]),ei="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ea(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=j,e.schema=i),e.ancestors.push(t);let a=ec(e,t.tagName,!1),o=function(e,t){let n,r;let i={};for(r in t.properties)if("children"!==r&&Q.call(t.properties,r)){let a=function(e,t,n){let r=function(e,t){let n=h(t),r=t,i=m;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&B.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(F,z);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!F.test(e)){let n=e.replace(L,U);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=C}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return V(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new X("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});
470throw t.file=e.filePath||void 0,t.url=ei+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t;let n={};for(t in e)Q.call(e,t)&&(n[function(e){let t=e.replace(et,ed);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Z[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(a){let[r,o]=a;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&er.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),s=el(e,t);return en.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&d(e.value):d(e))})),eo(e,o,a,t),es(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return(0,a.ok)("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}eu(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.name&&"html"===r.space&&(i=j,e.schema=i),e.ancestors.push(t);let o=null===t.name?e.Fragment:ec(e,t.name,!0),s=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];(0,a.ok)("ExpressionStatement"===t.type);let i=t.expression;(0,a.ok)("ObjectExpression"===i.type);let o=i.properties[0];(0,a.ok)("SpreadElement"===o.type),Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else eu(e,t.position)}else{let i;let o=r.name;if(r.value&&"object"==typeof r.value){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];(0,a.ok)("ExpressionStatement"===t.type),i=e.evaluater.evaluateExpression(t.expression)}else eu(e,t.position)}else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=el(e,t);return eo(e,s,o,t),es(s,l),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eu(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return es(r,el(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function eo(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function es(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function el(e,t){let n=[],r=-1,i=e.passKeys?new Map:ee;for(;++r<t.children.length;){let a;let o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}let s=ea(e,o,a);void 0!==s&&n.push(s)}return n}function ec(e,t,n){let r;if(n){if(t.includes(".")){let e;let n=t.split("."),i=-1;for(;++i<n.length;){let t=c(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}(0,a.ok)(e,"always a result"),r=e}else r=c(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t}}else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return Q.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);eu(e)}function eu(e,t){let n=new X("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ei+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ed(e){return"-"+e.toLowerCase()}let ep={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var ef=n(52676);n(75271);var eh=n(11721),em=n(57974);class eg{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&ey(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ey(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ey(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(e<this.left.length){let t=this.left.splice(e,Number.POSITIVE_INFINITY);ey(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);ey(this.left,t.reverse())}}}}function ey(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ev(e){let t,n,r,i,a,o,s;let l={},c=-1,u=new eg(e);for(;++c<u.length;){for(;(c in l);)c=l[c];if(t=u.get(c),c&&"chunkFlow"===t[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r;let i=e.get(t)[1],a=e.get(t)[2],o=t-1,s=[],l=i._tokenizer;!l&&(l=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let c=l.events,u=[],d={},p=-1,f=i,h=0,m=0,g=[0];for(;f;){for(;e.get(++o)[1]!==f;);s.push(o),!f._tokenizer&&(n=a.sliceStream(f),f.next||n.push(null),r&&l.defineSki
470p(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=i;++p<c.length;)"exit"===c[p][0]&&"enter"===c[p-1][0]&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){let t=c.slice(g[p],g[p+1]),n=s.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),p=-1;++p<u.length;)d[h+u[p][0]]=h+u[p][1],h+=u[p][1]-u[p][0]-1;return d}(u,c)),c=l[c],s=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(i=u.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...u.get(n)[1].start},(a=u.slice(n,c)).unshift(t),u.splice(n,c-n+1,a))}}return(0,em.d)(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}var eb=n(33850),ew=n(60403),e_=n(6020);let ex={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,ew.f)(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return(0,e_.Ch)(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},eE={tokenize:function(e){let t,n,r;let i=this,a=[],o=0;return s;function s(t){if(o<a.length){let n=a[o];return i.containerState=n[1],e.attempt(n[0].continuation,l,c)(t)}return c(t)}function l(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,a=r;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){n=i.events[a][1].end;break}g(o);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return(0,em.d)(i.events,a+1,0,i.events.slice(r)),i.events.length=s,c(e)}return s(e)}function c(n){if(o===a.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(eS,u,d)(n)}function u(e){return t&&y(),g(o),p(e)}function d(e){return i.parser.lazy[i.now().line]=o!==a.length,r=i.now().offset,h(e)}function p(t){return i.containerState={},e.attempt(eS,f,h)(t)}function f(e){return o++,a.push([i.currentConstruct,i.containerState]),p(e)}function h(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return(0,e_.Ch)(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function m(e,a){let s=i.sliceStream(e);if(a&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,a=t.events.length;for(;a--;)if(t.events[a][1].start.offset<r&&(!t.events[a][1].end||t.events[a][1].end.offset>r))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(o),a=s;a<i.events.length;)i.events[a][1].end={...n},a++;(0,em.d)(i.events,l+1,0,i.events.slice(s)),i.events.length=a}}function g(t){let n=a.length;for(;n-- >t;){let t=a[n];i.containerState=t[1],t[0].exit.call(i,e)}a.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eS={tokenize:function(e,t,n){return(0,ew.f)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var ek=n(43590);let eC={resolve:function(e){return ev(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,e_.Ch)(t)?e.check(eI,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eI={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),
470(0,ew.f)(e,i,"linePrefix")};function i(i){if(null===i||(0,e_.Ch)(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eA={tokenize:function(e){let t=this,n=e.attempt(ek.w,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,(0,ew.f)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eC,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},eT={resolveAll:eP()},eR=eO("string"),eN=eO("text");function eO(e){return{resolveAll:eP("text"===e?eD:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),s}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function eP(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function eD(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r;let i=e[n-1][1],a=t.sliceStream(i),o=a.length,s=-1,l=0;for(;o--;){let e=a[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let a={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}let eM={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){return e.enter("thematicBreak"),r=a,function a(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),(0,e_.xz)(n)?(0,ew.f)(e,a,"whitespace")(n):a(n))}(o)):i>=3&&(null===o||(0,e_.Ch)(o))?(e.exit("thematicBreak"),t(o)):n(o)}(a)}}},e$={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(ek.w,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,ew.f)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,e_.xz)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
470=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eL,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,ew.f)(e,e.attempt(e$,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,e_.pY)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(eM,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,e_.pY)(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(ek.w,r.interrupt?n:l,e.attempt(ej,u,c))}
470function l(e){return r.containerState.initialBlankLine=!0,a++,u(e)}function c(t){return(0,e_.xz)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},ej={partial:!0,tokenize:function(e,t,n){let r=this;return(0,ew.f)(e,function(e){let i=r.events[r.events.length-1];return!(0,e_.xz)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eL={partial:!0,tokenize:function(e,t,n){let r=this;return(0,ew.f)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},eF={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,e_.xz)(t)?(0,ew.f)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(eF,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,e_.xz)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function eB(e,t,n,r,i,a,o,s,l){let c=l||Number.POSITIVE_INFINITY,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||(0,e_.Av)(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||(0,e_.Ch)(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(i){return!u&&(null===i||41===i||(0,e_.z3)(i))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(i)):u<c&&40===i?(e.consume(i),u++,h):41===i?(e.consume(i),u--,h):null===i||32===i||40===i||(0,e_.Av)(i)?n(i):(e.consume(i),92===i?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function eU(e,t,n,r,i,a){let o;let s=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),c};function c(d){return l>999||null===d||91===d||93===d&&!o||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(0,e_.Ch)(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||(0,e_.Ch)(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!(0,e_.xz)(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function ez(e,t,n,r,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),s(o)):null===t?n(t):(0,e_.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,ew.f)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||(0,e_.Ch)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function eZ(e,t){let n;return function r(i){return(0,e_.Ch)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,e_.xz)(i)?(0,ew.f)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var eV=n(23185);let eq={partial:!0,tokenize:function(e,t,n){return function(t){return(0,e_.z3)(t)?eZ(e,r)(t):n(t)};function r(t){return ez(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,e_.xz)(t)?(0,ew.f)(e,a,"whitespace")(t):a(t)}function a(e){return null===e||(0,e_.Ch)(e)?t(e):n(e)}}},eW={name:"codeIndented",tokenize:function(e,t,n){let r=this;
470return function(t){return e.enter("codeIndented"),(0,ew.f)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):(0,e_.Ch)(n)?e.attempt(eG,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,e_.Ch)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},eG={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,e_.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,ew.f)(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):(0,e_.Ch)(e)?i(e):n(e)}}},eH={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r;let i=this;return function(t){let o,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){o="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,e_.xz)(n)?(0,ew.f)(e,a,"lineSuffix")(n):a(n))}(t)):n(t)};function a(r){return null===r||(0,e_.Ch)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},eY=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],eK=["pre","script","style","textarea"],eJ={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ek.w,t,n)}}},eX={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return(0,e_.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},eQ={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},e0={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),(0,e_.xz)(t)?(0,ew.f)(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a>=s?(e.exit("codeFencedFenceSequence"),(0,e_.xz)(i)?(0,ew.f)(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||(0,e_.Ch)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,s=0;return function(t){return function(t){let a=i.events[i.events.length-1];return o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),(0,e_.xz)(i)?(0,ew.f)(e,l,"whitespace")(i):l(i))}(t)}(t)};function l(a){return null===a||(0,e_.Ch)(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(eQ,u,h)(a)):(e.enter("co
470deFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,e_.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):(0,e_.xz)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,ew.f)(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function c(t){return null===t||(0,e_.Ch)(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,e_.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(a,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&(0,e_.xz)(t)?(0,ew.f)(e,f,"linePrefix",o+1)(t):f(t)}function f(t){return null===t||(0,e_.Ch)(t)?e.check(eQ,u,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,e_.Ch)(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},e1=document.createElement("i");function e2(e){let t="&"+e+";";e1.innerHTML=t;let n=e1.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let e3={name:"characterReference",tokenize:function(e,t,n){let r,i;let a=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=e_.H$,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=e_.AF,c):(e.enter("characterReferenceValue"),r=7,i=e_.pY,c(t))}function c(s){if(59===s&&o){let r=e.exit("characterReferenceValue");return i!==e_.H$||e2(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&o++<r?(e.consume(s),c):n(s)}}},e5={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return(0,e_.sR)(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},e4={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,ew.f)(e,t,"linePrefix")}}};var e9=n(797);let e6={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&(0,em.d)(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,a,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=(0,em.V)(a,e.slice(r+1,r+s+3)),a=(0,em.V)(a,[["enter",u,t]]),a=(0,em.V)(a,(0,e9.C)(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),a=(0,em.V)(a,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),a=(0,em.V)(a,e.slice(i+1)),a=(0,em.V)(a,[["exit",l,t]]),(0,em.d)(e,r,e.length,a),e},tokenize:function(e,t,n){let r,i;let a=this,o=a.events.length;for(;o--;)if(("labelImage"===a.events[o][1].type||"labelLink"===a.events[o][1].type)&&!a.events[o][1]._balanced){r=a.events[o][1];break}return function(t){return r?r._inactive?u(t):(i=a.parser.defined.includes((0,eV.d)(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(e7,c,i?c:u)(t):91===t?e.attempt(e8,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(te,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}}},e7={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return(0,e_.z3)(t)?eZ(e,i)(t):i(t)}function i(t){return 41===t?c(t):eB(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return(0,e_.z3)(t)?eZ(e,s)(t):c(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?ez(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return(0,e_.z3)(t)?eZ(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},e8={tokenize:function(e,t,n){let r=this;return function(t){return eU.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes((0,eV.d)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},te={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tt={name:"labelStartImage",resolveAll:e6.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};var tn=n(72147);let tr={name:"attention",resolveAll:function(e,t){let n,r,i,a,o,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
470n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[u][1].start};ti(d,-s),ti(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[n][1].end={...a.start},e[u][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=(0,em.V)(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=(0,em.V)(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=(0,em.V)(l,(0,e9.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=(0,em.V)(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=(0,em.V)(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,(0,em.d)(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=(0,tn.r)(i);return function(o){return n=o,e.enter("attentionSequence"),function o(s){if(s===n)return e.consume(s),o;let l=e.exit("attentionSequence"),c=(0,tn.r)(s),u=!c||2===c&&a||r.includes(s),d=!a||2===a&&c||r.includes(i);return l._open=!!(42===n?u:u&&(a||!d)),l._close=!!(42===n?d:d&&(c||!u)),t(s)}(o)}}};function ti(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let ta={name:"labelStartLink",resolveAll:e6.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},to={42:e$,43:e$,45:e$,48:e$,49:e$,50:e$,51:e$,52:e$,53:e$,54:e$,55:e$,56:e$,57:e$,62:eF},ts={91:{name:"definition",tokenize:function(e,t,n){let r;let i=this;return function(t){return e.enter("definition"),eU.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function a(t){return(r=(0,eV.d)(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return(0,e_.z3)(t)?eZ(e,s)(t):s(t)}function s(t){return eB(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(eq,c,c)(t)}function c(t){return(0,e_.xz)(t)?(0,ew.f)(e,u,"whitespace")(t):u(t)}function u(a){return null===a||(0,e_.Ch)(a)?(e.exit("definition"),i.parser.defined.push(r),t(a)):n(a)}}}},tl={[-2]:eW,[-1]:eW,32:eW},tc={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,a=3;return"whitespace"===e[3][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},(0,em.d)(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(a){return 35===a&&r++<6?(e.consume(a),i):null===a||(0,e_.z3)(a)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||(0,e_.Ch)(r)?(e.exit("atxHeading"),t(r)):(0,e_.xz)(r)?(0,ew.f)(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||(0,e_.z3)(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(i)}}},42:eM,45:[eH,eM],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,a,o,s;let l=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(o){return 33===o?(e.consume(o),u):47===o?(e.consume(o),i=!0,f):63===o?(e.consume(o),r=3,l.interrupt?t:O):(0,e_.jv)(o)?(e.consume(o),a=String.fromCharCode(o),h):n(o)}function u(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,o=0,p):(0,e_.jv)(i)?(e.consume(i),r=4,l.interrupt?t:O):n(i)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:O):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?l.interrupt?t:S:p:n(r)}function f(t){return(0,e_.jv)(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}
470function h(o){if(null===o||47===o||62===o||(0,e_.z3)(o)){let s=47===o,c=a.toLowerCase();return!s&&!i&&eK.includes(c)?(r=1,l.interrupt?t(o):S(o)):eY.includes(a.toLowerCase())?(r=6,s)?(e.consume(o),m):l.interrupt?t(o):S(o):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(o):i?function t(n){return(0,e_.xz)(n)?(e.consume(n),t):x(n)}(o):g(o))}return 45===o||(0,e_.H$)(o)?(e.consume(o),a+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),x):58===t||95===t||(0,e_.jv)(t)?(e.consume(t),y):(0,e_.xz)(t)?(e.consume(t),g):x(t)}function y(t){return 45===t||46===t||58===t||95===t||(0,e_.H$)(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),b):(0,e_.xz)(t)?(e.consume(t),v):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):(0,e_.xz)(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,e_.z3)(n)?v(n):(e.consume(n),t)}(t)}function w(t){return t===s?(e.consume(t),s=null,_):null===t||(0,e_.Ch)(t)?n(t):(e.consume(t),w)}function _(e){return 47===e||62===e||(0,e_.xz)(e)?g(e):n(e)}function x(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||(0,e_.Ch)(t)?S(t):(0,e_.xz)(t)?(e.consume(t),E):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),A):60===t&&1===r?(e.consume(t),T):62===t&&4===r?(e.consume(t),P):63===t&&3===r?(e.consume(t),O):93===t&&5===r?(e.consume(t),N):(0,e_.Ch)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(eJ,D,k)(t)):null===t||(0,e_.Ch)(t)?(e.exit("htmlFlowData"),k(t)):(e.consume(t),S)}function k(t){return e.check(eX,C,D)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||(0,e_.Ch)(t)?k(t):(e.enter("htmlFlowData"),S(t))}function A(t){return 45===t?(e.consume(t),O):S(t)}function T(t){return 47===t?(e.consume(t),a="",R):S(t)}function R(t){if(62===t){let n=a.toLowerCase();return eK.includes(n)?(e.consume(t),P):S(t)}return(0,e_.jv)(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):S(t)}function N(t){return 93===t?(e.consume(t),O):S(t)}function O(t){return 62===t?(e.consume(t),P):45===t&&2===r?(e.consume(t),O):S(t)}function P(t){return null===t||(0,e_.Ch)(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),P)}function D(n){return e.exit("htmlFlow"),t(n)}}},61:eH,95:eM,96:e0,126:e0},tu={38:e3,92:e5},td={[-5]:e4,[-4]:e4,[-3]:e4,33:tt,38:e3,42:tr,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,e_.jv)(t)?(e.consume(t),a):64===t?n(t):s(t)}function a(t){return 43===t||45===t||46===t||(0,e_.H$)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||(0,e_.H$)(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,e_.Av)(r)?n(r):(e.consume(r),o)}function s(t){return 64===t?(e.consume(t),l):(0,e_.n9)(t)?(e.consume(t),s):n(t)}function l(i){return(0,e_.H$)(i)?function i(a){return 46===a?(e.consume(a),r=0,l):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||(0,e_.H$)(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a;let o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),v):(0,e_.jv)(t)?(e.consume(t),x):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,f):(0,e_.jv)(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):(0,e_.Ch)(t)?(a=u,R(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?T(e):45===e?d(e):u(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):(0,e_.Ch)(t)?(a=h,R(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?T(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?T(t):(0,e_.Ch)(t)?(a=y,R(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):(0,e_.Ch)(t)?(a=v,R(t)):(e.consume(t),v)}function b(e){return 62===e?T(e):v(e)}function w(t){return(0,e_.jv)(t)?(e.consume(t),_):n(t)}function _(t){return 45===t||(0,e_.H$)(t)?(e.consume(t),_):function t(n){return(0,e_.Ch)(n)?(a=t,R(n)):(0,e_.xz)(n)?(e.consume(n),t):T(n)}(t)}function x(t){return 45===t||(0,e_.H$)(t)?(e.consume(t),x):47===t||62===t||(0,e_.z3)(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),T):58===t||95===t||(0,e_.jv)(t)?(e.consume(t),S):(0,e_.Ch)(t)?(a=E,R(t)):(0,e_.xz)(t)?(e.consume(t),E):T(t)}function S(t){return 45===t||46===t||58===t||95===t||(0,e_.H$)(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),k):(0,e_.Ch)(n)?(a=t,R(n)):(0,e_.xz)(n)?(e.consume(n),t):E(n)}(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,C):(0,e_.Ch)(t)?(a=k,R(t)):(0,e_.xz)(t)?(e.consume(t),k):(e.consume(t),I)}function C(t){return t===r?(e.consume(t),r=void 0,A):null===t?n(t):(0,e_.Ch)(t)?(a=C,R(t)):(e.consume(t),C)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,e_.z3)(t)?E(t):(e.consume(t),I)}function A(e){return 47===e||62===e||(0,e_.z3)(e)?E(e):n(e)}function T(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return(0,e_.xz)(t)?(0,ew.f)(e,O,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):O(t)}function O(t){return e.enter("htmlTextData"),a(t)}}}],91:ta,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,e_.Ch)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},e5],93:e6,95:tr,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,a=0;
470return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),o):96===l?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",s(o))}(l)):(0,e_.Ch)(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||(0,e_.Ch)(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),s)}}}},tp={null:[tr,eT]},tf={null:[42,95]},th={null:[]},tm=/[\0\t\n\r]/g;function tg(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let ty=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tv(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tg(n.slice(t?2:1),t?16:10)}return e2(n)||e}let tb={}.hasOwnProperty;function tw(e){return{line:e.line,column:e.column,offset:e.offset}}function t_(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+H({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+H({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+H({start:t.start,end:t.end})+") is still open")}function tx(e){let t=this;t.parser=function(n){var r,a;let o,s,l,c;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(a=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(f),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(f,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:c,htmlText:r(g,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:o(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tg(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=e2(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tw(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,eV.d)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(ty,tv),n.identifier=(0,eV.d)(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tw(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
470ype)&&(c.call(this,e),u.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,eV.d)(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};(function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tb.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}})(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:a,exit:s,buffer:i,resume:l,data:n},c=[],u=-1;for(;++u<e.length;)("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)&&("enter"===e[u][0]?c.push(u):u=function(e,t,n){let r,i,a,o,s=t-1,l=-1,c=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,a=void 0,o=!0}}}return e[t][1]._spread=c,n}(e,c.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];tb.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},o),e[u][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||t_).call(o,void 0,e[0])}for(r.position={start:tw(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tw(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r};function r(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tw(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||t_).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+H({start:e.start,end:e.end})+"): it’s not open");n.position.end=tw(e.end)}function l(){return(0,eh.B)(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tw(e.start),end:void 0},t.push(n)),this.stack.push(n)}function u(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tw(e.end)}function d(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(a)(function(e){for(;!ev(e););return e}((function(e){let t={constructs:(0,eb.W)([i,...(e||{}).extensions||[]]),content:n(ex),defined:[],document:n(eE),flow:n(eA),lazy:{},string:n(eR),text:n(eN)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
470olumn:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],l={attempt:h(function(e,t){m(e,t.from)}),check:h(f),consume:function(e){(0,e_.Ch)(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:h(f,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let a;let o=e[r];if("string"==typeof o)a=o;else switch(o){case -5:a="\r";break;case -4:a="\n";break;case -3:a="\r\n";break;case -2:a=t?" ":"	";break;case -1:if(!t&&n)continue;a=" ";break;default:a=String.fromCharCode(o)}n=-2===o,i.push(a)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=(0,em.V)(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),u=u(t)}else u=u(n)}}(),null!==o[o.length-1])?[]:(m(t,0),c.events=(0,e9.C)(a,c.events,c),c.events)}},u=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function d(e){return function(e,t){let n;let r=t.start._index,i=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;if(r===a)n=[e[r].slice(i,o)];else{if(n=e.slice(r,a),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[a].slice(0,o))}return n}(o,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function f(e,t){t.restore()}function h(e,t){return function(n,i,a){let o,u,d,f;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return h([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function h(e){return(o=e,u=0,0===e.length)?a:m(e[u])}function m(e){return function(n){return(f=function(){let e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,a=Array.from(s);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=a,g()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,y,v)(n)}}function y(t){return e(d,f),i}function v(e){return(f.restore(),++u<o.length)?m(o[u]):a}}}function m(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&(0,em.d)(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(a).document().write((s=1,l="",c=!0,function(e,t,n){let r,i,a,u,d;let p=[];for(e=l+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),a=0,l="",c&&(65279===e.charCodeAt(0)&&a++,c=void 0);a<e.length;){if(tm.lastIndex=a,u=(r=tm.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(u),!r){l=e.slice(a);break}if(10===d&&a===u&&o)p.push(-3),o=void 0;else switch(o&&(p.push(-5),o=void 0),a<u&&(p.push(e.slice(a,u)),s+=u-a),d){case 0:p.push(65533),s++;break;case 9:for(i=4*Math.ceil(s/4),p.push(-2);s++<i;)p.push(-1);break;case 10:p.push(-4),s=1;break;default:o=!0,s=1}a=u+1}return n&&(o&&p.push(-5),l&&p.push(l),p.push(null)),p})(n,r,!0))))}}let tE="object"==typeof self?self:globalThis,tS=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new tE[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new tE[a](o),i)};return r},tk=e=>tS(new Map,e)(0),{toString:tC}={},{keys:tI}=Object,tA=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];
470let n=tC.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tT=([e,t])=>0===e&&("function"===t||"symbol"===t),tR=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=tA(r);switch(o){case 0:{let t=r;switch(s){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());let n=[],l=i([o,n],r);for(let t of tI(r))(e||!tT(tA(r[t])))&&n.push([a(t),a(r[t])]);return l}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);
470for(let[n,i]of r)(e||!(tT(tA(n))||tT(tA(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!tT(tA(n)))&&t.push(a(n));return n}}let{message:l}=r;return i([o,{name:s,message:l}],r)};return a},tN=(e,{json:t,lossy:n}={})=>{let r=[];return tR(!(t||n),!!t,new Map,r)(e),r};var tO="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tk(tN(e,t)):structuredClone(e):(e,t)=>tk(tN(e,t));function tP(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o="";if(37===a&&(0,e_.H$)(e.charCodeAt(n+1))&&(0,e_.H$)(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tD(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tM(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var t$=n(35317);function tj(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function tL(e){let t=e.spread;return null==t?e.children.length>1:t}function tF(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let tB={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=tP(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,s+=1,e.footnoteCounts.set(i,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tj(e,t);let i={src:tP(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:tP(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tj(e,t);let i={href:tP(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:tP(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=tL(n[r])}return t}(n):tL(t),a={},o=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=W(t.children[1]),o=q(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:"element",tagName:"table",properties:{}
470,children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,o=a?a.length:t.children.length,s=-1,l=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(tF(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(tF(t.slice(i),i>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:tU,yaml:tU,definition:tU,footnoteDefinition:tU};function tU(){}let tz={}.hasOwnProperty,tZ={};function tV(e,t){e.position&&(t.position=function(e){let t=W(e),n=q(e);if(t&&n)return{start:t,end:n}}(e))}function tq(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tO(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function tW(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function tG(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function tH(e,t){let n=function(e,t){let n=t||tZ,r=new Map,i=new Map,a={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=tG(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=tG(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:tq,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...tB,...n.handlers},one:function(e,t){let n=e.type,r=a.handlers[n];if(tz.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tO(n);return r.children=a.all(e),r}return tO(e)}return(a.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(tz.call(n,"hProperties")||tz.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(a,e,t)},options:n,patch:tV,wrap:tW};return(0,t$.Vn)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tD,r=e.options.footnoteBackLabel||tM,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),c=tP(o.toLowerCase()),u=0,d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}
470let f=a[a.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else a.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...tO(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&((0,a.ok)("children"in o),o.children.push({type:"text",value:"\n"},i)),o}function tY(e,t){return e&&"run"in e?async function(n,r){let i=tH(n,{file:r,...t});await e.run(i,r)}:function(n,r){return tH(n,{file:r,...e||t})}}function tK(e){if(e)throw e}var tJ=n(27396);function tX(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let tQ={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');t0(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(t0(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;t0(e);let n=e.length,r=-1,i=0,a=-1,o=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==o&&(o=1):a>-1&&(o=-1)}return a<0||r<0||0===o||1===o&&a===r-1&&a===i+1?"":e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)t0(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){t0(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function t0(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let t1={cwd:function(){return"/"}};function t2(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let t3=["history","path","basename","stem","extname","dirname"];class t5{constructor(e){let t,n;t=e?t2(e)?{path:e}:"string"==typeof e||e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e?{value:e}:e:{},this.cwd="cwd"in t?"":t1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<t3.length;){let e=t3[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)t3.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?tQ.basename(this.path):void 0}set basename(e){t9(e,"basename"),t4(e,"basename"),this.path=tQ.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?tQ.dirname(this.path):void 0}set dirname(e){t6(this.basename,"dirname"),this.path=tQ.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?tQ.extname(this.path):void 0}set extname(e){if(t4(e,"extname"),t6(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");
470if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=tQ.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){t2(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!t2(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),t9(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?tQ.basename(this.path,this.extname):void 0}set stem(e){t9(e,"stem"),t4(e,"stem"),this.path=tQ.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new X(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function t4(e,t){if(e&&e.includes(tQ.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+tQ.sep+"`")}function t9(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function t6(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let t7=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},t8={}.hasOwnProperty;class ne extends t7{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);(function i(a,...o){let s=e[++n],l=-1;if(a){r(a);return}for(;++l<t.length;)(null===o[l]||void 0===o[l])&&(o[l]=t[l]);t=o,s?(function(e,t){let n;return function(...t){let a;let o=e.length>t.length;o&&t.push(r);try{a=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(a&&a.then&&"function"==typeof a.then?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(s,i)(...o):r(null,...o)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new ne,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(tJ(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(ni("data",this.frozen),this.namespace[e]=t,this):t8.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ni("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=ns(e),n=this.parser||this.Parser;return nn("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),nn("process",this.parser||this.Parser),nr("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let o=ns(e),s=n.parse(o);function l(e,n){e||!n?i(e):r?r(n):((0,a.ok)(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(s,o,function(e,t,r){if(e||!t||!r)return l(e);let i=n.stringify(t,r);"string"==typeof i||i&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=i:r.result=i,l(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),nn("processSync",this.parser||this.Parser),nr("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,tK(e),t=r}),no("processSync","process",n),(0,a.ok)(t,"we either bailed on an error or have a tree"),t}
470run(e,t,n){na(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){(0,a.ok)("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let s=ns(t);r.run(e,s,function(t,r,s){let l=r||e;t?o(t):i?i(l):((0,a.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,l,s))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){tK(e),n=t,r=!0}),no("runSync","run",r),(0,a.ok)(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=ns(t),r=this.compiler||this.Compiler;return nr("stringify",r),na(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(ni("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?a(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=tJ(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else i(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];tX(o)&&tX(r)&&(r=tJ(!0,o,r)),n[i]=[e,r,...a]}}}}let nt=new ne().freeze();function nn(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nr(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function ni(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function na(e){if(!tX(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function no(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function ns(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new t5(e)}let nl=[],nc={allowDangerousHtml:!0},nu=/^(https?|ircs?|mailto|xmpp)$/i,nd=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function np(e){let t=function(e){let t=e.rehypePlugins||nl,n=e.remarkPlugins||nl,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...nc}:nc;return nt().use(tx).use(n).use(tY,r).use(t)}(e),n=function(e){let t=e.children||"",n=new t5;return"string"==typeof t?n.value=t:(0,a.t1)("Unexpected value `"+t+"` for `children` prop, expected `string`"),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,s=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||nf;for(let e of nd)Object.hasOwn(t,e.from)&&(0,a.t1)("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&o&&(0,a.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),(0,t$.Vn)(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return s?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ep)if(Object.hasOwn(ep,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ep[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,i)),a&&i&&"number"==typeof t)return l&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i;let a;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=t.jsxDEV,a=function(e,t,r,i){let a=Array.isArray(r.children),s=W(e);return n(t,r,i,a,{columnNumber:s?s.column-1:void 0,fileName:o,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
470if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,i=t.jsxs,a=function(e,t,n,a){let o=Array.isArray(n.children)?i:r;return a?o(t,n,a):o(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?j:$,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},l=ea(s,e,void 0);return l&&"string"!=typeof l?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}(e,{Fragment:ef.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ef.jsx,jsxs:ef.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function nf(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nu.test(e.slice(0,t))?e:""}},41654:function(e,t,n){"use strict";n.d(t,{Am:function(){return R},Ix:function(){return F},vU:function(){return p}});var r=n(75271),i=n(4814);!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}
470.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}
470}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
471`);var a=e=>"number"==typeof e&&!isNaN(e),o=e=>"string"==typeof e,s=e=>"function"==typeof e,l=e=>o(e)||a(e),c=e=>o(e)||s(e)?e:null,u=(e,t)=>!1===e||a(e)&&e>0?e:t,d=e=>(0,r.isValidElement)(e)||o(e)||s(e)||a(e);function p({enter:e,exit:t,appendPosition:n=!1,collapse:i=!0,collapseDuration:a=300}){return function({children:o,position:s,preventExitTransition:l,done:c,nodeRef:u,isIn:d,playToast:p}){let f=n?`${e}--${s}`:e,h=n?`${t}--${s}`:t,m=(0,r.useRef)(0);return(0,r.useLayoutEffect)(()=>{let e=u.current,t=f.split(" "),n=r=>{r.target===u.current&&(p(),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),(0,r.useEffect)(()=>{let e=u.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,n=300){let{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}(e,c,a):c()};d||(l?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))},[d]),r.createElement(r.Fragment,null,o)}}function f(e,t){return{content:h(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function h(e,t,n=!1){return(0,r.isValidElement)(e)&&!o(e.type)?(0,r.cloneElement)(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):s(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):e}function m({delay:e,isRunning:t,closeToast:n,type:a="default",hide:o,className:l,controlledProgress:c,progress:u,rtl:d,isIn:p,theme:f}){let h=o||c&&0===u,m={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};c&&(m.transform=`scaleX(${u})`);let g=(0,i.Z)("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":d}),y=s(l)?l({rtl:d,type:a,defaultClassName:g}):(0,i.Z)(g,l);return r.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},r.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${a}`}),r.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:y,style:m,[c&&u>=1?"onTransitionEnd":"onAnimationEnd"]:c&&u<1?null:()=>{p&&n()}}))}var g=1,y=()=>`${g++}`,v=new Map,b=[],w=new Set,_=e=>w.forEach(t=>t(e)),x=()=>v.size>0,E=(e,{containerId:t})=>{var n;return null==(n=v.get(t||1))?void 0:n.toasts.get(e)};function S(e,t){var n;if(t)return!!(null!=(n=v.get(t))&&n.isToastActive(e));let r=!1;return v.forEach(t=>{t.isToastActive(e)&&(r=!0)}),r}function k(e,t){d(e)&&(x()||b.push({content:e,options:t}),v.forEach(n=>
471{n.buildToast(e,t)}))}function C(e,t){v.forEach(n=>{null!=t&&null!=t&&t.containerId&&(null==t?void 0:t.containerId)!==n.id||n.toggle(e,null==t?void 0:t.id)})}function I(e,t){return k(e,t),t.toastId}function A(e,t){return{...t,type:t&&t.type||e,toastId:t&&(o(t.toastId)||a(t.toastId))?t.toastId:y()}}function T(e){return(t,n)=>I(t,A(e,n))}function R(e,t){return I(e,A("default",t))}R.loading=(e,t)=>I(e,A("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),R.promise=function(e,{pending:t,error:n,success:r},i){let a;t&&(a=o(t)?R.loading(t,i):R.loading(t.render,{...i,...t}));let l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,n)=>{if(null==t){R.dismiss(a);return}let r={type:e,...l,...i,data:n},s=o(t)?{render:t}:t;return a?R.update(a,{...r,...s}):R(s.render,{...r,...s}),n},u=s(e)?e():e;return u.then(e=>c("success",r,e)).catch(e=>c("error",n,e)),u},R.success=T("success"),R.info=T("info"),R.error=T("error"),R.warning=T("warning"),R.warn=R.warning,R.dark=(e,t)=>I(e,A("default",{theme:"dark",...t})),R.dismiss=function(e){!function(e){if(!x()){b=b.filter(t=>null!=e&&t.options.toastId!==e);return}if(null==e||l(e))v.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=v.get(e.containerId);t?t.removeToast(e.id):v.forEach(t=>{t.removeToast(e.id)})}}(e)},R.clearWaitingQueue=(e={})=>{v.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},R.isActive=S,R.update=(e,t={})=>{let n=E(e,t);if(n){let{props:r,content:i}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:y()};a.toastId!==e&&(a.staleId=e);let o=a.render||i;delete a.render,I(o,a)}},R.done=e=>{R.update(e,{progress:1})},R.onChange=function(e){return w.add(e),()=>{w.delete(e)}},R.play=e=>C(!0,e),R.pause=e=>C(!1,e);var N="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,O=({theme:e,type:t,isLoading:n,...i})=>r.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${t})`,...i}),P={info:function(e){return r.createElement(O,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return r.createElement(O,{...e},r.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return r.createElement(O,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return r.createElement(O,{...e},r.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return r.createElement("div",{className:"Toastify__spinner"})}},D=e=>e in P,M=e=>{let{isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:o,playToast:l}=function(e){var t,n;let[i,a]=(0,r.useState)(!1),[o,s]=(0,r.useState)(!1),l=(0,r.useRef)(null),c=(0,r.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:d,closeToast:p,onClick:f,closeOnClick:h}=e;function m(){a(!0)}function g(){a(!1)}function y(t){let n=l.current;if(c.canDrag&&n){c.didMove=!0,i&&g(),"x"===e.draggableDirection?c.delta=t.clientX-c.start:c.delta=t.clientY-c.start,c.start!==t.clientX&&(c.canCloseOnClick=!1);let r="x"===e.draggableDirection?`${c.delta}px, var(--y)`:`0, calc(${c.delta}px + var(--y))`;n.style.transform=`translate3d(${r},0)`,n.style.opacity=`${1-Math.abs(c.delta/c.removalDistance)}`}}function b(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",b);let t=l.current;if(c.canDrag&&c.didMove&&t){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance){s(!0),e.closeToast(!0),e.collapseAll();return}t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}t={id:e.toastId,containerId:e.containerId,fn:a},null==(n=v.get(t.containerId||1))||n.setToggle(t.id,t.fn),(0,r.useEffect)(()=>
471{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",m),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);let w={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){c.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",b);let n=l.current;c.canCloseOnClick=!0,c.canDrag=!0,n.style.transition="none","x"===e.draggableDirection?(c.start=t.clientX,c.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(c.start=t.clientY,c.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:n,bottom:r,left:i,right:a}=l.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=i&&t.clientX<=a&&t.clientY>=n&&t.clientY<=r?g():m()}};return u&&d&&(w.onMouseEnter=g,e.stacked||(w.onMouseLeave=m)),h&&(w.onClick=e=>{f&&f(e),c.canCloseOnClick&&p(!0)}),{playToast:m,pauseToast:g,isRunning:i,preventExitTransition:o,toastRef:l,eventHandlers:w}}(e),{closeButton:c,children:u,autoClose:d,onClick:p,type:f,hideProgressBar:g,closeToast:y,transition:b,position:w,className:_,style:x,progressClassName:E,updateId:S,role:k,progress:C,rtl:I,toastId:A,deleteToast:T,isIn:R,isLoading:N,closeOnClick:O,theme:M,ariaLabel:$}=e,j=(0,i.Z)("Toastify__toast",`Toastify__toast-theme--${M}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":I},{"Toastify__toast--close-on-click":O}),L=s(_)?_({rtl:I,position:w,type:f,defaultClassName:j}):(0,i.Z)(j,_),F=function({theme:e,type:t,isLoading:n,icon:i}){let a=null,o={theme:e,type:t};return!1===i||(s(i)?a=i({...o,isLoading:n}):(0,r.isValidElement)(i)?a=(0,r.cloneElement)(i,o):n?a=P.spinner():D(t)&&(a=P[t](o))),a}(e),B=!!C||!d,U={closeToast:y,type:f,theme:M},z=null;return!1===c||(z=s(c)?c(U):(0,r.isValidElement)(c)?(0,r.cloneElement)(c,U):function({closeToast:e,theme:t,ariaLabel:n="close"}){return r.createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":n},r.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},r.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(U)),r.createElement(b,{isIn:R,done:T,position:w,preventExitTransition:n,nodeRef:a,playToast:l},r.createElement("div",{id:A,tabIndex:0,onClick:p,"data-in":R,className:L,...o,style:x,ref:a,...R&&{role:k,"aria-label":$}},null!=F&&r.createElement("div",{className:(0,i.Z)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!N})},F),h(u,e,!t),z,!e.customProgressBar&&r.createElement(m,{...S&&!B?{key:`p-${S}`}:{},rtl:I,theme:M,delay:d,isRunning:t,isIn:R,closeToast:y,hide:g,type:f,className:E,controlledProgress:B,progress:C||0})))},$=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),j=p($("bounce",!0));p($("slide",!0)),p($("zoom")),p($("flip"));var L={position:"top-right",transition:j,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code};function F(e){let t={...L,...e},n=e.stacked,[o,l]=(0,r.useState)(!0),p=(0,r.useRef)(null),{getToastToRender:h,isToastActive:m,count:g}=function(e){var t;let n;let{subscribe:i,getSnapshot:o,setProps:s}=(0,r.useRef)((n=e.containerId||1,{subscribe(t){let r,i,o,s,l,p,h,m,g,y,w,x;let E=(r=1,i=0,o=[],s=[],l=e,p=new Map,h=new Set,m=()=>{s=Array.from(p.values()),h.forEach(e=>e())},g=({containerId:e,toastId:t,updateId:r})=>{let i=p.has(t)&&null==r;return(e?e!==n:1!==n)||i},y=e=>{var t,n;null==(n=null==(t=e.props)?void 0:t.onClose)||n.call(t,e.removalReason),e.isActive=!1},w=e=>{if(null==e)p.forEach(y);else{let t=p.get(e);t&&y(t)}m()},x=e=>{var t,n;let{toastId:r,updateId:i}=e.props,a=null==i;e.staleId&&p.delete(e.staleId),e.isActive=!0,p.set(r,e),m(),_(f(e,a?"added":"updated")),a&&(null==(n=(t=e.props).onOpen)||n.call(t))},{id:n,props:l,observe:e=>(h.add(e),()=>h.delete(e)),toggle:(e,t)=>
471{p.forEach(n=>{var r;(null==t||t===n.props.toastId)&&(null==(r=n.toggle)||r.call(n,e))})},removeToast:w,toasts:p,clearQueue:()=>{i-=o.length,o=[]},buildToast:(e,t)=>{if(g(t))return;let{toastId:n,updateId:s,data:h,staleId:y,delay:v}=t,b=null==s;b&&i++;let E={...l,style:l.toastStyle,key:r++,...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!=t)),toastId:n,updateId:s,data:h,isIn:!1,className:c(t.className||l.toastClassName),progressClassName:c(t.progressClassName||l.progressClassName),autoClose:!t.isLoading&&u(t.autoClose,l.autoClose),closeToast(e){p.get(n).removalReason=e,w(n)},deleteToast(){let e=p.get(n);if(null!=e){if(_(f(e,"removed")),p.delete(n),--i<0&&(i=0),o.length>0){x(o.shift());return}m()}}};E.closeButton=l.closeButton,!1===t.closeButton||d(t.closeButton)?E.closeButton=t.closeButton:!0===t.closeButton&&(E.closeButton=!d(l.closeButton)||l.closeButton);let S={content:e,props:E,staleId:y};l.limit&&l.limit>0&&i>l.limit&&b?o.push(S):a(v)?setTimeout(()=>{x(S)},v):x(S)},setProps(e){l=e},setToggle:(e,t)=>{let n=p.get(e);n&&(n.toggle=t)},isToastActive:e=>{var t;return null==(t=p.get(e))?void 0:t.isActive},getSnapshot:()=>s});v.set(n,E);let S=E.observe(t);return b.forEach(e=>k(e.content,e.options)),b=[],()=>{S(),v.delete(n)}},setProps(e){var t;null==(t=v.get(n))||t.setProps(e)},getSnapshot(){var e;return null==(e=v.get(n))?void 0:e.getSnapshot()}})).current;s(e);let l=null==(t=(0,r.useSyncExternalStore)(i,o,o))?void 0:t.slice();return{getToastToRender:function(t){if(!l)return[];let n=new Map;return e.newestOnTop&&l.reverse(),l.forEach(e=>{let{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},isToastActive:S,count:null==l?void 0:l.length}}(t),{className:y,style:w,rtl:x,containerId:E,hotKeys:C}=t;function I(){n&&(l(!0),R.play())}return N(()=>{var e;if(n){let n=p.current.querySelectorAll('[data-in="true"]'),r=null==(e=t.position)?void 0:e.includes("top"),i=0,a=0;Array.from(n).reverse().forEach((e,t)=>{e.classList.add("Toastify__toast--stacked"),t>0&&(e.dataset.collapsed=`${o}`),e.dataset.pos||(e.dataset.pos=r?"top":"bot");let n=i*(o?.2:1)+(o?0:12*t);e.style.setProperty("--y",`${r?n:-1*n}px`),e.style.setProperty("--g","12"),e.style.setProperty("--s",`${1-(o?a:0)}`),i+=e.offsetHeight,a+=.025})}},[o,g,n]),(0,r.useEffect)(()=>{function e(e){var t;let n=p.current;C(e)&&(null==(t=n.querySelector('[tabIndex="0"]'))||t.focus(),l(!1),R.pause()),"Escape"===e.key&&(document.activeElement===n||null!=n&&n.contains(document.activeElement))&&(l(!0),R.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[C]),r.createElement("section",{ref:p,className:"Toastify",id:E,onMouseEnter:()=>{n&&(l(!1),R.pause())},onMouseLeave:I,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},h((e,t)=>{let a,o=t.length?{...w}:{...w,pointerEvents:"none"};return r.createElement("div",{tabIndex:-1,className:(a=(0,i.Z)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":x}),s(y)?y({position:e,rtl:x,defaultClassName:a}):(0,i.Z)(a,c(y))),"data-stacked":n,style:o,key:`c-${e}`},t.map(({content:e,props:t})=>r.createElement(M,{...t,stacked:n,collapseAll:I,isIn:m(t.toastId,t.containerId),key:`t-${t.key}`},e)))}))}},40715:function(e,t,n){"use strict";function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{Z:function(){return eD}});var i=n(4729),a=n(6020),o=n(15456),s=n(45);let l="phrasing",c=["autolink","link","image","label"];function u(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function d(e){this.config.enter.autolinkProtocol.call(this,e)}function p(e){this.config.exit.autolinkProtocol.call(this,e)}function f(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];(0,i.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function h(e){this.config.exit.autolinkEmail.call(this,e)}function m(e){this.exit(e)}function g(e){!function(e,t,n){let r=(0,s.O)((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),a=-1;for(;++a<i.length;)(0,o.S4)(e,"text",l);function l(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,l=n.children.indexOf(e),c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,y],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,v]],{ignore:["link","linkReference"]})}function y(e,t,n,i,a){let o="";
471if(!b(a)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let s=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")"),a=r(e,"("),o=r(e,")");for(;-1!==i&&a>o;)e+=n.slice(0,i+1),i=(n=n.slice(i+1)).indexOf(")"),o++;return[e,n]}(n+i);if(!s[0])return!1;let l={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function v(e,t,n,r){return!(!b(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function b(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,a.B8)(n)||(0,a.Xh)(n))&&(!t||47!==n)}var w=n(23185);function _(){this.buffer()}function x(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function E(){this.buffer()}function S(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function k(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteReference"===n.type),n.identifier=(0,w.d)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function C(e){this.exit(e)}function I(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteDefinition"===n.type),n.identifier=(0,w.d)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function A(e){this.exit(e)}function T(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]")}function R(e,t,n){return 0===t?e:N(e,t,n)}function N(e,t,n){return(n?"":"    ")+e}T.peek=function(){return"["};let O=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function P(e){this.enter({type:"delete",children:[]},e)}function D(e){this.exit(e)}function M(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"})+i.move("~~"),a(),o}function $(e){return e.length}function j(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}M.peek=function(){return"~"};var L=n(72147);n(35317);var F=n(11721);function B(e,t,n){let r=e.value||"",i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){let e;let t=n.unsafe[a],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}B.peek=function(){return"`"},(0,s.O)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let U=function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),a=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let o=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?a:a+" ".repeat(o-a.length))+e});return l(),c};function z(e){let t=e._align;(0,i.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function Z(e){this.exit(e),this.data.inTable=void 0}function V(e){this.enter({type:"tableRow",children:[]},e)}function q(e){this.exit(e)}function W(e){this.enter({type:"tableCell",children:[]},e)}function G(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,H));let n=this.stack[this.stack.length-1];(0,i.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function H(e,t){return"|"===t?t:e}function Y(e){let t=this.stack[this.stack.length-2];(0,i.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function K(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,i.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r;let i=t.children,a=-1;for(;++a<i.length;){let e=i[a];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function J(e,t,n,r){let i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let l=U(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}var X=n(33850);let Q={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}},partial:!0},ee={tokenize:function(e,t,n){let r,i,o;return s;function s(t){return 46===t||95===t?e.check(en,c,l)(t):null===t||(0,a.z3)(t)||(0,a.B8)(t)||45!==t&&(0,a.Xh)(t)?c(t):(o=!0,e.consume(t),s)}function l(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),s}function c(e){return i||r||!o?n(e):t(e)}},partial:!0},et={tokenize:function(e,t){let n=0,r=0;return i;function i(s){return 40===s?(n++,e.consume(s),i):41===s&&r<n?o(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(en,t,o)(s):null===s||(0,a.z3)(s)||(0,a.B8)(s)?t(s):(e.consume(s),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},en={tokenize:function(e,t,n){return r;function r(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),r):38===s?(e.consume(s),o):93===s?(e.consume(s),i):60===s||null===s||(0,a.z3)(s)||(0,a.B8)(s)?t(s):n(s)}function i(e){return null===e||40===e||91===e||(0,a.z3)(e)||(0,a.B8)(e)?t(e):r(e)}function o(t){return(0,a.jv)(t)?function t(i){return 59===i?(e.consume(i),r):(0,a.jv)(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},er={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return(0,a.H$)(e)?n(e):t(e)}},partial:!0},ei={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!ec.call(r,r.previous)||ef(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Q,e.attempt(ee,e.attempt(et,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:ec},ea={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",o=!1;return function(t){return(72===t||104===t)&&eu.call(r,r.previous)&&!ef(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),s):n(t)};function s(t){if((0,a.jv)(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),o)?c:(o=!0,l):n(t)}function c(t){return null===t||(0,a.Av)(t)||(0,a.z3)(t)||(0,a.B8)(t)||(0,a.Xh)(t)?n(t):e.attempt(ee,e.attempt(et,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:eu},eo={name:"emailAutolink",tokenize:function(e,t,n){let r,i;let o=this;return function(t){return!ep(t)||!ed.call(o,o.previous)||ef(o.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return ep(r)?(e.consume(r),t):64===r?(e.consume(r),s):n(r)}(t))};function s(t){return 46===t?e.check(er,c,l)(t):45===t||95===t||(0,a.H$)(t)?(i=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),r=!0,s}function c(s){return i&&r&&(0,a.jv)(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:ed},es={},el=48;for(;el<123;)es[el]=eo,58==++el?el=65:91===el&&(el=97);function ec(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||(0,a.z3)(e)}function eu(e){return!(0,a.jv)(e)}function ed(e){return!(47===e||ep(e))}function ep(e){return 43===e||45===e||46===e||95===e||(0,a.H$)(e)}function ef(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}es[43]=eo,es[45]=eo,es[46]=eo,es[95]=eo,es[72]=[eo,ea],es[104]=[eo,ea],es[87]=[eo,ei],es[119]=[eo,ei];var eh=n(43590),em=n(60403);let eg={tokenize:function(e,t,n){let r=this;return(0,em.f)(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};
471function ey(e,t,n){let r;let i=this,a=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;a--;){let e=i.events[a][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!r||!r._balanced)return n(a);let s=(0,w.d)(i.sliceSerialize({start:r.end,end:i.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function ev(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function eb(e,t,n){let r;let i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(l){if(s>999||93===l&&!r||null===l||91===l||(0,a.z3)(l))return n(l);if(93===l){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return o.includes((0,w.d)(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return(0,a.z3)(l)||(r=!0),s++,e.consume(l),92===l?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function ew(e,t,n){let r,i;let o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(l>999||93===t&&!i||null===t||91===t||(0,a.z3)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,w.d)(o.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return(0,a.z3)(t)||(i=!0),l++,e.consume(t),92===t?d:u}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s.includes(r)||s.push(r),(0,em.f)(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function e_(e,t,n){return e.check(eh.w,t,e.attempt(eg,t,n))}function ex(e){e.exit("gfmFootnoteDefinition")}var eE=n(57974),eS=n(797);class ek{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function eC(e,t,n){let r;let i=this,o=0,s=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?b:l;return a===b&&i.parser.lazy[i.now().line]?n(e):a(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,s+=1),c(t)}function c(t){return null===t?n(t):(0,a.Ch)(t)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):n(t):(0,a.xz)(t)?(0,em.f)(e,c,"whitespace")(t):(s+=1,r&&(r=!1,o+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,c):(e.enter("data"),u(t))}function u(t){return null===t||124===t||(0,a.z3)(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?d:u)}function d(t){return 92===t||124===t?(e.consume(t),u):u(t)}function p(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,a.xz)(t))?(0,em.f)(e,f,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}
471function f(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):n(t)}function h(t){return(0,a.xz)(t)?(0,em.f)(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(s+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(s+=1,g(t)):null===t||(0,a.Ch)(t)?v(t):n(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(n))}(t)):n(t)}function y(t){return(0,a.xz)(t)?(0,em.f)(e,v,"whitespace")(t):v(t)}function v(i){return 124===i?f(i):null===i||(0,a.Ch)(i)?r&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i):n(i)}function b(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||(0,a.Ch)(n)?(e.exit("tableRow"),t(n)):(0,a.xz)(n)?(0,em.f)(e,w,"whitespace")(n):(e.enter("data"),_(n))}function _(t){return null===t||124===t||(0,a.z3)(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?x:_)}function x(t){return 92===t||124===t?(e.consume(t),_):_(t)}}function eI(e,t){let n,r,i,a=-1,o=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0,p=new ek;for(;++a<e.length;){let f=e[a],h=f[1];"enter"===f[0]?"tableHead"===h.type?(u=!1,0!==d&&(eT(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(a,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(o=!0,i=void 0,l=[0,0,0,0],c=[0,a+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(a,0,[["enter",r,t]])),s="tableDelimiterRow"===h.type?2:r?3:1):s&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(o=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=eA(p,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=a)):"tableCellDivider"===h.type&&(o?o=!1:(0!==l[1]&&(c[0]=c[1],i=eA(p,t,l,s,void 0,i)),c=[(l=c)[1],a,0,0])):"tableHead"===h.type?(u=!0,d=a):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=a,0!==l[1]?(c[0]=c[1],i=eA(p,t,l,s,a,i)):0!==c[1]&&(i=eA(p,t,c,s,a,i)),s=0):s&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(c[3]=a)}for(0!==d&&eT(p,t,d,n,r),p.consume(t.events),a=-1;++a<t.events.length;){let e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,a))}return e}function eA(e,t,n,r,i,a){0!==n[0]&&(a.end=Object.assign({},eR(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));let o=eR(t.events,n[1]);if(a={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){let i=eR(t.events,n[2]),a=eR(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({},eR(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function eT(e,t,n,r,i){let a=[],o=eR(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function eR(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let eN={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return(0,a.z3)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return(0,a.Ch)(r)?t(r):(0,a.xz)(r)?e.check({tokenize:eO},t,n)(r):n(r)}}};function eO(e,t,n){return(0,em.f)(e,function(e){return null===e?n(e):t(e)},"whitespace")}let eP={};function eD(e){let t;let n=e||eP,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push((0,X.W)([{text:es},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ew,continuation:{tokenize:e_},exit:ex}},text:{91:{name:"gfmFootnoteCall",tokenize:eb}
471,93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ey,resolveTo:ev}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,a=this.events,o=0;return function(s){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(s):(e.enter("strikethroughSequenceTemporary"),function a(s){let l=(0,L.r)(i);if(126===s)return o>1?r(s):(e.consume(s),o++,a);if(o<2&&!t)return r(s);let c=e.exit("strikethroughSequenceTemporary"),u=(0,L.r)(s);return c._open=!u||2===u&&!!l,c._close=!l||2===l&&!!u,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&(0,eE.d)(o,o.length,0,(0,eS.C)(s,e.slice(r+1,n),t)),(0,eE.d)(o,o.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,eE.d)(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:eC,resolveAll:eI}}},{text:{91:eN}}])),a.push([{transforms:[g],enter:{literalAutolink:u,literalAutolinkEmail:d,literalAutolinkHttp:d,literalAutolinkWww:d},exit:{literalAutolink:m,literalAutolinkEmail:h,literalAutolinkHttp:p,literalAutolinkWww:f}},{enter:{gfmFootnoteCallString:_,gfmFootnoteCall:x,gfmFootnoteDefinitionLabelString:E,gfmFootnoteDefinition:S},exit:{gfmFootnoteCallString:k,gfmFootnoteCall:C,gfmFootnoteDefinitionLabelString:I,gfmFootnoteDefinition:A}},{canContainEols:["delete"],enter:{strikethrough:P},exit:{strikethrough:D}},{enter:{table:z,tableData:W,tableHeader:W,tableRow:V},exit:{codeText:G,table:Z,tableData:q,tableHeader:q,tableRow:q}},{exit:{taskListCheckValueChecked:Y,taskListCheckValueUnchecked:Y,paragraph:K}}]),o.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:l,notInConstruct:c},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:l,notInConstruct:c},{character:":",before:"[ps]",after:"\\/",inConstruct:l,notInConstruct:c}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){let a=r.createTracker(i),o=a.move("[^"),s=r.enter("footnoteDefinition"),l=r.enter("label");return o+=a.move(r.safe(r.associationId(e),{before:o,after:"]"})),l(),o+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,a.current()),t?N:R))),s(),o},footnoteReference:T},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:O}],handlers:{delete:M}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=B(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){let r=e.children,i=-1,a=[],o=t.enter("table");for(;++i<r.length;)a[i]=l(r[i],t,n);return o(),a}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){let i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function s(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||$,a=[],o=[],s=[],l=[],c=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>c&&(c=e[u].length);++a<e[u].length;){var d;let o=null==(d=e[u][a])?"":String(d);if(!1!==n.alignDelimiters){let e=i(o);r[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(o)}
471o[u]=t,s[u]=r}let p=-1;if("object"==typeof r&&"length"in r)for(;++p<c;)a[p]=j(r[p]);else{let e=j(r);for(;++p<c;)a[p]=e}p=-1;let f=[],h=[];for(;++p<c;){let e=a[p],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[p]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>l[p]&&(l[p]=i),h[p]=i),f[p]=o}o.splice(1,0,f),s.splice(1,0,h),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];p=-1;let r=[];for(;++p<c;){let i=e[p]||"",o="",s="";if(!1!==n.alignDelimiters){let e=l[p]-(t[p]||0),n=a[p];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):s=o=" ".repeat(e/2):s=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1!==n.padding&&!(!1===n.alignDelimiters&&""===i)&&(!1!==n.delimiterStart||p)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||p!==c-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){let r=e.children,i=-1,a=[],s=t.enter("tableRow");for(;++i<r.length;)a[i]=o(r[i],e,t,n);return s(),a}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:J}}]})}},75182:function(e,t,n){"use strict";n.d(t,{ZP:function(){return W}});var r,i=n(75271);function a(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}function o(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}var s=function(){},l=s(),c=Object,u=function(e){return e===l},d=function(e){return"function"==typeof e},p=function(e,t){return c.assign({},e,t)},f="undefined",h=function(){return typeof window!=f},m=new WeakMap,g=0,y=function(e){var t,n,r=typeof e,i=e&&e.constructor,a=i==Date;if(c(e)!==e||a||i==RegExp)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=m.get(e))return t;if(t=++g+"~",m.set(e,t),i==Array){for(n=0,t="@";n<e.length;n++)t+=y(e[n])+",";m.set(e,t)}if(i==c){t="#";for(var o=c.keys(e).sort();!u(n=o.pop());)u(e[n])||(t+=n+":"+y(e[n])+",");m.set(e,t)}}return t},v=!0,b=h(),w=typeof document!=f,_=b&&window.addEventListener?window.addEventListener.bind(window):s,x=w?document.addEventListener.bind(document):s,E=b&&window.removeEventListener?window.removeEventListener.bind(window):s,S=w?document.removeEventListener.bind(document):s,k={initFocus:function(e){return x("visibilitychange",e),_("focus",e),function(){S("visibilitychange",e),E("focus",e)}},initReconnect:function(e){var t=function(){v=!0,e()},n=function(){v=!1};return _("online",t),_("offline",n),function(){E("online",t),E("offline",n
471)}}},C=!h()||"Deno"in window,I=C?i.useEffect:i.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,T=!C&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),R=function(e){if(d(e))try{e=e()}catch(t){e=""}var t=[].concat(e),n=(e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?y(e):"")?"$swr$"+e:"";return[e,t,n]},N=new WeakMap,O=function(e,t,n,r,i,a,o){void 0===o&&(o=!0);var s=N.get(e),l=s[0],c=s[1],u=s[3],d=l[t],p=c[t];if(o&&p)for(var f=0;f<p.length;++f)p[f](n,r,i);return a&&(delete u[t],d&&d[0])?d[0](2).then(function(){return e.get(t)}):e.get(t)},P=0,D=function(){return++P},M=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a(void 0,void 0,void 0,function(){var t,n,r,i,a,s,c,f,h,m,g,y,v,b,w,_,x,E,S,k;return o(this,function(o){switch(o.label){case 0:if(t=e[0],n=e[1],r=e[2],s=!!u((a="boolean"==typeof(i=e[3])?{revalidate:i}:i||{}).populateCache)||a.populateCache,c=!1!==a.revalidate,f=!1!==a.rollbackOnError,h=a.optimisticData,g=(m=R(n))[0],y=m[2],!g)return[2];if(v=N.get(t)[2],e.length<3)return[2,O(t,g,t.get(g),l,l,c,!0)];if(b=r,_=D(),v[g]=[_,0],x=!u(h),E=t.get(g),x&&(S=d(h)?h(E):h,t.set(g,S),O(t,g,S)),d(b))try{b=b(t.get(g))}catch(e){w=e}if(!(b&&d(b.then)))return[3,2];return[4,b.catch(function(e){w=e})];case 1:if(b=o.sent(),_!==v[g][0]){if(w)throw w;return[2,b]}w&&x&&f&&(s=!0,b=E,t.set(g,E)),o.label=2;case 2:return s&&(w||(d(s)&&(b=s(b,E)),t.set(g,b)),t.set(y,p(t.get(y),{error:w}))),v[g][1]=D(),[4,O(t,g,b,w,l,c,!!s)];case 3:if(k=o.sent(),w)throw w;return[2,s?k:b]}})})},$=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},j=function(e,t){if(!N.has(e)){var n=p(k,t),r={},i=M.bind(l,e),a=s;if(N.set(e,[r,{},{},{},i]),!C){var o=n.initFocus(setTimeout.bind(l,$.bind(l,r,0))),c=n.initReconnect(setTimeout.bind(l,$.bind(l,r,1)));a=function(){o&&o(),c&&c(),N.delete(e)}}return[e,i,a]}return[e,N.get(e)[4]]},L=j(new Map),F=L[0],B=p({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:function(e,t,n,r,i){var a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(u(a)||!(o>a))&&setTimeout(r,s,i)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:function(e,t){return y(e)==y(t)},isPaused:function(){return!1},cache:F,mutate:L[1],fallback:{}},{isOnline:function(){return v},isVisible:function(){var e=w&&document.visibilityState;return u(e)||"hidden"!==e}}),U=function(e,t){var n=p(e,t);if(t){var r=e.use,i=e.fallback,a=t.use,o=t.fallback;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=p(i,o))}return n},z=(0,i.createContext)({}),Z=function(e,t){var n=(0,i.useState)({})[1],r=(0,i.useRef)(e),a=(0,i.useRef)({data:!1,error:!1,isValidating:!1}),o=(0,i.useCallback)(function(e){var i=!1,o=r.current;for(var s in e)o[s]!==e[s]&&(o[s]=e[s],a.current[s]&&(i=!0));i&&!t.current&&n({})},[]);return I(function(){r.current=e}),[r,a.current,o]},V=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},q={dedupe:!0};c.defineProperty(function(e){var t=e.value,n=U((0,i.useContext)(z),t),r=t&&t.provider,a=(0,i.useState)(function(){return r?j(r(n.cache||F),t):l})[0];return a&&(n.cache=a[0],n.mutate=a[1]),I(function(){return a?a[2]:l},[]),(0,i.createElement)(z.Provider,p(e,{value:n}))},"default",{value:B});var W=(r=function(e,t,n){var r=n.cache,s=n.compare,c=n.fallbackData,m=n.suspense,g=n.revalidateOnMount,y=n.refreshInterval,v=n.refreshWhenHidden,b=n.refreshWhenOffline,w=N.get(r),_=w[0],x=w[1],E=w[2],S=w[3],k=R(e),A=k[0],T=k[1],P=k[2],$=(0,i.useRef)(!1),j=(0,i.useRef)(!1),L=(0,i.useRef)(A),F=(0,i.useRef)(t),B=(0,i.useRef)(n),U=function(){return B.current},z=function(){return U().isVisible()&&U().isOnline()},W=function(e){return r.set(P,p(r.get(P),e))},G=r.get(A),H=u(c)?n.fallback[A]:c,Y=u(G)?H:G,K=r.get(P)||{},J=K.error,X=!$.current,Q=function(){return X&&!u(g)?g:!U().isPaused()&&(m?!u(Y)&&n.revalidateIfStale:u(Y)||n.revalidateIfStale)},ee=!!A&&!!t&&(!!K.isValidating||X&&Q()),et=Z({data:Y,error:J,isValidating:ee},j),en=et[0],er=et[1],ei=et[2],ea=(0,i.useCallback)(function(e){return a(void 0,void 0,void 0,function(){var t,i,a,c,p,f,h,m,g,y,v,b,w;return o(this,function(o){switch(o.label){case 0:if(t=F.current,!A||!t||j.current||U().isPaused())return[2,!1];c=!0,p=e||{},f=!S[A]||!p.dedupe,h=function(){return!j.current&&A===L.current&&$.current},m=function(){var e=S[A];e&&e[1]===a&&delete S[A]},g={isValidating:!1},y=function(){W({isValidating:!1}),h()&&ei(g)},W({isValidating:!0}),ei({isValidating:!0}),o.label=1;case 1:return o.trys.push([1,3,,4]),f&&(O(r,A,en.current.data,en.current.error,!0),n.loadingTimeout&&!r.get(A)&&setTimeout(function(){c&&h()&&U().onLoadingSlow(A,n)},n.loadingTimeout),S[A]=[t.apply(void 0,T),D()]),i=(w=S[A])[0],a=w[1],[4,i];case 2:if(i=o.sent(),f&&setTimeout(m,n.dedupingInterval),!S[A]||S[A][1]!==a)return f&&h()&&U().onDiscarded(A),[2,!1];if(W({error:l}),g.error=l,!u(v=E[A])&&(a<=v[0]||a<=v[1]||0===v[1]))return y(),f&&h()&&U().onDiscarded(A),[2,!1];return s(en.current.data,i)?g.data=en.current.data:g.data=i,s(r.get(A),i)||r.set(A,i),f&&h()&&U().onSuccess(i,A,n),[3,4];case 3:return b=o.sent(),m(),!U().isPaused()&&(W({error:b}),g.error=b,f&&h()&&(U().onError(b,A,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||d(n.shouldRetryOnError)&&n.shouldRetryOnError(b))&&z()&&U().onErrorRetry(b,A,n,ea,{retryCount:(p.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return c=!1,y(),h()&&f&&O(r,A,g.data,g.error,!1),[2,!0]}})})},[A]),eo=(0,i.useCallback)(M.bind(l,r,function(){return L.current}),[]);if(I(function(){F.current=t,B.current=n}),I(function(){if(A){var e=A!==L.current,t=ea.bind(l,q),n=0,r=V(A,x,function(e,t,n){ei(p({error:t,isValidating:n},s(en.current.data,e)?l:{data:e}))}),i=V(A,_,function(e){if(0==e){var r=Date.now();U().revalidateOnFocus&&r>n&&z()&&(n=r+U().focusThrottleInterval,t())}else if(1==e)U().revalidateOnReconnect&&z()&&t();else if(2==e)return ea()});return j.current=!1,L.current=A,$.current=!0,e&&ei({data:Y,error:J,isValidating:ee}),Q()&&(u(Y)||C?t():h()&&typeof window.requestAnimationFrame!=f?window.requestAnimationFrame(t):setTimeout(t,1)),function(){j.current=!0,r(),i()}}},[A,ea]),I(function(){var e;function t(){var t=d(y)?y(Y):y;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!en.current.error&&(v||U().isVisible())&&(b||U().isOnline())?ea(q).then(t):t()}return t(),function(){e&&(clearTimeout(e),e=-1)}},[y,v,b,ea]),(0,i.useDebugValue)(Y),m&&u(Y)&&A)throw F.current=t,B.current=n,j.current=!1,u(J)?ea(q):J;return{mutate:eo,get data(){return er.data=!0,Y},get error(){return er.error=!0,J},get isValidating(){return er.isValidating=!0,ee}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=p(B,(0,i.useContext)(z)),a=d(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],o=a[0],s=a[1],l=U(n,a[2]),c=r,u=l.use;if(u)for(var f=u.length;f-- >0;)c=u[f](c);return c(o,s||l.fetcher,l)})},15767:function(e,t,n){"use strict";n.d(t,{ZT:function(){return i},_T:function(){return o},ev:function(){return c},gn:function(){return s},mG:function(){return l},pi:function(){return a}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}
471)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}function c(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError},45:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});let r=function(e){if(null==e)return a;
471if("function"==typeof e)return i(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):i(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("string"==typeof e)return i(function(t){return t&&t.type===e});throw Error("Expected function, string, or object as test")};function i(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function a(){return!0}},15456:function(e,t,n){"use strict";n.d(t,{BK:function(){return a},S4:function(){return o}});var r=n(45);let i=[],a=!1;function o(e,t,n,o){let s;"function"==typeof t&&"function"!=typeof n?(o=n,n=t):s=t;let l=(0,r.O)(s),c=o?-1:1;(function e(r,s,u){let d=r&&"object"==typeof r?r:{};if("string"==typeof d.type){let e="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return p;function p(){var d;let p,f,h,m=i;if((!t||l(r,s,u[u.length-1]||void 0))&&(m=Array.isArray(d=n(r,u))?d:"number"==typeof d?[!0,d]:null==d?i:[d])[0]===a)return m;if("children"in r&&r.children&&r.children&&"skip"!==m[0])for(f=(o?r.children.length:-1)+c,h=u.concat(r);f>-1&&f<r.children.length;){if((p=e(r.children[f],f,h)())[0]===a)return p;f="number"==typeof p[1]?p[1]:f+c}return m}})(e,void 0,[])()}},35317:function(e,t,n){"use strict";n.d(t,{Vn:function(){return i}});var r=n(15456);function i(e,t,n,i){let a,o,s;"function"==typeof t&&"function"!=typeof n?(o=void 0,s=t,a=n):(o=t,s=n,a=i),(0,r.S4)(e,o,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},a)}},77910:function(e,t,n){"use strict";n.d(t,{NL:function(){return i},jm:function(){return a}});var r=n(949);
471let i=r.D5.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class a extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof a))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.D5.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}a.create=e=>new a(e)},949:function(e,t,n){"use strict";var r,i,a;n.d(t,{$k:function(){return o},D5:function(){return r},FQ:function(){return s}}),(a=r||(r={})).assertEqual=e=>{},a.assertIs=function(e){},a.assertNever=function(e){throw Error()},a.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},a.getValidEnumValues=e=>{let t=a.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return a.objectValues(n)},a.objectValues=e=>a.objectKeys(e).map(function(t){return e[t]}),a.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},a.find=(e,t)=>{for(let n of e)if(t(n))return n},a.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,a.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},a.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(i||(i={})).mergeShapes=(e,t)=>({...e,...t});let o=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return Number.isNaN(e)?o.nan:o.number;case"boolean":return o.boolean;case"function":return o.function;case"bigint":return o.bigint;case"symbol":return o.symbol;case"object":if(Array.isArray(e))return o.array;if(null===e)return o.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return o.promise;if("undefined"!=typeof Map&&e instanceof Map)return o.map;if("undefined"!=typeof Set&&e instanceof Set)return o.set;if("undefined"!=typeof Date&&e instanceof Date)return o.date;return o.object;default:return o.unknown}}},44196:function(e,t,n){"use strict";let r;n.d(t,{pA:function(){return s},Yj:function(){return eP},IX:function(){return eM},O7:function(){return eR},oQ:function(){return eY},PG:function(){return eI},VK:function(){return eF},Km:function(){return eV},jV:function(){return eB},Vo:function(){return ez},i0:function(){return eZ},jb:function(){return eq},lB:function(){return eO},AG:function(){return eG},Rx:function(){return eT},Ry:function(){return e$},jt:function(){return eW},dj:function(){return eH},IM:function(){return eU},cf:function(){return ej},Z_:function(){return eA},S1:function(){return eN},G0:function(){return eL},_4:function(){return eD}});var i,a,o,s,l=n(77910),c=n(949),u=(e,t)=>
471{let n;switch(e.code){case l.NL.invalid_type:n=e.received===c.$k.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case l.NL.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,c.D5.jsonStringifyReplacer)}`;break;case l.NL.unrecognized_keys:n=`Unrecognized key(s) in object: ${c.D5.joinValues(e.keys,", ")}`;break;case l.NL.invalid_union:n="Invalid input";break;case l.NL.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${c.D5.joinValues(e.options)}`;break;case l.NL.invalid_enum_value:n=`Invalid enum value. Expected ${c.D5.joinValues(e.options)}, received '${e.received}'`;break;case l.NL.invalid_arguments:n="Invalid function arguments";break;case l.NL.invalid_return_type:n="Invalid function return type";break;case l.NL.invalid_date:n="Invalid date";break;case l.NL.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:c.D5.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case l.NL.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case l.NL.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case l.NL.custom:n="Invalid input";break;case l.NL.invalid_intersection_types:n="Intersection results could not be merged";break;case l.NL.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case l.NL.not_finite:n="Number must be finite";break;default:n=t.defaultError,c.D5.assertNever(e)}return{message:n}};(i=o||(o={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},i.toString=e=>"string"==typeof e?e:e?.message;let d=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let s="";for(let e of r.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function p(e,t){let n=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,u,u==u?void 0:u].filter(e=>!!e)});e.common.issues.push(n)}class f{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return h;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t){let t=await e.key,r=await e.value;n.push({key:t,value:r})}return f.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let h=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),g=e=>
471({status:"valid",value:e}),y=e=>"aborted"===e.status,v=e=>"dirty"===e.status,b=e=>"valid"===e.status,w=e=>"undefined"!=typeof Promise&&e instanceof Promise;class _{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let x=(e,t)=>{if(b(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new l.jm(e.common.issues);return this._error=t,this._error}}};function E(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??r??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??n??i.defaultError}},description:i}}class S{get description(){return this._def.description}_getType(e){return(0,c.FQ)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,c.FQ)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new f,ctx:{common:e.parent.common,data:e.data,parsedType:(0,c.FQ)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(w(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,c.FQ)(e)},r=this._parseSync({data:e,path:n.path,parent:n});return x(n,r)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,c.FQ)(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:t});return b(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>b(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,c.FQ)(e)},r=this._parse({data:e,path:n.path,parent:n});return x(n,await (w(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:l.NL.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new ey({schema:this,typeName:s.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ev.create(this,this._def)}nullable(){return eb.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ee.create(this)}promise(){return eg.create(this,this._def)}or(e){return en.create([this,e],this._def)}and(e){return ea.create(this,e,this._def)}transform(e){return new ey({...E(this._def),schema:this,typeName:s.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ew({...E(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:s.ZodDefault})}brand(){return new eE({typeName:s.ZodBranded,type:this,...E(this._def)})}catch(e){return new e_({...E(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:s.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eS.create(this,e)}readonly(){return ek.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let k=/^c[^\s-]{8,}
vendor: 16,419 bytes, line 471
471$/i,C=/^[0-9a-z]+$/,I=/^[0-9A-HJKMNP-TV-Z]{26}$/i,A=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,T=/^[a-z0-9_-]{21}$/i,R=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,N=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,O=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,P=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,D=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,M=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,$=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,j=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,L=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,F="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",B=RegExp(`^${F}$`);function U(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}class z extends S{_parse(e){var t,n,i,a;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==c.$k.string){let t=this._getOrReturnCtx(e);return p(t,{code:l.NL.invalid_type,expected:c.$k.string,received:t.parsedType}),h}let s=new f;for(let u of this._def.checks)if("min"===u.kind)e.data.length<u.value&&(p(o=this._getOrReturnCtx(e,o),{code:l.NL.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),s.dirty());else if("max"===u.kind)e.data.length>u.value&&(p(o=this._getOrReturnCtx(e,o),{code:l.NL.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),s.dirty());else if("length"===u.kind){let t=e.data.length>u.value,n=e.data.length<u.value;(t||n)&&(o=this._getOrReturnCtx(e,o),t?p(o,{code:l.NL.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):n&&p(o,{code:l.NL.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),s.dirty())}else if("email"===u.kind)O.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"email",code:l.NL.invalid_string,message:u.message}),s.dirty());else if("emoji"===u.kind)r||(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:l.NL.invalid_string,message:u.message}),s.dirty());else if("uuid"===u.kind)A.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:l.NL.invalid_string,message:u.message}),s.dirty());else if("nanoid"===u.kind)T.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:l.NL.invalid_string,message:u.message}),s.dirty());else if("cuid"===u.kind)k.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:l.NL.invalid_string,message:u.message}),s.dirty());else if("cuid2"===u.kind)C.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:l.NL.invalid_string,message:u.message}),s.dirty());else if("ulid"===u.kind)I.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:l.NL.invalid_string,message:u.message}),s.dirty());else if("url"===u.kind)try{new URL(e.data)}catch{p(o=this._getOrReturnCtx(e,o),{validation:"url",code:l.NL.invalid_string,message:u.message}),s.dirty()}else"regex"===u.kind?(u.regex.lastIndex=0,u.regex.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"regex",code:l.NL.invalid_string,message:u.message}),s.dirty())):"trim"===u.kind?e.data=e.data.trim():"includes"===u.kind?e.data.includes(u.value,u.position)||(p(o=this._getOrReturnCtx(e,o),{code:l.NL.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),s.dirty()):"toLowerCase"===u.kind?e.data=e.data.toLowerCase():"toUpperCase"===u.kind?e.data=e.data.toUpperCase():"startsWith"===u.kind?e.data.startsWith(u.value)||(p(o=this._getOrReturnCtx(e,o),{code:l.NL.invalid_string,validation:{startsWith:u.value},message:u.message}),s.dirty()):"endsWith"===u.kind?e.data.endsWith(u.value)||(p(o=this._getOrReturnCtx(e,o),{code:l.NL.invalid_string,validation:{endsWith:u.value},message:u.message}),s.dirty()):"datetime"===u.kind?(function(e){let t=`${F}T${U(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,RegExp(`^${t}$`)})(u).test(e.data)||(p(o=this._getOrReturnCtx(e,o),{code:l.NL.invalid_string,validation:"datetime",message:u.message}),s.dirty()):"date"===u.kind?B.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{code:l.NL.invalid_string,validation:"date",message:u.message}),s.dirty()):"time"===u.kind?RegExp(`^${U(u)}$`).test(e.data)||(p(o=this._getOrReturnCtx(e,o),{code:l.NL.invalid_string,validation:"time",message:u.message}),s.dirty()):"duration"===u.kind?N.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"duration",code:l.NL.invalid_string,message:u.message}),s.dirty()):"ip"===u.kind?(t=e.data,("v4"===(n=u.version)||!n)&&P.test(t)||("v6"===n||!n)&&M.test(t)||(p(o=this._getOrReturnCtx(e,o),{validation:"ip",code:l.NL.invalid_string,message:u.message}),s.dirty())):"jwt"===u.kind?!function(e,t){if(!R.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,u.alg)&&(p(o=this._getOrReturnCtx(e,o),{validation:"jwt",code:l.NL.invalid_string,message:u.message}),s.dirty()):"cidr"===u.kind?(i=e.data,("v4"===(a=u.version)||!a)&&D.test(i)||("v6"===a||!a)&&$.test(i)||(p(o=this._getOrReturnCtx(e,o),{validation:"cidr",code:l.NL.invalid_string,message:u.message}),s.dirty())):"base64"===u.kind?j.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"base64",code:l.NL.invalid_string,message:u.message}),s.dirty()):"base64url"===u.kind?L.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"base64url",code:l.NL.invalid_string,message:u.message}),s.dirty()):c.D5.assertNever(u);return{status:s.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:l.NL.invalid_string,...o.errToObj(n)})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...o.errToObj(e)})}url(e){return this._addCheck({kind:"url",...o.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...o.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...o.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...o.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...o.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...o.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...o.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...o.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...o.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...o.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...o.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...o.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...o.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...o.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...o.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...o.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...o.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...o.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...o.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...o.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...o.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...o.errToObj(t)})}nonempty(e){return this.min(1,o.errToObj(e))}trim(){return new z({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new z({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new z({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}z.create=e=>new z({checks:[],typeName:s.ZodString,coerce:e?.coerce??!1,...E(e)});class Z extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==c.$k.number){let t=this._getOrReturnCtx(e);return p(t,{code:l.NL.invalid_type,expected:c.$k.number,received:t.parsedType}),h}let n=new f;for(let r of this._def.checks)"int"===r.kind?c.D5.isInteger(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:l.NL.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(p(t=this._getOrReturnCtx(e,t),{code:l.NL.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(p(t=this._getOrReturnCtx(e,t),{code:l.NL.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,r.value)&&(p(t=this._getOrReturnCtx(e,t),{code:l.NL.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:l.NL.not_finite,message:r.message}),n.dirty()):c.D5.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,n,r){return new Z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:o.toString(r)}]})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:o.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:o.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:o.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:o.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&c.D5.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Z.create=e=>new Z({checks:[],typeName:s.ZodNumber,coerce:e?.coerce||!1,...E(e)});class V extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==c.$k.bigint)return this._getInvalidInput(e);let n=new f;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(p(t=this._getOrReturnCtx(e,t),{code:l.NL.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(p(t=this._getOrReturnCtx(e,t),{code:l.NL.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(p(t=this._getOrReturnCtx(e,t),{code:l.NL.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):c.D5.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return p(t,{code:l.NL.invalid_type,expected:c.$k.bigint,received:t.parsedType}),h}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,n,r){return new V({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:o.toString(r)}]})}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}
471positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}V.create=e=>new V({checks:[],typeName:s.ZodBigInt,coerce:e?.coerce??!1,...E(e)});class q extends S{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==c.$k.boolean){let t=this._getOrReturnCtx(e);return p(t,{code:l.NL.invalid_type,expected:c.$k.boolean,received:t.parsedType}),h}return g(e.data)}}q.create=e=>new q({typeName:s.ZodBoolean,coerce:e?.coerce||!1,...E(e)});class W extends S{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==c.$k.date){let t=this._getOrReturnCtx(e);return p(t,{code:l.NL.invalid_type,expected:c.$k.date,received:t.parsedType}),h}if(Number.isNaN(e.data.getTime()))return p(this._getOrReturnCtx(e),{code:l.NL.invalid_date}),h;let n=new f;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(p(t=this._getOrReturnCtx(e,t),{code:l.NL.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),n.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(p(t=this._getOrReturnCtx(e,t),{code:l.NL.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):c.D5.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new W({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:o.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:o.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}W.create=e=>new W({checks:[],coerce:e?.coerce||!1,typeName:s.ZodDate,...E(e)});class G extends S{_parse(e){if(this._getType(e)!==c.$k.symbol){let t=this._getOrReturnCtx(e);return p(t,{code:l.NL.invalid_type,expected:c.$k.symbol,received:t.parsedType}),h}return g(e.data)}}G.create=e=>new G({typeName:s.ZodSymbol,...E(e)});class H extends S{_parse(e){if(this._getType(e)!==c.$k.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:l.NL.invalid_type,expected:c.$k.undefined,received:t.parsedType}),h}return g(e.data)}}H.create=e=>new H({typeName:s.ZodUndefined,...E(e)});class Y extends S{_parse(e){if(this._getType(e)!==c.$k.null){let t=this._getOrReturnCtx(e);return p(t,{code:l.NL.invalid_type,expected:c.$k.null,received:t.parsedType}),h}return g(e.data)}}Y.create=e=>new Y({typeName:s.ZodNull,...E(e)});class K extends S{constructor(){super(...arguments),this._any=!0}_parse(e){return g(e.data)}}K.create=e=>new K({typeName:s.ZodAny,...E(e)});class J extends S{constructor(){super(...arguments),this._unknown=!0}_parse(e){return g(e.data)}}J.create=e=>new J({typeName:s.ZodUnknown,...E(e)});class X extends S{_parse(e){let t=this._getOrReturnCtx(e);return p(t,{code:l.NL.invalid_type,expected:c.$k.never,received:t.parsedType}),h}}X.create=e=>new X({typeName:s.ZodNever,...E(e)});class Q extends S{_parse(e){if(this._getType(e)!==c.$k.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:l.NL.invalid_type,expected:c.$k.void,received:t.parsedType}),h}return g(e.data)}}Q.create=e=>new Q({typeName:s.ZodVoid,...E(e)});class ee extends S{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==c.$k.array)return p(t,{code:l.NL.invalid_type,expected:c.$k.array,received:t.parsedType}),h;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(p(t,{code:e?l.NL.too_big:l.NL.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(p(t,{code:l.NL.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(p(t,{code:l.NL.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new _(t,e,t.path,n)))).then(e=>f.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new _(t,e,t.path,n)));return f.mergeArray(n,i)}
471get element(){return this._def.type}min(e,t){return new ee({...this._def,minLength:{value:e,message:o.toString(t)}})}max(e,t){return new ee({...this._def,maxLength:{value:e,message:o.toString(t)}})}length(e,t){return new ee({...this._def,exactLength:{value:e,message:o.toString(t)}})}nonempty(e){return this.min(1,e)}}ee.create=(e,t)=>new ee({type:e,minLength:null,maxLength:null,exactLength:null,typeName:s.ZodArray,...E(t)});class et extends S{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=c.D5.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==c.$k.object){let t=this._getOrReturnCtx(e);return p(t,{code:l.NL.invalid_type,expected:c.$k.object,received:t.parsedType}),h}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof X&&"strip"===this._def.unknownKeys))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new _(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof X){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)o.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)a.length>0&&(p(n,{code:l.NL.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new _(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>f.mergeObjectSync(t,e)):f.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return o.errToObj,new et({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{let r=this._def.errorMap?.(t,n).message??n.defaultError;return"unrecognized_keys"===t.code?{message:o.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new et({...this._def,unknownKeys:"strip"})}passthrough(){return new et({...this._def,unknownKeys:"passthrough"})}extend(e){return new et({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new et({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:s.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new et({...this._def,catchall:e})}pick(e){let t={};for(let n of c.D5.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new et({...this._def,shape:()=>t})}omit(e){let t={};for(let n of c.D5.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new et({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof et){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=ev.create(e(i))}return new et({...t._def,shape:()=>n})}return t instanceof ee?new ee({...t._def,type:e(t.element)}):t instanceof ev?ev.create(e(t.unwrap())):t instanceof eb?eb.create(e(t.unwrap())):t instanceof eo?eo.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};for(let n of c.D5.objectKeys(this.shape)){let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}return new et({...this._def,shape:()=>t})}required(e){let t={};for(let n of c.D5.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof ev;)e=e._def.innerType;t[n]=e}return new et({...this._def,shape:()=>t})}keyof(){return ef(c.D5.objectKeys(this.shape))}}et.create=(e,t)=>new et({shape:()=>e,unknownKeys:"strip",catchall:X.create(),typeName:s.ZodObject,...E(t)}),et.strictCreate=(e,t)=>new et({shape:()=>e,unknownKeys:"strict",catchall:X.create(),typeName:s.ZodObject,...E(t)}),et.lazycreate=(e,t)=>new et({shape:e,unknownKeys:"strip",catchall:X.create(),typeName:s.ZodObject,...E(t)});class en extends S{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new l.jm(e.ctx.common.issues));return p(t,{code:l.NL.invalid_union,unionErrors:n}),h});{let e;let r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new l.jm(e));return p(t,{code:l.NL.invalid_union,unionErrors:i}),h}}get options(){return this._def.options}}en.create=(e,t)=>
471new en({options:e,typeName:s.ZodUnion,...E(t)});let er=e=>{if(e instanceof ed)return er(e.schema);if(e instanceof ey)return er(e.innerType());if(e instanceof ep)return[e.value];if(e instanceof eh)return e.options;if(e instanceof em)return c.D5.objectValues(e.enum);if(e instanceof ew)return er(e._def.innerType);if(e instanceof H)return[void 0];else if(e instanceof Y)return[null];else if(e instanceof ev)return[void 0,...er(e.unwrap())];else if(e instanceof eb)return[null,...er(e.unwrap())];else if(e instanceof eE)return er(e.unwrap());else if(e instanceof ek)return er(e.unwrap());else if(e instanceof e_)return er(e._def.innerType);else return[]};class ei extends S{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.$k.object)return p(t,{code:l.NL.invalid_type,expected:c.$k.object,received:t.parsedType}),h;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:l.NL.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=er(n.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(r.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new ei({typeName:s.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...E(n)})}}class ea extends S{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(y(e)||y(r))return h;let i=function e(t,n){let r=(0,c.FQ)(t),i=(0,c.FQ)(n);if(t===n)return{valid:!0,data:t};if(r===c.$k.object&&i===c.$k.object){let r=c.D5.objectKeys(n),i=c.D5.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(r===c.$k.array&&i===c.$k.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;i<t.length;i++){let a=e(t[i],n[i]);if(!a.valid)return{valid:!1};r.push(a.data)}return{valid:!0,data:r}}return r===c.$k.date&&i===c.$k.date&&+t==+n?{valid:!0,data:t}:{valid:!1}}(e.value,r.value);return i.valid?((v(e)||v(r))&&t.dirty(),{status:t.value,value:i.data}):(p(n,{code:l.NL.invalid_intersection_types}),h)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ea.create=(e,t,n)=>new ea({left:e,right:t,typeName:s.ZodIntersection,...E(n)});class eo extends S{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==c.$k.array)return p(n,{code:l.NL.invalid_type,expected:c.$k.array,received:n.parsedType}),h;if(n.data.length<this._def.items.length)return p(n,{code:l.NL.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&n.data.length>this._def.items.length&&(p(n,{code:l.NL.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new _(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>f.mergeArray(t,e)):f.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new eo({...this._def,rest:e})}}eo.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eo({items:e,typeName:s.ZodTuple,rest:null,...E(t)})};class es extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==c.$k.object)return p(n,{code:l.NL.invalid_type,expected:c.$k.object,received:n.parsedType}),h;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new _(n,e,n.path,e)),value:a._parse(new _(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?f.mergeObjectAsync(t,r):f.mergeObjectSync(t,r)}
471get element(){return this._def.valueType}static create(e,t,n){return new es(t instanceof S?{keyType:e,valueType:t,typeName:s.ZodRecord,...E(n)}:{keyType:z.create(),valueType:e,typeName:s.ZodRecord,...E(t)})}}class el extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==c.$k.map)return p(n,{code:l.NL.invalid_type,expected:c.$k.map,received:n.parsedType}),h;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new _(n,e,n.path,[a,"key"])),value:i._parse(new _(n,t,n.path,[a,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return h;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return h;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}el.create=(e,t,n)=>new el({valueType:t,keyType:e,typeName:s.ZodMap,...E(n)});class ec extends S{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==c.$k.set)return p(n,{code:l.NL.invalid_type,expected:c.$k.set,received:n.parsedType}),h;let r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(p(n,{code:l.NL.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(p(n,{code:l.NL.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return h;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new _(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new ec({...this._def,minSize:{value:e,message:o.toString(t)}})}max(e,t){return new ec({...this._def,maxSize:{value:e,message:o.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ec.create=(e,t)=>new ec({valueType:e,minSize:null,maxSize:null,typeName:s.ZodSet,...E(t)});class eu extends S{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.$k.function)return p(t,{code:l.NL.invalid_type,expected:c.$k.function,received:t.parsedType}),h;function n(e,n){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u,u].filter(e=>!!e),issueData:{code:l.NL.invalid_arguments,argumentsError:n}})}function r(e,n){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u,u].filter(e=>!!e),issueData:{code:l.NL.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof eg){let e=this;return g(async function(...t){let o=new l.jm([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}{let e=this;return g(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new l.jm([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new l.jm([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eu({...this._def,args:eo.create(e).rest(J.create())})}returns(e){return new eu({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new eu({args:e||eo.create([]).rest(J.create()),returns:t||J.create(),typeName:s.ZodFunction,...E(n)})}}class ed extends S{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ed.create=(e,t)=>
471new ed({getter:e,typeName:s.ZodLazy,...E(t)});class ep extends S{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:l.NL.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ef(e,t){return new eh({values:e,typeName:s.ZodEnum,...E(t)})}ep.create=(e,t)=>new ep({value:e,typeName:s.ZodLiteral,...E(t)});class eh extends S{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{expected:c.D5.joinValues(n),received:t.parsedType,code:l.NL.invalid_type}),h}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{received:t.data,code:l.NL.invalid_enum_value,options:n}),h}return g(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eh.create(e,{...this._def,...t})}exclude(e,t=this._def){return eh.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eh.create=ef;class em extends S{_parse(e){let t=c.D5.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==c.$k.string&&n.parsedType!==c.$k.number){let e=c.D5.objectValues(t);return p(n,{expected:c.D5.joinValues(e),received:n.parsedType,code:l.NL.invalid_type}),h}if(this._cache||(this._cache=new Set(c.D5.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=c.D5.objectValues(t);return p(n,{received:n.data,code:l.NL.invalid_enum_value,options:e}),h}return g(e.data)}get enum(){return this._def.values}}em.create=(e,t)=>new em({values:e,typeName:s.ZodNativeEnum,...E(t)});class eg extends S{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==c.$k.promise&&!1===t.common.async?(p(t,{code:l.NL.invalid_type,expected:c.$k.promise,received:t.parsedType}),h):g((t.parsedType===c.$k.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eg.create=(e,t)=>new eg({type:e,typeName:s.ZodPromise,...E(t)});class ey extends S{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===s.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{p(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return h;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?h:"dirty"===r.status||"dirty"===t.value?m(r.value):r});{if("aborted"===t.value)return h;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?h:"dirty"===r.status||"dirty"===t.value?m(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?h:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>b(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):h);{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!b(e))return h;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}c.D5.assertNever(r)}}
471ey.create=(e,t,n)=>new ey({schema:e,typeName:s.ZodEffects,effect:t,...E(n)}),ey.createWithPreprocess=(e,t,n)=>new ey({schema:t,effect:{type:"preprocess",transform:e},typeName:s.ZodEffects,...E(n)});class ev extends S{_parse(e){return this._getType(e)===c.$k.undefined?g(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:s.ZodOptional,...E(t)});class eb extends S{_parse(e){return this._getType(e)===c.$k.null?g(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eb.create=(e,t)=>new eb({innerType:e,typeName:s.ZodNullable,...E(t)});class ew extends S{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===c.$k.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ew.create=(e,t)=>new ew({innerType:e,typeName:s.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...E(t)});class e_ extends S{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return w(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l.jm(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new l.jm(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:s.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...E(t)});class ex extends S{_parse(e){if(this._getType(e)!==c.$k.nan){let t=this._getOrReturnCtx(e);return p(t,{code:l.NL.invalid_type,expected:c.$k.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}ex.create=e=>new ex({typeName:s.ZodNaN,...E(e)}),Symbol("zod_brand");class eE extends S{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class eS extends S{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new eS({in:e,out:t,typeName:s.ZodPipeline})}}class ek extends S{_parse(e){let t=this._def.innerType._parse(e),n=e=>(b(e)&&(e.value=Object.freeze(e.value)),e);return w(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}function eC(e,t){let n="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof n?{message:n}:n}function eI(e,t={},n){return e?K.create().superRefine((r,i)=>{let a=e(r);if(a instanceof Promise)return a.then(e=>{if(!e){let e=eC(t,r),a=e.fatal??n??!0;i.addIssue({code:"custom",...e,fatal:a})}});if(!a){let e=eC(t,r),a=e.fatal??n??!0;i.addIssue({code:"custom",...e,fatal:a})}}):K.create()}ek.create=(e,t)=>new ek({innerType:e,typeName:s.ZodReadonly,...E(t)}),et.lazycreate,(a=s||(s={})).ZodString="ZodString",a.ZodNumber="ZodNumber",a.ZodNaN="ZodNaN",a.ZodBigInt="ZodBigInt",a.ZodBoolean="ZodBoolean",a.ZodDate="ZodDate",a.ZodSymbol="ZodSymbol",a.ZodUndefined="ZodUndefined",a.ZodNull="ZodNull",a.ZodAny="ZodAny",a.ZodUnknown="ZodUnknown",a.ZodNever="ZodNever",a.ZodVoid="ZodVoid",a.ZodArray="ZodArray",a.ZodObject="ZodObject",a.ZodUnion="ZodUnion",a.ZodDiscriminatedUnion="ZodDiscriminatedUnion",a.ZodIntersection="ZodIntersection",a.ZodTuple="ZodTuple",a.ZodRecord="ZodRecord",a.ZodMap="ZodMap",a.ZodSet="ZodSet",a.ZodFunction="ZodFunction",a.ZodLazy="ZodLazy",a.ZodLiteral="ZodLiteral",a.ZodEnum="ZodEnum",a.ZodEffects="ZodEffects",a.ZodNativeEnum="ZodNativeEnum",a.ZodOptional="ZodOptional",a.ZodNullable="ZodNullable",a.ZodDefault="ZodDefault",a.ZodCatch="ZodCatch",a.ZodPromise="ZodPromise",a.ZodBranded="ZodBranded",a.ZodPipeline="ZodPipeline",a.ZodReadonly="ZodReadonly";let eA=z.create,eT=Z.create;ex.create,V.create;let eR=q.create;W.create,G.create;let eN=H.create,eO=Y.create,eP=K.create,eD=J.create;X.create,Q.create;let eM=ee.create,e$=et.create,ej=et.strictCreate,eL=en.create,eF=ei.create,eB=ea.create;eo.create;let eU=es.create;el.create,ec.create,eu.create;let ez=ed.create,eZ=ep.create,eV=eh.create,eq=em.create;eg.create,ey.create;let eW=ev.create,eG=eb.create,eH=ey.createWithPreprocess;eS.create;let eY={string:e=>z.create({...e,coerce:!0}),number:e=>Z.create({...e,coerce:!0}),boolean:e=>q.create({...e,coerce:!0}),bigint:e=>V.create({...e,coerce:!0}),date:e=>W.create({...e,coerce:!0})}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(76371),t(75968),t(42232)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.