1/*! For license information please see app-f4b42ad52eb996503618.js.LICENSE.txt */ 2(self.webpackChunkfingerprint_com=self.webpackChunkfingerprint_com||[]).push([[3524],{30:function(e,t,n){"use strict";var r=n(96893),o=n(23315),i=n(64466),a=n(3770),s=n(10380),u=n(57137);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=u(t),c=o.length,l=0;c>l;)i.f(e,n=o[l++],r[n]);return e}},154:function(e,t,n){"use strict";var r=n(64212).charAt;e.exports=function(e,t,n){return t+(n&&r(e,t).length||1)}},1038:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseContext:function(){return A},Link:function(){return te},Location:function(){return ae},LocationContext:function(){return k},LocationProvider:function(){return ie},Match:function(){return ue},Redirect:function(){return I},Router:function(){return he},ServerLocation:function(){return se},createHistory:function(){return y},createMemorySource:function(){return b},globalHistory:function(){return E},insertParams:function(){return L},isRedirect:function(){return T},match:function(){return N},navigate:function(){return S},pick:function(){return D},redirectTo:function(){return _},resolve:function(){return U},shallowCompare:function(){return V},startsWith:function(){return j},useBaseContext:function(){return O},useLocation:function(){return me},useLocationContext:function(){return P},useMatch:function(){return we},useNavigate:function(){return ye},useParams:function(){return be},validateRedirect:function(){return M}});var r=n(55152),o=n(30414),i=n(95309),a=n(72715),s=n(29296),u=n(90689),c=(n(33975),n(58899),n(14041)),l=n(39067),f=n.n(l),d=n(78958),p=n.n(d);function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}function h(){return h=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},h.apply(this,arguments)}function g(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}var m=function(e){var t=e.location,n=t.search,r=t.hash,o=t.href,i=t.origin,a=t.protocol,s=t.host,u=t.hostname,c=t.port,l=e.location.pathname;return!l&&o&&w&&(l=new URL(o).pathname),{pathname:encodeURI(decodeURI(l)),search:n,hash:r,href:o,origin:i,protocol:a,host:s,hostname:u,port:c,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},y=function(e,t){var n=[],r=m(e),o=!1,i=function(){};return{get location(){return r},get transitioning(){return o},_onTransitionComplete:function(){o=!1,i()},listen:function(t){n.push(t);var o=function(){r=m(e),t({location:r,action:"POP"})};return e.addEventListener("popstate",o),function(){e.removeEventListener("popstate",o),n=n.filter(function(e){return e!==t})}},navigate:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=a.state,u=a.replace,c=void 0!==u&&u;if("number"==typeof t)e.history.go(t);else{s=h({},s,{key:Date.now()+""});try{o||c?e.history.replaceState(s,null,t):e.history.pushState(s,null,t)}catch(n){e.location[c?"replace":"assign"](t)}}r=m(e),o=!0;var l=new Promise(function(e){return i=e});return n.forEach(function(e){return e({location:r,action:"PUSH"})}),l}}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=e.indexOf("?"),n={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""},r=0,o=[n],i=[null];return{get location(){return o[r]},addEventListener:function(e,t){},removeEventListener:function(e,t){},history:{get entries(){return o},get index(){return r},get state(){return i[r]},pushState:function(e,t,n){var a=n.split("?"),s=(0,u.A)(a,2),c=s[0],l=s[1],f=void 0===l?"":l;r++,o.push({pathname:c,search:f.length?"?".concat(f):f}),i.push(e)},replaceState:function(e,t,n){var a=n.split("?"),s=(0,u.A)(a,2),c=s[0],l=s[1],f=void 0===l?"":l;o[r]={pathname:c,search:f},i[r]=e},go:function(e){var t=r+e;t<0||t>i.length-1||(r=t)}}}},w=!("undefined"==typeof window||!window.document||!window.document.createElement),E=y(w?window:b()),S=E.navigate;function x(e,t){return c.createServerContext?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return globalThis.__SERVER_CONTEXT||(globalThis.__SERVER_CONTEXT={}),globalThis.__SERVER_CONTEXT[e]||(globalThis.__SERVER_CONTEXT[e]=c.createServerContext(e,t)),globalThis.__SERVER_CONTEXT[e]}(e,t):c.createContext(t)}
2var A=x("Base",{baseuri:"/",basepath:"/"}),k=x("Location"),O=function(){return c.useContext(A)},P=function(){return c.useContext(k)};function C(e){this.uri=e}var T=function(e){return e instanceof C},_=function(e){throw new C(e)};function R(e){var t=e.to,n=e.replace,r=void 0===n||n,o=e.state,i=e.noThrow,a=e.baseuri;c.useEffect(function(){Promise.resolve().then(function(){var n=U(t,a);S(L(n,e),{replace:r,state:o})})},[]);var s=U(t,a);return i||_(L(s,e)),null}var I=function(e){var t=P(),n=O().baseuri;return c.createElement(R,h({},t,{baseuri:n},e))};I.propTypes={from:f().string,to:f().string.isRequired};var j=function(e,t){return e.substr(0,t.length)===t},D=function(e,t){for(var n,r,o=t.split("?"),i=(0,u.A)(o,1)[0],a=Y(i),s=""===a[0],c=z(e),l=0,f=c.length;l<f;l++){var d=!1,v=c[l].route;if(v.default)r={route:v,params:{},uri:t};else{for(var h=Y(v.path),g={},m=Math.max(a.length,h.length),y=0;y<m;y++){var b=h[y],w=a[y];if(q(b)){g[b.slice(1)||"*"]=a.slice(y).map(decodeURIComponent).join("/");break}if(void 0===w){d=!0;break}var E=H.exec(b);if(E&&!s){var S=-1===J.indexOf(E[1]);p()(S,'<Router> dynamic segment "'.concat(E[1],'" is a reserved name. Please use a different name in path "').concat(v.path,'".'));var x=decodeURIComponent(w);g[E[1]]=x}else if(b!==w){d=!0;break}}if(!d){n={route:v,params:g,uri:"/"+a.slice(0,y).join("/")};break}}}return n||r||null},N=function(e,t){return D([{path:e}],t)},U=function(e,t){if(j(e,"/"))return e;var n=e.split("?"),r=(0,u.A)(n,2),o=r[0],i=r[1],a=t.split("?"),s=(0,u.A)(a,1)[0],c=Y(o),l=Y(s);if(""===c[0])return W(s,i);if(!j(c[0],".")){var f=l.concat(c).join("/");return W(("/"===s?"":"/")+f,i)}for(var d=l.concat(c),p=[],v=0,h=d.length;v<h;v++){var g=d[v];".."===g?p.pop():"."!==g&&p.push(g)}return W("/"+p.join("/"),i)},L=function(e,t){var n=e.split("?"),r=(0,u.A)(n,2),o=r[0],i=r[1],a=void 0===i?"":i,s="/"+Y(o).map(function(e){var n=H.exec(e);return n?t[n[1]]:e}).join("/"),c=t.location,l=(void 0===c?{}:c).search,f=(void 0===l?"":l).split("?")[1]||"";return s=W(s,a,f)},M=function(e,t){var n=function(e){return F(e)};return Y(e).filter(n).sort().join("/")===Y(t).filter(n).sort().join("/")},H=/^:(.+)/,F=function(e){return H.test(e)},q=function(e){return e&&"*"===e[0]},B=function(e,t){return{route:e,score:e.default?0:Y(e.path).reduce(function(e,t){return e+=4,function(e){return""===e}(t)?e+=1:F(t)?e+=2:q(t)?e-=5:e+=3,e},0),index:t}},z=function(e){return e.map(B).sort(function(e,t){return e.score<t.score?1:e.score>t.score?-1:e.index-t.index})},Y=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},W=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e+((n=n.filter(function(e){return e&&e.length>0}))&&n.length>0?"?".concat(n.join("&")):"")},J=["uri","path"],V=function(e,t){var n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(function(n){return t.hasOwnProperty(n)&&e[n]===t[n]})},G=function(e){return e.replace(/(^\/+|\/+$)/g,"")},K=function(e){return function(t){if(!t)return null;if(t.type===c.Fragment&&t.props.children)return c.Children.map(t.props.children,K(e));if(p()(t.props.path||t.props.default||t.type===I,"<Router>: Children of <Router> must have a `path` or `default` prop, or be a `<Redirect>`. None found on element type `".concat(t.type,"`")),p()(!!(t.type!==I||t.props.from&&t.props.to),'<Redirect from="'.concat(t.props.from,'" to="').concat(t.props.to,'"/> requires both "from" and "to" props when inside a <Router>.')),p()(!(t.type===I&&!M(t.props.from,t.props.to)),'<Redirect from="'.concat(t.props.from,' to="').concat(t.props.to,'"/> has mismatched dynamic segments, ensure both paths have the exact same dynamic segments.')),t.props.default)return{value:t,default:!0};var n=t.type===I?t.props.from:t.props.path,r="/"===n?e:"".concat(G(e),"/").concat(G(n));return{value:t,default:t.props.default,path:t.props.children?"".concat(G(r),"/*"):r}}},X=["innerRef"],$=["to","state","replace","getProps"],Q=["key"],Z=c.forwardRef;void 0===Z&&(Z=function(e){return e});var ee=function(){},te=Z(function(e,t){var n=e.innerRef,r=g(e,X),o=O().baseuri,i=P().location,a=r.to,s=r.state,u=r.replace,l=r.getProps,f=void 0===l?ee:l,d=g(r,$),p=U(a,o),v=encodeURI(p),m=i.pathname===v,y=j(i.pathname,v);return c.createElement("a",h({ref:t||n,"aria-current":m?"page":void 0},d,f({isCurrent:m,isPartiallyCurrent:y,href:p,location:i}),{href:p,onClick:function(e){if(d.onClick&&d.onClick(e),function(e){return!e.defaultPrevented&&0===e.button&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)){e.preventDefault();var t=u;if("boolean"!=typeof u&&m){var n=g(h({},i.state),Q);t=V(h({},s),n)}S(p,{state:s,replace:t})}}}))});
2te.displayName="Link",te.propTypes={to:f().string.isRequired};var ne=function(e){function t(){var e;(0,r.A)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return e=function(e,t,n){return t=(0,a.A)(t),(0,i.A)(e,v()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}(this,t,[].concat(o)),e.displayName="ReactUseErrorBoundary",e}return(0,s.A)(t,e),(0,o.A)(t,[{key:"componentDidCatch",value:function(){var e;this.setState({}),(e=this.props).onError.apply(e,arguments)}},{key:"render",value:function(){return this.props.children}}])}(c.Component),re=c.createContext({componentDidCatch:{current:void 0},error:void 0,setError:function(){return!1}});function oe(e){var t=e.children,n=c.useState(),r=(0,u.A)(n,2),o=r[0],i=r[1],a=c.useRef(),s=c.useMemo(function(){return{componentDidCatch:a,error:o,setError:i}},[o]);return c.createElement(re.Provider,{value:s},c.createElement(ne,{error:o,onError:function(e,t){i(e),null==a.current||a.current(e,t)}},t))}oe.displayName="ReactUseErrorBoundaryContext";var ie=function(e){var t,n;function r(t){return c.createElement(oe,null,c.createElement(e,h({key:"WrappedComponent"},t)))}return r.displayName="WithErrorBoundary(".concat(null!=(t=null!=(n=e.displayName)?n:e.name)?t:"Component",")"),r}(function(e){var t=e.history,n=void 0===t?E:t,r=e.children,o=n.location,i=c.useState({location:o}),a=(0,u.A)(i,2),s=a[0],l=a[1],f=function(){var e=c.useContext(re);e.componentDidCatch.current=void 0;var t=c.useCallback(function(){e.setError(void 0)},[]);return[e.error,t]}(),d=(0,u.A)(f,1)[0];if(c.useEffect(function(){n._onTransitionComplete()},[s.location]),c.useEffect(function(){var e=!1,t=n.listen(function(t){var n=t.location;Promise.resolve().then(function(){requestAnimationFrame(function(){e||l({location:n})})})});return function(){e=!0,t()}},[]),d){if(!T(d))throw d;S(d.uri,{replace:!0})}return c.createElement(k.Provider,{value:s},"function"==typeof r?r(s):r||null)}),ae=function(e){var t=e.children,n=P();return n?t(n):c.createElement(ie,null,t)},se=function(e){var t,n=e.url,r=e.children,o=n.indexOf("?"),i="";return o>-1?(t=n.substring(0,o),i=n.substring(o)):t=n,c.createElement(k.Provider,{value:{location:{pathname:t,search:i,hash:""}}},r)},ue=function(e){var t=e.path,n=e.children,r=O().baseuri,o=P().location,i=U(t,r),a=N(i,o.pathname);return n({location:o,match:a?h({},a.params,{uri:a.uri,path:t}):null})},ce=["uri","location","component"],le=["children","style","component","uri","location"],fe=function(e){var t=e.uri,n=e.location,r=e.component,o=g(e,ce);return c.createElement(pe,h({},o,{component:r,uri:t,location:n}))},de=0,pe=function(e){var t=e.children,n=e.style,r=e.component,o=void 0===r?"div":r,i=e.uri,a=e.location,s=g(e,le),u=c.useRef(),l=c.useRef(!0),f=c.useRef(i),d=c.useRef(a.pathname),p=c.useRef(!1);c.useEffect(function(){return de++,v(),function(){0===--de&&(l.current=!0)}},[]),c.useEffect(function(){var e=!1,t=!1;i!==f.current&&(f.current=i,e=!0),a.pathname!==d.current&&(d.current=a.pathname,t=!0),p.current=e||t&&a.pathname===i,p.current&&v()},[i,a]);var v=c.useCallback(function(){var e;l.current?l.current=!1:(e=u.current,p.current&&e&&e.focus())},[]);return c.createElement(o,h({style:h({outline:"none"},n),tabIndex:"-1",ref:u},s),t)},ve=["location","primary","children","basepath","baseuri","component"],he=function(e){var t=O(),n=P();return c.createElement(ge,h({},t,n,e))};function ge(e){var t=e.location,n=e.primary,r=void 0===n||n,o=e.children,i=e.basepath,a=e.component,s=void 0===a?"div":a,u=g(e,ve),l=c.Children.toArray(o).reduce(function(e,t){var n=K(i)(t);return e.concat(n)},[]),f=t.pathname,d=D(l,f);if(d){var p=d.params,v=d.uri,m=d.route,y=d.route.value,b=m.default?i:m.path.replace(/\*$/,""),w=h({},p,{uri:v,location:t}),E=c.cloneElement(y,w,y.props.children?c.createElement(he,{location:t,primary:r},y.props.children):void 0),S=r?fe:s,x=r?h({uri:v,location:t,component:s},u):u;return c.createElement(A.Provider,{value:{baseuri:v,basepath:b}},c.createElement(S,x,E))}return null}var me=function(){var e=P();if(!e)throw new Error("useLocation hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");return e.location},ye=function(){throw new Error("useNavigate is removed. Use import { navigate } from 'gatsby' instead")},be=function(){var e=O();if(!e)throw new Error("useParams hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");var t=me(),n=N(e.basepath,t.pathname);return n?n.params:null}
2,we=function(e){if(!e)throw new Error("useMatch(path: string) requires an argument of a string to match against");var t=O();if(!t)throw new Error("useMatch hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");var n=me(),r=U(e,t.baseuri),o=N(r,n.pathname);return o?h({},o.params,{uri:o.uri,path:e}):null}},1087:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:function(){return r}})},1402:function(e,t,n){"use strict";var r=n(5613),o=n(79117);r({global:!0,forced:o.globalThis!==o},{globalThis:o})},1942:function(e){"use strict";e.exports=!1},2287:function(e,t,n){"use strict";var r=n(39944),o=n(14188),i=n(80831),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},2474:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:function(){return r}})},3720:function(e,t,n){"use strict";var r=n(48016),o=r.DEFAULT_OPTIONS,i=r.imageClass,a=r.imageBackgroundClass,s=r.imageWrapperClass;t.onRouteUpdate=function(e,t){for(var n=Object.assign({},o,t),r=document.querySelectorAll("."+s),u=function(){var e=r[c],t=e.querySelector("."+a),o=e.querySelector("."+i),s=function(){t.style.transition="opacity 0.5s 0.5s",o.style.transition="opacity 0.5s",u()},u=function e(){t.style.opacity=0,o.style.opacity=1,o.style.color="inherit",o.style.boxShadow="inset 0px 0px 0px 400px "+n.backgroundColor,o.removeEventListener("load",s),o.removeEventListener("error",e)};o.style.opacity=0,o.addEventListener("load",s),o.addEventListener("error",u),o.complete&&u()},c=0;c<r.length;c++)u()}},3770:function(e,t,n){"use strict";var r=n(80831),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},4282:function(e,t,n){"use strict";var r=n(79117),o=n(10746),i=n(74418),a=n(66209),s=n(48944),u=n(89809),c=r.Symbol,l=o("wks"),f=u?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return i(l,e)||(l[e]=s&&i(c,e)?c[e]:f("Symbol."+e)),l[e]}},4293:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},4578:function(e,t,n){"use strict";var r=n(16881);e.exports=r({}.isPrototypeOf)},4686:function(e,t,n){var r=n(16699),o=n(70645);e.exports=function e(t,n){function i(e,o,a,s){try{var u=t[e](o),c=u.value;return c instanceof r?n.resolve(c.v).then(function(e){i("next",e,a,s)},function(e){i("throw",e,a,s)}):n.resolve(c).then(function(e){u.value=e,a(u)},function(e){return i("throw",e,a,s)})}catch(t){s(t)}}var a;this.next||(o(e.prototype),o(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(e,t,r){function o(){return new n(function(t,n){i(e,r,t,n)})}return a=a?a.then(o,o):o()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},5018:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},5054:function(e,t,n){"use strict";var r=n(71025),o=n(80831),i=n(39509),a=n(74121);
2e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(s){}return function(n,r){return i(n),a(r),o(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},5138:function(e,t,n){"use strict";n.r(t);var r=n(14041),o=n(60890),i=n(81177);t.default=function(e){var t=e.location,n=o.Ay.loadPageSync(t.pathname);return n?r.createElement(i.A,Object.assign({location:t,pageResources:n},n.json)):null}},5234:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},5405:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:function(){return r}})},5604:function(e,t,n){"use strict";var r=n(79117),o=n(14188);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},5613:function(e,t,n){"use strict";var r=n(79117),o=n(9304).f,i=n(88088),a=n(97509),s=n(14798),u=n(98657),c=n(68489);e.exports=function(e,t){var n,l,f,d,p,v=e.target,h=e.global,g=e.stat;if(n=h?r:g?r[v]||s(v,{}):r[v]&&r[v].prototype)for(l in t){if(d=t[l],f=e.dontCallGetSet?(p=o(n,l))&&p.value:n[l],!c(h?l:v+(g?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,l,d,e)}}},6032:function(e,t,n){"use strict";var r=n(5604),o=n(14188),i=n(4578),a=n(89809),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},6126:function(e,t,n){"use strict";n.d(t,{we:function(){return me},eX:function(){return Ee}});var r,o=n(90689),i=n(86330),a=n(83705),s=n(39850),u=n(24586),c=n(55152),l=n(30414),f=n(95309),d=n(72715),p=n(29296),v=n(75799),h=n.n(v),g=(n(7212),n(34350));n(36554),n(68472);function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}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 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){(0,u.A)(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(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(E=function(){return!!e})()}var S,x="csp_block",A="invalid_endpoint",k="handle_agent_data",O="script_load_fail",P="api_key_missing",C="api_key_invalid",T="endpoints_misconfigured",_="bundle_not_defined",R=(r={},(0,u.A)((0,u.A)((0,u.A)((0,u.A)((0,u.A)((0,u.A)((0,u.A)((0,u.A)((0,u.A)((0,u.A)(r,"client_timeout","Client timeout"),"network_connection","Network connection error"),"network_abort","Network request aborted"),x,"Blocked by CSP"),A,'The provided endpoint in "endpoints" parameter is not a valid URL'),k,"Handle on demand agent data error"),O,"Failed to load the JS script of the agent"),_,"9319"),"bad_response_format","Can't parse the backend response. Make sure the proper endpoints are used."),P,"The `apiKey` option is not provided"),(0,u.A)((0,u.A)((0,u.A)((0,u.A)((0,u.A)((0,u.A)(r,C,"The `apiKey` option is not a string"),"cache_misconfigured","The `cache` option is misconfigured"),T,"The `endpoints` option is misconfigured"),"wrong_worker_option","Wrong `worker` option, it should be a Worker instance"),"worker_initialization_failed","Web Worker initialization failed"),"sandboxed_iframe","Running inside sandboxed iframes is not supported")),I=function(e){function t(e,n){var r;return(0,c.A)(this,t),r=function(e,t,n){return t=(0,d.A)(t),(0,f.A)(e,E()?Reflect.construct(t,n||[],(0,d.A)(e).constructor):t.apply(e,n))}(this,t,[e]),r.name="FingerprintError",r.event_id=null,r.code=n,r}return(0,p.A)(t,e),(0,l.A)(t)}((0,g.A)(Error));function j(e,t){return new Promise(function(n,r){var o=!1;null==t||t.then(function(){return o=!0},function(){return o=!0}),("function"==typeof e?j(Promise.resolve(),t).then(e):e).then(function(e){o||n(e)},function(e){o||r(e)})})}function D(e){return L(e)?K(e.value):K(e)}function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J;return function(t){var n,r,s=function(e,t){for(var n={},r={},i=0,a=Object.entries(e);i<a.length;i++){var s=(0,o.A)(a[i],2),u=s[0],c=s[1];t.includes(u)?n[u]=c:r[u]=c}return{picked:n,rest:r}}(t,["apiKey"]),u=s.picked,c=s.rest,l=u.apiKey;if(!l)throw new I(R[P],P);if("string"!=typeof l)throw new I(R[C],C);var f,d=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(f=t,"endpoints")?f.endpoints:void 0,p=function(e,t,n){var r=e.prepareScriptEndpoints(t,"https://fpnpmcdn.net/");if(null===r)throw new I(R[T],T);return r.map(function(e){return function(e,t){var n=new URL(e,window.location.href),r=n.pathname;return n.pathname="".concat(r).concat(r.endsWith("/")?"":"/","v4/").concat(encodeURIComponent(t)),n.search="?ci=jsl/".concat(encodeURIComponent(W)),n.href}(e,n)})}(e,d,l),v=function(){var e=[],t=function(){e.push({time:new Date,state:document.visibilityState})},n=function(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}(document,"visibilitychange",t);return t(),[e,n]}(),g=(0,o.A)(v,2),m=g[0],y=g[1],b=(0,i.A)(h().mark(function t(){var s,u,l,f,d,v;return h().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,function(e,t){if(0===e.length)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var n=[],r=function(e,t,n,r){var i,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},u=s.maxAttemptCount,c=void 0===u?5:u,l=s.backoffBase,f=void 0===l?200:l,d=s.backoffCap,p=void 0===d?1e4:d,v=s.abort,h={failedAttempts:[]},g=function(e,t,n,r){var o=function(e){var t=(0,a.A)(e);return{current:function(){return t[0]},postpone:function(){var e=t.shift();void 0!==e&&t.push(e)},exclude:function(){t.shift()}}}(e),i=function(e,t){var n=0;return function(){return Math.random()*Math.min(t,e*Math.pow(2,n++))}}(n,r),s=new Set;return[o.current(),function(e,n,r){var a=t(e,n,r);"exclude"===a.action?o.exclude():o.postpone();var u,c=function(){return Math.max(0,e.getTime()+i()-Date.now())};u="number"==typeof a.delay?a.delay:c();var l=o.current();return 0===u&&l&&Date.now()-e.getTime()<50&&(s.has(l)?u=c():s.add(l)),void 0===l?void 0:[l,u]}]}(e,r,f,p),m=(0,o.A)(g,2),y=m[0],b=m[1],w=(i=[null==v?void 0:v.then(function(e){return h.aborted={resolve:!0,value:e}},function(e){return h.aborted={resolve:!1,error:e}}),z(y,c,t,n,b,h,v)],Promise.race(i.filter(function(e){return!!e}))).then(function(){return h});return{then:w.then.bind(w),current:h}}(e,function(){var e=(0,i.A)(h().mark(function e(r){var o,i,a;return h().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=new Date,e.prev=1,e.next=2,t(r);case 2:return i=e.sent,e.abrupt("return",(n.push({url:r,startedAt:o,finishedAt:new Date,error:void 0}),i));case 3:throw e.prev=3,a=e.catch(1),n.push({url:r,startedAt:o,finishedAt:new Date,error:a}),a;case 4:case"end":return e.stop()}},e,null,[[1,3]])}
2));return function(t){return e.apply(this,arguments)}}(),function(e){return{result:e}},M,{maxAttemptCount:5,backoffBase:100,backoffCap:3e3});return new Promise(function(e,t){Promise.resolve(r).then(function(r){if(void 0!==r.result)e([r.result,n]);else{var o=r.failedAttempts[0];t(o?o.error:new Error("No attempts were made"))}}).catch(t)})}(p,function(t){return function(e,t){return e.withCspViolationWatch(t,(0,i.A)(h().mark(function e(){return h().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!function(e){if(URL.prototype)try{return new URL(e,location.href),!1}catch(e){if(F(e))return!0;throw e}}(t)){e.next=1;break}throw new I(R[A],A);case 1:return e.prev=1,e.next=2,import(t);case 2:return e.abrupt("return",e.sent);case 3:throw e.prev=3,e.catch(1),new I(R[O],O);case 4:case"end":return e.stop()}},e,null,[[1,3]])})),function(){throw new I(R[x],x)}).then(function(e){if("function"!=typeof(null==e?void 0:e.start))throw new I(R[_],_);return e})}(e,t)});case 1:return s=t.sent,u=(0,o.A)(s,2),l=u[0],f=u[1],t.next=2,l.start(w(w({},c),{},{ldi:{attempts:f,visibilityStates:m}}));case 2:return d=t.sent,t.abrupt("return",(n=d,d));case 3:throw t.prev=3,v=t.catch(0),r=function(e){return e instanceof I&&e.code===_?new I(R[O],O):e}(v),r;case 4:return t.prev=4,y(),t.finish(4);case 5:case"end":return t.stop()}},t,null,[[0,3,4,5]])}))();return{get:function(e){return(0,i.A)(h().mark(function t(){return h().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=1;break}return t.abrupt("return",n.get(e));case 1:if(!r){t.next=2;break}throw r;case 2:return t.next=3,b;case 3:return t.abrupt("return",t.sent.get(e));case 4:case"end":return t.stop()}},t)}))()},collect:function(e){return(0,i.A)(h().mark(function t(){return h().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=1;break}return t.abrupt("return",n.collect(e));case 1:if(!r){t.next=2;break}throw r;case 2:return t.next=3,b;case 3:return t.abrupt("return",t.sent.collect(e));case 4:case"end":return t.stop()}},t)}))()}}}}var U=Array.isArray;function L(e){return!!e&&e.__type__===H}function M(e,t,n){var r=n instanceof I?n.code:null;return r===x||r===A?{action:"exclude",delay:0}:r===_?{action:"exclude",delay:"backoff"}:r===O?{action:"postpone",delay:Date.now()-e.getTime()<50?0:"backoff"}:{action:"postpone",delay:"backoff"}}var H="withoutDefault";function F(e){return e instanceof Error&&"TypeError"===e.name}function q(e,t){try{return new window.URL(e,window.location.href)}catch(n){if(F(n))return console.warn("Ignoring an invalid '".concat(t,"' value: \"").concat(e,'"')),null;throw n}}function B(e){return"".concat(e.origin).concat(e.pathname.endsWith("/")?e.pathname:"".concat(e.pathname,"/"),"web/")}function z(e,t,n,r,o,i,a){return Y.apply(this,arguments)}function Y(){return Y=(0,i.A)(h().mark(function e(t,n,r,o,i,a,s){var u,c,l;return h().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t){e.next=1;break}return e.abrupt("return");case 1:u=t,c=h().mark(function e(t){var n,c,l,f,d,p;return h().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=new Date,e.prev=1,e.next=2,j(function(){return r(u,t,s)},s);case 2:c=e.sent,e.next=4;break;case 3:e.prev=3,p=e.catch(1),l=p,a.failedAttempts.push({level:0,endpoint:u,error:p});case 4:if(!c){e.next=6;break}if(!("result"in(f=o(c)))){e.next=5;break}return a.result=f.result,e.abrupt("return",0);case 5:if(a.failedAttempts.push({level:1,endpoint:u,error:f.error}),!f.stop){e.next=6;break}return e.abrupt("return",0);case 6:if(d=i(n,c,l)){e.next=7;break}return e.abrupt("return",0);case 7:return e.next=8,j($(d[1]),s);case 8:u=d[0];case 9:case"end":return e.stop()}},e,null,[[1,3]])}),l=0;case 2:if(!(l<n)){e.next=5;break}return e.delegateYield(c(l),"t0",3);case 3:if(0!==e.t0){e.next=4;break}return e.abrupt("continue",5);case 4:++l,e.next=2;break;case 5:case"end":return e.stop()}},e)})),Y.apply(this,arguments)}var W="4.1.0";var J={prepareScriptEndpoints:function(e,t){return void 0===e?[t]:D(e)?function(e,t){var n,r=!1;L(e)?(r=!0,n=X(e.value)):n=X(e);var o,i=[],a=m(n);try{for(a.s();!(o=a.n()).done;){var s=q(o.value,"endpoints");s&&i.push(B(s))}}catch(u){a.e(u)}finally{a.f()}return r||i.push(t),i}(e,t):function(e){if(!e||"object"!=typeof e)return!1;var t=e;return"string"==typeof t.__type__&&694409711===function(e){var t=Q(e);S=S||function(){for(var e,t=new Uint32Array(256),n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();for(var n=-1,r=0;r<t.length;r++)n=n>>>8^S[255&(n^t[r])];return(-1^n)>>>0}(G(t.__type__))&&(void 0===t.script||D(t.script))&&(void 0===t.helper||D(t.helper))&&(void 0===t.ingress||D(t.ingress))}(e)?function(e,t){if(void 0===e)return[t];var n,r=!1;L(e)?(r=!0,n=X(e.value)):n=X(e);var o,i=[],a=m(n);try{for(a.s();!(o=a.n()).done;){var s=q(o.value,"script");s&&i.push(s.href)}}catch(u){a.e(u)}finally{a.f()}return r||i.push(t),i}(e.script,t):null},withCspViolationWatch:function(e,t,n,r){var o,i=document,a="securitypolicyviolation",s=function(t){var n=new URL(e,location.href),r=t.blockedURI;r!==n.href&&r!==n.protocol.slice(0,-1)&&r!==n.origin||(o=t,u())};i.addEventListener(a,s);var u=function(){return i.removeEventListener(a,s)};return null==r||r.then(u,u),Promise.resolve().then(t).then(function(e){return u(),e},function(e){return new Promise(function(e){var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(null)}).then(function(){if(u(),o)return n(o);throw e})})}};var V=N();function G(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>127)return(new TextEncoder).encode(e);t[n]=r}return t}function K(e){return"string"==typeof e||Array.isArray(e)&&e.every(function(e){return"string"==typeof e})}function X(e){return U(e)?e:[e]}function $(e,t){return new Promise(function(n){return function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=Date.now()+t,a=0,s=function(){a=setTimeout(function(){Date.now()<i?s():e.apply(void 0,r)},i-Date.now())};return s(),function(){return clearTimeout(a)}}(n,e,t)})}function Q(e){return e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Z=n(14041),ee=n(31085),te=n(40458),ne=n.n(te),re=["children","forceRebuild","env","getOptions"],oe=["immediate"];function ie(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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?ie(Object(n),!0).forEach(function(t){(0,u.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function se(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(se=function(){return!!e})()}var ue={getVisitorData:function(){throw new Error("You forgot to wrap your component in <FingerprintProvider>.")}},ce=(0,Z.createContext)(ue),le="3.0.0",fe=function(){return typeof window>"u"||typeof window.document>"u"},de=function(e){return e.React="react",e.Preact="preact",e.Next="next",e.Unknown="unknown",e}(de||{});function pe(){return function(){if(typeof window>"u")return!1;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++)if((0,o[r])())return!0;return!1}(function(){return"next"in window&&!!window.next},function(){return document.querySelector("script[id=__NEXT_DATA__]")})}function ve(e){try{var t=JSON.parse('{"name":"next","version":"16.2.12"}');if(function(e){return"object"==typeof e&&null!==e&&"name"in e}(t))return t}catch(n){}return function(e){var t,n=e.context;return pe()?{name:de.Next,version:null===(t=window)||void 0===t||null===(t=t.next)||void 0===t?void 0:t.version}:function(e){return e.classRenderReceivesAnyArguments}(n)?{name:de.Preact}:function(e){return!e.classRenderReceivesAnyArguments}(n)?{name:de.React}:{name:de.Unknown}}(e)}var he=function(e){function t(e){return(0,c.A)(this,t),function(e,t,n){return t=(0,d.A)(t),(0,f.A)(e,se()?Reflect.construct(t,n||[],(0,d.A)(e).constructor):t.apply(e,n))}(this,t,[e])}return(0,p.A)(t,e),(0,l.A)(t,[{key:"render",value:function(){if(!this.detectedEnv){var e={context:{classRenderReceivesAnyArguments:arguments.length>0}};this.detectedEnv=ve(e)}return(0,Z.cloneElement)(this.props.children,{env:this.detectedEnv})}}])}(Z.Component);function ge(){var e=function(e){return(0,Z.useRef)("function"==typeof e?e():e).current}(new Map);return{doRequest:(0,Z.useCallback)(function(t,n){var r=function(e){return e?"".concat(e.tag,"-").concat(e.linkedId,"-").concat(e.timeout):""}(n),o=e.get(r);return o||(o=t().finally(function(){e.delete(r)}),e.set(r,o)),o},[e])}}function me(e){return(0,ee.jsx)(he,{children:(0,ee.jsx)(ye,ae({},e))})}function ye(e){var t=e.children,n=e.forceRebuild,r=e.env,o=e.getOptions,u=(0,s.A)(e,re),c=(0,Z.useCallback)(function(){var e=function(e){if("customAgent"in e&&function(e){return"object"==typeof e&&null!==e&&"start"in e&&"function"==typeof e.start}(e.customAgent))return e.customAgent}(u),t="react-sdk/".concat(le);if(r){var n=r.version?"".concat(r.name,"/").concat(r.version):r.name;t+="/".concat(n)}var o=[].concat((0,a.A)(u.integrationInfo||[]),[t]),i=ae(ae({},u),{},{integrationInfo:o});return e?e.start(i):V(i)},[u,r]),l=(0,Z.useRef)(),f=(0,Z.useCallback)(function(){if(fe())throw new Error("FingerprintProvider client cannot be used in SSR");return l.current||(l.current=c()),l.current},[c]),d=ge().doRequest,p=(0,Z.useCallback)(function(e){var t=f(),n=ae(ae({},o),e);return d((0,i.A)(h().mark(function e(){return h().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.get(n));case 1:case"end":return e.stop()}},e)})),n)},[d,f,o]),v=(0,Z.useMemo)(function(){return{getVisitorData:p}},[p]);return(0,Z.useEffect)(function(){(!l.current||n)&&(l.current=c())},[n,u,o,c]),(0,ee.jsx)(ce.Provider,{value:v,children:t})}function be(e){return e instanceof Error?e:new Error(String(e))}function we(e,t){if(!e)throw new TypeError("".concat(t," must not be null or undefined"))}function Ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{immediate:!0},t=e.immediate,n=(0,s.A)(e,oe);we(n,"getOptions");var r=(0,Z.useContext)(ce).getVisitorData,a=(0,Z.useState)(n),u=(0,o.A)(a,2),c=u[0],l=u[1],f=(0,Z.useState)({isLoading:t,data:void 0,isFetched:!1,error:void 0}),d=(0,o.A)(f,2),p=d[0],v=d[1],g=(0,Z.useCallback)((0,i.A)(h().mark(function e(){var t,n,o,i,a,s=arguments;return h().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return we(t=s.length>0&&void 0!==s[0]?s[0]:{},"getDataParams"),e.prev=1,v({isLoading:!0,isFetched:!1,data:void 0,error:void 0}),n=ae(ae({},c),t),e.next=2,r(n);case 2:return o=e.sent,e.abrupt("return",(v({isLoading:!1,isFetched:!0,data:o,error:void 0}),o));case 3:throw e.prev=3,a=e.catch(1),i=be(a),v({isLoading:!1,isFetched:!1,data:void 0,error:i}),i;case 4:case"end":return e.stop()}},e,null,[[1,3]])}
2)),[c,r]);return(0,Z.useEffect)(function(){t&&g().catch(function(e){console.error("Failed to fetch visitor data on mount: ".concat(e))})},[t,g]),!Object.is(c,n)&&!ne()(c,n)&&l(n),(0,Z.useMemo)(function(){return ae(ae({},p),{},{getData:g})},[p,g])}},6148:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=new Map,o=new Map;function i(e){var t=r.get(e);return t||(t=o.get(e.toLowerCase())),t}[].forEach(function(e){e.ignoreCase?o.set(e.fromPath,e):r.set(e.fromPath,e)})},6473:function(e,t,n){"use strict";n.d(t,{Y:function(){return a},g:function(){return i}});var r=n(14041),o=(0,r.createContext)({isPreview:!1}),i=function(){return(0,r.useContext)(o)},a=function(e){var t=e.children,n=e.isPreview,i=void 0!==n&&n;return r.createElement(o.Provider,{value:{isPreview:i}},t)}},6696:function(e,t,n){"use strict";n.d(t,{XQ:function(){return ka},fd:function(){return Sa},tn:function(){return Ea},X3:function(){return Oa}});var r,o=n(86330),i=n(75799),a=n.n(i),s=n(14041),u=n(22155),c=n(59468),l=n(30414),f=n(54691);!function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"}(r||(r={}));var d=function(e){return void 0===e&&(e=0),((new Error).stack||"").split("\n").slice(2+e).map(function(e){return e.trim()})},p=function(e){return function(){var t=(0,f.Cl)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},v=function(e,t){var n,r;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var o=(0,f.Ju)(t.split(".")),i=o.next();!i.done;i=o.next()){var a=i.value;if(!(a in e))return;e=e[a]}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e},h=function(e,t){return function(){var n,r,o={};try{for(var i=(0,f.Ju)(t),a=i.next();!a.done;a=i.next()){var s=a.value;o[s]=v(e,s)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}},g=function(e,t,n,o,i){return void 0===i&&(i=null),function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var u=n(),c=u.logger,l=u.logLevel;if(l&&l<r.Debug||!l||!c)return e.apply(i,a);var f={type:"invoke public method",name:t,args:a,stacktrace:d(1),time:{start:(new Date).toISOString()},states:{}};o&&f.states&&(f.states.before=o());var p=e.apply(i,a);return p&&p.promise?p.promise.then(function(){o&&f.states&&(f.states.after=o()),f.time&&(f.time.end=(new Date).toISOString()),c.debug(JSON.stringify(f,null,2))}):(o&&f.states&&(f.states.after=o()),f.time&&(f.time.end=(new Date).toISOString()),c.debug(JSON.stringify(f,null,2))),p}},m=function(e){return{promise:e||Promise.resolve()}},y="Amplitude Logger ",b=function(){function e(){this.logLevel=r.None}return e.prototype.disable=function(){this.logLevel=r.None},e.prototype.enable=function(e){void 0===e&&(e=r.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.Verbose||console.log("".concat(y,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.Warn||console.warn("".concat(y,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.Error||console.error("".concat(y,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.Debug||console.log("".concat(y,"[Debug]: ").concat(e.join(" ")))},e}(),w=(n(7212),function(){function e(e,t){this.key="AMP_remote_config_".concat(e.substring(0,10)),this.logger=t}return e.prototype.fetchConfig=function(){var e=null,t={remoteConfig:null,lastFetch:new Date};try{e=localStorage.getItem(this.key)}catch(r){return this.logger.debug("Remote config localstorage failed to access: ",r),Promise.resolve(t)}if(null===e)return this.logger.debug("Remote config localstorage gets null because the key does not exist"),Promise.resolve(t);try{var n=JSON.parse(e);return this.logger.debug("Remote config localstorage parsed successfully: ".concat(JSON.stringify(n))),Promise.resolve({remoteConfig:n.remoteConfig,lastFetch:new Date(n.lastFetch)})}catch(r){return this.logger.debug("Remote config localstorage failed to parse: ",r),localStorage.removeItem(this.key),Promise.resolve(t)}},e.prototype.setConfig=function(e){try{return localStorage.setItem(this.key,JSON.stringify(e)),this.logger.debug("Remote config localstorage set successfully."),Promise.resolve(!0)}catch(t){this.logger.debug("Remote config localstorage failed to set: ",t)}return Promise.resolve(!1)},e}()),E=(n(36554),n(68472),n(58899),function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0}),S=function(e){return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,A)},x=(0,f.fX)([],(0,f.zs)(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),A=function(e){var t,n=E();if(!(null===(t=null==n?void 0:n.crypto)||void 0===t?void 0:t.getRandomValues))return S(e);var r=n.crypto.getRandomValues(new Uint8Array(16));return r[6]=15&r[6]|64,r[8]=63&r[8]|128,(0,f.fX)([],(0,f.zs)(r.entries()),!1).map(function(e){var t=(0,f.zs)(e,2),n=t[0],r=t[1];return[4,6,8,10].includes(n)?"-".concat(x[r]):x[r]}).join("")},k=401,O=403,P=429,C=function(){function e(e,t,n,r){void 0===n&&(n="US"),this.callbackInfos=[],this.lastSuccessfulFetch=null,this.fetchPromise=null,this.isLastFetchInvali
vendor: 2,469 bytes, line 2
2dApiKey=!1,this.apiKey=e,this.serverUrl=r||("US"===n?"https://sr-client-cfg.amplitude.com/config":"https://sr-client-cfg.eu.amplitude.com/config"),this.logger=t,this.storage=new w(e,t)}return e.prototype.subscribe=function(e,t,n){var r=A(),o={id:r,key:e,deliveryMode:t,callback:n};return this.callbackInfos.push(o),"all"===t?this.subscribeAll(o):this.subscribeWaitForRemote(o,t.timeout),r},e.prototype.unsubscribe=function(e){var t=this.callbackInfos.findIndex(function(t){return t.id===e});return-1===t?(this.logger.debug("Remote config client unsubscribe failed because callback with id ".concat(e," doesn't exist.")),!1):(this.callbackInfos.splice(t,1),this.logger.debug("Remote config client unsubscribe succeeded removing callback with id ".concat(e,".")),!0)},e.prototype.updateConfigs=function(){return(0,f.sH)(this,void 0,void 0,function(){var e,t=this;return(0,f.YH)(this,function(n){switch(n.label){case 0:return this.lastSuccessfulFetch&&Date.now()-this.lastSuccessfulFetch<3e5?(this.logger.debug("Remote config client skipping updateConfigs: Too recent"),[2]):[4,this.getOrCreateFetchPromise()];case 1:return e=n.sent(),this.storage.setConfig(e),this.callbackInfos.forEach(function(n){t.sendCallback(n,e,"remote")}),[2]}})})},e.prototype.getOrCreateFetchPromise=function(){var e=this;return this.fetchPromise?this.fetchPromise:this.isLastFetchInvalidApiKey?(this.logger.debug("Remote config client skipping fetch: Invalid API key"),this.fetchPromise=Promise.resolve({remoteConfig:null,lastFetch:new Date}).finally(function(){e.fetchPromise=null}),this.fetchPromise):(this.fetchPromise=this.fetch().then(function(t){return null!==t.remoteConfig&&(e.lastSuccessfulFetch=Date.now()),t}).finally(function(){e.fetchPromise=null}),this.fetchPromise)},e.prototype.subscribeAll=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t,n,r,o=this;return(0,f.YH)(this,function(i){switch(i.label){case 0:return t=this.getOrCreateFetchPromise().then(function(t){o.logger.debug("Remote config client subscription all mode fetched from remote: ".concat(JSON.stringify(t))),o.sendCallback(e,t,"remote"),o.storage.setConfig(t)}),n=this.storage.fetchConfig().then(function(e){return e}),[4,Promise.race([t,n])];case 1:return void 0!==(r=i.sent())&&(this.logger.debug("Remote config client subscription all mode fetched from cache: ".concat(JSON.stringify(r))),null!==r.remoteConfig?this.sendCallback(e,r,"cache"):this.logger.debug("Remote config client skips sending c
2allback because cache is empty (first time user).")),[4,t];case 2:return i.sent(),[2]}})})},e.prototype.subscribeWaitForRemote=function(e,t){return(0,f.sH)(this,void 0,void 0,function(){var n,r;return(0,f.YH)(this,function(o){switch(o.label){case 0:n=new Promise(function(e,n){setTimeout(function(){n("Timeout exceeded")},t)}),o.label=1;case 1:return o.trys.push([1,3,,5]),[4,Promise.race([this.getOrCreateFetchPromise(),n])];case 2:return r=o.sent(),this.logger.debug("Remote config client subscription wait for remote mode returns from remote."),this.sendCallback(e,r,"remote"),this.storage.setConfig(r),[3,5];case 3:return o.sent(),this.logger.debug("Remote config client subscription wait for remote mode exceeded timeout. Try to fetch from cache."),[4,this.storage.fetchConfig()];case 4:return null!==(r=o.sent()).remoteConfig?(this.logger.debug("Remote config client subscription wait for remote mode returns a cached copy."),this.sendCallback(e,r,"cache")):(this.logger.debug("Remote config client subscription wait for remote mode failed to fetch cache."),this.sendCallback(e,r,"remote")),[3,5];case 5:return[2]}})})},e.prototype.sendCallback=function(e,t,n){var r;e.lastCallback=new Date,r=e.key?e.key.split(".").reduce(function(e,t){return null===e?e:t in e?e[t]:null},t.remoteConfig):t.remoteConfig,e.callback(r,n,t.lastFetch)},e.prototype.fetch=function(e,t){return void 0===e&&(e=3),void 0===t&&(t=1e3),(0,f.sH)(this,void 0,void 0,function(){var n,r,o,i,a,s,u=this;return(0,f.YH)(this,function(c){switch(c.label){case 0:n=t/e,r={remoteConfig:null,lastFetch:new Date},o=function(r){var o,a,s,c,l,d;return(0,f.YH)(this,function(f){switch(f.label){case 0:o=!0,a=new AbortController,s=setTimeout(function(){return a.abort()},t),f.label=1;case 1:return f.trys.push([1,7,8,9]),[4,fetch(i.getUrlParams(),{method:"GET",headers:{Accept:"*/*"},signal:a.signal})];case 2:return(c=f.sent()).ok?[3,4]:[4,c.text()];case 3:return l=f.sent(),i.logger.debug("Remote config client fetch with retry time ".concat(e," failed with ").concat(c.status,": ").concat(l)),c.status===k||c.status===O?(i.logger.error("Remote config client fetch failed with ".concat(c.status,". Invalid API key; future fetches will be skipped.")),i.isLastFetchInvalidApiKey=!0,o=!1):c.status>=400&&c.status<500&&c.status!==P&&(o=!1),[3,6];case 4:return[4,c.json()];case 5:return[2,{value:{remoteConfig:f.sent(),lastFetch:new Date}}];case 6:return[3,9];case 7:return(d=f.sent())instanceof Error&&"AbortError"===d.name?i.logger.debug("Remote config client fetch with retry time ".concat(e," timed out after ").concat(t,"ms")):i.logger.debug("Remote config client fetch with retry time ".concat(e," is rejected because: "),d),[3,9];case 8:return clearTimeout(s),[7];case 9:return o?r<e-1?[4,new Promise(function(e){return setTimeout(e,u.getJitterDelay(n))})]:[3,11]:[2,"break"];case 10:f.sent(),f.label=11;case 11:return[2]}})},i=this,a=0,c.label=1;case 1:return a<e?[5,o(a)]:[3,4];case 2:if("object"==typeof(s=c.sent()))return[2,s.value];if("break"===s)return[3,4];c.label=3;case 3:return a++,[3,1];case 4:return[2,r]}})})},e.prototype.getJitterDelay=function(e){return Math.floor(Math.random()*e)},e.prototype.getUrlParams=function(){var t=encodeURIComponent(this.apiKey),n=new URLSearchParams;return n.append("config_group",e.CONFIG_GROUP),"".concat(this.serverUrl,"/").concat(t,"?").concat(n.toString())},e.CONFIG_GROUP="browser",e}(),T="tags",_="counters",R="histograms",I="events",j="internal",D="last_flush_timestamp",N=function(){function e(e,t){this.dbPromise=null,this.logger=t,this.dbName="AMP_diagnostics_".concat(e.substring(0,10))}return e.isSupported=function(){var e;return void 0!==(null===(e=E())||void 0===e?void 0:e.indexedDB)},e.prototype.getDB=function(){return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(e){return this.dbPromise||(this.dbPromise=this.openDB()),[2,this.dbPromise]})})},e.prototype.openDB=function(){var e=this;return new Promise(function(t,n){var r=indexedDB.open(e.dbName,1);r.onerror=function(){e.dbPromise=null,n(new Error("Failed to open IndexedDB"))},r.onsuccess=function(){var n=r.result;
vendor: 15,566 bytes, line 2
2n.onclose=function(){e.dbPromise=null,e.logger.debug("DiagnosticsStorage: DB connection closed.")},n.onerror=function(t){e.logger.debug("DiagnosticsStorage: A global database error occurred.",t),n.close()},t(n)},r.onupgradeneeded=function(t){var n=t.target.result;e.createTables(n)}})},e.prototype.createTables=function(e){(e.objectStoreNames.contains(T)||e.createObjectStore(T,{keyPath:"key"}),e.objectStoreNames.contains(_)||e.createObjectStore(_,{keyPath:"key"}),e.objectStoreNames.contains(R)||e.createObjectStore(R,{keyPath:"key"}),e.objectStoreNames.contains(I))||e.createObjectStore(I,{keyPath:"id",autoIncrement:!0}).createIndex("time_idx","time",{unique:!1});e.objectStoreNames.contains(j)||e.createObjectStore(j,{keyPath:"key"})},e.prototype.setTags=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t,n,r,o,i=this;return(0,f.YH)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),0===Object.entries(e).length?[2]:[4,this.getDB()];case 1:return t=a.sent(),n=t.transaction([T],"readwrite"),r=n.objectStore(T),[2,new Promise(function(t){var o=Object.entries(e);n.oncomplete=function(){t()},n.onabort=function(e){i.logger.debug("DiagnosticsStorage: Failed to set tags",e),t()},o.forEach(function(e){var t=(0,f.zs)(e,2),n=t[0],o=t[1];r.put({key:n,value:o}).onerror=function(e){i.logger.debug("DiagnosticsStorage: Failed to set tag",n,o,e)}})})];case 2:return o=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to set tags",o),[3,3];case 3:return[2]}})})},e.prototype.incrementCounters=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t,n,r,o,i=this;return(0,f.YH)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),0===Object.entries(e).length?[2]:[4,this.getDB()];case 1:return t=a.sent(),n=t.transaction([_],"readwrite"),r=n.objectStore(_),[2,new Promise(function(t){var o=Object.entries(e);n.oncomplete=function(){t()},n.onabort=function(e){i.logger.debug("DiagnosticsStorage: Failed to increment counters",e),t()},o.forEach(function(e){var t=(0,f.zs)(e,2),n=t[0],o=t[1],a=r.get(n);a.onsuccess=function(){var e=a.result,t=e?e.value:0;r.put({key:n,value:t+o}).onerror=function(e){i.logger.debug("DiagnosticsStorage: Failed to update counter",n,e)}},a.onerror=function(e){i.logger.debug("DiagnosticsStorage: Failed to read existing counter",n,e)}})})];case 2:return o=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to increment counters",o),[3,3];case 3:return[2]}})})},e.prototype.setHistogramStats=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t,n,r,o,i=this;return(0,f.YH)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),0===Object.entries(e).length?[2]:[4,this.getDB()];case 1:return t=a.sent(),n=t.transaction([R],"readwrite"),r=n.objectStore(R),[2,new Promise(function(t){var o=Object.entries(e);n.oncomplete=function(){t()},n.onabort=function(e){i.logger.debug("DiagnosticsStorage: Failed to set histogram stats",e),t()},o.forEach(function(e){var t=(0,f.zs)(e,2),n=t[0],o=t[1],a=r.get(n);a.onsuccess=function(){var e,t=a.result;e=t?{key:n,count:t.count+o.count,min:Math.min(t.min,o.min),max:Math.max(t.max,o.max),sum:t.sum+o.sum}:{key:n,count:o.count,min:o.min,max:o.max,sum:o.sum},r.put(e).onerror=function(e){i.logger.debug("DiagnosticsStorage: Failed to set histogram stats",n,e)}},a.onerror=function(e){i.logger.debug("DiagnosticsStorage: Failed to read existing histogram stats",n,e)}})})];case 2:return o=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to set histogram stats",o),[3,3];case 3:return[2]}})})},e.prototype.addEventRecords=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t,n,r,o,i=this;return(0,f.YH)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),0===e.length?[2]:[4,this.getDB()];case 1:return t=a.sent(),n=t.transaction([I],"readwrite"),r=n.objectStore(I),[2,new Promise(function(t){n.oncomplete=function(){t()},n.onabort=function(e){i.logger.debug("DiagnosticsStorage: Failed to add event records",e),t()};var o=r.count();o.onsuccess=function(){var t=o.result,n=Math.max(0,10-t);n<e.length&&i.logger.debug("DiagnosticsStorage: Only added ".concat(n," of ").concat(e.length," events due to storage limit")),e.slice(0,n).forEach(function(e){r.add(e).onerror=function(e){i.logger.debug("DiagnosticsStorage: Failed to add event record",e)}})},o.onerror=function(e){i.logger.debug("DiagnosticsStorage: Failed to count existing events",e)}})];case 2:return o=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to add event records",o),[3,3];case 3:return[2]}})})},e.prototype.setInternal=function(e,t){return(0,f.sH)(this,void 0,void 0,function(){var n,r,o,i;return(0,f.YH)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.getDB()];case 1:return n=a.sent(),r=n.transaction([j],"readwrite"),o=r.objectStore(j),[2,new Promise(function(n,i){r.onabort=function(){return i(new Error("Failed to set internal value"))};var a=o.put({key:e,value:t});a.onsuccess=function(){return n()},a.onerror=function(){return i(new Error("Failed to set internal value"))}})];case 2:return i=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to set internal value",i),[3,3];case 3:return[2]}})})},e.prototype.getInternal=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t,n,r,o;return(0,f.YH)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.getDB()];case 1:return t=i.sent(),n=t.transaction([j],"readonly"),r=n.objectStore(j),[2,new Promise(function(t,o){n.onabort=function(){return o(new Error("Failed to get internal value"))};var i=r.get(e);i.onsuccess=function(){return t(i.result)},i.onerror=function(){return o(new Error("Failed to get internal value"))}})];case 2:return o=i.sent(),this.logger.debug("DiagnosticsStorage: Failed to get internal value",o),[2,void 0];case 3:return[2]}})})},e.prototype.getLastFlushTimestamp=function(){return(0,f.sH)(this,void 0,void 0,function(){var e,t;return(0,f.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getInternal(D)];case 1:return[2,(e=n.sent())?parseInt(e.value,10):void 0];case 2:return t=n.sent(),this.logger.debug("DiagnosticsStorage: Failed to get last flush timestamp",t),[2,void 0];case 3:return[2]}})})},e.prototype.setLastFlushTimestamp=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t;return(0,f.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.setInternal(D,e.toString())];case 1:return n.sent(),[3,3];case 2:return t=n.sent(),this.logger.debug("DiagnosticsStorage: Failed to set last flush timestamp",t),[3,3];case 3:return[2]}})})},e.prototype.clearTable=function(e,t){return new Promise(function(n,r){var o=e.objectStore(t).clear();o.onsuccess=function(){return n()},o.onerror=function(){return r(new Error("Failed to clear table ".concat(t)))}})},e.prototype.getAllAndClear=function(){return(0,f.sH)(this,void 0,void 0,function(){var e,t,n,r,o,i,a,s;return(0,f.YH)(this,function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),[4,this.getDB()];case 1:return e=u.sent(),t=e.transaction([T,_,R,I],"readwrite"),[4,Promise.all([this.getAllFromStore(t,T),this.getAllFromStore(t,_),this.getAllFromStore(t,R),this.getAllFromStore(t,I)])];case 2:return n=f.zs.apply(void 0,[u.sent(),4]),r=n[0],o=n[1],i=n[2],a=n[3],[4,Promise.all([this.clearTable(t,_),this.clearTable(t,R),this.clearTable(t,I)])];case 3:return u.sent(),[2,{tags:r,counters:o,histogramStats:i,events:a}];case 4:return s=u.sent(),this.logger.debug("DiagnosticsStorage: Failed to get all and clear data",s),[2,{tags:[],counters:[],histogramStats:[],events:[]}];case 5:return[2]}})})},e.prototype.getAllFromStore=function(e,t){return new Promise(function(n,r){var o=e.objectStore(t).getAll();o.onsuccess=function(){return n(o.result)},o.onerror=function(){return r(new Error("Failed to get all from ".concat(t)))}})},e}(),U=function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t|=0}return t},L=function(e,t){var n=U(e.toString());return 31*Math.abs(n)%1e5/1e5<t},M="__AMPLITUDE_SCRIPT_URL__",H=function(){var e=E();if(!e)return[];var t=e[M];return Array.isArray(t)?t:"string"==typeof t?[t]:[]},F=function(e){var t,n,r=H();if(0!==r.length)try{for(var o=(0,f.Ju)(r),i=o.next();!i.done;i=o.next()){var a=i.value;if(e.filename&&e.filename.includes(a))return"filename";if(e.stack&&e.stack.includes(a))return"stack"}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},q=function(e){if(e){var t=e.match(/(https?:\/\/\S+?)(?=[)\s]|$)/);return t?t[1]:void 0}},B=function(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch(zn){return"[object Object]"}},z=3e5,Y=1e4,W=function(){function e(e,t,n,r){void 0===n&&(n="US"),this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},this.inMemoryEvents=[],this.saveTimer=null,this.flushTimer=null,this.apiKey=e,this.logger=t,this.serverUrl="US"===n?"https://diagnostics.prod.us-west-2.amplitude.com/v1/capture":"https://diagnostics.prod.eu-central-1.amplitude.com/v1/capture",this.logger.debug("DiagnosticsClient: Initializing with options",JSON.stringify(r,null,2)),this.config=(0,f.Cl)({enabled:!0,sampleRate:0},r),this.startTimestamp=Date.now(),this.shouldTrack=L(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,N.isSupported()?this.storage=new N(e,t):this.logger.debug("DiagnosticsClient: IndexedDB is not supported"),this.initializeFlushInterval(),this.shouldTrack&&(this.increment("sdk.diagnostics.sampled.in.and.enabled"),function(e){var t=E();if(t&&"function"==typeof t.addEventListener){var n=function(t){e.recordEvent("sdk.error.uncaught",(0,f.Cl)({type:t.type,message:t.message,filename:t.filename,error_name:t.errorName,stack:t.stack},t.metadata))};t.addEventListener("error",function(e){var t=e.error instanceof Error?e.error:void 0,r=null==t?void 0:t.stack,o=F({filename:e.filename,stack:r});o&&n({type:"error",message:e.message,stack:r,filename:e.filename,errorName:null==t?void 0:t.name,metadata:{colno:e.colno,lineno:e.lineno,isTrusted:e.isTrusted,matchReason:o}})},!0),t.addEventListener("unhandledrejection",function(e){var t,r=e.reason instanceof Error?e.reason:void 0,o=null==r?void 0:r.stack,i=q(o),a=F({filename:i,stack:o});a&&n({type:"unhandledrejection",message:null!==(t=null==r?void 0:r.message)&&void 0!==t?t:B(e.reason),stack:o,filename:i,errorName:null==r?void 0:r.name,metadata:{isTrusted:e.isTrusted,matchReason:a}})},!0)}}(this))}return e.prototype.isStorageAndTrackEnabled=function(){return Boolean(this.storage)&&Boolean(this.shouldTrack)},e.prototype.setTag=function(e,t){this.isStorageAndTrackEnabled()&&(Object.keys(this.inMemoryTags).length>=Y?this.logger.debug("DiagnosticsClient: Early return setTags as reaching memory limit"):(this.inMemoryTags[e]=t,this.startTimersIfNeeded()))},e.prototype.increment=function(e,t){void 0===t&&(t=1),this.isStorageAndTrackEnabled()&&(Object.keys(this.inMemoryCounters).length>=Y?this.logger.debug("DiagnosticsClient: Early return increment as reaching memory limit"):(this.inMemoryCounters[e]=(this.inMemoryCounters[e]||0)+t,this.startTimersIfNeeded()))},e.prototype.recordHistogram=function(e,t){if(this.isStorageAndTrackEnabled())if(Object.keys(this.inMemoryHistograms).length>=Y)this.logger.debug("DiagnosticsClient: Early return recordHistogram as reaching memory limit");else{var n=this.inMemoryHistograms[e];n?(n.count+=1,n.min=Math.min(n.min,t),n.max=Math.max(n.max,t),n.sum+=t):this.inMemoryHistograms[e]={count:1,min:t,max:t,sum:t},this.startTimersIfNeeded()}},e.prototype.recordEvent=function(e,t){this.isStorageAndTrackEnabled()&&(this.inMemoryEvents.length>=10?this.logger.debug("DiagnosticsClient: Early return recordEvent as reaching memory limit"):(this.inMemoryEvents.push({event_name:e,time:Date.now(),event_properties:t}),this.startTimersIfNeeded()))},e.prototype.startTimersIfNeeded=function(){var e=this;this.saveTimer||(this.saveTimer=setTimeout(function(){e.saveAllDataToStorage().catch(function(t){e.logger.debug("DiagnosticsClient: Failed to save all data to storage",t)}).finally(function(){e.saveTimer=null})},1e3)),this.flushTimer||(this.flushTimer=setTimeout(function(){e._flush().catch(function(t){e.logger.debug("DiagnosticsClient: Failed to flush",t)}).finally(function(){e.flushTimer=null})},z))},e.prototype.saveAllDataToStorage=function(){return(0,f.sH)(this,void 0,void 0,function(){var e,t,n,r;return(0,f.YH)(this,function(o){switch(o.label){case 0:return this.storage?(e=(0,f.Cl)({},this.inMemoryTags),t=(0,f.Cl)({},this.inMemoryCounters),n=(0,f.Cl)({},this.inMemoryHistograms),r=(0,f.fX)([],(0,f.zs)(this.inMemoryEvents),!1),this.inMemoryEvents=[],this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},[4,Promise.all([this.storage.setTags(e),this.storage.incrementCounters(t),this.storage.setHistogramStats(n),this.storage.addEventRecords(r)])]):[2];case 1:return o.sent(),[2]}})})},e.prototype._flush=function(){return(0,f.sH)(this,void 0,void 0,function(){var e,t,n,r,o,i,a,s,u,c;return(0,f.YH)(this,function(l){switch(l.label){case 0:return this.storage?[4,this.saveAllDataToStorage()]:[2];case 1:return l.sent(),this.saveTimer=null,this.flushTimer=null,[4,this.storage.getAllAndClear()];case 2:return e=l.sent(),t=e.tags,n=e.counters,r=e.histogramStats,o=e.events,this.storage.setLastFlushTimestamp(Date.now()),i={},t.forEach(function(e){i[e.key]=e.value}),a={},n.forEach(function(e){a[e.key]=e.value}),s={},r.forEach(function(e){s[e.key]={count:e.count,min:e.min,max:e.max,avg:Math.round(e.sum/e.count*100)/100}}),u=o.map(function(e){return{event_name:e.event_name,time:e.time,event_properties:e.event_properties}}),0===Object.keys(a).length&&0===Object.keys(s).length&&0===u.length?[2]:(c={tags:i,histogram:s,counters:a,events:u},this.fetch(c),[2])}})})},e.prototype.fetch=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t;return(0,f.YH)(this,function(n){switch(n.label){case 0:if(n.trys.push([0,2,,3]),!E())throw new Error("DiagnosticsClient: Fetch is not supported");return[4,fetch(this.serverUrl,{method:"POST",headers:{"X-ApiKey":this.apiKey,"Content-Type":"application/json"},body:JSON.stringify(e)})];case 1:return n.sent().ok?(this.logger.debug("DiagnosticsClient: Successfully sent diagnostics data"),[3,3]):(this.logger.debug("DiagnosticsClient: Failed to send diagnostics data."),[2]);case 2:return t=n.sent(),this.logger.debug("DiagnosticsClient: Failed to send diagnostics data. ",t),[3,3];case 3:return[2]}})})},e.prototype.initializeFlushInterval=function(){return(0,f.sH)(this,void 0,void 0,function(){var e,t,n;return(0,f.YH)(this,function(r){switch(r.label){case 0:return this.storage?(e=Date.now(),[4,this.storage.getLastFlushTimestamp()]):[2];case 1:return-1===(t=r.sent()||-1)?(this.storage.setLastFlushTimestamp(e),this._setFlushTimer(z),[2]):(n=e-t)>=z?(this._flush(),[2]):(this._setFlushTimer(z-n),[2])}})})},e.prototype._setFlushTimer=function(e){var t=this;this.flushTimer=setTimeout(function(){t._flush().catch(function(e){t.logger.debug("DiagnosticsClient: Failed to flush",e)}).finally(function(){t.flushTimer=null})},e)},e.prototype._setSampleRate=function(e){this.logger.debug("DiagnosticsClient: Setting sample rate to",e),this.config.sampleRate=e,this.shouldTrack=L(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,this.logger.debug("DiagnosticsClient: Should track is",this.shouldTrack)},e}(),J=function(){var e,t=E();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(
vendor: 4,792 bytes, line 2
2Boolean).reduce(function(e,t){var n=t.split("=",2),r=V(n[0]),o=V(n[1]);return o?(e[r]=o,e):e},{}):{}},V=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(zn){return""}},G=(n(33975),function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:K(),platform:"Web",os:void 0,deviceModel:void 0}},e}()),K=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},X=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),$=function(){return $=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$.apply(this,arguments)};function Q(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 new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var ee=function(e,t){var n,r,o=typeof e;if(o!==typeof t)return!1;try{for(var i=Q(["string","number","boolean","undefined"]),a=i.next();!a.done;a=i.next()){if(a.value===o)return e===t}}catch(p){n={error:p}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}if(null==e&&null==t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;var s=Array.isArray(e),u=Array.isArray(t);if(s!==u)return!1;if(!s||!u){var c=Object.keys(e).sort(),l=Object.keys(t).sort();if(!ee(c,l))return!1;var f=!0;return Object.keys(e).forEach(function(n){ee(e[n],t[n])||(f=!1)}),f}for(var d=0;d<e.length;d++)if(!ee(e[d],t[d]))return!1;return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var te,ne=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=$({},this.identity.userProperties),n=$($({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},setOptOut:function(e){return n.optOut=e,this},updateUserProperties:function(e){var t,r,o,i,a,s,u=n.userProperties||{};try{for(var c=Q(Object.entries(e)),l=c.next();!l.done;l=c.next()){var f=Z(l.value,2),d=f[0],p=f[1];switch(d){case"$set":try{for(var v=(o=void 0,Q(Object.entries(p))),h=v.next();!h.done;h=v.next()){var g=Z(h.value,2),m=g[0],y=g[1];u[m]=y}}catch(E){o={error:E}}finally{try{h&&!h.done&&(i=v.return)&&i.call(v)}finally{if(o)throw o.error}}break;case"$unset":try{for(var b=(a=void 0,Q(Object.keys(p))),w=b.next();!w.done;w=b.next()){delete u[m=w.value]}}catch(S){a={error:S}}finally{try{w&&!w.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}break;case"$clearAll":u={}}}}catch(x){t={error:x}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}return n.userProperties=u,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return $({},this.identity)},e.prototype.setIdentity=function(e){var t=$({},this.identity);this.identity=$({},e),ee(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),re="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:self,oe=function(){function e(){this.identityStore=new ne,this.eventBridge=new X,this.applicationContextProvider=new G}return e.getInstance=function(t){return re.analyticsConnectorInstances||(re.analyticsConnectorInstances={}),re.analyticsConnectorInstances[t]||(re.analyticsConnectorInstances[t]=new e),re.analyticsConnectorInstances[t]},e}(),ie="AMP",ae="".concat(ie,"_unsent"),se="$default_instance",ue="https://api2.amplitude.com/2/httpapi",ce="https://api.eu.amplitude.com/2/httpapi",le="https://api2.amplitude.com/batch",fe="https://api.eu.amplitude.com/batch",de="dclid",pe="fbclid",ve="gbraid",he="gclid",ge="ko_click_id",me="li_fat_id",ye="msclkid",be="rdt_cid",we="ttclid",Ee="twcli
vendor: 4,487 bytes, line 2
2d",Se="wbraid",xe={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rdt_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},Ae=["access-control-allow-origin","access-control-allow-credentials","access-control-expose-headers","access-control-max-age","access-control-allow-methods","access-control-allow-headers","accept-patch","accept-ranges","age","allow","alt-svc","cache-control","connection","content-disposition","content-encoding","content-language","content-length","content-location","content-md5","content-range","content-type","date","delta-base","etag","expires","im","last-modified","link","location","permanent","p3p","pragma","proxy-authenticate","public-key-pins","retry-after","server","status","strict-transport-security","trailer","transfer-encoding","tk","upgrade","vary","via","warning","www-authenticate","x-b3-traceid","x-frame-options"],ke=["authorization","cookie","set-cookie"],Oe=function(e){return void 0===e&&(e=se),oe.getInstance(e)};n(11264),n(95483);!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"}(te||(te={}));var Pe=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=te.Unknown),{event:e,code:t,message:n}},Ce=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:se,logLevel:r.Warn,loggerProvider:new b,offline:!1,optOut:!1,serverUrl:ue,serverZone:"US",useBatch:!1}},Te=function(){function e(e){var t,n,r,o;this._optOut=!1;var i=Ce();this.apiKey=e.apiKey,this.flushIntervalMillis=null!==(t=e.flushIntervalMillis)&&void 0!==t?t:i.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||i.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||i.flushQueueSize,this.instanceName=e.instanceName||i.instanceName,this.loggerProvider=e.loggerProvider||i.loggerProvider,this.logLevel=null!==(n=e.logLevel)&&void 0!==n?n:i.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:i.offline,this.optOut=null!==(r=e.optOut)&&void 0!==r?r:i.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||i.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!==(o=e.useBatch)&&void 0!==o?o:i.useBatch,this.loggerProvider.enable(this.logLevel);var a=Re(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:!1,configurable:!0}),e}(),_e=function(e,t){return"EU"===e?t?fe:ce:t?le:ue},Re=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=Ce().serverZone),void 0===n&&(n=Ce().useBatch),e)return{serverUrl:e,serverZone:void 0};var r=["US","EU"].includes(t)?t:Ce().serverZone;return{serverZone:r,serverUrl:_e(r,n)}},Ie=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}();function je(e){return e>=200&&e<300}var De=new Set([ue,ce,le,fe]);function Ne(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(zn){}return t}var Ue,Le=function(){function e(e){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[],this.diagnosticsClient=null==e?void 0:e.diagnosticsClient}return e.prototype.setup=function(e){var t;return(0,f.sH)(this,void 0,void 0,function(){var n,r=this;return(0,f.YH)(this,function(o){switch(o.label){case 0:return this.config=e,this.storageKey="".concat(ae,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return(n=o.sent())&&n.length>0&&Promise.all(n.map(function(e){return r.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=A()),new Promise(function(n){var r={event:e,attempts:0,callback:function(e){return n(e)},timeout:0};t.queue.push(r),t.schedule(t.config.flushIntervalMillis),t.saveEvents()})}
vendor: 18,585 bytes, line 2
2,e.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter(function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,"Event rejected due to exceeded retry count"),!1)})},e.prototype.scheduleEvents=function(e){var t=this;e.forEach(function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)})},e.prototype.schedule=function(e){var t=this;if(!this.config.offline)return null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout?(this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,void(this.scheduleId=setTimeout(function(){t.queue=t.queue.map(function(e){return e.timeout=0,e}),t.flush(!0)},e))):void 0},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,f.sH)(this,void 0,void 0,function(){var t,n,r=this;return(0,f.YH)(this,function(o){switch(o.label){case 0:return this.config.offline?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2]):this.flushId?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2]):(this.flushId=this.scheduleId,this.resetSchedule(),t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),i=t,a=this.config.flushQueueSize,s=Math.max(a,1),[4,i.reduce(function(e,t,n){var r=Math.floor(n/s);return e[r]||(e[r]=[]),e[r].push(t),e},[]).reduce(function(t,n){return(0,f.sH)(r,void 0,void 0,function(){return(0,f.YH)(this,function(r){switch(r.label){case 0:return[4,t];case 1:return r.sent(),[4,this.send(n,e)];case 2:return[2,r.sent()]}})})},Promise.resolve())]);case 1:return o.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}var i,a,s})})},e.prototype.send=function(e,t){var n;return void 0===t&&(t=!0),(0,f.sH)(this,void 0,void 0,function(){var r,o,i,a,s,u;return(0,f.YH)(this,function(c){switch(c.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];r={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;t.extra;return(0,f.Tt)(t,["extra"])}),options:{min_id_length:this.config.minIdLength},client_upload_time:(new Date).toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new Ie,c.label=1;case 1:return c.trys.push([1,3,,4]),o=Re(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,i=function(e,t){return void 0===t&&(t=!1),!!De.has(e)||t}(o,this.config.enableRequestBodyCompression),[4,this.config.transportProvider.send(o,r,i)];case 2:return null===(a=c.sent())?(this.fulfillRequest(e,0,"Unexpected error occurred"),[2]):t?(this.handleResponse(a,e),[3,4]):("body"in a?this.fulfillRequest(e,a.statusCode,"".concat(a.status,": ").concat(Ne(a))):this.fulfillRequest(e,a.statusCode,a.status),[2]);case 3:return s=c.sent(),u=(l=s)instanceof Error?l.message:String(l),this.config.loggerProvider.error(u),null===(n=this.diagnosticsClient)||void 0===n||n.recordEvent("analytics.events.unsuccessful.from.catch.error",{events:e.map(function(e){return e.event.event_type}),message:u,stack_trace:d()}),this.handleResponse({status:te.Failed,statusCode:0},e),[3,4];case 4:return[2]}var l})})},e.prototype.handleResponse=function(e,t){var n;je(e.statusCode)||null===(n=this.diagnosticsClient)||void 0===n||n.recordEvent("analytics.events.unsuccessful",{events:t.map(function(e){return e.event.event_type}),code:e.statusCode,status:e.status,body:Ne(e),stack_trace:d()});var r=e.status;switch(r){case te.Success:this.handleSuccessResponse(e,t);break;case te.Invalid:this.handleInvalidResponse(e,t);break;case te.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case te.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(r,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var n=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key"))this.fulfillRequest(t,e.statusCode,e.body.error);else{var r=(0,f.fX)((0,f.fX)((0,f.fX)((0,f.fX)([],(0,f.zs)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,f.zs)(Object.values(e.body.eventsWithMissingFields)),!1),(0,f.zs)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,f.zs)(e.body.silencedEvents),!1).flat(),o=new Set(r),i=t.filter(function(t,r){if(!o.has(r))return!0;n.fulfillRequest([t],e.statusCode,e.body.error)});i.length>0&&this.config.loggerProvider.warn(Ne(e));var a=this.removeEventsExceedFlushMaxRetries(i);this.scheduleEvents(a)}},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1!==t.length){this.config.loggerProvider.warn(Ne(e)),this.config.flushQueueSize/=2;var n=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(n)}else this.fulfillRequest(t,e.statusCode,e.body.error)},e.prototype.handleRateLimitResponse=function(e,t){var n=this,r=Object.keys(e.body.exceededDailyQuotaUsers),o=Object.keys(e.body.exceededDailyQuotaDevices),i=e.body.throttledEvents,a=new Set(r),s=new Set(o),u=new Set(i),c=t.filter(function(t,r){if(!(t.event.user_id&&a.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)))return u.has(r)&&(t.timeout=n.throttleTimeout),!0;n.fulfillRequest([t],e.statusCode,e.body.error)});c.length>0&&this.config.loggerProvider.warn(Ne(e));var l=this.removeEventsExceedFlushMaxRetries(c);this.scheduleEvents(l)},e.prototype.handleOtherResponse=function(e){var t=this,n=e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e}),r=this.removeEventsExceedFlushMaxRetries(n);this.scheduleEvents(r)},e.prototype.fulfillRequest=function(e,t,n){var r,o,i;je(t)?null===(i=this.diagnosticsClient)||void 0===i||i.increment("analytics.events.sent",e.length):(null===(r=this.diagnosticsClient)||void 0===r||r.increment("analytics.events.dropped",e.length),null===(o=this.diagnosticsClient)||void 0===o||o.recordEvent("analytics.events.dropped",{events:e.map(function(e){return e.event.event_type}),code:t,message:n,stack_trace:d()})),this.removeEvents(e),e.forEach(function(e){return e.callback(Pe(e.event,t,n))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map(function(e){return e.event});this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter(function(t){return!e.some(function(e){return e.event.insert_id===t.event.insert_id})}),this.saveEvents()},e}(),Me=function(){function e(){this.name="identity",this.type="before",this.identityStore=Oe().identityStore}return e.prototype.execute=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t;return(0,f.YH)(this,function(n){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(t){return e.instanceName&&(this.identityStore=Oe(e.instanceName).identityStore),[2]})})},e}(),He=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var n=e[t];if(!Fe(t,n))return!1}return!0},Fe=function(e,t){var n,r;if("string"!=typeof e)return!1;if(Array.isArray(t)){var o=!0;try{for(var i=(0,f.Ju)(t),a=i.next();!a.done;a=i.next()){var s=a.value;if(Array.isArray(s))return!1;if("object"==typeof s)o=o&&He(s);else if(!["number","string"].includes(typeof s))return!1;if(!o)return!1}}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}else{if(null==t)return!1;if("object"==typeof t)return He(t);if(!["number","string","boolean"].includes(typeof t))return!1}return!0},qe=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,f.Cl)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(Ue.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(Ue.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(Ue.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(Ue.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(Ue.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(Ue.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(Ue.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(Ue.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(Ue.UNSET,e,"-"),this},e.prototype.clearAll=function(){return this._properties={},this._properties[Ue.CLEAR_ALL]="-",this},e.prototype._safeSet=function(e,t,n){if(this._validate(e,t,n)){var r=this._properties[e];return void 0===r&&(r={},this._properties[e]=r),r[t]=n,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,n){return void 0===this._properties[Ue.CLEAR_ALL]&&(!this._propertySet.has(t)&&(e===Ue.ADD?"number"==typeof n:e===Ue.UNSET||e===Ue.REMOVE||Fe(t,n)))},e}();!function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(Ue||(Ue={}));var Be,ze,Ye=[Ue.CLEAR_ALL,Ue.UNSET,Ue.SET,Ue.SET_ONCE,Ue.ADD,Ue.APPEND,Ue.PREPEND,Ue.PREINSERT,Ue.POSTINSERT,Ue.REMOVE];!function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(Be||(Be={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(ze||(ze={}));var We,Je=function(e,t){return(0,f.Cl)((0,f.Cl)({},t),{event_type:ze.IDENTIFY,user_properties:e.getUserProperties()})},Ve=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setReceipt=function(e){return this.receipt=e,this},e.prototype.setReceiptSig=function(e){return this.receiptSig=e,this},e.prototype.setEventProperties=function(e){try{var t=JSON.parse(JSON.stringify(e));He(t)&&(this.properties=t)}catch(zn){}return this},e.prototype.getEventProperties=function(){var e=this.properties?(0,f.Cl)({},this.properties):{};return e[We.REVENUE_PRODUCT_ID]=this.productId,e[We.REVENUE_QUANTITY]=this.quantity,e[We.REVENUE_PRICE]=this.price,e[We.REVENUE_TYPE]=this.revenueType,e[We.REVENUE_CURRENCY]=this.currency,e[We.REVENUE]=this.revenue,e[We.RECEIPT]=this.receipt,e[We.RECEIPT_SIG]=this.receiptSig,e},e}();!function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue",e.RECEIPT="$receipt",e.RECEIPT_SIG="$receiptSig"}(We||(We={}));var Ge=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e},Ke=n(48550),Xe=n.n(Ke)()||Ke,$e=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[],this.pluginStatus=new Map,this._optOutListeners=[]}return e.prototype.register=function(e,t){var n,r;return(0,f.sH)(this,void 0,void 0,function(){var o;return(0,f.YH)(this,function(i){switch(i.label){case 0:return void 0===e.name&&(e.name=A(),this.loggerProvider.warn("Plugin name is undefined.\n Generating a random UUID for plugin name: ".concat(e.name,".\n Set a name for the plugin to prevent it from being added multiple times."))),o=e.name,this.pluginStatus.has(o)?(this.loggerProvider.warn("Plugin with name ".concat(o," already exists, skipping registration")),[2]):(e.type=null!==(n=e.type)&&void 0!==n?n:"enrichment",this.pluginStatus.set(o,"locked"),[4,null===(r=e.setup)||void 0===r?void 0:r.call(e,t,this.client)]);case 1:return i.sent(),"locked"!==this.pluginStatus.get(o)?[2]:(this.plugins.push(e),this.pluginStatus.set(o,"installed"),[2])}})})},e.prototype.deregister=function(e,t){var n;return(0,f.sH)(this,void 0,void 0,function(){var r,o;return(0,f.YH)(this,function(i){switch(i.label){case 0:return this.pluginStatus.delete(e),r=this.plugins.findIndex(function(t){return t.name===e}),-1===r?(t.loggerProvider.warn("Plugin with name ".concat(e," does not exist, skipping deregistration")),[2]):(o=this.plugins[r],this.plugins.splice(r,1),[4,null===(n=o.teardown)||void 0===n?void 0:n.call(o)]);case 1:return i.sent(),[2]}})})},e.prototype.reset=function(e){this._clearOptOutListeners(),this.applying=!1,this.plugins.map(function(e){var t;return null===(t=e.teardown)||void 0===t?void 0:t.call(e)}),this.plugins=[],this.pluginStatus.clear(),this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(n){t.queue.push([e,n]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t,n,r,o,i,a,s,u,c,l,d,p,v,h,g,m,y,b,w,E;return(0,f.YH)(this,function(S){switch(S.label){case 0:if(!e)return[2];t=(0,f.zs)(e,1),n=t[0],r=(0,f.zs)(e,2),o=r[1],this.loggerProvider.log("Timeline.apply: Initial event",n),i=this.plugins.filter(function(e){return"before"===e.type}),S.label=1;case 1:S.trys.push([1,6,7,8]),a=(0,f.Ju)(i),s=a.next(),S.label=2;case 2:return s.done?[3,5]:(p=s.value).execute?[4,p.execute((0,f.Cl)({},n))]:[3,4];case 3:if(null===(v=S.sent()))return this.loggerProvider.log("Timeline.apply: Event filtered out by before plugin '".concat(String(p.name),"', event: ").concat(JSON.stringify(n))),o({event:n,code:0,message:""}),[2];n=v,this.loggerProvider.log("Timeline.apply: Event after before plugin '".concat(String(p.name),"', event: ").concat(JSON.stringify(n))),S.label=4;case 4:return s=a.next(),[3,2];case 5:return[3,8];case 6:return u=S.sent(),y={error:u},[3,8];case 7:try{s&&!s.done&&(b=a.return)&&b.call(a)}finally{if(y)throw y.error}return[7];case 8:c=this.plugins.filter(function(e){return"enrichment"===e.type||void 0===e.type}),S.label=9;case 9:S.trys.push([9,14,15,16]),l=(0,f.Ju)(c),d=l.next(),S.label=10;case 10:return d.done?[3,13]:(p=d.value).execute?[4,p.execute((0,f.Cl)({},n))]:[3,12];case 11:if(null===(v=S.sent()))return this.loggerProvider.log("Timeline.apply: Event filtered out by enrichment plugin '".concat(String(p.name),"', event: ").concat(JSON.stringify(n))),o({event:n,code:0,message:""}),[2];n=v,this.loggerProvider.log("Timeline.apply: Event after enrichment plugin '".concat(String(p.name),"', event: ").concat(JSON.stringify(n))),S.label=12;case 12:return d=l.next(),[3,10];case 13:return[3,16];case 14:return h=S.sent(),w={error:h},[3,16];case 15:try{d&&!d.done&&(E=l.return)&&E.call(l)}finally{if(w)throw w.error}return[7];case 16:return g=this.plugins.filter(function(e){return"destination"===e.type}),this.loggerProvider.log("Timeline.apply: Final event before destinations, event: ".concat(JSON.stringify(n))),m=g.map(function(e){var t=(0,f.Cl)({},n);return e.execute(t).catch(function(e){return Pe(t,0,String(e))})}),Promise.all(m).then(function(e){var t=(0,f.zs)(e,1)[0]||Pe(n,100,"Event not tracked, no destination plugins on the instance");o(t)}),[2]}})})},e.prototype.flush=function(){return(0,f.sH)(this,void 0,void 0,function(){var e,t,n,r=this;return(0,f.YH)(this,function(o){switch(o.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return r.apply(e)}))];case 1:return o.sent(),t=this.plugins.filter(function(e){return"destination"===e.type}),n=t.map(function(e){return e.flush&&e.flush()}),[4,Promise.all(n)];case 2:return o.sent(),[2]}})})},e.prototype.addOptOutListener=function(e){this._optOutListeners.push(e)},e.prototype._clearOptOutListeners=function(){this._optOutListeners=[]},e.prototype.onIdentityChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onIdentityChanged)||void 0===n||n.call(t,e)})},e.prototype.onSessionIdChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onSessionIdChanged)||void 0===n||n.call(t,e)})},e.prototype.onOptOutChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onOptOutChanged)||void 0===n||n.call(t,e)}),this._callOptOutListeners(e)},e.prototype._callOptOutListeners=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t,n,r,o,i,a,s;return(0,f.YH)(this,function(u){switch(u.label){case 0:u.trys.push([0,7,8,9]),t=(0,f.Ju)(this._optOutListeners),n=t.next(),u.label=1;case 1:if(n.done)return[3,6];r=n.value,u.label=2;case 2:return u.trys.push([2,4,,5]),[4,r(e)];case 3:return u.sent(),[3,5];case 4:return o=u.sent(),this.loggerProvider.error("Error calling optOut listener",o),[3,5];case 5:return n=t.next(),[3,1];case 6:return[3,9];case 7:return i=u.sent(),a={error:i},[3,9];case 8:try{n&&!n.done&&(s=t.return)&&s.call(t)}finally{if(a)throw a.error}return[7];case 9:return[2]}})})},e.prototype.onReset=function(){this.plugins.forEach(function(e){var t;null===(t=e.onReset)||void 0===t||t.call(e)})},e}(),Qe=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new $e(this),this.name=e}return e.prototype._init=function(e){return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t,n,r,o,i,a,s,u;return(0,f.YH)(this,function(c){switch(c.label){case 0:t=this[e],this[e]=[],c.label=1;case 1:c.trys.push([1,8,9,10]),n=(0,f.Ju)(t),r=n.next(),c.label=2;case 2:return r.done?[3,7]:(o=r.value,(i=o())&&"promise"in i?[4,i.promise]:[3,4]);case 3:return c.sent(),[3,6];case 4:return[4,i];case 5:c.sent(),c.label=6;case 6:return r=n.next(),[3,2];case 7:return[3,10];case 8:return a=c.sent(),s={error:a},[3,10];case 9:try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(s)throw s.error}
2return[7];case 10:return this[e].length?[4,this.runQueuedFunctions(e)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,n){var r=function(e,t,n){var r="string"==typeof e?{event_type:e}:e;return(0,f.Cl)((0,f.Cl)((0,f.Cl)({},r),n),t&&{event_properties:t})}(e,t,n);return this.userProperties=this.getOperationAppliedUserProperties(r.user_properties),m(this.dispatch(r))},e.prototype.identify=function(e,t){var n=Je(e,t);return this.userProperties=this.getOperationAppliedUserProperties(n.user_properties),m(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var o=function(e,t,n,r){var o;return(0,f.Cl)((0,f.Cl)({},r),{event_type:ze.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:(o={},o[e]=t,o)})}(e,t,n,r);return m(this.dispatch(o))},e.prototype.setGroup=function(e,t,n){var r=function(e,t,n){var r,o=new qe;return o.set(e,t),(0,f.Cl)((0,f.Cl)({},n),{event_type:ze.IDENTIFY,user_properties:o.getUserProperties(),groups:(r={},r[e]=t,r)})}(e,t,n);return this.userProperties=this.getOperationAppliedUserProperties(r.user_properties),m(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=function(e,t){return(0,f.Cl)((0,f.Cl)({},t),{event_type:ze.REVENUE,event_properties:e.getEventProperties()})}(e,t);return m(this.dispatch(n))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),m())},e.prototype._addPlugin=function(e){return m(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),m())},e.prototype._removePlugin=function(e){return m(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(Pe(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t=this;return(0,f.YH)(this,function(n){return this.isReady?[2,this.process(e)]:[2,new Promise(function(n){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,n))})]})})},e.prototype.getOperationAppliedUserProperties=function(e){var t,n=null!==(t=this.userProperties)&&void 0!==t?t:{},r=(0,f.Cl)({},n);if(void 0===e)return r;var o={};return Object.keys(e).forEach(function(t){Object.values(Be).includes(t)||(o[t]=e[t])}),Ye.forEach(function(t){if(Object.keys(e).includes(t)){var n=e[t];switch(t){case Be.CLEAR_ALL:Object.keys(r).forEach(function(e){delete r[e]});break;case Be.UNSET:Object.keys(n).forEach(function(e){delete r[e]});break;case Be.SET:Object.assign(r,n)}}}),Object.assign(r,o),r},e.prototype.process=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t,n,r;return(0,f.YH)(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),this.config.optOut?[2,Pe(e,0,"Event skipped due to optOut config")]:(e.event_type===ze.IDENTIFY&&this.timeline.onIdentityChanged({userProperties:this.userProperties}),[4,this.timeline.push(e)]);case 1:return 200===(r=o.sent()).code?this.config.loggerProvider.log(r.message):100===r.code?this.config.loggerProvider.warn(r.message):this.config.loggerProvider.error(r.message),[2,r];case 2:return t=o.sent(),n=String(t),this.config.loggerProvider.error(n),[2,r=Pe(e,0,n)];case 3:return[2]}})})},e.prototype.setOptOut=function(e){this.isReady?this._setOptOut(e):this.q.push(this._setOptOut.bind(this,Boolean(e)))},e.prototype._setOptOut=function(e){this.config.optOut!==e&&(this.config.optOut=Boolean(e),this.timeline.onOptOutChanged(e))},e.prototype.flush=function(){return m(this.timeline.flush())},e.prototype.plugin=function(e){var t=this.timeline.plugins.find(function(t){return t.name===e});if(void 0!==t)return t;this.config.loggerProvider.debug("Cannot find plugin with name ".concat(e))},e.prototype.plugins=function(e){return this.timeline.plugins.filter(function(t){return t instanceof e})},e}();var Ze=function(e,t){return"boolean"==typeof e?e:!1!==(null==e?void 0:e[t])&&(!function(){var e,t,n=E();return"string"==typeof(null===(t=null===(e=null==n?void 0:n.chrome)||void 0===e?void 0:e.runtime)||void 0===t?void 0:t.id)}()||!!(null==e?void 0:e[t]))},et=function(e){return Ze(e,"attribution")},tt=function(e){return Ze(e,"formInteractions")},nt=function(e){return Ze(e,"pageViews")},rt=function(e){return Ze(e,"sessions")},ot=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.networkTracking||"object"==typeof e.networkTracking)},it=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},at=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.frustrationInteractions||"object"==typeof e.frustrationInteractions)},st=function(e){if("object"==typeof e.autocapture){var t=e.autocapture.performanceTracking;return!0===t?{mainThreadBlock:!0}:"object"==typeof t&&null!==t?t:void 0}},ut=function(e){if(it(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},ct=function(e){if(at(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.frustrationInteractions)return e.autocapture.frustrationInteractions},lt=function(e){var t;if(ot(e.autocapture)){var n=void 0;return"object"==typeof e.autocapture&&"object"==typeof e.autocapture.
vendor: 43,253 bytes, line 2
2networkTracking?n=e.autocapture.networkTracking:e.networkTrackingOptions&&(n=e.networkTrackingOptions),(0,f.Cl)((0,f.Cl)({},n),{captureRules:null===(t=null==n?void 0:n.captureRules)||void 0===t?void 0:t.map(function(t){var n,r,o;if((null===(n=t.urls)||void 0===n?void 0:n.length)&&(null===(r=t.hosts)||void 0===r?void 0:r.length)){var i=JSON.stringify(t.hosts),a=JSON.stringify(t.urls);return null===(o=e.loggerProvider)||void 0===o||o.warn("Found network capture rule with both urls='".concat(a,"' and hosts='").concat(i,"' set. ")+"Definition of urls takes precedence over hosts, so ignoring hosts."),(0,f.Cl)((0,f.Cl)({},t),{hosts:void 0})}return t})})}},ft=function(e){var t,n=function(){return!1},r=void 0,o=e.pageCounter;return nt(e.defaultTracking)&&(n=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:r,eventType:t,pageCounter:o}},dt=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=r.name,i=r.args,a=r.resolve,s=e&&e[o];if("function"==typeof s){var u=s.apply(e,i);"function"==typeof a&&a(null==u?void 0:u.promise)}}return e},pt=function(e){return e&&void 0!==e._q},vt=function(){var e,t,n,r;if("undefined"==typeof navigator)return"";var o=navigator.userLanguage;return null!==(r=null!==(n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:navigator.language)&&void 0!==n?n:o)&&void 0!==r?r:""},ht="2.43.0",gt="amplitude-ts",mt=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(gt,"/").concat(ht),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){var t,n;return(0,f.sH)(this,void 0,void 0,function(){var r,o,i;return(0,f.YH)(this,function(a){return r=(new Date).getTime(),o=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1,i=null!==(n=e.event_id)&&void 0!==n?n:o+1,this.config.lastEventId=i,e.time||(this.config.lastEventTime=r),[2,(0,f.Cl)((0,f.Cl)((0,f.Cl)((0,f.Cl)((0,f.Cl)((0,f.Cl)((0,f.Cl)((0,f.Cl)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:r},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:vt()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:A(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:i,library:this.library,user_agent:this.userAgent})]})})},e}(),yt=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t;return(0,f.YH)(this,function(n){switch(n.label){case 0:return[4,this.get(e)];case 1:return[2,(t=n.sent())?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(n){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),bt=function(){function e(e,t){void 0===t&&(t={}),this.options=(0,f.Cl)({},e),this.config=t}return e.prototype.isEnabled=function(){return(0,f.sH)(this,void 0,void 0,function(){var t,n,r,o,i=this;return(0,f.YH)(this,function(a){switch(a.label){case 0:return t="AMP_TEST",n=(0,f.Cl)({},this.options),r=new e(n),o=String(Date.now()),[4,r.transaction(t,function(e){var n,r;try{e.set(o);var a=e.get()===o;return!a&&i.config.diagnosticsClient&&(null===(n=i.config.diagnosticsClient)||void 0===n||n.recordEvent("cookies.isEnabled.failure",{reason:"Test Value mismatch",testKey:t,testValue:o,sync:!0})),a}catch(Qo){if(i.config.diagnosticsClient){var s=Qo instanceof Error?Qo.message:String(Qo);null===(r=i.config.diagnosticsClient)||void 0===r||r.recordEvent("cookies.isEnabled.failure",{reason:"Cookie getter/setter failed",testKey:t,testValue:o,error:s,sync:!0})}return!1}finally{e.set(null)}})];case 1:return[2,a.sent()]}})})},e.prototype.get=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t;return(0,f.YH)(this,function(n){switch(n.label){case 0:return[4,this.getRaw(e)];case 1:return t=n.sent(),[2,this.decodeCookieValue(e,t)]}})})},e.prototype.decodeCookieValue=function(e,t){if(t)try{var n=wt(t);return void 0===n?void console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(t)):JSON.parse(n)}catch(zn){return void console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(t))}},e.prototype.getSync=function(e){var t=this.getRawSync(e);return this.decodeCookieValue(e,t)},e.prototype.getRaw=function(e){var t,n;return(0,f.sH)(this,void 0,void 0,function(){var r,o,i,a,s,u,c,l,d;return(0,f.YH)(this,function(p){switch(p.label){case 0:r=E(),o=r,p.label=1;case 1:return p.trys.push([1,4,,5]),(i=null==o?void 0:o.cookieStore)?[4,i.getAll(e)]:[3,3];case 2:if(a=p.sent()){a.length>1&&(null===(t=this.config.diagnosticsClient)||void 0===t||t.recordEvent("cookies.duplicate",{cookies:a.map(function(e){return e.domain})}),null===(n=this.config.diagnosticsClient)||void 0===n||n.increment("cookies.duplicate.occurrence.cookieStore"));try{for(s=(0,f.Ju)(a),u=s.next();!u.done;u=s.next())if(c=u.value,Et(c.domain,this.options.domain))return[2,c.value]}catch(v){l={error:v}}finally{try{u&&!u.done&&(d=s.return)&&d.call(s)}finally{if(l)throw l.error}}}p.label=3;case 3:return[3,5];case 4:return p.sent(),[3,5];case 5:return[2,this.getRawSync(e)]}})})},e.prototype.getRawSync=function(e){var t,n,r=this,o=E(),i=(null!==(n=null===(t=null==o?void 0:o.document)||void 0===t?void 0:t.cookie.split("; "))&&void 0!==n?n:[]).filter(function(t){return 0===t.indexOf(e+"=")}),a=void 0,s=this.config.duplicateResolverFn;if("function"==typeof s&&i.length>1&&(a=i.find(function(t){var n;try{var o=s(t.substring(e.length+1));return o||null===(n=r.config.diagnosticsClient)||void 0===n||n.increment("cookies.duplicate.occurrence.document.cookie"),o}catch(i){return!1}})),a||(a=i[0]),a)return a.substring(e.length+1)},e.prototype.set=function(e,t){return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(n){return this.setSync(e,t),[2]})})},e.prototype.setSync=function(e,t){var n;try{var r=E();if(!r||!r.document||"function"!=typeof r.btoa||"function"!=typeof r.encodeURIComponent)return;var o=null!==(n=this.options.expirationDays)&&void 0!==n?n:0,i=null!==t?o:-1,a=void 0;if(i){var s=new Date;s.setTime(s.getTime()+24*i*60*60*1e3),a=s}var u="".concat(e,"=").concat(r.btoa(r.encodeURIComponent(JSON.stringify(t))));a&&(u+="; expires=".concat(a.toUTCString())),u+="; path=/",this.options.domain&&(u+="; domain=".concat(this.options.domain)),this.options.secure&&(u+="; Secure"),this.options.sameSite&&(u+="; SameSite=".concat(this.options.sameSite)),r.document.cookie=u}catch(l){var c=l instanceof Error?l.message:String(l);console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(c))}},e.prototype.remove=function(e){return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(e){return[2]})})},e.isDomainWritable=function(t){return(0,f.sH)(this,void 0,void 0,function(){var n,r;return(0,f.YH)(this,function(o){switch(o.label){case 0:if(e.cachedTlds[t])return[2,!0];n="AMP_TLDTEST",r=new e({domain:"."+t}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,r.transaction(n,function(n){if(e.cachedTlds[t])return!0;try{n.set(1);var r=!!n.get();return r&&(e.cachedTlds[t]=!0),r}finally{n.set(null)}})];case 2:return[2,!!o.sent()];case 3:return o.sent(),[2,!1];case 4:return[2]}})})},e.prototype.transaction=function(e,t){return(0,f.sH)(this,void 0,void 0,function(){var n,r,o=this;return(0,f.YH)(this,function(i){switch(i.label){case 0:if(n=function(){var e,t=E();return null===(e=null==t?void 0:t.navigator)||void 0===e?void 0:e.locks}(),r=function(){return t({get:function(){return o.getSync(e)},set:function(t){return o.setSync(e,t)}})},!n)return[2,r()];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,n.request("com.amplitude:cookie-lock:".concat(e),r)];case 2:return[2,i.sent()];case 3:return i.sent(),[2,r()];case 4:return[2]}})})},e.cachedTlds={},e}(),wt=function(e){var t;return null!==(t=function(e){try{return decodeURIComponent(atob(e))}catch(t){return}}(e))&&void 0!==t?t:function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(t){return}}(e)},Et=function(e,t){if(""===e&&""===t)return!0;if(!e||!t)return!1;var n=e.startsWith(".")?e.substring(1):e,r=t.startsWith(".")?t.substring(1):t;return n.toLowerCase()===r.toLowerCase()},St=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),[ie,t,e.substring(0,n)].filter(Boolean).join("_")},xt=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,f.sH)(this,void 0,void 0,function(){var t,n,r;return(0,f.YH)(this,function(o){switch(o.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),n=new e(this.storage),r="AMP_TEST",o.label=1;case 1:return o.trys.push([1,4,5,7]),[4,n.set(r,t)];case 2:return o.sent(),[4,n.get(r)];case 3:return[2,o.sent()===t];case 4:return o.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return o.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t;return(0,f.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:return(t=n.sent())?[2,JSON.parse(t)]:[2,void 0];case 2:return n.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){var t;return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(n){return[2,(null===(t=this.storage)||void 0===t?void 0:t.getItem(e))||void 0]})})},e.prototype.set=function(e,t){var n;return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(r){try{null===(n=this.storage)||void 0===n||n.setItem(e,JSON.stringify(t))}catch(o){}return[2]})})},e.prototype.remove=function(e){var t;return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(n){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(r){}return[2]})})},e.prototype.reset=function(){var e;return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(n){}return[2]})})},e}(),At=1e3,kt=function(e){function t(t){var n,r,o,i=this;try{o=null===(n=E())||void 0===n?void 0:n.localStorage}catch(Qo){null===(r=null==t?void 0:t.loggerProvider)||void 0===r||r.debug("Failed to access localStorage. error=".concat(JSON.stringify(Qo))),o=void 0}return(i=e.call(this,o)||this).loggerProvider=null==t?void 0:t.loggerProvider,i}return(0,f.C6)(t,e),t.prototype.set=function(t,n){var r;return(0,f.sH)(this,void 0,void 0,function(){var o;return(0,f.YH)(this,function(i){switch(i.label){case 0:return Array.isArray(n)&&n.length>At?(o=n.length-At,[4,e.prototype.set.call(this,t,n.slice(0,At))]):[3,2];case 1:return i.sent(),null===(r=this.loggerProvider)||void 0===r||r.error("Failed to save ".concat(o," events because the queue length exceeded ").concat(At,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,n)];case 3:i.sent(),i.label=4;case 4:return[2]}})})},t}(xt),Ot=function(e){function t(){var t;return e.call(this,null===(t=E())||void 0===t?void 0:t.sessionStorage)||this}return(0,f.C6)(t,e),t}(xt);function Pt(){return"undefined"!=typeof CompressionStream}function Ct(e){return(0,f.sH)(this,void 0,void 0,function(){var t,n;return(0,f.YH)(this,function(r){switch(r.label){case 0:if(void 0===(t=CompressionStream))return[2,void 0];r.label=1;case 1:return r.trys.push([1,3,,4]),n=new Blob([e]).stream().pipeThrough(new t("gzip")),[4,new Response(n).arrayBuffer()];case 2:return[2,r.sent()];case 3:return r.sent(),[2,void 0];case 4:return[2]}})})}var Tt=function(){function e(){}return e.prototype.send=function(e,t,n){return Promise.resolve(null)},e.prototype.buildResponse=function(e){var t,n,r,o,i,a,s,u,c,l,f,d,p,v,h,g,m,y,b,w,E,S;if("object"!=typeof e)return null;var x=e.code||0,A=this.buildStatus(x);switch(A){case te.Success:return{status:A,statusCode:x,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(n=e.payload_size_bytes)&&void 0!==n?n:0,serverUploadTime:null!==(r=e.server_upload_time)&&void 0!==r?r:0}};case te.Invalid:return{status:A,statusCode:x,body:{error:null!==(o=e.error)&&void 0!==o?o:"",missingField:null!==(i=e.missing_field)&&void 0!==i?i:"",eventsWithInvalidFields:null!==(a=e.events_with_invalid_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(s=e.events_with_missing_fields)&&void 0!==s?s:{},eventsWithInvalidIdLengths:null!==(u=e.events_with_invalid_id_lengths)&&void 0!==u?u:{},epsThreshold:null!==(c=e.eps_threshold)&&void 0!==c?c:0,exceededDailyQuotaDevices:null!==(l=e.exceeded_daily_quota_devices)&&void 0!==l?l:{},silencedDevices:null!==(f=e.silenced_devices)&&void 0!==f?f:[],silencedEvents:null!==(d=e.silenced_events)&&void 0!==d?d:[],throttledDevices:null!==(p=e.throttled_devices)&&void 0!==p?p:{},throttledEvents:null!==(v=e.throttled_events)&&void 0!==v?v:[]}};case te.PayloadTooLarge:return{status:A,statusCode:x,body:{error:null!==(h=e.error)&&void 0!==h?h:""}};case te.RateLimit:return{status:A,statusCode:x,body:{error:null!==(g=e.error)&&void 0!==g?g:"",epsThreshold:null!==(m=e.eps_threshold)&&void 0!==m?m:0,throttledDevices:null!==(y=e.throttled_devices)&&void 0!==y?y:{},throttledUsers:null!==(b=e.throttled_users)&&void 0!==b?b:{},exceededDailyQuotaDevices:null!==(w=e.exceeded_daily_quota_devices)&&void 0!==w?w:{},exceededDailyQuotaUsers:null!==(E=e.exceeded_daily_quota_users)&&void 0!==E?E:{},throttledEvents:null!==(S=e.throttled_events)&&void 0!==S?S:[]}};case te.Timeout:default:return{status:A,statusCode:x}}},e.prototype.buildStatus=function(e){return je(e)?te.Success:429===e?te.RateLimit:413===e?te.PayloadTooLarge:408===e?te.Timeout:e>=400&&e<500?te.Invalid:e>=500?te.Failed:te.Unknown},e}(),_t=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.state={done:4},n.customHeaders=t,n}return(0,f.C6)(t,e),t.prototype.send=function(e,t,n){return void 0===n&&(n=!1),(0,f.sH)(this,void 0,void 0,function(){var r=this;return(0,f.YH)(this,function(o){return[2,new Promise(function(i,a){"undefined"==typeof XMLHttpRequest&&a(new Error("XHRTransport is not supported."));var s=new XMLHttpRequest;s.open("POST",e,!0),s.onreadystatechange=function(){if(s.readyState===r.state.done){var e=s.responseText;try{i(r.buildResponse(JSON.parse(e)))}catch(o){i(r.buildResponse({code:s.status}))}}};var u={"Content-Type":"application/json",Accept:"*/*"},c=JSON.stringify(t),l=n&&c.length>=2048&&Pt(),d=function(e){var t,n;u=(0,f.Cl)((0,f.Cl)({},r.customHeaders),u);try{for(var o=(0,f.Ju)(Object.entries(u)),i=o.next();!i.done;i=o.next()){var a=(0,f.zs)(i.value,2),c=a[0],l=a[1];s.setRequestHeader(c,l)}}catch(d){t={error:d}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}s.send(e)};(0,f.sH)(r,void 0,void 0,function(){var e;return(0,f.YH)(this,function(t){switch(t.label){case 0:return l?[4,Ct(c)]:[3,2];case 1:return(e=t.sent())?(u["Content-Encoding"]="gzip",d(e)):d(c),[3,3];case 2:d(c),t.label=3;case 3:return[2]}})}).catch(a)})]})})},t}(Tt),Rt=function(e){function t(t,n){void 0===t&&(t={});var r=e.call(this)||this;return r.customHeaders=t,r.enableKeepalive=!1!==n,r}return(0,f.C6)(t,e),t.prototype.send=function(e,t,n){return void 0===n&&(n=!1),(0,f.sH)(this,void 0,void 0,function(){var r,o,i,a,s,u,c,l,d;return(0,f.YH)(this,function(p){switch(p.label){case 0:if("undefined"==typeof fetch)throw new Error("FetchTransport is not supported");return r=JSON.stringify(t),o=n&&r.length>=2048&&Pt(),i=r,a={"Content-Type":"application/json",Accept:"*/*"},o?[4,Ct(r)]:[3,2];case 1:(s=p.sent())&&(a["Content-Encoding"]="gzip",i=s),p.label=2;case 2:return a=(0,f.Cl)((0,f.Cl)({},this.customHeaders),a),u="string"==typeof i?i.length:i.byteLength,c={headers:a,body:i,method:"POST",keepalive:this.enableKeepalive&&u<=16384},[4,fetch(e,c)];case 3:return[4,(l=p.sent()).text()];case 4:d=p.sent();try{return[2,this.buildResponse(JSON.parse(d))]}catch(v){return[2,this.buildResponse({code:l.status})]}return[2]}})})},t}(Tt),It=function(e){function t(){return e.call(this)||this}return(0,f.C6)(t,e),t.prototype.send=function(e,t,n){return void 0===n&&(n=!1),(0,f.sH)(this,void 0,void 0,function(){var n=this;return(0,f.YH)(this,function(r){return[2,new Promise(function(r,o){var i=E();if(!(null==i?void 0:i.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(t);return r(i.navigator.sendBeacon(e,a)?n.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}):n.buildResponse({code:500}))}catch(Qo){o(Qo)}})]})})},t}(Tt),jt=function(e,t,n){return void 0===n&&(n=!0),(0,f.sH)(void 0,void 0,void 0,function(){var r,o,i,a,s,u,c,l,d;return(0,f.YH)(this,function(p){switch(p.label){case 0:return r=function(e){return"".concat(ie.toLowerCase(),"_").concat(e.substring(0,6))}(e),[4,t.getRaw(r)];case 1:return(o=p.sent())?n?[4,t.remove(r)]:[3,3]:[2,{optOut:!1}];case 2:p.sent(),p.label=3;case 3:return i=(0,f.zs)(o.split("."),6),a=i[0],s=i[1],u=i[2],c=i[3],l=i[4],d=i[5],[2,{deviceId:a,userId:Nt(s),sessionId:Dt(c),lastEventId:Dt(d),lastEventTime:Dt(l),optOut:Boolean(u)}]}})})},Dt=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},Nt=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(zn){return}},Ut="[Amplitude]",Lt=("".concat(Ut," Page Viewed"),"".concat(Ut," Form Started")),Mt="".concat(Ut," Form Submitted"),Ht="".concat(Ut," File Downloaded"),Ft="session_start",qt="session_end",Bt="".concat(Ut," File Extension"),zt="".concat(Ut," File Name"),Yt="".concat(Ut," Link ID"),Wt="".concat(Ut," Link Text"),Jt="".concat(Ut," Link URL"),Vt="".concat(Ut," Form ID"),Gt="".concat(Ut," Form Name"),Kt="".concat(Ut," Form Destination"),Xt="cookie",$t={always:"always",ifEmptyCampaign:"ifEmptyCampaign"},Qt=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},Zt=function(e,t,n,r,o,i){void 0===o&&(o=!0);e.referrer;var a,s,u=e.referring_domain,c=(0,f.Tt)(e,["referrer","referring_domain"]),l=t||{},d=(l.referrer,l.referring_domain),p=(0,f.Tt)(l,["referrer","referring_domain"]),v=n.excludeInternalReferrers;if(v){var h=tn(v,r);if(!(h instanceof TypeError)&&e.referring_domain&&an(e.referring_domain,i)){if("always"===h)return nn(h,e.referring_domain,r),!1;if("ifEmptyCampaign"===h&&(a=e,s=(0,f.Cl)((0,f.Cl)({},a),{referring_domain:void 0,referrer:void 0}),Object.values(s).every(function(e){return!e})))return nn(h,e.referring_domain,r),!1}}if(en(n.excludeReferrers,e.referring_domain))return r.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!o&&function(e){return Object.values(e).every(function(e){return!e})}(e)&&t)return r.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var g=JSON.stringify(c)!==JSON.stringify(p),m=Qt(u||"")!==Qt(d||""),y=!t||g||m;return y?r.debug("This is a new campaign. An $identify event will be sent."):r.debug("This is not a new campaign because it's the same as the previous one."),y},en=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},tn=function(e,t){if(!0===e)return $t.always;if("object"==typeof e){var n=e.condition;if("string"==typeof n&&Object.keys($t).includes(n))return n;if(void 0===n)return $t.always}var r="Invalid configuration provided for attribution.excludeInternalReferrers: ".concat(JSON.stringify(e));return t.error(r),new TypeError(r)};function nn(e,t,n){var r="This is not a new campaign because referring_domain=".concat(t," is on the same domain as the current page and it is configured to exclude internal referrers");"always"===e?n.debug(r):"ifEmptyCampaign"===e&&n.debug("".concat(r," with empty campaign parameters"))}var rn=["ac.in","ac.jp","ac.kr","ac.th","ac.uk","ac.za","appspot.com","asn.au","azurewebsites.net","cloudfront.net","myshopify.com","blogspot.com","co.ca","co.in","co.jp","co.kr","co.nz","co.th","co.uk","co.za","com.ar","com.au","com.br","com.cn","com.hk","com.in","com.jp","com.kr","com.mx","com.pl","com.sg","com.tr","com.tw","ed.jp","edu.au","edu.br","edu.cn","edu.hk","edu.sg","edu.th","edu.tr","edu.tw","firebaseapp.com","fly.dev","gc.ca","geek.nz","github.io","gitlab.io","go.jp","go.kr","go.th","gob.ar","gob.mx","gov.au","gov.br","gov.cn","gov.hk","gov.in","gov.pl","gov.sg","gov.tr","gov.tw","gov.uk","gov.za","govt.nz","gr.jp","herokuapp.com","id.au","idv.hk","iwi.nz","lg.jp","ltd.uk","maori.nz","me.uk","mil.kr","ne.jp","ne.kr","net.au","net.br","net.cn","net.hk","net.in","net.nz","net.pl","net.sg","net.tr","net.tw","net.za","onrender.com","or.jp","or.kr","or.th","org.ar","org.au","org.br","org.cn","org.hk","org.in","org.mx","org.nz","org.pl","org.sg","org.tw","org.uk","org.za","pages.dev","pe.kr","plc.uk","re.kr","res.in","sch.uk","vercel.app","netlify.app","workers.dev"],on=function(e){var t,n,r=e||(null===(n=null===(t=E())||void 0===t?void 0:t.location)||void 0===n?void 0:n.hostname);if(!r)return"";var o=r.split("."),i=o[o.length-1],a=o[o.length-2];return rn.find(function(e){return r.endsWith(".".concat(e))})&&(i=o[o.length-2]+"."+o[o.length-1],a=o[o.length-3]),a?"".concat(a,".").concat(i):i},an=function(e,t){var n=E();if(!n)return!1;var r,o,i,a=(t||"").trim()||on(n.location.hostname);return r=e,i=(o=a).startsWith(".")?o:".".concat(o),!!(r.startsWith(".")?r:".".concat(r)).endsWith(i)},sn=function(e){function t(t,n,o,i,a,s,u,c,l,f,d,p,v,h,g,m,y,w,E,S,x,A,k,O,P,C,T,_,R,I,j,D,N,U,L,M,H,F,q,B,z,Y,W,J){void 0===o&&(o=new yt),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===c&&(c=1e3),void 0===l&&(l=5),void 0===f&&(f=30),void 0===d&&(d=Xt),void 0===m&&(m=new b),void 0===y&&(y=r.Warn),void 0===E&&(E=!1),void 0===S&&(S=!1),void 0===k&&(k=""),void 0===O&&(O="US"),void 0===T&&(T=18e5),void 0===_&&(_=new kt({loggerProvider:m})),void 0===R&&(R={ipAddress:!0,language:!0,platform:!0}),void 0===I&&(I="fetch"),void 0===j&&(j=!1),void 0===D&&(D=!0),void 0===F&&(F=!0),void 0===q&&(q=0),void 0===W&&(W=!1);var V,G=this;(G=e.call(this,{apiKey:t,storageProvider:_,transportProvider:ln(I)})||this).apiKey=t,G.appVersion=n,G.cookieOptions=i,G.defaultTracking=a,G.autocapture=s,G.flushIntervalMillis=c,G.flushMaxRetries=l,G.flushQueueSize=f,G.identityStorage=d,G.ingestionMetadata=p,G.instanceName=v,G.loggerProvider=m,G.logLevel=y,G.minIdLength=w,G.offline=E,G.partnerId=x,G.plan=A,G.serverUrl=k,G.serverZone=O,G.sessionTimeout=T,G.storageProvider=_,G.trackingOptions=R,G.transport=I,G.useBatch=j,G.fetchRemoteConfig=D,G.networkTrackingOptions=M,G.identify=H,G.enableDiagnostics=F,G.diagnosticsSampleRate=q,G.diagnosticsClient=B,G.remoteConfig=z,G.topLevelDomain=Y,G.enableRequestBodyCompression=W,G.customEnrichment=J,G.version=ht,G._optOut=!1,G._cookieStorage=o,G.deviceId=u,G.lastEventId=h,G.lastEventTime=g,G.optOut=S,G.deferredSessionId=C,G.sessionId=P,G.pageCounter=U,G.userId=N,G.debugLogsEnabled=L,G.loggerProvider.enable(L?r.Debug:G.logLevel),G.networkTrackingOptions=M,G.identify=H,G.enableDiagnostics=F,G.diagnosticsSampleRate=q,G.diagnosticsClient=B;var K=null!==(V=null==z?void 0:z.fetchRemoteConfig)&&void 0!==V?V:D;return G.remoteConfig=G.remoteConfig||{},G.remoteConfig.fetchRemoteConfig=K,G.fetchRemoteConfig=K,G.topLevelDomain=Y||on(),G}return(0,f.C6)(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,void 0!==e&&void 0!==this._deferredSessionId&&(this._deferredSessionId=void 0),this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deferredSessionId",{get:function(){return this._deferredSessionId},set:function(e){this._deferredSessionId!==e&&e!==this.sessionId&&(this._deferredSessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,deferredSessionId:this._deferredSessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled,cookieDomain:void 0};this.cookieStorage instanceof bt&&(e.cookieDomain=this.cookieStorage.options.domain),this.cookieStorage.set(St(this.apiKey),e)},t}(Te),un=function(e,t,n,r,o){return void 0===t&&(t={}),(0,f.sH)(void 0,void 0,void 0,function(){var i,a,s,u,c,l,d,p,v,h,g,m,y,b,w,E,S,x,k,O,P,C,T,_,R,I,j,D,N,U,L,M,H,F,q,B,z,Y,W,V,G,K,X,$,Q,Z,ee,te,ne,re,oe;return(0,f.YH)(this,function(ie){switch(ie.label){case 0:return i=t.identityStorage||Xt,a="",i!==Xt||(null===(C=t.cookieOptions)||void 0===C?void 0:C.domain)||""===(null===(T=t.cookieOptions)||void 0===T?void 0:T.domain)?[3,2]:[4,fn(void 0,r)];case 1:a=ie.sent(),ie.label=2;case 2:return s=(0,f.Cl)({domain:null!==(R=null===(_=t.cookieOptions)||void 0===_?void 0:_.domain)&&void 0!==R?R:a,expiration:365,sameSite:"Lax",secure:!1,upgrade:!0},t.cookieOptions),u={duplicateResolverFn:function(e){var t=wt(e);if(!t)return!1;var n=JSON.parse(t);return Et(n.cookieDomain,s.domain)},diagnosticsClient:r},c=cn(t.identityStorage,s,u),[4,jt(e,c,null===(j=null===(I=t.cookieOptions)||void 0===I?void 0:I.upgrade)||void 0===j||j)];case 3:return l=ie.sent(),[4,c.get(St(e))];case 4:return d=ie.sent(),p=J(),v=p.ampTimestamp?Number(p.ampTimestamp):void 0,h=!v||Date.now()<v,g=null!==(M=null!==(L=null!==(U=null!==(D=t.deviceId)&&void 0!==D?D:h?null!==(N=p.ampDeviceId)&&void 0!==N?N:p.deviceId:void 0)&&void 0!==U?U:null==d?void 0:d.deviceId)&&void 0!==L?L:l.deviceId)&&void 0!==M?M:A(),m=null!==(H=null==d?void 0:d.lastEventId)&&void 0!==H?H:l.lastEventId,y=null!==(F=null==d?void 0:d.lastEventTime)&&void 0!==F?F:l.lastEventTime,b=null!==(B=null!==(q=t.optOut)&&void 0!==q?q:null==d?void 0:d.optOut)&&void 0!==B?B:l.optOut,w=null!==(z=null==d?void 0:d.sessionId)&&void 0!==z?z:l.sessionId,E=null==d?void 0:d.deferredSessionId,S=null!==(W=null!==(Y=t.userId)&&void 0!==Y?Y:null==d?void 0:d.userId)&&void 0!==W?W:l.userId,n.previousSessionDeviceId=null!==(V=null==d?void 0:d.deviceId)&&void 0!==V?V:l.deviceId,n.previousSessionUserId=null!==(G=null==d?void 0:d.userId)&&void 0!==G?G:l.userId,x={ipAddress:null===(X=null===(K=t.trackingOptions)||void 0===K?void 0:K.ipAddress)||void 0===X||X,language:null===(Q=null===($=t.trackingOptions)||void 0===$?void 0:$.language)||void 0===Q||Q,platform:null===(ee=null===(Z=t.trackingOptions)||void 0===Z?void 0:Z.platform)||void 0===ee||ee},k=null==d?void 0:d.pageCounter,O=null==d?void 0:d.debugLogsEnabled,void 0!==t.autocapture&&(t.defaultTracking=t.autocapture),[4,(P=new sn(e,t.appVersion,c,s,t.defaultTracking,t.autocapture,g,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,i,t.ingestionMetadata,t.instanceName,m,y,null!==(te=null==o?void 0:o.loggerProvider)&&void 0!==te?te:t.loggerProvider,t.logLevel,t.minIdLength,t.offline,b,t.partnerId,t.plan,t.serverUrl,null!==(ne=null==o?void 0:o.serverZone)&&void 0!==ne?ne:t.serverZone,w,E,t.sessionTimeout,t.storageProvider,x,t.transport,t.useBatch,t.fetchRemoteConfig,S,k,O,t.networkTrackingOptions,t.identify,null!==(re=null==o?void 0:o.enableDiagnostics)&&void 0!==re?re:t.enableDiagnostics,null!==(oe=null==o?void 0:o.diagnosticsSampleRate)&&void 0!==oe?oe:n._diagnosticsSampleRate,r,t.remoteConfig,a,t.enableRequestBodyCompression,t.customEnrichment)).storageProvider.isEnabled()];case 5:return ie.sent()||(P.loggerProvider.warn("Storage provider ".concat(P.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),P.storageProvider=new yt),[2,P]}})})},cn=function(e,t,n){switch(void 0===e&&(e=Xt),void 0===t&&(t={}),e){case"localStorage":return new kt;case"sessionStorage":return new Ot;case"none":return new yt;default:return new bt((0,f.Cl)((0,f.Cl)({},t),{expirationDays:t.expiration}),n)}},ln=function(e){var t="object"==typeof e?e.type:e,n="object"==typeof e?e.headers:void 0,r="object"==typeof e?e.enableKeepalive:void 0;return"xhr"===t?new _t(n):"beacon"===t?new It:new Rt(n,r)},fn=function(e,t){return(0,f.sH)(void 0,void 0,void 0,function(){var n,r,o,i,a,s,u;return(0,f.YH)(this,function(c){switch(c.label){case 0:return[4,new bt(void 0,{diagnosticsClient:t}).isEnabled()];case 1:if(!c.sent()||!e&&("undefined"==typeof location||!location.hostname))return[2,""];if(n=null!=e?e:location.hostname,1===(r=n.split(".")).length)return[2,""];for(o=[],i=1,rn.find(function(e){return n.endsWith(".".concat(e))})&&(i=2),a=r.length-i-1;a>=0;--a)o.push(r.slice(a).join("."));a=0,c.label=2;case 2:if(!(a<o.length))return[3,7];s=o[a],c.label=3;case 3:return c.trys.push([3,5,,6]),[4,bt.isDomainWritable(s)];case 4:return c.sent()?[2,"."+s]:[3,6];case 5:return u=c.sent(),t&&t.recordEvent("cookies.tld.failure",{reason:"Unexpected exception checking domain is writable: ".concat(s),error:u instanceof Error?u.message:String(u)}),[3,6];case 6:return a++,[3,2];case 7:return t&&t.recordEvent("cookies.tld.failure",{reason:"Could not determine TLD for host ".concat(n)}),[2,""]}})})},dn="data-amp-mask",pn="*****",vn=/\b(?:\d[ -]*?){13,16}\b/,hn=/(\d{3}-?\d{2}-?\d{4})/g,gn=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,mn=function(e,t){var n,r;if(void 0===t&&(t=[]),"string"!=typeof e)return"";var o=e;o=(o=(o=o.replace(vn,pn)).replace(hn,pn)).replace(gn,pn);try{for(var i=(0,f.Ju)(t),a=i.next();!a.done;a=i.next()){var s=a.value;try{o=o.replace(s,pn)}catch(u){}}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o},yn=function(e){if("undefined"==typeof document||!document.title)return"";var t=document.querySelector("title");return t&&t.hasAttribute(dn)?pn:e?e(document.title):document.title},bn=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},wn=function(){function e(){}return e.prototype.parse=function(){return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(e){return[2,(0,f.Cl)((0,f.Cl)((0,f.Cl)((0,f.Cl)({},xe),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=J();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!==(t=null===(e=n.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(r){}return n},e.prototype.getClickIds=function(){var e,t=J();return(e={})[de]=t[de],e[pe]=t[pe],e[ve]=t[ve],e[he]=t[he],e[ge]=t[ge],e[me]=t[me],e[ye]=t[ye],e[be]=t[be],e[we]=t[we],e[Ee]=t[Ee],e[Se]=t[Se],e},e}(),En="AMP_PAGE_VIEW",Sn=function(e){var t;void 0===e&&(e={});var n,r,o=E(),i=void 0,a=!1,s=e.trackOn,u=e.trackHistoryChanges,c=e.eventType,l=void 0===c?"[Amplitude] Page Viewed":c,d=function(e){var t=e;try{t=decodeURI(e)}catch(Qo){null==i||i.error("Malformed URI sequence: ",Qo)}return t},p=function(e){return(0,f.sH)(void 0,void 0,void 0,function(){var t,n,r;return(0,f.YH)(this,function(o){switch(o.label){case 0:return t=d("undefined"!=typeof location&&location.href||""),r={event_type:l},n=[{}],[4,xn()];case 1:return[2,(r.event_properties=f.Cl.apply(void 0,[f.Cl.apply(void 0,n.concat([o.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":t,"[Amplitude] Page Path":"undefined"!=typeof location&&d(location.pathname)||"","[Amplitude] Page Title":yn(mn),"[Amplitude] Page URL":t.split("?")[0],"[Amplitude] Page View ID":e}]),r)]}})})},v=function(){return void 0===s||"function"==typeof s&&s()},h="undefined"!=typeof location?location.href:null,g=function(){(0,f.sH)(void 0,void 0,void 0,function(){var e,n,o,a,s;return(0,f.YH)(this,function(c){switch(c.label){case 0:return e=location.href,n=kn(u,e,h||"")&&v(),h=e,n?(o=void 0,r&&(o=A(),r.set(En,{pageViewId:o})),null==i||i.log("Tracking page view event"),null!=t?[3,1]:[3,3]):[3,4];case 1:return s=(a=t).track,[4,p(o)];case 2:s.apply(a,[c.sent()]),c.label=3;case 3:c.label=4;case 4:return[2]}})})},m={name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,s){return(0,f.sH)(void 0,void 0,void 0,function(){var u,c,l;return(0,f.YH)(this,function(d){switch(d.label){case 0:if(t=s,n=e,(i=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),a=!0,o){try{r=new xt(o.sessionStorage)}catch(h){null==i||i.debug("sessionStorage is not available in this environment.")}o.addEventListener("popstate",g),o.history.pushState=new Proxy(o.history.pushState,{apply:function(e,t,n){var r=(0,f.zs)(n,3),o=r[0],i=r[1],s=r[2];e.apply(t,[o,i,s]),a&&g()}})}return v()?(i.log("Tracking page view event"),u=void 0,r&&(u=A(),r.set(En,{pageViewId:u})),l=(c=t).track,[4,p(u)]):[3,2];case 1:l.apply(c,[d.sent()]),d.label=2;case 2:return[2]}})})},execute:function(e){return(0,f.sH)(void 0,void 0,void 0,function(){var t,o,a;return(0,f.YH)(this,function(u){switch(u.label){case 0:return"attribution"===s&&An(e)?(null==i||i.log("Enriching campaign event to page view event with campaign parameters"),t=void 0,r?[4,r.get(En)]:[3,2]):[3,4];case 1:o=u.sent(),t=null==o?void 0:o.pageViewId,u.label=2;case 2:return[4,p(t)];case 3:a=u.sent(),e.event_type=a.event_type,e.event_properties=(0,f.Cl)((0,f.Cl)({},e.event_properties),a.event_properties),u.label=4;case 4:return n&&e.event_type===l&&(n.pageCounter=n.pageCounter?n.pageCounter+1:1,e.event_properties=(0,f.Cl)((0,f.Cl)({},e.event_properties),{"[Amplitude] Page Counter":n.pageCounter})),[2,e]}})})},teardown:function(){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(e){return o&&(o.removeEventListener("popstate",g),a=!1),[2]})})}};return m},xn=function(){return(0,f.sH)(void 0,void 0,void 0,function(){var e;return(0,f.YH)(this,function(t){switch(t.label){case 0:return e=bn,[4,(new wn).parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},An=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[Be.SET]||{},r=t[Be.UNSET]||{},o=(0,f.fX)((0,f.fX)([],(0,f.zs)(Object.keys(n)),!1),(0,f.zs)(Object.keys(r)),!1);return Object.keys(xe).every(function(e){return o.includes(e)})}return!1},kn=function(e,t,n){if("pathOnly"===e){if(""==n)return!0;var r=new URL(t),o=new URL(n);return r.origin+r.pathname!==o.origin+o.pathname}return t!==n},On=function(){var e,t,n=[],r=function(e,t,r){e.addEventListener(t,r),n.push({element:e,type:t,handler:r})};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(n,o){return(0,f.sH)(void 0,void 0,void 0,function(){var i,a;return(0,f.YH)(this,function(s){return t=function(e){if(tt(e.defaultTracking)&&e.defaultTracking&&"object"==typeof e.defaultTracking&&"object"==typeof e.defaultTracking.formInteractions)return e.defaultTracking.formInteractions}(n),i=function(){if(o){if("undefined"!=typeof document){var i=new WeakSet,a=function(e){if(!i.has(e)){i.add(e);var a=!1;r(e,"change",function(){var t,n=Cn(e);a||o.track(Lt,((t={})[Vt]=Pn(e.id),t[Gt]=Pn(e.name),t[Kt]=n,t)),a=!0}),r(e,"submit",function(r){var i,s,u=Cn(e);if(a||o.track(Lt,((i={})[Vt]=Pn(e.id),i[Gt]=Pn(e.name),i[Kt]=u,i)),a=!0,void 0!==(null==t?void 0:t.shouldTrackSubmit))if("function"==typeof t.shouldTrackSubmit&&"undefined"!=typeof SubmitEvent&&r instanceof SubmitEvent)try{if(!t.shouldTrackSubmit(r))return}catch(Qo){n.loggerProvider.warn("shouldTrackSubmit callback threw an error, proceeding with tracking.")}else n.loggerProvider.warn("shouldTrackSubmit is ignored because it is not a function or event is not a SubmitEvent.");o.track(Mt,((s={})[Vt]=Pn(e.id),s[Gt]=Pn(e.name),s[Kt]=u,s)),a=!1})}};Array.from(document.getElementsByTagName("form")).forEach(a),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"FORM"===e.nodeName&&a(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(a)})})})).observe(document.body,{subtree:!0,childList:!0})}}else n.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.")},"complete"===document.readyState?i():(a=E())?a.addEventListener("load",i):n.loggerProvider.debug("Form interaction tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(t){return null==e||e.disconnect(),n.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),n=[],[2]})})}}},Pn=function(e){if("string"==typeof e)return e},Cn=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(zn){}return t},Tn=function(){var e,t=[];return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(n,r){return(0,f.sH)(void 0,void 0,void 0,function(){var o,i;return(0,f.YH)(this,function(a){return o=function(){if(r){if("undefined"!=typeof document){var o=function(e){var n;try{n=new URL(e.href,window.location.href)}catch(a){return}var o=i.exec(n.href),s=null==o?void 0:o[1];s&&function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})}(e,"click",function(){var t;s&&r.track(Ht,((t={})[Bt]=s,t[zt]=n.pathname,t[Yt]=e.id,t[Wt]=e.text,t[Jt]=e.href,t))})},i=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName("a")).forEach(o),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"A"===e.nodeName&&o(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(o)})})})).observe(document.body,{subtree:!0,childList:!0})}}else n.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.")},"complete"===document.readyState?o():(i=E())?i.addEventListener("load",o):n.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(n){return null==e||e.disconnect(),t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[],[2]})})}}},_n=!1,Rn=function(){var e=E(),t=[],n=function(n,r){(null==e?void 0:e.addEventListener)&&(null==e||e.addEventListener(n,r),t.push({type:n,handler:r}))};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(e,t){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(r){return"undefined"==typeof navigator?(e.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),e.offline=!1,[2]):(e.offline=!navigator.onLine,n("online",function(){e.loggerProvider.debug("Network connectivity changed to online."),e.offline=!1,setTimeout(function(){t.flush()},e.flushIntervalMillis)}),n("offline",function(){e.loggerProvider.debug("Network connectivity changed to offline."),e.offline=!0}),[2])})})},teardown:function(){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(n){return t.forEach(function(t){var n=t.type,r=t.handler;null==e||e.removeEventListener(n,r)}),t=[],[2]})})}}};function In(e){var t,n,r,o,i,a,s,u,c,l,d,p;if("object"==typeof e&&null!==e&&!Array.isArray(e)){var v=Object.keys(e);try{for(var h=(0,f.Ju)(v),g=h.next();!g.done;g=h.next()){var m=g.value;try{var y=e[m];"boolean"==typeof(null==y?void 0:y.enabled)&&(y.enabled?(delete y.enabled,0===Object.keys(y).length&&(e[m]=!0)):e[m]=!1),In(y)}catch(Qo){}}}catch(R){t={error:R}}finally{try{g&&!g.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}
2try{if(null===(c=null===(u=null===(s=e.autocapture)||void 0===s?void 0:s.networkTracking)||void 0===u?void 0:u.captureRules)||void 0===c?void 0:c.length)try{for(var b=(0,f.Ju)(e.autocapture.networkTracking.captureRules),w=b.next();!w.done;w=b.next()){var E=w.value;try{for(var S=(i=void 0,(0,f.Ju)(["responseHeaders","requestHeaders"])),x=S.next();!x.done;x=S.next()){var A=x.value,k=null!==(l=E[A])&&void 0!==l?l:{},O=k.captureSafeHeaders,P=k.allowlist;(O||P)&&(void 0===P||Array.isArray(P)?E[A]=(0,f.fX)((0,f.fX)([],(0,f.zs)(O?Ae:[]),!1),(0,f.zs)(null!=P?P:[]),!1):delete E[A])}}catch(I){i={error:I}}finally{try{x&&!x.done&&(a=S.return)&&a.call(S)}finally{if(i)throw i.error}}}}catch(j){r={error:j}}finally{try{w&&!w.done&&(o=b.return)&&o.call(b)}finally{if(r)throw r.error}}}catch(Qo){}var C=null===(d=e.autocapture)||void 0===d?void 0:d.frustrationInteractions;C&&(C.rageClick&&(C.rageClicks=C.rageClick,delete C.rageClick),C.deadClick&&(C.deadClicks=C.deadClick,delete C.deadClick));try{var T=null===(p=e.autocapture)||void 0===p?void 0:p.elementInteractions;if(T&&"object"==typeof T&&(!0===T.viewportContentUpdated&&(T.viewportContentUpdated={}),!1===T.viewportContentUpdated&&(T.viewportContentUpdated={enabled:!1}),void 0!==T.exposureDuration)){var _=T.viewportContentUpdated;void 0===_?T.viewportContentUpdated={exposureDuration:T.exposureDuration}:"object"==typeof _&&void 0===_.exposureDuration&&!1!==_.enabled&&(_.exposureDuration=T.exposureDuration),delete T.exposureDuration}}catch(Qo){}}}function jn(e,t,n){var r,o,i=[];try{for(var a=(0,f.Ju)(null!=t?t:[]),s=a.next();!s.done;s=a.next()){var u=s.value;try{i.push(new RegExp(u))}catch(c){n.loggerProvider.warn("Invalid regex pattern: ".concat(u),c)}}}catch(l){r={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return e.concat(i)}function Dn(e,t){var n,r,o,i,a,s,u;if(e){In(e);try{t.loggerProvider.debug("Update browser config with remote configuration:",JSON.stringify(e));var c=e;if(c&&"autocapture"in c){if("boolean"==typeof c.autocapture&&(t.autocapture=c.autocapture),"object"==typeof c.autocapture&&null!==c.autocapture){var l=(0,f.Cl)({},c.autocapture);if(void 0===t.autocapture&&(t.autocapture=c.autocapture),"object"==typeof c.autocapture.elementInteractions&&null!==c.autocapture.elementInteractions&&(null===(o=c.autocapture.elementInteractions.pageUrlAllowlistRegex)||void 0===o?void 0:o.length)){l.elementInteractions=(0,f.Cl)({},c.autocapture.elementInteractions);var d=l.elementInteractions,p=null!==(i=d.pageUrlAllowlist)&&void 0!==i?i:[],v=c.autocapture.elementInteractions.pageUrlAllowlistRegex;d.pageUrlAllowlist=jn(p,v,t),delete d.pageUrlAllowlistRegex}if("object"==typeof c.autocapture.networkTracking&&null!==c.autocapture.networkTracking&&(null===(a=c.autocapture.networkTracking.captureRules)||void 0===a?void 0:a.length)){l.networkTracking=(0,f.Cl)({},c.autocapture.networkTracking);var h=null!==(s=l.networkTracking.captureRules)&&void 0!==s?s:[];try{for(var g=(0,f.Ju)(h),m=g.next();!m.done;m=g.next()){var y=m.value;y.urls=jn(null!==(u=y.urls)&&void 0!==u?u:[],y.urlsRegex,t),delete y.urlsRegex}}catch(b){n={error:b}}finally{try{m&&!m.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}}"boolean"==typeof t.autocapture&&(t.autocapture=(0,f.Cl)({attribution:t.autocapture,fileDownloads:t.autocapture,formInteractions:t.autocapture,pageViews:t.autocapture,sessions:t.autocapture,elementInteractions:t.autocapture,webVitals:t.autocapture,frustrationInteractions:t.autocapture},l)),"object"==typeof t.autocapture&&(t.autocapture=(0,f.Cl)((0,f.Cl)({},t.autocapture),l))}t.defaultTracking=t.autocapture}"customEnrichment"in c&&null!==c.customEnrichment&&!1!==t.customEnrichment&&(t.customEnrichment=c.customEnrichment),t.loggerProvider.debug("Browser config after remote config update:",JSON.stringify(t))}catch(Qo){t.loggerProvider.error("Failed to apply remote configuration because of error: ",Qo)}}}var Nn=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],Un="data-amp-track-",Ln=["div","span","h1","h2","h3","h4","h5","h6"],Mn=n(49
vendor: 45,937 bytes, line 2
2127),Hn=n.n(Mn);function Fn(e,t){return new(Hn())(function(n){e.subscribe({next:function(e){t(e).then(function(e){return n.next(e)}).catch(function(e){return n.error(e)})},error:function(e){n.error(e)},complete:function(){n.complete()}})})}function qn(e,t){return new(Hn())(function(n){var r=!1,o=new Set,i=function(){var e,t;r=!0;try{for(var n=(0,f.Ju)(o),i=n.next();!i.done;i=n.next()){var a=i.value;try{a.unsubscribe()}catch(s){}}}catch(u){e={error:u}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}o.clear()},a=function(e){var t=e.subscribe({next:function(e){r||n.next(e)},error:function(e){r||(r=!0,n.error(e),i())},complete:function(){o.delete(t),r||0!==o.size||(n.complete(),i(),r=!0)}});o.add(t)};return a(e),a(t),i})}function Bn(e){var t=new Set,n=null;function r(){null==n||n.unsubscribe(),n=null,t.clear()}return new(Hn())(function(o){return t.add(o),null===n&&(n=e.subscribe({next:function(e){var n,r,o;try{for(var i=(0,f.Ju)(t),a=i.next();!a.done;a=i.next()){var s=a.value;null===(o=s.next)||void 0===o||o.call(s,e)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},error:function(e){var n,o,i;try{for(var a=(0,f.Ju)(t),s=a.next();!s.done;s=a.next()){var u=s.value;null===(i=u.error)||void 0===i||i.call(u,e)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}r()},complete:function(){var e,n,o;try{for(var i=(0,f.Ju)(t),a=i.next();!a.done;a=i.next()){var s=a.value;null===(o=s.complete)||void 0===o||o.call(s)}}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}r()}})),function(){t.delete(o),0===t.size&&n&&(n.unsubscribe(),n=null)}})}var zn,Yn="https://app.amplitude.com",Wn={US:Yn,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"};var Jn="__AMPLITUDE_MESSENGER_INSTANCE__",Vn="__AMPLITUDE_MESSENGER__",Gn=function(){function e(e){var t=(void 0===e?{}:e).origin,n=void 0===t?Yn:t;this[zn]=!0,this.isSetup=!1,this.messageHandler=null,this.requestCallbacks={},this.actionHandlers=new Map,this.pendingMessages=new Map,this.scriptLoadPromises=new Map,this.endpoint=n}return e.prototype.notify=function(e){var t,n,r,o;null===(n=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===n||n.call(t,"Message sent: ",JSON.stringify(e)),null===(o=null===(r=window.opener)||void 0===r?void 0:r.postMessage)||void 0===o||o.call(r,e,this.endpoint)},e.prototype.sendRequest=function(e,t,n){var r=this;void 0===n&&(n={timeout:15e3});var o="".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),i={id:o,action:e,args:t};return new Promise(function(t,a){r.requestCallbacks[o]={resolve:t,reject:a},r.notify(i),n.timeout>0&&setTimeout(function(){a(new Error("".concat(e," timed out (id: ").concat(o,")"))),delete r.requestCallbacks[o]},n.timeout)})},e.prototype.handleResponse=function(e){var t;this.requestCallbacks[e.id]?(this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]):null===(t=this.logger)||void 0===t||t.warn("No callback found for request id: ".concat(e.id))},e.prototype.registerActionHandler=function(e,t){var n,r,o,i;this.actionHandlers.has(e)&&(null===(i=null===(o=this.logger)||void 0===o?void 0:o.warn)||void 0===i||i.call(o,"Overwriting existing action handler for: ".concat(e))),this.actionHandlers.set(e,t);var a=this.pendingMessages.get(e);if(a){this.pendingMessages.delete(e);try{for(var s=(0,f.Ju)(a),u=s.next();!u.done;u=s.next()){t(u.value)}}catch(c){n={error:c}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}},e.prototype.loadScriptOnce=function(e){return(0,f.sH)(this,void 0,void 0,function(){var t,n,r;return(0,f.YH)(this,function(o){switch(o.label){case 0:if(t=this.scriptLoadPromises.get(e))return[2,t];n=function(e){return document.querySelector('script[src="'.concat(CSS.escape(e),'"]'))?Promise.resolve({status:!0}):new Promise(function(t,n){var r;try{var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=e,o.addEventListener("load",function(){t({status:!0})},{once:!0}),o.addEventListener("error",function(){n({status:!1,message:"Failed to load the script ".concat(e)})}),null===(r=document.head)||void 0===r||r.appendChild(o)}catch(i){n(i)}})}(e).then(function(){}),this.scriptLoadPromises.set(e,n),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,n];case 2:return o.sent(),[3,4];case 3:throw r=o.sent(),this.scriptLoadPromises.delete(e),r;case 4:return[2]}})})},e.prototype.setup=function(e){var t,n,r=this,o=void 0===e?{}:e,i=o.logger,a=o.endpoint;i&&(this.logger=i),a&&this.endpoint===Yn&&(this.endpoint=a),this.isSetup||(this.isSetup=!0,null===(n=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===n||n.call(t,"Setting up messenger"),this.messageHandler=function(e){var t,n,o,i,a;if(null===(n=null===(t=r.logger)||void 0===t?void 0:t.debug)||void 0===n||n.call(t,"Message received: ",JSON.stringify(e)),r.endpoint===e.origin){var s=e.data,u=null==s?void 0:s.action;if(u)if("id"in s&&s.id)null===(i=null===(o=r.logger)||void 0===o?void 0:o.debug)||void 0===i||i.call(o,"Received Response to previous request: ",JSON.stringify(e)),r.handleResponse(s);else{if("ping"===u)return void r.notify({action:"pong"});var c=r.actionHandlers.get(u);if(c)c(s.data);else{var l=null!==(a=r.pendingMessages.get(u))&&void 0!==a?a:[];l.push(s.data),r.pendingMessages.set(u,l)}}}},window.addEventListener("message",this.messageHandler),this.notify({action:"page-loaded"}))},e.prototype.destroy=function(){this.messageHandler&&(window.removeEventListener("message",this.messageHandler),this.messageHandler=null),this.isSetup=!1,this.actionHandlers.clear(),this.pendingMessages.clear(),this.requestCallbacks={},this.scriptLoadPromises.clear();var e=E();(null==e?void 0:e[Vn])===this&&delete e[Vn]},e}();function Kn(e){var t,n=E(),r=null==n?void 0:n[Vn];if("object"==typeof(t=r)&&null!==t&&Jn in t&&!0===t[Jn])return r;var o=new Gn(e);return n&&(n[Vn]=o),o}zn=Jn;var Xn="__AMPLITUDE_BACKGROUND_CAPTURE__";var $n="1.27.3",Qn="[Amplitude] Element Clicked",Zn="[Amplitude] Element Tag",er="[Amplitude] Element Text",tr="[Amplitude] Page URL",nr="[Amplitude] Viewport Height",rr="[Amplitude] Viewport Width",or="[Amplitude] Page View ID",ir="data-amp-mask-attributes",ar=function(e,t){return!t||!t.length||t.some(function(t){return"string"==typeof t?e===t:e.match(t)})},sr=function(e,t){var n=e;try{n=decodeURI(e)}catch(Qo){null==t||t.error("Malformed URI sequence: ",Qo)}return n},ur=["input","select","textarea"],cr=function(e,t){var n,r=null===(n=null===window||void 0===window?void 0:window.getComputedStyle)||void 0===n?void 0:n.call(window,e);return"pointer"===(null==r?void 0:r.getPropertyValue("cursor"))&&"click"===t},lr=function(e){var t=e.pageUrlAllowlist,n=e.pageUrlExcludelist;return!(n&&n.length>0&&ar(window.location.href,n))&&!!ar(window.location.href,t)},fr=function(e,t,n){return void 0===n&&(n=!1),function(r,o){var i,a,s=e.shouldTrackEventResolver,u=null===(a=null===(i=null==o?void 0:o.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===a?void 0:a.call(i);if(!u)return!1;if(s)return s(r,o);if(!lr(e))return!1;var c=String(null==o?void 0:o.getAttribute("type"))||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}var l=cr(o,r);if(n&&l)return!0;if(t){var f=t.some(function(e){var t;return!!(null===(t=null==o?void 0:o.matches)||void 0===t?void 0:t.call(o,e))});if(!f)return!1}switch(u){case"input":case"select":case"textarea":return"change"===r||"click"===r;default:return!!l||"click"===r}}},dr=function(e){return e?e.split(",").map(function(e){return e.trim()}).filter(function(e){return e.length>0&&"id"!==e&&"class"!==e}):[]},pr=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return function(e){return null==e||"object"==typeof e&&0===Object.keys(e).length||"string"==typeof e&&0===e.trim().length}(r)||(t[n]=r),t},{})},vr=function(){var e;try{var t=E(),n=null===(e=null==t?void 0:t.sessionStorage)||void 0===e?void 0:e.getItem("AMP_PAGE_VIEW");if(!n)return;var r=JSON.parse(n);if("string"==typeof r.pageViewId)return r.pageViewId}catch(o){}},hr=function(e,t){return e?t.some(function(t){var n;return null===(n=null==e?void 0:e.matches)||void 0===n?void 0:n.call(e,t)})?e:hr(null==e?void 0:e.parentElement,t):null};var gr,mr=function(e){return!(null===e.event.target||!e.closestTrackedAncestor)};!function(e){e[e.LEFT_OR_TOUCH_CONTACT=0]="LEFT_OR_TOUCH_CONTACT",e[e.MIDDLE=1]="MIDDLE",e[e.RIGHT=2]="RIGHT"}(gr||(gr={}));var yr="__AMPLITUDE_VISUAL_TAGGING__";var br=E(),wr=null==br?void 0:br.console,Er={},Sr={},xr=!1;var Ar={addListener:function(e,t){var n,r=(n=e,!!wr&&"function"==typeof wr[n]&&(Sr[n]||(Sr[n]=wr[n],wr[n]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{if(Er[n]&&!xr){xr=!0;var r=Er[n];r&&r.forEach(function(t){try{t(n,e)}catch(zn){}})}}catch(zn){}return xr=!1,Sr[n].apply(wr,e)}),!0));if(!r)return new Error("Console override failed");Er[e]?Er[e].push(t):Er[e]=[t]},removeListener:function(e){var t,n;try{for(var r=(0,f.Ju)(Object.values(Er)),o=r.next();!o.done;o=r.next())for(var i=o.value,a=i.length-1;a>=0;a--)if(i[a]===e){i.splice(a,1);break}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},_restoreConsole:function(){var e,t;try{for(var n=(0,f.Ju)(Object.entries(Sr)),r=n.next();!r.done;r=n.next()){var o=(0,f.zs)(r.value,2),i=o[0],a=o[1];a&&(wr[i]=a)}}catch(s){e={error:s}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}Sr={},Er={}}},kr=E(),Or=function(){return new(Hn())(function(e){var t=new MutationObserver(function(t){e.next(t)});return document.body&&t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}})},Pr=function(e){return void 0===e&&(e="click"),new(Hn())(function(t){var n,r=function(e){t.next(e)};return null===(n=E())||void 0===n||n.document.addEventListener(e,r,{capture:!0}),function(){var t;null===(t=E())||void 0===t||t.document.removeEventListener(e,r,{capture:!0})}})},Cr=function(){var e=qn(new(Hn())(function(e){var t=function(t){if(t instanceof ErrorEvent){var n={kind:"error"};t.error instanceof Error||t.error instanceof DOMException?n=(0,f.Cl)((0,f.Cl)({},n),{message:t.error.message,stack:t.error.stack,filename:t.filename,lineNumber:t.lineno,columnNumber:t.colno}):"string"==typeof t.error&&(n.message=t.error),e.next(n)}};return kr.addEventListener("error",t),function(){kr.removeEventListener("error",t)}}),new(Hn())(function(e){var t=function(t){var n={kind:"unhandledrejection"};t.reason instanceof Error||t.reason instanceof DOMException?(n.message=t.reason.message,n.stack=t.reason.stack):"string"==typeof t.reason&&(n.message=t.reason),e.next(n)};return kr.addEventListener("unhandledrejection",t),function(){kr.removeEventListener("unhandledrejection",t)}}));return qn(e,new(Hn())(function(e){var t=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=void 0;Array.isArray(n[0])&&"string"==typeof n[0][0]&&(o=n[0][0]),e.next({kind:"console",message:o})};return Ar.addListener("error",t),function(){Ar.removeListener(t)}}))},Tr=function(e,t,n){e.forEach(function(e){if("string"!=typeof e&&"ATTACH_EVENT_PROPERTY"===e.actionType){var r=n.extractDataFromDataSource(e.dataSource,t.closestTrackedAncestor);t.targetElementProperties[e.destinationKey]=r}})},_r={"[Amplitude] Element Clicked":"click","[Amplitude] Element Changed":"change"},Rr=function(e){var t,n,r,o,i=Object.values(_r).reduce(function(e,t){return e[t]=new Set,e},{});if(!e)return i;try{for(var a=(0,f.Ju)(e),s=a.next();!s.done;s=a.next()){var u=s.value;try{try{for(var c=(r=void 0,(0,f.Ju)(u.definition)),l=c.next();!l.done;l=c.next()){var d=l.value,p=_r[d.event_type];p&&i[p].add(u.id)}}catch(v){r={error:v}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}}catch(Qo){console.warn("Skipping Labeled Event due to malformed definition",null==u?void 0:u.id,Qo)}}}catch(h){t={error:h}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},Ir=function(e){var t,n,r,o,i=new Map;try{for(var a=(0,f.Ju)(e),s=a.next();!s.done;s=a.next()){var u=s.value;try{for(var c=(r=void 0,(0,f.Ju)(u.conditions)),l=c.next();!l.done;l=c.next()){var d=l.value;if("LABELED_EVENT"===d.type){var p=d.match.eventId,v=i.get(p);v||(v=[],i.set(p,v)),v.push(u)}}}catch(h){r={error:h}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}}}catch(g){t={error:g}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},jr=function(e,t){return t.filter(function(t){return t.definition.some(function(t){return _r[t.event_type]===e.type&&t.filters.every(function(t){return function(e,t){try{if("[Amplitude] Element Text"===t.subprop_key)return"is"===t.subprop_op&&t.subprop_value.includes(e.targetElementProperties["[Amplitude] Element Text"]);if("[Amplitude] Element Hierarchy"===t.subprop_key)return"autotrack css match"===t.subprop_op&&!!e.closestTrackedAncestor.closest(t.subprop_value.toString())}catch(n){return console.error("Error matching event to filter",n),!1}return!1}(e,t)})})})},Dr=function(){function e(e,t,n,r){this.groupedLabeledEvents=e,this.labeledEventToTriggerMap=t,this.dataExtractor=n,this.options=r}return e.prototype.evaluate=function(e){var t,n,r=this.options.pageActions;if(!r)return e;var o=function(e,t){var n,r,o,i,a=new Set;try{for(var s=(0,f.Ju)(e),u=s.next();!u.done;u=s.next()){var c=u.value,l=t.get(c.id);if(l)try{for(var d=(o=void 0,(0,f.Ju)(l)),p=d.next();!p.done;p=d.next()){var v=p.value;a.add(v)}}catch(h){o={error:h}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}catch(g){n={error:g}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return Array.from(a)}(jr(e,Array.from(this.groupedLabeledEvents[e.type]).map(function(e){return r.labeledEvents[e]})),this.labeledEventToTriggerMap);try{for(var i=(0,f.Ju)(o),a=i.next();!a.done;a=i.next()){var s=a.value;Tr(s.actions,e,this.dataExtractor)}}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return e},e.prototype.update=function(e,t,n){this.groupedLabeledEvents=e,this.labeledEventToTriggerMap=t,this.options=n},e}(),Nr=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",ir,dn]),Ur=["type"],Lr=["svg","path","g"],Mr=["password","hidden"];function Hr(e,t){var n,r,o,i,a,s;if(null===e)return null;var u=String(e.tagName).toLowerCase(),c={tag:u},l=Array.from(null!==(i=null===(o=e.parentElement)||void 0===o?void 0:o.children)&&void 0!==i?i:[]);l.length&&(c.index=l.indexOf(e),c.indexOfType=l.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var d=null===(s=null===(a=e.previousElementSibling)||void 0===a?void 0:a.tagName)||void 0===s?void 0:s.toLowerCase();d&&(c.prevSib=String(d));var p=e.getAttribute("id");p&&(c.id=String(p));var v=Array.from(e.classList);v.length&&(c.classes=v);var h={},g=Array.from(e.attributes).filter(function(e){return!Nr.has(e.name)}),m=!function(e){var t,n,r,o=null===(n=null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase)||void 0===n?void 0:n.call(t),i=e instanceof HTMLElement&&"true"===(null===(r=e.getAttribute("contenteditable"))||void 0===r?void 0:r.toLowerCase());return!ur.includes(o)&&!i}(e);if(!Mr.includes(String(e.getAttribute("type")))&&!Lr.includes(u))try{for(var y=(0,f.Ju)(g),b=y.next();!b.done;b=y.next()){var w=b.value;m&&!Ur.includes(w.name)||(t.has(w.name)?h[w.name]=pn:h[w.name]=String(w.value).substring(0,128))}}catch(E){n={error:E}}finally{try{b&&!b.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}return Object.keys(h).length&&(c.attrs=h),c}var Fr,qr=function(){function e(e,t){this.value=e,this.optimized=t}return e.prototype.toString=function(){return this.value},e}(),Br=function(e,t,n){var r,o;if(e.nodeType!==Node.ELEMENT_NODE)return null;var i=e.getAttribute("id");if(t){if(i)return new qr(l(i),!0);var a=e.tagName.toLowerCase();if("body"===a||"head"===a||"html"===a)return new qr(a,!0)}var s=e.tagName.toLowerCase();if(i)return new qr(s+l(i),!0);var u=e.parentNode;if(!u||u.nodeType===Node.DOCUMENT_NODE)return new qr(s,!0);function c(e){var t=e.getAttribute("class");return t?t.split(/\s+/g).filter(Boolean).map(function(e){return"$"+e}):[]}function l(e){return"#"+CSS.escape(e)}for(var d=c(e),p=!1,v=!1,h=-1,g=-1,m=u.children,y=0;m&&(-1===h||!v)&&y<m.length;++y){var b=m[y];if(b.nodeType===Node.ELEMENT_NODE)if(g+=1,b!==e){if(!v&&b.tagName.toLowerCase()===s){p=!0;var w=new Set(d);if(w.size)for(var E=c(b),S=0;S<E.length;++S){var x=E[S];if(w.has(x)&&(w.delete(x),!w.size)){v=!0;break}}else v=!0}}else h=g}var A=s;if(n&&"input"===s.toLowerCase()&&e.getAttribute("type")&&!e.getAttribute("id")&&!e.getAttribute("class")&&(A+="[type="+CSS.escape(e.getAttribute("type")||"")+"]"),v)A+=":nth-child("+String(h+1)+")";else if(p)try{for(var k=(0,f.Ju)(d),O=k.next();!O.done;O=k.next()){var P=O.value;A+="."+CSS.escape(P.slice(1))}}catch(C){r={error:C}}finally{try{O&&!O.done&&(o=k.return)&&o.call(k)}finally{if(r)throw r.error}}return new qr(A,!1)},zr=function(e,t){var n,r,o,i=this;this.replaceSensitiveString=function(e){return mn(e,i.additionalMaskTextPatterns)},this.getHierarchy=function(e){var t,n,r,o,a,s=performance.now();if(!e)return[];for(var u=function(e){var t=[];if(!e)return t;t.push(e);for(var n=e.parentElement;n&&"HTML"!==n.tagName;)t.push(n),n=n.parentElement;return t}(e),c=new Map,l=u.length-1;l>=0;l--){var d=u[l];if(d){var p=dr(d.getAttribute(ir)),v=l===u.length-1?[]:null!==(r=c.get(u[l+1]))&&void 0!==r?r:new Set,h=new Set((0,f.fX)((0,f.fX)([],(0,f.zs)(v),!1),(0,f.zs)(p),!1));c.set(d,h)}}a=u.map(function(e){var t;return Hr(e,null!==(t=c.get(e))&&void 0!==t?t:new Set)});var g=function(e){(null==e?void 0:e.attrs)&&Object.entries(e.attrs).forEach(function(t){var n=(0,f.zs)(t,2),r=n[0],o=n[1];e.attrs&&(e.attrs[r]=i.replaceSensitiveString(o))})};try{for(var m=(0,f.Ju)(a),y=m.next();!y.done;y=m.next())g(y.value)}catch(w){t={error:w}}finally{try{y&&!y.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}var b=performance.now();return null===(o=i.diagnosticsClient)||void 0===o||o.recordHistogram("autocapturePlugin.getHierarchy",b-s),a},this.getNearestLabel=function(e){var t,n=e.parentElement;if(!n)return"";try{t=n.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(r){t=null}return t?i.getText(t):i.getNearestLabel(n)},this.getElementPath=function(e){var t;if(!e)return"";var n=performance.now(),r=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return"";for(var n=[],r=e;r;){var o=Br(r,Boolean(t),r===e);if(!o)break;if(n.push(o),o.optimized)break;r=r.parentElement}return n.reverse(),n.join(" > ")}(e),o=performance.now();return null===(t=i.diagnosticsClient)||void 0===t||t.recordHistogram("autocapturePlugin.getElementPath",o-n),r},this.getEventProperties=function(e,t,n){var r,o,a,s,u,c,l=null===(a=null===(o=null==t?void 0:t.tagName)||void 0===o?void 0:o.toLowerCase)||void 0===a?void 0:a.call(o),d="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},p=i.getHierarchy(t),v=null===(s=p[0])||void 0===s?void 0:s.attrs,h=i.getNearestLabel(t),g=(u=null!=v?v:{},c=n,Object.entries(u).reduce(function(e,t){var n=(0,f.zs)(t,2),r=n[0],o=n[1];if(r.startsWith(c)){var i=r.replace(c,"");i&&(e[i]=o||"")}return e},{})),m=((r={})["[Amplitude] Element Hierarchy"]=p,r[Zn]=l,r[er]=i.getText(t),r["[Amplitude] Element Position Left"]=null==d.left?null:Math.round(d.left),r["[Amplitude] Element Position Top"]=null==d.top?null:Math.round(d.top),r["[Amplitude] Element Attributes"]=g,r["[Amplitude] Element Path"]=i.getElementPath(t),r["[Amplitude] Element Parent Label"]=h,r[tr]=sr(window.location.href.split("?")[0]),r["[Amplitude] Page Title"]=yn(i.replaceSensitiveString),r[nr]=window.innerHeight,r[rr]=window.innerWidth,r),y=vr();if(y&&(m[or]=y),m["[Amplitude] Element ID"]=t.getAttribute("id")||"",m["[Amplitude] Element Class"]=t.getAttribute("class"),m["[Amplitude] Element Aria Label"]=null==v?void 0:v["aria-label"],"a"===l&&"click"===e&&t instanceof HTMLAnchorElement){var b=t.href.substring(0,128);m["[Amplitude] Element Href"]=i.replaceSensitiveString(b)}return pr(m)},this.addTypeAndTimestamp=function(e,t){return{event:e,timestamp:Date.now(),type:t}},this.addAdditionalEventProperties=function(e,t,n,r,o){void 0===o&&(o=!1);var a=i.addTypeAndTimestamp(e,t);if(function(e){return"click"===e.type||"change"===e.type}(a)&&null!==a.event.target){if(o&&cr(a.event.target,a.type))return a.closestTrackedAncestor=a.event.target,a.targetElementProperties=i.getEventProperties(a.type,a.closestTrackedAncestor,r),a;var s=hr(a.event.target,n);return s&&(a.closestTrackedAncestor=s,a.targetElementProperties=i.getEventProperties(a.type,s,r)),a}return a},this.extractDataFromDataSource=function(e,t){if("DOM_ELEMENT"===e.sourceType){var n=function(e,t){try{if("DOM_ELEMENT"===e.sourceType){var n=document.documentElement;return e.scope&&t&&(n=t.closest(e.scope)),n&&e.selector?n.querySelector(e.selector):n}}catch(r){return}}(e,t);if(!n)return;return"TEXT"===e.elementExtractType?i.getText(n):"ATTRIBUTE"===e.elementExtractType&&e.attribute?n.getAttribute(e.attribute):void 0}},this.getTextWithMaskedDescendants=function(e){var t,n,r="[".concat(dn,"], [contenteditable]");if(!e.querySelector(r))return e.innerText;var o="",a=Array.from(e.childNodes);try{for(var s=(0,f.Ju)(a),u=s.next();!u.done;u=s.next()){var c=u.value;c.nodeType!==Node.TEXT_NODE?c instanceof Element&&(c.hasAttribute(dn)||c.hasAttribute("contenteditable")?o+=pn:o+=i.getTextWithMaskedDescendants(c)):o+=c.textContent||""}}catch(l){t={error:l}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return o},this.getText=function(e){if(null!==e.closest("[".concat(dn,"]")))return pn;var t="";return t=e.querySelector("[".concat(dn,"], [contenteditable]"))?i.getTextWithMaskedDescendants(e):e.innerText||"",i.replaceSensitiveString(t.substring(0,255)).replace(/\s+/g," ").trim()},this.getEventTagProps=function(e){var t,n,r;if(!e)return{};var o=null===(r=null===(n=null==e?void 0:e.tagName)||void 0===n?void 0:n.toLowerCase)||void 0===r?void 0:r.call(n),a=((t={})[Zn]=o,t[er]=i.getText(e),t[tr]=window.location.href.split("?")[0],t);return pr(a)},this.diagnosticsClient=null==t?void 0:t.diagnosticsClient;var a=null!==(o=e.maskTextRegex)&&void 0!==o?o:[],s=[];try{for(var u=(0,f.Ju)(a),c=u.next();!c.done;c=u.next()){var l=c.value;if(s.length>=25)break;if(l instanceof RegExp)s.push(l);else if("pattern"in l&&"string"==typeof l.pattern)try{s.push(new RegExp(l.pattern,"i"))}catch(d){}}}catch(p){n={error:p}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}this.additionalMaskTextPatterns=s};!function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable",e.ScrollObservable="scrollObservable",e.ExposureObservable="exposureObservable",e.BrowserErrorObservable="browserErrorObservable",e.SelectionObservable="selectionObservable",e.MouseMoveObservable="mouseMoveObservable"}(Fr||(Fr={}));var Yr=function(e,t){var n,r,o,i,a,s,u,c,l,d,p,v;void 0===e&&(e={}),null==t||t.diagnosticsClient.setTag("plugin.autocapture.version",$n);var h=e.dataAttributePrefix,g=void 0===h?Un:h,m=e.visualTaggingOptions,y=void 0===m?{enabled:!0}:m;e.cssSelectorAllowlist=null!==(n=e.cssSelectorAllowlist)&&void 0!==n?n:Nn,e.actionClickAllowlist=null!==(r=e.actionClickAllowlist)&&void 0!==r?r:Ln,e.debounceTime=null!==(o=e.debounceTime)&&void 0!==o?o:0;var b=!1!==(null===(i=e.viewportContentUpdated)||void 0===i?void 0:i.enabled),w=null!==(u=null!==(s=null===(a=e.viewportContentUpdated)||void 0===a?void 0:a.exposureDuration)&&void 0!==s?s:e.exposureDuration)&&void 0!==u?u:150;e.viewportContentUpdated=(0,f.Cl)((0,f.Cl)({},e.viewportContentUpdated),{exposureDuration:w}),e.pageUrlExcludelist=null===(c=e.pageUrlExcludelist)||void 0===c?void 0:c.reduce(function(e,t){if("string"==typeof t&&e.push(t),t instanceof RegExp&&e.push(t),"object"==typeof t&&null!==t&&"pattern"in t)try{e.push(new RegExp(t.pattern))}catch(n){return console.warn("Invalid regex pattern: ".concat(t.pattern),n),e}return e},[]);var S,x="@amplitude/plugin-autocapture-browser",A=[],k=new zr(e,t),O=new Set,P=new Set,C=function(){var t,n,r=Bn(Pr().map(function(t){return k.addAdditionalEventProperties(t,"click",e.cssSelectorAllowlist,g)})),o=Bn(new(Hn())(function(t){var n,r=function(n){var r=k.addAdditionalEventProperties(n,"change",e.cssSelectorAllowlist,g);t.next(r)};return null===(n=E())||void 0===n||n.document.addEventListener("change",r,{capture:!0}),function(){var e;return null===(e=E())||void 0===e?void 0:e.document.removeEventListener("change",r)}}));window.navigation&&(n=Bn(new(Hn())(function(t){var n=function(n){var r=k.addAdditionalEventProperties(n,"navigate",e.cssSelectorAllowlist,g);t.next(r)};return window.navigation.addEventListener("navigate",n),function(){window.navigation.removeEventListener("navigate",n)}})));var i=Bn(Or().map(function(t){return k.addAdditionalEventProperties(t,"mutation",e.cssSelectorAllowlist,g)})),a=new(Hn())(function(e){var t,n=function(t){e.next(t)};return null===(t=E())||void 0===t||t.addEventListener("scroll",n),function(){var e;null===(e=E())||void 0===e||e.removeEventListener("scroll",n)}}),s=function(e,t){return new(Hn())(function(n){var r,o=E();if(!(null==o?void 0:o.IntersectionObserver))return function(){};var i=new IntersectionObserver(function(e){e.forEach(function(e){n.next(e)})},{root:null,rootMargin:"0px",threshold:1}),a=t.join(",");(null!==(r=null==o?void 0:o.document.querySelectorAll(a))&&void 0!==r?r:[]).forEach(function(e){i.observe(e)});var s=e.subscribe(function(e){return e.event.forEach(function(e){return e.addedNodes.forEach(function(e){e instanceof Element&&(e.matches(a)&&i.observe(e),e.querySelectorAll(a).forEach(function(e){i.observe(e)}))})})});return function(){s.unsubscribe(),i.disconnect()}})}(i,e.cssSelectorAllowlist);return(t={})[Fr.ChangeObservable]=o,t[Fr.ClickObservable]=r,t[Fr.MutationObservable]=i,t[Fr.NavigateObservable]=n,t[Fr.ScrollObservable]=a,t[Fr.ExposureObservable]=s,t},T=Rr(Object.values(null!==(d=null===(l=e.pageActions)||void 0===l?void 0:l.labeledEvents)&&void 0!==d?d:{})),_=Ir(null!==(v=null===(p=e.pageActions)||void 0===p?void 0:p.triggers)&&void 0!==v?v:[]),R=function(e,t,n,r){return new Dr(e,t,n,r)}(T,_,k,e);return{name:x,type:"enrichment",setup:function(t,n){return(0,f.sH)(void 0,void 0,void 0,function(){var r,o,i,a,s,u,c,l,d,p,v,h,m,I,j,D,N,U,L,M,H;return(0,f.YH)(this,function(F){return"undefined"==typeof document||(r=!1,o={maxX:void 0,maxY:void 0},t.fetchRemoteConfig&&(t.remoteConfigClient?t.remoteConfigClient.subscribe("configs.analyticsSDK.pageActions","all",function(t){!function(t){var n,r;t&&(e.pageActions=(0,f.Cl)((0,f.Cl)({},e.pageActions),t),T=Rr(Object.values(null!==(n=e.pageActions.labeledEvents)&&void 0!==n?n:{})),_=Ir(null!==(r=e.pageActions.triggers)&&void 0!==r?r:[]),R.update(T,_,e))}(t)}):t.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),i=fr(e,e.cssSelectorAllowlist),a=fr(e,e.actionClickAllowlist),s=C(),u=function(e){var t=e.amplitude,n=e.allObservables,r=e.shouldTrackEvent,o=e.evaluateTriggers;return n.clickObservable.filter(mr).filter(function(e){return r("click",e.closestTrackedAncestor)}).map(function(e){return o(e)}).subscribe(function(e){null==t||t.track(Qn,e.targetElementProperties)})}({allObservables:s,amplitude:n,shouldTrackEvent:i,evaluateTriggers:R.evaluate.bind(R)}),A.push(u),c=function(e){var t=e.amplitude,n=e.allObservables,r=e.getEventProperties,o=e.shouldTrackEvent,i=e.evaluateTriggers;return n.changeObservable.filter(mr).filter(function(e){return o("change",e.closestTrackedAncestor)}).map(function(e){return i(e)}).subscribe(function(e){null==t||t.track("[Amplitude] Element Changed",r("change",e.closestTrackedAncestor))})}({allObservables:s,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return k.getEventProperties.apply(k,(0,f.fX)((0,f.fX)([],(0,f.zs)(e),!1),[g],!1))},amplitude:n,shouldTrackEvent:i,evaluateTriggers:R.evaluate.bind(R)}),A.push(c),l=function(e){var t=e.amplitude,n=e.allObservables,r=e.options,o=e.getEventProperties,i=e.shouldTrackEvent,a=e.shouldTrackActionClick,s=n.clickObservable,u=n.mutationObservable,c=n.navigateObservable,l=s.filter(function(e){return!i("click",e.closestTrackedAncestor)}).map(function(e){var t=hr(e.event.target,r.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=o(e.type,e.closestTrackedAncestor)),e}).filter(mr).filter(function(e){return a("click",e.closestTrackedAncestor)}),f=c?qn(u,c):u,d=qn(l,f),p=null,v=null;return Fn(d,function(e){if(p&&(clearTimeout(p),p=null),"click"===e.type)return v=e,p=setTimeout(function(){p=null,v=null},500),Promise.resolve(null);if(v){var t=v;return v=null,Promise.resolve(t)}return Promise.resolve(null)}).subscribe(function(e){e&&(null==t||t.track(Qn,o("click",e.closestTrackedAncestor)))})}({allObservables:s,options:e,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return k.getEventProperties.apply(k,(0,f.fX)((0,f.fX)([],(0,f.zs)(e),!1),[g],!1))},amplitude:n,shouldTrackEvent:i,shouldTrackActionClick:a}),l&&A.push(l),d=function(e){e.amplitude;var t=e.allObservables.scrollObservable,n={maxX:0,maxY:0},r=t.subscribe(function(){var e,t,r,o,i=E(),a=Math.floor(null!==(t=null!==(e=null==i?void 0:i.scrollX)&&void 0!==e?e:null==i?void 0:i.pageXOffset)&&void 0!==t?t:0),s=Math.floor(null!==(o=null!==(r=null==i?void 0:i.scrollY)&&void 0!==r?r:null==i?void 0:i.pageYOffset)&&void 0!==o?o:0);n.maxX=Math.max(n.maxX,a),n.maxY=Math.max(n.maxY,s)});return{unsubscribe:function(){r.unsubscribe()},getState:function(){return n},reset:function(){n.maxX=0,n.maxY=0}}}({allObservables:s,amplitude:n}),A.push(d),p={},v=E(),h=function(e){e&&r||(setTimeout(function(){r=!1},100),r=!0,function(e){var t,n,r,o,i,a,s=e.amplitude,u=e.scrollTracker,c=e.currentElementExposed,l=e.elementExposedForPage,f=e.exposureTracker,d=e.isPageEnd,p=e.lastScroll,v=u.getState(),h=E(),g=null!==(n=null==h?void 0:h.innerWidth)&&void 0!==n?n:0,m=null!==(r=null==h?void 0:h.innerHeight)&&void 0!==r?r:0,y=((t={})[tr]=sr(null!==(a=null===(i=null===(o=null==h?void 0:h.location)||void 0===o?void 0:o.href)||void 0===i?void 0:i.split("?")[0])&&void 0!==a?a:""),t["[Amplitude] Max Page X"]=v.maxX+g,t["[Amplitude] Max Page Y"]=v.maxY+m,t[nr]=m,t[rr]=g,t["[Amplitude] Element Exposed"]=Array.from(c),t),b=vr();b&&(y[or]=b),0!==c.size||v.maxX!==p.maxX||v.maxY!==p.maxY?(null==s||s.track("[Amplitude] Viewport Content Updated",y),p.maxX=v.maxX,p.maxY=v.maxY,c.clear(),d&&(u.reset(),l.clear(),null==f||f.reset())):d&&(u.reset(),l.clear(),null==f||f.reset())}({amplitude:n,scrollTracker:d,currentElementExposed:P,elementExposedForPage:O,exposureTracker:p.exposure,isPageEnd:e,lastScroll:o}))},m=function(e){!function(e,t,n,r){if(!t.has(e)){t.add(e),n.add(e);var o=Array.from(n);JSON.stringify(o).length>=18e3&&r(!1)}}(e,O,P,h)},b&&(p.exposure=function(e){var t=e.allObservables,n=e.onExposure,r=e.dataExtractor,o=e.exposureDuration,i=void 0===o?150:o,a=new Map,s=new Map,u=t.exposureObservable.subscribe(function(e){var t=e,o=t.target;if(t.isIntersecting){if(!a.get(o)){var u=setTimeout(function(){a.set(o,!0);var e=r.getElementPath(o);n(e),s.set(o,null)},i);s.set(o,u)}}else!t.isIntersecting&&t.intersectionRatio<1&&(u=s.get(o))&&(clearTimeout(u),s.set(o,null))});return{unsubscribe:function(){u.unsubscribe()},reset:function(){s.forEach(function(e){e&&clearTimeout(e)}),s.clear(),a.clear()}}}({allObservables:s,onExposure:m,dataExtractor:k,exposureDuration:w}),p.exposure&&A.push(p.exposure),I=function(){h(!0)},null==v||v.addEventListener("beforeunload",I),S=function(){null==v||v.removeEventListener("beforeunload",I)},A.push({unsubscribe:function(){return S()}}),(j=s[Fr.NavigateObservable])?A.push(j.subscribe(function(){h(!0)})):v&&(D=function(){h(!0)},v.addEventListener("popstate",D),N=v.history.pushState,v.history&&N&&(v.history.pushState=new Proxy(N,{apply:function(e,t,n){var r=(0,f.zs)(n,3),o=r[0],i=r[1],a=r[2];e.apply(t,[o,i,a]),h(!0)}})),A.push({unsubscribe:function(){v.removeEventListener("popstate",D),v.history&&N&&(v.history.pushState=N)}}))),null===(H=null==t?void 0:t.loggerProvider)||void 0===H||H.log("".concat(x," has been successfully added.")),window.opener&&y.enabled&&(U=e.cssSelectorAllowlist,L=e.actionClickAllowlist,function(e,t){var n=e;if(!0!==n[yr]){n[yr]=!0;var r=t.dataExtractor,o=t.isElementSelectable,i=t.cssSelectorAllowlist,a=t.actionClickAllowlist,s=null,u=function(t){e.notify({action:"element-selected",data:t})},c=function(t,n){"selector-mode-changed"===t?e.notify({action:"track-selector-mode-changed",data:n}):"selector-moved"===t&&e.notify({action:"track-selector-moved",data:n})};e.registerActionHandler("initialize-visual-tagging-selector",function(t){e.loadScriptOnce("https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz").then(function(){var n;s=null===(n=null===window||void 0===window?void 0:window.amplitudeVisualTaggingSelector)||void 0===n?void 0:n.call(window,{getEventTagProps:r.getEventTagProps,isElementSelectable:function(e){return!o||o((null==t?void 0:t.actionType)||"click",e)},onTrack:c,onSelect:u,visualHighlightClass:"amp-visual-tagging-selector-highlight",messenger:e,cssSelectorAllowlist:i,actionClickAllowlist:a,extractDataFromDataSource:r.extractDataFromDataSource,dataExtractor:r,diagnostics:{autocapture:{version:$n}}}),e.notify({action:"selector-loaded"})}).catch(function(){var t;null===(t=e.logger)||void 0===t||t.warn("Failed to initialize visual tagging selector")})}),e.registerActionHandler("close-visual-tagging-selector",function(){var e;null===(e=null==s?void 0:s.close)||void 0===e||e.call(s)})}}(M=Kn(),{dataExtractor:k,isElementSelectable:fr(e,(0,f.fX)((0,f.fX)([],(0,f.zs)(U),!1),(0,f.zs)(L),!1)),cssSelectorAllowlist:U,actionClickAllowlist:L}),function(e,t){var n,r=e;if(!0!==r[Xn]){r[Xn]=!0;var o=null!==(n=null==t?void 0:t.scriptUrl)&&void 0!==n?n:"https://cdn.amplitude.com/libs/background-capture-1.0.1.js.gz",i=null,a=function(t,n){var r,o;"background-capture-complete"===t&&(null===(o=null===(r=e.logger)||void 0===r?void 0:r.debug)||void 0===o||o.call(r,"Background capture complete"),e.notify({action:"background-capture-complete",data:n}))};e.registerActionHandler("initialize-background-capture",function(){var t,n;null===(n=null===(t=e.logger)||void 0===t?void 0:t.debug)||void 0===n||n.call(t,"Initializing background capture (external script)");var r=new URL(o,e.endpoint).toString();e.loadScriptOnce(r).then(function(){var t,n,r;null===(n=null===(t=e.logger)||void 0===t?void 0:t.debug)||void 0===n||n.call(t,"Background capture script loaded (external)"),i=null===(r=null===window||void 0===window?void 0:window.amplitudeBackgroundCapture)||void 0===r?void 0:r.call(window,{messenger:e,onBackgroundCapture:a}),e.notify({action:"background-capture-loaded"})}).catch(function(){var t;null===(t=e.logger)||void 0===t||t.warn("Failed to initialize background capture")})}),e.registerActionHandler("close-background-capture",function(){var e;null===(e=null==i?void 0:i.close)||void 0===e||e.call(i),i=null})}}(M),M.setup((0,f.Cl)({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:Wn[t.serverZone]})))),[2]})})},execute:function(e){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,f.sH)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,f.YH)(this,function(o){try{for(e=(0,f.Ju)(A),t=e.next();!t.done;t=e.next())t.value.unsubscribe()}catch(i){n={error:i}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}return[2]})})}}},Wr=(0,f.fX)(['input[type="button"]','input[type="submit"]','input[type="reset"]','input[type="image"]','input[type="file"]'],(0,f.zs)(["a","button",'[role="button"]','[role="link"]','[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]','[role="tab"]','[role="treeitem"]','[contenteditable="true" i]']),!1),Jr=Wr,Vr=Wr,Gr=["*"],Kr=["mutation","navigate"];function Xr(e,t){var n,r,o,i,a=t.event,s=a.pageX,u=a.pageY;e.yMin=Math.min(null!==(n=e.yMin)&&void 0!==n?n:u,u),e.yMax=Math.max(null!==(r=e.yMax)&&void 0!==r?r:u,u),e.xMin=Math.min(null!==(o=e.xMin)&&void 0!==o?o:s,s),e.xMax=Math.max(null!==(i=e.xMax)&&void 0!==i?i:s,s),e.isOutOfBounds=e.yMax-e.yMin>50||e.xMax-e.xMin>50}function $r(e){if(0===e.length)return null;var t=e[0],n=e[e.length-1];return{rageClickEvent:(0,f.Cl)({"[Amplitude] Begin Time":new Date(t.timestamp).toISOString(),"[Amplitude] End Time":new Date(n.timestamp).toISOString(),"[Amplitude] Duration":n.timestamp-t.timestamp,"[Amplitude] Clicks":e.map(function(e){return{X:e.event.pageX,Y:e.event.pageY,Time:e.timestamp}}),"[Amplitude] Click Count":e.length},t.targetElementProperties),time:t.timestamp}}function Qr(e){var t=this,n=e.amplitude,r=e.allObservables,o=e.shouldTrackRageClick,i=r.clickObservable,a=r.selectionObservable,s=[],u={},c=null;function l(e){s=[],u={},e&&(Xr(u,e),s.push(e))}var d=Fn(i.filter(function(e){return o("click",e.closestTrackedAncestor)}),function(e){return(0,f.sH)(t,void 0,void 0,function(){var t;return(0,f.YH)(this,function(n){return Xr(u,e),t=null,0===s.length||function(e,t){return e.length>0&&e[e.length-1].closestTrackedAncestor!==t.closestTrackedAncestor}(s,e)||function(e,t){var n=e[Math.max(0,e.length-4+1)];return t.timestamp-n.timestamp>=1e3}(s,e)||u.isOutOfBounds?(c&&(t=$r(s)),l(e)):s.push(e),c&&(clearTimeout(c.timerId),c.resolve(t),c=null),s.length>=4?[2,new Promise(function(e){c={resolve:e,timerId:setTimeout(function(){e($r(s))},1e3)}})]:[2,null]})})}),p=null==a?void 0:a.subscribe(function(){l()}),v=d.subscribe(function(e){null!==e&&n.track("[Amplitude] Rage Click",e.rageClickEvent,{time:e.time})});return{unsubscribe:function(){v.unsubscribe(),null==p||p.unsubscribe()}}}var Zr,eo;!function(e){e.INCREASING="increasing",e.DECREASING="decreasing"}(Zr||(Zr={})),function(e){e.X="x",e.Y="y"}(eo||(eo={}));function to(e){var t=e.changes,n=e.changesThreshold,r=e.thresholdMs;return!(t.length<n)&&t[t.length-1]-t[0]<r}function no(e){e.changes=[],e.startTime=void 0}function ro(e){for(var t=e.changes,n=e.thresholdMs,r=0,o=t[t.length-1];r<t.length;r++){if(o-t[r]<n)break}0!==r&&(e.startTime=t[r],e.changes.splice(0,r))}var oo=function(e){var t=e.mouseDirectionChangeObservable,n=e.directionChanges,r=void 0===n?20:n,o=e.thresholdMs,i=void 0===o?2e3:o;return new(Hn())(function(e){var n={changes:[],changesThreshold:r,thresholdMs:i},o={changes:[],changesThreshold:r,thresholdMs:i},a=void 0,s=null;function u(){void 0!==a&&(e.next(a),a=void 0,null!==s&&clearTimeout(s),no(n),no(o))}return t.subscribe(function(e){null!==s&&clearTimeout(s),function(e){var t=+Date.now();e.startTime=e.startTime||t;var n=e.changes,r=e.changesThreshold;n.push(t),n.length>r&&n.shift()}(e===eo.X?n:o);var t=function(e,t){var n=void 0;if(to(e)&&(n=e.startTime),to(t)){var r=t.startTime;r&&(!n||r<n)&&(n=r)}return n}(n,o);return t?(a=a||t,s=setTimeout(function(){u(),s=null},i)):u(),ro(n),ro(o),function(){null!==s&&(clearTimeout(s),s=null)}})})},io=function(e){var t=e.amplitude,n=e.options,r=e.allObservables,o=e.directionChanges,i=void 0===o?20:o,a=e.thresholdMs,s=void 0===a?2e3:a,u=function(e){var t=e.allWindowObservables.mouseMoveObservable;return new(Hn())(function(e){var n=null,r=null,o=null;return t.subscribe(function(t){var i={x:t.clientX,y:t.clientY};null!==n?(i.x>n.x?(r===Zr.DECREASING&&e.next(eo.X),r=Zr.INCREASING):i.x<n.x&&(r===Zr.INCREASING&&e.next(eo.X),r=Zr.DECREASING),i.y>n.y?(o===Zr.DECREASING&&e.next(eo.Y),o=Zr.INCREASING):i.y<n.y&&(o===Zr.INCREASING&&e.next(eo.Y),o=Zr.DECREASING),n=i):n=i})})}({allWindowObservables:r});return oo({mouseDirectionChangeObservable:u,directionChanges:i,thresholdMs:s}).subscribe(function(e){lr(n)&&t.track("[Amplitude] Thrashed Cursor",void 0,{time:e})})};function ao(e,t,n,r){if(!r)return[];var o=e[t];return"object"==typeof o&&null!==o&&"cssSelectorAllowlist"in o&&Array.isArray(o.cssSelectorAllowlist)?o.cssSelectorAllowlist:n}var so=4e3,uo=function(e){var t;void 0===e&&(e={});var n="@amplitude/plugin-frustration-browser",r=[],o=!1!==e.errorClicks;e.errorClicks||(o=!1);var i=!1!==e.deadClicks&&null!==e.deadClicks,a=!1!==e.rageClicks&&null!==e.rageClicks,s=!1!==e.thrashedCursor&&null!==e.thrashedCursor;e.thrashedCursor||(s=!1);var u=ao(e,"rageClicks",Gr,a),c=ao(e,"deadClicks",Jr,i),l=ao(e,"errorClicks",Vr,o),d=null!==(t=e.dataAttributePrefix)&&void 0!==t?t:Un,p=new zr(e),v=(0,f.fX)([],(0,f.zs)(new Set((0,f.fX)((0,f.fX)((0,f.fX)([],(0,f.zs)(u),!1),(0,f.zs)(c),!1),(0,f.zs)(l),!1))),!1),h=function(){var e,t,n=Bn(Pr("pointerdown").map(function(e){return p.addAdditionalEventProperties(e,"click",v,d,!0)})),r=Bn(Cr().map(function(e){return p.addTypeAndTimestamp(e,"error")})),o=Bn(Or().map(function(e){return p.addAdditionalEventProperties(e,"mutation",v,d)}));window.navigation&&(t=Bn(new(Hn())(function(e){var t=function(t){e.next((0,f.Cl)((0,f.Cl)({},t),{type:"navigate"}))};return window.navigation.addEventListener("navigate",t),function(){window.navigation.removeEventListener("navigate",t)}}).map(function(e){return p.addAdditionalEventProperties(e,"navigate",v,d)})));var i=Bn(new(Hn())(function(e){var t=function(){var t=document.activeElement;if(t&&("TEXTAREA"===t.tagName||"INPUT"===t.tagName)){try{if(t.selectionStart===t.selectionEnd)return}catch(r){return}return e.next()}var n=window.getSelection();if(n&&!n.isCollapsed)return e.next()};return window.document.addEventListener("selectionchange",t),function(){window.document.removeEventListener("selectionchange",t)}})),a=Bn(new(Hn())(function(e){var t=function(t){e.next(t)},n={capture:!0};return kr.document.addEventListener("mousemove",t,n),function(){kr.document.removeEventListener("mousemove",t,n)}}));return(e={})[Fr.ClickObservable]=n,e[Fr.MutationObservable]=o,e[Fr.NavigateObservable]=t,e[Fr.BrowserErrorObservable]=r,e[Fr.SelectionObservable]=i,e[Fr.MouseMoveObservable]=a,e};return{name:n,type:"enrichment",setup:function(t,v){return(0,f.sH)(void 0,void 0,void 0,function(){var g,m,y,b,w,E,S,x,A,k,O;return(0,f.YH)(this,function(P){return"undefined"==typeof document||(g=h(),a&&(m=fr(e,u),y=Qr({allObservables:g,amplitude:v,shouldTrackRageClick:m}),r.push(y)),i&&(b=fr(e,c),w=function(e){var t=e.amplitude,n=e.allObservables,r=e.getEventProperties,o=e.shouldTrackDeadClick,i=n.clickObservable,a=n.mutationObservable,s=n.navigateObservable,u=i.filter(function(e){return mr(e)&&o("click",e.closestTrackedAncestor)&&e.event.target instanceof Element&&null===e.event.target.closest('a[target="_blank"]')&&e.event.button===gr.LEFT_OR_TOUCH_CONTACT}),c=s?qn(a,s):a,l=qn(u,c),d=null;return Fn(l,function(e){return d&&Kr.includes(e.type)?(clearTimeout(d),d=null,Promise.resolve(null)):"click"===e.type?d?Promise.resolve(null):new Promise(function(t){d=setTimeout(function(){t(e),d=null},3e3)}):Promise.resolve(null)}).subscribe(function(e){if(e){var n={"[Amplitude] X":e.event.clientX,"[Amplitude] Y":e.event.clientY};t.track("[Amplitude] Dead Click",(0,f.Cl)((0,f.Cl)({},r("click",e.closestTrackedAncestor)),n),{time:e.timestamp})}})}({amplitude:v,allObservables:g,getEventProperties:function(e,t){return p.getEventProperties(e,t,d)},shouldTrackDeadClick:b}),r.push(w)),o&&(E=fr(e,l),S=function(e){var t=e.amplitude,n=e.allObservables,r=e.shouldTrackErrorClick,o=n.clickObservable,i=n.browserErrorObservable,a=o.filter(function(e){return mr(e)&&r("click",e.closestTrackedAncestor)&&e.event.target instanceof Element&&null===e.event.target.closest('a[target="_blank"]')&&e.event.button===gr.LEFT_OR_TOUCH_CONTACT}),s=null,u=null,c=function(){null!==s&&(clearTimeout(s),s=null),u=null};return qn(a,i).subscribe(function(e){var n;if("click"===e.type)return c(),u=e,void(s=setTimeout(c,2e3));"error"===e.type&&u&&(t.track("[Amplitude] Error Click",(0,f.Cl)(((n={})["[Amplitude] Kind"]=e.event.kind,n["[Amplitude] Message"]=e.event.message,n["[Amplitude] Stack"]=e.event.stack,n["[Amplitude] Filename"]=e.event.filename,n["[Amplitude] Line Number"]=e.event.lineNumber,n["[Amplitude] Column Number"]=e.event.columnNumber,n),u.targetElementProperties)),c())})}({amplitude:v,allObservables:g,shouldTrackErrorClick:E}),r.push(S)),s&&(x=void 0,A=void 0,"object"==typeof e.thrashedCursor&&(x=e.thrashedCursor.directionChanges,A=e.thrashedCursor.threshold,x&&x<5&&(t.loggerProvider.warn("'thrashedCursor.directionChanges' of ".concat(x," is below the minimum of ").concat(5,", setting to ").concat(5)),x=5),A&&A>so&&(t.loggerProvider.warn("'thrashedCursor.threshold' of ".concat(A," is above the maximum of ").concat(so,", setting to ").concat(so)),A=so)),k=io({amplitude:v,options:e,allObservables:g,directionChanges:x,thresholdMs:A}),r.push(k)),null===(O=null==t?void 0:t.loggerProvider)||void 0===O||O.log("".concat(n," has been successfully added."))),[2]})})},execute:function(e){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,f.sH)(void 0,void 0,void 0,function(){var e,t,n,o;return(0,f.YH)(this,function(i){try{for(e=(0,f.Ju)(r),t=e.next();!t.done;t=e.next())t.value.unsubscribe()}catch(a){n={error:a}}finally{try{t&&!t.done&&(o=e.return)&&o.call(e)}finally{if(n)throw n.error}}return[2]})})}}};function co(e,t){var n=e.startTime+e.duration;return t.filter(function(t){return t.startTime<n&&t.startTime+t.duration>e.startTime}).map(function(e){return e.name})}function lo(e,t){var n,r=co(e,t),o=null!==(n=e.scripts)&&void 0!==n?n:[],i=o.map(function(e){return e.sourceURL}
2).filter(Boolean),a=o.map(function(e){return e.sourceFunctionName}).filter(Boolean),s=o.map(function(e){return e.sourceCharPosition}).filter(function(e){return"number"==typeof e&&e>=0}),u=o.map(function(e){return e.invokerType}).filter(Boolean),c=o.map(function(e){return e.invoker}).filter(Boolean);return(0,f.Cl)((0,f.Cl)((0,f.Cl)((0,f.Cl)((0,f.Cl)((0,f.Cl)((0,f.Cl)({"[Amplitude] Main Thread Block Source":"long-animation-frame","[Amplitude] Main Thread Block Duration":e.duration,"[Amplitude] Main Thread Block Blocking Duration":e.blockingDuration,"[Amplitude] Main Thread Block Start Time":e.startTime},r.length>0&&{"[Amplitude] Main Thread Block Measures":r}),{"[Amplitude] Main Thread Block Render Start":e.renderStart,"[Amplitude] Main Thread Block Style And Layout Start":e.styleAndLayoutStart,"[Amplitude] Main Thread Block Script Count":o.length}),i.length>0&&{"[Amplitude] Main Thread Block Script URLs":i}),a.length>0&&{"[Amplitude] Main Thread Block Script Functions":a}),s.length>0&&{"[Amplitude] Main Thread Block Script Positions":s}),u.length>0&&{"[Amplitude] Main Thread Block Invoker Types":u}),c.length>0&&{"[Amplitude] Main Thread Block Invokers":c})}function fo(e,t){var n,r=co(e,t),o=null!==(n=e.attribution)&&void 0!==n?n:[];return(0,f.Cl)((0,f.Cl)({"[Amplitude] Main Thread Block Source":"long-task","[Amplitude] Main Thread Block Duration":e.duration,"[Amplitude] Main Thread Block Blocking Duration":e.duration,"[Amplitude] Main Thread Block Start Time":e.startTime},r.length>0&&{"[Amplitude] Main Thread Block Measures":r}),o.length>0&&{"[Amplitude] Main Thread Block Attribution":o.map(function(e){return e.name})})}function po(e){var t=e.amplitude,n=e.options,r=e.durationThreshold,o=void 0===r?100:r,i=function(){if("undefined"==typeof PerformanceObserver)return null;try{var t=PerformanceObserver.supportedEntryTypes;if(t.includes("long-animation-frame"))return"long-animation-frame";if(t.includes("longtask"))return"longtask"}catch(e){}return null}();if(!i)return{unsubscribe:function(){}};var a=[],s=new PerformanceObserver(function(e){var t,n,r=performance.now();try{for(var o=(0,f.Ju)(e.getEntries()),i=o.next();!i.done;i=o.next()){var s=i.value;a.push(s)}}catch(c){t={error:c}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}for(var u=r-1e4;a.length>0&&a[0].startTime<u;)a.shift()});try{s.observe({entryTypes:["measure"]})}catch(c){}var u=new PerformanceObserver(function(e){var r,s;try{for(var u=(0,f.Ju)(e.getEntries()),c=u.next();!c.done;c=u.next()){var l=c.value;if(!lr(n))return;if(!(l.duration<o)){var d="long-animation-frame"===i?lo(l,a):fo(l,a);t.track("[Amplitude] Main Thread Block",d)}}}catch(p){r={error:p}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(r)throw r.error}}});try{u.observe({entryTypes:[i]})}catch(l){return s.disconnect(),{unsubscribe:function(){}}}return{unsubscribe:function(){u.disconnect(),s.disconnect()}}}var vo=function(e){void 0===e&&(e={});var t="@amplitude/plugin-performance-browser",n=[],r=!0===e.mainThreadBlock||"object"==typeof e.mainThreadBlock&&null!==e.mainThreadBlock;return{name:t,type:"enrichment",setup:function(o,i){return(0,f.sH)(void 0,void 0,void 0,function(){var a,s,u;return(0,f.YH)(this,function(c){return"undefined"==typeof document||(r&&(a=100,"object"==typeof e.mainThreadBlock&&void 0!==e.mainThreadBlock.durationThreshold&&(a=e.mainThreadBlock.durationThreshold),s=po({amplitude:i,options:e,durationThreshold:a}),n.push(s)),null===(u=null==o?void 0:o.loggerProvider)||void 0===u||u.log("".concat(t," performance tracking has been successfully added."))),[2]})})},execute:function(e){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,f.sH)(void 0,void 0,void 0,function(){var e,t,r,o;return(0,f.YH)(this,function(i){try{for(e=(0,f.Ju)(n),t=e.next();!t.done;t=e.next())t.value.unsubscribe()}catch(a){r={error:a}}finally{try{t&&!t.done&&(o=e.return)&&o.call(e)}finally{if(r)throw r.error}}return[2]})})}}};n(29742);function ho(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||null==e}function go(e,t,n){e&&mo({json:e,allowlist:t.map(yo),excludelist:n.map(yo),ancestors:[]})}function mo(e){var t,n,r=e.json,o=e.targetObject,i=e.allowlist,a=e.excludelist,s=e.ancestors,u=e.parentObject,c=e.targetKey;o||(o=r);var l=Object.keys(o);try{for(var d=(0,f.Ju)(l),p=d.next();!p.done;p=d.next()){var v=p.value,h=(0,f.fX)((0,f.fX)([],(0,f.zs)(s),!1),[v],!1);ho(o[v])?wo(h,i)&&!wo(h,a)||delete o[v]:mo({json:r,targetObject:o[v],allowlist:i,excludelist:a,ancestors:h,parentObject:o,targetKey:v})}}catch(g){t={error:g}}finally{try{p&&!p.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}0===Object.keys(o).length&&u&&c&&delete u[c]}function yo(e){return e.startsWith("/")&&(e=e.slice(1)),e.split("/").map(function(e){return e.replace(/~0/g,"~").replace(/~1/g,"/")})}function bo(e,t,n,r){if(void 0===n&&(n=0),void 0===r&&(r=0),r===t.length)return n===e.length;if(n===e.length){for(;r<t.length&&"**"===t[r];)r++;return r===t.length}var o=t[r];if("**"===o){if(r+1===t.length)return!0;for(var i=n;i<=e.length;i++)if(bo(e,t,i,r+1))return!0;return!1}return("*"===o||o===e[n])&&bo(e,t,n+1,r+1)}function wo(e,t){return t.some(function(t){return bo(e,t)})}var Eo=function(){function e(e){this.request=e}return e.prototype.headers=function(e){var t,n;void 0===e&&(e=[]);var r=this.request.headers,o={};if(Array.isArray(r))r.forEach(function(e){var t=(0,f.zs)(e,2),n=t[0],r=t[1];o[n]=r});else if(r instanceof Headers)r.forEach(function(e,t){o[t]=e});else if("object"==typeof r&&null!==r)try{for(var i=(0,f.Ju)(Object.entries(r)),a=i.next();!a.done;a=i.next()){var s=(0,f.zs)(a.value,2),u=s[0],c=s[1];o[u]=c}}
vendor: 11,934 bytes, line 2
2catch(l){t={error:l}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return To(o,{allow:e})},Object.defineProperty(e.prototype,"bodySize",{get:function(){if("number"==typeof this._bodySize)return this._bodySize;var e=E();if(null==e?void 0:e.TextEncoder){var t=this.request.body;return this._bodySize=xo(t,100),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return"string"==typeof this.request.body?this.request.body:null},enumerable:!1,configurable:!0}),e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(n){return 0===e.length?[2,null]:[2,Po(this.body,e,t)]})})},e}(),So=function(){function e(e,t){this.bodyRaw=e,this.requestHeaders=t}return e.prototype.headers=function(e){return void 0===e&&(e=[]),To(this.requestHeaders,{allow:e})},Object.defineProperty(e.prototype,"bodySize",{get:function(){return xo(this.bodyRaw,100)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return"string"==typeof this.bodyRaw?this.bodyRaw:null},enumerable:!1,configurable:!0}),e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(n){return 0===e.length?[2,null]:[2,Po(this.body,e,t)]})})},e}();function xo(e,t){var n,r,o,i=E(),a=null==i?void 0:i.TextEncoder;if(a){var s;if("string"==typeof e)s=e,o=(new a).encode(s).length;else if(e instanceof Blob)o=(s=e).size;else if(e instanceof URLSearchParams)s=e,o=(new a).encode(s.toString()).length;else if(ArrayBuffer.isView(e))o=(s=e).byteLength;else if(e instanceof ArrayBuffer)o=(s=e).byteLength;else if(e instanceof FormData){var u=e,c=0,l=0;try{for(var d=(0,f.Ju)(u.entries()),p=d.next();!p.done;p=d.next()){var v=(0,f.zs)(p.value,2),h=v[0],g=v[1];if(c+=h.length,"string"==typeof g)c+=(new a).encode(g).length;else{if(!(g instanceof Blob))return;c+=g.size}if(++l>=t)return}}catch(m){n={error:m}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}o=c}else if(e instanceof ReadableStream)return void(s=e);return o}}var Ao,ko=function(){function e(e){this.response=e}return e.prototype.headers=function(e){var t;if(void 0===e&&(e=[]),this.response.headers instanceof Headers){var n=this.response.headers,r={};return null===(t=null==n?void 0:n.forEach)||void 0===t||t.call(n,function(e,t){r[t]=e}),To(r,{allow:e})}},Object.defineProperty(e.prototype,"bodySize",{get:function(){var e,t;if(void 0!==this._bodySize)return this._bodySize;var n=null===(t=null===(e=this.response.headers)||void 0===e?void 0:e.get)||void 0===t?void 0:t.call(e,"content-length"),r=n?parseInt(n,10):void 0;return this._bodySize=r,r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),e.prototype.text=function(){return(0,f.sH)(this,void 0,void 0,function(){var e,t;return(0,f.YH)(this,function(n){switch(n.label){case 0:this.clonedResponse||(this.clonedResponse=this.response.clone()),n.label=1;case 1:return n.trys.push([1,3,,4]),e=this.clonedResponse.text(),t=new Promise(function(e){return setTimeout(function(){return e(null)},500)}),[4,Promise.race([e,t])];case 2:return[2,n.sent()];case 3:return n.sent(),[2,null];case 4:return[2]}})})},e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(n){switch(n.label){case 0:return 0===e.length?[2,null]:[4,this.text()];case 1:return[2,Po(n.sent(),e,t)]}})})},e}(),Oo=function(){function e(e,t,n,r){this.statusCode=e,this.headersString=t,this.size=n,this.getJson=r}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),e.prototype.headers=function(e){var t,n;if(void 0===e&&(e=[]),!this.headersString)return{};var r={},o=this.headersString.split("\r\n");try{for(var i=(0,f.Ju)(o),a=i.next();!a.done;a=i.next()){var s=a.value,u=(0,f.zs)(s.split(": "),2),c=u[0],l=u[1];c&&l&&(r[c]=l)}}catch(d){t={error:d}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return To(r,{allow:e})},e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),(0,f.sH)(this,void 0,void 0,function(){var n;return(0,f.YH)(this,function(r){return 0===e.length?[2,null]:(n=this.getJson())?(go(n,e,t),[2,n]):[2,null]})})},e}();function Po(e,t,n){if(!e)return null;try{var r=JSON.parse(e);return go(r,t,n),r}catch(o){return null}}!function(e){e.REDACT="redact",e.REMOVE="remove"}(Ao||(Ao={}));var Co="[REDACTED]",To=function(e,t){var n,r,o=t.allow,i=void 0===o?[]:o,a=t.strategy,s=void 0===a?Ao.REMOVE:a,u=(0,f.fX)([],(0,f.zs)(ke),!1),c={},l=function(t){var n=t.toLowerCase();u.find(function(e){return e.toLowerCase()===n})?s===Ao.REDACT&&(c[t]=Co):i.find(function(e){return e.toLowerCase()===n})?c[t]=e[t]:s===Ao.REDACT&&(c[t]=Co)};try{for(var d=(0,f.Ju)(Object.keys(e)),p=d.next();!p.done;p=d.next()){l(p.value)}}catch(v){n={error:v}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}return c},_o=function(){function e(e,t,n,r,o,i,a,s,u,c,l){void 0===a&&(a=0),this.type=e,this.method=t,this.timestamp=n,this.startTime=r,this.url=o,this.requestWrapper=i,this.status=a,this.duration=s,this.responseWrapper=u,this.error=c,this.endTime=l}return e.prototype.toSerializable=function(){var e,t,n,r,o={type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:null===(e=this.requestWrapper)||void 0===e?void 0:e.headers((0,f.fX)([],(0,f.zs)(Ae),!1)),requestBodySize:null===(t=this.requestWrapper)||void 0===t?void 0:t.bodySize,responseHeaders:null===(n=this.responseWrapper)||void 0===n?void 0:n.headers((0,f.fX)([],(0,f.zs)(Ae),!1)),responseBodySize:null===(r=this.responseWrapper)||void 0===r?void 0:r.bodySize};return Object.fromEntries(Object.entries(o).filter(function(e){var t=(0,f.zs)(e,2);t[0];return void 0!==t[1]}))},e}();var Ro=function(e,t){void 0===t&&(t=A()),this.callback=e,this.id=t};function Io(e){try{e()}catch(t){}}var jo,Do,No=function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=t;var n=E();e.isSupported()&&(this.globalScope=n)}return e.isSupported=function(){var e=E();return!!e&&!!e.fetch},e.prototype.subscribe=function(e,t){var n,r,o,i,a,s,u,c,l,f;if(this.logger||(this.logger=t),this.eventCallbacks.set(e.id,e),!this.isObserving){var d=null===(o=null===(r=null===(n=this.globalScope)||void 0===n?void 0:n.XMLHttpRequest)||void 0===r?void 0:r.prototype)||void 0===o?void 0:o.open,p=null===(s=null===(a=null===(i=this.globalScope)||void 0===i?void 0:i.XMLHttpRequest)||void 0===a?void 0:a.prototype)||void 0===s?void 0:s.send,v=null===(l=null===(c=null===(u=this.globalScope)||void 0===u?void 0:u.XMLHttpRequest)||void 0===c?void 0:c.prototype)||void 0===l?void 0:l.setRequestHeader;d&&p&&v&&this.observeXhr(d,p,v);var h=null===(f=this.globalScope)||void 0===f?void 0:f.fetch;h&&this.observeFetch(h),this.isObserving=!0}},e.prototype.unsubscribe=function(e){this.eventCallbacks.delete(e.id)},e.prototype.triggerEventCallbacks=function(e){var t=this;this.eventCallbacks.forEach(function(n){try{n.callback(e)}catch(r){Io(function(){var e;null===(e=t.logger)||void 0===e||e.debug("an unexpected error occurred while triggering event callbacks",r)})}})},e.prototype.handleNetworkRequestEvent=function(e,t,n,r,o,i,a){var s;if(void 0!==i&&void 0!==a){var u,c,l,f="GET";if(!function(e){return"object"==typeof e&&null!==e&&"url"in e&&"method"in e}(t)?u=null===(s=null==t?void 0:t.toString)||void 0===s?void 0:s.call(t):(u=t.url,f=t.method),u)try{var d=new URL(u);u="".concat(d.protocol,"//").concat(d.host).concat(d.pathname).concat(d.search).concat(d.hash)}catch(g){}f=(null==n?void 0:n.method)||f,r&&(c=r.status),o&&(l={name:o.name||"UnknownError",message:o.message||"An unknown error occurred"},c=0);var p=Math.floor(performance.now()-a),v=Math.floor(i+p),h=new _o(e,f,i,i,u,n,c,p,r,l,v);this.triggerEventCallbacks(h)}},e.prototype.getTimestamps=function(){var e,t;return{startTime:null===(e=Date.now)||void 0===e?void 0:e.call(Date),durationStart:null===(t=null===performance||void 0===performance?void 0:performance.now)||void 0===t?void 0:t.call(performance)}},e.prototype.observeFetch=function(e){var t=this;this.globalScope&&e&&(this.globalScope.fetch=function(n,r){return(0,f.sH)(t,void 0,void 0,function(){var t,o,i,a,s=this;return(0,f.YH)(this,function(u){switch(u.label){case 0:try{t=this.getTimestamps()}catch(c){Io(function(){var e;return null===(e=s.logger)||void 0===e?void 0:e.debug("an unexpected error occurred while retrieving timestamps",c)})}u.label=1;case 1:return u.trys.push([1,3,,4]),[4,e(n,r)];case 2:return o=u.sent(),[3,4];case 3:return a=u.sent(),i=a,[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",n,r?new Eo(r):void 0,o?new ko(o):void 0,i,null==t?void 0:t.startTime,null==t?void 0:t.durationStart)}catch(l){Io(function(){var e;return null===(e=s.logger)||void 0===e?void 0:e.debug("an unexpected error occurred while handling fetch",l)})}if(o)return[2,o];throw i}})})})},e.createXhrJsonParser=function(e,t){return function(){var n;try{if("json"===e.responseType){if(null===(n=t.globalScope)||void 0===n?void 0:n.structuredClone)return t.globalScope.structuredClone(e.response)}else if(["text",""].includes(e.responseType))return JSON.parse(e.responseText)}catch(r){return r instanceof Error&&"InvalidStateError"===r.name&&Io(function(){var n;return null===(n=t.logger)||void 0===n?void 0:n.debug("unexpected error when retrieving responseText. responseType='".concat(e.responseType,"'"))}),null}return null}},e.prototype.observeXhr=function(t,n,r){if(this.globalScope&&t&&n){var o=this.globalScope.XMLHttpRequest.prototype,i=this;o.open=function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=(0,f.zs)(n,2),a=o[0],s=o[1];try{this.$$AmplitudeAnalyticsEvent=(0,f.Cl)({method:a,url:null===(e=null==s?void 0:s.toString)||void 0===e?void 0:e.call(s),headers:{}},i.getTimestamps())}catch(u){Io(function(){var e;return null===(e=i.logger)||void 0===e?void 0:e.debug("an unexpected error occurred while calling xhr open",u)})}return t.apply(this,n)},o.send=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=this,a=e.createXhrJsonParser(this,i),s=t[0],u=o.$$AmplitudeAnalyticsEvent;return o.$$AmplitudeAnalyticsEvent&&o.addEventListener("loadend",function(){try{var e=o.getAllResponseHeaders(),t=o.getResponseHeader("content-length"),n=new Oo(o.status,e,t?parseInt(t,10):void 0,a),r=o.$$AmplitudeAnalyticsEvent.headers,c=new So(s,r);u.status=o.status,i.handleNetworkRequestEvent("xhr",{url:u.url,method:u.method},c,n,void 0,u.startTime,u.durationStart)}catch(l){Io(function(){var e;return null===(e=i.logger)||void 0===e?void 0:e.debug("an unexpected error occurred while handling xhr send",l)})}}),n.apply(o,t)},o.setRequestHeader=function(e,t){try{var n=this.$$AmplitudeAnalyticsEvent;n&&(n.headers[e]=t)}catch(o){Io(function(){var e;return null===(e=i.logger)||void 0===e?void 0:e.debug("an unexpected error occurred while calling xhr setRequestHeader",o)})}r.apply(this,[e,t])}}},e}(),Uo=new No,Lo="[Amplitude] Network Request",Mo="500-599";function Ho(e,t){var n="^"+t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&").replace(/\*/g,".*")+"$";return new RegExp(n).test(e)}function Fo(e,t){var n,r,o=t.split(",");try{for(var i=(0,f.Ju)(o),a=i.next();!a.done;a=i.next()){var s=a.value,u=(0,f.zs)(s.split("-").map(Number),2),c=u[0],l=u[1];if(e===c&&void 0===l)return!0;
2if(e>=c&&e<=l)return!0}}catch(d){n={error:d}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1}function qo(e){var t;if(e)try{var n=null===(t=E())||void 0===t?void 0:t.location.href,r=new URL(e,n),o=r.searchParams.toString(),i=r.hash.replace("#",""),a=r.href,s=r.host;return r.hash="",r.search="",{query:o,fragment:i,href:a,hrefWithoutQueryOrHash:r.href,host:s}}catch(Qo){return}}function Bo(e){if("object"==typeof e&&null!==e){if(0!==e.length)return e}else{if(e)return(0,f.fX)([],(0,f.zs)(Ae),!1);if(void 0===e){return}}}function zo(e){var t,n,r;return!(null===(t=null==e?void 0:e.allowlist)||void 0===t?void 0:t.length)&&!(null===(n=null==e?void 0:e.blocklist)||void 0===n?void 0:n.length)&&!(null===(r=null==e?void 0:e.excludelist)||void 0===r?void 0:r.length)}function Yo(e,t){var n;void 0===t&&(t={});var r=qo(e.url);if(!r)return!1;var o,i=r.host;if(!1!==t.ignoreAmplitudeRequests&&(Ho(i,"*.amplitude.com")||Ho(i,"amplitude.com")))return!1;if(null===(n=t.ignoreHosts)||void 0===n?void 0:n.find(function(e){return Ho(i,e)}))return!1;if(!t.captureRules&&void 0!==e.status&&!Fo(e.status,Mo))return!1;if(t.captureRules&&((0,f.fX)([],(0,f.zs)(t.captureRules),!1).reverse().find(function(t){if(o=function(e,t,n,r,o){if((!e.hosts||e.hosts.find(function(e){return Ho(t,e)}))&&(!r||!e.urls||ar(r,e.urls))&&(!o||!e.methods||e.methods.find(function(e){return o.toLowerCase()===e.toLowerCase()||"*"===e})))return!((n||0===n)&&!Fo(n,e.statusCodeRange||Mo))}(t,i,e.status,e.url,e.method),o){var n=Bo(t.responseHeaders);if(e.responseWrapper&&n){var r=e.responseWrapper.headers(n);r&&(e.responseHeaders=r)}var a=Bo(t.requestHeaders);if(e.requestWrapper&&a){var s=e.requestWrapper.headers(a);s&&(e.requestHeaders=s)}if(e.responseWrapper&&t.responseBody&&!zo(t.responseBody)){var u=t.responseBody.excludelist||t.responseBody.blocklist;e.responseBodyJson=e.responseWrapper.json(t.responseBody.allowlist,u)}if(e.requestWrapper&&t.requestBody&&!zo(t.requestBody)){u=t.requestBody.excludelist||t.requestBody.blocklist;e.requestBodyJson=e.requestWrapper.json(t.requestBody.allowlist,u)}}return void 0!==o}),!o))return!1;return!e.requestWrapper||!function(e,t){if(e.includes("amplitude.com"))try{var n=t.body;if("string"!=typeof n)return!1;if(JSON.parse(n).events.find(function(e){return e.event_type===Lo}))return!0}catch(Qo){}return!1}(i,e.requestWrapper)}function Wo(e){var t=e.allObservables,n=e.networkTrackingOptions,r=e.amplitude,o=e.loggerProvider;return t.networkObservable.filter(function(e){return Yo(e.event,n)}).subscribe(function(e){var t,n,i,a=e.event,s=qo(a.url);if(s){var u=null===(n=a.responseWrapper)||void 0===n?void 0:n.bodySize,c=null===(i=a.requestWrapper)||void 0===i?void 0:i.bodySize;!function(e,t,n,r){(0,f.sH)(this,void 0,void 0,function(){var o,i,a;return(0,f.YH)(this,function(s){switch(s.label){case 0:return t.requestBodyJson||t.responseBodyJson?[4,Promise.all([t.requestBodyJson,t.responseBodyJson])]:[3,2];case 1:if(o=f.zs.apply(void 0,[s.sent(),2]),i=o[0],a=o[1],i)try{e["[Amplitude] Request Body"]=JSON.stringify(i)}catch(Qo){null==r||r.debug("Failed to stringify request body",Qo)}if(a)try{e["[Amplitude] Response Body"]=JSON.stringify(a)}catch(Qo){null==r||r.debug("Failed to stringify response body")}s.label=2;case 2:return null==n||n.track(Lo,e),[2]}})})}(((t={})["[Amplitude] URL"]=s.hrefWithoutQueryOrHash,t["[Amplitude] URL Query"]=s.query,t["[Amplitude] URL Fragment"]=s.fragment,t["[Amplitude] Request Method"]=a.method,t["[Amplitude] Status Code"]=a.status,t["[Amplitude] Start Time"]=a.startTime,t["[Amplitude] Completion Time"]=a.endTime,t["[Amplitude] Duration"]=a.duration,t["[Amplitude] Request Body Size"]=c,t["[Amplitude] Response Body Size"]=u,t["[Amplitude] Request Type"]=a.type,t["[Amplitude] Request Headers"]=a.requestHeaders,t["[Amplitude] Response Headers"]=a.responseHeaders,t),a,r,o)}})}!function(e){e.NetworkObservable="networkObservable"}(jo||(jo={}));var Jo=function(e){void 0===e&&(e={});var t,n="@amplitude/plugin-network-capture-browser",r=function(){var e,n=new(Hn())(function(e){var n=new Ro(function(t){var n=function(e,t){return{event:e,timestamp:Date.now(),type:t}}(t,"network");e.next(n)});return Uo.subscribe(n,t),function(){Uo.unsubscribe(n)}});return(e={})[jo.NetworkObservable]=n,e};return{name:n,type:"enrichment",setup:function(o,i){return(0,f.sH)(void 0,void 0,void 0,function(){var a;return(0,f.YH)(this,function(s){return"undefined"==typeof document||(a=r(),t=null==o?void 0:o.loggerProvider,Do=Wo({allObservables:a,networkTrackingOptions:e,amplitude:i,loggerProvider:t}),null==t||t.log("".concat(n," has been successfully added."))),[2]})})},execute:function(e){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(e){return Do.unsubscribe(),[2]})})}}}
2,Vo=n(55152),Go=n(24586);function Ko(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Xo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Xo(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}var Qo=-1,Zo=function(e){addEventListener("pageshow",function(t){t.persisted&&(Qo=t.timeStamp,e(t))},!0)},ei=function(e,t,n,r){var o,i;return function(a){t.value>=0&&(a||r)&&(((i=t.value-(null!=o?o:0))||void 0===o)&&(o=t.value,t.delta=i,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t)))}},ti=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},ni=function(){var e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},ri=function(){var e,t=ni();return null!==(e=null==t?void 0:t.activationStart)&&void 0!==e?e:0},oi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=ni(),r="navigate";return Qo>=0?r="back-forward-cache":n&&(document.prerendering||ri()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:"v5-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},ii=new WeakMap;function ai(e,t){return ii.get(e)||ii.set(e,new t),ii.get(e)}var si,ui=function(){return(0,l.A)(function e(){(0,Vo.A)(this,e),(0,Go.A)(this,"t",void 0),(0,Go.A)(this,"i",0),(0,Go.A)(this,"o",[])},[{key:"h",value:function(e){var t;if(!e.hadRecentInput){var n=this.o[0],r=this.o.at(-1);this.i&&n&&r&&e.startTime-r.startTime<1e3&&e.startTime-n.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),null===(t=this.t)||void 0===t||t.call(this,e)}}}])}(),ci=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return r.observe(function(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){(0,Go.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({type:e,buffered:!0},n)),r}}catch(o){}},li=function(e){var t=!1;return function(){t||(e(),t=!0)}},fi=-1,di=new Set,pi=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},vi=function(e){if("hidden"===document.visibilityState){if("visibilitychange"===e.type){var t,n=Ko(di);try{for(n.s();!(t=n.n()).done;){(0,t.value)()}}catch(r){n.e(r)}finally{n.f()}}isFinite(fi)||(fi="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",vi,!0))}},hi=function(){if(fi<0){var e,t=ri(),n=document.prerendering||null===(e=globalThis.performance.getEntriesByType("visibility-state").filter(function(e){return"hidden"===e.name&&e.startTime>t})[0])||void 0===e?void 0:e.startTime;fi=null!=n?n:pi(),addEventListener("visibilitychange",vi,!0),addEventListener("prerenderingchange",vi,!0),Zo(function(){setTimeout(function(){fi=pi()})})}return{get firstHiddenTime(){return fi},onHidden:function(e){di.add(e)}}},gi=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},mi=[1800,3e3],yi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};gi(function(){var n,r=hi(),o=oi("FCP"),i=ci("paint",function(e){var t,a=Ko(e);try{for(a.s();!(t=a.n()).done;){var s=t.value;"first-contentful-paint"===s.name&&(i.disconnect(),s.startTime<r.firstHiddenTime&&(o.value=Math.max(s.startTime-ri(),0),o.entries.push(s),n(!0)))}}catch(u){a.e(u)}finally{a.f()}});i&&(n=ei(e,o,mi,t.reportAllChanges),Zo(function(r){o=oi("FCP"),n=ei(e,o,mi,t.reportAllChanges),ti(function(){o.value=performance.now()-r.timeStamp,n(!0)})}))})},bi=[.1,.25],wi=0,Ei=1/0,Si=0,xi=function(e){var t,n=Ko(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.interactionId&&(Ei=Math.min(Ei,r.interactionId),Si=Math.max(Si,r.interactionId),wi=Si?(Si-Ei)/7+1:0)}}catch(o){n.e(o)}finally{n.f()}},Ai=function(){var e;return si?wi:null!==(e=performance.interactionCount)&&void 0!==e?e:0},ki=0,Oi=function(){return(0,l.A)(function e(){(0,Vo.A)(this,e),(0,Go.A)(this,"u",[]),(0,Go.A)(this,"l",new Map),(0,Go.A)(this,"m",void 0),(0,Go.A)(this,"p",void 0)},[{key:"v",value:function(){ki=Ai(),this.u.length=0,this.l.clear()}},{key:"L",value:function(){var e=Math.min(this.u.length-1,Math.floor((Ai()-ki)/50));return this.u[e]}},{key:"h",value:function(e){var t;if(null!==(t=this.m)&&void 0!==t&&t.call(this,e),e.interactionId||"first-input"===e.entryType){var n=this.u.at(-1),r=this.l.get(e.interactionId);if(r||this.u.length<10||e.duration>n.P){var o;if(r?e.duration>r.P?(r.entries=[e],r.P=e.duration):e.duration===r.P&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],P:e.duration},this.l.set(r.id,r),this.u.push(r)),this.u.sort(function(e,t){return t.P-e.P}),this.u.length>10){var i,a=Ko(this.u.splice(10));try{for(a.s();!(i=a.n()).done;){var s=i.value;this.l.delete(s.id)}}catch(u){a.e(u)}finally{a.f()}}null===(o=this.p)||void 0===o||o.call(this,r)}}}}])}(),Pi=function(e){var t=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=li(e),addEventListener("visibilitychange",e,{once:!0,capture:!0}),t(function(){e(),removeEventListener("visibilitychange",e,{capture:!0})}
2))},Ci=[200,500],Ti=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype){var n=hi();gi(function(){var r;"interactionCount"in performance||si||(si=ci("event",xi,{type:"event",buffered:!0,durationThreshold:0}));var o,i=oi("INP"),a=ai(t,Oi),s=function(e){Pi(function(){var t,n=Ko(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;a.h(r)}}catch(u){n.e(u)}finally{n.f()}var s=a.L();s&&s.P!==i.value&&(i.value=s.P,i.entries=s.entries,o())})},u=ci("event",s,{durationThreshold:null!==(r=t.durationThreshold)&&void 0!==r?r:40});o=ei(e,i,Ci,t.reportAllChanges),u&&(u.observe({type:"first-input",buffered:!0}),n.onHidden(function(){s(u.takeRecords()),o(!0)}),Zo(function(){a.v(),i=oi("INP"),o=ei(e,i,Ci,t.reportAllChanges)}))})}},_i=function(){return(0,l.A)(function e(){(0,Vo.A)(this,e),(0,Go.A)(this,"m",void 0)},[{key:"h",value:function(e){var t;null===(t=this.m)||void 0===t||t.call(this,e)}}])}(),Ri=[2500,4e3],Ii=[800,1800],ji=function(e){document.prerendering?gi(function(){return ji(e)}):"complete"!==document.readyState?addEventListener("load",function(){return ji(e)},!0):setTimeout(e)};function Di(e){var t,n=(null===(t=e.entries[0])||void 0===t?void 0:t.startTime)||0;return performance.timeOrigin+n}function Ni(e){return{value:e.value,rating:e.rating,delta:e.delta,navigationType:e.navigationType,id:e.id,timestamp:Math.floor(Di(e)),navigationStart:Math.floor(performance.timeOrigin)}}var Ui,Li=function(){var e=null,t=E(),n=null==t?void 0:t.document,r=null==t?void 0:t.location;return{name:"web-vitals-browser",type:"enrichment",setup:function(t,o){return(0,f.sH)(void 0,void 0,void 0,function(){var i,a;return(0,f.YH)(this,function(s){return void 0===n||(i=sr((null==r?void 0:r.href)||"",t.loggerProvider),a={"[Amplitude] Page Domain":(null==r?void 0:r.hostname)||"","[Amplitude] Page Location":i,"[Amplitude] Page Path":sr((null==r?void 0:r.pathname)||"",t.loggerProvider),"[Amplitude] Page Title":"undefined"!=typeof document&&document.title||"","[Amplitude] Page URL":sr(i.split("?")[0],t.loggerProvider)},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};gi(function(){var n,r=hi(),o=oi("LCP"),i=ai(t,_i),a=function(e){t.reportAllChanges||(e=e.slice(-1));var a,s=Ko(e);try{for(s.s();!(a=s.n()).done;){var u=a.value;i.h(u),u.startTime<r.firstHiddenTime&&(o.value=Math.max(u.startTime-ri(),0),o.entries=[u],n())}}catch(c){s.e(c)}finally{s.f()}},s=ci("largest-contentful-paint",a);if(s){n=ei(e,o,Ri,t.reportAllChanges);for(var u=li(function(){a(s.takeRecords()),s.disconnect(),n(!0)}),c=function(e){e.isTrusted&&(Pi(u),removeEventListener(e.type,c,{capture:!0}))},l=0,f=["keydown","click","visibilitychange"];l<f.length;l++)addEventListener(f[l],c,{capture:!0});Zo(function(r){o=oi("LCP"),n=ei(e,o,Ri,t.reportAllChanges),ti(function(){o.value=performance.now()-r.timeStamp,n(!0)})})}})}(function(e){a["[Amplitude] LCP"]=Ni(e)}),yi(function(e){a["[Amplitude] FCP"]=Ni(e)}),Ti(function(e){a["[Amplitude] INP"]=Ni(e)}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=hi();yi(li(function(){var r,o=oi("CLS",0),i=ai(t,ui),a=function(e){var t,n=Ko(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;i.h(a)}}catch(s){n.e(s)}finally{n.f()}i.i>o.value&&(o.value=i.i,o.entries=i.o,r())},s=ci("layout-shift",a);s&&(r=ei(e,o,bi,t.reportAllChanges),n.onHidden(function(){a(s.takeRecords()),r(!0)}),Zo(function(){i.i=0,o=oi("CLS",0),r=ei(e,o,bi,t.reportAllChanges),ti(function(){return r()})}),setTimeout(r))}))}(function(e){a["[Amplitude] CLS"]=Ni(e)}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=oi("TTFB"),r=ei(e,n,Ii,t.reportAllChanges);ji(function(){var o=ni();o&&(n.value=Math.max(o.responseStart-ri(),0),n.entries=[o],r(!0),Zo(function(){n=oi("TTFB",0),(r=ei(e,n,Ii,t.reportAllChanges))(!0)}))})}(function(e){a["[Amplitude] TTFB"]=Ni(e)}),e=function(){"hidden"===n.visibilityState&&e&&(o.track("[Amplitude] Web Vitals",a),n.removeEventListener("visibilitychange",e),e=null)},n.addEventListener("visibilitychange",e)),[2]})})},execute:function(e){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(t){return e&&(null==n||n.removeEventListener("visibilitychange",e)),[2]})})}}},Mi=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),[ie,t,e.substring(0,n)].filter(
2Boolean).join("_")},Hi=function(){function e(e,t){var n,r,o;this.shouldTrackNewCampaign=!1,this.options=(0,f.Cl)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:(r=(null===(n=t.cookieOptions)||void 0===n?void 0:n.domain)||t.topLevelDomain,o=r,o?(o.startsWith(".")&&(o=o.substring(1)),[new RegExp("".concat(o.replace(".","\\."),"$"))]):[]),optOut:t.optOut},e),this.storage=t.cookieStorage,this.storageKey=Mi(t.apiKey,"MKTG"),this.webExpStorageKey=Mi(t.apiKey,"MKTG_ORIGINAL"),this.currentCampaign=xe,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,this.topLevelDomain=t.topLevelDomain,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return(0,f.sH)(this,void 0,void 0,function(){var e,t;return(0,f.YH)(this,function(n){switch(n.label){case 0:return this.options.optOut?[2]:[4,this.fetchCampaign()];case 1:return t=f.zs.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||Ge(this.sessionTimeout,this.lastEventTime),Zt(this.currentCampaign,this.previousCampaign,this.options,this.logger,e,this.topLevelDomain)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return(0,f.sH)(this,void 0,void 0,function(){var e;return(0,f.YH)(this,function(t){switch(t.label){case 0:return[4,this.storage.get(this.webExpStorageKey)];case 1:return(e=t.sent())?[4,this.storage.remove(this.webExpStorageKey)]:[3,3];case 2:t.sent(),t.label=3;case 3:return[4,Promise.all([e||(new wn).parse(),this.storage.get(this.storageKey)])];case 4:return[2,t.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t,n,r,o,i=(t=this.currentCampaign,n=this.options,r=(0,f.Cl)((0,f.Cl)({},xe),t),o=Object.entries(r).reduce(function(e,t){var r,o=(0,f.zs)(t,2),i=o[0],a=o[1];return e.setOnce("initial_".concat(i),null!==(r=null!=a?a:n.initialEmptyValue)&&void 0!==r?r:"EMPTY"),a?e.set(i,a):e.unset(i)},new qe),Je(o));return e&&(i.event_id=e),i},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),Fi=new Set([ze.IDENTIFY,ze.GROUP_IDENTIFY]),qi=function(e){var t;void 0===e&&(e={});var n,r,o,i,a,s,u=null!==(t=e.fallbackAttributionEvent)&&void 0!==t&&t,c=E(),l={},d=!1,p=!1,v=function(){return(0,f.sH)(void 0,void 0,void 0,function(){var e;return(0,f.YH)(this,function(t){switch(t.label){case 0:return[4,(new wn).parse()];case 1:return e=t.sent(),l=bn(e),u&&(null==r||r.log("Tracking attribution fallback event."),null==n||n.track("[Amplitude] Attribution",l)),[2]}})})},h=function(){v()},g=function(e){return new Proxy(e,{apply:function(e,t,n){Reflect.apply(e,t,n),d&&h()}})};return{name:"@amplitude/plugin-event-property-attribution-browser",type:"enrichment",setup:function(e,t){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(u){switch(u.label){case 0:return n=t,r=e.loggerProvider,d=!0,r.log("Installing event property attribution tracking."),[4,v()];case 1:if(u.sent(),!c)return[2];if(c.addEventListener("popstate",h),!p){if(o=Reflect.get(c.history,"pushState"),i=Reflect.get(c.history,"replaceState"),!o||!i)return[2];a=g(o),c.history.pushState=a,s=g(i),c.history.replaceState=s,p=!0}return[2]}})})},execute:function(e){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(t){return Fi.has(e.event_type)||(e.event_properties=(0,f.Cl)((0,f.Cl)({},l),e.event_properties)),[2,e]})})},teardown:function(){return(0,f.sH)(void 0,void 0,void 0,function(){var e,t;return(0,f.YH)(this,function(n){return c&&(c.removeEventListener("popstate",h),e=Reflect.get(c.history,"pushState"),t=Reflect.get(c.history,"replaceState"),p&&e===a&&o&&(c.history.pushState=o),p&&t===s&&i&&(c.history.replaceState=i)),d=!1,p=!1,o=void 0,i=void 0,a=void 0,s=void 0,l={},[2]})})}}},Bi="AMP_CURRENT_PAGE",zi="AMP_PREVIOUS_PAGE",Yi="AMP_URL_INFO";!function(e){e.Direct="direct",e.Internal="internal",e.External="external"}(Ui||(Ui={}));var Wi=new Set([ze.IDENTIFY,ze.GROUP_IDENTIFY,ze.REVENUE]),Ji=function(e){var t=(void 0===e?{}:e).internalDomains,n=void 0===t?[]:t,r=E(),o=void 0,i=!1,a=void 0,s=!1,u=!1,
2c=function(e){var t;try{var n=sr(e,a);t=new URL(n).hostname}catch(Qo){null==a||a.error("Could not parse URL: ",Qo)}return t},l=function(e){var t="undefined"!=typeof location&&location.hostname||"",r=e?c(e):void 0;if(!r)return Ui.Direct;var o=n.some(function(e){return-1!==t.indexOf(e)}),i=n.some(function(e){return-1!==r.indexOf(e)});return t===r||i&&o?Ui.Internal:Ui.External},d=function(){return(0,f.sH)(void 0,void 0,void 0,function(){var e,t,n,r,a;return(0,f.YH)(this,function(s){switch(s.label){case 0:return o&&i?[4,o.get(Yi)]:[3,3];case 1:return e=s.sent(),t=sr("undefined"!=typeof location&&location.href||""),n=(null==e?void 0:e[Bi])||"",r=void 0,r=t===n?(null==e?void 0:e[zi])||"":n||(document.referrer||""),[4,o.set(Yi,(a={},a[Bi]=t,a[zi]=r,a))];case 2:s.sent(),s.label=3;case 3:return[2]}})})},p=function(){d()},v={name:"@amplitude/plugin-page-url-enrichment-browser",type:"enrichment",setup:function(e,t){return(0,f.sH)(void 0,void 0,void 0,function(){var t,n,l,v,h,g,m,y;return(0,f.YH)(this,function(b){switch(b.label){case 0:if((a=e.loggerProvider).log("Installing @amplitude/plugin-page-url-enrichment-browser"),u=!0,!r)return[3,7];try{o=new xt(r.sessionStorage)}catch(w){null==a||a.debug("sessionStorage is not available in this environment.")}return[4,null==o?void 0:o.isEnabled()];case 1:return i=null!==(y=b.sent())&&void 0!==y&&y,o&&i?(t="undefined"!=typeof document&&document.referrer||"",n=t?c(t):void 0,l="undefined"!=typeof location&&location.hostname||"",v=sr("undefined"!=typeof location&&location.href||""),[4,o.get(Yi)]):[3,6];case 2:return h=b.sent(),g=(null==h?void 0:h[Bi])||"",!!n&&n!==l&&g!==v?[4,o.set(Yi,(m={},m[Bi]=v,m[zi]=t,m))]:[3,4];case 3:return b.sent(),[3,6];case 4:return[4,d()];case 5:b.sent(),b.label=6;case 6:r.addEventListener("popstate",p),s||(r.history.pushState=new Proxy(r.history.pushState,{apply:function(e,t,n){var r=(0,f.zs)(n,3),o=r[0],i=r[1],a=r[2];e.apply(t,[o,i,a]),u&&p()}}),r.history.replaceState=new Proxy(r.history.replaceState,{apply:function(e,t,n){var r=(0,f.zs)(n,3),o=r[0],i=r[1],a=r[2];e.apply(t,[o,i,a]),u&&p()}}),s=!0),b.label=7;case 7:return[2]}})})},execute:function(e){return(0,f.sH)(void 0,void 0,void 0,function(){var t,n,r;return(0,f.YH)(this,function(a){switch(a.label){case 0:return t=sr("undefined"!=typeof location&&location.href||""),o&&i?[4,o.get(Yi)]:[3,2];case 1:if(n=a.sent(),r=(null==n?void 0:n[zi])||"",Wi.has(e.event_type))return[2,e];e.event_properties=(0,f.Cl)((0,f.Cl)({},e.event_properties||{}),{"[Amplitude] Page Domain":Vi(e,"[Amplitude] Page Domain","undefined"!=typeof location&&location.hostname||""),"[Amplitude] Page Location":Vi(e,"[Amplitude] Page Location",t),"[Amplitude] Page Path":Vi(e,"[Amplitude] Page Path","undefined"!=typeof location&&sr(location.pathname)||""),"[Amplitude] Page Title":Vi(e,"[Amplitude] Page Title",yn(mn)),"[Amplitude] Page URL":Vi(e,"[Amplitude] Page URL",t.split("?")[0]),"[Amplitude] Previous Page Location":r,"[Amplitude] Previous Page Type":l(r)}),a.label=2;case 2:return[2,e]}})})},teardown:function(){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(e){switch(e.label){case 0:return r&&(r.removeEventListener("popstate",p),u=!1),o&&i?[4,o.set(Yi,{})]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})}};return v};function Vi(e,t,n){return e.event_properties||(e.event_properties={}),void 0===e.event_properties[t]?n:e.event_properties[t]}var Gi=function(){var e,t,n;function r(t){if(t)try{var n=new Function("return "+t)();if("function"==typeof n)return n;null==e||e.error("Custom enrichment body did not evaluate to a function")}catch(r){null==e||e.error("Could not create custom enrichment function",r)}return function(e){return e}}var o={name:"@amplitude/plugin-custom-enrichment-browser",type:"enrichment",setup:function(o,i){return(0,f.sH)(void 0,void 0,void 0,function(){var i,a;return(0,f.YH)(this,function(s){return null==(e=o.loggerProvider)||e.log("Installing @amplitude/plugin-custom-enrichment-browser"),(null===(a=o.remoteConfig)||void 0===a?void 0:a.fetchRemoteConfig)&&(o.remoteConfigClient?(i=o.remoteConfigClient.subscribe("configs.analyticsSDK.browserSDK.customEnrichment","all",function(e){n=e&&function(e){return"object"==typeof e&&null!==e&&"body"in e&&"string"==typeof e.body}(e)?r(e.body||""):r("")}),t=function(){var e;return null===(e=o.remoteConfigClient)||void 0===e?void 0:e.unsubscribe(i)}):null==e||e.debug("Remote config client is not provided, skipping remote config fetch")),[2]})})},execute:function(t){return(0,f.sH)(void 0,void 0,void 0,function(){var r;
2return(0,f.YH)(this,function(o){if(n)try{return[2,null!==(r=n(t))&&void 0!==r?r:null]}catch(i){return null==e||e.error("Could not execute custom enrichment function",i),[2,t]}return[2,t]})})},teardown:function(){return(0,f.sH)(void 0,void 0,void 0,function(){return(0,f.YH)(this,function(e){return t&&t(),[2]})})}};return o},Ki="userProperty",Xi="eventProperty",$i=function(e){return e===Ki||e===Xi},Qi=function(e,t){return function(e){var t=(0,f.fX)([],(0,f.zs)(new Set((Array.isArray(e)?e:[e]).filter($i))),!1);return t.length>0?t:[Ki]}(e.trackingMethod).includes(t)},Zi=function(e){return Qi(e,Ki)},ea=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._diagnosticsSampleRate=0,t}return(0,f.C6)(t,e),t.prototype.init=function(e,t,n){var r,o;return void 0===e&&(e=""),arguments.length>2?(r=t,o=n):"string"==typeof t?(r=t,o=void 0):(r=null==t?void 0:t.userId,o=t),m(this._init((0,f.Cl)((0,f.Cl)({},o),{userId:r,apiKey:e})))},t.prototype._init=function(t){var n,o,i,a,s,u,c,l;return(0,f.sH)(this,void 0,void 0,function(){var d,p,v,h,g,m,y,w,E,S,x,A,k,O,P,T=this;return(0,f.YH)(this,function(_){switch(_.label){case 0:return this.initializing?[2]:(this.initializing=!0,d=function(e){var t,n;return void 0===e&&(e={}),!0===(null===(t=e.remoteConfig)||void 0===t?void 0:t.fetchRemoteConfig)||!1!==(null===(n=e.remoteConfig)||void 0===n?void 0:n.fetchRemoteConfig)&&!1!==e.fetchRemoteConfig}(t),p=null!==(n=t.loggerProvider)&&void 0!==n?n:new b,t.loggerProvider||p.enable(null!==(o=t.logLevel)&&void 0!==o?o:r.Warn),v=null!==(i=t.serverZone)&&void 0!==i?i:"US",g=this._diagnosticsSampleRate,m=null===(a=t.enableDiagnostics)||void 0===a||a,d?(h=new C(t.apiKey,p,v,null===(s=t.remoteConfig)||void 0===s?void 0:s.serverUrl),[4,new Promise(function(e){null==h||h.subscribe("configs.diagnostics.browserSDK","all",function(t,n,r){if(p.debug("Diagnostics remote configuration received:",JSON.stringify({remoteConfig:t,source:n,lastFetch:r},null,2)),t){var o=t.sampleRate;"number"!=typeof o||isNaN(o)||(g=o);var i=t.enabled;"boolean"==typeof i&&(m=i)}e()})})]):[3,2]);case 1:_.sent(),_.label=2;case 2:return(y=new W(t.apiKey,p,v,{enabled:m,sampleRate:g})).setTag("library","".concat(gt,"/").concat(ht)),"undefined"!=typeof navigator&&y.setTag("user_agent",navigator.userAgent),[4,un(t.apiKey,t,this,y,{loggerProvider:p,serverZone:v,enableDiagnostics:m,diagnosticsSampleRate:g})];case 3:return w=_.sent(),d&&h?[4,new Promise(function(e){null==h||h.subscribe("configs.analyticsSDK.browserSDK","all",function(t,n,r){w.loggerProvider.debug("Remote configuration received:",JSON.stringify({remoteConfig:t,source:n,lastFetch:r},null,2)),t&&Dn(t,w),e()})})]:[3,5];case 4:_.sent(),_.label=5;case 5:return[4,e.prototype._init.call(this,w)];case 6:return _.sent(),this.logBrowserOptions(w),this.config.remoteConfigClient=h,j=this.config,E=et(j.defaultTracking)&&j.defaultTracking&&"object"==typeof j.defaultTracking&&j.defaultTracking.attribution&&"object"==typeof j.defaultTracking.attribution?(0,f.Cl)({},j.defaultTracking.attribution):{},et(this.config.defaultTracking)&&Zi(E)?(this.config.optOut&&this.timeline.addOptOutListener(function(e){return(0,f.sH)(T,void 0,void 0,function(){return(0,f.YH)(this,function(t){switch(t.label){case 0:return e?[3,2]:(this.webAttribution=new Hi(E,this.config),[4,this.webAttribution.init()]);case 1:t.sent(),t.label=2;case 2:return[2]}})})}),this.webAttribution=new Hi(E,this.config),[4,this.webAttribution.init()]):[3,8];case 7:_.sent(),_.label=8;case 8:return S=J(),x=S.ampTimestamp?Number(S.ampTimestamp):void 0,A=!x||Date.now()<x,k=A&&!Number.isNaN(Number(S.ampSessionId))?Number(S.ampSessionId):void 0,-1!==(O=this.config.deferredSessionId)||this.config.optOut||(O=Date.now()),this.setSessionId(null!==(l=null!==(c=null!==(u=t.sessionId)&&void 0!==u?u:k)&&void 0!==c?c:O)&&void 0!==l?l:this.config.sessionId),this.config.optOut&&this.timeline.addOptOutListener(function(e){return(0,f.sH)(T,void 0,void 0,function(){return(0,f.YH)(this,function(t){return!e&&this.config.deferredSessionId&&(-1===this.config.deferredSessionId?this.setSessionId(void 0):this.setSessionId(this.config.deferredSessionId)),[2]})})}),(P=Oe(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),null===this.config.offline?[3,10]:[4,this.add(Rn()).promise];case 9:_.sent(),_.label=10;case 10:return[4,this.add(new Le({diagnosticsClient:y})).promise];case 11:return _.sent(),[4,this.add(new mt).promise];case 12:return _.sent(),[4,this.add(new Me).promise];case 13:return _.sent(),function(e){_n||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),_n=!0)}
vendor: 5,205 bytes, line 2
2(this.config),I=this.config.defaultTracking,Ze(I,"fileDownloads")?(this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(Tn()).promise]):[3,15];case 14:_.sent(),_.label=15;case 15:return tt(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(On()).promise]):[3,17];case 16:_.sent(),_.label=17;case 17:return nt(this.config.defaultTracking)?this.config.optOut?[3,19]:(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(Sn(ft(this.config))).promise]):[3,20];case 18:return _.sent(),[3,20];case 19:this.timeline.addOptOutListener(function(e){return(0,f.sH)(T,void 0,void 0,function(){return(0,f.YH)(this,function(t){switch(t.label){case 0:return e?[2]:(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(Sn(ft(this.config))).promise]);case 1:return t.sent(),[2]}})})}),_.label=20;case 20:return et(this.config.defaultTracking)&&function(e){return Qi(e,Xi)}(E)?(this.config.loggerProvider.debug("Adding event property attribution plugin"),[4,this.add(qi(E)).promise]):[3,22];case 21:_.sent(),_.label=22;case 22:return it(this.config.autocapture)?(this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(Yr(ut(this.config),{diagnosticsClient:y})).promise]):[3,24];case 23:_.sent(),_.label=24;case 24:return at(this.config.autocapture)?(this.config.loggerProvider.debug("Adding frustration interactions plugin"),[4,this.add(uo(ct(this.config))).promise]):[3,26];case 25:_.sent(),_.label=26;case 26:return ot(this.config.autocapture)?(this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(Jo(lt(this.config))).promise]):[3,28];case 27:_.sent(),_.label=28;case 28:return function(e){return"boolean"==typeof e?e:"object"==typeof e&&!0===e.webVitals}(this.config.autocapture)?(this.config.loggerProvider.debug("Adding web vitals plugin"),[4,this.add(Li()).promise]):[3,30];case 29:_.sent(),_.label=30;case 30:return function(e){return"object"==typeof e&&(!0===e.performanceTracking||"object"==typeof e.performanceTracking)}(this.config.autocapture)?(this.config.loggerProvider.debug("Adding performance tracking plugin"),[4,this.add(vo(st(this.config))).promise]):[3,32];case 31:_.sent(),_.label=32;case 32:return function(e){return Ze(e,"pageUrlEnrichment")}(this.config.autocapture)?(this.config.loggerProvider.debug("Adding referrer page url plugin"),[4,this.add(Ji()).promise]):[3,34];case 33:_.sent(),_.label=34;case 34:return("boolean"==typeof(R=this.config.customEnrichment)?R:"object"==typeof R&&null!==R&&!1!==R.enabled)?(this.config.loggerProvider.debug("Adding custom enrichment plugin"),[4,this.add(Gi()).promise]):[3,36];case 35:_.sent(),_.label=36;case 36:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 37:return _.sent(),P.eventBridge.setEventReceiver(function(e){var t=e.eventProperties||{},n=t.time,r=(0,f.Tt)(t,["time"]),o="number"==typeof n?{time:n}:void 0;T.track(e.eventType,r,o)}),[2]}var R,I,j})})},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){this.config?(this.config.loggerProvider.debug("function setUserId: ",e),e===this.config.userId&&void 0!==e||(this.config.userId=e,this.timeline.onIdentityChanged({userId:e}),function(e,t){Oe(t).identityStore.editIdentity().setUserId(e).commit()}(e,this.config.instanceName))):this.q.push(this.setUserId.bind(this,e))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){this.config?(this.config.loggerProvider.debug("function setDeviceId: ",e),e!==this.config.deviceId&&(this.config.deviceId=e,this.timeline.onIdentityChanged({deviceId:e}),function(e,t){Oe(t).identityStore.editIdentity().setDeviceId(e).commit()}(e,this.config.instanceName))):this.q.push(this.setDeviceId.bind(this,e))},t.prototype.reset=function(){this.setDeviceId(A()),this.setUserId(void 0),this.timeline.onReset()},t.prototype.getIdentity=function(){var e,t;return{deviceId:null===(e=this.config)||void 0===e?void 0:e.deviceId,userId:null===(t=this.config)||void 0===t?void 0:t.userId,userProperties:this.userProperties}},t.prototype.setIdentity=function(e){var t,n,r;if("userId"in e&&this.setUserId(e.userId),"deviceId"in e&&e.deviceId&&this.setDeviceId(e.deviceId),"userProperties"in e){this.userProperties=e.userProperties;var o=new qe,i=null!==(r=e.userProperties)&&void 0!==r?r:{};try{for(var a=(0,f.Ju)(Object.entries(i)),s=a.next();!s.done;s=a.next()){var u=(0,f.zs)(s.value,2),c=u[0],l=u[1];o.set(c,l)}}catch(d){t={error:d}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}this.identify(o)}},t.prototype.getOptOut=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.optOut},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,n=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),m(Promise.resolve());if(this.config.optOut)return this.config.deferredSessionId=null!=e?e:-1,m(Promise.resolve());
2if(void 0===e&&(e=Date.now()),e===this.config.sessionId)return m(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var r=this.getSessionId();r!==e&&this.timeline.onSessionIdChanged(e);var o=this.config.lastEventTime,i=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,rt(this.config.defaultTracking)&&(r&&o&&n.push(this.track(qt,void 0,{device_id:this.previousSessionDeviceId,event_id:++i,session_id:r,time:o+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++i,n);return this.config.identify&&n.push(this.track(Je(this.config.identify)).promise),rt(this.config.defaultTracking)&&n.push(this.track(Ft,void 0,{event_id:a?++i:i,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,m(Promise.all(n))},t.prototype.extendSession=function(){this.config?this.config.lastEventTime=Date.now():this.q.push(this.extendSession.bind(this))},t.prototype.setTransport=function(e){this.config?this.config.transportProvider=ln(e):this.q.push(this.setTransport.bind(this,e))},t.prototype.identify=function(t,n){if(pt(t)){var r=t._q;t._q=[],t=dt(new qe,r)}return(null==n?void 0:n.user_id)&&this.setUserId(n.user_id),(null==n?void 0:n.device_id)&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,t,n)},t.prototype.groupIdentify=function(t,n,r,o){if(pt(r)){var i=r._q;r._q=[],r=dt(new qe,i)}return e.prototype.groupIdentify.call(this,t,n,r,o)},t.prototype.revenue=function(t,n){if(pt(t)){var r=t._q;t._q=[],t=dt(new Ve,r)}return e.prototype.revenue.call(this,t,n)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign||!Zi(this.webAttribution.options))return!1;var n=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(n).promise):this.track(n),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return(0,f.sH)(this,void 0,void 0,function(){var n,r,o;return(0,f.YH)(this,function(i){return n=Date.now(),r=Ge(this.config.sessionTimeout,this.config.lastEventTime),o=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===Ft||t.event_type===qt||t.session_id&&t.session_id!==this.getSessionId()||(r||o?(this.setSessionId(n),o&&this.config.loggerProvider.log("Created a new session for new campaign.")):r||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]})})},t.prototype.logBrowserOptions=function(e){try{var t=(0,f.Cl)((0,f.Cl)({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",Xe(t))}catch(Qo){this.config.loggerProvider.error("Error logging browser config",Qo)}},t.prototype._setDiagnosticsSampleRate=function(e){e>1||e<0||this.config||(this._diagnosticsSampleRate=e)},t}(Qe),ta=function(){var e=new ea;return{init:g(e.init.bind(e),"init",p(e),h(e,["config"])),add:g(e.add.bind(e),"add",p(e),h(e,["config.apiKey","timeline.plugins"])),remove:g(e.remove.bind(e),"remove",p(e),h(e,["config.apiKey","timeline.plugins"])),track:g(e.track.bind(e),"track",p(e),h(e,["config.apiKey","timeline.queue.length"])),logEvent:g(e.logEvent.bind(e),"logEvent",p(e),h(e,["config.apiKey","timeline.queue.length"])),identify:g(e.identify.bind(e),"identify",p(e),h(e,["config.apiKey","timeline.queue.length"])),groupIdentify:g(e.groupIdentify.bind(e),"groupIdentify",p(e),h(e,["config.apiKey","timeline.queue.length"])),setGroup:g(e.setGroup.bind(e),"setGroup",p(e),h(e,["config.apiKey","timeline.queue.length"])),revenue:g(e.revenue.bind(e),"revenue",p(e),h(e,["config.apiKey","timeline.queue.length"])),flush:g(e.flush.bind(e),"flush",p(e),h(e,["config.apiKey","timeline.queue.length"])),getUserId:g(e.getUserId.bind(e),"getUserId",p(e),h(e,["config","config.userId"])),setUserId:g(e.setUserId.bind(e),"setUserId",p(e),h(e,["config","config.userId"])),getDeviceId:g(e.getDeviceId.bind(e),"getDeviceId",p(e),h(e,["config","config.deviceId"])),setDeviceId:g(e.setDeviceId.bind(e),"setDeviceId",p(e),h(e,["config","config.deviceId"])),reset:g(e.reset.bind(e),"reset",p(e),h(e,["config","config.userId","config.deviceId"])),getSessionId:g(e.getSessionId.bind(e),"getSessionId",p(e),h(e,["config"])),setSessionId:g(e.setSessionId.bind(e),"setSessionId",p(e),h(e,["config"])),extendSession:g(e.extendSession.bind(e),"extendSession",p(e),h(e,["config"])),setOptOut:g(e.setOptOut.bind(e),"setOptOut",p(e),h(e,["config"])),setTransport:g(e.setTransport.bind(e),"setTransport",p(e),h(e,["config"])),getIdentity:g(e.getIdentity.bind(e),"getIdentity",p(e),h(e,["config"])),setIdentity:g(e.setIdentity.bind(e),"setIdentity",p(e),h(e,["config","config.userId","config.deviceId"])),getOptOut:g(e.getOptOut.bind(e),"getOptOut",p(e),h(e,["config"])),_setDiagnosticsSampleRate:g(e._setDiagnosticsSampleRate.bind(e),"_setDiagnosticsSampleRate",p(e),h(e,["config"]))}},na=(ta(),{production:"88cf5b0af46a7ea03e4c55e329297106",development:"5dceeefed9db59d2104f53897fbab3d2"}),ra=Object.assign({plan:{version:"278",branch:"main",source:"web",versionId:"7cd0b31e-a600-4a99-a60d-faa9a1043ef6"}},{ingestionMetadata:{sourceName:"browser-typescript-ampli",sourceVersion:"2.0.0"}}),oa=function(){this.event_type="Demo Suspect Score Clicked"},ia=function(e){this.event_type="Get Demo Contacted",this.event_properties=e,this.event_properties=e},aa=function(e){this.event_type="Nav Item Clicked",this.event_properties=e,this.event_properties=e},sa=function(){this.event_type="ROI Calculator Form Submitted"},ua=function(){this.event_type="ROI Calculator Used"},ca=function(e){this.event_type="Sales Contacted",this.event_properties=e,this.event_properties=e},la=function(e){this.event_type="Signup Options Shown",this.event_properties=e,this.event_properties=e},fa=function(e){this.event_type="Signup Started",this.event_properties=e,this.event_properties=e},da=function(e){this.event_type="Template Web CTA Clicked",this.event_properties=e,this.event_properties=e},pa=function(e){this.event_type="Web CTA Clicked",this.event_properties=e,this.event_properties=e},va=function(e){this.event_type="Web Form Submitted",this.event_properties=e,this.event_properties=e},ha=function(e){this.event_type="Web Page Viewed",this.event_properties=e,this.event_properties=e},ga=function(e){this.event_type="Web Sales Call Scheduled",this.event_properties=e,this.event_properties=e},ma=function(){return{promise:Promise.resolve()}},ya=new(function(){function e(){this.disabled=!1}var t=e.prototype;return t.isInitializedAndEnabled=function(){return this.amplitude?!this.disabled:(console.error("ERROR: Ampli is not yet initialized. Have you called ampli.load() on app start?"),!1)},t.load=function(e){var t;if(this.disabled=null!==(t=e.disabled)&&void 0!==t&&t,this.amplitude)return console.warn("WARNING: Ampli is already intialized. Ampli.load() should be called once at application startup."),ma();var n=null;if(e.client&&"apiKey"in e.client?n=e.client.apiKey:"environment"in e&&(n=na[e.environment]),e.client&&"instance"in e.client)this.amplitude=e.client.instance;else{if(n){this.amplitude=ta();var r=e.client&&"configuration"in e.client?e.client.configuration:{};return this.amplitude.init(n,void 0,Object.assign({},ra,r))}console.error("ERROR: ampli.load() requires 'environment', 'client.apiKey', or 'client.instance'")}return ma()},t.identify=function(e,t,n){if(!this.isInitializedAndEnabled())return ma();e&&(n=Object.assign({},n,{user_id:e}));var r=new qe,o=t;if(null!=o)for(var i=0,a=Object.entries(o);i<a.length;i++){var s=a[i],u=s[0],c=s[1];r.set(u,c)}return this.amplitude.identify(r,n)},t.setGroup=function(e,t,n){return this.isInitializedAndEnabled()?this.amplitude.setGroup(e,t,n):ma()},t.groupIdentify=function(e,t,n,r){if(!this.isInitializedAndEnabled())return ma();var o=new qe,i=n;if(null!=i)for(var a=0,s=Object.entries(i);a<s.length;a++){var u=s[a],c=u[0],l=u[1];o.set(c,l)}return this.amplitude.groupIdentify(e,t,o,r)},t.flush=function(){return this.isInitializedAndEnabled()?this.amplitude.flush():ma()},t.track=function(e,t){return this.isInitializedAndEnabled()?this.amplitude.track(e,void 0,t):ma()},t.demoSuspectScoreClicked=function(e){return this.track(new oa,e)},t.getDemoContacted=function(e,t){return this.track(new ia(e),t)},t.navItemClicked=function(e,t){return this.track(new aa(e),t)},t.roiCalculatorFormSubmitted=function(e){return this.track(new sa,e)},t.roiCalculatorUsed=function(e){return this.track(new ua,e)},t.salesContacted=function(e,t){return this.track(new ca(e),t)},t.signupOptionsShown=function(e,t){return this.track(new la(e),t)},t.signupStarted=function(e,t){return this.track(new fa(e),t)},t.templateWebCtaClicked=function(e,t){return this.track(new da(e),t)},t.webCtaClicked=function(e,t){return this.track(new pa(e),t)},t.webFormSubmitted=function(e,t){return this.track(new va(e),t)},t.webPageViewed=function(e,t){return this.track(new ha(e),t)},t.webSalesCallScheduled=function(e,t){return this.track(new ga(e),t)},(0,l.A)(e,[{key:"client",get:function(){return this.isInitializedAndEnabled(),this.amplitude}},{key:"isLoaded",get:function(){return null!=this.amplitude}}])}()),ba=n(55458),wa=(0,s.createContext)({ampli:ya,isClientLoaded:!1,botDetected:"False",setHeaderPresent:function(){}}),Ea=function(e){return e.Control="control",e.Treatment="treatment",e}({}),Sa=function(e){return e.AiInstallHomepageCta="ai-install-homepage-cta-2026",e}({}),xa="Web Page Viewed",Aa=function(e,t,n){return{name:"rename-event-properties-enrichment",type:"enrichment",setup:function(){return(0,o.A)(a().mark(function e(){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}},e)}))()},execute:function(r){return(0,o.A)(a().mark(function o(){var i;return a().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r.event_type===xa){o.next=1;break}return o.abrupt("return",r);case 1:return(i=r.event_properties)&&(r.event_properties={"Web Page Domain":i["[Amplitude] Page Domain"],"Web Page Location":i["[Amplitude] Page Location"],"Web Page Path":i["[Amplitude] Page Path"],"Web Page Title":i["[Amplitude] Page Title"],"Web Page URL":i["[Amplitude] Page URL"],botDetected:e,vmDetected:t,signupOptionsShown:n}),o.abrupt("return",r);case 2:case"end":return o.stop()}},o)}))()}}},ka=function(e){var t=e.children,n=(0,ba.xY)(),r=n.currentEvent,o=n.visitorId,i=(0,s.use
2State)("False"),a=i[0],l=i[1],f=(0,s.useState)(!1),d=f[0],p=f[1],v=(0,s.useState)(!1),h=v[0],g=v[1],m=(0,s.useCallback)(function(e){d&&ya.client&&e&&(ya.client.setDeviceId(e),ya.client.setGroup("fingerprint-device-id",e))},[d]);return(0,s.useEffect)(function(){o&&null!=r&&r.bot&&ya.load({client:{apiKey:u.HX,configuration:{serverUrl:u.Th?c.C1+"/9QlX9T00f/":void 0,deviceId:o,identityStorage:"localStorage",defaultTracking:{attribution:!0,pageViews:{eventType:xa,trackOn:function(){return/^[a-zA-Z0-9/-]*$/.test(window.location.pathname)}},sessions:!1,formInteractions:!1,fileDownloads:!1}}}}).promise.then(function(){var e="bad"===(null==r?void 0:r.bot)?"True":"False",t=Boolean(null==r?void 0:r.virtual_machine);ya.client.add(Aa(e,t,h)),p(!0)})},[o,r,h]),(0,s.useEffect)(function(){d&&o&&m(o)},[o,m,d]),(0,s.useEffect)(function(){if(d&&null!=r&&r.bot){var e="bad"===r.bot?"True":"False";l(e),ya.identify(void 0,{botDetected:e})}},[d,r]),(0,s.useEffect)(function(){if(d&&ya.client){var e="bad"===(null==r?void 0:r.bot)?"True":"False",t=Boolean(null==r?void 0:r.virtual_machine);ya.client.remove("rename-event-properties-enrichment"),ya.client.add(Aa(e,t,h))}},[d,h,r]),s.createElement(wa.Provider,{value:{ampli:ya,isClientLoaded:d,botDetected:a,setHeaderPresent:g}},t)},Oa=function(){return(0,s.useContext)(wa)}},7212:function(e,t,n){"use strict";var r=n(5613),o=n(1942),i=n(16453),a=n(5234),s=n(5604),u=n(14188),c=n(97964),l=n(48787),f=n(97509),d=i&&i.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a(function(){d.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=c(this,s("Promise")),n=u(e);return this.then(n?function(n){return l(t,e()).then(function(){return n})}:e,n?function(n){return l(t,e()).then(function(){throw n})}:e)}}),!o&&u(i)){var p=s("Promise").prototype.finally;d.finally!==p&&f(d,"finally",p,{unsafe:!0})}},8039:function(e,t,n){"use strict";n.d(t,{a:function(){return r}});var r=function(e){return e[e.Default=0]="Default",e[e.Loading=1]="Loading",e[e.Success=2]="Success",e[e.Failed=3]="Failed",e}({})},8416:function(e,t){"use strict";t.__esModule=!0,t.SessionStorage=void 0;var n="___GATSBY_REACT_ROUTER_SCROLL",r=function(){function e(){}var t=e.prototype;return t.read=function(e,t){var r=this.getStateKey(e,t);try{var o=window.sessionStorage.getItem(r);return o?JSON.parse(o):0}catch(i){return window&&window[n]&&window[n][r]?window[n][r]:0}},t.save=function(e,t,r){var o=this.getStateKey(e,t),i=JSON.stringify(r);try{window.sessionStorage.setItem(o,i)}catch(a){window&&window[n]||(window[n]={}),window[n][o]=JSON.parse(i)}},t.getStateKey=function(e,t){var n="@@scroll|"+e.pathname;return null==t?n:n+"|"+t},e}();t.SessionStorage=r},9295:function(e,t,n){"use strict";var r=n(27825),o=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var a,s,u=1;u<n;){for(s=u,a=e[u];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==u++&&(e[s]=a)}else for(var c=o(n/2),l=i(r(e,0,c),t),f=i(r(e,c),t),d=l.length,p=f.length,v=0,h=0;v<d||h<p;)e[v+h]=v<d&&h<p?t(l[v],f[h])<=0?l[v++]:f[h++]:v<d?l[v++]:f[h++];return e};e.exports=i},9304:function(e,t,n){"use strict";var r=n(96893),o=n(39944),i=n(74416),a=n(39123),s=n(10380),u=n(42344),c=n(74418),l=n(39622),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=u(t),l)try{return f(e,t)}catch(n){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},9383:function(e,t,n){"use strict";var r=n(52037).IteratorPrototype,o=n(77065),i=n(39123),a=n(93754),s=n(49164),u=function(){return this};e.exports=function(e,t,n,c){var l=t+" Iterator";return e.prototype=o(r,{next:i(+!c,n)}),a(e,l,!1,!0),s[l]=u,e}},9864:function(e,t,n){"use strict";t.z_=void 0;var r=n(12574);t.z_=r.ScrollHandler,n(63732).useScrollRestoration},10380:function(e,t,n){"use strict";var r=n(47568),o=n(39509);e.exports=function(e){return r(o(e))}},10746:function(e,t,n){"use strict";var r=n(62694);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},10997:function(e,t,n){"use strict";var r=n(74530),o=n(64466);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},11264:function(e,t,n){"use strict";var r=n(5613),o=n(50336),i=n(83628),a=n(69389),s=n(76744),u=n(75022);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),n=a(t),r=void 0===e?1:s(e),c=u(t,0);return o(c,t,t,n,0,r),c}})},11369:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(17545);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},11555:function(e,t,n){"use strict";n.d(t,{NA:function(){return r},cF:function(){return o},eP:function(){return a},yt:function(){return i}});var r=!1,o={events:[]},i={event_id:"",timestamp:0,identification:{}},a={visitor_id:""}},12574:function(e,t,n){"use strict";var r=n(4293);
2t.__esModule=!0,t.ScrollHandler=t.ScrollContext=void 0;var o=r(n(65372)),i=r(n(51934)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(14041)),s=r(n(39067)),u=n(8416);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}var l=a.createContext(new u.SessionStorage);t.ScrollContext=l,l.displayName="GatsbyScrollContext";var f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this)._stateStorage=new u.SessionStorage,t._isTicking=!1,t._latestKnownScrollY=0,t.scrollListener=function(){t._latestKnownScrollY=window.scrollY,t._isTicking||(t._isTicking=!0,requestAnimationFrame(t._saveScroll.bind((0,o.default)(t))))},t.windowScroll=function(e,n){t.shouldUpdateScroll(n,t.props)&&window.scrollTo(0,e)},t.scrollToHash=function(e,n){var r=document.getElementById(e.substring(1));r&&t.shouldUpdateScroll(n,t.props)&&r.scrollIntoView()},t.shouldUpdateScroll=function(e,n){var r=t.props.shouldUpdateScroll;return!r||r.call((0,o.default)(t),e,n)},t}(0,i.default)(t,e);var n=t.prototype;return n._saveScroll=function(){var e=this.props.location.key||null;e&&this._stateStorage.save(this.props.location,e,this._latestKnownScrollY),this._isTicking=!1},n.componentDidMount=function(){var e;window.addEventListener("scroll",this.scrollListener);var t=this.props.location,n=t.key,r=t.hash;n&&(e=this._stateStorage.read(this.props.location,n)),r?this.scrollToHash(decodeURI(r),void 0):e&&this.windowScroll(e,void 0)},n.componentWillUnmount=function(){window.removeEventListener("scroll",this.scrollListener)},n.componentDidUpdate=function(e){var t,n=this.props.location,r=n.hash,o=n.key;o&&(t=this._stateStorage.read(this.props.location,o)),r?this.scrollToHash(decodeURI(r),e):this.windowScroll(t,e)},n.render=function(){return a.createElement(l.Provider,{value:this._stateStorage},this.props.children)},t}(a.Component);t.ScrollHandler=f,f.propTypes={shouldUpdateScroll:s.default.func,children:s.default.element.isRequired,location:s.default.object.isRequired}},12913:function(e,t,n){"use strict";var r=n(44977),o=n(44318);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},13029:function(e,t,n){"use strict";var r=n(16881),o=n(14188),i=n(62694),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},13174:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},13405:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(56001);function o(e){return new r.A(e,0)}},14188:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},14319:function(e){function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},14578:function(e){"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}},14721:function(e,t,n){"use strict";var r=n(39944),o=n(3770),i=n(14188),a=n(38689),s=n(29342),u=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var c=r(n,e,t);return null!==c&&o(c),c}if("RegExp"===a(e))return r(s,e,t);throw new u("RegExp#exec called on incompatible receiver")}},14798:function(e,t,n){"use strict";var r=n(79117),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},15019:function(e,t,n){"use strict";var r=n(78134),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,v=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(v){var o=p(n);o&&o!==v&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(t),h=u(n),g=0;g<a.length;++g){var m=a[g];if(!(i[m]||r&&r[m]||h&&h[m]||s&&s[m])){var y=d(n,m);try{c(t,m,y)}catch(b){}}}}return t}},15189:function(e,t,n){"use strict";n(77846)},16453:function(e,t,n){"use strict";var r=n(79117);e.exports=r.Promise},16699:function(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},16712:function(e,t,n){"use strict";var r=n(80831);e.exports=function(e){return r(e)||null===e}},16881:function(e,t,n){"use strict";var r=n(89055),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},16910:function(e,t,n){"use strict";var r=n(4293);t.__esModule=!0,t.wrapRootElement=void 0;var o=r(n(14041)),i=n(33364);t.wrapRootElement=function(e,t){var n=e.element;return o.default.createElement(i.AppProviders,{element:n,pluginOptions:t})}},17048:function(e,t,n){var r=n(16699),o=n(95726),i=n(59540),a=n(75800),s=n(4686),u=n(71918),c=n(22696);function l(){"use strict";var t=o(),n=t.m(l),f=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function v(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,c(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=l=function(){return{wrap:function(e,n,r,o){return t.w(v(e),n,r,o&&o.reverse())},isGeneratorFunction:d,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,n,r,o){return(d(t)?a:i)(v(e),t,n,r,o)},keys:u,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports},17340:function(e,t,n){"use strict";
2var r=n(98060).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},17502:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:function(){return r}})},17545: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},r(e)}n.d(t,{A:function(){return r}})},18459:function(e,t,n){"use strict";n.r(t);var r=n(29579);"https:"!==window.location.protocol&&"localhost"!==window.location.hostname?console.error("Service workers can only be used over HTTPS, or on localhost for development"):"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then(function(e){e.addEventListener("updatefound",function(){(0,r.N)("onServiceWorkerUpdateFound",{serviceWorker:e});var t=e.installing;console.log("installingWorker",t),t.addEventListener("statechange",function(){switch(t.state){case"installed":navigator.serviceWorker.controller?(window.___swUpdated=!0,(0,r.N)("onServiceWorkerUpdateReady",{serviceWorker:e}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),(0,r.N)("onServiceWorkerInstalled",{serviceWorker:e}));break;case"redundant":console.error("The installing service worker became redundant."),(0,r.N)("onServiceWorkerRedundant",{serviceWorker:e});break;case"activated":(0,r.N)("onServiceWorkerActive",{serviceWorker:e})}})})}).catch(function(e){console.error("Error during service worker registration:",e)})},18670:function(e,t,n){"use strict";function r(e){return e instanceof Error?e.message:"Unknown error "+e}n.d(t,{u:function(){return r}})},21602:function(e,t,n){"use strict";n.d(t,{H:function(){return h},C:function(){return g}});var r=n(14041),o=n(1038);function i(e,t){var n=Object.keys(e).filter(function(e){return e.startsWith("utm_")}).reduce(function(t,n){return t[n]=e[n],t},{});return Object.assign({},n,t)}var a=n(23879),s=n(59468);function u(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 c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(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 l(e,t,n){var r=s.C1.replace(/^http(s?):\/\//i,""),o="";if(n){var i=new Date;i.setDate(i.getDate()+n),o="; expires="+i.toUTCString()}document.cookie=e+"="+(null!=t?t:"")+o+"; domain="+r+" ; path=/"}var f=n(29064),d="fpjsWebsiteData",p={landingPage:"",visitedPages:[],previousPage:"",utmParams:{}},v=20;function h(e){var t=e.children,n=(0,f.l8)().cookieChoice;return(0,r.useEffect)(function(){var e=new URLSearchParams(o.globalHistory.location.search).entries(),t=(0,a.MU)(e),n=document.referrer&&!document.referrer.includes("fingerprint.com")?document.referrer:void 0;return p.utmParams=i(t,{referral_url:null!=n?n:""}),p.landingPage=o.globalHistory.location.pathname,p.visitedPages.push(o.globalHistory.location.pathname),o.globalHistory.listen(function(e){if("PUSH"===e.action){var t=o.globalHistory.location.pathname,n=p.visitedPages[p.visitedPages.length-1];if(n===t)return;p.previousPage=n,p.visitedPages.push(t),p.visitedPages.length>=v+1&&p.visitedPages.splice(0,1)}})},[]),(0,r.useEffect)(function(){if(n.includes(f.AN.Analytics)){var e=function(e){for(var t,n=e+"=",r=u(document.cookie.split(";"));!(t=r()).done;){var o=t.value;if(0===(o=o.trim()).indexOf(n))return o.substring(n.length,o.length)}return null}(d),t=e&&JSON.parse(e).historyData;if(t)o.globalHistory.location.pathname===t.visitedPages[t.visitedPages.length-1]?p.visitedPages=t.visitedPages:(t.visitedPages.length===v&&t.visitedPages.splice(0,1),p.visitedPages=t.visitedPages.concat(p.visitedPages)),p.landingPage=t.landingPage;return l(d,JSON.stringify({historyData:p}),30),o.globalHistory.listen(function(e){"PUSH"===e.action&&l(d,JSON.stringify({historyData:p}),30)})}},[n]),r.createElement(r.Fragment,null,t)}function g(){return p}},21843:function(e,t,n){"use strict";var r=n(16881),o=n(74418),i=n(10380),a=n(81458).indexOf,s=n(67588),u=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&u(l,n);for(;t.length>c;)o(r,n=t[c++])&&(~a(l,n)||u(l,n));return l}},21850:function(e,t,n){"use strict";function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}var o=/(confirmation|invite|recovery|email_change)_token=([^&]+)/,i=/error=access_de
2nied&error_description=403/,a=/access_token=/;t.onInitialClientRender=function(e,t){var s=t.enableIdentityWidget,u=void 0===s||s,c=t.publicPath,l=void 0===c?"admin":c,f=(document.location.hash||"").replace(/^#\/?/,"");u&&(o.test(f)||i.test(f)||a.test(f))&&new Promise(function(e){return e("netlify-identity-widget")}).then(function(e){return function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(35879)(e))}).then(function(e){var t=e.default;t.on("init",function(e){e||t.on("login",function(){document.location.href="/"+l+"/"})}),t.init()})}},22155:function(e,t,n){"use strict";var r,o,i,a,s,u,c,l,f,d,p,v,h,g,m,y,b,w,E,S,x;n.d(t,{Ch:function(){return A},HX:function(){return T},Hk:function(){return I},It:function(){return U},Pw:function(){return k},S9:function(){return C},Th:function(){return L},bT:function(){return z},c:function(){return P},dI:function(){return D},g$:function(){return B},j6:function(){return R},jg:function(){return N},lz:function(){return q},ms:function(){return H},p8:function(){return F},pi:function(){return _},sB:function(){return j},tZ:function(){return O},y:function(){return M}});var A="b9Y07pv2XnjDfsj5yA4u",k=null!==(r="GTM-NCCSJM5")?r:"test_gtm_token",O=null!==(o={}.GATSBY_FPJS_SECRET_TOKEN)&&void 0!==o?o:"test_fpjs_secret_token",P=null!==(i="https://api.fpjs.io/v4/events")?i:"https://h1.fingerprintjs.com/pamplemousse/",C=null!==(a="https://api.fpjs.pro")?a:"",T=(s="L4hDQIBADpb3nLnf6jxL",u="d23QzcmWi9kZLacD2261",c="https://botd.fpapi.io/api/v1/verify",l="https://api.fpjs.io",f="https://mediaxpv.com/",null!==(d="88cf5b0af46a7ea03e4c55e329297106")?d:""),_=(p="https://api2.amplitude.com/2/httpapi",v="server-ddJmDSicpCZjlLRladAPg6BraCrkynyd",h="6LcNtColAAAAAAYqCIg928imHjgo5B1x1FaEYlbH",g="https://5lskauqq4j4at5nxikq3w4fsgm0rtmcw.lambda-url.us-east-1.on.aws","us"),R="pk.eyJ1IjoidmFsdmUxIiwiYSI6ImNqeXUwdHlnejA5YzMzaHBnN3R4OXF1czEifQ.4-Wne3WDiafdfFGLSTkFiQ",I=null!==(m="pubdecbf962d39a77e6c9792e26aa86364c")?m:"",j=null!==(y="149ed450-4386-4ea4-93a9-0cad3cb34b87")?y:"",D={}.BRANCH,N=null!==(b={}.GATSBY_HOST)&&void 0!==b?b:"https://fingerprint.com",U=!0,L=!0,M=null!=="8"?"8":"6",H=null!==(w="O4G7VRFVS2")?w:"O4G7VRFVS2",F=null!==(E="09ece33ac764adb69b84dafd4158047d")?E:"09ece33ac764adb69b84dafd4158047d",q="web",B=(S={}.GATSBY_CONTACT_SALES_THANK_YOU,Number(null!==(x="197478")?x:"197478")),z=Number("628")},22696:function(e,t,n){var r=n(14319).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},23113:function(e,t,n){"use strict";var r=n(39944),o=n(74418),i=n(4578),a=n(72306),s=n(34932),u=RegExp.prototype;e.exports=a.correct?function(e){return e.flags}:function(e){return a.correct||!i(u,e)||o(e,"flags")?e.flags:r(s,e)}},23315:function(e,t,n){"use strict";var r=n(96893),o=n(5234);e.exports=r&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},23878:function(e,t,n){var r=n(14319).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},23879:function(e,t,n){"use strict";function r(e){for(var t={},n=0,r=Array.from(e);n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t}function o(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<e;r++)t+=n.charAt(Math.floor(62*Math.random()));return t}function i(e){e.then(void 0,function(){})}n.d(t,{MU:function(){return r},em:function(){return i},kX:function(){return o}})},23971:function(e,t,n){"use strict";t.__esModule=!0,t.injectPartytownSnippet=function(e){if(!e.length)return;var t=document.querySelector("script[data-partytown]"),n=document.querySelector('iframe[src*="~partytown/partytown-sandbox-sw"]');t&&t.remove();n&&n.remove();var i=(0,o.getForwards)(e),a=document.createElement("script");a.dataset.partytown="",a.innerHTML=(0,r.partytownSnippet)({forward:i}),document.head.appendChild(a)};var r=n(92027),o=n(89030)},24505:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}
2e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},24548:function(e,t,n){"use strict";n.d(t,{BU:function(){return h},Cq:function(){return P},Il:function(){return l},X_:function(){return k},ZG:function(){return m},a1:function(){return x},gT:function(){return E},i0:function(){return d},n5:function(){return T},qp:function(){return b},v6:function(){return p}});var r=n(86330),o=n(75799),i=n.n(o),a=n(22155),s=n(59468),u=n(53028),c=n(23879);function l(e,t){return f.apply(this,arguments)}function f(){return(f=(0,r.A)(i().mark(function e(t,n){var r,o;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(0,c.kX)(4),!a.Th){e.next=2;break}return e.next=1,u.A.get(s.C1+"/"+r+"/",{headers:{"x-vercel-function":"visits","x-visitor-id":t},signal:n});case 1:o=e.sent,e.next=4;break;case 2:return e.next=3,u.A.get(a.c,{params:{limit:21,visitor_id:t},headers:{Authorization:"Bearer "+a.tZ},signal:n});case 3:o=e.sent;case 4:return e.abrupt("return",o.data);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}var d=function(e){return e.APAC="APAC",e.EMEA="EMEA",e.AMERICAS="Americas",e}({});function p(e){return v.apply(this,arguments)}function v(){return(v=(0,r.A)(i().mark(function e(t){var n,r,o,a,u,c,l,f,d,p,v;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.formName,r=t.email,o=t.url,a=t.jobTitle,u=t.description,c=t.apiCallsQuestion,l=t.landingPage,f=t.previousPage,d=t.utmParams,p=t.visitorId,v=t.ipRegion,e.next=1,fetch(s.C1+"/api/hubspot/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:n,email:r,url:o,description:u,apiCallsQuestion:c,jobTitle:a,utm_info:d,landingPage:l,previousPage:f,visitorId:p,ipRegion:v})});case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function h(e){return g.apply(this,arguments)}function g(){return(g=(0,r.A)(i().mark(function e(t){var n,r,o,a,u,c,l,f,d,p,v;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.formName,r=t.email,o=t.url,a=t.jobTitle,u=t.description,c=t.apiCallsQuestion,l=t.landingPage,f=t.previousPage,d=t.utmParams,p=t.visitorId,v=t.ipRegion,e.next=1,fetch(s.C1+"/api/hubspot-single-pane/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:n,email:r,url:o,description:u,apiCallsQuestion:c,jobTitle:a,utm_info:d,landingPage:l,previousPage:f,visitorId:p,ipRegion:v})});case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=(0,r.A)(i().mark(function e(t){var n,r,o,a;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.email,r=t.utmParams,o=t.visitorId,a=t.ipRegion,e.next=1,fetch(s.C1+"/api/hubspot-newsletter/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n,utm_info:r,visitorId:o,ipRegion:a})});case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function b(e){return w.apply(this,arguments)}function w(){return(w=(0,r.A)(i().mark(function e(t){var n,r,o,a,u;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.email,r=t.description,o=t.utmParams,a=t.visitorId,u=t.ipRegion,e.abrupt("return",fetch(s.C1+"/api/hubspot-support/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n,description:r,utm_info:o,visitorId:a,ipRegion:u})}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=(0,r.A)(i().mark(function e(t){var n,r,o,a;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.email,r=t.formName,o=t.company,a=t.message,e.abrupt("return",fetch(s.C1+"/api/hubspot-partners/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n,name:r,company:o,message:a})}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function x(e){return A.apply(this,arguments)}function A(){return(A=(0,r.A)(i().mark(function e(t){var n,r,o,c,l;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.device_id,r=t.event_properties,!a.Th){e.next=2;break}return c={device_id:n,flag_key:r.flag_key,variant:r.variant},e.next=1,u.A.post(s.C1+"/amp-exp/",c);case 1:o=e.sent,e.next=4;break;case 2:return l={api_key:a.HX,events:[{event_type:"$exposure",user_id:"",device_id:n,event_properties:{flag_key:r.flag_key,variant:r.variant}}]},e.next=3,u.A.post("https://api2.amplitude.com/2/httpapi",l);case 3:o=e.sent;case 4:return e.abrupt("return",o.data);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function k(){return O.apply(this,arguments)}function O(){return(O=(0,r.A)(i().mark(function e(){var t;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,u.A.get(a.S9+"/sso/oauth");case 1:return t=e.sent,e.abrupt("return",t.data);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function P(){return C.apply(this,arguments)}function C(){return(C=(0,r.A)(i().mark(function e(){var t;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,u.A.get(a.S9+"/service-status");case 1:return t=e.sent,e.abrupt("return",t.data);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}
2function T(e){var t=e.email,n=e.firstName,r=e.lastName,o=e.jobTitle,i=e.company,a=e.visitorId,u=e.ipRegion,c=e.utmParams,l=e.hubspotFormId,f=e.formName,d=e.requestDemo;return fetch(s.C1+"/api-webinar/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,utm_info:c,visitorId:a,ipRegion:u,jobTitle:o,company:i,firstName:n,lastName:r,hubspotFormId:l,formName:f,requestDemo:d})})}},24586:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(11369);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},25629:function(e,t,n){"use strict";var r=n(21843),o=n(61274).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},26082:function(e,t,n){"use strict";var r=n(14041);t.A=function(e,t){var n=(0,r.useState)(function(){try{var n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(r){return t}}),o=n[0],i=n[1];return[o,function(t){try{var n=t instanceof Function?t(o):t;i(n),window.localStorage.setItem(e,JSON.stringify(n))}catch(r){return}}]}},26719:function(e,t,n){"use strict";var r=n(38689);e.exports=Array.isArray||function(e){return"Array"===r(e)}},27011:function(e,t,n){"use strict";var r=n(5613),o=n(50336),i=n(44977),a=n(83628),s=n(69389),u=n(75022);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=a(this),r=s(n);return i(e),t=u(n,0),o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},27792:function(e,t,n){"use strict";n.d(t,{Tp:function(){return i},HQ:function(){return a},Uq:function(){return s}});var r=JSON.parse('{"APAC":{"countries":["AS","BD","IO","KH","CX","CK","PF","HK","ID","KR","MO","MV","FM","MM","NP","NZ","NF","PW","PH","WS","SB","TW","TL","TO","VU","WF","AU","BT","BN","CN","CC","FJ","GU","IN","JP","KI","LA","MY","MH","MN","NR","NC","NU","MP","PG","PN","SG","LK","TH","TK","TV","VN"]},"EMEA":{"countries":["AF","DZ","AO","AT","BH","BE","BA","BV","BF","CM","CF","KM","CD","HR","CZ","DJ","GQ","EE","FO","FR","GA","GE","GH","GR","GG","GW","VA","IS","IQ","IM","IT","JO","KE","KW","LV","LS","LY","LT","MK","MW","MT","MU","MD","ME","MZ","NL","NG","OM","PS","PT","RE","RU","SH","ST","SN","CS","SL","SI","ZA","ES","SJ","SE","SY","TZ","TN","TM","UA","GB","EH","ZM","AL","AD","AM","AZ","BY","BJ","BW","BG","BI","CV","TD","CG","CI","CY","DK","EG","ER","ET","FI","TF","GM","DE","GI","GL","GN","HM","HU","IR","IE","IL","JE","KZ","XK","KG","LB","LR","LI","LU","MG","ML","MR","YT","MC","MA","NA","NE","NO","PK","PL","QA","RO","RW","SM","SA","RS","SC","SK","SO","SS","SD","SZ","CH","TJ","TG","TR","UG","AE","UZ","YE","ZW"]},"LATAM":{"countries":["AL","AI","AG","AW","BB","BM","BR","CL","CR","CW","DO","SV","GF","GP","GY","HN","MQ","MS","NI","PY","PR","LC","SX","SR","TC","VE","VI","AL","AQ","AR","BS","BZ","BO","KY","CO","CU","DM","EC","FK","GD","GT","HT","JM","MX","AN","PA","PE","KN","VC","GS","TT","UY","VG"]},"AMER":{"countries":["CA","US","PM","UM"]}}'),o=n(24548),i=function(e){return e.APAC="APAC",e.EMEA="EMEA",e.LATAM="LATAM",e.AMER="AMER",e}({});function a(e){return Object.keys(r).find(function(t){return r[t].countries.includes(e)})||i.AMER}function s(e){return e===i.AMER||e===i.LATAM?o.i0.AMERICAS:e}},27825:function(e,t,n){"use strict";var r=n(16881);e.exports=r([].slice)},27985:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(86284);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},28146:function(e,t,n){"use strict";var r=n(4282),o=n(49164),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},29064:function(e,t,n){"use strict";n.d(t,{AN:function(){return a},dC:function(){return u},l8:function(){return c}});var r=n(14041),o=n(26082),i=n(95586),a=function(e){return e.NotDefined="not-defined",e.Required="required",e.Advertising="advertising",e.Analytics="analytics",e}({}),s=(0,r.createContext)({cookieChoice:[a.NotDefined],setCookieChoice:function(){},showBanner:!1});function u(e){var t=e.children,n=(0,i.k)(),u=n.isEuUser,c=n.userRegion,l=(0,o.A)("cookieChoice",[a.NotDefined]),f=l[0],d=l[1],p=(0,r.useState)(f),v=p[0],h=p[1],g=(0,r.useState)(!1),m=g[0],y=g[1];return(0,r.useEffect)(function(){void 0===c||u||h([a.Required,a.Advertising,a.Analytics])},[c,u]),(0,r.useEffect)(function(){y(v.includes(a.NotDefined)&&u)},[v,u]),(0,r.useEffect)(function(){d(v)},[v]),r.createElement(s.Provider,{value:{cookieChoice:v,setCookieChoice:h,showBanner:m}},t)}var c=function(){return(0,r.useContext)(s)}},29296:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(1087);function o(e,t){if("function"!=typeof t&&null!==t)throw new 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&&(0,r.A)(e,t)}},29342:function(e,t,n){"use strict";var r,o,i=n(39944),a=n(16881),s=n(92618),u=n(34932),c=n(95976),l=n(10746),f=n(77065),d=n(43086).get,p=n(56676),v=n(74609),h=l("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,m=g,y=a("".charAt),b=a("".indexOf),w=a("".replace),E=a("".slice),S=(o=/b*/g,i(g,r=/a/,"a"),i(g,o,"a"),0!==r.lastIndex||0!==o.lastIndex),x=c.BROKEN_CARET,A=void 0!==/()??/.exec("")[1],k=function(e,t){for(var n=e.groups=f(null),r=0;r<t.length;r++){var o=t[r];n[o[0]]=e[o[1]]}};(S||A||x||p||v)&&(m=function(e){var t,n,r,o=this,a=d(o),c=s(e),l=a.raw;if(l)return l.lastIndex=o.lastIndex,t=i(m,l,c),o.lastIndex=l.lastIndex,t&&a.groups&&k(t,a.groups),t;var f=a.groups,p=x&&o.sticky,v=i(u,o),O=o.source,P=0,C=c;if(p){v=w(v,"y",""),-1===b(v,"g")&&(v+="g"),C=E(c,o.lastIndex);var T=o.lastIndex>0&&y(c,o.lastIndex-1);o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==T&&"\r"!==T&&"\u2028"!==T&&"\u2029"!==T)&&(O="(?: (?:"+O+"))",C=" "+C,P++),n=new RegExp("^(?:"+O+")",v)}A&&(n=new RegExp("^"+O+"$(?!\\s)",v)),S&&(r=o.lastIndex);var _=i(g,p?n:o,C);return p?_?(_.input=c,_[0]=E(_[0],P),_.index=o.lastIndex,o.lastIndex+=_[0].length):o.lastIndex=0:S&&_&&(o.lastIndex=o.global?_.index+_[0].length:r),A&&_&&_.length>1&&i(h,_[0],n,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(_[e]=void 0)}),_&&f&&k(_,f),_}),e.exports=m},29579:function(e,t,n){var r=n(43818),o=n(60890).Zf,i=o.getResourceURLsForPathname,a=o.loadPage,s=o.loadPageSync;t.N=function(e,t,n,o){void 0===t&&(t={});var u=r.map(function(n){if(n.plugin[e]){t.getResourceURLsForPathname=i,t.loadPage=a,t.loadPageSync=s;var r=n.plugin[e](t,n.options);return r&&o&&(t=o({args:t,result:r,plugin:n})),r}});return(u=u.filter(function(e){return void 0!==e})).length>0?u:n?[n]:[]},t.v=function(e,t,n){return r.reduce(function(n,r){return r.plugin[e]?n.then(function(){return r.plugin[e](t,r.options)}):n},Promise.resolve())}},29742:function(e,t,n){"use strict";var r=n(5613),o=n(38873),i=n(94417);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,function(e,n){i(t,e,n)},{AS_ENTRIES:!0}),t}})},29982:function(e,t,n){"use strict";n(41685)},30156:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},30290:function(e,t,n){"use strict";var r=n(39944),o=n(80831),i=n(6032),a=n(12913),s=n(2287),u=n(4282),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,l);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},30414:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(11369);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},30473:function(e,t,n){"use strict";var r=n(80831),o=n(38689),i=n(4282)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},31694:function(e,t,n){"use strict";var r=n(75799),o=n(99436),i=n(5018),a=n(44668);function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function u(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}t.Observable=void 0;var c=function(e){return Boolean(Symbol[e])},l=function(e){return c(e)?Symbol[e]:"@@"+e},f=l("iterator"),d=l("observable"),p=l("species");function v(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function h(e){var t=e.constructor;return void 0!==t&&null===(t=t[p])&&(t=void 0),void 0!==t?t:A}function g(e){return e instanceof A}function m(e){m.log?m.log(e):setTimeout(function(){throw e})}function y(e){Promise.resolve().then(function(){try{e()}catch(t){m(t)}})}function b(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=v(t,"unsubscribe");n&&n.call(t)}}catch(r){m(r)}}function w(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function E(e,t,n){e._state="running";var r=e._observer;try{var o=v(r,t);switch(t){case"next":o&&o.call(r,n);break;case"error":if(w(e),!o)throw n;o.call(r,n);break;case"complete":w(e),o&&o.call(r)}}catch(i){m(i)}"closed"===e._state?b(e):"running"===e._state&&(e._state="ready")}function S(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void y(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(E(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)})):void E(e,t,n);e._queue.push({type:t,value:n})}}var x=function(){return a(function e(t,n){i(this,e),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var r=this,o={get closed(){return"closed"===r._state},next:function(e){S(r,"next",e)},error:function(e){S(r,"error",e)},complete:function(){S(r,"complete")}};try{this._cleanup=n.call(void 0,o)}catch(a){o.error(a)}"initializing"===this._state&&(this._state="ready")},[{key:"closed",get:function(){return"closed"===this._state}},{key:"unsubscribe",value:function(){"closed"!==this._state&&(w(this),b(this))}}])}(),A=function(){function e(t){if(i(this,e),!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}return a(e,[{key:"subscribe",value:function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new x(e,this._subscriber)}},{key:"forEach",value:function(e){var t=this;return new Promise(function(n,r){if("function"==typeof e)var o=t.subscribe({next:function(t){try{e(t,i)}catch(n){r(n),o.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function i(){o.unsubscribe(),n()}})}},{key:"map",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(h(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(r){return n.error(r)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})}},{key:"filter",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(h(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(r){return n.error(r)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})}},{key:"reduce",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=h(this),r=arguments.length>1,o=!1,i=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var a=!o;if(o=!0,!a||r)try{i=e(i,t)}catch(s){return n.error(s)}else i=t},error:function(e){n.error(e)},complete:function(){if(!o&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(i),n.complete()}})})}},{key:"all",value:(t=o(r.mark(function e(){var t;return r.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],e.next=1,this.forEach(function(e){return t.push(e)});case 1:return e.abrupt("return",t);case 2:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"concat",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=h(this);return new o(function(t){var r,i=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){i===n.length?(r=void 0,t.complete()):e(o.from(n[i++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})}},{key:"flatMap",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=h(this);return new n(function(r){var o=[],i=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(s){return r.error(s)}var i=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=o.indexOf(i);e>=0&&o.splice(e,1),a()}});o.push(i)},error:function(e){r.error(e)},complete:function(){a()}});function a(){i.closed&&0===o.length&&r.complete()}return function(){o.forEach(function(e){return e.unsubscribe()}),i.unsubscribe()}})}},{key:d,value:function(){return this}}],[{key:"from",value:function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=v(t,d);if(r){var o=r.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return g(o)&&o.constructor===n?o:new n(function(e){return o.subscribe(e)})}if(c("iterator")&&(r=v(t,f)))return new n(function(e){y(function(){if(!e.closed){var n,o=s(r.call(t));try{for(o.s();!(n=o.n()).done;){var i=n.value;if(e.next(i),e.closed)return}}catch(a){o.e(a)}finally{o.f()}e.complete()}})});if(Array.isArray(t))return new n(function(e){y(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw new TypeError(t+" is not observable")}},{key:"of",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)(function(e){y(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})}},{key:p,get:function(){return this}}]);var t}();t.Observable=A,Object.defineProperty(A,Symbol("extensions"),{value:{symbol:d,hostReportError:m},configurable:!0})},32222:function(e,t,n){"use strict";var r=n(98060).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},33364:function(e,t,n){"use strict";var r=n(4293);t.__esModule=!0,t.AppProviders=void 0;var o=r(n(14041)),i=n(49081),a=n(57852);t.AppProviders=function(e){var t=e.element,n=e.pluginOptions,r=n.defaultCrumb,s=n.useClassNames,u=n.useAutoGen,c=n.usePathPrefix;return o.default.createElement(a.OptionsProvider,{useAutoGen:u||!1,useClassNames:s||!1,usePathPrefix:c||null},o.default.createElement(i.BreadcrumbProvider,{defaultCrumb:r||null},t))}},33975:function(e,t,n){"use strict";var r=n(5613),o=n(16881),i=n(44977),a=n(83628),s=n(69389),u=n(81305),c=n(92618),l=n(5234),f=n(9295),d=n(55397),p=n(32222),v=n(84598),h=n(63008),g=n(17340),m=[],y=o(m.sort),b=o(m.push),w=l(function(){m.sort(void 0)}),E=l(function(){m.sort(null)}),S=d("sort"),x=!l(function(){if(h)return h<70;if(!(p&&p>3)){if(v)return!0;
2if(g)return g<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:t+r,v:n})}for(m.sort(function(e,t){return t.v-e.v}),r=0;r<m.length;r++)t=m[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}});r({target:"Array",proto:!0,forced:w||!E||!S||!x},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(x)return void 0===e?y(t):y(t,e);var n,r,o=[],l=s(t);for(r=0;r<l;r++)r in t&&b(o,t[r]);for(f(o,function(e){return function(t,n){if(void 0===n)return-1;if(void 0===t)return 1;if(void 0!==e)return+e(t,n)||0;var r=c(t),o=c(n);return r===o?0:r>o?1:-1}}(e)),n=s(o),r=0;r<n;)t[r]=o[r++];for(;r<l;)u(t,r++);return t}})},34350:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(72715),o=n(1087);var i=n(72019);function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new 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(0,i.A)(e,arguments,(0,r.A)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,o.A)(n,e)},a(e)}},34932:function(e,t,n){"use strict";var r=n(3770);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},35879:function(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=function(){return[]},t.resolve=t,t.id=35879,e.exports=t},36554:function(e,t,n){"use strict";var r=n(79117),o=n(39944),i=n(47223),a=n(69389),s=n(57584),u=n(83628),c=n(5234),l=r.RangeError,f=r.Int8Array,d=f&&f.prototype,p=d&&d.set,v=i.aTypedArray,h=i.exportTypedArrayMethod,g=!c(function(){var e=new Uint8ClampedArray(2);return o(p,e,{length:1,0:3},1),3!==e[1]}),m=g&&i.NATIVE_ARRAY_BUFFER_VIEWS&&c(function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});h("set",function(e){v(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=u(e);if(g)return o(p,this,n,t);var r=this.length,i=a(n),c=0;if(i+t>r)throw new l("Wrong length");for(;c<i;)this[t+c]=n[c++]},!g||m)},38689:function(e,t,n){"use strict";var r=n(16881),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},38873:function(e,t,n){"use strict";var r=n(85821),o=n(39944),i=n(3770),a=n(13174),s=n(28146),u=n(69389),c=n(4578),l=n(62350),f=n(69874),d=n(88500),p=TypeError,v=function(e,t){this.stopped=e,this.result=t},h=v.prototype;e.exports=function(e,t,n){var g,m,y,b,w,E,S,x=n&&n.that,A=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),P=!(!n||!n.INTERRUPTED),C=r(t,x),T=function(e){var t=g;return g=void 0,t&&d(t,"normal"),new v(!0,e)},_=function(e){return A?(i(e),P?C(e[0],e[1],T):C(e[0],e[1])):P?C(e,T):C(e)};if(k)g=e.iterator;else if(O)g=e;else{if(!(m=f(e)))throw new p(a(e)+" is not iterable");if(s(m)){for(y=0,b=u(e);b>y;y++)if((w=_(e[y]))&&c(h,w))return w;return new v(!1)}g=l(e,m)}for(E=k?e.next:g.next;!(S=o(E,g)).done;){var R=S.value;try{w=_(R)}catch(I){if(!g)throw I;d(g,"throw",I)}if("object"==typeof w&&w&&c(h,w))return w}return new v(!1)}},39123:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},39509:function(e,t,n){"use strict";var r=n(44318),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},39622:function(e,t,n){"use strict";var r=n(96893),o=n(5234),i=n(65926);e.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},39850:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(17502);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},39944:function(e,t,n){"use strict";var r=n(89055),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},40168:function(e,t,n){"use strict";var r=n(10746),o=n(66209),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},40458:function(e,t,n){"use strict";n(47146),e.exports=function e(t,n){if(t===n)return!0;
2if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))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=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},41568:function(e,t,n){"use strict";var r=n(79140),o=n(29579),i=n(14041),a=n(1038),s=n(9864),u=n(85033),c=n(91613),l=n(60890),f=n(6148),d=n(44758),p={id:"gatsby-announcer",style:{position:"absolute",top:0,width:1,height:1,padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},"aria-live":"assertive","aria-atomic":"true"},v=n(50145);function h(e){var t=(0,f.X)(e),n=window.location,r=n.hash,o=n.search;return null!=t&&(window.___replace(t.toPath+o+r),!0)}var g="";window.addEventListener("unhandledrejection",function(e){/loading chunk \d* failed./i.test(e.reason)&&g&&(window.location.pathname=g)});var m=function(e,t){h(e.pathname)||(g=e.pathname,(0,o.N)("onPreRouteUpdate",{location:e,prevLocation:t}))},y=function(e,t){h(e.pathname)||(0,o.N)("onRouteUpdate",{location:e,prevLocation:t})},b=function(e,t){if(void 0===t&&(t={}),"number"!=typeof e){var n=(0,v.Rr)(e),r=n.pathname,i=n.search,s=n.hash,u=(0,f.X)(r);if(u&&(e=u.toPath+i+s),window.___swUpdated)window.location=r+i+s;else{var c=setTimeout(function(){d.A.emit("onDelayedLoadPageResources",{pathname:r}),(0,o.N)("onRouteUpdateDelayed",{location:window.location})},1e3);l.Ay.loadPage(r+i).then(function(n){if(!n||n.status===l.Wi.Error)return window.history.replaceState({},"",location.href),window.location=r,void clearTimeout(c);n&&n.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),window.location=r+i+s),(0,a.navigate)(e,t),clearTimeout(c)})}}else a.globalHistory.navigate(e)};function w(e,t){var n=this,r=t.location,i=r.pathname,a=r.hash,s=(0,o.N)("shouldUpdateScroll",{prevRouterProps:e,pathname:i,routerProps:{location:r},getSavedScrollPosition:function(e){return[0,n._stateStorage.read(e,e.key)]}});if(s.length>0)return s[s.length-1];if(e&&e.location.pathname===i)return a?decodeURI(a.slice(1)):[0,0];return!0}var E=function(e){function t(t){var n;return(n=e.call(this,t)||this).announcementRef=i.createRef(),n}(0,r.A)(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){var n=this;requestAnimationFrame(function(){var e="new page at "+n.props.location.pathname;document.title&&(e=document.title);var t=document.querySelectorAll("#gatsby-focus-wrapper h1");t&&t.length&&(e=t[0].textContent);var r="Navigated to "+e;n.announcementRef.current&&(n.announcementRef.current.innerText!==r&&(n.announcementRef.current.innerText=r))})},n.render=function(){return i.createElement("div",Object.assign({},p,{ref:this.announcementRef}))},t}(i.Component),S=function(e,t){var n,r;return e.href!==t.href||(null==e||null===(n=e.state)||void 0===n?void 0:n.key)!==(null==t||null===(r=t.state)||void 0===r?void 0:r.key)},x=function(e){function t(t){var n;return n=e.call(this,t)||this,m(t.location,null),n}(0,r.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){y(this.props.location,null)},n.shouldComponentUpdate=function(e){return!!S(this.props.location,e.location)&&(m(e.location,this.props.location),!0)},n.componentDidUpdate=function(e){S(e.location,this.props.location)&&y(this.props.location,e.location)},n.render=function(){return i.createElement(i.Fragment,null,this.props.children,i.createElement(E,{location:location}))},t}(i.Component),A=n(81177),k=n(63616);function O(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var P=function(e){function t(t){var n;n=e.call(this)||this;var r=t.location,o=t.pageResources;return n.state={location:Object.assign({},r),pageResources:o||l.Ay.loadPageSync(r.pathname+r.search,{withErrorDetails:!0})},n}(0,r.A)(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.location;return t.location.href!==n.href?{pageResources:l.Ay.loadPageSync(n.pathname+n.search,{withErrorDetails:!0}),location:Object.assign({},n)}:{location:Object.assign({},n)}};var n=t.prototype;return n.loadResources=function(e){var t=this;l.Ay.loadPage(e).then(function(n){n&&n.status!==l.Wi.Error?t.setState({location:Object.assign({},window.location),pageResources:n}):(window.history.replaceState({},"",location.href),window.location=e)})},n.shouldComponentUpdate=function(e,t){return t.pageResources?this.state.pageResources!==t.pageResources||
2(this.state.pageResources.component!==t.pageResources.component||(this.state.pageResources.json!==t.pageResources.json||(!(this.state.location.key===t.location.key||!t.pageResources.page||!t.pageResources.page.matchPath&&!t.pageResources.page.path)||function(e,t,n){return O(e.props,t)||O(e.state,n)}(this,e,t)))):(this.loadResources(e.location.pathname+e.location.search),!1)},n.render=function(){return this.props.children(this.state)},t}(i.Component),C=n(59146),T=JSON.parse('[{"path":"/home-a/","matchPath":"/"},{"path":"/home-b/","matchPath":"/"},{"path":"/","matchPath":"/"}]'),_=n(64837),R=new l.N5(k,T,window.pageData);(0,l.iC)(R),R.setApiRunner(o.N);var I=(0,_.n)(),j=I.render,D=I.hydrate;window.asyncRequires=k,window.___emitter=d.A,window.___loader=l.Zf,a.globalHistory.listen(function(e){e.location.action=e.action}),window.___push=function(e){return b(e,{replace:!1})},window.___replace=function(e){return b(e,{replace:!0})},window.___navigate=function(e,t){return b(e,t)};var N="gatsby-reload-compilation-hash-match";(0,o.v)("onClientEntry").then(function(){var e=function(e,t){console.error("Uncaught error:",e,t),(0,o.N)("onUncaughtError",{error:e,errorInfo:t})},t=function(e,t){(0,o.N)("onCaughtError",{error:e,errorInfo:t})};(0,o.N)("registerServiceWorker").filter(Boolean).length>0&&n(18459);var f=function(e){return i.createElement(a.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},i.createElement(A.A,e))},d=i.createContext({}),p={renderEnvironment:"browser"},v=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this.props.children;return i.createElement(a.Location,null,function(t){var n=t.location;return i.createElement(P,{location:n},function(t){var n=t.pageResources,r=t.location,o=(0,l.LE)(),a=(0,l.Rh)();return i.createElement(u.G.Provider,{value:o},i.createElement(c.j$.Provider,{value:p},i.createElement(c.dd.Provider,{value:a},i.createElement(c.Jr.Provider,{value:n.page.slicesMap},i.createElement(d.Provider,{value:{pageResources:n,location:r}},e)))))})})},t}(i.Component),h=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return i.createElement(d.Consumer,null,function(t){var n=t.pageResources,r=t.location;return i.createElement(x,{location:r},i.createElement(s.z_,{location:r,shouldUpdateScroll:w},i.createElement(a.Router,{basepath:"",location:r,id:"gatsby-focus-wrapper"},i.createElement(f,Object.assign({path:"/404.html"===n.page.path||"/500.html"===n.page.path?(0,C.A)(r.pathname,""):encodeURI((n.page.matchPath||n.page.path).split("?")[0])},e.props,{location:r,pageResources:n},n.json)))))})},t}(i.Component),g=window,m=g.pagePath,y=g.location;m&&""+m!==y.pathname+(m.includes("?")?y.search:"")&&!(R.findMatchPath((0,C.A)(y.pathname,""))||m.match(/^\/(404|500)(\/?|.html)$/)||m.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&(0,a.navigate)(""+m+(m.includes("?")?"":y.search)+y.hash,{replace:!0});var b=function(){try{return sessionStorage}catch(e){return null}};l.Zf.loadPage(y.pathname+y.search).then(function(n){var r,a=b();if(null!=n&&null!==(r=n.page)&&void 0!==r&&r.webpackCompilationHash&&n.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),a&&!("1"===a.getItem(N))))return a.setItem(N,"1"),void window.location.reload(!0);if(a&&a.removeItem(N),!n||n.status===l.Wi.Error){var s="page resources for "+y.pathname+" not found. Not rendering React";if(n&&n.error)throw console.error(s),n.error;throw new Error(s)}var u=(0,o.N)("wrapRootElement",{element:i.createElement(h,null)},i.createElement(h,null),function(e){return{element:e.result}}).pop(),c=function(){var e=i.useRef(!1);return i.useEffect(function(){e.current||(e.current=!0,performance.mark&&performance.mark("onInitialClientRender"),(0,o.N)("onInitialClientRender"))},[]),i.createElement(v,null,u)},f=document.getElementById("gatsby-focus-wrapper"),d=function(n,r){return j(n,r,{onUncaughtError:e,onCaughtError:t})};f&&f.children.length&&(d=function(n,r){return D(n,r,{onUncaughtError:e,onCaughtError:t})});var p=(0,o.N)("replaceHydrateFunction",void 0,d)[0]||d;function g(){var e="undefined"!=typeof window?document.getElementById("___gatsby"):null;
2p(i.createElement(c,null),e)}var m=document;if("complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll)setTimeout(function(){g()},0);else{var w=function(){m.removeEventListener("DOMContentLoaded",w,!1),window.removeEventListener("load",w,!1),g()};m.addEventListener("DOMContentLoaded",w,!1),window.addEventListener("load",w,!1)}})})},41685:function(e,t,n){"use strict";var r=n(79117),o=n(92860),i=n(64466).f,a=n(9304).f,s=r.Symbol;if(o("dispose"),s){var u=a(s,"dispose");u.enumerable&&u.configurable&&u.writable&&i(s,"dispose",{value:u.value,enumerable:!1,configurable:!1,writable:!1})}},42344:function(e,t,n){"use strict";var r=n(30290),o=n(6032);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},43086:function(e,t,n){"use strict";var r,o,i,a=n(45945),s=n(79117),u=n(80831),c=n(88088),l=n(74418),f=n(62694),d=n(40168),p=n(67588),v="Object already initialized",h=s.TypeError,g=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new g);m.get=m.get,m.has=m.has,m.set=m.set,r=function(e,t){if(m.has(e))throw new h(v);return t.facade=e,m.set(e,t),t},o=function(e){return m.get(e)||{}},i=function(e){return m.has(e)}}else{var y=d("state");p[y]=!0,r=function(e,t){if(l(e,y))throw new h(v);return t.facade=e,c(e,y,t),t},o=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return n}}}},43640:function(e,t,n){"use strict";n.d(t,{A:function(){return x}});var r=n(14041),o=n(47948),i=n(6126),a=n(55458),s=n(6696),u=n(21602),c=n(29064),l=n(56846),f=n(22155),d=n(26082),p=[],v=(0,r.createContext)({experimentVariants:{}});function h(e){var t=e.children,n=(0,d.A)("ABLocalFlags",{}),o=n[0],i=n[1];return(0,r.useEffect)(function(){var e=[].concat(p);if(0!==e.length){var t=e.filter(function(e){return!(e in o)});if(0!==t.length){var n=Object.assign({},o);t.forEach(function(e){n[e]=Math.random()<.5?s.tn.Control:s.tn.Treatment}),i(n)}}},[o,i]),r.createElement(v.Provider,{value:{experimentVariants:o}},t)}var g=n(91203),m=n(6473),y=n(59934),b=n(54637),w=r.lazy(function(){return Promise.all([n.e(1869),n.e(4223),n.e(6638)]).then(n.bind(n,46638))}),E=(0,g.Ay)(function(){return Promise.all([n.e(1869),n.e(4223),n.e(7932)]).then(n.bind(n,7932)).then(function(e){return e.ExperimentDevTools})});function S(){var e=(0,m.g)().isPreview,t=r.useState(!1),n=t[0],o=t[1];return(0,r.useEffect)(function(){var t,n;if(!e&&"undefined"!=typeof window){var r=null!==(t=window.requestIdleCallback)&&void 0!==t?t:function(e){return window.setTimeout(e,2500)},i=null!==(n=window.cancelIdleCallback)&&void 0!==n?n:window.clearTimeout,a=r(function(){return o(!0)});return function(){return i(a)}}},[e]),e||!n?null:r.createElement(r.Suspense,{fallback:null},r.createElement(w,null))}function x(e){var t=e.children;return(0,r.useEffect)(function(){var e,t;if("undefined"!=typeof window){var n=null!==(e=window.requestIdleCallback)&&void 0!==e?e:function(e){return window.setTimeout(e,2500)},r=null!==(t=window.cancelIdleCallback)&&void 0!==t?t:window.clearTimeout,o=n(function(){(0,y.Jb)()});return function(){return r(o)}}},[]),r.createElement(A,null,r.createElement(a.PK,null,r.createElement(o.Op,null,r.createElement(l.Rn,null,r.createElement(c.dC,null,r.createElement(u.H,null,r.createElement(s.XQ,null,r.createElement(b.S,null,r.createElement(h,null,r.createElement(r.StrictMode,null,t),f.It?null:r.createElement(E,null),r.createElement(S,null))))))))))}function A(e){var t=e.children,n=f.Ch,o=f.pi,a="undefined"!=typeof window&&["localhost","127.0.0.1"].includes(window.location.hostname)?"https://api.stage.fpjs.sh":f.jg+"/r4a0Rd2Xs/";return n?r.createElement(i.we,{apiKey:n,region:o,endpoints:a,cache:{storage:"agent",duration:"optimize-cost"}},t):r.createElement(r.Fragment,null,t)}},43818:function(e,t,n){e.exports=[{plugin:n(16910),options:{plugins:[],useAutoGen:!0}},{plugin:n(71326),options:{plugins:[],maintainCase:!1,removeAccents:!0,offsetY:0,className:"anchor"}},{plugin:n(3720),options:{plugins:[],maxWidth:766,srcSetBreakpoints:[400,600,766],linkImagesToOriginal:!1,wrapperStyle:"max-height: 650px;",disableBgImage:!0,showCaptions:!1,markdownCaptions:!1,backgroundColor:"white",quality:50,withWebp:!1,withAvif:!1,loading:"lazy",decoding:"async",disableBgImageOnAlpha:!1}},{plugin:n(21850),options:{plugins:[],modulePath:"/vercel/path0/apps/gatsby/src/cms/cms.js",enableIdentityWidget:!1,publicPath:"admin",htmlTitle:"Fingerprint Content Manager"}},{plugin:n(49932),options:{plugins:[]}},{plugin:n(48652),options:{plugins:[]}}]},44318:function(e){"use strict";e.exports=function(e){return null==e}},44668:function(e,t,n){var r=n(56347);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},44758:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var r=function(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).slice().map(function(e){e(n)}),(e["*"]||[]).slice().map(function(e){e(t,n)})}}}()},44977:function(e,t,n){"use strict";var r=n(14188),o=n(13174),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},45945:function(e,t,n){"use strict";var r=n(79117),o=n(14188),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))}
2,47146:function(e,t,n){"use strict";var r=n(96893),o=n(10997),i=n(72306),a=n(34932);r&&!i.correct&&(o(RegExp.prototype,"flags",{configurable:!0,get:a}),i.correct=!0)},47223:function(e,t,n){"use strict";var r,o,i,a=n(58732),s=n(96893),u=n(79117),c=n(14188),l=n(80831),f=n(74418),d=n(65438),p=n(13174),v=n(88088),h=n(97509),g=n(10997),m=n(4578),y=n(91786),b=n(5054),w=n(4282),E=n(66209),S=n(43086),x=S.enforce,A=S.get,k=u.Int8Array,O=k&&k.prototype,P=u.Uint8ClampedArray,C=P&&P.prototype,T=k&&y(k),_=O&&y(O),R=Object.prototype,I=u.TypeError,j=w("toStringTag"),D=E("TYPED_ARRAY_TAG"),N="TypedArrayConstructor",U=a&&!!b&&"Opera"!==d(u.opera),L=!1,M={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},H={BigInt64Array:8,BigUint64Array:8},F=function(e){var t=y(e);if(l(t)){var n=A(t);return n&&f(n,N)?n[N]:F(t)}},q=function(e){if(!l(e))return!1;var t=d(e);return f(M,t)||f(H,t)};for(r in M)(i=(o=u[r])&&o.prototype)?x(i)[N]=o:U=!1;for(r in H)(i=(o=u[r])&&o.prototype)&&(x(i)[N]=o);if((!U||!c(T)||T===Function.prototype)&&(T=function(){throw new I("Incorrect invocation")},U))for(r in M)u[r]&&b(u[r],T);if((!U||!_||_===R)&&(_=T.prototype,U))for(r in M)u[r]&&b(u[r].prototype,_);if(U&&y(C)!==_&&b(C,_),s&&!f(_,j))for(r in L=!0,g(_,j,{configurable:!0,get:function(){return l(this)?this[D]:void 0}}),M)u[r]&&v(u[r].prototype,D,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:U,TYPED_ARRAY_TAG:L&&D,aTypedArray:function(e){if(q(e))return e;throw new I("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||m(T,e)))return e;throw new I(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(s){if(n)for(var o in M){var i=u[o];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(a){try{i.prototype[e]=t}catch(c){}}}_[e]&&!n||h(_,e,n?t:U&&O[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(s){if(b){if(n)for(r in M)if((o=u[r])&&f(o,e))try{delete o[e]}catch(i){}if(T[e]&&!n)return;try{return h(T,e,n?t:U&&T[e]||t)}catch(i){}}for(r in M)!(o=u[r])||o[e]&&!n||h(o,e,t)}},getTypedArrayConstructor:F,isView:function(e){if(!l(e))return!1;var t=d(e);return"DataView"===t||f(M,t)||f(H,t)},isTypedArray:q,TypedArray:T,TypedArrayPrototype:_}},47568:function(e,t,n){"use strict";var r=n(16881),o=n(5234),i=n(38689),a=Object,s=r("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?s(e,""):a(e)}:a},47948:function(e,t,n){"use strict";n.d(t,{Op:function(){return l},mN:function(){return i},or:function(){return u}});var r=n(14041),o=n(8039);function i(e){var t,n,i,u=(0,r.useContext)(f),c=u.state,l=u.dispatch;return{formState:null!==(t=null===(n=c[e])||void 0===n?void 0:n.formState)&&void 0!==t?t:o.a.Default,errorMessage:null===(i=c[e])||void 0===i?void 0:i.errorMessage,updateFormState:function(t){l({type:a,payload:{formId:e,formState:t}})},updateErrorMessage:function(t){l({type:s,payload:{formId:e,errorMessage:t}})}}}var a="UPDATE_FORM_STATE",s="UPDATE_ERROR_MESSAGE",u=function(e){return e[e.Signup=0]="Signup",e[e.ContactSales=1]="ContactSales",e[e.GetDemo=2]="GetDemo",e[e.ContactSupport=3]="ContactSupport",e[e.BotdGenerateToken=4]="BotdGenerateToken",e[e.NewsletterBanner=5]="NewsletterBanner",e[e.NewsletterFooter=6]="NewsletterFooter",e[e.NewsletterAnnoyingPopup=7]="NewsletterAnnoyingPopup",e[e.ContactPress=8]="ContactPress",e[e.ContactPartners=9]="ContactPartners",e[e.WebinarForm=10]="WebinarForm",e}({}),c=function(e,t){var n,r;switch(t.type){case a:return Object.assign({},e,((n={})[t.payload.formId]=Object.assign({},e[t.payload.formId],{formState:t.payload.formState}),n));case s:return Object.assign({},e,((r={})[t.payload.formId]=Object.assign({},e[t.payload.formId],{errorMessage:t.payload.errorMessage}),r));default:return e}};function l(e){var t=e.children,n=(0,r.useReducer)(c,{}),o={state:n[0],dispatch:n[1]};return r.createElement(f.Provider,{value:o},t)}var f=(0,r.createContext)({state:{},dispatch:function(){}})},48016:function(e,t){"use strict";t.DEFAULT_OPTIONS={maxWidth:650,wrapperStyle:"",backgroundColor:"white",linkImagesToOriginal:!0,showCaptions:!1,markdownCaptions:!1,withWebp:!1,withAvif:!1,tracedSVG:!1,loading:"lazy",decoding:"async",disableBgImageOnAlpha:!1,disableBgImage:!1},t.EMPTY_ALT="GATSBY_EMPTY_ALT",t.imageClass="gatsby-resp-image-image",t.imageWrapperClass="gatsby-resp-image-wrapper",t.imageBackgroun
2dClass="gatsby-resp-image-background-image"},48550:function(e){var t=Object.prototype.hasOwnProperty;function n(e){return"[Throws: "+(e?e.message:"?")+"]"}function r(e){var r=[];return function e(o){if(null===o||"object"!=typeof o)return o;if(-1!==r.indexOf(o))return"[Circular]";if(r.push(o),"function"==typeof o.toJSON)try{var i=e(o.toJSON());return r.pop(),i}catch(u){return n(u)}if(Array.isArray(o)){var a=o.map(e);return r.pop(),a}var s=Object.keys(o).reduce(function(r,i){return r[i]=e(function(e,r){if(t.call(e,r))try{return e[r]}catch(u){return n(u)}return e[r]}(o,i)),r},{});return r.pop(),s}(e)}e.exports=function(e,t,n){return JSON.stringify(r(e),t,n)},e.exports.ensureProperties=r},48652:function(e,t,n){"use strict";t.__esModule=!0,t.onInitialClientRender=void 0;n(59340),n(23971);t.onInitialClientRender=function(){}},48787:function(e,t,n){"use strict";var r=n(3770),o=n(80831),i=n(59444);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},48944:function(e,t,n){"use strict";var r=n(63008),o=n(5234),i=n(79117).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},49081:function(e,t,n){"use strict";var r=n(4293);t.__esModule=!0,t.BreadcrumbConsumer=t.BreadcrumbProvider=t.BreadcrumbContext=void 0;var o=r(n(24505)),i=r(n(14041)),a=r(n(39067)),s=i.default.createContext("Breadcrumb");t.BreadcrumbContext=s;var u=function(e){var t=e.children,n=e.defaultCrumb,r=i.default.useState(n?[(0,o.default)({pathname:n.location.pathname},n)]:[]),a=r[0],u=r[1],c={crumbs:a,updateCrumbs:function(e){var t=e.location,n=e.crumbLabel,r=e.crumbSeparator,i=e.crumbStyle,s=e.crumbActiveStyle,c=a.findIndex(function(e){return e.pathname===t.pathname});c>-1&&c<a.length-1&&u(a.slice(0,c)),-1===c&&u([].concat(a,[(0,o.default)({},t,{crumbLabel:n,crumbSeparator:r,crumbStyle:i,crumbActiveStyle:s})]))}};return i.default.createElement(s.Provider,{value:c},t)};t.BreadcrumbProvider=u;var c=s.Consumer;t.BreadcrumbConsumer=c,u.defaultProps={defaultCrumb:null},u.propTypes={children:a.default.node.isRequired,defaultCrumb:a.default.shape({location:a.default.shape({pathname:a.default.string}),crumbLabel:a.default.string,crumbSeparator:a.default.string,crumbStyle:a.default.shape(),crumbActiveStyle:a.default.shape()})}},49105:function(e,t,n){"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:function(){return r}})},49120:function(e,t,n){"use strict";var r=n(79117);e.exports=r},49127:function(e,t,n){e.exports=n(31694).Observable},49164:function(e){"use strict";e.exports={}},49932:function(e,t,n){"use strict";n.r(t),n.d(t,{onClientEntry:function(){return S},onInitialClientRender:function(){return x},onPreRouteUpdate:function(){return E},wrapPageElement:function(){return w}});var r,o=n(86330),i=n(75799),a=n.n(i),s=n(14041),u=n(43640),c=n(6473),l=function(e){var t="%c"+e;setTimeout(console.log.bind(console,t,"color: hsl(16, 96%, 48%);font-size: 20px;font-weight: bold;text-shadow: 1px 1px 5px hsl(16, 96%, 48%);filter: dropshadow(color=hsl(16, 96%, 48%), offx=1, offy=1);"),750)},f=n(24548),d=["Less than 1 million","Between 1 million and 9 million","More than 9 million"],p={name:"contact_sales",description:"Submit a contact request to the Fingerprint sales team. Use this when the user wants to talk to sales, get a quote, request a demo, or discuss using Fingerprint device intelligence. Requires a business email address (personal/free email providers are rejected). The sales team replies by email.",inputSchema:{type:"object",required:["email","fullName","companyWebsite","message"],properties:{email:{type:"string",description:"Business email address of the person contacting sales. Free email providers are rejected."},fullName:{type:"string",description:"Full name (first and last) of the person contacting sales."},companyWebsite:{type:"string",description:"Company website URL."},jobTitle:{type:"string",description:"Job title of the person contacting sales."},message:{type:"string",description:"What the user wants to discu
2ss with the sales team, including their use case."},monthlyApiCalls:{type:"string",enum:d,description:"Estimated monthly identification API call volume."}}},execute:(r=(0,o.A)(a().mark(function e(t){var n,r,o,i,s,u,c,l,p,h;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.email,r=t.fullName,o=t.companyWebsite,i=t.jobTitle,s=t.message,u=t.monthlyApiCalls,n&&r&&o&&s){e.next=1;break}return e.abrupt("return",v("Missing required fields: email, fullName, companyWebsite and message are all required."));case 1:if(!u||d.includes(u)){e.next=2;break}return e.abrupt("return",v("Invalid monthlyApiCalls value. Allowed values: "+d.join(" | ")+"."));case 2:return e.prev=2,e.next=3,(0,f.BU)({email:n,formName:r,url:o,jobTitle:i,description:s,apiCallsQuestion:u,landingPage:window.location.href,previousPage:document.referrer||void 0});case 3:return p=e.sent,e.next=4,p.json();case 4:if(null==(h=e.sent)||!h.ok){e.next=5;break}return e.abrupt("return",v("Contact request submitted successfully. The Fingerprint sales team will reply to the provided email address."));case 5:return e.abrupt("return",v("Contact request was not accepted: "+(null!==(c=null==h||null===(l=h.error)||void 0===l?void 0:l.message)&&void 0!==c?c:"validation failed")+". Check that the email is a valid business address (free email providers are rejected) and try again."));case 6:return e.prev=6,e.catch(2),e.abrupt("return",v("Contact request failed due to a network error. Please try again."));case 7:case"end":return e.stop()}},e,null,[[2,6]])})),function(e){return r.apply(this,arguments)})};function v(e){return{content:[{type:"text",text:e}]}}var h=n(91496),g=n(78549),m=n(96691);function y(){return b.apply(this,arguments)}function b(){return(b=(0,o.A)(a().mark(function e(){var t,n,r;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,fetch("/api/get-country/");case 1:return t=e.sent,e.next=2,t.json();case 2:return n=e.sent,e.abrupt("return",n.country);case 3:return e.prev=3,r=e.catch(0),console.error("Error fetching country data:",r),e.abrupt("return",null);case 4:case"end":return e.stop()}},e,null,[[0,3]])}))).apply(this,arguments)}var w=function(e){var t=e.element,n=e.props;return"/safari-repro/"===(null==n?void 0:n.path)?t:s.createElement(c.Y,{isPreview:!1},s.createElement(u.A,null,t))},E=function(){var e=(0,o.A)(a().mark(function e(t){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("/blog/geolocation-brazil-gambling-regulations/"===t.location.pathname){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,y();case 2:"BR"===e.sent&&(0,m.oo)("/blog/geolocation-brazil-gambling-regulations-br/",{replace:!0});case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),S=function(){!function(){try{var e,t=null!==(e="undefined"!=typeof navigator?navigator.modelContext:void 0)&&void 0!==e?e:"undefined"!=typeof document?document.modelContext:void 0;if(!t)return;"function"==typeof t.registerTool?t.registerTool(p):"function"==typeof t.provideContext&&t.provideContext({tools:[p]})}catch(n){}}(),(0,h.Z2)()},x=function(){l("Like breaking things to see how they work? Join us: "+g.k.careersConsoleLogUrl),l("Have a great day! ð«¶ð»")}},49980:function(e,t,n){"use strict";var r=n(26719),o=n(80866),i=n(80831),a=n(4282)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===s||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},50145:function(e,t,n){"use strict";n.d(t,{Fe:function(){return p},N_:function(){return E},Rr:function(){return u},oo:function(){return S}});var r=n(39067),o=n(14041),i=n(1038),a=n(75474);function s(){return s=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},s.apply(this,arguments)}function u(e){let t=e||"/",n="",r="";const o=t.indexOf("#");-1!==o&&(r=t.slice(o),t=t.slice(0,o));const i=t.indexOf("?");return-1!==i&&(n=t.slice(i),t=t.slice(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}const c=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{if("string"==typeof e)return!(e=>c.test(e))(e)},f=()=>"",d=()=>"";function p(e,t=f()){var n;if(!l(e))return e;if(e.startsWith("./")||e.startsWith("../"))return e;const r=null!=(n=null!=t?t:d())?n:"/";return`${null!=r&&r.endsWith("/")?r.slice(0,-1):r}${e.startsWith("/")?e:`/${e}`}`}const v=e=>null==e?void 0:e.startsWith("/");function h(e,t){const{pathname:n,search:r,hash:o}=u(e);return`${(0,a.T)(n,t)}${r}${o}`}const g=(e,t)=>
2"number"==typeof e?e:l(e)?v(e)?function(e){const t=p(e),n="always";return h(t,n)}(e):function(e,t){if(v(e))return e;const n="always",r=(0,i.resolve)(e,t);return h(r,n)}(e,t):e,m=["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace","_location"];const y={activeClassName:r.string,activeStyle:r.object,partiallyActive:r.bool};function b(e){return o.createElement(i.Location,null,({location:t})=>o.createElement(w,s({},e,{_location:t})))}class w extends o.Component{constructor(e){super(e),this.defaultGetProps=({isPartiallyCurrent:e,isCurrent:t})=>(this.props.partiallyActive?e:t)?{className:[this.props.className,this.props.activeClassName].filter(Boolean).join(" "),style:s({},this.props.style,this.props.activeStyle)}:null;let t=!1;"undefined"!=typeof window&&window.IntersectionObserver&&(t=!0),this.state={IOSupported:t},this.abortPrefetch=null,this.handleRef=this.handleRef.bind(this)}_prefetch(){let e=window.location.pathname+window.location.search;this.props._location&&this.props._location.pathname&&(e=this.props._location.pathname+this.props._location.search);const t=u(g(this.props.to,e)),n=t.pathname+t.search;if(e!==n)return ___loader.enqueue(n)}componentWillUnmount(){if(!this.io)return;const{instance:e,el:t}=this.io;this.abortPrefetch&&this.abortPrefetch.abort(),e.unobserve(t),e.disconnect()}handleRef(e){this.props.innerRef&&Object.prototype.hasOwnProperty.call(this.props.innerRef,"current")?this.props.innerRef.current=e:this.props.innerRef&&this.props.innerRef(e),this.state.IOSupported&&e&&(this.io=((e,t)=>{const n=new window.IntersectionObserver(n=>{n.forEach(n=>{e===n.target&&t(n.isIntersecting||n.intersectionRatio>0)})});return n.observe(e),{instance:n,el:e}})(e,e=>{e?this.abortPrefetch=this._prefetch():this.abortPrefetch&&this.abortPrefetch.abort()}))}render(){const e=this.props,{to:t,getProps:n=this.defaultGetProps,onClick:r,onMouseEnter:a,state:c,replace:f,_location:d}=e,p=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,m),v=g(t,d.pathname);return l(v)?o.createElement(i.Link,s({to:v,state:c,getProps:n,innerRef:this.handleRef,onMouseEnter:e=>{a&&a(e);const t=u(v);___loader.hovering(t.pathname+t.search)},onClick:e=>{if(r&&r(e),!(0!==e.button||this.props.target||e.defaultPrevented||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)){e.preventDefault();let t=f;const n=encodeURI(v)===d.pathname;"boolean"!=typeof f&&n&&(t=!0),window.___navigate(v,{state:c,replace:t})}return!0}},p)):o.createElement("a",s({href:v},p))}}w.propTypes=s({},y,{onClick:r.func,to:r.string.isRequired,replace:r.bool,state:r.object});const E=o.forwardRef((e,t)=>o.createElement(b,s({innerRef:t},e))),S=(e,t)=>{window.___navigate(g(e,window.location.pathname),t)}},50336:function(e,t,n){"use strict";var r=n(26719),o=n(69389),i=n(14578),a=n(85821),s=n(94417),u=function(e,t,n,c,l,f,d,p){for(var v,h,g=l,m=0,y=!!d&&a(d,p);m<c;)m in n&&(v=y?y(n[m],m,t):n[m],f>0&&r(v)?(h=o(v),g=u(e,t,v,h,g,f-1)-1):(i(g+1),s(e,g,v)),g++),m++;return g};e.exports=u},50680:function(e,t,n){"use strict";var r=n(5234);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},50767:function(e,t){},51934:function(e,t,n){var r=n(69893);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},52037:function(e,t,n){"use strict";var r,o,i,a=n(5234),s=n(14188),u=n(80831),c=n(77065),l=n(91786),f=n(97509),d=n(4282),p=n(1942),v=d("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):h=!0),!u(r)||a(function(){var e={};return r[v].call(e)!==e})?r={}:p&&(r=c(r)),s(r[v])||f(r,v,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},53028:function(e,t,n){"use strict";n.d(t,{A:function(){return fn}});var r={};n.r(r),n.d(r,{hasBrowserEnv:function(){return Ye},hasStandardBrowserEnv:function(){return Je},hasStandardBrowserWebWorkerEnv:function(){return Ve},navigator:function(){return We},origin:function(){return Ge}});var o=n(90689);n(36554),n(68472),n(58899);function i(e,t){return function(){return e.apply(t,arguments)}}var a,s=Object.prototype.toString,u=Object.getPrototypeOf,c=Symbol.iterator,l=Symbol.toStringTag,f=(a=Object.create(null),function(e){var t=s.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())}),d=function(e){return e=e.toLowerCase(),function(t){return f(t)===e}},p=function(e){return function(t){return typeof t===e}},v=Array.isArray,h=p("undefined");function g(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&b(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var m=d("ArrayBuffer");
2var y=p("string"),b=p("function"),w=p("number"),E=function(e){return null!==e&&"object"==typeof e},S=function(e){if("object"!==f(e))return!1;var t=u(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||l in e||c in e)},x=d("Date"),A=d("File"),k=d("Blob"),O=d("FileList");var P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},C=void 0!==P.FormData?P.FormData:void 0,T=d("URLSearchParams"),_=["ReadableStream","Request","Response","Headers"].map(d),R=(0,o.A)(_,4),I=R[0],j=R[1],D=R[2],N=R[3];function U(e,t){var n,r,o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,i=void 0!==o&&o;if(null!=e)if("object"!=typeof e&&(e=[e]),v(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(g(e))return;var a,s=i?Object.getOwnPropertyNames(e):Object.keys(e),u=s.length;for(n=0;n<u;n++)a=s[n],t.call(null,e[a],a,e)}}function L(e,t){if(g(e))return null;t=t.toLowerCase();for(var n,r=Object.keys(e),o=r.length;o-- >0;)if(t===(n=r[o]).toLowerCase())return n;return null}var M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,H=function(e){return!h(e)&&e!==M};var F,q,B=(F="undefined"!=typeof Uint8Array&&u(Uint8Array),function(e){return F&&e instanceof F}),z=d("HTMLFormElement"),Y=(q=Object.prototype.hasOwnProperty,function(e,t){return q.call(e,t)}),W=Object.prototype.propertyIsEnumerable,J=d("RegExp"),V=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};U(n,function(n,o){var i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};var G,K,X,$,Q=d("AsyncFunction"),Z=(G="function"==typeof setImmediate,K=b(M.postMessage),G?setImmediate:K?(X="axios@".concat(Math.random()),$=[],M.addEventListener("message",function(e){var t=e.source,n=e.data;t===M&&n===X&&$.length&&$.shift()()},!1),function(e){$.push(e),M.postMessage(X,"*")}):function(e){return setTimeout(e)}),ee="undefined"!=typeof queueMicrotask?queueMicrotask.bind(M):"undefined"!=typeof process&&process.nextTick||Z,te={isArray:v,isArrayBuffer:m,isBuffer:g,isFormData:function(e){if(!e)return!1;if(C&&e instanceof C)return!0;var t=u(e);if(!t||t===Object.prototype)return!1;if(!b(e.append))return!1;var n=f(e);return"formdata"===n||"object"===n&&b(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer)},isString:y,isNumber:w,isBoolean:function(e){return!0===e||!1===e},isObject:E,isPlainObject:S,isEmptyObject:function(e){if(!E(e)||g(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:I,isRequest:j,isResponse:D,isHeaders:N,isUndefined:h,isDate:x,isFile:A,isReactNativeBlob:function(e){return!(!e||void 0===e.uri)},isReactNative:function(e){return e&&void 0!==e.getParts},isBlob:k,isRegExp:J,isFunction:b,isStream:function(e){return E(e)&&b(e.pipe)},isURLSearchParams:T,isTypedArray:B,isFileList:O,forEach:U,merge:function e(){for(var t=H(this)&&this||{},n=t.caseless,r=t.skipUndefined,o={},i=function(t,i){if("__proto__"!==i&&"constructor"!==i&&"prototype"!==i){var a=n&&"string"==typeof i&&L(o,i)||i,s=Y(o,a)?o[a]:void 0;S(s)&&S(t)?o[a]=e(s,t):S(t)?o[a]=e({},t):v(t)?o[a]=t.slice():r&&h(t)||(o[a]=t)}},a=0,s=arguments.length;a<s;a++){var u=a<0||arguments.length<=a?void 0:arguments[a];if(u&&!g(u)&&(U(u,i),"object"==typeof u&&!v(u)))for(var c=Object.getOwnPropertySymbols(u),l=0;l<c.length;l++){var f=c[l];W.call(u,f)&&i(u[f],f)}}return o},extend:function(e,t,n){return U(t,function(t,r){n&&b(t)?Object.defineProperty(e,r,{__proto__:null,value:i(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
2configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&u(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:f,kindOfTest:d,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(v(e))return e;var t=e.length;if(!w(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[c]).call(e);(n=r.next())&&!n.done;){var o=n.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:z,hasOwnProperty:Y,hasOwnProp:Y,reduceDescriptors:V,freezeMethods:function(e){V(e,function(t,n){if(b(e)&&["arguments","caller","callee"].includes(n))return!1;var r=e[n];b(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:function(e,t){var n={},r=function(e){e.forEach(function(e){n[e]=!0})};return v(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n})},noop:function(){},toFiniteNumber:function(e,t){return null!=e&&Number.isFinite(e=+e)?e:t},findKey:L,global:M,isContextDefined:H,isSpecCompliantForm:function(e){return!!(e&&b(e.append)&&"FormData"===e[l]&&e[c])},toJSONObject:function(e){var t=new WeakSet,n=function(e){if(E(e)){if(t.has(e))return;if(g(e))return e;if(!("toJSON"in e)){t.add(e);var r=v(e)?[]:{};return U(e,function(e,t){var o=n(e);!h(o)&&(r[t]=o)}),t.delete(e),r}}return e};return n(e)},isAsyncFn:Q,isThenable:function(e){return e&&(E(e)||b(e))&&b(e.then)&&b(e.catch)},setImmediate:Z,asap:ee,isIterable:function(e){return null!=e&&b(e[c])}},ne=n(86330),re=n(55152),oe=n(30414),ie=n(75799),ae=n.n(ie),se=n(95309),ue=n(72715),ce=n(29296),le=n(34350),fe=n(83705),de=te.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var pe=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ve=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function he(e,t){return te.isArray(e)?e.map(function(e){return he(e,t)}):function(e){for(var t=0,n=e.length;t<n;){var r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;n>t;){var o=e.charCodeAt(n-1);if(9!==o&&32!==o)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function ge(e){var t=Object.create(null);return te.forEach(e.toJSON(),function(e,n){t[n]=function(e){return he(e,ve)}(e)}),t}function me(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function ye(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 be=Symbol("internals");function we(e){return e&&String(e).trim().toLowerCase()}function Ee(e){return!1===e||null==e?e:te.isArray(e)?e.map(Ee):function(e){return he(e,pe)}(String(e))}function Se(e,t,n,r,o){return te.isFunction(r)?r.call(this,t,n):(o&&(t=n),te.isString(t)?te.isString(r)?-1!==t.indexOf(r):te.isRegExp(r)?r.test(t):void 0:void 0)}var xe=function(){return(0,oe.A)(function e(t){(0,re.A)(this,e),t&&this.set(t)},[{key:"set",value:function(e,t,n){var r=this;function o(e,t,n){var o=we(t);if(o){var i=te.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ee(e))}}var i=function(e,t){return te.forEach(e,function(e,n){return o(e,n,t)})};if(te.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(te.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(function(e){var t,n,r,o={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||o[t]&&de[t]||("set-cookie"===t?o[t]?o[t].push(n):o[t]=[n]:o[t]=o[t]?o[t]+", "+n:n)}),o}(e),t);else if(te.isObject(e)&&te.isIterable(e)){var a,s,u,c={},l=me(e);try{for(l.s();!(u=l.n()).done;){var f=u.value;if(!te.isArray(f))throw new TypeError("Object iterator must return a key-value pair");c[s=f[0]]=(a=c[s])?te.isArray(a)?[].concat((0,fe.A)(a),[f[1]]):[a,f[1]]:f[1]}}
vendor: 2,212 bytes, line 2
2catch(d){l.e(d)}finally{l.f()}i(c,t)}else null!=e&&o(t,e,n);return this}},{key:"get",value:function(e,t){if(e=we(e)){var n=te.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(te.isFunction(t))return t.call(this,r,n);if(te.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=we(e)){var n=te.findKey(this,e);return!(!n||void 0===this[n]||t&&!Se(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=we(e)){var o=te.findKey(n,e);!o||t&&!Se(0,n[o],o,t)||(delete n[o],r=!0)}}return te.isArray(e)?e.forEach(o):o(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var o=t[n];e&&!Se(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return te.forEach(this,function(r,o){var i=te.findKey(n,o);if(i)return t[i]=Ee(r),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n})}(o):String(o).trim();a!==o&&delete t[o],t[a]=Ee(r),n[a]=!0}),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return te.forEach(this,function(n,r){null!=n&&!1!==n&&(t[r]=e&&te.isArray(n)?n.join(", "):n)}),t}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map(function(e){var t=(0,o.A)(e,2);return t[0]+": "+t[1]}).join("\n")}},{key:"getSetCookie",value:function(){return this.get("set-cookie")||[]}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach(function(e){return t.set(e)}),t}}
2,{key:"accessor",value:function(e){var t=(this[be]=this[be]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=we(e);t[r]||(!function(e,t){var n=te.toCamelCase(" "+t);["get","set","has"].forEach(function(r){Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return te.isArray(e)?e.forEach(r):r(e),this}}])}();xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),te.reduceDescriptors(xe.prototype,function(e,t){var n=e.value,r=t[0].toUpperCase()+t.slice(1);return{get:function(){return n},set:function(e){this[r]=e}}}),te.freezeMethods(xe);var Ae=xe;function ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ke=function(){return!!e})()}function Oe(e,t){var n=new Set(t.map(function(e){return String(e).toLowerCase()})),r=[],i=function(e){if(null===e||"object"!=typeof e)return e;if(te.isBuffer(e))return e;if(-1===r.indexOf(e)){var t;if(e instanceof Ae&&(e=e.toJSON()),r.push(e),te.isArray(e))t=[],e.forEach(function(e,n){var r=i(e);te.isUndefined(r)||(t[n]=r)});else{if(!te.isPlainObject(e)&&function(e){if(te.hasOwnProp(e,"toJSON"))return!0;for(var t=Object.getPrototypeOf(e);t&&t!==Object.prototype;){if(te.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(var a=0,s=Object.entries(e);a<s.length;a++){var u=(0,o.A)(s[a],2),c=u[0],l=u[1],f=n.has(c.toLowerCase())?"[REDACTED ****]":i(l);te.isUndefined(f)||(t[c]=f)}}return r.pop(),t}};return i(e)}var Pe=function(e){function t(e,n,r,o,i){var a,s,u,c;return(0,re.A)(this,t),s=this,u=t,c=[e],u=(0,ue.A)(u),a=(0,se.A)(s,ke()?Reflect.construct(u,c||[],(0,ue.A)(s).constructor):u.apply(s,c)),Object.defineProperty(a,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),a.name="AxiosError",a.isAxiosError=!0,n&&(a.code=n),r&&(a.config=r),o&&(a.request=o),i&&(a.response=i,a.status=i.status),a}return(0,ce.A)(t,e),(0,oe.A)(t,[{key:"toJSON",value:function(){var e=this.config,t=e&&te.hasOwnProp(e,"redact")?e.redact:void 0,n=te.isArray(t)&&t.length>0?Oe(e,t):te.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}],[{key:"from",value:function(e,n,r,o,i,a){var s=new t(e.message,n||e.code,r,o,i);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),a&&Object.assign(s,a),s}}])}((0,le.A)(Error));Pe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Pe.ERR_BAD_OPTION="ERR_BAD_OPTION",Pe.ECONNABORTED="ECONNABORTED",Pe.ETIMEDOUT="ETIMEDOUT",Pe.ECONNREFUSED="ECONNREFUSED",Pe.ERR_NETWORK="ERR_NETWORK",Pe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Pe.ERR_DEPRECATED="ERR_DEPRECATED",Pe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Pe.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Pe.ERR_CANCELED="ERR_CANCELED",Pe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Pe.ERR_INVALID_URL="ERR_INVALID_URL",Pe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var Ce=Pe;function Te(e){return te.isPlainObject(e)||te.isArray(e)}function _e(e){return te.endsWith(e,"[]")?e.slice(0,-2):e}function Re(e,t,n){return e?e.concat(t).map(function(e,t){return e=_e(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}var Ie=te.toFlatObject(te,{},null,function(e){return/^is[A-Z]/.test(e)});
2var je=function(e,t,n){if(!te.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=(n=te.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!te.isUndefined(t[e])})).metaTokens,o=n.visitor||f,i=n.dots,a=n.indexes,s=n.Blob||"undefined"!=typeof Blob&&Blob,u=void 0===n.maxDepth?100:n.maxDepth,c=s&&te.isSpecCompliantForm(t);if(!te.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(te.isDate(e))return e.toISOString();if(te.isBoolean(e))return e.toString();if(!c&&te.isBlob(e))throw new Ce("Blob is not supported. Use a Buffer instead.");return te.isArrayBuffer(e)||te.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function f(e,n,o){var s=e;if(te.isReactNative(t)&&te.isReactNativeBlob(e))return t.append(Re(o,n,i),l(e)),!1;if(e&&!o&&"object"==typeof e)if(te.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(te.isArray(e)&&function(e){return te.isArray(e)&&!e.some(Te)}(e)||(te.isFileList(e)||te.endsWith(n,"[]"))&&(s=te.toArray(e)))return n=_e(n),s.forEach(function(e,r){!te.isUndefined(e)&&null!==e&&t.append(!0===a?Re([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!Te(e)||(t.append(Re(o,n,i),l(e)),!1)}var d=[],p=Object.assign(Ie,{defaultVisitor:f,convertValue:l,isVisitable:Te});if(!te.isObject(e))throw new TypeError("data must be an object");return function e(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!te.isUndefined(n)){if(i>u)throw new Ce("Object is too deeply nested ("+i+" levels). Max depth: "+u,Ce.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==d.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));d.push(n),te.forEach(n,function(n,a){!0===(!(te.isUndefined(n)||null===n)&&o.call(t,n,te.isString(a)?a.trim():a,r,p))&&e(n,r?r.concat(a):[a],i+1)}),d.pop()}}(e),t};function De(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Ne(e,t){this._pairs=[],e&&je(e,this,t)}var Ue=Ne.prototype;Ue.append=function(e,t){this._pairs.push([e,t])},Ue.toString=function(e){var t=e?function(t){return e.call(this,t,De)}:De;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Le=Ne;function Me(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function He(e,t,n){if(!t)return e;var r,o=n&&n.encode||Me,i=te.isFunction(n)?{serialize:n}:n,a=i&&i.serialize;if(r=a?a(t,i):te.isURLSearchParams(t)?t.toString():new Le(t,i).toString(o)){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}var Fe=function(){return(0,oe.A)(function e(){(0,re.A)(this,e),this.handlers=[]},[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){te.forEach(this.handlers,function(t){null!==t&&e(t)})}}])}(),qe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},Be=n(24586),ze={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Le,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ye="undefined"!=typeof window&&"undefined"!=typeof document,We="object"==typeof navigator&&navigator||void 0,Je=Ye&&(!We||["ReactNative","NativeScript","NS"].indexOf(We.product)<0),Ve="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ge=Ye&&window.location.href||"http://localhost";function Ke(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 Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Ke(Object(n),!0).forEach(function(t){(0,Be.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var $e=Xe(Xe({},r),ze);function Qe(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 Ze(e,t){return je(e,new $e.classes.URLSearchParams,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach(function(t){(0,Be.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({visitor:function(e,t,n,r){return $e.isNode&&te.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}n(15189);var et=function(e){function t(e,n,r,o){var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),s=o>=e.length;return i=!i&&te.isArray(r)?r.length:i,s?(te.hasOwnProp(r,i)?r[i]=te.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!a):(te.hasOwnProp(r,i)&&te.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&te.isArray(r[i])&&(r[i]=function(e){var t,n,r={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)r[n=o[t]]=e[n];return r}(r[i])),!a)}if(te.isFormData(e)&&te.isFunction(e.entries)){var n={};return te.forEachEntry(e,function(e,r){t(function(e){return te.matchAll(/\w+|\[(\w*)]/g,e).map(function(e){return"[]"===e[0]?"":e[1]||e[0]})}(e),r,n,0)}),n}return null},tt=function(e,t){return null!=e&&te.hasOwnProp(e,t)?e[t]:void 0};var nt={transitional:qe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=te.isObject(e);if(i&&te.isHTMLForm(e)&&(e=new FormData(e)),te.isFormData(e))return o?JSON.stringify(et(e)):e;if(te.isArrayBuffer(e)||te.isBuffer(e)||te.isStream(e)||te.isFile(e)||te.isBlob(e)||te.isReadableStream(e))return e;if(te.isArrayBufferView(e))return e.buffer;if(te.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();
2if(i){var a=tt(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ze(e,a).toString();if((n=te.isFileList(e))||r.indexOf("multipart/form-data")>-1){var s=tt(this,"env"),u=s&&s.FormData;return je(n?{"files[]":e}:e,u&&new u,a)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(te.isString(e))try{return(t||JSON.parse)(e),te.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=tt(this,"transitional")||nt.transitional,n=t&&t.forcedJSONParsing,r=tt(this,"responseType"),o="json"===r;if(te.isResponse(e)||te.isReadableStream(e))return e;if(e&&te.isString(e)&&(n&&!r||o)){var i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,tt(this,"parseReviver"))}catch(a){if(i){if("SyntaxError"===a.name)throw Ce.from(a,Ce.ERR_BAD_RESPONSE,this,null,tt(this,"response"));throw a}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$e.classes.FormData,Blob:$e.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};te.forEach(["delete","get","head","post","put","patch","query"],function(e){nt.headers[e]={}});var rt=nt;function ot(e,t){var n=this||rt,r=t||n,o=Ae.from(r.headers),i=r.data;return te.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function it(e){return!(!e||!e.__CANCEL__)}function at(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(at=function(){return!!e})()}var st=function(e){function t(e,n,r){var o,i,a,s;return(0,re.A)(this,t),i=this,a=t,s=[null==e?"canceled":e,Ce.ERR_CANCELED,n,r],a=(0,ue.A)(a),(o=(0,se.A)(i,at()?Reflect.construct(a,s||[],(0,ue.A)(i).constructor):a.apply(i,s))).name="CanceledError",o.__CANCEL__=!0,o}return(0,ce.A)(t,e),(0,oe.A)(t)}(Ce);function ut(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ce("Request failed with status code "+n.status,n.status>=400&&n.status<500?Ce.ERR_BAD_REQUEST:Ce.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}var ct=function(e,t){e=e||10;var n,r=new Array(e),o=new Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){var u=Date.now(),c=o[a];n||(n=u),r[i]=s,o[i]=u;for(var l=a,f=0;l!==i;)f+=r[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),!(u-n<t)){var d=c&&u-c;return d?Math.round(1e3*f/d):void 0}}};var lt=function(e,t){var n,r,o=0,i=1e3/t,a=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(void 0,(0,fe.A)(t))};return[function(){for(var e=Date.now(),t=e-o,s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];t>=i?a(u,e):(n=u,r||(r=setTimeout(function(){r=null,a(n)},i-t)))},function(){return n&&a(n)}]},ft=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0,o=ct(50,250);return lt(function(n){if(n&&"number"==typeof n.loaded){var i=n.loaded,a=n.lengthComputable?n.total:void 0,s=null!=a?Math.min(i,a):i,u=Math.max(0,s-r),c=o(u);r=Math.max(r,s);var l=(0,Be.A)({loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a},t?"download":"upload",!0);e(l)}},n)},dt=function(e,t){var n=null!=e;return[function(r){return t[0]({lengthComputable:n,total:e,loaded:r})},t[1]]},pt=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return te.asap(function(){return e.apply(void 0,n)})}},vt=$e.hasStandardBrowserEnv?function(e,t){return function(n){return n=new URL(n,$e.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)}}(new URL($e.origin),$e.navigator&&/(msie|trident)/i.test($e.navigator.userAgent)):function(){return!0},ht=$e.hasStandardBrowserEnv?{write:function(e,t,n,r,o,i,a){if("undefined"!=typeof document){var s=["".concat(e,"=").concat(encodeURIComponent(t))];te.isNumber(n)&&s.push("expires=".concat(new Date(n).toUTCString())),te.isString(r)&&s.push("path=".concat(r)),te.isString(o)&&s.push("domain=".concat(o)),!0===i&&s.push("secure"),te.isString(a)&&s.push("SameSite=".concat(a)),document.cookie=s.join("; ")}},read:function(e){if("undefined"==typeof document)return null;for(var t=document.cookie.split(";"),n=0;n<t.length;n++){var r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)return decodeURIComponent(r.slice(o+1))}return null},remove:function(e){this.write(e,"",Date.now()-864e5,"/")}}:{write:function(){},read:function(){return null},remove:function(){}};function gt(e,t,n){var r,o=!("string"==typeof(r=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r));return e&&(o||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}function mt(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 yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?mt(Object(n),!0).forEach(function(t){(0,Be.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var bt=function(e){return e instanceof Ae?yt({},e):e};function wt(e,t){t=t||{};var n=Object.create(null);function r(e,t,n,r){return te.isPlainObject(e)&&te.isPlainObject(t)?te.merge.call({caseless:r},e,t):te.isPlainObject(t)?te.merge({},t):te.isArray(t)?t.slice():t}function o(e,t,n,o){return te.isUndefined(t)?te.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!te.isUndefined(t))return r(void 0,t)}function a(e,t){return te.isUndefined(t)?te.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return te.hasOwnProp(t,i)?r(n,o):te.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});var u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:function(e,t,n){return o(bt(e),bt(t),0,!0)}};return te.forEach(Object.keys(yt(yt({},e),t)),function(r){if("__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=te.hasOwnProp(u,r)?u[r]:o,a=i(te.hasOwnProp(e,r)?e[r]:void 0,te.hasOwnProp(t,r)?t[r]:void 0,r);te.isUndefined(a)&&i!==s||(n[r]=a)}}),n}var Et=["content-type","content-length"];var St=function(e){var t,n=wt({},e),r=function(e){return te.hasOwnProp(n,e)?n[e]:void 0},i=r("data"),a=r("withXSRFToken"),s=r("xsrfHeaderName"),u=r("xsrfCookieName"),c=r("headers"),l=r("auth"),f=r("baseURL"),d=r("allowAbsoluteUrls"),p=r("url");if(n.headers=c=Ae.from(c),n.url=He(gt(f,p,d),r("params"),r("paramsSerializer")),l&&c.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?(t=l.password,encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})):""))),te.isFormData(i)&&($e.hasStandardBrowserEnv||$e.hasStandardBrowserWebWorkerEnv||te.isReactNative(i)?c.setContentType(void 0):te.isFunction(i.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(function(t){var n=(0,o.A)(t,2),r=n[0],i=n[1];Et.includes(r.toLowerCase())&&e.set(r,i)}):e.set(t)}(c,i.getHeaders(),r("formDataHeaderPolicy"))),$e.hasStandardBrowserEnv&&(te.isFunction(a)&&(a=a(n)),!0===a||null==a&&vt(n.url))){var v=s&&u&&ht.read(u);v&&c.set(s,v)}return n},xt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){var r,i,a,s,u,c=St(e),l=c.data,f=Ae.from(c.headers).normalize(),d=c.responseType,p=c.onUploadProgress,v=c.onDownloadProgress;function h(){s&&s(),u&&u(),c.cancelToken&&c.cancelToken.unsubscribe(r),c.signal&&c.signal.removeEventListener("abort",r)}var g=new XMLHttpRequest;function m(){if(g){var r=Ae.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());ut(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}}if(g.open(c.method.toUpperCase(),c.url,!0),g.timeout=c.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new Ce("Request aborted",Ce.ECONNABORTED,e,g)),h(),g=null)},g.onerror=function(t){var r=t&&t.message?t.message:"Network Error",o=new Ce(r,Ce.ERR_NETWORK,e,g);o.event=t||null,n(o),h(),g=null},g.ontimeout=function(){var t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",r=c.transitional||qe;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),n(new Ce(t,r.clarifyTimeoutError?Ce.ETIMEDOUT:Ce.ECONNABORTED,e,g)),h(),g=null},void 0===l&&f.setContentType(null),"setRequestHeader"in g&&te.forEach(ge(f),function(e,t){g.setRequestHeader(t,e)}),te.isUndefined(c.withCredentials)||(g.withCredentials=!!c.withCredentials),d&&"json"!==d&&(g.responseType=c.responseType),v){var y=ft(v,!0),b=(0,o.A)(y,2);a=b[0],u=b[1],g.addEventListener("progress",a)}if(p&&g.upload){var w=ft(p),E=(0,o.A)(w,2);i=E[0],s=E[1],g.upload.addEventListener("progress",i),g.upload.addEventListener("loadend",s)}(c.cancelToken||c.signal)&&(r=function(t){g&&(n(!t||t.type?new st(null,e,g):t),g.abort(),h(),g=null)},c.cancelToken&&c.cancelToken.subscribe(r),c.signal&&(c.signal.aborted?r():c.signal.addEventListener("abort",r)));var S,x,A=(S=c.url,(x=/^([-+\w]{1,25}):(?:\/\/)?/.exec(S))&&x[1]||"");!A||$e.protocols.includes(A)?g.send(l||null):n(new Ce("Unsupported protocol "+A+":",Ce.ERR_BAD_REQUEST,e))})},At=function(e,t){if(e=e?e.filter(Boolean):[],t||e.length){var n=new AbortController,r=!1,o=function(e){if(!r){r=!0,a();var t=e instanceof Error?e:this.reason;n.abort(t instanceof Ce?t:new st(t instanceof Error?t.message:t))}},i=t&&setTimeout(function(){i=null,o(new Ce("timeout of ".concat(t,"ms exceeded"),Ce.ETIMEDOUT))},t),a=function(){e&&(i&&clearTimeout(i),i=null,e.forEach(function(e){e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(function(e){return e.addEventListener("abort",o)});var s=n.signal;return s.unsubscribe=function(){return te.asap(a)},s}},kt=n(91557),Ot=n(13405),Pt=n(56001);function Ct(e){var t={},n=!1;function r(t,r){return n=!0,r=new Promise(function(n){n(e[t](r))}),{done:!1,value:new Pt.A(r,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):r("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return r("throw",e)}
2),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):r("return",e)}),t}function Tt(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new _t(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function _t(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return _t=function(e){this.s=e,this.n=e.next},_t.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new _t(e)}var Rt=ae().mark(function e(t,n){var r,o,i;return ae().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.byteLength,n&&!(r<n)){e.next=2;break}return e.next=1,t;case 1:return e.abrupt("return");case 2:o=0;case 3:if(!(o<r)){e.next=5;break}return i=o+n,e.next=4,t.slice(o,i);case 4:o=i,e.next=3;break;case 5:case"end":return e.stop()}},e)}),It=function(){var e=(0,kt.A)(ae().mark(function e(t,n){var r,o,i,a,s,u,c;return ae().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=!1,o=!1,e.prev=1,a=Tt(jt(t));case 2:return e.next=3,(0,Ot.A)(a.next());case 3:if(!(r=!(s=e.sent).done)){e.next=5;break}return u=s.value,e.delegateYield(Ct(Tt(Rt(u,n)),Ot.A),"t0",4);case 4:r=!1,e.next=2;break;case 5:e.next=7;break;case 6:e.prev=6,c=e.catch(1),o=!0,i=c;case 7:if(e.prev=7,e.prev=8,!r||null==a.return){e.next=9;break}return e.next=9,(0,Ot.A)(a.return());case 9:if(e.prev=9,!o){e.next=10;break}throw i;case 10:return e.finish(9);case 11:return e.finish(7);case 12:case"end":return e.stop()}},e,null,[[1,6,7,12],[8,,9,11]])}));return function(t,n){return e.apply(this,arguments)}}(),jt=function(){var e=(0,kt.A)(ae().mark(function e(t){var n,r,o,i;return ae().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t[Symbol.asyncIterator]){e.next=2;break}return e.delegateYield(Ct(Tt(t),Ot.A),"t0",1);case 1:return e.abrupt("return");case 2:n=t.getReader(),e.prev=3;case 4:return e.next=5,(0,Ot.A)(n.read());case 5:if(r=e.sent,o=r.done,i=r.value,!o){e.next=6;break}return e.abrupt("continue",8);case 6:return e.next=7,i;case 7:e.next=4;break;case 8:return e.prev=8,e.next=9,(0,Ot.A)(n.cancel());case 9:return e.finish(8);case 10:case"end":return e.stop()}},e,null,[[3,,8,10]])}));return function(t){return e.apply(this,arguments)}}(),Dt=function(e,t,n,r){var o,i=It(e,t),a=0,s=function(e){o||(o=!0,r&&r(e))};return new ReadableStream({pull:function(e){return(0,ne.A)(ae().mark(function t(){var r,o,u,c,l,f;return ae().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,i.next();case 1:if(r=t.sent,o=r.done,u=r.value,!o){t.next=2;break}return s(),e.close(),t.abrupt("return");case 2:c=u.byteLength,n&&(l=a+=c,n(l)),e.enqueue(new Uint8Array(u)),t.next=4;break;case 3:throw t.prev=3,f=t.catch(0),s(f),f;case 4:case"end":return t.stop()}},t,null,[[0,3]])}))()},cancel:function(e){return s(e),i.return()}},{highWaterMark:2})};function Nt(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;var t=e.indexOf(",");if(t<0)return 0;var n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){for(var o=r.length,i=r.length,a=0;a<i;a++)if(37===r.charCodeAt(a)&&a+2<i){var s=r.charCodeAt(a+1),u=r.charCodeAt(a+2);(s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102)&&(u>=48&&u<=57||u>=65&&u<=70||u>=97&&u<=102)&&(o-=2,a+=2)}var c=0,l=i-1,f=function(e){return e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e))};l>=0&&(61===r.charCodeAt(l)?(c++,l--):f(l)&&(c++,l-=3)),1===c&&l>=0&&(61===r.charCodeAt(l)||f(l))&&c++;var d=3*Math.floor(o/4)-(c||0);return d>0?d:0}if("undefined"!=typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(r,"utf8");for(var p=0,v=0,h=r.length;v<h;v++){var g=r.charCodeAt(v);if(g<128)p+=1;else if(g<2048)p+=2;else if(g>=55296&&g<=56319&&v+1<h){var m=r.charCodeAt(v+1);m>=56320&&m<=57343?(p+=4,v++):p+=3}else p+=3}return p}var Ut="1.17.0";function Lt(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 Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Lt(Object(n),!0).forEach(function(t){(0,Be.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ht=te.isFunction,Ft=function(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})},qt=function(e){if(!te.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Bt=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e.apply(void 0,n)}catch(o){return!1}},zt=function(e){var t=e.indexOf("://"),n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},Yt=function(e){var t=void 0!==te.global&&null!==te.global?te.global:globalThis,n=t.ReadableStream,r=t.TextEncoder,i=e=te.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e),a=i.fetch,s=i.Request,u=i.Response,c=a?Ht(a):"function"==typeof fetch,l=Ht(s),f=Ht(u);if(!c)return!1;var d,p=c&&Ht(n),v=c&&("function"==typeof r?(d=new r,function(e){return d.encode(e)}):function(){var e=(0,ne.A)(ae().mark(function e(t){var n,r;return ae().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Uint8Array,e.next=1,new s(t).arrayBuffer();case 1:return r=e.sent,e.abrupt("return",new n(r));case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),h=l&&p&&Bt(function(){var e=!1,t=new s($e.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),g=f&&p&&Bt(function(){return te.isReadableStream(new u("").body)}),m={stream:g&&function(e){return e.body}};c&&["text","arrayBuffer","blob","formData","stream"].forEach(function(e){!m[e]&&(m[e]=function(t,n){var r=t&&t[e];if(r)return r.call(t);throw new Ce("Response type '".concat(e,"' is not supported"),Ce.ERR_NOT_SUPPORT,n)})});var y=function(){var e=(0,ne.A)(ae().mark(function e(t){var n;return ae().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=1;break}return e.abrupt("return",0);case 1:if(!te.isBlob(t)){e.next=2;break}return e.abrupt("return",t.size);case 2:if(!te.isSpecCompliantForm(t)){e.next=4;break}return n=new s($e.origin,{method:"POST",body:t}),e.next=3,n.arrayBuffer();case 3:case 6:return e.abrupt("return",e.sent.byteLength);case 4:if(!te.isArrayBufferView(t)&&!te.isArrayBuffer(t)){e.next=5;break}return e.abrupt("return",t.byteLength);case 5:if(te.isURLSearchParams(t)&&(t+=""),!te.isString(t)){e.next=7;break}return e.next=6,v(t);case 7:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=(0,ne.A)(ae().mark(function e(t,n){var r;return ae().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=te.toFiniteNumber(t.getContentLength()),e.abrupt("return",null==r?y(n):r);case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}();return function(){var e=(0,ne.A)(ae().mark(function e(t){var n,i,c,f,d,p,v,y,w,E,S,x,A,k,O,P,C,T,_,R,I,j,D,N,U,L,M,H,F,q,B,z,Y,W,J,V,G,K,X,$,Q,Z,ee,ne,re,oe,ie,se,ue,ce,le,fe,de,pe,ve,he,me;return ae().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=St(t),i=n.url,c=n.method,f=n.data,d=n.signal,p=n.cancelToken,v=n.timeout,y=n.onDownloadProgress,w=n.onUploadProgress,E=n.responseType,S=n.headers,x=n.withCredentials,A=void 0===x?"same-origin":x,k=n.fetchOptions,O=n.maxContentLength,P=n.maxBodyLength,C=te.isNumber(O)&&O>-1,T=te.isNumber(P)&&P>-1,_=function(e){return te.hasOwnProp(t,e)?t[e]:void 0},R=a||fetch,E=E?(E+"").toLowerCase():"text",I=At([d,p&&p.toAbortSignal()],v),j=null,D=I&&I.unsubscribe&&function(){I.unsubscribe()},e.prev=1,U=void 0,(L=_("auth"))&&(M=L.username||"",H=L.password||"",U={username:M,password:H}),zt(i)&&(F=new URL(i,$e.origin),U||!F.username&&!F.password||(q=qt(F.username),B=qt(F.password),U={username:q,password:B}),(F.username||F.password)&&(F.username="",F.password="",i=F.href)),U&&(S.delete("authorization"),S.set("Authorization","Basic "+btoa(Ft((U.username||"")+":"+(U.password||""))))),!C||"string"!=typeof i||!i.startsWith("data:")){e.next=2;break}if(!(Nt(i)>O)){e.next=2;break}throw new Ce("maxContentLength size of "+O+" exceeded",Ce.ERR_BAD_RESPONSE,t,j);case 2:if(!T||"get"===c||"head"===c){e.next=4;break}return e.next=3,b(S,f);case 3:if(!("number"==typeof(z=e.sent)&&isFinite(z)&&z>P)){e.next=4;break}throw new Ce("Request body larger than maxBodyLength limit",Ce.ER
2R_BAD_REQUEST,t,j);case 4:if(!(ve=w&&h&&"get"!==c&&"head"!==c)){e.next=6;break}return e.next=5,b(S,f);case 5:he=N=e.sent,ve=0!==he;case 6:if(!ve){e.next=7;break}Y=new s(i,{method:"POST",body:f,duplex:"half"}),te.isFormData(f)&&(W=Y.headers.get("content-type"))&&S.setContentType(W),Y.body&&(J=dt(N,ft(pt(w))),V=(0,o.A)(J,2),G=V[0],K=V[1],f=Dt(Y.body,65536,G,K));case 7:return te.isString(A)||(A=A?"include":"omit"),X=l&&"credentials"in s.prototype,te.isFormData(f)&&($=S.getContentType())&&/^multipart\/form-data/i.test($)&&!/boundary=/i.test($)&&S.delete("content-type"),S.set("User-Agent","axios/"+Ut,!1),Q=Mt(Mt({},k),{},{signal:I,method:c.toUpperCase(),headers:ge(S.normalize()),body:f,duplex:"half",credentials:X?A:void 0}),j=l&&new s(i,Q),e.next=8,l?R(j,k):R(i,Q);case 8:if(Z=e.sent,!C){e.next=9;break}if(!(null!=(ee=te.toFiniteNumber(Z.headers.get("content-length")))&&ee>O)){e.next=9;break}throw new Ce("maxContentLength size of "+O+" exceeded",Ce.ERR_BAD_RESPONSE,t,j);case 9:return ne=g&&("stream"===E||"response"===E),g&&Z.body&&(y||C||ne&&D)&&(re={},["status","statusText","headers"].forEach(function(e){re[e]=Z[e]}),oe=te.toFiniteNumber(Z.headers.get("content-length")),ie=y&&dt(oe,ft(pt(y),!0))||[],se=(0,o.A)(ie,2),ue=se[0],ce=se[1],le=function(e){if(C&&e>O)throw new Ce("maxContentLength size of "+O+" exceeded",Ce.ERR_BAD_RESPONSE,t,j);ue&&ue(e)},Z=new u(Dt(Z.body,65536,le,function(){ce&&ce(),D&&D()}),re)),E=E||"text",e.next=10,m[te.findKey(m,E)||"text"](Z,t);case 10:if(fe=e.sent,!C||g||ne){e.next=11;break}if(null!=fe&&("number"==typeof fe.byteLength?de=fe.byteLength:"number"==typeof fe.size?de=fe.size:"string"==typeof fe&&(de="function"==typeof r?(new r).encode(fe).byteLength:fe.length)),!("number"==typeof de&&de>O)){e.next=11;break}throw new Ce("maxContentLength size of "+O+" exceeded",Ce.ERR_BAD_RESPONSE,t,j);case 11:return!ne&&D&&D(),e.next=12,new Promise(function(e,n){ut(e,n,{data:fe,headers:Ae.from(Z.headers),status:Z.status,statusText:Z.statusText,config:t,request:j})});case 12:return e.abrupt("return",e.sent);case 13:if(e.prev=13,me=e.catch(1),D&&D(),!(I&&I.aborted&&I.reason instanceof Ce)){e.next=14;break}throw(pe=I.reason).config=t,j&&(pe.request=j),me!==pe&&(pe.cause=me),pe;case 14:if(!me||"TypeError"!==me.name||!/Load failed|fetch/i.test(me.message)){e.next=15;break}throw Object.assign(new Ce("Network Error",Ce.ERR_NETWORK,t,j,me&&me.response),{cause:me.cause||me});case 15:throw Ce.from(me,me&&me.code,t,j,me&&me.response);case 16:case"end":return e.stop()}},e,null,[[1,13]])}));return function(t){return e.apply(this,arguments)}}()},Wt=new Map,Jt=function(e){for(var t,n,r=e&&e.env||{},o=r.fetch,i=[r.Request,r.Response,o],a=i.length,s=Wt;a--;)t=i[a],void 0===(n=s.get(t))&&s.set(t,n=a?new Map:Yt(r)),s=n;return n},Vt=(Jt(),{http:null,xhr:xt,fetch:{get:Jt}});te.forEach(Vt,function(e,t){if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(n){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Gt=function(e){return"- ".concat(e)},Kt=function(e){return te.isFunction(e)||null===e||!1===e};var Xt={getAdapter:function(e,t){for(var n,r,i=(e=te.isArray(e)?e:[e]).length,a={},s=0;s<i;s++){var u=void 0;if(r=n=e[s],!Kt(n)&&void 0===(r=Vt[(u=String(n)).toLowerCase()]))throw new Ce("Unknown adapter '".concat(u,"'"));if(r&&(te.isFunction(r)||(r=r.get(t))))break;a[u||"#"+s]=r}if(!r){var c=Object.entries(a).map(function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1];return"adapter ".concat(n," ")+(!1===r?"is not supported by the environment":"is not available in the build")}),l=i?c.length>1?"since :\n"+c.map(Gt).join("\n"):" "+Gt(c[0]):"as no adapter specified";throw new Ce("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Vt};function $t(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new st(null,e)}function Qt(e){return $t(e),e.headers=Ae.from(e.headers),e.data=ot.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xt.getAdapter(e.adapter||rt.adapter,e)(e).then(function(t){$t(e),e.response=t;try{t.data=ot.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=Ae.from(t.headers),t},function(t){if(!it(t)&&($t(e),t&&t.response)){e.response=t.response;try{t.response.data=ot.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=Ae.from(t.response.headers)}return Promise.reject(t)})}var Zt={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Zt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var en={};Zt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Ut+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new Ce(r(o," has been removed"+(t?" in "+t:"")),Ce.ERR_DEPRECATED);return t&&!en[o]&&(en[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},Zt.spelling=function(e){return function(t,n){return console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0}};var tn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ce("options must be an object",Ce.ER
2R_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){var s=e[i],u=void 0===s||a(s,i,e);if(!0!==u)throw new Ce("option "+i+" must be "+u,Ce.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ce("Unknown option "+i,Ce.ERR_BAD_OPTION)}},validators:Zt},nn=tn.validators,rn=function(){return(0,oe.A)(function e(t){(0,re.A)(this,e),this.defaults=t||{},this.interceptors={request:new Fe,response:new Fe}},[{key:"request",value:(e=(0,ne.A)(ae().mark(function e(t,n){var r,o,i,a,s,u;return ae().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,this._request(t,n);case 1:return e.abrupt("return",e.sent);case 2:if(e.prev=2,(u=e.catch(0))instanceof Error){r={},Error.captureStackTrace?Error.captureStackTrace(r):r=new Error,o=function(){if(!r.stack)return"";var e=r.stack.indexOf("\n");return-1===e?"":r.stack.slice(e+1)}();try{u.stack?o&&(i=o.indexOf("\n"),a=-1===i?-1:o.indexOf("\n",i+1),s=-1===a?"":o.slice(a+1),String(u.stack).endsWith(s)||(u.stack+="\n"+o)):u.stack=o}catch(c){}}throw u;case 3:case"end":return e.stop()}},e,this,[[0,2]])})),function(t,n){return e.apply(this,arguments)})},{key:"_request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var n=t=wt(this.defaults,t),r=n.transitional,o=n.paramsSerializer,i=n.headers;void 0!==r&&tn.assertOptions(r,{silentJSONParsing:nn.transitional(nn.boolean),forcedJSONParsing:nn.transitional(nn.boolean),clarifyTimeoutError:nn.transitional(nn.boolean),legacyInterceptorReqResOrdering:nn.transitional(nn.boolean),advertiseZstdAcceptEncoding:nn.transitional(nn.boolean)},!1),null!=o&&(te.isFunction(o)?t.paramsSerializer={serialize:o}:tn.assertOptions(o,{encode:nn.function,serialize:nn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tn.assertOptions(t,{baseUrl:nn.spelling("baseURL"),withXsrfToken:nn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=i&&te.merge(i.common,i[t.method]);i&&te.forEach(["delete","get","head","post","put","patch","query","common"],function(e){delete i[e]}),t.headers=Ae.concat(a,i);var s=[],u=!0;this.interceptors.request.forEach(function(e){if("function"!=typeof e.runWhen||!1!==e.runWhen(t)){u=u&&e.synchronous;var n=t.transitional||qe;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)}});var c,l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});var f,d=0;if(!u){var p=[Qt.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,l),f=p.length,c=Promise.resolve(t);d<f;)c=c.then(p[d++],p[d++]);return c}f=s.length;for(var v=t;d<f;){var h=s[d++],g=s[d++];try{v=h(v)}catch(m){g.call(this,m);break}}try{c=Qt.call(this,v)}catch(m){return Promise.reject(m)}for(d=0,f=l.length;d<f;)c=c.then(l[d++],l[d++]);return c}},{key:"getUri",value:function(e){return He(gt((e=wt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}]);var e}();te.forEach(["delete","get","head","options"],function(e){rn.prototype[e]=function(t,n){return this.request(wt(n||{},{method:e,url:t,data:(n||{}).data}))}}),te.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,o){return this.request(wt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}rn.prototype[e]=t(),"query"!==e&&(rn.prototype[e+"Form"]=t(!0))});var on=rn,an=function(){function e(t){if((0,re.A)(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(e){n=e});var r=this;this.promise.then(function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}}),this.promise.then=function(e){var t,n=new Promise(function(e){r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t(function(e,t,o){r.reason||(r.reason=new st(e,t,o),n(r.reason))})}return(0,oe.A)(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"toAbortSignal",value:function(){var e=this,t=new AbortController,n=function(e){t.abort(e)};return this.subscribe(n),t.signal.unsubscribe=function(){return e.unsubscribe(n)},t.signal}}],[{key:"source",value:function(){var t;return{token:new e(function(e){t=e}),cancel:t}}}])}(),sn=an;var un={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
2setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(un).forEach(function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1];un[r]=n});var cn=un;var ln=function e(t){var n=new on(t),r=i(on.prototype.request,n);return te.extend(r,on.prototype,n,{allOwnKeys:!0}),te.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(wt(t,n))},r}(rt);ln.Axios=on,ln.CanceledError=st,ln.CancelToken=sn,ln.isCancel=it,ln.VERSION=Ut,ln.toFormData=je,ln.AxiosError=Ce,ln.Cancel=ln.CanceledError,ln.all=function(e){return Promise.all(e)},ln.spread=function(e){return function(t){return e.apply(null,t)}},ln.isAxiosError=function(e){return te.isObject(e)&&!0===e.isAxiosError},ln.mergeConfig=wt,ln.AxiosHeaders=Ae,ln.formToJSON=function(e){return et(te.isHTMLForm(e)?new FormData(e):e)},ln.getAdapter=Xt.getAdapter,ln.HttpStatusCode=cn,ln.default=ln;var fn=ln},53892:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var r=n(86330),o=n(75799),i=n.n(o),a=n(53028),s=n(59468),u=n(22155),c=n(23879);function l(e){return f.apply(this,arguments)}function f(){return(f=(0,r.A)(i().mark(function e(t){var n,r,o;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!u.Th){e.next=2;break}return n=(0,c.kX)(parseInt(u.y,10)),e.next=1,a.A.get(s.C1+"/"+n+"/",{headers:{"x-vercel-function":"event","x-request-id":t}});case 1:return r=e.sent,e.abrupt("return",r.data);case 2:return e.next=3,a.A.get(u.c+"/"+encodeURIComponent(t),{headers:{Authorization:"Bearer "+u.tZ}});case 3:return o=e.sent,e.abrupt("return",o.data);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}},54637:function(e,t,n){"use strict";n.d(t,{S:function(){return u},d:function(){return c}});var r=n(14041),o=n(6696),i="ABTests",a=31536e3,s=(0,r.createContext)({assignments:{},setVariant:function(){},getVariant:function(e,t){return t}});function u(e){var t=e.children,n=(0,r.useState)({}),u=n[0],c=n[1];(0,r.useEffect)(function(){"undefined"!=typeof document&&c(function(e){var t,n=null===(t=e.split("; ").find(function(e){return e.startsWith(i+"=")}))||void 0===t?void 0:t.slice(i.length+1);if(!n)return{};try{var r=decodeURIComponent(n),a=JSON.parse(r);return a&&"object"==typeof a?Object.entries(a).reduce(function(e,t){var n=t[0],r=t[1];return!Object.values(o.fd).includes(n)||r!==o.tn.Control&&r!==o.tn.Treatment||(e[n]=r),e},{}):{}}catch(s){return{}}}(document.cookie))},[]);var l=(0,r.useCallback)(function(e,t){c(function(n){var r,o=Object.assign({},n,((r={})[e]=t,r));return"undefined"!=typeof document&&function(e){var t=encodeURIComponent(JSON.stringify(e));document.cookie=i+"="+t+"; Path=/; Max-Age="+a+"; SameSite=Lax"}(o),o})},[]),f=(0,r.useCallback)(function(e,t){var n;return null!==(n=u[e])&&void 0!==n?n:t},[u]),d=(0,r.useMemo)(function(){return{assignments:u,setVariant:l,getVariant:f}},[u,l,f]);return r.createElement(s.Provider,{value:d},t)}function c(){return(0,r.useContext)(s)}},54691:function(e,t,n){"use strict";n.d(t,{C6:function(){return o},Cl:function(){return i},Ju:function(){return c},Tt:function(){return a},YH:function(){return u},fX:function(){return f},sH:function(){return s},zs:function(){return l}});n(29982);var r=function(e,t){return r=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])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new 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 i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}
2function s(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function u(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(u){s=[6,u],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}Object.create;function c(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 new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function f(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},55152:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:function(){return r}})},55397:function(e,t,n){"use strict";var r=n(5234);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){return 1},1)})}},55458:function(e,t,n){"use strict";n.d(t,{PK:function(){return h},xY:function(){return v}});var r=n(14041),o=n(86330),i=n(75799),a=n.n(i),s=n(6126),u=n(18670),c=n(76823),l=n(53892),f=n(11555),d=function(){var e=(0,r.useState)(),t=e[0],n=e[1],i=(0,r.useState)(),d=i[0],p=i[1],v=(0,r.useState)(),h=v[0],g=v[1],m=(0,s.eX)(Object.assign({},c.zj,{immediate:!1})).getData,y=(0,r.useState)(!1),b=y[0],w=y[1],E=(0,r.useState)(),S=E[0],x=E[1],A=(0,r.useState)(!0),k=A[0],O=A[1],P=(0,r.useState)(!1),C=P[0],T=P[1];(0,r.useEffect)(function(){function e(){return e=(0,o.A)(a().mark(function e(){var t,r,o,i;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(O(!0),w(!1),!f.NA){e.next=1;break}return n(f.yt),p(f.yt.event_id),g(f.eP.visitor_id),O(!1),e.abrupt("return");case 1:return e.next=2,m();case 2:if(t=e.sent,!(r=(0,c.RE)(t))){e.next=7;break}return p(r),g((0,c.YA)(t)),e.prev=3,e.next=4,(0,l.J)(r);case 4:o=e.sent,n(o),e.next=6;break;case 5:e.prev=5,i=e.catch(3),w(!0),x((0,u.u)(i));case 6:O(!1),T(!1),e.next=8;break;case 7:w(!0),O(!1),T(!1);case 8:case"end":return e.stop()}},e,null,[[3,5]])})),e.apply(this,arguments)}!function(){e.apply(this,arguments)}()},[C]);return{currentEvent:t,requestId:d,visitorId:h,isLoading:k,hasError:b,error:S,refresh:function(){T(!0)}}},p=(0,r.createContext)({refresh:function(){}}),v=function(){return(0,r.useContext)(p)};function h(e){var t=e.children;return r.createElement(p.Provider,{value:d()},t)}},56001:function(e,t,n){"use strict";function r(e,t){this.v=e,this.k=t}n.d(t,{A:function(){return r}})},56347:function(e,t,n){var r=n(14319).default,o=n(23878);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},56676:function(e,t,n){"use strict";var r=n(5234),o=n(79117).RegExp;e.exports=r(function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})},56846:function(e,t,n){"use strict";n.d(t,{Rn:function(){return p},Te:function(){return d}});var r=n(14041),o=n(86330),i=n(75799),a=n.n(i),s=n(24548),u=n(18670),c=n(59934),l=function(){var e=(0,r.useState)(null),t=e[0],n=e[1],i=(0,r.useState)(!0),l=i[0],f=i[1],d=(0,r.useState)(!1),p=d[0],v=d[1];return(0,r.useEffect)(function(){var e=function(){var e=(0,o.A)(a().mark(function e(){var t,r;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.prev=1,e.next=2,(0,s.Cq)();case 2:t=e.sent,n(t.data.status),e.next=4;break;case 3:e.prev=3,r=e.catch(1),(0,c.vV)("Failed to fetch service status",{error:(0,u.u)(r)}
2),v(!0);case 4:return e.prev=4,f(!1),e.finish(4);case 5:case"end":return e.stop()}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}();e()},[]),{serviceStatus:t,isLoading:l,error:p}},f=(0,r.createContext)({}),d=function(){return(0,r.useContext)(f)};function p(e){var t=e.children,n=l(),o=n.serviceStatus,i=n.isLoading,a=n.error;return r.createElement(f.Provider,{value:{systemStatus:{serviceStatus:o,isLoading:i,error:a}}},t)}},57137:function(e,t,n){"use strict";var r=n(21843),o=n(61274);e.exports=Object.keys||function(e){return r(e,o)}},57584:function(e,t,n){"use strict";var r=n(80939),o=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new o("Wrong offset");return n}},57852:function(e,t,n){"use strict";var r=n(4293);t.__esModule=!0,t.OptionsConsumer=t.OptionsProvider=t.OptionsContext=void 0;var o=r(n(14041)),i=r(n(39067)),a=o.default.createContext("Options");t.OptionsContext=a;var s=function(e){var t=e.children,n=e.useAutoGen,r=void 0!==n&&n,i=e.usePathPrefix,s={useAutoGen:r,usePathPrefix:void 0===i?null:i};return o.default.createElement(a.Provider,{value:s},t)};t.OptionsProvider=s;var u=a.Consumer;t.OptionsConsumer=u,s.defaultProps={useAutoGen:!1,usePathPrefix:null},s.propTypes={children:i.default.node.isRequired,useAutoGen:i.default.bool,usePathPrefix:i.default.string}},58732:function(e){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},58899:function(e,t,n){"use strict";n(1402)},59146:function(e,t,n){"use strict";function r(e,t){return void 0===t&&(t=""),t?e===t?"/":e.startsWith(t+"/")?e.slice(t.length):e:e}n.d(t,{A:function(){return r}})},59340:function(e,t,n){"use strict";n.r(t),n.d(t,{Script:function(){return v},ScriptStrategy:function(){return c},collectedScriptsByPage:function(){return s},scriptCache:function(){return d},scriptCallbackCache:function(){return p}});var r=n(14041),o=n(1038);function i(){return i=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},i.apply(this,arguments)}const a=new Map,s={get:e=>a.get(e)||[],set(e,t){const n=a.get(e)||[];n.push(t),a.set(e,n)},delete(e){a.delete(e)}},u="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){const t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)};var c,l;(l=c||(c={})).postHydrate="post-hydrate",l.idle="idle",l.offMainThread="off-main-thread";const f=new Set(["src","strategy","dangerouslySetInnerHTML","children","onLoad","onError"]),d=new Set,p=new Map;function v(e){return r.createElement(o.Location,null,()=>r.createElement(h,e))}function h(e){const{src:t,strategy:n=c.postHydrate}=e||{},{pathname:a}=(0,o.useLocation)();if((0,r.useEffect)(()=>{let t;switch(n){case c.postHydrate:t=g(e);break;case c.idle:u(()=>{t=g(e)});break;case c.offMainThread:{const t=y(e);s.set(a,t)}}return()=>{const{script:e,loadCallback:n,errorCallback:r}=t||{};n&&(null==e||e.removeEventListener("load",n)),r&&(null==e||e.removeEventListener("error",r)),null==e||e.remove()}},[]),n===c.offMainThread){const o=m(e),u=y(e);return"undefined"==typeof window&&s.set(a,u),r.createElement("script",o?i({type:"text/partytown","data-strategy":n,crossOrigin:"anonymous"},u,{dangerouslySetInnerHTML:{__html:m(e)}}):i({type:"text/partytown",src:b(t),"data-strategy":n,crossOrigin:"anonymous"},u))}return null}function g(e){const{id:t,src:n,strategy:r=c.postHydrate,onLoad:o,onError:a}=e||{},s=t||n,u=["load","error"],l={load:o,error:a};if(s){for(const e of u)if(null!=l&&l[e]){var f;const t=p.get(s)||{},{callbacks:n=[]}=(null==t?void 0:t[e])||{};var v,h;n.push(null==l?void 0:l[e]),null!=t&&null!=(f=t[e])&&f.event?null==l||null==(v=l[e])||v.call(l,null==t||null==(h=t[e])?void 0:h.event):p.set(s,i({},t,{[e]:{callbacks:n}}))}if(d.has(s))return null}const g=m(e),b=y(e),E=document.createElement("script");t&&(E.id=t),E.dataset.strategy=r;for(const[i,c]of Object.entries(b))E.setAttribute(i,c);g&&(E.textContent=g),n&&(E.src=n);const S={};if(s){for(const e of u){const t=t=>w(t,s,e);E.addEventListener(e,t),S[`${e}Callback`]=t}d.add(s)}return document.body.appendChild(E),{script:E,loadCallback:S.loadCallback,errorCallback:S.errorCallback}}function m(e){const{dangerouslySetInnerHTML:t,children:n=""}=e||{},{__html:r=""}=t||{};return r||n}function y(e){const t={};for(const[n,r]of Object.entries(e))f.has(n)||(t[n]=r);return t}function b(e){if(e)return`/__third-party-proxy?url=${encodeURIComponent(e)}`}function w(e,t,n){const r=p.get(t)||{};for(const i of(null==r||null==(o=r[n])?void 0:o.callbacks)||[]){var o;i(e)}p.set(t,{[n]:{event:e}})}},59444:function(e,t,n){"use strict";var r=n(44977),o=TypeError,i=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new o("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},59468:function(e,t,n){"use strict";n.d(t,{$2:function(){return l},C1:function(){return o},Lz:function(){return d},Xn:function(){return c},bD:function(){return a},de:function(){return f},gI:function(){return i},k:function(){return s},mg:function(){return p},pn:function(){return u}});
2var r=n(22155),o=r.jg,i={home:"/",events:"/events/",demoUrl:"/demo/",pricingUrl:"/pricing/",accountTakeover:"/use-cases/account-takeover/",ecommerce:"/e-commerce/",gaming:"/igaming/",travel:"/travel/",cryptocurrency:"/cryptocurrency/",paymentFraud:"/use-cases/payment-fraud/",blog:"/blog/",paywall:"/use-cases/paywall/",caseStudies:"/case-studies/",botDirectory:"/bot-directory/",contactSales:"/contact-sales/",whyFpjs:"/products/fingerprint-pro/",identification:"/products/identification/",accountSharing:"/use-cases/account-sharing-prevention/",botD:"/products/bot-detection/",bnpl:"/buy-now-pay-later/",careers:"/careers/",aiinfopage:"/blog/ai-info-page/",support:"/support/",security:"/security/",useCases:"/use-cases/",tutorials:"/blog/tag/tutorials/",guides:"/blog/tag/guides/",resources:"/resources/",templates:"/templates/",faq:"/resources/frequently-asked-questions-faqs/",press:"/resources/press/",vsThreatMetrix:"/resources/comparisons/compare-fingerprint-vs-threatmetrix/",vsTruValidate:"/resources/comparisons/compare-fingerprint-vs-truvalidate/",integrations:"/integrations/",sdks:"/sdk-libraries/",github:"/github/",aboutUs:"/about-us",smartSignals:"/products/smart-signals/",partners:"/partners/",finserv:"/fintech",banking:"/banking",smsFraud:"/use-cases/sms-fraud/",personalization:"/blog/providing-personalization-to-anonymous-users/",couponPromo:"/blog/prevent-coupon-promo-abuse-increase-sales/",credentialStuffing:"/blog/credential-stuffing-prevention-checklist/",start:"/start/",newAccountFraudPrevention:"/use-cases/new-account-fraud-prevention/",mobileAppDetection:"/use-cases/mobile-app-detection/",returningUserExperience:"/use-cases/returning-user-experience/",webBotAuthTest:"/web-bot-auth/test/",automationDetection:"/products/ai-agent-detection/"},a={personalization:"/blog/providing-personalization-to-anonymous-users/",accountSharing:"/blog/account-sharing-prevention/",paymentFraud:"/blog/reducing-payment-fraud-with-reliable-visitor-identification/",credentialStuffing:"/blog/credential-stuffing-prevention-checklist/"},s={githubRepoUrl:"https://github.com/fingerprintjs/fingerprintjs/",githubApiUrl:"https://api.github.com/repos/fingerprintjs",githubCommunityRepoUrl:"https://github.com/fingerprintjs/home",botDRepoUrl:"https://github.com/fingerprintjs/BotD",botDIntegrationsRepoUrl:"https://github.com/fingerprintjs/botd-integrations",dashboardLoginUrl:"https://dashboard.fingerprint.com/login",careersUrl:"https://boards.greenhouse.io/fingerprintjs/",careersConsoleLogUrl:"https://fingerprint.com/careers/",linkedinUrl:"https://www.linkedin.com/company/fingerprintjs/",twitterUrl:"https://twitter.com/FingerprintJs/",signupUrl:"https://dashboard.fingerprint.com/signup",statusUrl:"https://status.fingerprint.com",supportMail:"[email protected]",salesMail:"[email protected]",worKMail:"[email protected]",pressMail:"[email protected]",securityMail:"[email protected]",discordServerURL:"https://discord.gg/ad6R2ttHVX",docsUrl:"https://docs.fingerprint.com",promotionalVideo:"https://www.youtube.com/embed/UEYBysyPTBs",demoVideo:"https://www.youtube.com/embed/hVktdWfyBuU",g2ReviewUrl:"https://www.g2.com/products/fingerprintjs-fingerprint/reviews",hubUrl:"https://demo.fingerprint.com/",planUrl:"https://dashboard.fingerprint.com/plan",templatesUrl:"https://dashboard.fingerprint.com/templates/"},u=(s.hubUrl,s.hubUrl,s.hubUrl,s.hubUrl,s.hubUrl,s.hubUrl,s.hubUrl,s.hubUrl,s.supportMail,s.worKMail,s.salesMail,s.securityMail,{documentationUrl:s.docsUrl,proVsOpenUrl:"https://fingerprint.com/github",browserFingerprintUrl:s.docsUrl+"/docs/introduction",incognitoUrl:s.docsUrl+"/docs/smart-signals-reference",serverApiUrl:s.docsUrl+"/docs/server-api",legalUrl:s.docsUrl+"/docs/dpa-gdpr",termOfUseUrl:s.docsUrl+"/docs/terms-of-service",privacyPolicyUrl:s.docsUrl+"/docs/privacy-policy",browserSupportUrl:s.docsUrl+"/docs/browser-and-device-support",webhooksUrl:s.docsUrl+"/docs/webhooks",botDUrl:"https://github.com/fingerprintjs/BotD#botd",zeroTrustUrl:s.docsUrl+"/docs/zero-trust-mode",migrateUrl:s.docsUrl+"/docs/migrating-from-fingerprintjs-to-fingerprint-pro#migrating-from-fingerprintjs-v3-open-source-to-fingerprint-identification",botDetectionGuide:s.docsUrl+"/docs/bot-detection/overview",jsAgent:s.docsUrl+"/reference/js-agent",quickStartCustomSubdomain:s.docsUrl+"/docs/custom-subdomain-setup",quickStartWebhooks:s.docsUrl+"/docs/webhooks",quickStartServerApi:s.docsUrl+"/docs/server-api",pricing:s.docsUrl+"/docs/billing",serverApi:s.docsUrl+"/reference/server-api",smartSignalsMobile:s.docsUrl+"/docs/smart-signals-reference#smart-signals-for-mobile-devices",gettingStartedMobile:s.docsUrl+"/docs/mobile-sdks",smartSignalsIntroduction:s.docsUrl+"/docs/smart-signals-introduction",browserSmartSignalsFragment:s.docsUrl+"/docs/smart-signals-introduction#browser-smart-signals",mcpServer:s.docsUrl+"/docs/mcp-server",useCaseTutorials:s.docsUrl+"/docs/use-case-tutorials-overview",quickStartGuide:s.docsUrl+"/docs/quick-start-guide"}),c=(s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,s.docsUrl,{android:s.docsUrl+"/docs/android-quickstart",angular:s.docsUrl+"/docs/angular-quickstart",flutter:s.docsUrl+"/docs/flutter-quickstart",go:s.docsUrl+"/docs/go-server-quickstart",ios:s.docsUrl+"/docs/ios-quickstart",js:s.docsUrl+"/docs/javascript-quickstart",ts:s.docsUrl+"/docs/javascript-quickstart",next:s.docsUrl+"/docs/nextjs-quickstart",node:s.docsUrl+"/docs/node-server-quickstart",openApi:s.docsUrl+"/docs/javascript-quickstart",preact:s.docsUrl+"/docs/preact-quickstart",python:s.docsUrl+"/docs/python-server-quickstart",react:s.docsUrl+"/docs/react-quickstart",reactNative:s.docsUrl+"/docs/react-native-quickstart",svelte:s.docsUrl+"/docs/svelte-quickstart",vue:s.docsUrl+"/docs/vue-quickstart",gtm:s.docsUrl+"/docs/javascript-quickstart",cloudflare:s.docsUrl+"/docs/javascript-quickstart",chrome:s.docsUrl+"/docs/javascript-quickstart",java:s.docsUrl+"/docs/java-server-quickstart",kotlin:s.docsUrl+"/docs/android-quickstart",swift:s.docsUrl+"/docs/ios-quickstart"}),l=[{branch:r.dI}],f=14,d=u.documentationUrl+"/docs/suspect-score",p=10},59540:function(e,t,n){var r=n(75800);e.exports=function(e,t,n,o,i){var a=r(e,t,n,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},59934:function(e,t,n){"use strict";n.d(t,{Jb:function(){return s},vV:function(){return u}});var r,o,i=n(22155),a=!1,s=function(){return a||!i.Hk?Promise.resolve():o||(o=Promise.all([n.e(4223),n.e(1028)]).then(n.bind(n,51028)).then(function(e){var t=e.datadogLogs,n=i.It?"production":i.Th?"preview":"local";t.init({clientToken:i.Hk,site:"datadoghq.com",service:"website",env:n,sessionSampleRate:100}),r=t,a=!0}))},u=function(e,t){a&&r&&r.logger.error(e,t)}},60142:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},60890:function(e,t,n){"use strict";n.d(t,{Wi:function(){return d},N5:function(){return S},Ay:function(){return k},Rh:function(){return P},LE:function(){return O},Zf:function(){return A},iC:function(){return x}});var r=n(79140),o=n(83705),i=function(e){if("undefined"==typeof document)return!1;var t=document.createElement("link");try{if(t.relList&&"function"==typeof t.relList.supports)return t.relList.supports(e)}catch(n){return!1}return!1}("prefetch")?function(e,t){return new Promise(function(n,r){if("undefined"!=typeof document){var o=document.createElement("link");o.setAttribute("rel","prefetch"),o.setAttribute("href",e),Object.keys(t).forEach(function(e){o.setAttribute(e,t[e])}),o.onload=n,o.onerror=r,(document.getElementsByTagName("head")[0]||document.getElementsByName("script")[0].parentNode).appendChild(o)}else r()})}:function(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onload=function(){200===r.status?t():n()},r.send(null)})},a={},s=function(e,t){return new Promise(function(n){a[e]?n():i(e,t).then(function(){n(),a[e]=!0}).catch(function(){})})},u=n(44758),c=n(66118);function l(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 f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(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 d={Error:"error",Success:"success"},p=function(e){var t,n=e.split("?"),r=n[0],o=n[1];
2return"/page-data/"+("/"===r?"index":(t="/"===(t=r)[0]?t.slice(1):t).endsWith("/")?t.slice(0,-1):t)+"/page-data.json"+(o?"?"+o:"")},v=function(e){return e.startsWith("//")};function h(e,t){return void 0===t&&(t="GET"),new Promise(function(n){var r=new XMLHttpRequest;r.open(t,e,!0),r.onreadystatechange=function(){4==r.readyState&&n(r)},r.send(null)})}var g=/bot|crawler|spider|crawling/i,m=function(e,t,n){var r;void 0===t&&(t=null);var o={componentChunkName:e.componentChunkName,path:e.path,webpackCompilationHash:e.webpackCompilationHash,matchPath:e.matchPath,staticQueryHashes:e.staticQueryHashes,getServerDataError:e.getServerDataError,slicesMap:null!==(r=e.slicesMap)&&void 0!==r?r:{}};return{component:t,head:n,json:e.result,page:o}};function y(e){return new Promise(function(t){try{var n=e.readRoot();t(n)}catch(r){if(!Object.hasOwnProperty.call(r,"_response")||!Object.hasOwnProperty.call(r,"_status"))throw r;setTimeout(function(){y(e).then(t)},200)}})}var b,w=function(){function e(e,t){this.inFlightNetworkRequests=new Map,this.pageDb=new Map,this.inFlightDb=new Map,this.staticQueryDb={},this.pageDataDb=new Map,this.partialHydrationDb=new Map,this.slicesDataDb=new Map,this.sliceInflightDb=new Map,this.slicesDb=new Map,this.isPrefetchQueueRunning=!1,this.prefetchQueued=[],this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=e,(0,c.QX)(t)}var t=e.prototype;return t.memoizedGet=function(e){var t=this,n=this.inFlightNetworkRequests.get(e);return n||(n=h(e,"GET"),this.inFlightNetworkRequests.set(e,n)),n.then(function(n){return t.inFlightNetworkRequests.delete(e),n}).catch(function(n){throw t.inFlightNetworkRequests.delete(e),n})},t.setApiRunner=function(e){this.apiRunner=e,this.prefetchDisabled=e("disableCorePrefetching").some(function(e){return e})},t.fetchPageDataJson=function(e){var t=this,n=e.pagePath,r=e.retries,o=void 0===r?0:r,i=p(n);return this.memoizedGet(i).then(function(r){var i=r.status,a=r.responseText;if(200===i)try{var s=JSON.parse(a);if(void 0===s.path)throw new Error("not a valid pageData response");var u=n.split("?")[1];return u&&!s.path.includes(u)&&(s.path+="?"+u),Object.assign(e,{status:d.Success,payload:s})}catch(c){}return 404===i||200===i?"/404.html"===n||"/500.html"===n?Object.assign(e,{status:d.Error}):t.fetchPageDataJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===i?t.fetchPageDataJson(Object.assign(e,{pagePath:"/500.html",internalServerError:!0})):o<3?t.fetchPageDataJson(Object.assign(e,{retries:o+1})):Object.assign(e,{status:d.Error})})},t.fetchPartialHydrationJson=function(e){var t=this,n=e.pagePath,r=e.retries,o=void 0===r?0:r,i=p(n).replace(".json","-rsc.json");return this.memoizedGet(i).then(function(r){var i=r.status,a=r.responseText;if(200===i)try{return Object.assign(e,{status:d.Success,payload:a})}catch(s){}return 404===i||200===i?"/404.html"===n||"/500.html"===n?Object.assign(e,{status:d.Error}):t.fetchPartialHydrationJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===i?t.fetchPartialHydrationJson(Object.assign(e,{pagePath:"/500.html",internalServerError:!0})):o<3?t.fetchPartialHydrationJson(Object.assign(e,{retries:o+1})):Object.assign(e,{status:d.Error})})},t.loadPageDataJson=function(e){var t=this,n=(0,c.Hh)(e);if(this.pageDataDb.has(n)){var r=this.pageDataDb.get(n);return Promise.resolve(r)}return this.fetchPageDataJson({pagePath:n}).then(function(e){return t.pageDataDb.set(n,e),e})},t.loadPartialHydrationJson=function(e){var t=this,n=(0,c.Hh)(e);if(this.partialHydrationDb.has(n)){var r=this.partialHydrationDb.get(n);return Promise.resolve(r)}return this.fetchPartialHydrationJson({pagePath:n}).then(function(e){return t.partialHydrationDb.set(n,e),e})},t.loadSliceDataJson=function(e){var t=this;
2if(this.slicesDataDb.has(e)){var n=this.slicesDataDb.get(e);return Promise.resolve({sliceName:e,jsonPayload:n})}return h("/slice-data/"+e+".json","GET").then(function(n){var r=JSON.parse(n.responseText);return t.slicesDataDb.set(e,r),{sliceName:e,jsonPayload:r}})},t.findMatchPath=function(e){return(0,c.Yl)(e)},t.loadPage=function(e){var t=this,r=(0,c.Hh)(e);if(this.pageDb.has(r)){var i=this.pageDb.get(r);return i.error?Promise.resolve({error:i.error,status:i.status}):Promise.resolve(i.payload)}if(this.inFlightDb.has(r))return this.inFlightDb.get(r);var a=[this.loadAppData(),this.loadPageDataJson(r)];var s=Promise.all(a).then(function(e){var i=e[0],a=e[1],s=e[2];if(a.status===d.Error||(null==s?void 0:s.status)===d.Error)return{status:d.Error};var c=a.payload,f=c,p=f.componentChunkName,v=f.staticQueryHashes,h=void 0===v?[]:v,g=f.slicesMap,b=void 0===g?{}:g,w={},E=Array.from(new Set(Object.values(b))),S=function(e){if(t.slicesDb.has(e.name))return t.slicesDb.get(e.name);if(t.sliceInflightDb.has(e.name))return t.sliceInflightDb.get(e.name);var n=t.loadComponent(e.componentChunkName).then(function(t){return{component:(n=t,n&&n.default||n),sliceContext:e.result.sliceContext,data:e.result.data};var n});return t.sliceInflightDb.set(e.name,n),n.then(function(n){t.slicesDb.set(e.name,n),t.sliceInflightDb.delete(e.name)}),n};return Promise.all(E.map(function(e){return t.loadSliceDataJson(e)})).then(function(e){for(var f=[],v=(0,o.A)(h),g=0,b=Object.values(e);g<b.length;g++){var E=b[g],x=E.jsonPayload,A=E.sliceName;f.push(Object.assign({name:A},x));for(var k,O=l(x.staticQueryHashes);!(k=O()).done;){var P=k.value;v.includes(P)||v.push(P)}}var C=[Promise.all(f.map(S)),t.loadComponent(p,"head")];C.push(t.loadComponent(p));var T=Promise.all(C).then(function(e){var t,r=e[0],o=e[1],u=e[2];w.createdAt=new Date;for(var f,p=l(r);!(f=p()).done;){var v=f.value;(!v||v instanceof Error)&&(w.status=d.Error,w.error=v)}if((!u||u instanceof Error)&&(w.status=d.Error,w.error=u),w.status!==d.Error){if(w.status=d.Success,!0!==a.notFound&&!0!==(null==s?void 0:s.notFound)||(w.notFound=!0),c=Object.assign(c,{webpackCompilationHash:i?i.webpackCompilationHash:""}),"string"==typeof(null==s?void 0:s.payload)){(t=m(c,null,o)).partialHydration=s.payload;var h=new ReadableStream({start:function(e){var t=new TextEncoder;e.enqueue(t.encode(s.payload))},pull:function(e){e.close()},cancel:function(){}});return n.e(3189).then(n.t.bind(n,13189,23)).then(function(e){return y((0,e.createFromReadableStream)(h))}).then(function(e){return t.partialHydration=e,t})}t=m(c,u,o)}return t}),_=Promise.all(v.map(function(e){if(t.staticQueryDb[e]){var n=t.staticQueryDb[e];return{staticQueryHash:e,jsonPayload:n}}return t.memoizedGet("/page-data/sq/d/"+e+".json").then(function(t){var n=JSON.parse(t.responseText);return{staticQueryHash:e,jsonPayload:n}}).catch(function(){throw new Error("We couldn't load \"/page-data/sq/d/"+e+'.json"')})})).then(function(e){var n={};return e.forEach(function(e){var r=e.staticQueryHash,o=e.jsonPayload;n[r]=o,t.staticQueryDb[r]=o}),n});return Promise.all([T,_]).then(function(e){var n,o=e[0],i=e[1];return o&&(n=Object.assign({},o,{staticQueryResults:i}),w.payload=n,u.A.emit("onPostLoadPageResources",{page:n,pageResources:n})),t.pageDb.set(r,w),w.error?{error:w.error,status:w.status}:n}).catch(function(e){return{error:e,status:d.Error}})})});return s.then(function(){t.inFlightDb.delete(r)}
2).catch(function(e){throw t.inFlightDb.delete(r),e}),this.inFlightDb.set(r,s),s},t.loadPageSync=function(e,t){void 0===t&&(t={});var n=(0,c.Hh)(e);if(this.pageDb.has(n)){var r,o=this.pageDb.get(n);if(o.payload)return o.payload;if(null!==(r=t)&&void 0!==r&&r.withErrorDetails)return{error:o.error,status:o.status}}},t.shouldPrefetch=function(e){return!!function(){if("connection"in navigator&&void 0!==navigator.connection){if((navigator.connection.effectiveType||"").includes("2g"))return!1;if(navigator.connection.saveData)return!1}return!0}()&&((!navigator.userAgent||!g.test(navigator.userAgent))&&!this.pageDb.has(e))},t.prefetch=function(e){var t=this;if(!this.shouldPrefetch(e))return{then:function(e){return e(!1)},abort:function(){}};if(this.prefetchTriggered.has(e))return{then:function(e){return e(!0)},abort:function(){}};var n={resolve:null,reject:null,promise:null};n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),this.prefetchQueued.push([e,n]);var r=new AbortController;return r.signal.addEventListener("abort",function(){var n=t.prefetchQueued.findIndex(function(t){return t[0]===e});-1!==n&&t.prefetchQueued.splice(n,1)}),this.isPrefetchQueueRunning||(this.isPrefetchQueueRunning=!0,setTimeout(function(){t._processNextPrefetchBatch()},3e3)),{then:function(e,t){return n.promise.then(e,t)},abort:r.abort.bind(r)}},t._processNextPrefetchBatch=function(){var e=this;(window.requestIdleCallback||function(e){return setTimeout(e,0)})(function(){var t=e.prefetchQueued.splice(0,4),n=Promise.all(t.map(function(t){var n=t[0],r=t[1];return e.prefetchTriggered.has(n)||(e.apiRunner("onPrefetchPathname",{pathname:n}),e.prefetchTriggered.add(n)),e.prefetchDisabled?r.resolve(!1):e.doPrefetch((0,c.Hh)(n)).then(function(){e.prefetchCompleted.has(n)||(e.apiRunner("onPostPrefetchPathname",{pathname:n}),e.prefetchCompleted.add(n)),r.resolve(!0)})}));e.prefetchQueued.length?n.then(function(){setTimeout(function(){e._processNextPrefetchBatch()},3e3)}):e.isPrefetchQueueRunning=!1})},t.doPrefetch=function(e){var t=this,n=p(e);return s(n,{crossOrigin:"anonymous",as:"fetch"}).then(function(){return t.loadPageDataJson(e)})},t.hovering=function(e){this.loadPage(e)},t.getResourceURLsForPathname=function(e){var t=(0,c.Hh)(e),n=this.pageDataDb.get(t);if(n){var r=m(n.payload);return[].concat((0,o.A)(E(r.page.componentChunkName)),[p(t)])}return null},t.isPageNotFound=function(e){var t=(0,c.Hh)(e),n=this.pageDb.get(t);return!n||n.notFound},t.loadAppData=function(e){var t=this;return void 0===e&&(e=0),this.memoizedGet("/page-data/app-data.json").then(function(n){var r,o=n.status,i=n.responseText;if(200!==o&&e<3)return t.loadAppData(e+1);if(200===o)try{var a=JSON.parse(i);if(void 0===a.webpackCompilationHash)throw new Error("not a valid app-data response");r=a}catch(s){}return r})},e}(),E=function(e){return(window.___chunkMapping[e]||[]).map(function(e){return""+e})},S=function(e){function t(t,n,r){var o;return o=e.call(this,function(e,n){if(void 0===n&&(n="components"),!t[n="components"][e])throw new Error("We couldn't find the correct component chunk with the name \""+e+'"');return t[n][e]().catch(function(e){return e})},n)||this,r&&o.pageDataDb.set((0,c.Hh)(r.path),{pagePath:r.path,payload:r,status:"success"}),o}(0,r.A)(t,e);var n=t.prototype;return n.doPrefetch=function(t){return e.prototype.doPrefetch.call(this,t).then(function(e){if(e.status!==d.Success)return Promise.resolve();var t=e.payload,n=t.componentChunkName,r=E(n);return Promise.all(r.map(s)).then(function(){return t})})},n.loadPageDataJson=function(t){return e.prototype.loadPageDataJson.call(this,t).then(function(e){return e.notFound?v(t)?e:h(t,"HEAD").then(function(t){return 200===t.status?{status:d.Error}:e}):e})},n.loadPartialHydrationJson=function(t){return e.prototype.loadPartialHydrationJson.call(this,t).then(function(e){return e.notFound?v(t)?e:h(t,"HEAD").then(function(t){return 200===t.status?{status:d.Error}:e}):e})},t}(w),x=function(e){b=e},A={enqueue:function(e){return b.prefetch(e)},getResourceURLsForPathname:function(e){return b.getResourceURLsForPathname(e)},loadPage:function(e){return b.loadPage(e)},loadPageSync:function(e,t){return void 0===t&&(t={}),b.loadPageSync(e,t)},prefetch:function(e){return b.prefetch(e)},isPageNotFound:function(e){return b.isPageNotFound(e)},hovering:function(e){return b.hovering(e)},loadAppData:function(){return b.loadAppData()}},k=A;function O(){return b?b.staticQueryDb:{}}function P(){return b?b.slicesDb:{}}},61274:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
2ing","toString","valueOf"]},62350:function(e,t,n){"use strict";var r=n(39944),o=n(44977),i=n(3770),a=n(13174),s=n(69874),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return i(r(n,e));throw new u(a(e)+" is not iterable")}},62694:function(e,t,n){"use strict";var r=n(1942),o=n(79117),i=n(14798),a="__core-js_shared__",s=e.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013â2025 Denis Pushkarev (zloirock.ru), 2025â2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},63008:function(e,t,n){"use strict";var r,o,i=n(79117),a=n(98060),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},63616:function(e,t,n){t.components={"component---src-pages-404-index-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(1834)]).then(n.bind(n,92946))},"component---src-pages-case-studies-index-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(3637),n.e(5146),n.e(1598),n.e(4864)]).then(n.bind(n,14375))},"component---src-pages-contact-sales-index-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2395),n.e(6356),n.e(1151),n.e(6046),n.e(1177)]).then(n.bind(n,99032))},"component---src-pages-demo-index-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(3637),n.e(7834),n.e(5662),n.e(7937)]).then(n.bind(n,27849))},"component---src-pages-events-index-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(3637),n.e(8507)]).then(n.bind(n,16250))},"component---src-pages-identify-now-index-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(3637),n.e(7834),n.e(5662),n.e(2723),n.e(3322),n.e(5359)]).then(n.bind(n,14635))},"component---src-pages-index-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(2395),n.e(7834),n.e(6356),n.e(1151),n.e(7370),n.e(9520),n.e(9245)]).then(n.bind(n,51543))},"component---src-pages-partners-index-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(3637),n.e(5146),n.e(6046),n.e(5797)]).then(n.bind(n,96827))},"component---src-pages-resources-frequently-asked-questions-faqs-index-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(7572),n.e(2134),n.e(9524)]).then(n.bind(n,90631))},"component---src-pages-resources-index-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(3637),n.e(8877)]).then(n.bind(n,70553))},"component---src-pages-resources-press-index-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(3637),n.e(2395),n.e(6356),n.e(1151),n.e(7165),n.e(6129),n.e(991)]).then(n.bind(n,19719))},"component---src-pages-safari-repro-tsx":function(){return n.e(7312).then(n.bind(n,28228))},"component---src-pages-start-index-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(3637),n.e(7834),n.e(5662),n.e(7165),n.e(6129),n.e(2723),n.e(1598),n.e(3322),n.e(3593),n.e(5962)]).then(n.bind(n,16603))},"component---src-pages-subscribe-newsletter-index-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(948),n.e(7688)]).then(n.bind(n,11676))},"component---src-pages-support-index-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2395),n.e(6356),n.e(1151),n.e(6779)]).then(n.bind(n,21137))},"component---src-pages-templates-index-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(7063),n.e(9819)]).then(n.bind(n,60023))},"component---src-pages-templates-template-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(7063),n.e(363)]).then(n.bind(n,72926))},"component---src-templates-android-freemium-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(4093),n.e(3637),n.e(2395),n.e(7834),n.e(6356),n.e(5662),n.e(7370),n.e(408)]).then(n.bind(n,87833))},"component---src-templates-author-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(3637),n.e(5146),n.e(4367),n.e(1085)]).then(n.bind(n,82990))},"component---src-templates-blog-tag-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(3637),n.e(5146),n.e(4367),n.e(4155)]).then(n.bind(n,19266))},"component---src-templates-blog-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(3637),n.e(5146),n.e(4367),n.e(948),n.e(3256)]).then(n.bind(n,89401))},"component---src-templates-case-study-content-new-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(3637),n.e(7572),n.e(2134),n.e(5009)]).then(n.bind(n,94819))},"component---src-templates-comparison-content-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(8339)]).then(n.bind(n,88275))},"component---src-templates-home-a-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(2395),n.e(7834),n.e(6356),n.e(1151),n.e(7370),n.e(9520
2),n.e(6451)]).then(n.bind(n,62939))},"component---src-templates-home-b-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(2395),n.e(7834),n.e(6356),n.e(1151),n.e(7370),n.e(9520),n.e(9172)]).then(n.bind(n,5096))},"component---src-templates-long-form-content-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(3637),n.e(5146),n.e(7572),n.e(2134),n.e(3460),n.e(1377)]).then(n.bind(n,25786))},"component---src-templates-new-industry-page-content-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(5146),n.e(2395),n.e(7165),n.e(6129),n.e(6046),n.e(3103)]).then(n.bind(n,77030))},"component---src-templates-webinar-page-content-tsx":function(){return Promise.all([n.e(1869),n.e(4223),n.e(4731),n.e(2538),n.e(4093),n.e(3637),n.e(5146),n.e(7572),n.e(7165),n.e(6129),n.e(2134),n.e(2723),n.e(3593),n.e(3460),n.e(1214)]).then(n.bind(n,62475))}}},63732:function(e,t,n){"use strict";t.__esModule=!0,t.useScrollRestoration=function(e){var t=(0,i.useLocation)(),n=(0,o.useContext)(r.ScrollContext),a=(0,o.useRef)(null);return(0,o.useLayoutEffect)(function(){if(a.current){var r=n.read(t,e);a.current.scrollTo(0,r||0)}},[t.key]),{ref:a,onScroll:function(){a.current&&n.save(t,e,a.current.scrollTop)}}};var r=n(12574),o=n(14041),i=n(1038)},64212:function(e,t,n){"use strict";var r=n(16881),o=n(76744),i=n(92618),a=n(39509),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(e){return function(t,n){var r,l,f=i(a(t)),d=o(n),p=f.length;return d<0||d>=p?e?"":void 0:(r=u(f,d))<55296||r>56319||d+1===p||(l=u(f,d+1))<56320||l>57343?e?s(f,d):r:e?c(f,d,d+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},64466:function(e,t,n){"use strict";var r=n(96893),o=n(39622),i=n(23315),a=n(3770),s=n(42344),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=l(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},64837:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=new WeakMap;function o(){var e=n(25873);return{render:function(t,n,o){void 0===o&&(o={});var i=r.get(n);if(!i){var a=o.onUncaughtError||o.onCaughtError?{onUncaughtError:o.onUncaughtError,onCaughtError:o.onCaughtError}:void 0;r.set(n,i=e.createRoot(n,a))}i.render(t)},hydrate:function(t,n,r){void 0===r&&(r={});var o=r.onUncaughtError||r.onCaughtError?{onUncaughtError:r.onUncaughtError,onCaughtError:r.onCaughtError}:void 0;return e.hydrateRoot(n,t,o)}}}},65372:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},65438:function(e,t,n){"use strict";var r=n(79345),o=n(14188),i=n(38689),a=n(4282)("toStringTag"),s=Object,u="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=s(e),a))?n:u?i(t):"Object"===(r=i(t))&&o(t.callee)?"Arguments":r}},65926:function(e,t,n){"use strict";var r=n(79117),o=n(80831),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},66118:function(e,t,n){"use strict";n.d(t,{Yl:function(){return d},Hh:function(){return v},UA:function(){return p},QX:function(){return f}});var r=n(1038),o=n(59146),i=function(e){if(void 0===e)return e;var t=e.split("?"),n=t[0],r=t[1],o=void 0===r?"":r;return o&&(o="?"+o),"/"===n?"/"+o:"/"===n.charAt(n.length-1)?n.slice(0,-1)+o:n+o},a=n(6148),s=new Map,u=[],c=function(e){var t=e;if(-1!==e.indexOf("?")){var n=e.split("?"),r=n[0],i=n[1];t=r+"?"+encodeURIComponent(i)}var a=decodeURIComponent(t);return(0,o.A)(a,decodeURIComponent("")).split("#")[0]};function l(e){return e.startsWith("/")||e.startsWith("https://")||e.startsWith("http://")?e:new URL(e,window.location.href+(window.location.href.endsWith("/")?"":"/")).pathname}var f=function(e){u=e},d=function(e){var t=h(e),n=u.map(function(e){var t=e.path;return{path:e.matchPath,originalPath:t}}),o=(0,r.pick)(n,t);return o?i(o.route.originalPath):null},p=function(e){var t=h(e),n=u.map(function(e){var t=e.path;return{path:e.matchPath,originalPath:t}}),o=(0,r.pick)(n,t);return o?o.params:{}},v=function(e){var t=c(l(e));if(s.has(t))return s.get(t);var n=(0,a.X)(e);if(n)return v(n.toPath);var r=d(t);return r||(r=h(e)),s.set(t,r),r},h=function(e){var t=c(l(e));return"/index.html"===t&&(t="/"),t=i(t)}},66209:function(e,t,n){"use strict";var r=n(16881),o=0,i=Math.random(),a=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},67458:function(e,t,n){"use strict";var r=n(5604);e.exports=r("document","documentElement")},67588:function(e){"use strict";e.exports={}},68472:function(e,t,n){"use strict";var r=n(79117),o=n(95691),i=n(5234),a=n(44977),s=n(9295),u=n(47223),c=n(32222),l=n(84598),f=n(63008),d=n(17340),p=u.aTypedArray,v=u.exportTypedArrayMethod,h=r.Uint16Array,g=h&&o(h.prototype.sort),m=!(!g||i(function(){g(new h(2),null)})&&i(function(){g(new h(2),{})})),y=!!g&&!i(function(){if(f)return f<74;if(c)return c<67;if(l)return!0;
2if(d)return d<602;var e,t,n=new h(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(g(n,function(e,t){return(e/4|0)-(t/4|0)}),e=0;e<516;e++)if(n[e]!==r[e])return!0});v("sort",function(e){return void 0!==e&&a(e),y?g(this,e):s(p(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?t!=t?0:-1:t!=t?1:0===t&&0===n?1/t>0?1/n>0?0:1:1/n>0?-1:0:t>n?1:t<n?-1:0}}(e))},!y||m)},68489:function(e,t,n){"use strict";var r=n(5234),o=n(14188),i=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n===l||n!==c&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},69389:function(e,t,n){"use strict";var r=n(97611);e.exports=function(e){return r(e.length)}},69746:function(e,t,n){var r;e.exports=(r=n(5138))&&r.default||r},69874:function(e,t,n){"use strict";var r=n(65438),o=n(12913),i=n(44318),a=n(49164),s=n(4282)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[r(e)]}},69893:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},70645:function(e){function t(n,r,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}e.exports=t=function(e,n,r,o){function i(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},70675:function(e,t,n){"use strict";var r=n(76744),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},71025:function(e,t,n){"use strict";var r=n(16881),o=n(44977);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(i){}}},71326:function(e,t){"use strict";var n=0,r=function(e){var t=window.decodeURI(e.replace("#",""));if(""!==t){var r=document.getElementById(t);if(r){var o=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,i=document.documentElement.clientTop||document.body.clientTop||0,a=window.getComputedStyle(r),s=a.getPropertyValue("scroll-margin-top")||a.getPropertyValue("scroll-snap-margin-top")||"0px";return r.getBoundingClientRect().top+o-parseInt(s,10)-i-n}}return null};t.onInitialClientRender=function(e,t){t.offsetY&&(n=t.offsetY),requestAnimationFrame(function(){var e=r(window.location.hash);null!==e&&window.scrollTo(0,e)})},t.shouldUpdateScroll=function(e){var t=e.routerProps.location,n=r(t.hash);return null===n||[0,n]}},71918:function(e){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},72019:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(49105),o=n(1087);function i(e,t,n){if((0,r.A)())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var a=new(e.bind.apply(e,i));return n&&(0,o.A)(a,n.prototype),a}},72306:function(e,t,n){"use strict";var r=n(79117),o=n(5234),i=r.RegExp,a=!o(function(){var e=!0;try{i(".","d")}catch(u){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)o(s,a[s]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(t)!==r||n!==r});e.exports={correct:a}},72715:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:function(){return r}})},73168:function(e,t,n){"use strict";var r=n(5604),o=n(16881),i=n(25629),a=n(30156),s=n(3770),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?u(t,n(e)):t}},74121:function(e,t,n){"use strict";var r=n(16712),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},74416:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},74418:function(e,t,n){"use strict";var r=n(16881),o=n(83628),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},74430:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:function(){return r}})},74530:function(e,t,n){"use strict";var r=n(16881),o=n(5234),i=n(14188),a=n(74418),s=n(96893),u=n(92735).CONFIGURABLE,c=n(13029),l=n(43086),f=l.enforce,d=l.get,p=String,v=Object.defineProperty,h=r("".slice),g=r("".replace),m=r([].join),y=s&&!o(function(){return 8!==v(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===h(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?v(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&v(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&v(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=f(e);return a(r,"source")||(r.source=m(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return i(this)&&d(this).source||c(this)},"toString")},74609:function(e,t,n){"use strict";var r=n(5234),o=n(79117).RegExp;e.exports=r(function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},75022:function(e,t,n){"use strict";var r=n(49980);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},75474:function(e,t){"use strict";function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function r(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}t.T=void 0;var o=[".html",".json",".js",".map",".txt",".xml",".pdf"];t.T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"always";if("/"===e)return e;var r=e.endsWith("/");return function(e,t){var r,o=n(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(t.endsWith(i))return!0}}catch(a){o.e(a)}finally{o.f()}return!1}(o,e)?e:"always"===t?r?e:"".concat(e,"/"):"never"===t&&r?e.slice(0,-1):e}},75799:function(e,t,n){var r=n(17048)();e.exports=r;try{regeneratorRuntime=r}catch(o){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},75800:function(e,t,n){var r=n(95726),o=n(4686);e.exports=function(e,t,n,i,a){return new o(r().w(e,t,n,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},76224:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},76744:function(e,t,n){"use strict";var r=n(60142);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},76823:function(e,t,n){"use strict";n.d(t,{RE:function(){return i},YA:function(){return o},zj:function(){return r}});var r={timeout:2e4,tag:"undefined"!=typeof document&&""!==document.referrer?{referrerLink:document.referrer}:{referrerLink:null}},o=function(e){var t;return null!==(t=null==e?void 0:e.visitorId)&&void 0!==t?t:null==e?void 0:e.visitor_id},i=function(e){var t,n;return null!==(t=null!==(n=null==e?void 0:e.requestId)&&void 0!==n?n:null==e?void 0:e.eventId)&&void 0!==t?t:null==e?void 0:e.event_id}},77065:function(e,t,n){"use strict";var r,o=n(3770),i=n(30),a=n(61274),s=n(67588),u=n(67458),c=n(65926),l=n(40168),f="prototype",d="script",p=l("IE_PROTO"),v=function(){},h=function(e){return"<"+d+">"+e+"</"+d+">"},g=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{r=new ActiveXObject("htmlfile")}catch(i){}var e,t,n;m="undefined"!=typeof document?document.domain&&r?g(r):(t=c("iframe"),n="java"+d+":",t.style.display="none",u.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):g(r);for(var o=a.length;o--;)delete m[f][a[o]];return m()};s[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[f]=o(e),n=new v,v[f]=null,n[p]=e):n=m(),void 0===t?n:i.f(n,t)}},77846:function(e,t,n){"use strict";var r=n(5613),o=n(39944),i=n(95691),a=n(9383),s=n(76224),u=n(39509),c=n(97611),l=n(92618),f=n(3770),d=n(80831),p=n(38689),v=n(30473),h=n(23113),g=n(12913),m=n(97509),y=n(5234),b=n(4282),w=n(97964),E=n(154),S=n(14721),x=n(43086),A=n(1942),k=b("matchAll"),O="RegExp String",P=O+" Iterator",C=x.set,T=x.getterFor(P),_=RegExp.prototype,R=TypeError,I=i("".indexOf),j=i("".matchAll),D=!!j&&!y(function(){j("a",/./)}),N=a(function(e,t,n,r){C(this,{type:P,regexp:e,string:t,global:n,unicode:r,done:!1})},O,function(){var e=T(this);if(e.done)return s(void 0,!0);var t=e.regexp,n=e.string,r=S(t,n);return null===r?(e.done=!0,s(void 0,!0)):e.global?(""===l(r[0])&&(t.lastIndex=E(n,c(t.lastIndex),e.unicode)),s(r,!1)):(e.done=!0,s(r,!1))}),U=function(e){var t,n,r,o=f(this),i=l(e),a=w(o,RegExp),s=l(h(o));return t=new a(a===RegExp?o.source:o,s),n=!!~I(s,"g"),r=!!~I(s,"u")||!!~I(s,"v"),t.lastIndex=c(o.lastIndex),new N(t,i,n,r)};r({target:"String",proto:!0,forced:D},{matchAll:function(e){var t,n,r,i,a=u(this);if(d(e)){if(v(e)&&(t=l(u(h(e))),!~I(t,"g")))throw new R("`.matchAll` does not allow non-global regexes");if(D)return j(a,e);
2if(void 0===(r=g(e,k))&&A&&"RegExp"===p(e)&&(r=U),r)return o(r,e,a)}else if(D)return j(a,e);return n=l(a),i=new RegExp(e,"g"),A?o(U,i,n):i[k](n)}}),A||k in _||m(_,k,U)},78134:function(e,t,n){"use strict";e.exports=n(79034)},78549:function(e,t,n){"use strict";n.d(t,{$2:function(){return s},gI:function(){return o},k:function(){return i},pn:function(){return a},zP:function(){return u}});var r=n(22155),o={home:"/",events:"/events/",demoUrl:"/demo/",pricingUrl:"/pricing/",accountTakeover:"/use-cases/account-takeover/",ecommerce:"/e-commerce/",gaming:"/igaming/",travel:"/travel/",cryptocurrency:"/cryptocurrency/",paymentFraud:"/use-cases/payment-fraud/",blog:"/blog/",paywall:"/use-cases/paywall/",caseStudies:"/case-studies/",contactSales:"/contact-sales/",whyFpjs:"/products/fingerprint-pro/",identification:"/products/identification/",accountSharing:"/use-cases/account-sharing-prevention/",botD:"/products/bot-detection/",bnpl:"/buy-now-pay-later/",careers:"/careers/",aiinfopage:"/blog/ai-info-page/",support:"/support/",security:"/security/",useCases:"/use-cases/",tutorials:"/blog/tag/tutorials/",guides:"/blog/tag/guides/",resources:"/resources/",templates:"/templates/",faq:"/resources/frequently-asked-questions-faqs/",press:"/resources/press/",vsThreatMetrix:"/resources/comparisons/compare-fingerprint-vs-threatmetrix/",vsTruValidate:"/resources/comparisons/compare-fingerprint-vs-truvalidate/",integrations:"/integrations/",sdks:"/sdk-libraries/",github:"/github/",aboutUs:"/about-us",smartSignals:"/products/smart-signals/",partners:"/partners/",finserv:"/fintech",banking:"/banking",smsFraud:"/use-cases/sms-fraud/",personalization:"/blog/providing-personalization-to-anonymous-users/",couponPromo:"/blog/prevent-coupon-promo-abuse-increase-sales/",credentialStuffing:"/blog/credential-stuffing-prevention-checklist/",start:"/start/",newAccountFraudPrevention:"/use-cases/new-account-fraud-prevention/",mobileAppDetection:"/use-cases/mobile-app-detection/",returningUserExperience:"/use-cases/returning-user-experience/",webBotAuthTest:"/web-bot-auth/test/",automationDetection:"/products/ai-agent-detection/"},i={githubRepoUrl:"https://github.com/fingerprintjs/fingerprintjs/",githubApiUrl:"https://api.github.com/repos/fingerprintjs",githubCommunityRepoUrl:"https://github.com/fingerprintjs/home",botDRepoUrl:"https://github.com/fingerprintjs/BotD",botDIntegrationsRepoUrl:"https://github.com/fingerprintjs/botd-integrations",dashboardLoginUrl:"https://dashboard.fingerprint.com/login",careersUrl:"https://boards.greenhouse.io/fingerprintjs/",careersConsoleLogUrl:"https://fingerprint.com/careers/",linkedinUrl:"https://www.linkedin.com/company/fingerprintjs/",twitterUrl:"https://twitter.com/FingerprintJs/",signupUrl:"https://dashboard.fingerprint.com/signup",statusUrl:"https://status.fingerprint.com",supportMail:"[email protected]",salesMail:"[email protected]",worKMail:"[email protected]",pressMail:"[email protected]",securityMail:"[email protected]",discordServerURL:"https://discord.gg/ad6R2ttHVX",docsUrl:"https://docs.fingerprint.com",promotionalVideo:"https://www.youtube.com/embed/UEYBysyPTBs",demoVideo:"https://www.youtube.com/embed/hVktdWfyBuU",g2ReviewUrl:"https://www.g2.com/products/fingerprintjs-fingerprint/reviews",hubUrl:"https://demo.fingerprint.com/",planUrl:"https://dashboard.fingerprint.com/plan",templatesUrl:"https://dashboard.fingerprint.com/templates/"},a={documentationUrl:i.docsUrl,proVsOpenUrl:"https://fingerprint.com/github",browserFingerprintUrl:i.docsUrl+"/docs/introduction",incognitoUrl:i.docsUrl+"/docs/smart-signals-reference",serverApiUrl:i.docsUrl+"/docs/server-api",legalUrl:i.docsUrl+"/docs/dpa-gdpr",termOfUseUrl:i.docsUrl+"/docs/terms-of-service",privacyPolicyUrl:i.docsUrl+"/docs/privacy-policy",browserSupportUrl:i.docsUrl+"/docs/browser-and-device-support",webhooksUrl:i.docsUrl+"/docs/webhooks",botDUrl:"https://github.com/fingerprintjs/BotD#botd",zeroTrustUrl:i.docsUrl+"/docs/zero-trust-mode",migrateUrl:i.docsUrl+"/docs/migrating-from-fingerprintjs-to-fingerprint-pro#migrating-from-fingerprintjs-v3-open-source-to-fingerprint-identification",botDetectionGuide:i.docsUrl+"/docs/bot-detection/overview",jsAgent:i.docsUrl+"/reference/js-agent",quickStartCustomSubdomain:i.docsUrl+"/docs/custom-subdomain-setup",quickStartWebhooks:i.docsUrl+"/docs/webhooks",quickStartServerApi:i.docsUrl+"/docs/server-api",pricing:i.docsUrl+"/docs/billing",serverApi:i.docsUrl+"/reference/server-api",smartSignalsMobile:i.docsUrl+"/docs/smart-signals-reference#smart-signals-for-mobile-devices",gettingStartedMobile:i.docsUrl+"/docs/mobile-sdks"},s=[{branch:r.dI}],u=[{name:"Homepage",pages:[o.home]},{name:"Blog",pages:[o.blog]},{name:"Products",pages:["/products/"]},{name:"Case Studies",pages:[o.caseStudies]},{name:"Solutions and Use Cases",pages:[o.paymentFraud,o.accountTakeover,o.accountSharing,o.paymentFraud,o.ecommerce,o.bnpl,o.gaming,o.cryptocurrency,o.useCases]},{name:"About",pages:[o.aboutUs]},{name:"Contact (Sales, Support)",pages:[o.contactSales,o.support]},{name:"Careers",pages:[o.careers]},{name:"Press",pages:[o.press]},{name:"FAQ",pages:[o.faq]}
2,{name:"Integrations and SDKs",pages:[o.integrations,o.sdks]},{name:"Pricing",pages:[o.pricingUrl,"/pricing-a/","/pricing-b/"]},{name:"Demo",pages:[o.demoUrl]},{name:"GitHub",pages:[o.github]}]},78958:function(e){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;(u=new Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},79034:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,v=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case h:case u:return e;default:return t}}case o:return t}}}function S(e){return E(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||E(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===h},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===p||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===m)},t.typeOf=E},79117:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},79140:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(1087);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},79345:function(e,t,n){"use strict";var r={};r[n(4282)("toStringTag")]="z",e.exports="[object z]"===String(r)},80831:function(e,t,n){"use strict";var r=n(14188);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},80866:function(e,t,n){"use strict";var r=n(16881),o=n(5234),i=n(14188),a=n(65438),s=n(5604),u=n(13029),c=function(){},l=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.test(c),v=function(e){if(!i(e))return!1;try{return l(c,[],e),!0}catch(t){return!1}},h=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,u(e))}catch(t){return!0}};h.sham=!0,e.exports=!l||o(function(){var e;return v(v.call)||!v(Object)||!v(function(){e=!0})||e})?h:v},80939:function(e,t,n){"use strict";var r=n(76744),o=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new o("The argument can't be less than 0");return t}},81177:function(e,t,n){"use strict";n.d(t,{A:function(){return j}});var r=n(14041),o=n(39067),i=n.n(o),a=n(29579),s=n(66118),u=n(83705),c=n(96691),l=n(1038),f=n(64837);function d(e){var t=e.children,n=e.callback;return(0,r.useEffect)(function(){n()}),t}var p=["link","meta","style","title","base","noscript","script","html","body"],v="itemProp",h="gatsby-do-not-hoist-me-react",g="data-original-tag",m=r.createContext(!1);function y(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,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}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}function w(e){}function E(e){for(var t,n=e.oldNodes,r=e.newNodes,o=e.onStale,i=e.onNew,a=function(){var e=t.value,n=r.findIndex(function(t){return function(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){var n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){var r=t.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===e.nonce&&e.isEqualNode(r)}}return e.isEqualNode(t)}(t,e)});-1===n?o(e):r.splice(n,1)},s=y(n);!(t=s()).done;)a();for(var u,c=y(r);!(u=c()).done;){i(u.value)}}function S(e,t){void 0===t&&(t={html:{},body:{}});for(var n,r=new Map,o=[],i=y(e.childNodes);!(n=i()).done;){var a,s,c,l,f,d=n.value;if(k(d)){var p=null!==(a=null===(s=d.attributes)||void 0===s||null===(c=s.getNamedItem(g))||void 0===c?void 0:c.value)&&void 0!==a?a:d.nodeName.toLowerCase(),m=null===(l=d.attributes)||void 0===l||null===(f=l.id)||void 0===f?void 0:f.value;if(A(p))if("html"===p||"body"===p)for(var b,E=y(d.attributes);!(b=E()).done;){var O=b.value;if(O.name!==g){var P,C="style"===O.name;if(t[p]=Object.assign({},t[p]),C||(t[p][O.name]=O.value),C)t[p].style=""+(null!==(P=t[p])&&void 0!==P&&P.style?t[p].style:"")+O.value+" "}}else{var T=d.cloneNode(!0);if(T.setAttribute("data-gatsby-head",!0),T.getAttribute(v)===h&&T.removeAttribute(v),"script"===T.nodeName.toLowerCase()&&(T=x(T)),m)if(r.has(m)){var _,R=r.get(m);null===(_=o[R].parentNode)||void 0===_||_.removeChild(o[R]),o[R]=T}else o.push(T),r.set(m,o.length-1);else o.push(T)}else w();d.childNodes.length&&o.push.apply(o,(0,u.A)(S(d,t).validHeadNodes))}}return{validHeadNodes:o,htmlAndBodyAttributes:t}}function x(e){for(var t,n=document.createElement(e.nodeName),r=y(e.attributes);!(t=r()).done;){var o=t.value;n.setAttribute(o.name,o.value)}return n.innerHTML=e.innerHTML,n}function A(e){return p.includes(e)}function k(e){return 1===e.nodeType}var O=document.createElement("div"),P={html:[],body:[]},C=function(){var e,t=S(O),n=t.validHeadNodes,r=t.htmlAndBodyAttributes;P.html=Object.keys(r.html),P.body=Object.keys(r.body),function(e){if(e){var t=e.html,n=e.body,r=document.querySelector("html");
2r&&Object.entries(t).forEach(function(e){var t=e[0],n=e[1];r.setAttribute(t,n)});var o=document.querySelector("body");o&&Object.entries(n).forEach(function(e){var t=e[0],n=e[1];o.setAttribute(t,n)})}}(r);var o=document.querySelectorAll("[data-gatsby-head]");if(0!==o.length){var i=[];E({oldNodes:o,newNodes:n,onStale:function(e){return e.parentNode.removeChild(e)},onNew:function(e){return i.push(e)}}),(e=document.head).append.apply(e,i)}else{var a;(a=document.head).append.apply(a,(0,u.A)(n))}};if(18!==parseInt(r.version.split(".")[0],10)&&!r.createElement.headPatched){var T=r.createElement,_=function(e,t){function n(){return!!t||r.useContext(m)}return new Map(p.map(function(t){var r,o;return[t,"html"===t||"body"===t?((o=function(t){if(n()){var o,i=Object.assign({},t,((o={})[g]=r,o));return e("div",i)}return e(r,t)}).displayName="React19HeadAPICompat"+(r=t),o):function(t){var r=function(r){if(n()&&!(v in r)){var o,i=Object.assign({},r,((o={})[v]=h,o));return e(t,i)}return e(t,r)};return r.displayName="React19HeadAPICompat"+t,r}(t)]}))}(T,!1);r.createElement=function(e,t){var n=_.get(e);n&&(e=n);for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];return T.call.apply(T,[r,e,t].concat(i))},r.createElement.headPatched=!0}function R(e){var t=e.pageComponent,n=e.staticQueryResults,o=e.pageComponentProps;(0,r.useEffect)(function(){if(null!=t&&t.Head){!function(e){if("function"!=typeof e)throw new Error('Expected "Head" export to be a function got "'+typeof e+'".')}(t.Head);var e=(0,f.n)().render,i=r.createElement(t.Head,{location:{pathname:(u=o).location.pathname},params:u.params,data:u.data||{},serverData:u.serverData,pageContext:u.pageContext}),s=(0,a.N)("wrapRootElement",{element:i},i,function(e){return{element:e.result}}).pop();e(r.createElement(d,{callback:C},r.createElement(m.Provider,{value:!0},r.createElement(c.G.Provider,{value:n},r.createElement(l.LocationProvider,null,s)))),O)}var u;return function(){!function(){for(var e,t=y(document.querySelectorAll("[data-gatsby-head]"));!(e=t()).done;){var n=e.value;n.parentNode.removeChild(n)}}(),function(e){if(e){var t=e.html,n=e.body;if(t){var r=document.querySelector("html");t.forEach(function(e){r&&r.removeAttribute(e)})}if(n){var o=document.querySelector("body");n.forEach(function(e){o&&o.removeAttribute(e)})}}}(P)}})}function I(e){var t,n,o=Object.assign({},e,{params:Object.assign({},(0,s.UA)(e.location.pathname),e.pageResources.json.pageContext.__params)});return t=e.pageResources.partialHydration?e.pageResources.partialHydration:(0,r.createElement)((n=e.pageResources.component)&&n.default||n,Object.assign({},o,{key:e.path||e.pageResources.page.path})),R({pageComponent:e.pageResources.head,staticQueryResults:e.pageResources.staticQueryResults,pageComponentProps:o}),(0,a.N)("wrapPageElement",{element:t,props:o},t,function(e){return{element:e.result,props:o}}).pop()}I.propTypes={location:i().object.isRequired,pageResources:i().object.isRequired,data:i().object,pageContext:i().object.isRequired};var j=I},81305:function(e,t,n){"use strict";var r=n(13174),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+r(t)+" of "+r(e))}},81458:function(e,t,n){"use strict";var r=n(10380),o=n(70675),i=n(69389),a=function(e){return function(t,n,a){var s=r(t),u=i(s);if(0===u)return!e&&-1;var c,l=o(a,u);if(e&&n!=n){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},83628:function(e,t,n){"use strict";var r=n(39509),o=Object;e.exports=function(e){return o(r(e))}},83705:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(86284);var o=n(74430),i=n(27985);function a(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||(0,o.A)(e)||(0,i.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},84598:function(e,t,n){"use strict";var r=n(98060);e.exports=/MSIE|Trident/.test(r)},85033:function(e,t,n){"use strict";n.d(t,{G:function(){return a},GR:function(){return s}});var r=n(14041);n(58899);var o,i,a=(o="StaticQuery",i={},r.createServerContext?function(e,t){return void 0===t&&(t=null),globalThis.__SERVER_CONTEXT||(globalThis.__SERVER_CONTEXT={}),globalThis.__SERVER_CONTEXT[e]||(globalThis.__SERVER_CONTEXT[e]=r.createServerContext(e,t)),globalThis.__SERVER_CONTEXT[e]}(o,i):r.createContext(i));var s=function(e){var t;r.useContext;var n=r.useContext(a);if(isNaN(Number(e)))throw new Error("useStaticQuery was called with a string but expects to be called using `graphql`. Try this:\n\nimport { use
2StaticQuery, graphql } from 'gatsby';\n\nuseStaticQuery(graphql`"+e+"`);\n");if(null!==(t=n[e])&&void 0!==t&&t.data)return n[e].data;throw new Error("The result of this StaticQuery could not be fetched.\n\nThis is likely a bug in Gatsby and if refreshing the page does not fix it, please open an issue in https://github.com/gatsbyjs/gatsby/issues")}},85821:function(e,t,n){"use strict";var r=n(95691),o=n(44977),i=n(89055),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},86284:function(e,t,n){"use strict";function r(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}n.d(t,{A:function(){return r}})},86330:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,u,"next",e)}function u(e){r(a,o,i,s,u,"throw",e)}s(void 0)})}}n.d(t,{A:function(){return o}})},88088:function(e,t,n){"use strict";var r=n(96893),o=n(64466),i=n(39123);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},88500:function(e,t,n){"use strict";var r=n(39944),o=n(3770),i=n(12913);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(u){s=!0,a=u}if("throw"===t)throw n;if(s)throw a;return o(a),n}},89030:function(e,t,n){"use strict";n(27011),n(98752),t.__esModule=!0,t.getForwards=function(e){return null==e?void 0:e.flatMap(function(e){return(null==e?void 0:e.forward)||[]})}},89055:function(e,t,n){"use strict";var r=n(5234);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},89575:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:function(){return r}})},89809:function(e,t,n){"use strict";var r=n(48944);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},90346:function(e,t,n){"use strict";var r=n(4282);t.f=r},90689:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(96488);var o=n(27985),i=n(5405);function a(e,t){return(0,r.A)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||(0,o.A)(e,t)||(0,i.A)()}},91203:function(e,t,n){"use strict";var r=n(14041),o=n(17502),i=n(89575),a=n(2474),s=n(79140),u=n(15019),c=n.n(u);function l(e,t){if(!e){var n=new Error("loadable: "+t);throw n.framesToPop=1,n.name="Invariant Violation",n}}var f=r.createContext();var d={initialChunks:{}},p="PENDING",v="REJECTED";var h=function(e){return e};function g(e){var t=e.defaultResolveComponent,n=void 0===t?h:t,u=e.render,g=e.onLoad;function m(e,t){void 0===t&&(t={});var h=function(e){return"function"==typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e}(e),m={};function y(e){return t.cacheKey?t.cacheKey(e):h.resolve?h.resolve(e):"static"}function b(e,r,o){var i=t.resolveComponent?t.resolveComponent(e,r):n(e);return c()(o,i,{preload:!0}),i}var w,E,S=function(e){var t=y(e),n=m[t];return n&&n.status!==v||((n=h.requireAsync(e)).status=p,m[t]=n,n.then(function(){n.status="RESOLVED"},function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:h.resolve(e),chunkName:h.chunkName(e),error:t?t.message:t}),n.status=v})),n},x=function(e){function n(n){var r;return(r=e.call(this,n)||this).state={result:null,error:null,loading:!0,cacheKey:y(n)},l(!n.__chunkExtractor||h.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),n.__chunkExtractor?(!1===t.ssr||(h.requireAsync(n).catch(function(){return null}),r.loadSync(),n.__chunkExtractor.addChunk(h.chunkName(n))),(0,a.A)(r)):(!1!==t.ssr&&(h.isReady&&h.isReady(n)||h.chunkName&&d.initialChunks[h.chunkName(n)])&&r.loadSync(),r)}(0,s.A)(n,e),n.getDerivedStateFromProps=function(e,t){var n=y(e);return(0,i.A)({},t,{cacheKey:n,loading:t.loading||t.cacheKey!==n})};var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&e.status===v&&this.setCache(),this.state.loading&&this.loadAsync()},r.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},r.componentWillUnmount=function(){this.mounted=!1},r.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},r.getCacheKey=function(){return y(this.props)},r.getCache=function(){return m[this.getCacheKey()]},r.setCache=function(e){void 0===e&&(e=void 0),m[this.getCacheKey()]=e},r.triggerOnLoad=function(){var e=this;g&&setTimeout(function(){g(e.state.result,e.props)})},r.loadSync=function(){if(this.state.loading)try{var e=b(h.requireSync(this.props),this.props,k);this.state.result=e,this.state.loading=!1}catch(t){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:h.resolve(this.props),chunkName:h.chunkName(this.props),error:t?t.message:t}),this.state.error=t}},r.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then(function(t){var n=b(t,e.props,k);e.safeSetState({result:n,loading:!1},function(){return e.triggerOnLoad()})}).catch(function(t){return e.safeSetState({error:t,loading:!1})}),t},r.resolveAsync=function(){var e=this.props,t=(e.__chunkExtractor,e.forwardedRef,(0,o.A)(e,["__chunkExtractor","forwardedRef"]));return S(t)},r.render=function(){var e=this.props,n=e.forwardedRef,r=e.fallback,a=(e.__chunkExtractor,(0,o.A)(e,["forwardedRef","fallback","__chunkExtractor"])),s=this.state,c=s.error,l=s.loading,f=s.result;if(t.suspense&&(this.getCache()||this.loadAsync()).status===p)throw this.loadAsync();if(c)throw c;var d=r||t.fallback||null;return l?d:u({fallback:d,result:f,options:t,props:(0,i.A)({},a,{ref:n})})},n}(r.Component),A=(E=function(e){return r.createElement(f.Consumer,null,function(t){return r.createElement(w,Object.assign({__chunkExtractor:t},e))})},(w=x).displayName&&(E.displayName=w.displayName+"WithChunkExtractor"),E),k=r.forwardRef(function(e,t){return r.createElement(A,Object.assign({forwardedRef:t},e))});return k.displayName="Loadable",k.preload=function(e){k.load(e)},k.load=function(e){return S(e)},k}return{loadable:m,lazy:function(e,t){return m(e,(0,i.A)({},t,{suspense:!0}))}}}
2var m=g({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,n=e.props;return r.createElement(t,n)}}),y=m.loadable,b=m.lazy,w=g({onLoad:function(e,t){e&&t.forwardedRef&&("function"==typeof t.forwardedRef?t.forwardedRef(e):t.forwardedRef.current=e)},render:function(e){var t=e.result,n=e.props;return n.children?n.children(t):null}}),E=w.loadable,S=w.lazy;var x=y;x.lib=E,b.lib=S;t.Ay=x},91361:function(e,t,n){"use strict";var r=n(80866),o=n(13174),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a constructor")}},91496:function(e,t,n){"use strict";n.d(t,{$P:function(){return i},Z2:function(){return s},w6:function(){return o}});var r="nav_item_clicked";function o(e,t,n){return{"data-ph-nav":e,"data-ph-nav-section":t,"data-ph-nav-item":n}}function i(e){return e+" dropdown trigger"}var a=!1;function s(){a||(a=!0,document.addEventListener("click",function(e){var t,n=e.target;if(n instanceof Element){var o=n.closest("[data-ph-nav]");o&&(null===(t=window.posthog)||void 0===t||t.capture(r,function(e){return{nav_type:e.dataset.phNav,nav_section:e.dataset.phNavSection,nav_item:e.dataset.phNavItem,destination_url:e instanceof HTMLAnchorElement?e.href:null}}(o)))}}))}},91557:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(56001);function o(e){return function(){return new i(e.apply(this,arguments))}}function i(e){var t,n;function o(t,n){try{var a=e[t](n),s=a.value,u=s instanceof r.A;Promise.resolve(u?s.v:s).then(function(n){if(u){var r="return"===t&&s.k?t:"next";if(!s.k||n.done)return o(r,n);n=e[r](n).value}i(!!a.done,n)},function(e){o("throw",e)})}catch(e){i(2,e)}}function i(e,r){2===e?t.reject(r):t.resolve({value:r,done:e}),(t=t.next)?o(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise(function(i,a){var s={key:e,arg:r,resolve:i,reject:a,next:null};n?n=n.next=s:(t=n=s,o(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}i.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},i.prototype.next=function(e){return this._invoke("next",e)},i.prototype.throw=function(e){return this._invoke("throw",e)},i.prototype.return=function(e){return this._invoke("return",e)}},91613:function(e,t,n){"use strict";n.d(t,{Jr:function(){return a},dd:function(){return o},j$:function(){return i}});var r=n(14041),o=r.createContext({}),i=r.createContext({}),a=r.createContext({})},91786:function(e,t,n){"use strict";var r=n(74418),o=n(14188),i=n(83628),a=n(40168),s=n(50680),u=a("IE_PROTO"),c=Object,l=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(r(t,u))return t[u];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof c?l:null}},92027:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SCRIPT_TYPE="text/partytown",t.partytownSnippet=e=>((e,t)=>{const{forward:n=[],...r}=e||{},o=JSON.stringify(r,(e,t)=>("function"==typeof t&&(t=String(t)).startsWith(e+"(")&&(t="function "+t),t));return["!(function(w,p,f,c){",Object.keys(r).length>0?`c=w[p]=Object.assign(w[p]||{},${o});`:"c=w[p]=w[p]||{};","c[f]=(c[f]||[])",n.length>0?`.concat(${JSON.stringify(n)})`:"","})(window,'partytown','forward');",t].join("")})(e,'/* Partytown 0.7.6 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,"/"==(a=(o.lib||"/~partytown/")+(o.debug?"debug/":""))[0]&&(s=e.querySelectorAll(\'script[type="text/partytown"]\'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(f,1e4),e.addEventListener("pt0",w),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||"partytown-sw.js"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&h()}))}),console.error):f())))}function h(t){c=e.createElement(t?"script":"iframe"),t||(c.setAttribute("style","display:block;width:0;height:0;border:0;visibility:hidden"),c.setAttribute("aria-hidden",!0)),c.src=a+"partytown-"+(t?"atomics.js?v=0.7.6":"sandbox-sw.html?"+Date.now()),e.body.appendChild(c)}function f(n,r){for(w(),i==t&&(o.forward||[]).map((function(e){delete t[e.split(".")[0]]})),n=0;n<s.length;n++)(r=e.createElement("script")).innerHTML=s[n].innerHTML,e.head.appendChild(r);c&&c.parentNode.removeChild(c)}function w(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(".").map((function(e,n,i){p=p[i[n]]=n+1<i.length?"push"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),"complete"==e.readyState?u():(t.addEventListener("DOMContentLoaded",u),t.addEventListener("load",u))}(window,document,navigator,top,window.crossOriginIsolated);')},92618:function(e,t,n){"use strict";var r=n(65438),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},92735:function(e,t,n){"use strict";var r=n(96893),o=n(74418),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},92860:function(e,t,n){"use strict";var r=n(49120),o=n(74418),i=n(90346),a=n(64466).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},93754:function(e,t,n){"use strict";var r=n(64466).f,o=n(74418),i=n(4282)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},94417:function(e,t,n){"use strict";var r=n(96893),o=n(64466),i=n(39123);e.exports=function(e,t,n){r?o.f(e,t,i(0,n)):e[t]=n}},95309:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(17545),o=n(2474);function i(e,t){if(t&&("object"==(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},95458:function(e,t,n){"use strict";var r=n(4282),o=n(77065),i=n(64466).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},95483:function(e,t,n){"use strict";n(95458)("flat")},95586:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(55458),o=n(27792),i=function(){var e,t,n,i,a,s,u,c=(0,r.xY)(),l=c.currentEvent,f=c.visitorId,d=null!==(e=null==l||null===(t=l.ip_info)||void 0===t||null===(n=t.v4)||void 0===n?void 0:n.geolocation)&&void 0!==e?e:null==l||null===(i=l.ip_info)||void 0===i||null===(a=i.v6)||void 0===a?void 0:a.geolocation,p=null==d||null===(s=d.country_code)||void 0===s?void 0:s.toUpperCase(),v=null==d||null===(u=d.country_name)||void 0===u?void 0:u.toUpperCase(),h=p?(0,o.HQ)(p):o.Tp.AMER;return{userRegion:p,userCountry:v,countryRegion:h,visitorId:f,isEuUser:h===o.Tp.EMEA}}},95691:function(e,t,n){"use strict";var r=n(38689),o=n(16881);e.exports=function(e){if("Function"===r(e))return o(e)}},95726:function(e,t,n){var r=n(70645);function o(){var t,n,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function u(e,o,i,a){var s=o&&o.prototype instanceof l?o:l,u=Object.create(s.prototype);return r(u,"_invoke",function(e,r,o){var i,a,s,u=0,l=o||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return i=e,a=0,s=t,d.n=n,c}};function p(e,r){for(a=e,s=r,n=0;!f&&u&&!o&&n<l.length;n++){var o,i=l[n],p=d.p,v=i[2];e>3?(o=v===r)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=e<2&&p<i[1])?(a=0,d.v=r,d.n=i[1]):p<v&&(o=e<3||i[0]>r||r>v)&&(i[4]=e,i[5]=r,d.n=v,a=0))}if(o||e>1)return c;throw f=!0,r}return function(o,l,v){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,v),a=l,s=v;(n=a<2?t:s)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,s)):d.n=s:d.v=s);try{if(u=2,i){if(a||(o="next"),n=i[o]){if(!(n=n.call(i,s)))throw TypeError("iterator result is not an object");
2if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=i.return)&&n.call(i),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((n=(f=d.n<0)?s:e.call(r,d))!==c)break}catch(n){i=t,a=1,s=n}finally{u=1}}return{value:n,done:f}}}(e,i,a),!0),u}var c={};function l(){}function f(){}function d(){}n=Object.getPrototypeOf;var p=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),v=d.prototype=l.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,r(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e}return f.prototype=d,r(v,"constructor",d),r(d,"constructor",f),f.displayName="GeneratorFunction",r(d,s,"GeneratorFunction"),r(v),r(v,s,"Generator"),r(v,a,function(){return this}),r(v,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:u,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},95976:function(e,t,n){"use strict";var r=n(5234),o=n(79117).RegExp,i=r(function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),a=i||r(function(){return!o("a","y").sticky}),s=i||r(function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")});e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},96488:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:function(){return r}})},96691:function(e,t,n){"use strict";n.d(t,{N_:function(){return o.N_},eF:function(){return a.Script},G:function(){return i.G},oo:function(){return o.oo},GR:function(){return i.GR},Fe:function(){return o.Fe}});var r=n(60890),o=(n(69746),n(9864),n(50145)),i=n(85033);n(14041),n(50767),n(91613);var a=n(59340);r.Ay.enqueue},96893:function(e,t,n){"use strict";var r=n(5234);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},97509:function(e,t,n){"use strict";var r=n(14188),o=n(64466),i=n(74530),a=n(14798);e.exports=function(e,t,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&i(n,c,s),s.global)u?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(l){}u?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},97611:function(e,t,n){"use strict";var r=n(76744),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},97964:function(e,t,n){"use strict";var r=n(3770),o=n(91361),i=n(44318),a=n(4282)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||i(n=r(s)[a])?t:o(n)}},98060:function(e,t,n){"use strict";var r=n(79117).navigator,o=r&&r.userAgent;e.exports=o?String(o):""},98657:function(e,t,n){"use strict";var r=n(74418),o=n(73168),i=n(9304),a=n(64466);e.exports=function(e,t,n){for(var s=o(t),u=a.f,c=i.f,l=0;l<s.length;l++){var f=s[l];r(e,f)||n&&r(n,f)||u(e,f,c(t,f))}}},98752:function(e,t,n){"use strict";n(95458)("flatMap")},99436:function(e){function t(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise(function(o,i){var a=e.apply(n,r);function s(e){t(a,o,i,s,u,"next",e)}function u(e){t(a,o,i,s,u,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports}},function(e){e.O(0,[1869,6593],function(){return t=41568,e(e.s=t);var t});e.O()}]); 3//# sourceMappingURL=app-f4b42ad52eb996503618.js.map
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.