!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4446e132-18af-4509-a4b9-764c5d19ef0b",e._sentryDebugIdIdentifier="sentry-dbid-4446e132-18af-4509-a4b9-764c5d19ef0b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{72217:function(e,t,n){"use strict";n.d(t,{fy:function(){return Nn}});var r={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},i=function(e){for(var t=[],n=1;n>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,k)}function x(e){return 0!==e&&100*Math.random()<=e}function E(){}function C(e,t,n){if("object"!==typeof e||null===e)return JSON.stringify(e);var r=T(Object.prototype),i=T(Array.prototype),o=T(Object.getPrototypeOf(e)),a=T(e);try{return JSON.stringify(e,t,n)}catch(Yt){return""}finally{r(),i(),o(),a()}}function T(e){var t=e,n=t.toJSON;return n?(delete t.toJSON,function(){t.toJSON=n}):E}function I(e,t){return-1!==e.indexOf(t)}function O(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach((function(e){return t.push(e)}));else for(var n=0;n=0&&e<=100}function R(e){return Object.keys(e).map((function(t){return e[t]}))}function N(e){return 0===Object.keys(e).length}function D(e,t){return e.slice(0,t.length)===t}function P(e,t,n){void 0===n&&(n="");var r=e.charCodeAt(t-1),i=r>=55296&&r<=56319?t+1:t;return e.length<=i?e:"".concat(e.slice(0,i)).concat(n)}function L(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function M(e,t,n){if(void 0===n&&(n=function(){if("undefined"!==typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var n=e.has(t);return n||e.add(t),n}}}var t=[];return{hasAlreadyBeenSeen:function(e){var n=t.indexOf(e)>=0;return n||t.push(e),n}}}()),void 0===t)return e;if("object"!==typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var i=Array.isArray(e)?e:[],o=0;ot)){for(;o.length>0&&ct){G(t,"truncated",e);break}u.target[d]=f}else for(var d in u.source)if(Object.prototype.hasOwnProperty.call(u.source,d)){var f;if(void 0!==(f=W(u.source[d],u.path,d,o,a))&&(c+=JSON.stringify(f).length+l+d.length+3,l=1),c>t){G(t,"truncated",e);break}u.target[d]=f}}return r(),i(),s}G(t,"discarded",e)}function W(e,t,n,r,i){var o=function(e){var t=e;if(t&&"function"===typeof t.toJSON)try{return t.toJSON()}catch(Yt){}return e}(e);if(!o||"object"!==typeof o)return function(e){if("bigint"===typeof e)return"[BigInt] ".concat(e.toString());if("function"===typeof e)return"[Function] ".concat(e.name||"unknown");if("symbol"===typeof e)return"[Symbol] ".concat(e.description||e.toString());return e}(o);var a=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(Yt){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a)return a;var s=e;if(i.has(s))return"[Reference seen at ".concat(i.get(s),"]");var c=void 0!==n?"".concat(t,".").concat(n):t,u=Array.isArray(o)?[]:{};return i.set(s,c),r.push({source:o,target:u,path:c}),u}function G(e,t,n){i.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}function Z(e,t){void 0===t&&(t=$);var n,r={},o=!1,a=S((function(r){n=t(C(r)),o||(o=function(e,t){return e>3072&&(i.warn("The ".concat(t," data is over ").concat(3,"KiB. On low connectivity, the SDK has the potential to exhaust the user's upload bandwidth.")),!0)}(n,e))}),200).throttled;return{getBytesCount:function(){return n},get:function(){return r},add:function(e,t){r[e]=t,a(r)},remove:function(e){delete r[e],a(r)},set:function(e){a(r=e)},getContext:function(){return F(r)},setContext:function(e){r=q(U.SANITIZE_INPUTS)?V(e):F(e),a(r)},setContextProperty:function(e,t){r[e]=q(U.SANITIZE_INPUTS)?V(t):F(t),a(r)},removeContextProperty:function(e){delete r[e],a(r)},clearContext:function(){r={},n=0}}}var X,Q=function(){function e(){this.buffer=[]}return e.prototype.add=function(e){this.buffer.push(e)>500&&this.buffer.splice(0,1)},e.prototype.drain=function(){this.buffer.forEach((function(e){return e()})),this.buffer.length=0},e}();function Y(){return(new Date).getTime()}function J(){return Y()}function K(){return performance.now()}function ee(){return{relative:K(),timeStamp:J()}}function te(){return void 0===X&&(X=performance.timing.navigationStart),X}function ne(){var e=h().DatadogEventBridge;if(e)return{getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n){e.send(JSON.stringify({eventType:t,event:n}))}}}function re(e){var t;void 0===e&&(e=null===(t=h().location)||void 0===t?void 0:t.hostname);var n=ne();return!!n&&n.getAllowedWebViewHosts().some((function(t){return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r);var n,r}))}function ie(e){var t=w({},e);return["id","name","email"].forEach((function(e){e in t&&(t[e]=String(t[e]))})),t}var oe,ae;function se(e,t,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires=".concat(i.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",c=r&&r.secure?";secure":"";document.cookie="".concat(e,"=").concat(t,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(c)}function ce(e){return function(e,t){var n=new RegExp("(?:^|;)\\s*".concat(t,"\\s*=\\s*([^;]+)")).exec(e);return n?n[1]:void 0}(document.cookie,e)}function ue(e,t){se(e,"",0,t)}function le(e){return de(e,function(e){if(e.origin)return e.origin;var t=e.host.replace(/(:80|:443)$/,"");return"".concat(e.protocol,"//").concat(t)}(window.location)).href}function de(e,t){if(function(){if(void 0!==ae)return ae;try{var e=new URL("http://test/path");return ae="http://test/path"===e.href}catch(Yt){ae=!1}return ae}())try{return void 0!==t?new URL(e,t):new URL(e)}catch(o){throw new Error("Failed to construct URL. ".concat(C({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw new Error("Invalid URL: '".concat(e,"'"));var n=document,r=n.createElement("a");if(void 0!==t){var i=(n=document.implementation.createHTMLDocument("")).createElement("base");i.href=t,n.head.appendChild(i),n.body.appendChild(r)}return r.href=e,r}var fe="datadoghq.com",pe="ap1.datadoghq.com",he={logs:"logs",rum:"rum",sessionReplay:"session-replay"},me={logs:"logs",rum:"rum",sessionReplay:"replay"};function ge(e,t,n){var r=function(e,t){var n="/api/v2/".concat(me[t]),r=e.proxy,i=e.proxyUrl;if(r){var o=le(r);return function(e){return"".concat(o,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(e)))}}var a=function(e,t){var n=e.site,r=void 0===n?fe:n,i=e.internalAnalyticsSubdomain;if(i&&r===fe)return"".concat(i,".").concat(fe);var o=r.split("."),a=o.pop(),s=r!==pe?"".concat(he[t],"."):"";return"".concat(s,"browser-intake-").concat(o.join("-"),".").concat(a)}(e,t);if(void 0===r&&i){var s=le(i);return function(e){return"".concat(s,"?ddforward=").concat(encodeURIComponent("https://".concat(a).concat(n,"?").concat(e)))}}return function(e){return"https://".concat(a).concat(n,"?").concat(e)}}(e,t);return{build:function(i,o,a){var s=function(e,t,n,r,i,o){var a=e.clientToken,s=e.internalAnalyticsSubdomain,c=["sdk_version:".concat("4.38.0"),"api:".concat(r)].concat(n);i&&q(U.COLLECT_FLUSH_REASON)&&c.push("flush_reason:".concat(i));o&&c.push("retry_count:".concat(o.count),"retry_after:".concat(o.lastFailureStatus));var u=["ddsource=browser","ddtags=".concat(encodeURIComponent(c.join(","))),"dd-api-key=".concat(a),"dd-evp-origin-version=".concat(encodeURIComponent("4.38.0")),"dd-evp-origin=browser","dd-request-id=".concat(k())];"rum"===t&&u.push("batch_time=".concat(J()));s&&u.reverse();return u.join("&")}(e,t,n,i,o,a);return r(s)},urlPrefix:r(""),endpointType:t}}var ye=/[^a-z0-9_:./-]/;function ve(e,t){var n=200-e.length-1;(t.length>n||ye.test(t))&&i.warn("".concat(e," value doesn't meet tag requirements and will be sanitized"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}function _e(e){var t=function(e){var t=e.env,n=e.service,r=e.version,i=e.datacenter,o=[];return t&&o.push(ve("env",t)),n&&o.push(ve("service",n)),r&&o.push(ve("version",r)),i&&o.push(ve("datacenter",i)),o}(e),n=function(e,t){return{logsEndpointBuilder:ge(e,"logs",t),rumEndpointBuilder:ge(e,"rum",t),sessionReplayEndpointBuilder:ge(e,"sessionReplay",t)}}(e,t),r=R(n).map((function(e){return e.urlPrefix})),i=function(e,t,n){if(!e.replica)return;var r=w({},e,{site:fe,clientToken:e.replica.clientToken}),i={logsEndpointBuilder:ge(r,"logs",n),rumEndpointBuilder:ge(r,"rum",n)};return t.push.apply(t,R(i).map((function(e){return e.urlPrefix}))),w({applicationId:e.replica.applicationId},i)}(e,r,t);return w({isIntakeUrl:function(e){return r.some((function(t){return 0===e.indexOf(t)}))},replica:i,site:e.site||fe},n)}function be(e){var t,n,r;if(e&&e.clientToken){var a=null!==(t=e.sessionSampleRate)&&void 0!==t?t:e.sampleRate;if(void 0===a||A(a))if(void 0===e.telemetrySampleRate||A(e.telemetrySampleRate)){if(void 0===e.telemetryConfigurationSampleRate||A(e.telemetryConfigurationSampleRate))return Array.isArray(e.enableExperimentalFeatures)&&e.enableExperimentalFeatures.filter((function(e){return t=U,n=e,Object.keys(t).some((function(e){return t[e]===n}));var t,n})).forEach((function(e){z.add(e)})),w({beforeSend:e.beforeSend&&o(e.beforeSend,"beforeSend threw an error:"),cookieOptions:Se(e),sessionSampleRate:null!==a&&void 0!==a?a:100,telemetrySampleRate:null!==(n=e.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=e.telemetryConfigurationSampleRate)&&void 0!==r?r:5,service:e.service,silentMultipleInit:!!e.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},_e(e));i.error("Telemetry Configuration Sample Rate should be a number between 0 and 100")}else i.error("Telemetry Sample Rate should be a number between 0 and 100");else i.error("Session Sample Rate should be a number between 0 and 100")}else i.error("Client Token is not configured, we will not send any data.")}function Se(e){var t={};return t.secure=function(e){return!!e.useSecureSessionCookie||!!e.useCrossSiteSessionCookie}(e),t.crossSite=!!e.useCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=function(){if(void 0===oe){for(var e="dd_site_test_".concat(k()),t=window.location.hostname.split("."),n=t.pop();t.length&&!ce(e);)n="".concat(t.pop(),".").concat(n),se(e,"test",_,{domain:n});ue(e,{domain:n}),oe=n}return oe}()),t}var we="?";function ke(e){var t=[],n=Ne(e,"stack"),r=String(e);return n&&D(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((function(e){var n=function(e){var t=Ce.exec(e);if(!t)return;var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),i=Te.exec(t[2]);r&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]);return{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||we,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}(e)||function(e){var t=Ie.exec(e);if(!t)return;return{args:[],column:t[3]?+t[3]:void 0,func:we,line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=Oe.exec(e);if(!t)return;return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||we,line:+t[3],url:t[2]}}(e)||function(e){var t=Ae.exec(e);if(!t)return;var n=t[3]&&t[3].indexOf(" > eval")>-1,r=Re.exec(t[3]);n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0);return{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||we,line:t[4]?+t[4]:void 0,url:t[3]}}(e);n&&(!n.func&&n.line&&(n.func=we),t.push(n))})),{message:Ne(e,"message"),name:Ne(e,"name"),stack:t}}var xe="((?:file|https?|blob|chrome-extension|native|eval|webpack||\\w+\\.|\\/).*?)",Ee="(?::(\\d+))",Ce=new RegExp("^\\s*at (.*?) ?\\(".concat(xe).concat(Ee,"?").concat(Ee,"?\\)?\\s*$"),"i"),Te=new RegExp("\\((\\S*)".concat(Ee).concat(Ee,"\\)"));var Ie=new RegExp("^\\s*at ?".concat(xe).concat(Ee,"?").concat(Ee,"??\\s*$"),"i");var Oe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Ae=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Re=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Ne(e,t){if("object"===typeof e&&e&&t in e){var n=e[t];return"string"===typeof n?n:void 0}}var De="agent",Pe="console",Le="logger",Me="network",Fe="source",je="report";function Ue(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,i=e.startClocks,o=e.nonErrorPrefix,a=e.source,s=e.handling;if(!t||void 0===t.message&&!(n instanceof Error)){var c=q(U.SANITIZE_INPUTS)?V(n):n;return{startClocks:i,source:a,handling:s,originalError:c,message:"".concat(o," ").concat(C(c)),stack:"No stack, consider using an instance of Error",handlingStack:r,type:t&&t.name}}return{startClocks:i,source:a,handling:s,originalError:n,message:t.message||"Empty message",stack:Be(t),handlingStack:r,type:t.name,causes:qe(n,a)}}function Be(e){var t=$e(e);return e.stack.forEach((function(e){var n="?"===e.func?"":e.func,r=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",i=e.line?":".concat(e.line):"",o=e.line&&e.column?":".concat(e.column):"";t+="\n at ".concat(n).concat(r," @ ").concat(e.url).concat(i).concat(o)})),t}function $e(e){return"".concat(e.name||"Error",": ").concat(e.message)}function ze(){var e,t=new Error;if(!t.stack)try{throw t}catch(n){}return f((function(){var n=ke(t);n.stack=n.stack.slice(2),e=Be(n)})),e}function qe(e,t){for(var n=e,r=[];(null===n||void 0===n?void 0:n.cause)instanceof Error&&r.length<10;){var i=ke(n.cause);r.push({message:n.cause.message,source:t,type:null===i||void 0===i?void 0:i.name,stack:i&&Be(i)}),n=n.cause}return r.length?r:void 0}var He=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(e),{unsubscribe:function(){t.observers=t.observers.filter((function(t){return e!==t})),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach((function(t){return t(e)}))},e}();function Ve(){for(var e=[],t=0;t=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Ke={debug:"debug",error:"error",info:"info",warn:"warn"},et="console",tt="http",nt=Object.keys(Ke),rt=function(){function e(e,t,n,r,i){void 0===n&&(n=tt),void 0===r&&(r=Ke.debug),void 0===i&&(i={}),this.handleLogStrategy=e,this.handlerType=n,this.level=r,this.contextManager=Z("logger context"),this.contextManager.set(w({},i,t?{logger:{name:t}}:void 0))}return e.prototype.log=function(e,t,n,r){var i;if(void 0===n&&(n=Ke.info),n===Ke.error&&(i={origin:Le}),void 0!==r&&null!==r){var o=Ue({stackTrace:r instanceof Error?ke(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:Le,handling:"handled",startClocks:ee()});i={origin:Le,stack:o.stack,kind:o.type,message:o.message}}var a=q(U.SANITIZE_INPUTS)?V(t):F(t),s=i?j({error:i},a):a;this.handleLogStrategy({message:q(U.SANITIZE_INPUTS)?V(e):e,context:s,status:n},this)},e.prototype.debug=function(e,t,n){this.log(e,t,Ke.debug,n)},e.prototype.info=function(e,t,n){this.log(e,t,Ke.info,n)},e.prototype.warn=function(e,t,n){this.log(e,t,Ke.warn,n)},e.prototype.error=function(e,t,n){this.log(e,t,Ke.error,n)},e.prototype.setContext=function(e){this.contextManager.set(e)},e.prototype.getContext=function(){return this.contextManager.get()},e.prototype.addContext=function(e,t){this.contextManager.add(e,t)},e.prototype.removeContext=function(e){this.contextManager.remove(e)},e.prototype.setHandler=function(e){this.handlerType=e},e.prototype.getHandler=function(){return this.handlerType},e.prototype.setLevel=function(e){this.level=e},e.prototype.getLevel=function(){return this.level},Je([l],e.prototype,"log",null),e}();function it(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}var ot={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function at(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||ce("datadog-synthetics-injects-rum"))}function st(){var e=window._DATADOG_SYNTHETICS_PUBLIC_ID||ce("datadog-synthetics-public-id");return"string"===typeof e?e:void 0}function ct(){var e=window._DATADOG_SYNTHETICS_RESULT_ID||ce("datadog-synthetics-result-id");return"string"===typeof e?e:void 0}var ut,lt="log",dt="configuration",ft=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","http://localhost",""],pt=["ddog-gov.com"],ht={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function mt(e,t){var n,r=new He;return ht.telemetryEnabled=!I(pt,t.site)&&x(t.telemetrySampleRate),ht.telemetryConfigurationEnabled=ht.telemetryEnabled&&x(t.telemetryConfigurationSampleRate),ut=function(t){if(ht.telemetryEnabled){var i=function(e,t){return j({type:"telemetry",date:J(),service:e,version:"4.38.0",source:"browser",_dd:{format_version:2},telemetry:t,experimental_features:O(H())},void 0!==n?n():{})}(e,t);r.notify(i),it("telemetry",i)}},a=gt,w(ht,{maxEventsPerPage:t.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(e){n=e},observable:r,enabled:ht.telemetryEnabled}}function gt(e){yt(w({type:lt,status:"error"},function(e){if(e instanceof Error){var t=ke(e);return{error:{kind:t.name,stack:Be(vt(t))},message:t.message}}return{error:{stack:"Not an instance of error"},message:"Uncaught ".concat(C(e))}}(e)))}function yt(e){ut&&ht.sentEventCount=this.messageBytesLimit?i.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB.")):(this.hasMessageFor(t)&&this.remove(t),this.willReachedBytesLimitWith(o)&&this.flush("batch_bytes_limit"),this.push(r,o,t),this.isFull()&&this.flush("batch_bytes_limit"))},e.prototype.process=function(e){var t=C(e);return{processedMessage:t,messageBytesCount:$(t)}},e.prototype.push=function(e,t,n){this.bufferMessagesCount>0&&(this.bufferBytesCount+=1),void 0!==n?this.upsertBuffer[n]=e:this.pushOnlyBuffer.push(e),this.bufferBytesCount+=t,this.bufferMessagesCount+=1},e.prototype.remove=function(e){var t=this.upsertBuffer[e];delete this.upsertBuffer[e];var n=$(t);this.bufferBytesCount-=n,this.bufferMessagesCount-=1,this.bufferMessagesCount>0&&(this.bufferBytesCount-=1)},e.prototype.hasMessageFor=function(e){return void 0!==e&&void 0!==this.upsertBuffer[e]},e.prototype.willReachedBytesLimitWith=function(e){return this.bufferBytesCount+e+1>=this.batchBytesLimit},e.prototype.isFull=function(){return this.bufferMessagesCount===this.batchMessagesLimit||this.bufferBytesCount>=this.batchBytesLimit},e.prototype.flushPeriodically=function(){var e=this;g((function(){e.flush("batch_duration_limit"),e.flushPeriodically()}),this.flushTimeout)},e}(),bt=3145728;function St(e,t,n,r,i){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?kt(e,t,n,{onSuccess:function(){return xt(0,t,n,r,i)},onFailure:function(){t.queuedPayloads.enqueue(e),wt(t,n,r,i)}}):t.queuedPayloads.enqueue(e)}function wt(e,t,n,r){2===e.transportStatus&&g((function(){kt(e.queuedPayloads.first(),e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=1e3,xt(1,e,t,n,r)},onFailure:function(){e.currentBackoffTime=Math.min(6e4,2*e.currentBackoffTime),wt(e,t,n,r)}})}),e.currentBackoffTime)}function kt(e,t,n,r){var i=r.onSuccess,o=r.onFailure;t.bandwidthMonitor.add(e),n(e,(function(n){t.bandwidthMonitor.remove(e),!function(e){return"opaque"!==e.type&&(0===e.status&&!navigator.onLine||408===e.status||429===e.status||e.status>=500)}(n)?(t.transportStatus=0,i()):(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},o())}))}function xt(e,t,n,r,i){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(3,"MiB"),source:De,startClocks:ee()}),t.queueFullReported=!0);var o=t.queuedPayloads;for(t.queuedPayloads=Et();o.size()>0;)St(o.dequeue(),t,n,r,i)}function Et(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=bt}}}function Ct(e,t,n){var r={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:Et(),queueFullReported:!1},i=function(n,r){return function(e,t,n,r){var i=n.data,o=n.bytesCount,a=n.flushReason,s=n.retry;if(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(n){return!1}}()&&o=0&&n.entries.splice(e,1)},close:function(e){r.endTime=e}};return this.entries.unshift(r),r},e.prototype.find=function(e){void 0===e&&(e=At);for(var t=0,n=this.entries;t0&&this.entries[this.entries.length-1].endTime=100)zt();else{var r,i=Vt();if(Bt()){if(i.lock)return void $t(e,t);if(r=k(),i.lock=r,Ht(i,e.options),(i=Vt()).lock!==r)return void $t(e,t)}var o=e.process(i);if(Bt()&&(i=Vt()).lock!==r)$t(e,t);else{if(o&&qt(o,e.options),Bt()&&(!o||!Gt(o))){if((i=Vt()).lock!==r)return void $t(e,t);delete i.lock,Ht(i,e.options),o=i}null===(n=e.after)||void 0===n||n.call(e,o||i),zt()}}else jt.push(e)}function Bt(){return!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent)}function $t(e,t){g((function(){Ut(e,t+1)}),10)}function zt(){Nt=void 0;var e=jt.shift();e&&Ut(e)}function qt(e,t){Gt(e)?Wt(t):(e.expire=String(Y()+Pt),Ht(e,t))}function Ht(e,t){se(Ft,function(e){return(t=e,Object.keys(t).map((function(e){return[e,t[e]]}))).map((function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)})).join(Mt);var t}(e),Pt,t)}function Vt(){var e=ce(Ft),t={};return function(e){return void 0!==e&&(-1!==e.indexOf(Mt)||Lt.test(e))}(e)&&e.split(Mt).forEach((function(e){var n=Lt.exec(e);if(null!==n){var r=n[1],i=n[2];t[r]=i}})),t}function Wt(e){ue(Ft,e)}function Gt(e){return N(e)}function Zt(e,t,n){var r=new He,i=new He,o=y((function(){Ut({options:e,process:function(e){return u(e)?void 0:{}},after:s})}),1e3),a=function(){var e=Vt();if(u(e))return e;return{}}();function s(e){return u(e)||(e={}),c()&&(!function(e){return a.id!==e.id||a[t]!==e[t]}(e)?a=e:(a={},i.notify())),e}function c(){return void 0!==a[t]}function u(e){return(void 0===e.created||Y()-Number(e.created)=en[n.getLevel()]&&I(i,t)}function nn(e,t,n,r,i,o){var a=nt.concat(["custom"]),s={};a.forEach((function(e){s[e]=function(e,t,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&g((function(){r=0}),b),(r+=1)<=t||i)return i=!1,!1;if(r===t+1){i=!0;try{n({message:"Reached max number of ".concat(e,"s by minute: ").concat(t),source:De,startClocks:ee()})}finally{i=!1}}return!0}}}(e,t.eventRateLimiterThreshold,o)})),n.subscribe(0,(function(o){var a,c,u,l=o.rawLogsEvent,d=o.messageContext,f=void 0===d?void 0:d,p=o.savedCommonContext,h=void 0===p?void 0:p,m=o.logger,g=void 0===m?i:m,y=l.date-te(),v=e.findTrackedSession(y);if(v){var _=h||r(),b=j({service:t.service,session_id:v.id,usr:N(_.user)?void 0:_.user,view:_.view},_.context,on(y),l,g.getContext(),f);!tn(l.status,tt,g)||!1===(null===(a=t.beforeSend)||void 0===a?void 0:a.call(t,b))||(null===(c=b.error)||void 0===c?void 0:c.origin)!==De&&(null!==(u=s[b.status])&&void 0!==u?u:s.custom).isLimitReached()||n.notify(1,b)}}))}var rn=!1;function on(e){var t=window;if(at()){var n=i(t.DD_RUM_SYNTHETICS);return n||rn||(rn=!0,function(e,t){p(r.debug,e,t),yt(w({type:lt,message:e,status:"debug"},t))}("Logs sent before RUM is injected by the synthetics worker",{testId:st(),resultId:ct()})),n}return i(t.DD_RUM);function i(t){if(t&&t.getInternalContext)return t.getInternalContext(e)}}var an,sn={};function cn(e){var t=e.map((function(e){return sn[e]||(sn[e]=function(e){var t=new He((function(){var n=console[e];return console[e]=function(){for(var r=[],i=0;i=500}(r)||("xhr"in r?function(e,t,n){"string"===typeof e.response?n(Cn(e.response,t)):n(e.response)}(r.xhr,e,i):r.response?function(e,t,n){var r=function(e){try{return e.clone()}catch(t){return}}(e);r&&r.body?window.TextDecoder?function(e,t,n){!function(e,t,n){var r=e.getReader(),i=[],o=0;function a(){var e,a;if(r.cancel().catch(E),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var c=0;i.forEach((function(e){s.set(e,c),c+=e.length}))}e=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}t(void 0,e,a)}!function e(){r.read().then(d((function(t){t.done?a():(n.collectStreamBody&&i.push(t.value),(o+=t.value.length)>n.bytesLimit?a():e())})),d((function(e){return t(e)})))}()}(e,(function(e,t,r){if(e)n(e);else{var i=(new TextDecoder).decode(t);r&&(i+="..."),n(void 0,i)}}),{bytesLimit:t,collectStreamBody:!0})}(r.body,t.requestErrorResponseLengthLimit,(function(e,t){n(e?"Unable to retrieve response: ".concat(e):t)})):r.text().then(d((function(e){return n(Cn(e,t))})),d((function(e){return n("Unable to retrieve response: ".concat(e))}))):n()}(r.response,e,i):r.error&&function(e,t,n){n(Cn(Be(ke(e)),t))}(r.error,e,i))}return{stop:function(){n.unsubscribe(),r.unsubscribe()}}}function Cn(e,t){return e.length>t.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}function Tn(e){return"xhr"===e?"XHR":"Fetch"}var In=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function On(e){var t=function(e){return mn(window,"onerror",{before:function(t,n,r,i,o){var a;if(o)a=ke(o),e(a,o);else{var s,c={url:n,column:i,line:r},u=t;if("[object String]"==={}.toString.call(t)){var l=In.exec(u);l&&(s=l[1],u=l[2])}e(a={name:s,message:"string"===typeof u?u:void 0,stack:[c]},t)}}})}(e).stop,n=function(e){return mn(window,"onunhandledrejection",{before:function(t){var n=t.reason||"Empty reason",r=ke(n);e(r,n)}})}(e).stop;return{stop:function(){t(),n()}}}function An(e,t){if(!e.forwardErrorsToLogs)return{stop:E};var n,r=new He,i=(n=r,On((function(e,t){n.notify(Ue({stackTrace:e,originalError:t,startClocks:ee(),nonErrorPrefix:"Uncaught",source:Fe,handling:"unhandled"}))}))).stop,o=r.subscribe((function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:{kind:e.type,origin:Fe,stack:e.stack},origin:Fe,status:Ke.error}})}));return{stop:function(){i(),o.unsubscribe()}}}var Rn=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var n=this.callbacks[e];n&&n.forEach((function(e){return e(t)}))},e.prototype.subscribe=function(e,t){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter((function(e){return t!==e}))}}},e}();var Nn=function(e){var t=!1,n=Z("global context"),o=Z("user"),a={},s=function(){},c=new Q,l=function(e,t,n,r){void 0===n&&(n=F(h())),void 0===r&&(r=J()),c.add((function(){return l(e,t,n,r)}))},f=function(){},p=new rt((function(){for(var e=[],t=0;tp)&&(U=(z=z.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],0= 24 chars long")}catch(e){} return{pv_id:n,ctx_id:o,intra:r,store_last_response:a,force_xhr:i}}(o[0],o[3]),p=f.pv_id||h(), "init"==o[0]&&!c)){if(c=f.ctx_id||h(),"string"!=typeof o[1]||!/^http/.test(o[1]))throw new Error( "init must include an et host url");if(s=String(o[1]).replace(/([^\/])$/,"$1/"), "string"!=typeof o[2])throw new Error("init must include a source app name");_=o[2]}var i=o.length-1 ;(e=o[i]&&"object"==typeof o[i]?o[i]:e)||/init/.test(o[0])?e&&!e.subject&&console.warn( "event data {} must include a subject"):console.warn( "when invoked without 'init' or 'pageinit', nyt_et() must include a event data"),s&&e&&e.subject&&( i=e.subject,delete e.subject,n="page_exit"==i||"ob_click"==(e.eventData||{}).type, t="page"==i||"page_soft"==i?p:h(),u.push({context_id:c,pageview_id:p,event_id:t,client_lib:"v1.3.0", sourceApp:_,intranet:f.intra?1:void 0,subject:i,how:n&&g&&y?"beacon_ios":v,client_ts:+new Date, data:JSON.parse(JSON.stringify(e))}),"send"==o[0]||t==p||n?r(n):("soon"==o[0]&&(clearTimeout(d), d=setTimeout(r,200)),d=d||setTimeout(r,5500)))},a.nyt_et.get_pageview_id=function(){return p}, a.nyt_et.get_context_id=function(){return c},a.nyt_et.get_host=function(){return s}, a.nyt_et.get_last_send_response=function(){var e=l;return e&&(l=null),e}}(window); `},94034:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getViSharedContext=void 0;t.getViSharedContext=function(){var e,t,n,r,i,o,a,s,c="https://myaccount.stg.nytimes.com",u={env:"",authHost:c};if("object"===typeof window){var l=null===(t=null===(e=null===window||void 0===window?void 0:window.__preloadedData)||void 0===e?void 0:e.config)||void 0===t?void 0:t.gqlRequestHeaders;u.env=(null===(r=null===(n=null===window||void 0===window?void 0:window.vi)||void 0===n?void 0:n.env)||void 0===r?void 0:r.ENVIRONMENT)||"",u.authHost=(null===(o=null===(i=null===window||void 0===window?void 0:window.vi)||void 0===i?void 0:i.env)||void 0===o?void 0:o.AUTH_HOST)||c,u.appType=null===l||void 0===l?void 0:l["nyt-app-type"],u.appVersion=null===l||void 0===l?void 0:l["nyt-app-version"],u.samizdatToken=null===l||void 0===l?void 0:l["nyt-token"],u.entitlementsHeader=null===l||void 0===l?void 0:l["x-nyt-entitlements"],u.abTestHeader=null===l||void 0===l?void 0:l["x-nyt-programming-abtest"],u.meterOverrideHeader=null===l||void 0===l?void 0:l["x-nyt-internal-meter-override"],u.pageViewID=(null===(a=null===window||void 0===window?void 0:window.NYTD)||void 0===a?void 0:a.PageViewId)||{current:0},u.abra=null===(s=null===window||void 0===window?void 0:window.NYTD)||void 0===s?void 0:s.Abra,u.sentry=null===window||void 0===window?void 0:window.Sentry}return u}},3093:function(e,t,n){"use strict";var r=n(34155),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var r=e(t),a=0;a=0&&e.indexOf(t,n)===n}(w,f)}return!1}function l(e){return Object.keys(e).filter(d,e)}function d(e){return void 0!==this[e]}var f="{ [native code] }";function p(e,t){var n=s.get(e);if(n){if(n.has(t))return!0}else s.set(e,n=new Set);return n.add(t),!1}},67558:function(e,t){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t,n,r){void 0===r&&(r=408);var i=e.call(this,t)||this;return i.timeout=n,i.statusCode=r,i}return n(t,e),t}(Error);t.default=r},10984:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=t,t.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(e){this.ms=e},t.prototype.setMax=function(e){this.max=e},t.prototype.setJitter=function(e){this.jitter=e}},76489:function(e,t){"use strict";t.parse=function(e,t){if("string"!==typeof e)throw new TypeError("argument str must be a string");for(var r={},o=t||{},s=e.split(i),c=o.decode||n,u=0;uasync(t,n)=>{"string"===typeof t&&(t=(new r.TextEncoder).encode(t)),n={outputFormat:"hex",...n};const i=await r.crypto.subtle.digest(e,t);return"hex"===n.outputFormat?(e=>{const t=new DataView(e);let n="";for(let r=0;r=t?e:""+Array(t+1-r.length).join(n)+e},v={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(_=i),i||!r&&_},k=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},x=v;x.l=w,x.i=S,x.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=w(e.locale,null,!0),this.parse(e)}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return x},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return k(e)=0&&(o[d]=parseInt(l,10))}var f=o[3],p=24===f?0:f,h=o[0]+"-"+o[1]+"-"+o[2]+" "+p+":"+o[4]+":"+o[5]+":000",m=+t;return(i.utc(h).valueOf()-(m-=m%1e3))/6e4},c=r.prototype;c.tz=function(e,t){void 0===e&&(e=o);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:e}),s=Math.round((r-new Date(a))/1e3/60),c=i(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-s,!0);if(t){var u=c.utcOffset();c=c.add(n-u,"minute")}return c.$x.$timezone=e,c},c.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var u=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return u.call(this,e,t);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return u.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,a=n||t||o,c=s(+i(),a);if("string"!=typeof e)return i(e).tz(a);var u=function(e,t,n){var r=e-60*t*1e3,i=s(r,n);if(t===i)return[r,t];var o=s(r-=60*(i-t)*1e3,n);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(e,r).valueOf(),c,a),l=u[0],d=u[1],f=i(l).utcOffset(d);return f.$x.$timezone=a,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){o=e}}}()},7059:function(e,t,n){"use strict";n.d(t,{J9:function(){return K},_t:function(){return Y},wO:function(){return J},Ps:function(){return X},HW:function(){return Q}});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=t)break;n=a.index+a[0].length,r+=1}return{line:r,column:t+1-n}}function s(e){return c(e.source,a(e.source,e.start))}function c(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,c=t.column+s,l=`${e.name}:${a}:${c}\n`,d=r.split(/\r\n|[\n\r]/g),f=d[i];if(f.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let r=0;r["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return l+u([[a-1+" |",d[i-1]],[`${a} |`,f],["|","^".padStart(c)],[`${a+1} |`,d[i+1]]])}function u(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class l extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:s,positions:c,path:u,originalError:f,extensions:p}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!==u&&void 0!==u?u:void 0,this.originalError=null!==f&&void 0!==f?f:void 0,this.nodes=d(Array.isArray(o)?o:o?[o]:void 0);const h=d(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!==s&&void 0!==s?s:null===h||void 0===h||null===(r=h[0])||void 0===r?void 0:r.source,this.positions=null!==c&&void 0!==c?c:null===h||void 0===h?void 0:h.map((e=>e.start)),this.locations=c&&s?c.map((e=>a(s,e))):null===h||void 0===h?void 0:h.map((e=>a(e.source,e.start)));const m="object"==typeof(g=null===f||void 0===f?void 0:f.extensions)&&null!==g?null===f||void 0===f?void 0:f.extensions:void 0;var g;this.extensions=null!==(i=null!==p&&void 0!==p?p:m)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!==f&&void 0!==f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,l):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+s(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+c(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function d(e){return void 0===e||0===e.length?void 0:e}function f(e,t,n){return new l(`Syntax Error: ${n}`,{source:e,positions:[t]})}var p,h=n(72380);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(p||(p={}));var m,g=n(97359),y=n(87392),v=n(68297);!function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(m||(m={}));class _{constructor(e){const t=new h.WU(m.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==m.EOF)do{if(e.next)e=e.next;else{const t=C(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===m.COMMENT);return e}}function b(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function S(e,t){return w(e.charCodeAt(t))&&k(e.charCodeAt(t+1))}function w(e){return e>=55296&&e<=56319}function k(e){return e>=56320&&e<=57343}function x(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return m.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function E(e,t,n,r,i){const o=e.line,a=1+n-e.lineStart;return new h.WU(t,n,r,o,a,i)}function C(e,t){const n=e.source.body,r=n.length;let i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function L(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw f(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function M(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,a=o,s="";const c=[];for(;othis.parseValueLiteral(e)),m.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:g.h.OBJECT,fields:this.any(m.BRACE_L,(()=>this.parseObjectField(e)),m.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(m.COLON),this.node(t,{kind:g.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(m.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(m.AT),this.node(t,{kind:g.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(m.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(m.BRACKET_R),t=this.node(e,{kind:g.h.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(m.BANG)?this.node(e,{kind:g.h.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:g.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(m.STRING)||this.peek(m.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(m.BRACE_L,this.parseOperationTypeDefinition,m.BRACE_R);return this.node(e,{kind:g.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(m.COLON);const n=this.parseNamedType();return this.node(e,{kind:g.h.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:g.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:g.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(m.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(m.BRACE_L,this.parseFieldDefinition,m.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(m.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:g.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(m.PAREN_L,this.parseInputValueDef,m.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(m.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(m.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:g.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:g.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:g.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(m.EQUALS)?this.delimitedMany(m.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:g.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(m.BRACE_L,this.parseEnumValueDefinition,m.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:g.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw f(this._lexer.source,this._lexer.token.start,`${B(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:g.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(m.BRACE_L,this.parseInputValueDef,m.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===m.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(m.BRACE_L,this.parseOperationTypeDefinition,m.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:g.h.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:g.h.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:g.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:g.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:g.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:g.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:g.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(m.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:g.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(m.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(p,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new h.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw f(this._lexer.source,t.start,`Expected ${$(e)}, found ${B(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==m.NAME||t.value!==e)throw f(this._lexer.source,t.start,`Expected "${e}", found ${B(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===m.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!==e&&void 0!==e?e:this._lexer.token;return f(this._lexer.source,t.start,`Unexpected ${B(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==m.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw f(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function B(e){const t=e.value;return $(e.kind)+(null!=t?` "${t}"`:"")}function $(e){return function(e){return e===m.BANG||e===m.DOLLAR||e===m.AMP||e===m.PAREN_L||e===m.PAREN_R||e===m.SPREAD||e===m.COLON||e===m.EQUALS||e===m.AT||e===m.BRACKET_L||e===m.BRACKET_R||e===m.BRACE_L||e===m.PIPE||e===m.BRACE_R}(e)?`"${e}"`:e}var z=new Map,q=new Map,H=!0,V=!1;function W(e){return e.replace(/[\s,]+/g," ").trim()}function G(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=W((a=e.loc).source.body.substring(a.start,a.end)),o=q.get(r);o&&!o.has(i)?H&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||q.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var a})),r(r({},e),{definitions:n})}function Z(e){var t=W(e);if(!z.has(t)){var n=function(e,t){return new U(e,t).parseDocument()}(e,{experimentalFragmentVariables:V,allowLegacyFragmentVariables:V});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");z.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"===typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(G(n)))}return z.get(t)}function X(e){for(var t=[],n=1;n0){var a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(a))}if(r.domain){if(!p.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(r.domain)}if(r.path){if(!p.test(r.path))throw new TypeError("option path is invalid");o+="; Path=".concat(r.path)}if(r.expires){if("function"!==typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");o+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch("string"===typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},m=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*n*1e3)),r&&(i.domain=r),document.cookie=h(e,encodeURIComponent(t),i)},g=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1).split("&"),i=0;i0)r[i].substring(0,o)===e.lookupQuerystring&&(t=r[i].substring(o+1))}}return t}},_=null,b=function(){if(null!==_)return _;try{_="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(t){_=!1}return _},S={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&b()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&b()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},w=null,k=function(){if(null!==w)return w;try{w="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(t){w=!1}return w},x={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&k()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&k()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},E={name:"navigator",lookup:function(e){var t=[];if("undefined"!==typeof navigator){if(navigator.languages)for(var n=0;n0?t:void 0}},C={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!==typeof document?document.documentElement:null);return n&&"function"===typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},T={name:"path",lookup:function(e){var t;if("undefined"!==typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"===typeof e.lookupFromPathIndex){if("string"!==typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},I={name:"subdomain",lookup:function(e){var t="number"===typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,n="undefined"!==typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[t]}};var O=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=f(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(y),this.addDetector(v),this.addDetector(S),this.addDetector(x),this.addDetector(E),this.addDetector(C),this.addDetector(T),this.addDetector(I)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach((function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"===typeof r&&(r=[r]),r&&(n=n.concat(r))}})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}]),e}();O.type="languageDetector";var A=n(26946),R=n.n(A),N="en",D=["fr-CA","en","en-GB"];r.ZP.use(O).use(i.Db).init({nsSeparator:!1,keySeparator:!1,fallbackLng:{fr:["fr-CA"],default:[N]},returnEmptyString:!1,supportedLngs:D,whitelist:D,preload:D,defaultNS:"translation",resources:R(),debug:!1,interpolation:{escapeValue:!1},initImmediate:!1,react:{useSuspense:!0},detection:{checkWhitelist:!0}});var P=r.ZP},26946:function(e){"use strict";e.exports={en:{translation:{Comment_one:"Comment",Comment_other:"Comments","Full Groups":"Full Standings","Full Table":"Full Standings",Like_one:"Like",Like_other:"Likes",reply_one:"reply",reply_other:"replies"}},"en-GB":{translation:{" are the favorite":" are the favourite"," are the heavy favorite":" are the heavy favourite"," are the slight favorite":" are the slight favourite","({{sign}}{{priceDueToday, currency}} VALUE)":"({{sign}}{{priceDueToday, currency }} VALUE)","3RD PLACE FINAL":"3RD PLACE PLAYOFF",Bracket:"Knockouts","Come back closer to the tournament to follow the bracket.":"Come back closer to the tournament to follow the knockout stages.",Comment_one:"Comment",Comment_other:"Comments",Customize:"Customise",defense:"defence","Get the stories that matter to you by choosing your favorite teams and leagues.":"Get the stories that matter to you by choosing your favourite teams and leagues.","International Soccer":"International Football",like_one:"like",like_other:"likes",Like_one:"Like",Like_other:"Likes",Reaction_other:"Reactions",reply_one:"reply",reply_other:"replies",Reply_other:"Replies",Roster:"Squad","Scores & Schedule":"Results & Fixtures",soccer:"football",Soccer:"Football","Soccer Home":"Football Home","Soccer Links":"Football Links",Standings:"Table","World Cup Bracket":"Men\u2019s World Cup Knockouts","Women's World Cup Bracket":"Women's World Cup Knockouts"}},fr:{translation:{"3RD PLACE FINAL":"3RD PLACE PLAYOFF","Add a comment...":"Ajoutez un commentaire...","Add New Card":"Ajoutez une nouvelle carte","Annual Plan":"Forfait annuel","Back to Account":"Retour \xe0 compte",Cancel:"Annuler","Cancel Subscription":"Annuler votre abonnement",Cancelled:"Annul\xe9","Check out this article instead.":"Consultez plut\xf4t cet article.",Comment_one:"Commentaire",Comment_other:"Commentaires","Copy link to comment":"Copier le lien vers le commentaire","ending in":"se terminant par",hidden:"masqu\xe9es","International Soccer":"International Football",like:"J'aime",like_one:"J'aime",like_many:"mentions J'aime",like_other:"mentions J'aime",Like:"J'aime",Like_one:"J'aime",Like_many:"Mentions J'aime",Like_other:"Mentions J'aime","Monthly Plan":"Forfait mensuel","Next Billing Date":"Prochaine date de facturation","Payment Amount":"Montant du paiement","Payment Type":"Type de paiement","Pin comment":"\xc9pingler un commentaire",Plan:"Forfait","Please adhere to our Code of Conduct":"Svp adh\xe9rez \xe0 notre Code de conduite",Post:"Publiez",Reaction_other:"Reactions","Read More":"Lisez Aussi",reply:"R\xe9ponse",reply_one:"R\xe9ponse",reply_many:"R\xe9ponses",reply_other:"R\xe9ponses",Reply:"R\xe9ponse",Reply_other:"R\xe9ponses","Sorry this page isn\u2019t available.":"D\xe9sol\xe9, cette page n'est pas disponible.",Subscription:"Abonnement","Subscription Ends":"L'abonnement se termine","Switch to Annual and Save":"Passez \xe0 l'abonnement annuel et \xe9pargnez","This comment is abusive or harmful":"Ce commentaire est injurieux ou nuisible","This comment is spam":"Ce commentaire est un pourriel","This comment is trolling or baiting":"Ce commentaire est digne d'un troll","Update Card":"Mettez \xe0 jour votre carte","World Cup Bracket":"Men\u2019s World Cup Bracket"}},"fr-CA":{translation:{" and ":" et "," Billed monthly.":" Factur\xe9 mensuellement."," Billed annually.":" Factur\xe9 annuellement."," for 1 year":" pour 1 an"," for 30 days":" pour 30 jours"," for more information.":" pour plus d'informations."," Please see our ":" Veuillez consulter ","- Or use your email -":"- Ou utilisez votre courriel -",". Cancel anytime":". Annulez quand vous voulez","({{sign}}{{priceDueToday, currency}} VALUE)":"(VALEUR DE {{sign}}{{priceDueToday, currency }})","{{currencySign}}{{price, currency}}/mo billed annually after trial ends. Cancel anytime":"{{currencySign}}{{price, currency}}/mois factur\xe9 annuellement apr\xe8s la p\xe9riode d'essai. Annulez quand vous voulez","{{currencySign}}{{price, currency}}/mo billed monthly after trial ends. Cancel anytime":"{{currencySign}}{{price, currency}}/mois factur\xe9 mensuellement apr\xe8s la p\xe9riode d'essai. Annulez quand vous voulez","{{sign}}{{monthlyPrice, currency}}/month thereafter. Cancel anytime.":"{{sign}}{{monthlyPrice, currency}}/mois par la suite. Annulez quand vous voulez.","{{sign}}{{monthlyPrice, currency}}/month thereafter. Billed annually. Cancel anytime.":"{{sign}}{{monthlyPrice, currency}}/mois par la suite. Factur\xe9 annuellement. Annulez quand vous voulez.","{{trialDays}} days free":"{{trialDays}} jours gratuits","/month":"/mois","/week":"/semaine","1-Step Checkout":"Commandez en une \xe9tape","Access more of The Athletic.":"Acc\xe9dez \xe0 plus sur Athl\xe9tique.",Account:"Compte","Add a comment...":"Ajoutez un commentaire...",ago:"il y a","All rights reserved.":"Tous droits r\xe9serv\xe9s.","Already a subscriber? ":"D\xe9j\xe0 abonn\xe9? ","Already have an account? ":"Vous avez d\xe9j\xe0 un compte? ",Annual:"Annuel",Backstory:"Trame de fond","Be the first to add a comment":"Soyez le premier \xe0 ajouter un commentaire","Better access. Deeper insight. Your teams.":"Un meilleur acc\xe8s. Des analyses approfondies. Vos \xe9quipes.","Billed as {{sign}}{{discountedMonthlyPrice, currency}} for 1 month.":"Factur\xe9 {{sign}}{{discountedMonthlyPrice, currency}} pour 1 mois.","Billed as {{sign}}{{discountedMonthlyPrice, currency}}/{{unit}}{{durationStatement}}.":"Factur\xe9 {{sign}}{{discountedMonthlyPrice, currency}}/{{unit}}{{durationStatement}}.","Then {{sign}}{{monthlyPrice, currency}}/month.":"Ensuite {{sign}}{{monthlyPrice, currency}}/mois.","First {{days}} days free.":"Les premiers {{days}} jours gratuits.","Billing Info":"Infos de facturation",Boxing:"Boxe","Business Inquiries":"Renseignements d'affaires","Buy a Gift":"Achetez un cadeau","By creating an account above, you consent to The Athletic's ":"En cr\xe9ant un compte ci-dessus, vous consentez \xe0 ",Cancel:"Annuler","Card Number":"Num\xe9ro de carte",Careers:"Carri\xe8res","Champions League":"Ligue des champions","Check back soon!":"Revenez bient\xf4t!","Check out this article instead.":"Lisez cet article-ci au lieu.","Choose Plan":"Choisissez un forfait","Code of Conduct":"Code de conduite","College Basketball":"Basketball coll\xe9gial","College Football":"Football coll\xe9gial","College students, subscribe with a special student rate.":"\xc9tudiants universitaires, abonnez-vous avec un tarif sp\xe9cial.",Comment:"Commentaire",Comment_other:"Commentaires","Continue with Apple":"Continuez avec Apple","Continue with Facebook":"Continuez avec Facebook","Continue with Google":"Continuez avec Google","Cookie Policy":"Politique des cookies","Cookie Settings":"Param\xe8tres de cookies","Copy link":"Copier le lien","Create a password to keep your account secure":"Cr\xe9ez un mot de passe pour que votre compte soit s\xe9curitaire","Create a password to keep your account secure.":"Cr\xe9ez un mot de passe pour que votre compte soit s\xe9curitaire.","Create Account":"Cr\xe9ez un compte","Create reaction":"Cr\xe9er une r\xe9action","Create your free account to continue reading.":"Cr\xe9ez votre compte gratuit pour continuer la lecture.","Create your password":"Cr\xe9ez votre mot de passe","Delete Comment":"Supprimez le commentaire","Don't have an account?":"Vous n'avez pas de compte?",Done:"Termin\xe9","Due Today:":"\xc0 payer aujourd'hui:","Edit brief":"Modifier la br\xe8ve","Edit reaction":"Modifier la r\xe9action","Edit This Headline":"Modifier ce titre","Editor\u2019s note: Comments for this post have been suspended. Please visit the {{s1}}Code of Conduct{{s2}} page for additional information. If you wish to contact the editor, send a note to {{s3}}editor@bamdascore.com{{s4}}.":"Note de l'\xe9diteur: Les commentaires sur cet article ont \xe9t\xe9 suspendus. SVP consultez la page du {{s1}}Code de conduite{{s2}} pour plus d'informations. Si vous voulez contacter l'\xe9diteur, envoyez une note \xe0 {{s3}}editor@bamdascore.com{{s4}}.","Editor\u2019s Note: Comments on this post are disabled. Please visit the {{s1}}Code of Conduct{{s2}} page for additional information. If you wish to contact the editor, send a note to {{s3}}editor@bamdascore.com{{s4}}.":"Note de l'\xe9diteur: Les commentaires sur cet article ont \xe9t\xe9 d\xe9sactiv\xe9s. SVP consultez la page du {{s1}}Code de conduite{{s2}} pour plus d'informations. Si vous voulez contacter l'\xe9diteur, envoyez une note \xe0 {{s3}}editor@bamdascore.com{{s4}}.",Email:"Courriel","Email Address":"Adresse courriel","Email or password is incorrect.":"Courriel ou mot de passe incorrect.","Email Us":"Envoyez-nous un courriel","Europa League":"Ligue Europa","Every story that matters on every team you follow.":"Toutes les histoires qui comptent sur chaque \xe9quipe que vous suivez.",Expiry:"Expiration","Filter by":"Filtrer par","First Name":"Pr\xe9nom",Follow:"Suivez",Following:"Abonn\xe9","For more information about Cookies and how to adjust them, please see our ":"Pour plus d'informations sur les cookies et sur la fa\xe7on de les ajuster, veuillez consulter notre ","Forgot Password?":"Mot de passe oubli\xe9?","Forgot your password?":"Oubli\xe9 votre mot de passe?","Free Trial":"Essai gratuit","Full Name":"Nom complet","Get All Access":"Obtenez tout l'acc\xe8s","Get More Access":"Obtenez plus d'acc\xe8s",Gift:"Cadeau","Gift code for free one-year gift subscription will be emailed to you upon purchase. Gift subscription does not renew. Cancel anytime.":"Un code pour un abonnement-cadeau d'un an vous sera envoy\xe9 par courriel au moment de l'achat. Les abonnements-cadeaux ne se renouvellent pas. Annulez quand vous voulez.","Gift Subscription Code ":"Code d'abonnement-cadeau ","Give the gift of great sports coverage with 3-mo, 1-yr, or 2-yr plans.":"Offrez en cadeau une couverture sportive exceptionnelle avec des forfaits de 3 mois, 1 an ou 2 ans.","Go Deeper":"Allez plus loin",Headlines:"Grands titres",hidden:"cach\xe9",home:"accueil",HQ:"QG",Ink:"L'Encre","International Football":"Soccer international","International Soccer":"Soccer international","Invite Friends":"Invitez des amis","It looks like the offer you're trying to access is not available. Save 30% with this special offer instead.":"L'offre \xe0 laquelle vous tentez d'acc\xe9der ne soit pas disponible. Mais voici au lieu un rabais sp\xe9cial de 30%.","Last Name":"Nom",Latest:"Derni\xe8res nouvelles",like:"j'aime",like_other:"mentions J'aime",Like:"J'aime",Like_other:"Mentions J'aime","LIMITED TIME OFFER":"OFFRE D'UNE DUR\xc9E LIMIT\xc9E","Log in":"Ouvrez une session","Log In":"Ouvrez la session","Log Out":"Fermez la session","Manage Feed":"G\xe9rez le fil de nouvelles","Men's College Basketball":"Basketball coll\xe9gial masculin",month:"mois",Monthly:"Mensuel","More Headlines":"Plus de grands titres",Motorsports:"Sports motoris\xe9s","My Feed":"Mon fil","My Headlines":"Mes grands titres","Name on card":"Nom sur la carte","Newsroom Insights":"Point de vue de la r\xe9daction",NHL:"LNH","No games on this date.":"Aucun match \xe0 cette date.","No Posts Yet":"Pas encore d'entr\xe9es","OFFER ENDS IN":"L'OFFRE PREND FIN DANS","Or Add Credit Card":"Ou ajoutez une carte de cr\xe9dit","Or Create Account":"Ou cr\xe9ez un compte","Our payment system is currently down":"Notre syst\xe8me de paiement est hors fonction",Password:"Mot de passe","Password must be at least 8 characters":"Le mot de passe doit contenir au moins 8 caract\xe8res","Payment Terms":"Modalit\xe9s de paiement","Please adhere to our Code of Conduct":"SVP adh\xe9rez \xe0 notre code de conduite","Please enter a password":"SVP entrez un mot de passe","Please enter a password of at least 8 characters.":"Veuillez entrer un mot de passe d'au moins 8 caract\xe8res.","Please enter a valid email address.":"Veuillez entrer une adresse courriel valide.","Please enter an email address":"Veuillez entrer une adresse courriel","Please enter valid email address":"Veuillez entrer une adresse courriel valide","please try reloading the page or download our app":"essayez de recharger la page ou t\xe9l\xe9chargez notre appli","Plus Free One-Year":"Plus un an gratuit",Podcasts:"Balados",Post:"Publiez","Press Inquiries":"Demandes de presse",Previously:"Auparavant","Privacy Policy":"Politique de confidentialit\xe9",Reaction:"R\xe9action",Reaction_other:"R\xe9actions","Read More":"Lisez la suite","Real Time":"En temps r\xe9el","Redeem Gift":"R\xe9clamez votre cadeau","Reload Page":"Rechargez la page",reply:"r\xe9pondez",reply_other:"r\xe9ponses",Results:"R\xe9sultats","Save on all access to exclusive sports stories.":"\xc9conomisez sur l'acc\xe8s complet \xe0 des histoires exclusives.","Save Settings":"Sauvegarder les param\xe8tres","Saved Stories":"Articles enregistr\xe9s","Scottish Premiership":"Premiership d'\xc9cosse",Search:"Recherche","Search for a league, team or author":"Recherchez une ligue, une \xe9quipe ou un auteur","See all":"Voir tous","See Less":"Voir moins","See more":"Voir plus","See More":"Voir plus","Serie A":"S\xe9rie A",Share:"Partager","Sign up":"Inscrivez-vous","Sign up with Email":"Inscrivez-vous par courriel","Sign up with Google":"Inscrivez-vous avec Google","Sorry this page isn\u2019t available.":"D\xe9sol\xe9, cette page n'est pas disponible.","Sports Business":"Business du sport","Start Free Trial":"Faites un essai gratuit","Step 1 of 2":"\xc9tape 1 de 2","Step 2 of 2":"\xc9tape 2 de 2",Student:"\xc9tudiant","Student Discount":"Rabais \xe9tudiants",Subscribe:"Abonnez-vous","Subscribe Now":"Abonnez-vous maintenant","Subscription Plan":"Forfait d'abonnement",Support:"Soutien","Terms of Service":"Modalit\xe9s de service","That email belongs to an existing account":"Ce courriel appartient \xe0 un compte existant","The Athletic Community Team":"L'\xe9quipe de la communaut\xe9 d'Athl\xe9tique","This comment is abusive or harmful":"Ce commentaire est injurieux ou nuisible","This comment is spam":"Ce commentaire est un pourriel","This comment is trolling or baiting":"Ce commentaire est digne d'un troll","Pin comment":"\xc9pingler un commentaire","Copy link to comment":"Copier le lien vers le commentaire","to join the conversation.":"pour joindre la conversation.","Top News":"\xc0 la une",Trending:"Tendance","Try again":"Essayez encore","Continue to Checkout":"Passer au paiement",Unfollow:"Cesser de suivre",Updated:"Mis \xe0 jour","View {{type}} Plans":"Voir les forfaits {{type}}","We use your email to provide you with news, updates, and promotions.":"Nous utilisons votre courriel pour vous fournir des nouvelles, des mises \xe0 jour et des promotions.","Welcome Back!":"Bienvenue\xa0de nouveau!","Women's College Basketball":"Basketball coll\xe9gial f\xe9minin","Women's Football":"Soccer f\xe9minin","WordPress Admin":"Administrateur WordPress",You:"Vous","Your Account":"Votre compte","Your card won\u2019t be charged until trial ends":"Votre carte ne sera pas d\xe9bit\xe9e avant la fin de l'essai","Your first name is required":"Votre pr\xe9nom est requis","Your last name is required.":"Votre nom de famille est requis.","Your Plan":"Votre forfait","Your transaction could not be completed.":"Votre transaction n'a pu \xeatre compl\xe9t\xe9e.","It looks like the offer you're trying to access is no longer available. Save 30% with this special offer instead.":"Il semble que l'offre \xe0 laquelle vous tentez d'acc\xe9der ne soit plus disponible. Mais voici un rabais sp\xe9cial de 30%.","{{mins}} min {{secs}} seconds.":"{{mins}} min {{secs}} secondes.",Comment_one:"Commentaire","Every sports story that matters. $1.25/month. ":"Toutes les histoires de sports qui comptent. 1,25$/mois. ","Offer ends in":"L'offre se termine dans","Unrivaled access. Expert analysis. $1/month. ":"Un acc\xe8s incomparable. Des analyses d'experts. 1$/mois. ","Your club. In-depth. \xa31 a month. ":"Votre club. En profondeur. \xa31 par mois. ","Already have an account with The Athletic? ":"Vous avez d\xe9j\xe0 un compte avec Athl\xe9tique? ","and ":"et ","Continue with Email":"Continuez avec votre courriel","Privacy Policy ":"Vie priv\xe9e ","Terms of Service ":"Modalit\xe9s de service ","Background Reading":"Lectures connexes",key:"cl\xe9","Add Leagues":"Ajouter des ligues","Add Teams":"Ajoutez des \xe9quipes","Add Authors":"Ajouter des auteurs",Atlantic:"Atlantique",authors:"auteurs",Central:"Centrale",Cities:"Villes",featured:"en vedette",Home:"Accueil",Away:"\xc9tranger",Result:"R\xe9sultat",Time:"Heure","Watch On":"Regardez sur",Attendance:"Assistance",Location:"Lieu",Live:"En direct",Delayed:"Retard\xe9",Cancelled:"Annul\xe9",Suspended:"Suspendu",Postponed:"Remis","If necessary":"Si n\xe9cessaire",leagues:"ligues",Metropolitan:"M\xe9tropolitaine",North:"Nord",Pacific:"Pacifique",Scores:"R\xe9sultats",Schedule:"Calendrier",Standings:"Classements",teams:"\xe9quipes","AL Central":"LA Centrale","NL West":"LN Ouest","AL East":"LA Est","AL West":"LA Ouest","NL East":"LN Est","NL Central":"LN Centrale","AFC East":"AFC Est","AFC North":"AFC Nord","AFC South":"AFC Sud","AFC West":"AFC Ouest","NFC East":"NFC Est","NFC North":"NFC Nord","NFC South":"NFC Sud","NFC West":"NFC Ouest",Southeast:"Sud-Est",Southwest:"Sud-Ouest",Northwest:"Nord-Ouest",Relegation:"Rel\xe9gation"}}}},72211:function(e,t,n){"use strict";var r=n(66479),i=n(8151),o=window;o.__sentryRewritesTunnelPath__=void 0,o.SENTRY_RELEASE={id:"CHP2b7ZIp-0k2g5-VzWkq"},o.__sentryBasePath=void 0,o.__rewriteFramesAssetPrefixPath__="/athletic",r.S1({dsn:"https://813fd62f58cd62c2f9dfc87243ae1438@o82024.ingest.us.sentry.io/4507069293199360",environment:"prd-nyt",tracesSampleRate:i.cZ?.01:1,sampleRate:i.cZ?.01:1,replaysSessionSampleRate:0,replaysOnErrorSampleRate:0,enabled:!0,debug:!1,attachStacktrace:!0})},92162:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EDGE_UNSUPPORTED_NODE_APIS=t.TRACE_OUTPUT_VERSION=t.STATIC_STATUS_PAGES=t.OPTIMIZED_FONT_PROVIDERS=t.GOOGLE_FONT_PROVIDER=t.FLIGHT_PROPS_ID=t.SERVER_PROPS_ID=t.STATIC_PROPS_ID=t.PERMANENT_REDIRECT_STATUS=t.TEMPORARY_REDIRECT_STATUS=t.EDGE_RUNTIME_WEBPACK=t.CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL=t.CLIENT_STATIC_FILES_RUNTIME_WEBPACK=t.CLIENT_STATIC_FILES_RUNTIME_AMP=t.CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH=t.CLIENT_STATIC_FILES_RUNTIME_MAIN_ROOT=t.CLIENT_STATIC_FILES_RUNTIME_MAIN=t.MIDDLEWARE_REACT_LOADABLE_MANIFEST=t.MIDDLEWARE_BUILD_MANIFEST=t.FLIGHT_MANIFEST=t.NEXT_CLIENT_SSR_ENTRY_SUFFIX=t.NEXT_BUILTIN_DOCUMENT=t.MODERN_BROWSERSLIST_TARGET=t.STRING_LITERAL_DROP_BUNDLE=t.CLIENT_STATIC_FILES_RUNTIME=t.CLIENT_STATIC_FILES_PATH=t.CLIENT_PUBLIC_FILES_PATH=t.BLOCKED_PAGES=t.BUILD_ID_FILE=t.CONFIG_FILES=t.SERVERLESS_DIRECTORY=t.SERVER_DIRECTORY=t.FONT_MANIFEST=t.REACT_LOADABLE_MANIFEST=t.DEV_MIDDLEWARE_MANIFEST=t.MIDDLEWARE_MANIFEST=t.DEV_CLIENT_PAGES_MANIFEST=t.SERVER_FILES_MANIFEST=t.IMAGES_MANIFEST=t.ROUTES_MANIFEST=t.PRERENDER_MANIFEST=t.EXPORT_DETAIL=t.EXPORT_MARKER=t.BUILD_MANIFEST=t.APP_PATHS_MANIFEST=t.PAGES_MANIFEST=t.PHASE_TEST=t.PHASE_DEVELOPMENT_SERVER=t.PHASE_PRODUCTION_SERVER=t.PHASE_PRODUCTION_BUILD=t.PHASE_EXPORT=void 0;t.PHASE_EXPORT="phase-export";t.PHASE_PRODUCTION_BUILD="phase-production-build";t.PHASE_PRODUCTION_SERVER="phase-production-server";t.PHASE_DEVELOPMENT_SERVER="phase-development-server";t.PHASE_TEST="phase-test";t.PAGES_MANIFEST="pages-manifest.json";t.APP_PATHS_MANIFEST="app-paths-manifest.json";t.BUILD_MANIFEST="build-manifest.json";t.EXPORT_MARKER="export-marker.json";t.EXPORT_DETAIL="export-detail.json";t.PRERENDER_MANIFEST="prerender-manifest.json";t.ROUTES_MANIFEST="routes-manifest.json";t.IMAGES_MANIFEST="images-manifest.json";t.SERVER_FILES_MANIFEST="required-server-files.json";t.DEV_CLIENT_PAGES_MANIFEST="_devPagesManifest.json";t.MIDDLEWARE_MANIFEST="middleware-manifest.json";t.DEV_MIDDLEWARE_MANIFEST="_devMiddlewareManifest.json";t.REACT_LOADABLE_MANIFEST="react-loadable-manifest.json";t.FONT_MANIFEST="font-manifest.json";t.SERVER_DIRECTORY="server";t.SERVERLESS_DIRECTORY="serverless";t.CONFIG_FILES=["next.config.js","next.config.mjs"];t.BUILD_ID_FILE="BUILD_ID";t.BLOCKED_PAGES=["/_document","/_app","/_error"];t.CLIENT_PUBLIC_FILES_PATH="public";t.CLIENT_STATIC_FILES_PATH="static";t.CLIENT_STATIC_FILES_RUNTIME="runtime";t.STRING_LITERAL_DROP_BUNDLE="__NEXT_DROP_CLIENT_FILE__";t.MODERN_BROWSERSLIST_TARGET=["chrome 61","edge 16","firefox 60","opera 48","safari 11"];t.NEXT_BUILTIN_DOCUMENT="__NEXT_BUILTIN_DOCUMENT__";t.NEXT_CLIENT_SSR_ENTRY_SUFFIX=".__sc_client__";t.FLIGHT_MANIFEST="flight-manifest";t.MIDDLEWARE_BUILD_MANIFEST="middleware-build-manifest";t.MIDDLEWARE_REACT_LOADABLE_MANIFEST="middleware-react-loadable-manifest";var n="main";t.CLIENT_STATIC_FILES_RUNTIME_MAIN=n;var r="".concat(n,"-root");t.CLIENT_STATIC_FILES_RUNTIME_MAIN_ROOT=r;t.CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH="react-refresh";t.CLIENT_STATIC_FILES_RUNTIME_AMP="amp";t.CLIENT_STATIC_FILES_RUNTIME_WEBPACK="webpack";var i=Symbol("polyfills");t.CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL=i;t.EDGE_RUNTIME_WEBPACK="edge-runtime-webpack";t.TEMPORARY_REDIRECT_STATUS=307;t.PERMANENT_REDIRECT_STATUS=308;t.STATIC_PROPS_ID="__N_SSG";t.SERVER_PROPS_ID="__N_SSP";t.FLIGHT_PROPS_ID="__N_RSC";var o="https://fonts.googleapis.com/";t.GOOGLE_FONT_PROVIDER=o;var a=[{url:o,preconnect:"https://fonts.gstatic.com"},{url:"https://use.typekit.net",preconnect:"https://use.typekit.net"}];t.OPTIMIZED_FONT_PROVIDERS=a;t.STATIC_STATUS_PAGES=["/500"];t.TRACE_OUTPUT_VERSION=1;t.EDGE_UNSUPPORTED_NODE_APIS=["clearImmediate","setImmediate","BroadcastChannel","Buffer","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TextDecoderStream","TextEncoderStream","TransformStreamDefaultController","WritableStreamDefaultController"],("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28824:function(e,t,n){"use strict";n.d(t,{P1:function(){return c},TH:function(){return s},aZ:function(){return a},jH:function(){return i},r0:function(){return o}});var r=n(39376),i=(0,r.Z)("open-graph-asset.png"),o="https://cdn.theathletic.com/app/uploads/2016/07/08183138/ta_avatar.png",a=(0,r.Z)("the-athletic-wordmark-black.png"),s="https://cdn-league-logos.theathletic.com/",c="https://static01.nyt.com/athletic/logos/team/"},8151:function(e,t,n){"use strict";n.d(t,{F4:function(){return u},J0:function(){return l},MQ:function(){return g},PT:function(){return f},Us:function(){return c},aO:function(){return p},bl:function(){return m},cZ:function(){return d},l0:function(){return h}});var r,i,o,a,s=n(34155),c=["cdn.theathletic.com","cdn-headshots.theathletic.com","cdn-league-logos.theathletic.com","cdn-media.theathletic.com","cdn-team-logos.theathletic.com"],u=["static01.nyt.com","static01.dev.nyt.com","static01.stg.nyt.com"],l=[29,31,32],d="true"===(null===s||void 0===s||null===(r=s.env)||void 0===r?void 0:"true"),f=d?"/29390238/theathletic":"/29390238/nyt/theathletic",p="production"!==(null===s||void 0===s||null===(i=s.env)||void 0===i?void 0:"production"),h="true"===(null===s||void 0===s||null===(o=s.env)||void 0===o?void 0:o.NEXT_PUBLIC_BYPASS_SESSION_PROXY)||"dev"===(null===s||void 0===s||null===(a=s.env)||void 0===a?void 0:"prd-nyt"),m="https://apps.apple.com/us/app/the-athletic-sports-news/id1135216317",g="https://play.google.com/store/apps/details?id=com.theathletic"},41472:function(e,t,n){"use strict";n.d(t,{B:function(){return P},M:function(){return L}});var r=n(828),i=n(85893),o=Array.isArray;var a=function(e){return"object"===typeof e&&null!==e&&!o(e)&&1===Object.keys(e).length};var s=function(e){return Object.keys(e)[0]},c=function(e){return function t(n,r){if(r||(r={}),o(n))return n.map((function(e){return t(e,r)}));if(!a(n))return n;var i=s(n),c=n[i];o(c)||(c=[c]);var u=e[i];if(!u)throw new Error("Unrecognized operation "+i);return u(t,r,c)}},u=function(e,t,n){var r=e(n,t),i=r[0],o=r[1];if(null==i||""===i)return t;for(var a=String(i).split("."),s=0;sr[1]},x=function(e,t,n){var r=e(n,t);return r[0]>=r[1]},E=function(e,t,n){var r=e(n,t),i=r[0],o=r[1],a=r[2];return void 0===a?i>2]|=u.charCodeAt(l)<<8*~l--;for(t=l=0;t>2]+((u=n[0])<<5|u>>>27),u,r<<30|r>>>2,i,o])u=a[l-3]^a[l-8]^a[l-14]^a[l-16],r=n[1],i=n[2],o=n[3];for(l=5;l;)s[--l]+=n[l]}return s[0]>>>0}(a+" "+e(i,t));o.length>1;){var c=o.splice(0,2),u=c[0],l=c[1];if(s<=e(u,t))return e(l,t)}return 0===o.length?null:e(o[0],t)},I=function(e,t,n){var r=n[0],i=n[1],o=e(r,t);return null===o||"undefined"===typeof o?null:new RegExp(i).test(o)},O=n(34155),A=function(){for(var e,t={},n=O.env.ABRA_OVERRIDES||"",r=/(?:^|,)([^,=]+)=([^,]*)/g;e=r.exec(n);){var i=e,o=i[1],a=i[2];t[o]=a||null}return[t,["1","YES","ON","TRUE"].includes((O.env.ABRA_NUKE||"").toUpperCase())]};var R=n(67294),N=n(2513),D=n(62286),P=(0,R.createContext)({getVariant:function(){return null},ready:!1,version:""}),L=function(e){var t=e.children,n=(0,R.useState)(),o=n[0],a=n[1],s=(0,R.useContext)(N.m).geoState;(0,R.useEffect)((function(){var e="https://a1.nyt.com/abra-config/current/".concat("the-athletic-prd",".json");fetch(e).then((function(e){return e.json()})).then((function(e){a(e)}))}),[]);var m=(0,R.useMemo)((function(){if(!o)return function(){return null};var e=(0,D.parseCookies)(),t=function(e){var t;return e?null===(t=null===e||void 0===e?void 0:e.split(","))||void 0===t?void 0:t.reduce((function(e,t){var n=(0,r.Z)(null===t||void 0===t?void 0:t.split("="),2),i=n[0],o=n[1];return e[i]=o,e}),{}):{}}(e["abra-overrides"]),n={geo_country:null===s||void 0===s?void 0:s.countryCode};return e["nyt-a"]&&(n.agent_id=e["nyt-a"]),function(e,t,n,r,i,o){if(e&&"object"===typeof e&&1===arguments.length){var a=e;e=a.rules,t=a.params,n=a.overrides,r=a.nuke,i=a.integration,o=a.recordExposure}e||(e={}),t||(t={}),n||(n={}),r||(r=!1),i||(i=null),o||(o=null),!0===o&&(o=function(e){"object"!==typeof window?console.error("recordExposure=true in non-browser environment"):"function"!==typeof window.nyt_et?console.error("nyt_et not inited before Abra"):window.nyt_et("soon",e)});var s=A(),m=s[0],O=s[1];Object.keys(n).forEach((function(e){m[e]=n[e]}));var R={},N=r||O,D=c({var:u,if:y,"===":b,"!==":S,and:g,or:_,"!":v,">":k,">=":x,"<":E,"<=":C,"+":l,"-":h,"*":p,"/":d,"%":f,in:w,abtest_partition:T,regex_match:I,ref:function(e,t,n){var r=e(n,t)[0];return P(r)}}),P=function(n,r){var a=(void 0===r?{}:r).exposureSite,s=void 0===a?null:a;if(!n)return null;var c=m[n];if(void 0===c){if(!N){if(Object.prototype.hasOwnProperty.call(m,n))throw new Error("circular logic");m[n]=void 0,c=D(e[n],t)}void 0===c&&(c=null),m[n]=c}if("function"===typeof o&&null!=c&&c!==R[n+" "+(s||"")]&&-1===n.indexOf(".")&&null!=e[".ver"]&&null!=i){var u={subject:"ab_expose",test:n,variant:c,integration:i,config_ver:e[".ver"]};s&&(u.site=s),"object"===typeof window&&window.dispatchEvent&&"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("abra-record-exposure",{detail:{test:n,integration:i,site:s}})),R[n+" "+(s||"")]=c,o(u)}return c};return P}(o,n,t)}),[o,null===s||void 0===s?void 0:s.countryCode]),O=!!o,L=m(".ver");return(0,i.jsx)(P.Provider,{value:{getVariant:m,ready:O,version:L},children:t})}},66322:function(e,t,n){"use strict";n.d(t,{$:function(){return h},i:function(){return m}});var r=n(26042),i=n(69396),o=n(828),a=n(85893),s=n(67294),c=n(96552),u=n(59441),l=n(99833),d=function(){return[]},f=function(){var e=window.performance?window.performance:{};return e.getEntriesByType=e.getEntriesByType||d,e},p=n(72217),h=(0,s.createContext)({adsEnabled:!1,isAdBlockOn:!1,setIsAdBlockOn:function(){return null}}),m=function(e){var t=e.children,n=e.isPageAdsEnabled,d=void 0!==n&&n,m=(0,c.z)().log,g=(0,s.useContext)(l.f).analyticsState,y=(0,u.Z)().getPageViewId,v=(0,s.useState)(!1),_=v[0],b=v[1],S=y();return(0,s.useEffect)((function(){if(d){var e=window.page_type||"page",t=window.object_type||null,n={eventName:"ad-on-load",eventData:{event_timestamp:function(){var e=f(),t=(0,o.Z)(e.getEntriesByType("navigation"),1)[0]||null;return t?t.loadEventStart:null}(),metaBlobOverride:{ad_view_id:S},object_type:t}},a={eventName:"ad-page-view",eventData:(0,i.Z)((0,r.Z)({},n.eventData),{page_type:e})},s=function(){m(n.eventName,e,n.eventData),p.fy.logger.info(a.eventName,a)};"loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",s)}}),[g]),(0,a.jsx)(h.Provider,{value:{adsEnabled:d,isAdBlockOn:_,setIsAdBlockOn:b},children:t})}},99833:function(e,t,n){"use strict";n.d(t,{f:function(){return u},n:function(){return l}});var r=n(26042),i=n(85893),o=n(67294),a=n(9008),s=n.n(a),c=n(87337),u=(0,o.createContext)({analyticsState:null,setAnalyticsState:function(){}}),l=function(e){var t=e.children,n=e.value,a=(0,o.useState)(n),l=a[0],d=a[1],f=(0,o.useRef)(!1);(0,o.useEffect)((function(){f.current||(window.nyt_et("init","https://a.et.nytimes.com/","athletic-web"),f.current=!0),null!=n&&p(n)}),[n]);var p=function(e){d((0,r.Z)({},e))};return(0,i.jsxs)(u.Provider,{value:{analyticsState:l,setAnalyticsState:p},children:[(0,i.jsx)(s(),{children:(0,i.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:"\n ".concat(c.D,"\n ")}},"eventtracker-js")}),t]})}},71463:function(e,t,n){"use strict";n.d(t,{H:function(){return s},V:function(){return a}});var r=n(26042),i=n(85893),o=n(67294),a=(0,o.createContext)({authState:null,setAuthState:function(){}}),s=function(e){var t=e.children,n=e.value,s=(0,o.useState)(n.authState),c=s[0],u=s[1];(0,o.useEffect)((function(){null!=(null===n||void 0===n?void 0:n.authState)&&l(n.authState)}),[n.authState]);var l=function(e){u(null===e?null:(0,r.Z)({},e))};return(0,i.jsx)(a.Provider,{value:{authState:c,setAuthState:l},children:t})}},39494:function(e,t,n){"use strict";n.d(t,{Q:function(){return s},q:function(){return c}});var r=n(85893),i=n(67294),o=n(73324),a=n(42238),s=(0,i.createContext)(null),c=function(e){var t=e.children,n=e.value,c=(0,i.useState)(n),u=c[0],l=c[1],d=(0,o.Fg)(),f=(0,i.useCallback)((function(e){return function(t){t.matches&&l(e)}}),[]);return(0,i.useEffect)((function(){var e,t,n;if(window){var r=window.matchMedia("(max-width:".concat(d.breakpoints.values.sm-.05,"px)")),i=window.matchMedia("(min-width:".concat(d.breakpoints.values.sm,"px) and (max-width:").concat(d.breakpoints.values.md-.05,"px)")),o=window.matchMedia("(min-width:".concat(d.breakpoints.values.md,"px)")),s=(new a.UAParser).getResult();(null===(e=s.browser)||void 0===e?void 0:e.version)<="13.1.2"&&("Safari"===(null===(t=s.browser)||void 0===t?void 0:t.name)||"Mobile Safari"===(null===(n=s.browser)||void 0===n?void 0:n.name))?(r.addListener(f("mobile")),i.addListener(f("tablet")),o.addListener(f("desktop"))):(r.addEventListener("change",f("mobile")),i.addEventListener("change",f("tablet")),o.addEventListener("change",f("desktop")));return window.innerWidth0&&(y({variables:{input:n,topic:e,platform:I}}),w(n))}))}},A=function(){"hidden"===document.visibilityState&&(O(h),m([]))};return(0,f.useEffect)((function(){if(!0!==(null===x||void 0===x?void 0:x.awaitingAuth))return document.addEventListener("visibilitychange",A),function(){return document.removeEventListener("visibilitychange",A)}}),[h,null===x||void 0===x?void 0:x.awaitingAuth]),(0,c.jsx)(S.Provider,{value:{impressions:h,enqueueImpression:function(e,t){m((0,s.Z)(h).concat([(0,i.Z)((0,r.Z)({},e),{topic:t})])),h.length>=10&&!0!==(null===x||void 0===x?void 0:x.awaitingAuth)&&(O(h),m([]))},flushImpressions:A,logImpressions:O,osName:I},children:t})}},40479:function(e,t,n){"use strict";n.d(t,{A:function(){return o},Z:function(){return a}});var r=n(85893),i=n(67294),o=(0,i.createContext)({pageData:null,setPageDataState:function(){}}),a=function(e){var t=e.children,n=e.value,a=(0,i.useState)(n),s=a[0],c=a[1];return(0,i.useEffect)((function(){null!=(null===n||void 0===n?void 0:n.leagues)&&c(n)}),[n]),(0,r.jsx)(o.Provider,{value:{pageData:s,setPageDataState:c},children:t})}},9445:function(e,t,n){"use strict";n.d(t,{$5:function(){return u},jr:function(){return s}});var r=n(85893),i=n(67294),o=n(57632),a=function(){return(0,o.Z)()},s=(0,i.createContext)({getPageViewId:function(){return null},updatePageViewId:function(){return null}}),c=a(),u=function(e){var t=e.children,n=(0,i.useState)(c),o=n[0],u=n[1];return(0,r.jsx)(s.Provider,{value:{getPageViewId:function(){return o},updatePageViewId:function(){var e=a();u(e)}},children:t})}},40052:function(e,t,n){"use strict";n.d(t,{Ce:function(){return B},Ay:function(){return $},hN:function(){return M}});var r=n(85893),i=n(67294),o=n(73324),a=n(46006),s=n(45050),c=n(7297);function u(){var e=(0,c.Z)(["\n @keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes loading-bar-ease {\n 0% {\n width: 0%;\n margin-left: 0;\n }\n 30% {\n width: 100%;\n margin-left: 0;\n }\n 60% {\n width: 100%;\n margin-left: 0;\n }\n 80% {\n width: 0%;\n margin-left: 100%;\n }\n 100% {\n width: 0%;\n margin-left: 100%;\n }\n }\n\n .nowrap {\n white-space: nowrap;\n }\n\n .strikethrough {\n text-decoration: line-through;\n }\n\n .comment-mention {\n color: ",";\n }\n\n .comment-mention-staff-QandA {\n color: ",";\n }\n\n .noscroll {\n height: 100%;\n width: 100%;\n position: fixed;\n }\n\n .root {\n background-color: ",";\n font-family: ",";\n color: ",";\n }\n\n a {\n color: inherit;\n text-decoration: none;\n }\n\n .lightGray {\n background-color: ",";\n }\n\n .dark {\n background-color: ",";\n }\n\n .darkGray {\n background-color: ",";\n }\n\n html {\n height: 100vh;\n }\n\n // This is a heinous, but necessary, hack to make dynamic font sizing work on iOS devices,\n // but not break on macOS Safari (https://stackoverflow.com/questions/77003668/how-to-support-dynamic-font-size-in-safari)\n @supports (font: -apple-system-body) {\n @media (max-width: 768px) {\n html {\n font: -apple-system-body;\n }\n }\n }\n\n body {\n -webkit-font-smoothing: antialiased;\n }\n\n .bfcmHeaderItalic {\n font-family: nyt-cheltenham, georgia, 'times new roman', times, serif;\n font-size: 66px;\n font-style: italic;\n font-weight: 300;\n line-height: 110%;\n letter-spacing: -0.02em;\n text-align: center;\n }\n\n .bfcmHeader {\n font-family: nyt-cheltenham, georgia, 'times new roman', times, serif;\n font-size: 66px;\n font-weight: 500;\n letter-spacing: -0.02em;\n line-height: 110%;\n text-align: center;\n }\n\n .moments-paywall-header-line1 {\n font-family: nyt-cheltenham, georgia, 'times new roman', times, serif;\n font-weight: 500;\n letter-spacing: -0.06em;\n line-height: 115%;\n }\n\n .moments-paywall-header-line2 {\n font-family: nyt-cheltenham, georgia, 'times new roman', times, serif;\n font-style: italic;\n font-weight: 500;\n letter-spacing: -0.06em;\n line-height: 115%;\n }\n\n .hh-paywall-header-line1 {\n font-family: nyt-cheltenham, georgia, 'times new roman', times, serif;\n font-weight: 500;\n letter-spacing: -0.06em;\n line-height: 115%;\n }\n\n .hh-paywall-header-line2 {\n font-family: nyt-cheltenham, georgia, 'times new roman', times, serif;\n font-weight: 500;\n font-style: italic;\n letter-spacing: -0.06em;\n line-height: 115%;\n }\n\n .hh-strikethrough {\n text-decoration: line-through;\n color: ",";\n }\n\n .gray-strikethrough {\n text-decoration: line-through;\n color: ",";\n }\n\n .summerSaleHeaderLine1 {\n font-family: nyt-cheltenham, georgia, 'times new roman', times, serif;\n font-weight: 500;\n font-size: 55px;\n line-height: 63.25px;\n display: flex;\n align-items: flex-end;\n text-align: center;\n justify-content: center;\n @media screen and (max-width: 600px) {\n font-size: 40px;\n margin-bottom: -10px;\n line-height: 44px;\n }\n }\n\n .summerSaleHeaderLine2 {\n font-family: nyt-franklin, helvetica, arial, sans-serif;\n font-size: 40px;\n font-weight: 600;\n line-height: 48px;\n letter-spacing: -0.02em;\n text-align: center;\n @media screen and (max-width: 600px) {\n font-size: 27px;\n line-height: 44px;\n }\n }\n\n .summerSaleSubheader {\n font-family: nyt-franklin, helvetica, arial, sans-serif;\n font-size: 22px;\n font-weight: 400;\n line-height: 24px;\n text-align: center;\n color: #121212;\n @media screen and (max-width: 600px) {\n font-size: 20px;\n line-height: 20px;\n }\n }\n\n .summerSaleStrikethrough {\n text-decoration: line-through;\n color: var(--Gray50);\n }\n\n .moments-strikethrough {\n color: var(--constants-gray-400, #52524F);\n font-family: RegularSlab;\n font-size: 48px;\n font-style: normal;\n font-weight: 700;\n line-height: 94%;\n letter-spacing: -0.24px;\n text-decoration: line-through;\n "," {\n font-size: 27px;\n letter-spacing: -0.135px;\n }\n }\n\n .holiday-moments-strikethrough {\n text-decoration: line-through;\n color: #EFC4C4;\n }\n\n .moments-paywall-header-line1 {\n color: var(--constants-gray-200, #121212);\n font-family: RegularSlab;\n text-align: center;\n font-size: 48px;\n font-style: normal;\n font-weight: 700;\n line-height: 94%;\n letter-spacing: -0.24px;\n "," {\n font-size: 27px;\n line-height: 94%;\n letter-spacing: -0.135px;\n }\n }\n\n .holiday-moments-paywall-header-line1 {\n color: var(--constants-gray-800, #FFF);\n font-family: RegularSlab;\n text-align: center;\n font-size: 48px;\n font-style: normal;\n font-weight: 700;\n letter-spacing: -0.84px;\n line-height: 115%; /* 55.2px */\n "," {\n font-size: 40px;\n line-height: 44px;\n }\n }\n\n .moments-paywall-header-line2 {\n color: var(--constants-gray-200, #121212);\n font-family: RegularSlab;\n text-align: center;\n font-size: 48px;\n font-style: normal;\n font-weight: 700;\n line-height: 94%;\n letter-spacing: -0.24px;\n "," {\n font-size: 27px;\n line-height: 94%;\n letter-spacing: -0.135px;\n }\n }\n\n .holiday-moments-paywall-header-line2 {\n color: var(--constants-gray-800, #FFF);\n font-family: nyt-franklin, helvetica, arial, sans-serif;\n font-size: 40px;\n font-style: normal;\n font-weight: 500;\n line-height: 115%;\n letter-spacing: -0.84px;\n "," {\n font-size: 27px;\n line-height: 25px;\n }\n }\n\n .ss-strikethrough{\n text-decoration: line-through;\n color: var(--Gray45);\n text-decoration-color: var(--Gray10);\n }\n\n .ss-paywall-header-line2{\n color: var(--constants-gray-800, #fff);\n text-align: center;\n font-family: nyt-franklin, helvetica, arial, sans-serif;\n font-size: 40px;\n font-style: normal;\n font-weight: 500;\n line-height: 115%;\n "," {\n font-size: 27px;\n }\n }\n"]);return u=function(){return e},e}var l=(0,o.vJ)(u(),(function(e){return e.theme[500]}),(function(e){return e.theme[400]}),(function(e){var t=e.theme;return t.isLegacy?t[100]:t[200]}),(function(e){return e.theme.typography.root.fontFamily}),(function(e){return e.theme[800]}),(function(e){return e.theme.palette.grey[200]}),(function(e){return e.theme[800]}),(function(e){return e.theme.palette.grey[630]}),(function(e){return e.theme.palette.grey[350]}),(function(e){return e.theme[400]}),(function(e){var t=e.theme;return t.breakpoints.down(t.breakpoints.values.sm)}),(function(e){var t=e.theme;return t.breakpoints.down(t.breakpoints.values.sm)}),(function(e){var t=e.theme;return t.breakpoints.down(t.breakpoints.values.sm)}),(function(e){var t=e.theme;return t.breakpoints.down(t.breakpoints.values.sm)}),(function(e){var t=e.theme;return t.breakpoints.down(t.breakpoints.values.sm)}),(function(e){var t=e.theme;return t.breakpoints.down(t.breakpoints.values.sm)})),d=n(11163),f=n(64399),p=n(26059),h=n(55669),m=n(29258),g="RegularSlab",y="nyt-imperial, georgia, 'times new roman', times, serif",v="nyt-cheltenham, georgia,'times new roman',times, serif",_="nyt-franklin, helvetica, arial, sans-serif",b={slab:{L:{bold:{fontFamily:g,fontStyle:"normal",fontWeight:700,fontSize:"2.625rem",lineHeight:"48px",letterSpacing:" -0.005em"}},M:{bold:{fontFamily:g,fontStyle:"normal",fontWeight:700,fontSize:"1.688rem",lineHeight:"94%",letterSpacing:"-0.005em"}},S:{bold:{fontFamily:g,fontStyle:"normal",fontWeight:700,fontSize:"1.125rem",lineHeight:"100%",letterSpacing:"0.01em"}}},chelt:{headline:{XXL:{medium:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"2.75rem",lineHeight:"110%",letterSpacing:"0em"},regular:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"2.75rem",lineHeight:"110%",letterSpacing:"0em"}},XL:{medium:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"2.375rem",lineHeight:"110%",letterSpacing:"0em"},regular:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"2.375rem",lineHeight:"110%",letterSpacing:"0em"}},L:{medium:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"2rem",lineHeight:"120%"},regular:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"2rem",lineHeight:"120%"}},M:{regular:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"1.625rem",lineHeight:"120%",letterSpacing:"0em"}},S:{regular:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"1.375rem",lineHeight:"120%",letterSpacing:"0em"}},XS:{regular:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"1.25rem",lineHeight:"125%",letterSpacing:"0.01px"}},XXS:{regular:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"1.125rem",lineHeight:"130%",letterSpacing:"0.01px"}}},body:{XXL:{medium:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"1.625rem",lineHeight:"32px"}},XL:{medium:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"1.375rem",lineHeight:"28px"}},L:{medium:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"1.25rem",lineHeight:"20px"},regular:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"1.25rem",lineHeight:"22px"}},M:{medium:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"1.125rem",lineHeight:"150%"},regular:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"1.125rem",lineHeight:"18px"}},S:{medium:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"1rem",lineHeight:"150%"},regular:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"1rem",lineHeight:"130%"}},XS:{medium:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"0.875rem",lineHeight:"130%"},italic:{fontFamily:v,fontStyle:"italic",fontWeight:500,fontSize:"0.875rem",lineHeight:"150%"},regular:{fontFamily:v,fontStyle:"normal",fontWeight:500,fontSize:"0.875rem",lineHeight:"150%"}}}},imperial:{body:{XXL:{medium:{fontFamily:y,fontStyle:"normal",fontWeight:400,fontSize:"1.563rem",lineHeight:"32px"}},XL:{medium:{fontFamily:y,fontStyle:"normal",fontWeight:400,fontSize:"1.313rem",lineHeight:"28px"}},L:{medium:{fontFamily:y,fontStyle:"normal",fontWeight:400,fontSize:"1.125rem",lineHeight:"28px"},regular:{fontFamily:y,fontStyle:"normal",fontWeight:300,fontSize:"1.125rem",lineHeight:"28px"}},M:{medium:{fontFamily:y,fontStyle:"normal",fontWeight:400,fontSize:"1rem",lineHeight:"150%"},regular:{fontFamily:y,fontStyle:"normal",fontWeight:300,fontSize:"1rem",lineHeight:"24px"}},S:{medium:{fontFamily:y,fontStyle:"normal",fontWeight:400,fontSize:"0.875rem",lineHeight:"130%"},regular:{fontFamily:y,fontStyle:"normal",fontWeight:300,fontSize:"0.875rem",lineHeight:"130%"}},XS:{medium:{fontFamily:y,fontStyle:"normal",fontWeight:400,fontSize:"0.75rem",lineHeight:"150%"},italic:{fontFamily:y,fontStyle:"italic",fontWeight:300,fontSize:"0.75rem",lineHeight:"150%"},regular:{fontFamily:y,fontStyle:"normal",fontWeight:300,fontSize:"0.75rem",lineHeight:"150%"}}}},franklin:{headline:{XL:{regular:{fontFamily:_,fontStyle:"normal",fontWeight:500,fontSize:"2.5rem",lineHeight:"100%",letterSpacing:"-0.01em"}},L:{semibold:{fontFamily:_,fontStyle:"normal",fontWeight:700,fontSize:"2rem",lineHeight:"100%",letterSpacing:"0.015em"}},M:{semibold:{fontFamily:_,fontStyle:"normal",fontWeight:600,fontSize:"1.75rem",lineHeight:"100%",letterSpacing:"0.015em"}},S:{semibold:{fontFamily:_,fontStyle:"normal",fontWeight:600,fontSize:"1.25rem",lineHeight:"100%",letterSpacing:"0.01em"},medium:{fontFamily:_,fontStyle:"normal",fontWeight:500,fontSize:"1.25rem",lineHeight:"100%"}}},utility:{XL:{medium:{fontFamily:_,fontStyle:"normal",fontWeight:600,fontSize:"1.125rem",lineHeight:"100%"},regular:{fontFamily:_,fontStyle:"normal",fontWeight:500,fontSize:"1.125rem",lineHeight:"100%"}},L:{medium:{fontFamily:_,fontStyle:"normal",fontWeight:600,fontSize:"1rem",lineHeight:"120%",letterSpacing:"0.25px"},regular:{fontFamily:_,fontStyle:"normal",fontWeight:500,fontSize:"1rem",lineHeight:"120%",letterSpacing:"0.25px"}},S:{medium:{fontFamily:_,fontStyle:"normal",fontWeight:600,fontSize:"0.875rem",lineHeight:"100%",letterSpacing:"0.015em"},regular:{fontFamily:_,fontStyle:"normal",fontWeight:500,fontSize:"0.875rem",lineHeight:"100%",letterSpacing:"0.01em"}},XS:{medium:{fontFamily:_,fontStyle:"normal",fontWeight:600,fontSize:"0.75rem",lineHeight:"100%",letterSpacing:"0.015em"},regular:{fontFamily:_,fontStyle:"normal",fontWeight:500,fontSize:"0.75rem",lineHeight:"100%",letterSpacing:"0.015em"}}},tag:{L:{medium:{fontFamily:_,fontStyle:"normal",fontWeight:700,fontSize:"0.875rem",lineHeight:"100%",letterSpacing:"0.015em",textTransform:"uppercase"}}}}},S=n(83417),w=n.n(S),k=n(42794),x=n.n(k),E={name:"chalkLight",breakpoints:f.Z,shape:p.Z,zIndex:h.Z,palette:m.Z,typography:b,scss:{palette:w(),typography:x()},themeMapping:{100:m.Z.constants.grey[700],200:m.Z.constants.grey[800],300:m.Z.constants.grey[700],400:m.Z.constants.grey[500],500:m.Z.constants.grey[400],600:m.Z.constants.grey[300],700:m.Z.constants.grey[200],800:m.Z.constants.grey[100],link:m.Z.constants.link[100],error:m.Z.constants.red[800],red:m.Z.constants.red[100],yellow:m.Z.constants.yellow[100],green:m.Z.constants.green[100],blue:m.Z.constants.blue[100],purple:m.Z.constants.purple[100],gradient:{100:m.Z.constants.grey[700],200:m.Z.constants.grey[800]},ads:{background:m.Z.adBackground,divider:m.Z.constants.grey[700],label:m.Z.constants.grey[300]},nyt:{divider:m.Z.nytDivider},typography:{article:b.imperial.body.L.medium,root:b.chelt.body.S.medium,brand1:b.slab.L.bold,brand2:b.slab.M.bold,brand3:b.slab.S.bold,brandInline:b.slab.S.bold,h1:b.chelt.headline.XXL.medium,h2:b.chelt.headline.XL.medium,h3:b.chelt.headline.L.medium,h4:b.chelt.headline.M.regular,h5:b.chelt.headline.S.regular,headlineXXS:b.chelt.headline.XS.regular,body1:b.imperial.body.L.regular,contentBodyRegular:b.chelt.body.M.regular,body2:b.chelt.body.S.regular,body3:b.chelt.body.XS.regular,bodyMediumXXL:b.chelt.body.XXL.medium,bodyMedium0:b.chelt.body.XL.medium,bodyMedium1:b.chelt.body.L.medium,bodyMedium2:b.chelt.body.M.medium,bodyMedium3:b.chelt.body.S.medium,bodyMedium4:b.chelt.body.XS.medium,utilityXLRegular:b.franklin.utility.XL.regular,utilityLRegular:b.franklin.utility.L.regular,utilitySRegular:b.franklin.utility.S.regular,utilityXSRegular:b.franklin.utility.XS.regular,utilityXLMedium:b.franklin.utility.XL.medium,utilityLMedium:b.franklin.utility.L.medium,utilitySMedium:b.franklin.utility.S.medium,utilityXSMedium:b.franklin.utility.XS.medium,tag:b.franklin.tag.L,tiemposHeadlineXLRegular:b.chelt.headline.XL.regular,headlineMSemibold:b.franklin.headline.L.semibold,headlineSSemibold:b.franklin.headline.M.semibold,headlineXSSemibold:b.franklin.headline.S.semibold}}},C=((0,s.ZP)(E),{constants:{grey:{100:"#000000",200:"#121212",300:"#323232",400:"#52524F",500:"#969693",600:"#C4C4C0",700:"#F0F0EE",800:"#FFFFFF"},link:{100:"#386C92",800:"#94B4DA"},red:{100:"#B72424",800:"#FD5757"},yellow:{100:"#C04300",800:"#F89A1E"},green:{100:"#026A2E",800:"#4EAB75"},blue:{100:"#225FA7",800:"#225FA7"},purple:{100:"#6D30BB",800:"#987FF7"}},userAvatars:{red:"#CB3939"},gradient:{100:"#000000",200:"#121212"},adBackground:"#323232",nytDivider:"#424242"}),T="RegularSlab",I="nyt-cheltenham, georgia,'times new roman',times, serif",O="nyt-franklin, helvetica, arial, sans-serif",A="nyt-imperial, georgia, 'times new roman', times, serif",R={slab:{L:{bold:{fontFamily:T,fontStyle:"normal",fontWeight:700,fontSize:"2.625rem",lineHeight:"48px",letterSpacing:" -0.005em"}},M:{bold:{fontFamily:T,fontStyle:"normal",fontWeight:700,fontSize:"1.688rem",lineHeight:"94%",letterSpacing:"-0.005em"}},S:{bold:{fontFamily:T,fontStyle:"normal",fontWeight:700,fontSize:"1.125rem",lineHeight:"100%",letterSpacing:"0.01em"}}},chelt:{headline:{XXL:{medium:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"2.75rem",lineHeight:"110%",letterSpacing:"0em"},regular:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"2.75rem",lineHeight:"110%",letterSpacing:"0em"}},XL:{medium:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"2.375rem",lineHeight:"110%",letterSpacing:"0em"},regular:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"2.375rem",lineHeight:"110%",letterSpacing:"0em"}},L:{medium:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"2rem",lineHeight:"120%"},regular:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"2rem",lineHeight:"120%"}},M:{regular:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"1.625rem",lineHeight:"120%",letterSpacing:"0em"}},S:{regular:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"1.375rem",lineHeight:"120%",letterSpacing:"0em"}},XS:{regular:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"1.25rem",lineHeight:"125%",letterSpacing:"0.01px"}},XXS:{regular:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"1.125rem",lineHeight:"130%",letterSpacing:"0.01px"}}},body:{XXL:{medium:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"1.625rem",lineHeight:"32px"}},XL:{medium:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"1.375rem",lineHeight:"28px"}},L:{medium:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"1.25rem",lineHeight:"20px"},regular:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"1.25rem",lineHeight:"22px"}},M:{medium:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"1.125rem",lineHeight:"150%"},regular:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"1.125rem",lineHeight:"18px"}},S:{medium:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"1rem",lineHeight:"150%"},regular:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"1rem",lineHeight:"130%"}},XS:{medium:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"0.875rem",lineHeight:"130%"},italic:{fontFamily:I,fontStyle:"italic",fontWeight:500,fontSize:"0.875rem",lineHeight:"150%"},regular:{fontFamily:I,fontStyle:"normal",fontWeight:500,fontSize:"0.875rem",lineHeight:"150%"}}}},imperial:{body:{XXL:{medium:{fontFamily:A,fontStyle:"normal",fontWeight:400,fontSize:"1.563rem",lineHeight:"32px"}},XL:{medium:{fontFamily:A,fontStyle:"normal",fontWeight:400,fontSize:"1.313rem",lineHeight:"28px"}},L:{medium:{fontFamily:A,fontStyle:"normal",fontWeight:400,fontSize:"1.125rem",lineHeight:"28px"},regular:{fontFamily:A,fontStyle:"normal",fontWeight:300,fontSize:"1.125rem",lineHeight:"28px"}},M:{medium:{fontFamily:A,fontStyle:"normal",fontWeight:400,fontSize:"1rem",lineHeight:"150%"},regular:{fontFamily:A,fontStyle:"normal",fontWeight:300,fontSize:"1rem",lineHeight:"24px"}},S:{medium:{fontFamily:A,fontStyle:"normal",fontWeight:400,fontSize:"0.875rem",lineHeight:"130%"},regular:{fontFamily:A,fontStyle:"normal",fontWeight:300,fontSize:"0.875rem",lineHeight:"130%"}},XS:{medium:{fontFamily:A,fontStyle:"normal",fontWeight:400,fontSize:"0.75rem",lineHeight:"150%"},italic:{fontFamily:A,fontStyle:"italic",fontWeight:300,fontSize:"0.75rem",lineHeight:"150%"},regular:{fontFamily:A,fontStyle:"normal",fontWeight:300,fontSize:"0.75rem",lineHeight:"150%"}}}},franklin:{headline:{XL:{regular:{fontFamily:O,fontStyle:"normal",fontWeight:500,fontSize:"2.5rem",lineHeight:"100%",letterSpacing:"-0.01em"}},L:{semibold:{fontFamily:O,fontStyle:"normal",fontWeight:700,fontSize:"2rem",lineHeight:"100%",letterSpacing:"0.015em"}},M:{semibold:{fontFamily:O,fontStyle:"normal",fontWeight:600,fontSize:"1.75rem",lineHeight:"100%",letterSpacing:"0.015em"}},S:{semibold:{fontFamily:O,fontStyle:"normal",fontWeight:600,fontSize:"1.25rem",lineHeight:"100%",letterSpacing:"0.01em"},medium:{fontFamily:O,fontStyle:"normal",fontWeight:500,fontSize:"1.25rem",lineHeight:"100%"}}},utility:{XL:{medium:{fontFamily:O,fontStyle:"normal",fontWeight:600,fontSize:"1.125rem",lineHeight:"100%"},regular:{fontFamily:O,fontStyle:"normal",fontWeight:500,fontSize:"1.125rem",lineHeight:"100%"}},L:{medium:{fontFamily:O,fontStyle:"normal",fontWeight:600,fontSize:"1rem",lineHeight:"120%",letterSpacing:"0.25px"},regular:{fontFamily:O,fontStyle:"normal",fontWeight:500,fontSize:"1rem",lineHeight:"120%",letterSpacing:"0.25px"}},S:{medium:{fontFamily:O,fontStyle:"normal",fontWeight:600,fontSize:"0.875rem",lineHeight:"100%",letterSpacing:"0.015em"},regular:{fontFamily:O,fontStyle:"normal",fontWeight:500,fontSize:"0.875rem",lineHeight:"100%",letterSpacing:"0.01em"}},XS:{medium:{fontFamily:O,fontStyle:"normal",fontWeight:600,fontSize:"0.75rem",lineHeight:"100%",letterSpacing:"0.015em"},regular:{fontFamily:O,fontStyle:"normal",fontWeight:500,fontSize:"0.75rem",lineHeight:"100%",letterSpacing:"0.015em"}}},tag:{L:{medium:{fontFamily:O,fontStyle:"normal",fontWeight:700,fontSize:"0.875rem",lineHeight:"100%",letterSpacing:"0.015em",textTransform:"uppercase"}}}}},N=n(150),D=n.n(N),P={name:"chalkDark",breakpoints:f.Z,shape:p.Z,zIndex:h.Z,palette:C,typography:R,scss:{palette:D(),typography:x()},themeMapping:{100:C.constants.grey[100],200:C.constants.grey[200],300:C.constants.grey[300],400:C.constants.grey[400],500:C.constants.grey[500],600:C.constants.grey[600],700:C.constants.grey[700],800:C.constants.grey[800],link:C.constants.link[800],error:C.constants.red[100],red:C.constants.red[800],yellow:C.constants.yellow[800],green:C.constants.green[800],blue:C.constants.blue[800],purple:C.constants.purple[800],gradient:{100:C.constants.grey[100],200:C.constants.grey[200]},ads:{background:C.adBackground,divider:C.constants.grey[400],label:C.constants.grey[600]},nyt:{divider:C.nytDivider},typography:{article:R.imperial.body.L.medium,root:R.chelt.body.S.medium,brand1:R.slab.L.bold,brand2:R.slab.M.bold,brand3:R.slab.S.bold,brandInline:R.slab.S.bold,h1:R.chelt.headline.XXL.medium,h2:R.chelt.headline.XL.medium,h3:R.chelt.headline.L.medium,h4:R.chelt.headline.M.regular,h5:R.chelt.headline.S.regular,headlineXXS:R.chelt.headline.XS.regular,body1:R.imperial.body.L.regular,contentBodyRegular:R.chelt.body.M.regular,body2:R.chelt.body.S.regular,body3:R.chelt.body.XS.regular,bodyMediumXXL:R.chelt.body.XXL.medium,bodyMedium0:R.chelt.body.XL.medium,bodyMedium1:R.chelt.body.L.medium,bodyMedium2:R.chelt.body.M.medium,bodyMedium3:R.chelt.body.S.medium,bodyMedium4:R.chelt.body.XS.medium,utilityXLRegular:R.franklin.utility.XL.regular,utilityLRegular:R.franklin.utility.L.regular,utilitySRegular:R.franklin.utility.S.regular,utilityXSRegular:R.franklin.utility.XS.regular,utilityXLMedium:R.franklin.utility.XL.medium,utilityLMedium:R.franklin.utility.L.medium,utilitySMedium:R.franklin.utility.S.medium,utilityXSMedium:R.franklin.utility.XS.medium,tag:R.franklin.tag.L,calibreHeadlineXLRegular:R.franklin.headline.XL.regular,headlineMSemibold:R.franklin.headline.L.semibold,headlineSSemibold:R.franklin.headline.M.semibold,headlineXSSemibold:R.franklin.headline.S.semibold}}},L=((0,s.ZP)(P),n(97624)),M={legacy:a.K.name,chalkLight:E.name,chalkDark:P.name},F=a.Z,j=(0,s.RC)(),U={chalkDark:"dark",chalkLight:"light",legacy:"legacy"},B=(0,i.createContext)({theme:a.Z,setActiveTheme:function(){return null}}),$=function(e){var t=e.children,n=e.initialTheme,c=j[n]||a.Z,u=(0,i.useState)(c),f=u[0],p=u[1],h=(0,s.Il)(f),m=(0,d.useRouter)(),g=function(e){var t=(0,s.RC)()[e]||F;p(t)};return(0,i.useEffect)((function(){window.setActiveTheme=function(e){var t=j[e];t?(p(t),m.push({pathname:window.location.pathname,query:{embed:1,theme:U[t.name]||"light"}},void 0,{shallow:!0})):console.log("No theme named ".concat(e))},window.theme=h,window.getThemes=s.RC}),[h]),(0,i.useEffect)((function(){window.matchMedia("(prefers-color-scheme:dark)").addEventListener("change",(function(e){var t,n,r=null===window||void 0===window||null===(t=window.navigator)||void 0===t?void 0:t.userAgent;("1"===(null===m||void 0===m||null===(n=m.query)||void 0===n?void 0:n.embed)||(0,L._)(r))&&(e.matches?g("chalkDark"):g("chalkLight"))}))}),[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(B.Provider,{value:{setActiveTheme:g,theme:f},children:(0,r.jsxs)(o.f6,{theme:h,children:[(0,r.jsx)(l,{}),t]})})})}},13872:function(e,t,n){"use strict";n.d(t,{J:function(){return _}});var r=n(47568),i=n(26042),o=n(69396),a=n(828),s=n(34051),c=n.n(s),u=n(79697),l=n(29008),d=n(15646),f=n(52393),p=n(67294),h=n(7297),m=n(7059),g=n(57492);function y(){var e=(0,h.Z)(["\n ","\n query UserInfoQuery {\n user {\n id\n firstName: first_name\n lastName: last_name\n\n ... on Customer {\n email\n athPlatform: ath_platform\n attributionSurveyEligible: attribution_survey_eligible\n contentEdition: content_edition\n commentStaffBadge: comment_staff_badge\n endDate: end_date\n hasLinkedAccountAlready: has_linked_via_self_service_merge\n hasSpecialAccessToLinkAccountPage: has_special_access_to_link_account_page\n hasSubscribed: has_subscribed\n isNyt: is_nyt\n isInGracePeriod: is_in_grace_period\n isShadowRegisteredUser: is_shadow_registered_user\n isSubscriber: is_subscriber\n isUK: is_uk\n onboardingCompleted: onboarding_completed\n onboardingSkipped: onboarding_skipped\n smartMeterPostLimit: smart_meter_post_limit\n emailOptInTerms: email_opt_in_terms\n displayName: display_name\n is_staff\n roles\n color\n comment_sort_preference {\n brief\n discussion\n game_v2\n headline\n podcast_episode\n post\n qanda\n }\n initials\n privacy_policy\n temp_ban_end_date\n terms_and_conditions\n user_scores\n registration_date\n\n following {\n ...Following\n }\n sports_connections {\n lastCompletedDatetimeSportsConnections\n lastCompletedPuzzleIdSportsConnections\n }\n }\n }\n }\n"]);return y=function(){return e},e}var v=(0,m.Ps)(y(),g.Z),_=function(e){var t=(0,a.Z)((0,f.Z)(),2),n=t[0],s=t[1],h=(0,p.useCallback)((0,r.Z)(c().mark((function t(){var r,a,f,p,h,m,g,y,_,b,S,w;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,f=null,p=null,h=!(0,u.Z)(null===n||void 0===n?void 0:n.ath_anonymous_user_id),m={credentials:"same-origin",headers:{"X-Ath-Session-Namespace":"theathletic","X-Ath-Country-Code":null!==e&&void 0!==e?e:"XX","X-FORCE-SHADOW":h?"1":"0"}},t.next=8,fetch((0,d.Z)("/session-verification/","https://www.nytimes.com/athletic"),m);case 8:if(200!==(g=t.sent).status){t.next=20;break}return t.next=12,g.json();case 12:return y=t.sent,p=(0,l.n)(null,y.access_token),t.next=16,p.query({query:v});case 16:_=t.sent.data,f={access_token:y.access_token,user_id:parseInt(_.user.id),is_staff:_.user.is_staff,roles:_.user.roles,terms_accepted:{terms_and_conditions:_.user.terms_and_conditions,privacy_policy:_.user.privacy_policy},following:_.user.following,comment_sort_preference:_.user.comment_sort_preference,temp_ban_end_date:_.user.temp_ban_end_date,user:_.user},t.next=36;break;case 20:return t.prev=20,t.next=24,g.json();case 24:if(S=t.sent,!(w=null===S||void 0===S||null===(b=S.error)||void 0===b?void 0:b.nyt_token_from_failed_shadow_registration)){t.next=30;break}return t.abrupt("return",{awaitingAuth:!1,user:{},nyt_token_from_failed_shadow_registration:w});case 30:throw new Error("failed to fetch nyt credentials, status not 200 (no nyt token in response)");case 31:t.next=36;break;case 33:throw t.prev=33,t.t0=t.catch(20),new Error("failed to fetch nyt credentials, status not 200");case 36:return!(null===f||void 0===f||null===(r=f.user)||void 0===r?void 0:r.contentEdition)||(null===n||void 0===n?void 0:n.ath_content_edition)&&(null===n||void 0===n?void 0:n.ath_content_edition)===(null===f||void 0===f||null===(a=f.user)||void 0===a?void 0:a.contentEdition)||s("ath_content_edition",f.user.contentEdition),t.abrupt("return",(0,o.Z)((0,i.Z)({},f),{awaitingAuth:!1,is_logged_in:!0}));case 40:return t.prev=40,t.t1=t.catch(0),t.abrupt("return",{user:{},awaitingAuth:!1});case 43:case"end":return t.stop()}}),t,null,[[0,40],[20,33]])}))),[n,s,e]);return{authenticate:h}}},47853:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var r=n(67294),i=n(41472);function o(){return(0,r.useContext)(i.B)}},96552:function(e,t,n){"use strict";n.d(t,{z:function(){return R}});var r=n(47568),i=n(26042),o=n(69396),a=n(828),s=n(29815),c=n(34051),u=n.n(c),l=n(67294),d=n(42238),f=n(71463),p=n(99833),h=n(2513),m=n(62286),g=n(11163),y=n(7297),v=n(7059),_=n(50319);function b(){var e=(0,y.Z)(["\n mutation PostEvent($input: EventInput!) {\n postEvent(input: $input)\n }\n"]);return b=function(){return e},e}var S={},w=(0,v.Ps)(b());function k(){var e=(0,y.Z)(["\n mutation PostWebVitalsEvent($input: EventInput!) {\n postWebVitalsEvent(input: $input)\n }\n"]);return k=function(){return e},e}var x={},E=(0,v.Ps)(k());var C=n(97019),T=n(8151),I=n(47853),O="web_vitals",A=["article-scroll","comments","ipm","paywall"];function R(){var e=(0,a.Z)(function(e){var t=(0,i.Z)({},S,e);return _.D(w,t)}(),1)[0],t=(0,a.Z)(function(e){var t=(0,i.Z)({},x,e);return _.D(E,t)}(),1)[0],n=(0,l.useContext)(f.V).authState,c=(0,l.useContext)(p.f).analyticsState,y=(0,l.useContext)(h.m).geoState,v=(0,g.useRouter)().query,b=v.entry_point,k=(0,m.parseCookies)(),R=(0,a.Z)((0,C.r)(),1)[0],N=(0,l.useState)([]),D=N[0],P=N[1],L=(0,I.B)().getVariant,M=new d.UAParser,F="1"===v.embed&&-1!==["iOS","Android"].indexOf(M.getOS().name)?M.getOS().name.toLowerCase():"web";(0,l.useEffect)((function(){var a=function(){var a=(0,r.Z)(u().mark((function r(a){var s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s=a.map((function(e){var t;return(0,o.Z)((0,i.Z)({},e),{user_id:(null===n||void 0===n?void 0:n.user_id)||-1,is_subscriber:!!(null===n||void 0===n||null===(t=n.user)||void 0===t?void 0:t.isSubscriber)})})),r.next=3,Promise.all(s.map((function(n){var r={variables:{input:n}};return n.verb===O?t(r):e(r)})));case 3:case"end":return r.stop()}}),r)})));return function(e){return a.apply(this,arguments)}}();!1===(null===n||void 0===n?void 0:n.awaitingAuth)&&a(D).then((function(){return P([])})).catch(console.error)}),[null===n||void 0===n?void 0:n.awaitingAuth]);var j=function(){if(window.nyt_et)for(;c._nyt_et_buffer.length;){var e=c._nyt_et_buffer.shift();window.nyt_et(e.type,"https://a.et.nytimes.com/","athletic-web",e.data)}},U=function(){var a=(0,r.Z)(u().mark((function r(a,l,f){var p,h,m,g,v,_,S,w,x,E,C,I,N,D,L,M,j,U,B,$,z,q,H,V,W,G,Z,X,Q,Y;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(c){r.next=3;break}return r.abrupt("return");case 3:if(l||!T.cZ){r.next=7;break}return R("postEvent.failure","incr",[{tag:"verb",value:a},{tag:"element",value:null!==(g=null===f||void 0===f?void 0:f.element)&&void 0!==g?g:"none"},{tag:"object_type",value:null!==(v=null===f||void 0===f?void 0:f.object_type)&&void 0!==v?v:"none"},{tag:"object_id",value:null!==(_=null===f||void 0===f?void 0:f.object_id)&&void 0!==_?_:"none"}]),r.abrupt("return");case 7:if(S=null,w=null,x=null,S=null!==(L=null===window||void 0===window||null===(E=window.config)||void 0===E||null===(C=E.userInfo)||void 0===C?void 0:C.regiId)&&void 0!==L?L:null,w=null!==(M=null===window||void 0===window||null===(I=window.config)||void 0===I||null===(N=I.userInfo)||void 0===N?void 0:N.entitlements)&&void 0!==M?M:null,x=null!==(j=null===window||void 0===window||null===(D=window.location)||void 0===D?void 0:D.href)&&void 0!==j?j:null,q=(0,o.Z)((0,i.Z)({},c.metaBlob),{referrer:null!==(U=null===document||void 0===document?void 0:document.referrer)&&void 0!==U?U:"",campaign:null!==(B=k.campaign)&&void 0!==B?B:"",cloudflare_country:null===y||void 0===y?void 0:y.countryCode,last_ad_id:null!==($=k.last_ad_id_clicked)&&void 0!==$?$:"",last_ad_id_clicktime:null!==(z=k.last_ad_id_clicktime)&&void 0!==z?z:"",url:x,nyt_entitlements:w,regi_id:S}),(null===f||void 0===f?void 0:f.metaBlobOverride)&&(q=(0,i.Z)((0,o.Z)((0,i.Z)({},q),{entry_point:"string"===typeof b?b:c.source}),f.metaBlobOverride)),H=new d.UAParser,V=H.getResult(),Q={browser_version:null===(p=V.browser)||void 0===p?void 0:p.version,browser:null!==(W=null===(h=V.browser)||void 0===h?void 0:h.name)&&void 0!==W?W:"Unknown",device_id:null,element:null!==(G=null===f||void 0===f?void 0:f.element)&&void 0!==G?G:null,event_timestamp:(null===f||void 0===f?void 0:f.event_timestamp)||Date.now(),is_subscriber:!!(null===n||void 0===n||null===(m=n.user)||void 0===m?void 0:m.isSubscriber),locale:c.locale,meta_blob:JSON.stringify(q),object_id:null!==(Z=null===f||void 0===f?void 0:f.object_id)&&void 0!==Z?Z:null,object_type:null!==(X=null===f||void 0===f?void 0:f.object_type)&&void 0!==X?X:null,platform:F,previous_view:c.previousView,session_id:c.sessionId,source:c.source,user_agent:JSON.stringify(V),user_id:(null===n||void 0===n?void 0:n.user_id)||-1,verb:a,view:l},!(null===n||void 0===n?void 0:n.awaitingAuth)){r.next=21;break}return P((function(e){return(0,s.Z)(e).concat([Q])})),r.abrupt("return");case 21:if(Y={variables:{input:Q}},a!==O){r.next=26;break}t(Y),r.next=28;break;case 26:return r.next=28,e(Y);case 28:"view"!==a||A.includes(l)||l.match(/modal/)||(c._lastViewEvent={view:l,object_id:Q.object_id,object_type:Q.object_type}),"view"===a&&"paywall"===l&&(c._lastPaywallEvent={object_id:Q.object_id,object_type:Q.object_type,metaBlobOverride:(0,i.Z)({paywall_element:Q.element},f.metaBlobOverride)});case 31:case"end":return r.stop()}}),r)})));return function(e,t,n){return a.apply(this,arguments)}}(),B=function(){var e=(0,r.Z)(u().mark((function e(t,n,r,i,o){var a;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=new Promise((function(e,t){setTimeout((function(){return t(new Error(i))}),r)})),e.prev=1,e.next=4,Promise.race([U(t,n,o),a]);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log(e.t0.message);case 9:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t,n,r,i,o){return e.apply(this,arguments)}}(),$={headline_id:"article_id"};return{log:U,logWebVitals:function(e){if(c){var t,n=c._lastViewEvent,r=c._lastPaywallEvent;U(O,null!==(t=null===n||void 0===n?void 0:n.view)&&void 0!==t?t:"",{metaBlobOverride:(0,i.Z)({},e,null===r||void 0===r?void 0:r.metaBlobOverride),object_id:null===n||void 0===n?void 0:n.object_id,object_type:null===n||void 0===n?void 0:n.object_type})}},logEventTrackerInit:function(){if(c&&!c.etInitialized){var e,t,n,r,i,o,a={type:"page_update",data:{referrer:null!==(o=null===document||void 0===document?void 0:document.referrer)&&void 0!==o?o:"",subject:"page",ta:{ad_id:null===c||void 0===c?void 0:c.ad_id,asset:{section:null===c||void 0===c||null===(e=c.asset)||void 0===e?void 0:e.section,type:null===c||void 0===c||null===(t=c.asset)||void 0===t?void 0:t.type},campaign:null===c||void 0===c?void 0:c.campaign,object_id:null===c||void 0===c||null===(n=c.ta)||void 0===n?void 0:n.object_id,object_type:null===c||void 0===c||null===(r=c.ta)||void 0===r?void 0:r.object_type,session_id:null===c||void 0===c?void 0:c.sessionId,source:null===c||void 0===c?void 0:c.source,user_id:null===c||void 0===c||null===(i=c.ta)||void 0===i?void 0:i.user_id,game_session_id:null===c||void 0===c?void 0:c.gameSessionId},url:null===window||void 0===window?void 0:window.location.href}};(c._nyt_et_buffer=c._nyt_et_buffer||[]).push(a),j(),c.etInitialized=!0}},logEventTrackerInteraction:function(e,t){if(c&&t){var n,r={type:"send",data:{subject:"interaction",eventData:{type:e},module:{element:{name:null===t||void 0===t?void 0:t.name,url:null===t||void 0===t?void 0:t.url,v_index:null===t||void 0===t?void 0:t.v_index,h_index:null===t||void 0===t?void 0:t.h_index,object_type:null!==(n=$[null===t||void 0===t?void 0:t.object_type])&&void 0!==n?n:null===t||void 0===t?void 0:t.object_type,object_id:null===t||void 0===t?void 0:t.object_id},label:null===t||void 0===t?void 0:t.label,name:null===t||void 0===t?void 0:t.container,page_order:null===t||void 0===t?void 0:t.page_order}}};"curated_module_id"==(null===t||void 0===t?void 0:t.parent_object_type)&&(r.data.module.label="module_id",r.data.module.context=null===t||void 0===t?void 0:t.parent_object_id),(c._nyt_et_buffer=c._nyt_et_buffer||[]).push(r),j()}},logEventTrackerImpressions:function(e){if(c&&e){var t,n=e.map((function(e){var t,n={type:"send",data:{subject:"impression",module:{context:e.context,element:{},label:null===e||void 0===e?void 0:e.element,name:null===e||void 0===e?void 0:e.container,page_order:e.page_order}}};(-1!=e.h_index&&(n.data.module.element.h_index=e.h_index),-1!=e.v_index&&(n.data.module.element.v_index=e.v_index),"undefined"!=e.object_id)&&(n.data.module.element.object_type=null!==(t=$[e.object_type])&&void 0!==t?t:e.object_type,n.data.module.element.object_id=e.object_id);return"curated_module_id"==(null===e||void 0===e?void 0:e.parent_object_type)&&(n.data.module.label="module_id",n.data.module.context=null===e||void 0===e?void 0:e.parent_object_id),n}));(t=c._nyt_et_buffer=c._nyt_et_buffer||[]).push.apply(t,(0,s.Z)(n)),j()}},logEventTrackerMedia:function(e,t){if(c&&t){var n={type:"send",data:{subject:"media",module:"podcast",eventName:null===t||void 0===t?void 0:t.event_name,object_type:"podcast_episode_id",object_id:null===t||void 0===t?void 0:t.object_id,mData:{videoType:e,video_uri:null===t||void 0===t?void 0:t.uri}}};(c._nyt_et_buffer=c._nyt_et_buffer||[]).push(n),j()}},logEventTrackerExpose:function(e,t){if(c){var n,r={type:"send",data:{subject:"ab_expose",test:e,variant:t,config_ver:L(".ver"),integration:null!==(n="the-athletic-prd")?n:""}};(c._nyt_et_buffer=c._nyt_et_buffer||[]).push(r),j()}},logWithTimeout:B}}},63352:function(e,t,n){"use strict";n.d(t,{t:function(){return h}});var r,i=n(26042),o=n(828),a=n(67294),s=n(62286),c=n(71463),u=n(99833),l=n(97019),d=n(11163);!function(e){e[e.UserBased=0]="UserBased",e[e.SessionBased=1]="SessionBased"}(r||(r={}));var f=function(e,t,n){return e==r.UserBased?"compass-user-".concat(t,"-").concat(n):e==r.SessionBased?"compass-session-".concat(n):null},p=function(e,t){return null!=e?r.UserBased:null!=t?r.SessionBased:null};var h=function(){var e,t=(0,a.useContext)(c.V).authState,n=(0,a.useContext)(u.f).analyticsState,r=(0,s.parseCookies)(),i=null!==(e=null===n||void 0===n?void 0:n.sessionId)&&void 0!==e?e:r.ath_anonymous_user_id,o=null===t||void 0===t?void 0:t.user_id,l=p(o,i),d=f(l,o,i);var h,m=localStorage.getItem(d),g=JSON.parse(m);return null!==(h=null===g||void 0===g?void 0:g.experiments)&&void 0!==h?h:[]};t.Z=function(e){var t,n=(0,a.useContext)(c.V).authState,h=(0,a.useContext)(u.f).analyticsState,m=(0,d.useRouter)(),g=new Date,y="https://api.theathletic.com/compass",v=(0,a.useState)(null),_=v[0],b=v[1],S=(0,a.useState)(null),w=S[0],k=S[1],x=(0,a.useState)(!1),E=x[0],C=x[1],T=(0,a.useState)(!1),I=T[0],O=T[1],A=(0,s.parseCookies)(),R=null!==(t=null===h||void 0===h?void 0:h.sessionId)&&void 0!==t?t:A.ath_anonymous_user_id,N=null===n||void 0===n?void 0:n.user_id,D=p(N,R),P=f(D,N,R),L=((0,o.Z)((0,l.r)(),1)[0],[{tag:"env",value:"prd-nyt"},{tag:"stack",value:"react"}]),M={env:"prd-nyt",stack:"react",sessionId:R};return(0,a.useEffect)((function(){var t=localStorage.getItem(P),n=localStorage.getItem("".concat(P,"-lastLoadedTimestamp")),i=JSON.parse(t),o=!1;if(null!=R){if(t)try{if(b(i.experiments.find((function(t){return t.id===e}))),(null===i||void 0===i?void 0:i.timestamp)&&parseInt(n)>Date.now()-216e5)return M.compassEvent="compass.config.loadfromcache",M.userAgent=navigator.userAgent,void(D===r.UserBased?O(!0):C(!0));o=!0}catch(c){localStorage.setItem(P,null),o=!0}else o=!0;if(o){var a=new URLSearchParams,s=(null===i||void 0===i?void 0:i.timestamp)?new Date(i.timestamp).toISOString().split(".")[0]+"Z":new Date(1970,0,1).toISOString().split(".")[0]+"Z";a.set("explorer_type","web"),a.set("type","other"),a.set("locale",navigator.language),a.set("bundle_identifier",navigator.userAgent),a.set("identifier",R),a.set("last_change_date",s),N&&a.set("user_identifier",N.toString()),L.push({tag:"compass_url",value:"https://api.theathletic.com/compass"},{tag:"api_version",value:"v3"}),M.userAgent=navigator.userAgent,M.compassEvent="compass.config.request",M.lastChangeDate=s,fetch("".concat(y,"/v3/config?").concat(a.toString()),{method:"GET"}).then((function(e){return L.push({tag:"status",value:e.status.toString()}),M.status=e.status.toString(),304===e.status?(D===r.UserBased?O(!0):C(!0),void localStorage.setItem("".concat(P,"-lastLoadedTimestamp"),Date.now().toString())):e.json()})).then((function(t){null!=t&&(b(t.experiments.find((function(t){return t.id===e}))),D===r.UserBased?O(!0):C(!0),localStorage.setItem(P,JSON.stringify(t)),localStorage.setItem("".concat(P,"-lastLoadedTimestamp"),Date.now().toString()),M.compassEvent="compass.config.success")})).catch((function(){M.compassEvent="compass.config.failure"}))}}}),[R,N]),(0,a.useEffect)((function(){window&&k(JSON.parse(window.localStorage.getItem("compassTreatmentOverride")))}),[]),(0,a.useEffect)((function(){window&&w&&w[e]&&g.getTime()>w[e].expiry&&window.localStorage.removeItem("compassTreatmentOverride")}),[w]),{getTreatmentForExperiment:function(){var t=m.query["compass-experiment"],n=m.query["compass-treatment"],o=(0,i.Z)({},w);if(n&&t&&e===t&&o)return new Promise((function(e){o[t]={variant:n,expiry:g.getTime()+36e5},window.localStorage.setItem("compassTreatmentOverride",JSON.stringify(o)),e(n)}));if(w&&w[e]&&g.getTime()2&&void 0!==arguments[2]?arguments[2]:{};(0,s.Z)(e,t,n),u((function(n){var a=(0,o.Z)((0,i.Z)({},n),(0,r.Z)({},e,t));return t||delete a[e],a}))}]}},97019:function(e,t,n){"use strict";n.d(t,{r:function(){return f}});var r=n(828),i=n(67294),o=n(26042),a=n(7297),s=n(7059),c=n(50319);function u(){var e=(0,a.Z)(["\n mutation EmitStat($input: StatInput!) {\n emitStat(input: $input)\n }\n"]);return u=function(){return e},e}var l={},d=(0,s.Ps)(u());function f(){var e=(0,r.Z)(function(e){var t=(0,o.Z)({},l,e);return c.D(d,t)}(),1)[0];return[(0,i.useCallback)((function(t,n,r){e({variables:{input:{key:t,function:n,tags:r}}})}),[e])]}},59441:function(e,t,n){"use strict";var r=n(67294),i=n(9445);t.Z=function(){var e=(0,r.useContext)(i.jr);return{getPageViewId:e.getPageViewId,updatePageViewId:e.updatePageViewId}}},29008:function(e,t,n){"use strict";n.d(t,{n:function(){return T},i:function(){return I}});var r,i=n(48702),o=n(35367),a=n(65075),s=n(55598),c=n(10984),u=n.n(c),l=n(54708),d=n(48964),f=n(16918),p=n(21436),h=n(53712),m=n(48216);function g(e){var t=Object.create(null),n=Object.create(null);return(0,p.O)(e)&&e.forEach((function(e){var r;t[e.message]=e,"string"==typeof(null===(r=e.extensions)||void 0===r?void 0:r.code)&&(n[e.extensions.code]=e)})),{persistedQueryNotSupported:!(!t.PersistedQueryNotSupported&&!n.PERSISTED_QUERY_NOT_SUPPORTED),persistedQueryNotFound:!(!t.PersistedQueryNotFound&&!n.PERSISTED_QUERY_NOT_FOUND)}}r||(r={});var y={disable:function(e){return e.meta.persistedQueryNotSupported},retry:function(e){var t=e.meta;return t.persistedQueryNotSupported||t.persistedQueryNotFound},useGETForHashedQueries:!1};var v=function(e){var t=new WeakMap;__DEV__?(0,d.kG)(e&&("function"===typeof e.sha256||"function"===typeof e.generateHash),'Missing/invalid "sha256" or "generateHash" function. Please configure one using the "createPersistedQueryLink(options)" options parameter.'):(0,d.kG)(e&&("function"===typeof e.sha256||"function"===typeof e.generateHash),25);var n=(0,h.o)(y,e),r=n.sha256,o=n.generateHash,a=void 0===o?function(e){return Promise.resolve(r((0,f.print)(e)))}:o,s=n.disable,c=n.retry,u=n.useGETForHashedQueries,v=!0,_=function(e){return new Promise((function(t){return t(a(e))}))};return new i.i((function(e,n){__DEV__?(0,d.kG)(n,"PersistedQueryLink cannot be the last link in the chain."):(0,d.kG)(n,26);var r=e.query;return new m.y((function(i){var o,a,d=!1,f=!1,h=function(t,r){var i=t.response,u=t.networkError;if(!d&&(i&&i.errors||u)){d=!0;var l=[],h=i&&i.errors;(0,p.O)(h)&&l.push.apply(l,h);var y=void 0;"string"!==typeof(null===u||void 0===u?void 0:u.result)&&(y=u&&u.result&&u.result.errors),(0,p.O)(y)&&l.push.apply(l,y);var _={response:i,networkError:u,operation:e,graphQLErrors:(0,p.O)(l)?l:void 0,meta:g(l)};if(v=!s(_),c(_))return o&&o.unsubscribe(),e.setContext({http:{includeQuery:!0,includeExtensions:v},fetchOptions:{method:"POST"}}),f&&e.setContext({fetchOptions:a}),void(o=n(e).subscribe(m))}r()},m={next:function(e){h({response:e},(function(){return i.next(e)}))},error:function(e){h({networkError:e},(function(){return i.error(e)}))},complete:i.complete.bind(i)};return e.setContext({http:{includeQuery:!v,includeExtensions:v}}),u&&v&&!function(e){return e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))}(e)&&(e.setContext((function(e){var t=e.fetchOptions,n=void 0===t?{}:t;return a=n,{fetchOptions:(0,l.pi)((0,l.pi)({},n),{method:"GET"})}})),f=!0),v?function(e){if(!e||"object"!==typeof e)return _(e);var n=t.get(e);return n||t.set(e,n=_(e)),n}(r).then((function(t){e.extensions.persistedQuery={version:1,sha256Hash:t},o=n(e).subscribe(m)})).catch(i.error.bind(i)):o=n(e).subscribe(m),function(){o&&o.unsubscribe()}}))}))},_=n(34747),b=n(36765);function S(e){return new i.i((function(t,n){return new m.y((function(r){var i,o,a;try{i=n(t).subscribe({next:function(i){i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}))?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.next(i)},error:function(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:n}))?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.error(i)},complete:function(){a||r.complete.bind(r)()}})}catch(s){e({networkError:s,operation:t,forward:n}),r.error(s)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function t(t){var n=e.call(this)||this;return n.link=S(t),n}(0,l.ZT)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(i.i);var w,k=n(69266),x=n(5313),E=function(e){function t(t){var n=e.call(this)||this;return t instanceof x.SubscriptionClient?n.subscriptionClient=t:n.subscriptionClient=new x.SubscriptionClient(t.uri,t.options,t.webSocketImpl),n}return(0,l.ZT)(t,e),t.prototype.request=function(e){return this.subscriptionClient.request(e)},t}(i.i),C=n(8151);function T(e,t){var n,r=!1,c={};t&&"undefined"!==t&&(c.Authorization="Bearer ".concat(t));var l=(null===e||void 0===e||null===(n=e.req)||void 0===n?void 0:n.headers)?e.req.headers["accept-language"]:null;c["Accept-Language"]=l;var d,f=v({sha256:k.JQ,useGETForHashedQueries:!0}),p=new(u())(C.aO?2e4:5e3).concat((0,_.L)({uri:"https://api.theathletic.com/graphql",credentials:"include",headers:c})),h=new E({uri:"wss://api.theathletic.com/gqlsubscriptions",options:{reconnect:!0,reconnectionAttempts:100,connectionParams:{Authorization:"Bearer ".concat(t)}}});S((function(e){var t=e.graphQLErrors;t&&t.forEach((function(e){var t=e.message;console.error("[GraphQL Error]: Message: ".concat(t))}))}));if(C.aO){var m=new i.i((function(e,t){return e.setContext({start:new Date}),t(e).map((function(t){var n=+new Date-e.getContext().start,r=((new TextEncoder).encode(JSON.stringify(t)).length/1024).toFixed(2);return console.log("[Apollo]\x1b[32m ".concat(e.operationName,"\x1b[0m took ").concat(Math.round(n),"ms to complete and returned a\x1b[34m payload of ").concat(r," kb\x1b[0m")),t}))})),g=[m,f,p];d=i.i.from(g)}else d=i.i.from([f,p]);var y=(0,o.V)((function(e){var t=e.query,n=(0,b.p$)(t);return"OperationDefinition"===n.kind&&"subscription"===n.operation}),h,d);return new a.f({connectToDevTools:C.aO,credentials:"include",ssrMode:r,link:y,cache:new s.h({possibleTypes:{ConsumableV2:["ArticleConsumable","CollectableConsumable","DefaultConsumable","LiveBlogConsumable","NewsConsumable","PodcastEpisodeConsumable","PostConsumable","PuzzleConsumable","StatsScoresConsumable"],TournamentGame:["AmericanFootballGame","BaseballGame","BasketballGame","HockeyGame","SoccerGame","TournamentPlaceholderGame"],Gamev2:["AmericanFootballGame","BaseballGame","BasketballGame","HockeyGame","SoccerGame"],Play:["BaseballPitchPlay","BaseballPlay"],TournamentGameTeam:["AmericanFootballGameTeam","BaseballGameTeam","BasketballGameTeam","HockeyGameTeam","SoccerGameTeam","TournamentPlaceholderGameTeam"]},typePolicies:{AmericanFootballGame:{fields:{away_team:{merge:function(e,t,n){return(0,n.mergeObjects)(e,t)}},home_team:{merge:function(e,t,n){return(0,n.mergeObjects)(e,t)}}}},DefaultGameScheduleGrouping:{fields:{games:{merge:function(e,t,n){var r=n.readField,i=n.mergeObjects,o=e?e.slice(0):[],a=Object.create(null);return e&&e.forEach((function(e,t){a[r("id",e)]=t})),t.forEach((function(e){var t=r("id",e),n=a[t];"number"===typeof n?o[n]=i(o[n],e):(a[t]=o.length,o.push(e))})),o}}}},Teamv2:{fields:{legacy_team:{merge:function(e,t,n){return(0,n.mergeObjects)(e,t)}}}}}}),name:"web",version:"1.0"})}function I(e,t,n){var r=null!==w&&void 0!==w?w:T(n,null===t||void 0===t?void 0:t.access_token);return e&&r.cache.restore(e),w||(null===t||void 0===t?void 0:t.awaitingAuth)||(w=r),r}},28712:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return dd},reportWebVitals:function(){return cd}});var r={};n.r(r),n.d(r,{BrowserClient:function(){return ft.R},ErrorBoundary:function(){return bu},Profiler:function(){return mu},SDK_VERSION:function(){return we.J},SEMANTIC_ATTRIBUTE_SENTRY_OP:function(){return U.$J},SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:function(){return U.S3},SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:function(){return U.TE},SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:function(){return U.Zj},Scope:function(){return $.s},WINDOW:function(){return dt.m9},addBreadcrumb:function(){return ke.n},addEventProcessor:function(){return w.Qy},addIntegration:function(){return xe.M5},addTracingExtensions:function(){return Ce},breadcrumbsIntegration:function(){return vt.f},browserApiErrorsIntegration:function(){return wt.t},browserProfilingIntegration:function(){return uu},browserTracingIntegration:function(){return P.E},captureConsoleIntegration:function(){return Ae},captureEvent:function(){return w.eN},captureException:function(){return w.Tb},captureFeedback:function(){return Re},captureMessage:function(){return w.uT},captureSession:function(){return w.cg},captureUnderscoreErrorException:function(){return D},captureUserFeedback:function(){return yt.Jd},chromeStackLineParser:function(){return ht.$3},close:function(){return w.xv},contextLinesIntegration:function(){return Ht},continueTrace:function(){return j.yn},createReduxEnhancer:function(){return ku},createTransport:function(){return Ne.q},createUserFeedbackEnvelope:function(){return gt.r},debugIntegration:function(){return De},dedupeIntegration:function(){return Pe.R},defaultRequestInstrumentationOptions:function(){return Dc.k3},defaultStackLineParsers:function(){return ht.d8},defaultStackParser:function(){return ht.Dt},endSession:function(){return w.TM},eventFromException:function(){return mt.dr},eventFromMessage:function(){return mt.aB},exceptionFromError:function(){return mt.GJ},extraErrorDataIntegration:function(){return Fe},feedbackAsyncIntegration:function(){return _c},feedbackIntegration:function(){return bc},feedbackSyncIntegration:function(){return bc},flush:function(){return w.yl},forceLoad:function(){return yt.Eg},functionToStringIntegration:function(){return je.C},geckoStackLineParser:function(){return ht.$Q},getActiveSpan:function(){return J.HN},getClient:function(){return S.s3},getCurrentHub:function(){return Ue},getCurrentScope:function(){return S.nZ},getDefaultIntegrations:function(){return yt.nV},getFeedback:function(){return qa},getGlobalScope:function(){return S.lW},getIsolationScope:function(){return S.aF},getReplay:function(){return ea},getRootSpan:function(){return J.Gx},getSpanDescendants:function(){return J.Dp},getSpanStatusFromHttpCode:function(){return k.ix},globalHandlersIntegration:function(){return _t.k},httpClientIntegration:function(){return Lt},httpContextIntegration:function(){return bt.s},inboundFiltersIntegration:function(){return Be.S},init:function(){return b.S1},instrumentOutgoingRequests:function(){return Dc.L7},isInitialized:function(){return w.dk},lastEventId:function(){return w.eW},lazyLoadIntegration:function(){return Et},linkedErrorsIntegration:function(){return St.O},makeBrowserOfflineTransport:function(){return Uc},makeFetchTransport:function(){return pt.f},makeMultiplexedTransport:function(){return Ve},metrics:function(){return Nc},moduleMetadataIntegration:function(){return Ye},onLoad:function(){return yt.lA},opera10StackLineParser:function(){return ht.NP},opera11StackLineParser:function(){return ht.HH},parameterize:function(){return Je},reactErrorHandler:function(){return du},reactRouterV3BrowserTracingIntegration:function(){return xu},reactRouterV4BrowserTracingIntegration:function(){return Iu},reactRouterV5BrowserTracingIntegration:function(){return Ou},reactRouterV6BrowserTracingIntegration:function(){return Bu},registerSpanErrorInstrumentation:function(){return Ee.a},replayCanvasIntegration:function(){return Oa},replayIntegration:function(){return Yo},reportingObserverIntegration:function(){return Ot},rewriteFramesIntegration:function(){return Ke.v},sendFeedback:function(){return Da},sessionTimingIntegration:function(){return tt},setContext:function(){return w.v},setCurrentClient:function(){return nt.K},setExtra:function(){return w.sU},setExtras:function(){return w.rJ},setHttpStatus:function(){return k.Q0},setMeasurement:function(){return rt.o},setTag:function(){return w.YA},setTags:function(){return w.mG},setUser:function(){return w.av},showReportDialog:function(){return yt.jp},spanToBaggageHeader:function(){return K.uc},spanToJSON:function(){return J.XU},spanToTraceHeader:function(){return J.Hb},startBrowserTracingNavigationSpan:function(){return Pc.og},startBrowserTracingPageLoadSpan:function(){return Pc.Wo},startInactiveSpan:function(){return j.qp},startNewTrace:function(){return j.Iw},startSession:function(){return w.yj},startSpan:function(){return j.GK},startSpanManual:function(){return j.V0},tanstackRouterBrowserTracingIntegration:function(){return Cu},thirdPartyErrorFilterIntegration:function(){return ot},useProfiler:function(){return yu},winjsStackLineParser:function(){return ht.R2},withActiveSpan:function(){return j._d},withErrorBoundary:function(){return Su},withIsolationScope:function(){return S.wi},withProfiler:function(){return gu},withScope:function(){return S.$e},withSentryConfig:function(){return b.wO},withSentryReactRouterV6Routing:function(){return Vu},withSentryRouting:function(){return Nu},withServerActionInstrumentation:function(){return be},wrapApiHandlerWithSentryVercelCrons:function(){return ge},wrapAppGetInitialPropsWithSentry:function(){return ne},wrapCreateBrowserRouter:function(){return Gu},wrapDocumentGetInitialPropsWithSentry:function(){return re},wrapErrorGetInitialPropsWithSentry:function(){return ie},wrapGenerationFunctionWithSentry:function(){return _e},wrapGetInitialPropsWithSentry:function(){return te},wrapGetServerSidePropsWithSentry:function(){return oe},wrapGetStaticPropsWithSentry:function(){return Y},wrapMiddlewareWithSentry:function(){return ye},wrapPageComponentWithSentry:function(){return ve},wrapRouteHandlerWithSentry:function(){return me},wrapServerComponentWithSentry:function(){return he},wrapUseRoutes:function(){return Wu},zodErrorsIntegration:function(){return lt}});var i=n(47568),o=n(26042),a=n(69396),s=n(828),c=n(29815),u=n(34051),l=n.n(u),d=n(85893),f=n(41472),p=n(66322),h=n(99833),m=n(71463),g=n(39494),y=n(2513),v=n(21124),_=n(67294),b=n(66479),S=n(24806),w=n(11027),k=n(80924),x=n(27575),E=n(42562),C=n(87364);function T(e,t){const n=t=>function(...n){return function(e,t){(0,k.Q0)(e,t.statusCode),e.end()}(e,this),t.call(this,...n)};t.end&&!t.end.__sentry_original__&&(0,x.hl)(t,"end",n)}async function I(){try{C.X&&E.kg.log("Flushing events..."),await(0,w.yl)(2e3),C.X&&E.kg.log("Done flushing events")}catch(e){C.X&&E.kg.log("Error while flushing events:\n",e)}}function O(e,t){return null!=e?e:t()}var A=n(82414),R=n(84756);function N(e){const t=R.n[Symbol.for("@vercel/request-context")],n=O((0,A.x)([t,"optionalAccess",e=>e.get,"optionalCall",e=>e()]),(()=>({})));(0,A.x)([n,"access",e=>e.waitUntil,"optionalCall",t=>t(e)])}async function D(e){const{req:t,res:n,err:r}=e,i=n&&n.statusCode||e.statusCode;return i&&i<500?Promise.resolve():e.pathname?((0,S.$e)((e=>{t&&e.setSDKProcessingMetadata({request:t}),(0,w.Tb)(r||`_error.js called with falsy error (${r})`,{mechanism:{type:"instrument",handled:!1,data:{function:"_error.getInitialProps"}}})})),void N(I())):Promise.resolve()}var P=n(80890),L=n(31365),M=n(34155);function F(){return M.env.NEXT_PHASE===L.PHASE_PRODUCTION_BUILD}var j=n(20386),U=n(12911),B=n(90759),$=n(10017);const z=new WeakMap;function q(e,t){if("object"===typeof e&&e){const n=z.get(e);return n||(z.set(e,t),t)}return t}const H=new WeakMap;function V(e){if("object"===typeof e&&e){const t=H.get(e);if(t)return t;{const t=new $.s;return H.set(e,t),t}}return new $.s}let W;function G(e){const t=R.n.AsyncLocalStorage;return t?(W||(W=new t),W.getStore()?e():(0,j.Iw)((()=>W.run(!0,(()=>e()))))):(C.X&&E.kg.warn("Tried to register AsyncLocalStorage async context strategy in a runtime that doesn't support AsyncLocalStorage."),e())}function Z(e){return e._sentrySpan}function X(e){return async function(...t){try{return await e.apply(this,t)}catch(n){throw(0,w.Tb)(n,{mechanism:{handled:!1}}),n}}}function Q(e,t,n,r){return async function(...i){return G((()=>{const o=V(t);return(0,S.wi)(o,(()=>{o.setTransactionName(`${r.dataFetchingMethodName} (${r.dataFetcherRouteName})`),o.setSDKProcessingMetadata({request:t});const a=t.headers&&(0,B.HD)(t.headers["sentry-trace"])?t.headers["sentry-trace"]:void 0,s=(0,A.x)([t,"access",e=>e.headers,"optionalAccess",e=>e.baggage]);return(0,j.yn)({sentryTrace:a,baggage:s},(()=>{const o=function(e,t,n){const r=Z(e);if(r)return r;const i=(0,j.qp)({name:n,forceTransaction:!0,op:"http.server",attributes:{[U.S3]:"auto.function.nextjs",[U.Zj]:"route"}});return i.setStatus({code:k.OP}),function(e,t){t._sentrySpan=e}(i,e),T(i,t),i}(t,n,r.requestedRouteName);return(0,j._d)(o,(()=>(0,j.V0)({op:"function.nextjs",name:`${r.dataFetchingMethodName} (${r.dataFetcherRouteName})`,attributes:{[U.S3]:"auto.function.nextjs",[U.Zj]:"route"}},(async t=>{t.setStatus({code:k.OP});try{return await e.apply(this,i)}catch(n){throw t.setStatus({code:k.jt,message:"internal_error"}),(0,A.x)([o,"optionalAccess",e=>e.setStatus,"call",e=>e({code:k.jt,message:"internal_error"})]),n}finally{t.end()}}))))}))}))})).finally((()=>{N(I())}))}}function Y(e,t){return new Proxy(e,{apply:(e,n,r)=>{if(F())return e.apply(n,r);return async function(e,t,n){const{parameterizedRoute:r,dataFetchingMethodName:i}=n;return(0,j.GK)({op:"function.nextjs",name:`${i} (${r})`,onlyIfParent:!0,attributes:{[U.S3]:"auto.function.nextjs",[U.Zj]:"route"}},(async n=>{n.setStatus({code:k.OP});try{return await e(...t)}catch(r){throw n.setStatus({code:k.jt,message:"internal_error"}),(0,w.Tb)(r,{mechanism:{handled:!1}}),r}finally{n.end()}})).finally((()=>{N(I())}))}(X(e),r,{parameterizedRoute:t,dataFetchingMethodName:"getStaticProps"})}})}var J=n(50304),K=n(8840),ee=n(6911);function te(e){return new Proxy(e,{apply:async(e,t,n)=>{if(F())return e.apply(t,n);const[r]=n,{req:i,res:o}=r,a=X(e);if(i&&o){const e=Q(a,i,o,{dataFetcherRouteName:r.pathname,requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),s=await async function(e,t){return O(e,t)}(await e.apply(t,n),(async()=>({}))),c=(0,J.HN)(),u=O(Z(i),(()=>c?(0,J.Gx)(c):void 0));if(u){const e=(0,J.Hb)(u);e&&(s._sentryTraceData=e);const t=(0,K.jC)(u),n=(0,ee.IQ)(t);n&&(s._sentryBaggage=n)}return s}return a.apply(t,n)}})}function ne(e){return new Proxy(e,{apply:async(e,t,n)=>{if(F())return e.apply(t,n);const[r]=n,{req:i,res:o}=r.ctx,a=X(e);if(i&&o){const e=Q(a,i,o,{dataFetcherRouteName:"/_app",requestedRouteName:r.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),s=await e.apply(t,n),c=(0,J.HN)(),u=O(Z(i),(()=>c?(0,J.Gx)(c):void 0));if(s.pageProps||(s.pageProps={}),u){const e=(0,J.Hb)(u);e&&(s.pageProps._sentryTraceData=e);const t=(0,K.jC)(u),n=(0,ee.IQ)(t);n&&(s.pageProps._sentryBaggage=n)}return s}return a.apply(t,n)}})}function re(e){return new Proxy(e,{apply:(e,t,n)=>{if(F())return e.apply(t,n);const[r]=n,{req:i,res:o}=r,a=X(e);if(i&&o){return Q(a,i,o,{dataFetcherRouteName:"/_document",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}).apply(t,n)}return a.apply(t,n)}})}function ie(e){return new Proxy(e,{apply:async(e,t,n)=>{if(F())return e.apply(t,n);const[r]=n,{req:i,res:o}=r,a=X(e);if(i&&o){const e=Q(a,i,o,{dataFetcherRouteName:"/_error",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),s=await e.apply(t,n),c=(0,J.HN)(),u=O(Z(i),(()=>c?(0,J.Gx)(c):void 0));if(u){const e=(0,J.Hb)(u);e&&(s._sentryTraceData=e);const t=(0,K.jC)(u),n=(0,ee.IQ)(t);n&&(s._sentryBaggage=n)}return s}return a.apply(t,n)}})}function oe(e,t){return new Proxy(e,{apply:async(e,n,r)=>{if(F())return e.apply(n,r);const[i]=r,{req:o,res:a}=i,s=Q(X(e),o,a,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),c=await s.apply(n,r);if(c&&"props"in c){const e=(0,J.HN)(),t=O(Z(o),(()=>e?(0,J.Gx)(e):void 0));if(t){const e=(0,J.Hb)(t);e&&(c.props._sentryTraceData=e);const n=(0,K.jC)(t),r=(0,ee.IQ)(n);r&&(c.props._sentryBaggage=r)}}return c}})}var ae=n(39850),se=n(61289);function ce(e){const t={};try{e.forEach(((e,n)=>{"string"===typeof e&&(t[n]=e)}))}catch(n){se.X&&E.kg.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return t}function ue(e){const t=ce(e.headers);return{method:e.method,url:e.url,headers:t}}var le=n(57976),de=n(9227);function fe(e){return(0,B.VZ)(e)&&"NEXT_NOT_FOUND"===e.digest}function pe(e){return(0,B.VZ)(e)&&"string"===typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}function he(e,t){const{componentRoute:n,componentType:r}=t;return new Proxy(e,{apply:(e,i,o)=>{const a=(0,A.x)([J.HN,"call",e=>e(),"optionalAccess",e=>e.spanContext,"call",e=>e(),"access",e=>e.traceId]);return G((()=>{const s=V(t.headers),c=t.headers?ce(t.headers):void 0;return s.setSDKProcessingMetadata({request:{headers:c}}),(0,S.wi)(s,(()=>(0,S.$e)((s=>{s.setTransactionName(`${r} Server Component (${n})`);const u=q(t.headers,(0,A.x)([c,"optionalAccess",e=>e["sentry-trace"]])?(0,le.pT)(c["sentry-trace"],c.baggage):{traceId:a||(0,de.DM)(),spanId:(0,de.DM)().substring(16)});return s.setPropagationContext(u),(0,j.V0)({op:"function.nextjs",name:`${r} Server Component (${n})`,forceTransaction:!0,attributes:{[U.Zj]:"component",[U.S3]:"auto.function.nextjs"}},(t=>(0,ae.i)((()=>e.apply(i,o)),(e=>{fe(e)?t.setStatus({code:k.jt,message:"not_found"}):pe(e)?t.setStatus({code:k.OP}):(t.setStatus({code:k.jt,message:"internal_error"}),(0,w.Tb)(e,{mechanism:{handled:!1}}))}),(()=>{t.end(),N(I())}))))}))))}))}})}function me(e,t){const{method:n,parameterizedRoute:r,headers:i}=t;return new Proxy(e,{apply:(e,t,o)=>G((()=>{const a=V(i),s=i?ce(i):{};a.setSDKProcessingMetadata({request:{headers:s}});const c=(0,le.pT)(s["sentry-trace"],s.baggage),u=q(i,c);return(0,S.wi)(a,(()=>(0,S.$e)((async i=>{i.setTransactionName(`${n} ${r}`),i.setPropagationContext(u);try{return(0,j.GK)({name:`${n} ${r}`,attributes:{[U.Zj]:"route",[U.$J]:"http.server",[U.S3]:"auto.function.nextjs"},forceTransaction:!0},(async n=>{const r=await(0,ae.i)((()=>e.apply(t,o)),(e=>{pe(e)||(fe(e)&&n?n.setStatus({code:k.jt,message:"not_found"}):(0,w.Tb)(e,{mechanism:{handled:!1}}))}));try{n&&r.status&&(0,k.Q0)(n,r.status)}catch(i){}return r}))}finally{N(I())}}))))}))})}function ge(e,t){return new Proxy(e,{apply:(e,n,r)=>{if(!r||!r[0])return e.apply(n,r);const[i]=r;let o;const a="nextUrl"in i?i.nextUrl.pathname:i.url,s="nextUrl"in i?i.headers.get("user-agent"):i.headers["user-agent"];if(!t||!(0,A.x)([s,"optionalAccess",e=>e.includes,"call",e=>e("vercel-cron")]))return e.apply(n,r);const c=t.find((e=>e.path===a));if(!c||!c.path||!c.schedule)return e.apply(n,r);const u=c.path,l=(0,w.c)({monitorSlug:u,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:c.schedule}}),d=Date.now()/1e3,f=()=>{(0,w.c)({checkInId:l,monitorSlug:u,status:"error",duration:Date.now()/1e3-d})};try{o=e.apply(n,r)}catch(p){throw f(),p}return"object"===typeof o&&null!==o&&"then"in o?(Promise.resolve(o).then((()=>{(0,w.c)({checkInId:l,monitorSlug:u,status:"ok",duration:Date.now()/1e3-d})}),(()=>{f()})),o):((0,w.c)({checkInId:l,monitorSlug:u,status:"ok",duration:Date.now()/1e3-d}),o)}})}function ye(e){return new Proxy(e,{apply:(e,t,n)=>{return(r=e,i={spanDescription:"middleware",spanOp:"middleware.nextjs",mechanismFunctionName:"withSentryMiddleware"},async function(...e){return G((()=>{const t=e[0];return(0,S.wi)(V(t),(n=>{let o,a;return t instanceof Request&&(o=t.headers.get("sentry-trace")||"",a=t.headers.get("baggage"),n.setSDKProcessingMetadata({request:ue(t)})),n.setTransactionName(i.spanDescription),(0,j.yn)({sentryTrace:o,baggage:a},(()=>(0,j.GK)({name:i.spanDescription,op:i.spanOp,forceTransaction:!0,attributes:{[U.Zj]:"route",[U.S3]:"auto.function.nextjs.withEdgeWrapping"}},(async t=>{const n=await(0,ae.i)((()=>r.apply(this,e)),(e=>{(0,w.Tb)(e,{mechanism:{type:"instrument",handled:!1,data:{function:i.mechanismFunctionName}}})}));return n instanceof Response?(0,k.Q0)(t,n.status):t.setStatus({code:k.OP}),n})))).finally((()=>{N(I())}))}))}))}).apply(t,n);var r,i}})}function ve(e){return"function"===typeof(t=e)&&(0,A.x)([t,"optionalAccess",e=>e.prototype,"optionalAccess",e=>e.isReactComponent])?class extends e{render(...e){return G((()=>(0,S.wi)((()=>{const t=(0,S.nZ)(),n="object"===typeof this.props&&null!==this.props&&"_sentryTraceData"in this.props&&"string"===typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(n){const e=(0,le.qG)(n);t.setContext("trace",{span_id:(0,A.x)([e,"optionalAccess",e=>e.parentSpanId]),trace_id:(0,A.x)([e,"optionalAccess",e=>e.traceId])})}try{return super.render(...e)}catch(r){throw(0,w.Tb)(r,{mechanism:{handled:!1}}),r}}))))}}:"function"===typeof e?new Proxy(e,{apply:(e,t,n)=>G((()=>(0,S.wi)((()=>{const r=(0,S.nZ)(),i=(0,A.x)([n,"optionalAccess",e=>e[0],"optionalAccess",e=>e._sentryTraceData]);if(i){const e=(0,le.qG)(i);r.setContext("trace",{span_id:(0,A.x)([e,"optionalAccess",e=>e.parentSpanId]),trace_id:(0,A.x)([e,"optionalAccess",e=>e.traceId])})}try{return e.apply(t,n)}catch(o){throw(0,w.Tb)(o,{mechanism:{handled:!1}}),o}}))))}):e;var t}function _e(e,t){const{requestAsyncStorage:n,componentRoute:r,componentType:i,generationFunctionIdentifier:o}=t;return new Proxy(e,{apply:(e,t,a)=>{const s=(0,A.x)([J.HN,"call",e=>e(),"optionalAccess",e=>e.spanContext,"call",e=>e(),"access",e=>e.traceId]);return G((()=>{let c,u;try{c=(0,A.x)([n,"optionalAccess",e=>e.getStore,"call",e=>e(),"optionalAccess",e=>e.headers])}catch(f){}if((0,A.x)([S.s3,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e(),"access",e=>e.sendDefaultPii])){const e=a[0],t=e&&"object"===typeof e&&"params"in e?e.params:void 0,n=e&&"object"===typeof e&&"searchParams"in e?e.searchParams:void 0;u={params:t,searchParams:n}}const l=c?ce(c):void 0,d=V(c);return(0,S.wi)(d,(()=>(0,S.$e)((n=>{n.setTransactionName(`${i}.${o} (${r})`),d.setSDKProcessingMetadata({request:{headers:l}});const f=q(c,(0,A.x)([l,"optionalAccess",e=>e["sentry-trace"]])?(0,le.pT)(l["sentry-trace"],l.baggage):{traceId:s||(0,de.DM)(),spanId:(0,de.DM)().substring(16)});return n.setExtra("route_data",u),n.setPropagationContext(f),(0,j.V0)({op:"function.nextjs",name:`${i}.${o} (${r})`,forceTransaction:!0,attributes:{[U.Zj]:"route",[U.S3]:"auto.function.nextjs"}},(n=>(0,ae.i)((()=>e.apply(t,a)),(e=>{fe(e)?n.setStatus({code:k.jt,message:"not_found"}):pe(e)?n.setStatus({code:k.OP}):(n.setStatus({code:k.jt,message:"internal_error"}),(0,w.Tb)(e,{mechanism:{handled:!1}}))}),(()=>{n.end()}))))}))))}))}})}function be(...e){if("function"===typeof e[1]){const[t,n]=e;return Se(t,{},n)}{const[t,n,r]=e;return Se(t,n,r)}}async function Se(e,t,n){return G((()=>(0,S.wi)((r=>{const i=(0,A.x)([S.s3,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e(),"access",e=>e.sendDefaultPii]);let o,a;const s={};try{o=O((0,A.x)([t,"access",e=>e.headers,"optionalAccess",e=>e.get,"call",e=>e("sentry-trace")]),(()=>{})),a=(0,A.x)([t,"access",e=>e.headers,"optionalAccess",e=>e.get,"call",e=>e("baggage")]),(0,A.x)([t,"access",e=>e.headers,"optionalAccess",e=>e.forEach,"call",e=>e(((e,t)=>{s[t]=e}))])}catch(c){C.X&&E.kg.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return r.setTransactionName(`serverAction/${e}`),r.setSDKProcessingMetadata({request:{headers:s}}),(0,j.yn)({sentryTrace:o,baggage:a},(async()=>{try{return await(0,j.GK)({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[U.Zj]:"route"}},(async e=>{const r=await(0,ae.i)(n,(t=>{fe(t)?e.setStatus({code:k.jt,message:"not_found"}):pe(t)||(e.setStatus({code:k.jt,message:"internal_error"}),(0,w.Tb)(t,{mechanism:{handled:!1}}))}));return(void 0!==t.recordResponse?t.recordResponse:i)&&(0,S.aF)().setExtra("server_action_result",r),t.formData&&t.formData.forEach(((e,t)=>{(0,S.aF)().setExtra(`server_action_form_data.${t}`,"string"===typeof e?e:"[non-string value]")})),r}))}finally{N(I())}}))}))))}var we=n(40539),ke=n(56860),xe=n(84629),Ee=n(2944);function Ce(){(0,Ee.a)()}var Te=n(47141),Ie=n(56295),Oe=n(27202);const Ae=(0,xe._I)(((e={})=>{const t=e.levels||E.RU;return{name:"CaptureConsole",setup(e){"console"in R.n&&(0,Te.e)((({args:n,level:r})=>{(0,S.s3)()===e&&t.includes(r)&&function(e,t){const n={level:(0,Ie.V)(t),extra:{arguments:e}};(0,S.$e)((r=>{if(r.addEventProcessor((e=>(e.logger="console",(0,de.EG)(e,{handled:!1,type:"console"}),e))),"assert"===t){if(!e[0]){const t=`Assertion failed: ${(0,Oe.nK)(e.slice(1)," ")||"console.assert"}`;r.setExtra("arguments",e.slice(1)),(0,w.uT)(t,n)}return}const i=e.find((e=>e instanceof Error));if(i)return void(0,w.Tb)(i,n);const o=(0,Oe.nK)(e," ");(0,w.uT)(o,n)}))}(n,r)}))}}}));function Re(e,t={},n=(0,S.nZ)()){const{message:r,name:i,email:o,url:a,source:s,associatedEventId:c,tags:u}=e,l={contexts:{feedback:(0,x.Jr)({contact_email:o,name:i,message:r,url:a,source:s,associated_event_id:c})},type:"feedback",level:"info",tags:u},d=n&&n.getClient()||(0,S.s3)();d&&d.emit("beforeSendFeedback",l,t);return n.captureEvent(l,t)}var Ne=n(15943);const De=(0,xe._I)(((e={})=>{const t={debugger:!1,stringify:!1,...e};return{name:"Debug",setup(e){e.on("beforeSendEvent",((e,n)=>{t.debugger,(0,E.Cf)((()=>{t.stringify?(console.log(JSON.stringify(e,null,2)),n&&Object.keys(n).length&&console.log(JSON.stringify(n,null,2))):(console.log(e),n&&Object.keys(n).length&&console.log(n))}))}))}}}));var Pe=n(534),Le=n(81895),Me=n(62066);const Fe=(0,xe._I)(((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,i){const{maxValueLength:o=250}=i.getOptions();return function(e,t={},n,r,i){if(!t.originalException||!(0,B.VZ)(t.originalException))return e;const o=t.originalException.name||t.originalException.constructor.name,a=function(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(const t of Object.keys(e)){if(-1!==r.indexOf(t))continue;const o=e[t];i[t]=(0,B.VZ)(o)||"string"===typeof o?(0,Oe.$G)(`${o}`,n):o}if(t&&void 0!==e.cause&&(i.cause=(0,B.VZ)(e.cause)?e.cause.toString():e.cause),"function"===typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];i[e]=(0,B.VZ)(n)?n.toString():n}}return i}catch(r){Me.X&&E.kg.error("Unable to extract extra data from the Error object:",r)}return null}(t.originalException,r,i);if(a){const t={...e.contexts},r=(0,Le.Fv)(a,n);return(0,B.PO)(r)&&((0,x.xp)(r,"__sentry_skip_normalization__",!0),t[o]=r),{...e,contexts:t}}return e}(e,r,t,n,o)}}}));var je=n(7169);const Ue=function(){return{bindClient(e){(0,S.nZ)().setClient(e)},withScope:S.$e,getClient:()=>(0,S.s3)(),getScope:S.nZ,getIsolationScope:S.aF,captureException:(e,t)=>(0,S.nZ)().captureException(e,t),captureMessage:(e,t,n)=>(0,S.nZ)().captureMessage(e,t,n),captureEvent:w.eN,addBreadcrumb:ke.n,setUser:w.av,setTags:w.mG,setTag:w.YA,setExtra:w.sU,setExtras:w.rJ,setContext:w.v,getIntegration(e){const t=(0,S.s3)();return t&&t.getIntegrationByName(e.id)||null},startSession:w.yj,endSession:w.TM,captureSession(e){if(e)return(0,w.TM)();!function(){const e=(0,S.nZ)(),t=(0,S.s3)(),n=e.getSession();t&&n&&t.captureSession(n)}()}}};var Be=n(33241),$e=n(97259),ze=n(43854),qe=n(85817);function He(e,t){let n;return(0,$e.gv)(e,((e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n))),n}function Ve(e,t){return n=>{const r=e(n),i=new Map;function o(t,r){const o=r?`${t}:${r}`:t;let a=i.get(o);if(!a){const s=(0,ze.U4)(t);if(!s)return;const c=(0,qe.U)(s,n.tunnel);a=r?function(e,t){return n=>{const r=e(n);return{...r,send:async e=>{const n=He(e,["event","transaction","profile","replay_event"]);return n&&(n.release=t),r.send(e)}}}}(e,r)({...n,url:c}):e({...n,url:c}),i.set(o,a)}return[t,a]}return{send:async function(e){const n=t({envelope:e,getEvent:function(t){const n=t&&t.length?t:["event"];return He(e,n)}}).map((e=>"string"===typeof e?o(e,void 0):o(e.dsn,e.release))).filter((e=>!!e)),i=n.length?n:[["",r]],a=await Promise.all(i.map((([t,n])=>n.send(function(e,t){return(0,$e.Jd)(t?{...e[0],dsn:t}:e[0],e[1])}(e,t)))));return a[0]},flush:async function(e){const t=[...i.values(),r];return(await Promise.all(t.map((t=>t.flush(e))))).every((e=>e))}}}}const We=new Map,Ge=new Set;function Ze(e,t){return function(e){if(R.n._sentryModuleMetadata)for(const t of Object.keys(R.n._sentryModuleMetadata)){const n=R.n._sentryModuleMetadata[t];if(Ge.has(t))continue;Ge.add(t);const r=e(t);for(const e of r.reverse())if(e.filename){We.set(e.filename,n);break}}}(e),We.get(t)}function Xe(e,t){try{t.exception.values.forEach((t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[]){if(!n.filename||n.module_metadata)continue;const t=Ze(e,n.filename);t&&(n.module_metadata=t)}}))}catch(zs){}}function Qe(e){try{e.exception.values.forEach((e=>{if(e.stacktrace)for(const t of e.stacktrace.frames||[])delete t.module_metadata}))}catch(zs){}}const Ye=(0,xe._I)((()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",(e=>{(0,$e.gv)(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(Qe(t),e[1]=t)}}))}))},processEvent:(e,t,n)=>(Xe(n.getOptions().stackParser,e),e)})));function Je(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}var Ke=n(36204),et=n(30554);const tt=(0,xe._I)((()=>{const e=1e3*(0,et.ph)();return{name:"SessionTiming",processEvent(t){const n=1e3*(0,et.ph)();return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}}));var nt=n(84890),rt=n(6837),it=n(20290);const ot=(0,xe._I)((e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",(e=>{(0,$e.gv)(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(Qe(t),e[1]=t)}}))}))},processEvent(t,n,r){Xe(r.getOptions().stackParser,t);const i=function(e){const t=(0,it.Fr)(e);if(!t)return;return t.filter((e=>!!e.filename)).map((e=>e.module_metadata?Object.keys(e.module_metadata).filter((e=>e.startsWith(at))).map((e=>e.slice(at.length))):[]))}(t);if(i){const n=i["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"]((t=>!t.some((t=>e.filterKeys.includes(t)))));if(n){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}}return t}})));const at="_sentryBundlerPluginAppKey:";function st(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function ct(e){const t=new Set;for(const r of e.issues)r.path&&r.path[0]&&t.add(r.path[0]);const n=Array.from(t);return`Failed to validate keys: ${(0,Oe.$G)(n.join(", "),100)}`}function ut(e,t,n){return t.exception&&t.exception.values&&n&&n.originalException&&(r=n.originalException,(0,B.VZ)(r)&&"ZodError"===r.name&&Array.isArray(r.errors))&&0!==n.originalException.issues.length?{...t,exception:{...t.exception,values:[{...t.exception.values[0],value:ct(n.originalException)},...t.exception.values.slice(1)]},extra:{...t.extra,"zoderror.issues":n.originalException.errors.slice(0,e).map(st)}}:t;var r}const lt=(0,xe._I)(((e={})=>{const t=e.limit||10;return{name:"ZodErrors",processEvent:(e,n)=>ut(t,e,n)}}));var dt=n(41776),ft=n(24608),pt=n(35825),ht=n(74012),mt=n(56465),gt=n(16728),yt=n(35284),vt=n(45023),_t=n(11159),bt=n(83553),St=n(6415),wt=n(66106);const kt={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling"},xt=dt.m9;async function Et(e){const t=kt[e],n=xt.Sentry=xt.Sentry||{};if(!t)throw new Error(`Cannot lazy load integration: ${e}`);const r=n[e];if("function"===typeof r)return r;const i=function(e){const t=(0,S.s3)(),n=t&&t.getOptions(),r=n&&n.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${we.J}/${e}.min.js`,r).toString()}(t),o=dt.m9.document.createElement("script");o.src=i,o.crossOrigin="anonymous";const a=new Promise(((e,t)=>{o.addEventListener("load",(()=>e())),o.addEventListener("error",t)}));dt.m9.document.body.appendChild(o);try{await a}catch(c){throw new Error(`Error when loading integration: ${e}`)}const s=n[e];if("function"!==typeof s)throw new Error(`Could not load integration: ${e}`);return s}var Ct=n(36027);const Tt=R.n,It=new WeakMap,Ot=(0,xe._I)(((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(e){if(It.has((0,S.s3)()))for(const t of e)(0,S.$e)((e=>{e.setExtra("url",t.url);const n=`ReportingObserver [${t.type}]`;let r="No details available";if(t.body){const n={};for(const e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){const e=t.body;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else{r=t.body.message||r}}(0,w.uT)(`${n}: ${r}`)}))}return{name:"ReportingObserver",setupOnce(){if(!(0,Ct.zb)())return;new Tt.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){It.set(e,!0)}}}));var At=n(6341);function Rt(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){if(!t)return!1;return Nt(e)===Nt(t)}(e,r)}function Nt(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var Dt=n(62696),Pt=n(80149);const Lt=(0,xe._I)(((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){if(!(0,Ct.t$)())return;(0,Dt.U)((n=>{if((0,S.s3)()!==e)return;const{response:r,args:i}=n,[o,a]=i;r&&function(e,t,n,r){if(Ut(e,n.status,n.url)){const e=function(e,t){if(!t&&e instanceof Request)return e;if(e instanceof Request&&e.bodyUsed)return e;return new Request(e,t)}(t,r);let i,o,a,s;$t()&&([i,a]=Mt("Cookie",e),[o,s]=Mt("Set-Cookie",n));const c=Bt({url:e.url,method:e.method,status:n.status,requestHeaders:i,responseHeaders:o,requestCookies:a,responseCookies:s});(0,w.eN)(c)}}(t,o,r,a)}))}(e,t),function(e,t){if(!("XMLHttpRequest"in R.n))return;(0,At.UK)((n=>{if((0,S.s3)()!==e)return;const r=n.xhr,i=r[At.xU];if(!i)return;const{method:o,request_headers:a}=i;try{!function(e,t,n,r){if(Ut(e,t.status,t.responseURL)){let e,o,a;if($t()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(o=jt(e))}catch(i){Pt.X&&E.kg.log("Could not extract cookies from response headers")}try{a=function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return n&&r&&(e[n]=r),e}),{})}(t)}catch(i){Pt.X&&E.kg.log("Could not extract headers from response")}e=r}const s=Bt({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:a,responseCookies:o});(0,w.eN)(s)}}(t,r,o,a)}catch(s){Pt.X&&E.kg.warn("Error while extracting response event form XHR response",s)}}))}(e,t)}}}));function Mt(e,t){const n=function(e){const t={};return e.forEach(((e,n)=>{t[n]=e})),t}(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=jt(t))}catch(i){Pt.X&&E.kg.log(`Could not extract cookies from header ${e}`)}return[n,r]}function Ft(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function jt(e){return e.split("; ").reduce(((e,t)=>{const[n,r]=t.split("=");return n&&r&&(e[n]=r),e}),{})}function Ut(e,t,n){return function(e,t){return e.some((e=>"number"===typeof e?e===t:t>=e[0]&&t<=e[1]))}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,i=n,r.some((e=>"string"===typeof e?i.includes(e):e.test(i))))&&!Rt(n,(0,S.s3)());var r,i}function Bt(e){const t=`HTTP Client Error with status code: ${e.status}`,n={message:t,exception:{values:[{type:"Error",value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:Ft(e.responseHeaders)}}};return(0,de.EG)(n,{type:"http.client",handled:!1}),n}function $t(){const e=(0,S.s3)();return!!e&&Boolean(e.getOptions().sendDefaultPii)}var zt=n(90210);const qt=R.n,Ht=(0,xe._I)(((e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>function(e,t){const n=qt.document,r=qt.location&&(0,zt.rt)(qt.location.href);if(!n||!r)return e;const i=e.exception&&e.exception.values;if(!i||!i.length)return e;const o=n.documentElement.innerHTML;if(!o)return e;const a=["","",...o.split("\n"),""];return i.forEach((e=>{const n=e.stacktrace;n&&n.frames&&(n.frames=n.frames.map((e=>function(e,t,n,r){if(e.filename!==n||!e.lineno||!t.length)return e;return(0,de.go)(t,e,r),e}(e,a,r,t))))})),e}(e,t)}}));var Vt=n(77042),Wt=n(25360),Gt=n(72929),Zt=n(9425),Xt=n(37699),Qt=n(72565),Yt=n(34155);function Jt(){return"undefined"!==typeof window&&(!(!(0,Qt.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof Yt?Yt:0))||void 0!==R.n.process&&"renderer"===R.n.process.type)}var Kt=n(81020),en=n(34374),tn=n(94485),nn=n(32319);const rn=R.n,on="sentryReplaySession",an="Unable to send Replay",sn=15e4,cn=5e3,un=2e7,ln=36e5;function dn(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}var fn;function pn(e){const t=dn([e,"optionalAccess",e=>e.host]);return Boolean(dn([t,"optionalAccess",e=>e.shadowRoot])===e)}function hn(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function mn(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,gn).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(n){return null}var t}function gn(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=mn(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(n){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(fn||(fn={}));class yn{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=dn([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]);return r=()=>-1,null!=(n=t)?n:r();var n,r}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function vn({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function _n({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function bn(e){return e.toLowerCase()}function Sn(e){return e.toUpperCase()}const wn="__rrweb_original__";function kn(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?bn(t):null}function xn(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let En=1;const Cn=new RegExp("[^a-z0-9-_:]");function Tn(){return En++}let In,On;const An=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Rn=/^(?:[a-z+]+:)?\/\//i,Nn=/^www\..*/i,Dn=/^(data:)([^,]*),(.*)/i;function Pn(e,t){return(e||"").replace(An,((e,n,r,i,o,a)=>{const s=r||o||a,c=n||i||"";if(!s)return e;if(Rn.test(s)||Nn.test(s))return`url(${c}${s}${c})`;if(Dn.test(s))return`url(${c}${s}${c})`;if("/"===s[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s}${c})`;const u=t.split("/"),l=s.split("/");u.pop();for(const t of l)"."!==t&&(".."===t?u.pop():u.push(t));return`url(${c}${u.join("/")}${c})`}))}const Ln=/^[^ \t\n\r\u000c]+/,Mn=/^[, \t\n\r\u000c]+/;function Fn(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function jn(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Un(){const e=document.createElement("a");return e.href="http://www.bamdascore.com",e.href}function Bn(e,t,n,r,i,o){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Fn(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}const i=[];for(;r(Mn),!(n>=t.length);){let o=r(Ln);if(","===o.slice(-1))o=Fn(e,o.substring(0,o.length-1)),i.push(o);else{let r="";o=Fn(e,o);let a=!1;for(;;){const e=t.charAt(n);if(""===e){i.push((o+r).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){n+=1,i.push((o+r).trim());break}"("===e&&(a=!0)}r+=e,n+=1}}}return i.join(", ")}(e,r):"style"===n?Pn(r,Un()):"object"===t&&"data"===n?Fn(e,r):"function"===typeof o?o(n,r,i):r:Fn(e,r):r}function $n(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function zn(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:zn(e.parentNode,t,n,r+1):-1}function qn(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"===typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(i){return!1}}}function Hn(e,t,n,r,i,o){try{const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){const e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,c=-1;if(o){if(c=zn(a,qn(r,i)),c<0)return!0;s=zn(a,qn(t,n),c>=0?c:1/0)}else{if(s=zn(a,qn(t,n)),s<0)return!1;c=zn(a,qn(r,i),s>=0?s:1/0)}return s>=0?!(c>=0)||s<=c:!(c>=0)&&!!o}catch(a){}return!!o}function Vn(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:S=!1}=t,w=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:fn.Document,childNodes:[],compatMode:e.compatMode}:{type:fn.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:fn.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:o,inlineStylesheet:a,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskAllText:g,maskTextClass:y,unmaskTextClass:v,maskTextSelector:_,unmaskTextSelector:b}=t,S=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"===typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(i){}return!1}(e,r,i,o),w=function(e){if(e instanceof HTMLFormElement)return"form";const t=bn(e.tagName);return Cn.test(t)?"div":t}(e);let k={};const x=e.attributes.length;for(let T=0;Tt.href===e.href));let r=null;t&&(r=mn(t)),r&&(delete k.rel,delete k.href,k._cssText=Pn(r,t.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=mn(e.sheet);t&&(k._cssText=Pn(t,Un()))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const t=e,n=kn(t),r=xn(t,Sn(w),n),i=t.checked;if("submit"!==n&&"button"!==n&&r){const e=Hn(t,y,_,v,b,vn({type:n,tagName:Sn(w),maskInputOptions:s}));k.value=_n({isMasked:e,element:t,value:r,maskInputFn:u})}i&&(k.checked=i)}"option"===w&&(e.selected&&!s.select?k.selected=!0:delete k.selected);if("canvas"===w&&f)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n0!==e)))return!1}return!0})(e)||(k.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(l.type,l.quality)&&(k.rr_dataURL=t)}if("img"===w&&d){In||(In=n.createElement("canvas"),On=In.getContext("2d"));const t=e,r=t.crossOrigin;t.crossOrigin="anonymous";const i=()=>{t.removeEventListener("load",i);try{In.width=t.naturalWidth,In.height=t.naturalHeight,On.drawImage(t,0,0),k.rr_dataURL=In.toDataURL(l.type,l.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}r?k.crossOrigin=r:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}"audio"!==w&&"video"!==w||(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop));if(S){const{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==w||p(k.src)||(e.contentDocument||(k.rr_src=k.src),delete k.src);let E;try{customElements.get(w)&&(E=!0)}catch(C){}return{type:fn.Element,tagName:w,attributes:k,childNodes:[],isSVG:jn(e)||void 0,needBlock:S,rootId:m,isCustom:E}}(e,{doc:n,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:S,rootId:w,maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:c,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||dn([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(f=mn(e.parentNode.sheet))}catch(y){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${y}`,e)}f=Pn(f,Un())}h&&(f="SCRIPT_PLACEHOLDER");const g=Hn(e,r,o,i,a,n);p||h||m||!f||!g||(f=s?s(f,e.parentElement):f.replace(/[\S]/g,"*"));m&&f&&(c.textarea||g)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*"));if("OPTION"===d&&f){f=_n({isMasked:Hn(e,r,o,i,a,vn({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:u})}return{type:fn.Text,textContent:f||"",isStyle:p,rootId:l}}(e,{maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:w});case e.CDATA_SECTION_NODE:return{type:fn.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:fn.Comment,textContent:e.textContent||"",rootId:w};default:return!1}}function Wn(e){return void 0===e||null===e?"":e.toLowerCase()}function Gn(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:T=(()=>!1),newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:O=!0}=t;const A=Vn(e,{doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:_,inlineImages:b,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:I});if(!A)return console.warn(e,"not serialized"),null;let R;R=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===fn.Comment)return!0;if(e.type===fn.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"===typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Wn(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Wn(e.attributes.name)||"icon"===Wn(e.attributes.rel)||"apple-touch-icon"===Wn(e.attributes.rel)||"shortcut icon"===Wn(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Wn(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Wn(e.attributes.property).match(/^(og|twitter|fb):/)||Wn(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Wn(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Wn(e.attributes.name)||"googlebot"===Wn(e.attributes.name)||"bingbot"===Wn(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Wn(e.attributes.name)||"generator"===Wn(e.attributes.name)||"framework"===Wn(e.attributes.name)||"publisher"===Wn(e.attributes.name)||"progid"===Wn(e.attributes.name)||Wn(e.attributes.property).match(/^article:/)||Wn(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Wn(e.attributes.name)||"yandex-verification"===Wn(e.attributes.name)||"csrf-token"===Wn(e.attributes.name)||"p:domain_verify"===Wn(e.attributes.name)||"verify-v1"===Wn(e.attributes.name)||"verification"===Wn(e.attributes.name)||"shopify-checkout-api-token"===Wn(e.attributes.name)))return!0}}return!1}(A,v)&&(O||A.type!==fn.Text||A.isStyle||A.textContent.replace(/^\s+|\s+$/gm,"").length)?Tn():-2;const N=Object.assign(A,{id:R});if(r.add(e,N),-2===R)return null;w&&w(e);let D=!f;if(N.type===fn.Element){D=D&&!N.needBlock,delete N.needBlock;const t=e.shadowRoot;t&&hn(t)&&(N.isShadowHost=!0)}if((N.type===fn.Document||N.type===fn.Element)&&D){v.headWhitespace&&N.type===fn.Element&&"head"===N.tagName&&(O=!1);const t={doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:T};for(const n of Array.from(e.childNodes)){const e=Gn(n,t);e&&N.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Gn(n,t);r&&(hn(e.shadowRoot)&&(r.isShadow=!0),N.childNodes.push(r))}}return e.parentNode&&pn(e.parentNode)&&hn(e.parentNode)&&(N.isShadow=!0),N.type===fn.Element&&"iframe"===N.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let i,o=!1;try{i=r.document.readyState}catch(s){return}if("complete"!==i){const r=setTimeout((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(r),o=!0,t()}))}const a="about:blank";if(r.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&k){const n=Gn(t,{doc:t,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:T});n&&k(e,n)}}),x),N.type===fn.Element&&"link"===N.tagName&&"stylesheet"===N.attributes.rel&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(a){return}if(r)return;const o=setTimeout((()=>{i||(t(),i=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(o),i=!0,t()}))}(e,(()=>{if(E){const t=Gn(e,{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:T});t&&E(e,t)}}),C),N}function Zn(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}function Xn(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Qn="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Yn={map:{},getId:()=>(console.error(Qn),-1),getNode:()=>(console.error(Qn),null),removeNodeFromMap(){console.error(Qn)},has:()=>(console.error(Qn),!1),reset(){console.error(Qn)}};function Jn(e,t,n={}){let r=null,i=0;return function(...o){const a=Date.now();i||!1!==n.leading||(i=a);const s=t-(a-i),c=this;s<=0||s>t?(r&&(!function(...e){vr("clearTimeout")(...e)}(r),r=null),i=a,e.apply(c,o)):r||!1===n.trailing||(r=_r((()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(c,o)}),s))}}function Kn(e,t,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){_r((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>Kn(e,t,o||{},!0)}function er(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(r){return()=>{}}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(Yn=new Proxy(Yn,{get:(e,t,n)=>("map"===t&&console.error(Qn),Reflect.get(e,t,n))}));let tr=Date.now;function nr(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:Zn([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||Zn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||Zn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:Zn([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||Zn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||Zn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function rr(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ir(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function or(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function ar(e,t,n,r,i){if(!e)return!1;const o=or(e);if(!o)return!1;const a=qn(t,n);if(!i){const e=r&&o.matches(r);return a(o)&&!e}const s=zn(o,a);let c=-1;return!(s<0)&&(r&&(c=zn(o,qn(null,r))),s>-1&&c<0||se.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(tr=()=>(new Date).getTime());class pr{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return O(this.styleIDMap.get(e),(()=>-1))}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function hr(e){let t=null;return Zn([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function mr(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=hr(n);)n=t;return n}(e);return t.contains(n)}function gr(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||mr(e))}const yr={};function vr(e){const t=yr[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"===typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(i){}return yr[e]=r.bind(window)}function _r(...e){return vr("setTimeout")(...e)}var br=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(br||{}),Sr=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Sr||{}),wr=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(wr||{}),kr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(kr||{});function xr(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}function Er(e){return"__ln"in e}class Cr{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;ne.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Er(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Er(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Tr=(e,t)=>`${e}@${t}`;class Ir{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Cr,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!gr(i))return;const o=pn(i.parentNode)?this.mirror.getId(hr(i)):this.mirror.getId(i.parentNode),a=r(i);if(-1===o||-1===a)return n.addNode(i);const s=Gn(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{lr(e,this.mirror)&&this.iframeManager.addIframe(e),dr(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),fr(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const s of this.movedSet)Ar(this.removes,s,this.mirror)&&!this.movedSet.has(s.parentNode)||i(s);for(const s of this.addedSet)Nr(this.droppedSet,s)||Ar(this.removes,s,this.mirror)?Nr(this.movedSet,s)?i(s):this.droppedSet.add(s):i(s);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),i(e.value)}const a={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"===typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!sr(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;ar(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Hn(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,or(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,i=e.target.getAttribute(r);if("value"===r){const t=kn(n),r=n.tagName;i=xn(n,r,t);const o=vn({maskInputOptions:this.maskInputOptions,tagName:r,type:t});i=_n({isMasked:Hn(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:n,value:i,maskInputFn:this.maskInputFn})}if(ar(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===n.tagName&&"src"===r&&!this.keepIframeSrcFn(i)){if(n.contentDocument)return;r="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===r&&"INPUT"===n.tagName&&"password"===(e.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!$n(n.tagName,r)&&(o.attributes[r]=Bn(this.doc,bn(n.tagName),bn(r),i,n,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}const r=this.unattachedDoc.createElement("span");e.oldValue&&r.setAttribute("style",e.oldValue);for(const e of Array.from(n.style)){const t=n.style.getPropertyValue(e),i=n.style.getPropertyPriority(e);t!==r.style.getPropertyValue(e)||i!==r.style.getPropertyPriority(e)?o.styleDiff[e]=""===i?t:[t,i]:o._unchangedStyles[e]=[t,i]}for(const e of Array.from(r.style))""===n.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(ar(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=pn(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ar(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||sr(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Or(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||cr(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Tr(n,r)]?Or(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!pn(e.target)||!hn(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(sr(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Tr(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ar(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),fr(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Or(e,t){e.delete(t),t.childNodes.forEach((t=>Or(e,t)))}function Ar(e,t,n){return 0!==e.length&&Rr(e,t,n)}function Rr(e,t,n){const{parentNode:r}=t;if(!r)return!1;const i=n.getId(r);return!!e.some((e=>e.id===i))||Rr(e,r,n)}function Nr(e,t){return 0!==e.size&&Dr(e,t)}function Dr(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||Dr(e,n))}let Pr;function Lr(e){Pr=e}function Mr(){Pr=void 0}const Fr=e=>{if(!Pr)return e;return(...t)=>{try{return e(...t)}catch(n){if(Pr&&!0===Pr(n))return()=>{};throw n}}};function jr(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const Ur=[];function Br(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(t){}return e&&e.target}function $r(e,t){const n=new Ir;Ur.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=jr([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);i&&window[i]&&(r=window[i]);const o=new r(Fr((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function zr({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:a}){if(!1===a.mouseInteraction)return()=>{};const s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[];let u=null;return Object.keys(wr).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((a=>{let s=bn(a);const l=(t=>a=>{const s=Br(a);if(ar(s,r,i,o,!0))return;let c=null,l=t;if("pointerType"in a){switch(a.pointerType){case"mouse":c=kr.Mouse;break;case"touch":c=kr.Touch;break;case"pen":c=kr.Pen}c===kr.Touch?wr[t]===wr.MouseDown?l="TouchStart":wr[t]===wr.MouseUp&&(l="TouchEnd"):kr.Pen}else ur(a)&&(c=kr.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===kr.Touch||l.startsWith("Mouse")&&c===kr.Mouse)&&(c=null)):wr[t]===wr.Click&&(c=u,u=null);const d=ur(a)?a.changedTouches[0]:a;if(!d)return;const f=n.getId(s),{clientX:p,clientY:h}=d;Fr(e)({type:wr[l],id:f,x:p,y:h,...null!==c&&{pointerType:c}})})(a);if(window.PointerEvent)switch(wr[a]){case wr.MouseDown:case wr.MouseUp:s=s.replace("mouse","pointer");break;case wr.TouchStart:case wr.TouchEnd:return}c.push(Xn(s,l,t))})),Fr((()=>{c.forEach((e=>e()))}))}function qr({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:a}){return Xn("scroll",Fr(Jn(Fr((a=>{const s=Br(a);if(!s||ar(s,r,i,o,!0))return;const c=n.getId(s);if(s===t&&t.defaultView){const n=nr(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})})),a.scroll||100)),t)}const Hr=["INPUT","TEXTAREA","SELECT"],Vr=new WeakMap;function Wr({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:a,ignoreSelector:s,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=Br(e);const l=e.isTrusted,g=n&&Sn(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||Hr.indexOf(g)<0||ar(n,r,i,o,!0))return;const v=n;if(v.classList.contains(a)||s&&v.matches(s))return;const _=kn(n);let b=xn(v,g,_),S=!1;const w=vn({maskInputOptions:c,tagName:g,type:_}),k=Hn(n,f,h,p,m,w);"radio"!==_&&"checkbox"!==_||(S=n.checked),b=_n({isMasked:k,element:n,value:b,maskInputFn:u}),y(n,d?{text:b,isChecked:S,userTriggered:l}:{text:b,isChecked:S});const x=n.name;"radio"===_&&x&&S&&t.querySelectorAll(`input[type="radio"][name="${x}"]`).forEach((e=>{if(e!==n){const t=_n({isMasked:k,element:e,value:xn(e,g,_),maskInputFn:u});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function y(t,r){const i=Vr.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Vr.set(t,r);const i=n.getId(t);Fr(e)({...r,id:i})}}const v=("last"===l.input?["change"]:["input","change"]).map((e=>Xn(e,Fr(g),t))),_=t.defaultView;if(!_)return()=>{v.forEach((e=>e()))};const b=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),S=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&v.push(...S.map((e=>Kn(e[0],e[1],{set(){Fr(g)({target:this,isTrusted:!1})}},!1,_)))),Fr((()=>{v.forEach((e=>e()))}))}function Gr(e){return function(e,t){if(Yr("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Yr("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Yr("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Yr("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Zr(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function Xr({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const i="#document"===n.nodeName?jr([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):jr([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=jr([i,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(jr([i,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return jr([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=jr([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(i){}return n}}),Fr((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function Qr(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=$r(e,e.doc),i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const i="number"===typeof t.mousemove?t.mousemove:50,o="number"===typeof t.mousemoveCallback?t.mousemoveCallback:500;let a,s=[];const c=Jn(Fr((t=>{const n=Date.now()-a;e(s.map((e=>(e.timeOffset-=n,e))),t),s=[],a=null})),o),u=Fr(Jn(Fr((e=>{const t=Br(e),{clientX:n,clientY:i}=ur(e)?e.changedTouches[0]:e;a||(a=tr()),s.push({x:n,y:i,id:r.getId(t),timeOffset:tr()-a}),c("undefined"!==typeof DragEvent&&e instanceof DragEvent?Sr.Drag:e instanceof MouseEvent?Sr.MouseMove:Sr.TouchMove)})),i,{trailing:!1})),l=[Xn("mousemove",u,n),Xn("touchmove",u,n),Xn("drag",u,n)];return Fr((()=>{l.forEach((e=>e()))}))}(e),o=zr(e),a=qr(e),s=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Xn("resize",Fr(Jn(Fr((()=>{const t=rr(),i=ir();n===t&&r===i||(e({width:Number(i),height:Number(t)}),n=t,r=i)})),200)),t)}(e,{win:n}),c=Wr(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:a}){const s=Fr((a=>Jn(Fr((o=>{const s=Br(o);if(!s||ar(s,t,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=s;e({type:a,id:i.getId(s),currentTime:c,volume:u,muted:l,playbackRate:d})})),o.media||500))),c=[Xn("play",s(0),a),Xn("pause",s(1),a),Xn("seeked",s(2),a),Xn("volumechange",s(3),a),Xn("ratechange",s(4),a)];return Fr((()=>{c.forEach((e=>e()))}))}(e),l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:Fr(((r,i,o)=>{const[a,s]=o,{id:c,styleId:u}=Zr(i,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:a,index:s}]}),r.apply(i,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let a,s;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:Fr(((r,i,o)=>{const[a]=o,{id:s,styleId:c}=Zr(i,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:a}]}),r.apply(i,o)}))}),r.CSSStyleSheet.prototype.replace&&(a=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:Fr(((r,i,o)=>{const[a]=o,{id:s,styleId:c}=Zr(i,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replace:a}),r.apply(i,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:Fr(((r,i,o)=>{const[a]=o,{id:s,styleId:c}=Zr(i,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replaceSync:a}),r.apply(i,o)}))}));const c={};Jr("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Jr("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Jr("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Jr("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach((([r,i])=>{u[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[r].insertRule,{apply:Fr(((r,i,o)=>{const[a,s]=o,{id:c,styleId:u}=Zr(i.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:a,index:[...Gr(i),s||0]}]}),r.apply(i,o)}))}),i.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:Fr(((r,i,o)=>{const[a]=o,{id:s,styleId:c}=Zr(i.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:[...Gr(i),a]}]}),r.apply(i,o)}))})})),Fr((()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=o,a&&(r.CSSStyleSheet.prototype.replace=a),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule}))}))}(e,{win:n}),d=Xr(e,e.doc),f=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:Fr(((i,a,s)=>{const[c,u,l]=s;if(n.has(c))return o.apply(a,[c,u,l]);const{id:d,styleId:f}=Zr(jr([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||f&&-1!==f)&&e({id:d,styleId:f,set:{property:c,value:u,priority:l},index:Gr(a.parentRule)}),i.apply(a,s)}))});const a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:Fr(((i,o,s)=>{const[c]=s;if(n.has(c))return a.apply(o,[c]);const{id:u,styleId:l}=Zr(jr([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:Gr(o.parentRule)}),i.apply(o,s)}))}),Fr((()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=a}))}(e,{win:n}),p=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return i.set(r,{family:e,buffer:"string"!==typeof t,descriptors:n,fontSource:"string"===typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const a=er(t.fonts,"add",(function(t){return function(n){return _r(Fr((()=>{const t=i.get(n);t&&(e(t),i.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(a),Fr((()=>{r.forEach((e=>e()))}))}(e):()=>{},h=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:a}=e;let s=!0;const c=Fr((()=>{const e=t.getSelection();if(!e||s&&jr([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;const c=[],u=e.rangeCount||0;for(let t=0;t{}}(e),g=[];for(const y of e.plugins)g.push(y.observer(y.callback,n,y.options));return Fr((()=>{Ur.forEach((e=>e.reset())),r.disconnect(),i(),o(),a(),s(),c(),u(),l(),d(),f(),p(),h(),m(),g.forEach((e=>e()))}))}function Yr(e){return"undefined"!==typeof window[e]}function Jr(e){return Boolean("undefined"!==typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Kr{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const i=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),o.set(a,t)),a}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!==typeof t)return t;const i=r.get(t);return i||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function ei(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}class ti{constructor(){this.crossOriginIframeMirror=new Kr(Tn),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ni{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Kr(Tn),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Kr(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),ei([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case br.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:br.IncrementalSnapshot,data:{source:Sr.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case br.Meta:case br.Load:case br.DomContentLoaded:return!1;case br.Plugin:return t;case br.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case br.IncrementalSnapshot:switch(t.data.source){case Sr.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Sr.Drag:case Sr.TouchMove:case Sr.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Sr.ViewportResize:return!1;case Sr.MediaInteraction:case Sr.MouseInteraction:case Sr.Scroll:case Sr.CanvasMutation:case Sr.Input:return this.replaceIds(t.data,e,["id"]),t;case Sr.StyleSheetRule:case Sr.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Sr.Font:return t;case Sr.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Sr.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),ei([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const i of r)(Array.isArray(t[i])||"number"===typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===fn.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class ri{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class ii{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!hn(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=$r({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(qr({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),_r((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Xr({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(er(e.prototype,"attachShadow",(function(e){return function(r){const i=e.call(this,r);return this.shadowRoot&&gr(this)&&n.addShadowRoot(this.shadowRoot,t),i}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(t){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class oi{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class ai{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new pr,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const i of e){let e;this.styleMirror.has(i)?e=this.styleMirror.getId(i):(e=this.styleMirror.add(i),r.push({styleId:e,rules:Array.from(i.rules||CSSRule,((e,t)=>({rule:gn(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class si{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){vr("requestAnimationFrame")(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let ci,ui;const li=new yn;function di(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:a=null,ignoreClass:s="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,maxCanvasSize:S=null,packFn:w,sampling:k={},dataURLOptions:x={},mousemoveWait:E,recordCanvas:C=!1,recordCrossOriginIframes:T=!1,recordAfter:I=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:O=!1,collectFonts:R=!1,inlineImages:N=!1,plugins:D,keepIframeSrcFn:P=(()=>!1),ignoreCSSAttributes:L=new Set([]),errorHandler:M,onMutation:F,getCanvasManager:j}=e;Lr(M);const U=!T||window.parent===window;let B=!1;if(!U)try{window.parent.document&&(B=!1)}catch(te){B=!0}if(U&&!t)throw new Error("emit function is required");void 0!==E&&void 0===k.mousemove&&(k.mousemove=E),li.reset();const $=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},z=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let q;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let H=0;const V=e=>{for(const t of D||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!B&&(e=w(e)),e};ci=(e,i)=>{const o=e;if(o.timestamp=tr(),!(0,A.x)([Ur,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||o.type===br.FullSnapshot||o.type===br.IncrementalSnapshot&&o.data.source===Sr.Mutation||Ur.forEach((e=>e.unfreeze())),U)(0,A.x)([t,"optionalCall",e=>e(V(o),i)]);else if(B){const e={type:"rrweb",event:V(o),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,"*")}if(o.type===br.FullSnapshot)q=o,H=0;else if(o.type===br.IncrementalSnapshot){if(o.data.source===Sr.Mutation&&o.data.isAttachIframe)return;H++;const e=r&&H>=r,t=n&&q&&o.timestamp-q.timestamp>n;(e||t)&&ee(!0)}};const W=e=>{ci({type:br.IncrementalSnapshot,data:{source:Sr.Mutation,...e}})},G=e=>ci({type:br.IncrementalSnapshot,data:{source:Sr.Scroll,...e}}),Z=e=>ci({type:br.IncrementalSnapshot,data:{source:Sr.CanvasMutation,...e}}),X=new ai({mutationCb:W,adoptedStyleSheetCb:e=>ci({type:br.IncrementalSnapshot,data:{source:Sr.AdoptedStyleSheet,...e}})}),Q="boolean"===typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new ti:new ni({mirror:li,mutationCb:W,stylesheetManager:X,recordCrossOriginIframes:T,wrappedEmit:ci});for(const A of D||[])A.getMirror&&A.getMirror({nodeMirror:li,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});const Y=new si,J=function(e,t){try{return e?e(t):new oi}catch(n){return console.warn("Unable to initialize CanvasManager"),new oi}}(j,{mirror:li,win:window,mutationCb:e=>ci({type:br.IncrementalSnapshot,data:{source:Sr.CanvasMutation,...e}}),recordCanvas:C,blockClass:i,blockSelector:o,unblockSelector:a,maxCanvasSize:S,sampling:k.canvas,dataURLOptions:x,errorHandler:M}),K="boolean"===typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ri:new ii({mutationCb:W,scrollCb:G,bypassOptions:{onMutation:F,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:$,dataURLOptions:x,maskAttributeFn:v,maskTextFn:b,maskInputFn:_,recordCanvas:C,inlineImages:N,sampling:k,slimDOMOptions:z,iframeManager:Q,stylesheetManager:X,canvasManager:J,keepIframeSrcFn:P,processedNodeManager:Y},mirror:li}),ee=(e=!1)=>{ci({type:br.Meta,data:{href:window.location.href,width:ir(),height:rr()}},e),X.reset(),K.init(),Ur.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new yn,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:x,stylesheetLoadTimeout:E,keepIframeSrcFn:C=(()=>!1)}=t||{};return Gn(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:s,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:_,inlineImages:f,recordCanvas:p,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:x,stylesheetLoadTimeout:E,keepIframeSrcFn:C,newlyAddedElement:!1})}(document,{mirror:li,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:$,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,slimDOM:z,dataURLOptions:x,recordCanvas:C,inlineImages:N,onSerialize:e=>{lr(e,li)&&Q.addIframe(e),dr(e,li)&&X.trackLinkElement(e),fr(e)&&K.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Q.attachIframe(e,t),K.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{X.attachLinkElement(e,t)},keepIframeSrcFn:P});if(!t)return console.warn("Failed to snapshot the document");ci({type:br.FullSnapshot,data:{node:t,initialOffset:nr(window)}}),Ur.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&X.adoptStyleSheets(document.adoptedStyleSheets,li.getId(document))};ui=ee;try{const e=[],t=e=>Fr(Qr)({onMutation:F,mutationCb:W,mousemoveCb:(e,t)=>ci({type:br.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>ci({type:br.IncrementalSnapshot,data:{source:Sr.MouseInteraction,...e}}),scrollCb:G,viewportResizeCb:e=>ci({type:br.IncrementalSnapshot,data:{source:Sr.ViewportResize,...e}}),inputCb:e=>ci({type:br.IncrementalSnapshot,data:{source:Sr.Input,...e}}),mediaInteractionCb:e=>ci({type:br.IncrementalSnapshot,data:{source:Sr.MediaInteraction,...e}}),styleSheetRuleCb:e=>ci({type:br.IncrementalSnapshot,data:{source:Sr.StyleSheetRule,...e}}),styleDeclarationCb:e=>ci({type:br.IncrementalSnapshot,data:{source:Sr.StyleDeclaration,...e}}),canvasMutationCb:Z,fontCb:e=>ci({type:br.IncrementalSnapshot,data:{source:Sr.Font,...e}}),selectionCb:e=>{ci({type:br.IncrementalSnapshot,data:{source:Sr.Selection,...e}})},customElementCb:e=>{ci({type:br.IncrementalSnapshot,data:{source:Sr.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:$,inlineStylesheet:h,sampling:k,recordCanvas:C,inlineImages:N,userTriggeredOnInput:O,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,keepIframeSrcFn:P,blockSelector:o,unblockSelector:a,slimDOMOptions:z,dataURLOptions:x,mirror:li,iframeManager:Q,stylesheetManager:X,shadowDomManager:K,processedNodeManager:Y,canvasManager:J,ignoreCSSAttributes:L,plugins:(0,A.x)([D,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>ci({type:br.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Q.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(r){console.warn(r)}}));const n=()=>{ee(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Xn("DOMContentLoaded",(()=>{ci({type:br.DomContentLoaded,data:{}}),"DOMContentLoaded"===I&&n()}))),e.push(Xn("load",(()=>{ci({type:br.Load,data:{}}),"load"===I&&n()}),window))),()=>{e.forEach((e=>e())),Y.destroy(),ui=void 0,Mr()}}catch(ne){console.warn(ne)}}di.mirror=li,di.takeFullSnapshot=function(e){if(!ui)throw new Error("please take full snapshot after start recording");ui(e)};function fi(e){return e>9999999999?e:1e3*e}function pi(e){return e>9999999999?e/1e3:e}function hi(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:br.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,Le.Fv)(t,10,1e3)}}),"console"===t.category))))}function mi(e){return e.closest("button,a")||e}function gi(e){const t=yi(e);return t&&t instanceof Element?mi(t):t}function yi(e){return function(e){return"object"===typeof e&&!!e&&"target"in e}(e)?e.target:e}let vi;function _i(e){return vi||(vi=[],(0,x.hl)(rn,"open",(function(e){return function(...t){if(vi)try{vi.forEach((e=>e()))}catch(n){}return e.apply(rn,t)}}))),vi.push(e),()=>{const t=vi?vi.indexOf(e):-1;t>-1&&vi.splice(t,1)}}class bi{constructor(e,t,n=hi){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=_i((()=>{this._lastMutation=wi()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!Si.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!==typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:pi(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=pi(e)}registerScroll(e=Date.now()){this._lastScroll=pi(e)}registerClick(e){const t=mi(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=wi();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const n of e){const e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:o,clickBreadcrumb:a}=e;if(i){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:rn.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,i)}else if(o>1){const e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:rn.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,Kt.iK)((()=>this._checkClicks()),1e3)}}const Si=["A","BUTTON","INPUT"];function wi(){return Date.now()/1e3}function ki(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(n===Sr.Mutation&&e.registerMutation(t.timestamp),n===Sr.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Sr.MouseInteraction}(t)){const{type:n,id:r}=t.data,i=di.mirror.getNode(r);i instanceof HTMLElement&&n===wr.Click&&e.registerClick(i)}}catch(n){}}function xi(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Ei;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Ei||(Ei={}));const Ci=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Ti(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(Ci.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const Ii=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?gi(e.event):yi(e.event),n=(0,Gt.Rt)(r,{maxStringLength:200})||""}catch(i){n=""}return{target:r,message:n}}(e);return xi({category:`ui.${e.name}`,...Oi(t,n)})}(t);if(!n)return;const r="click"===t.name,i=r?t.event:void 0;var o,a,s;!(r&&e.clickDetector&&i&&i.target)||i.altKey||i.metaKey||i.ctrlKey||i.shiftKey||(o=e.clickDetector,a=n,s=gi(t.event),o.handleClick(a,s)),hi(e,n)};function Oi(e,t){const n=di.mirror.getId(e),r=n&&di.mirror.getNode(n),i=r&&di.mirror.getMeta(r),o=i&&function(e){return e.type===Ei.Element}(i)?i:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===Ei.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Ti(o.attributes)}}:{}}}function Ai(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!o)return null;const s=t||r||i,c=1===o.length;if(!s&&c)return null;const u=(0,Gt.Rt)(a,{maxStringLength:200})||"",l=Oi(a,u);return xi({category:"ui.keyDown",message:u,data:{...l.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o}})}(t);n&&hi(e,n)}const Ri={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:a,encodedBodySize:s,responseStatus:c,transferSize:u}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:Pi(o),end:Pi(i),name:r,data:{size:u,statusCode:c,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:i}=e,o=Pi(i);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=e;if(0===i)return null;return{type:`${t}.${m}`,start:Pi(p),end:Pi(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:a,duration:i,domInteractive:u,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:o,redirectCount:f}}}};function Ni(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function Di(e){const t=Ri[e.entryType];return t?t(e):null}function Pi(e){return((et.Z1||rn.performance.timeOrigin)+e)/1e3}function Li(e){const t=e.entries[e.entries.length-1];return Ui(e,"largest-contentful-paint",t?t.element:void 0)}function Mi(e){const t=e.entries[0];return Ui(e,"cumulative-layout-shift",t&&t.sources&&t.sources[0]?t.sources[0].node:void 0)}function Fi(e){const t=e.entries[e.entries.length-1];return Ui(e,"first-input-delay",t?t.target:void 0)}function ji(e){const t=e.entries[e.entries.length-1];return Ui(e,"interaction-to-next-paint",t?t.target:void 0)}function Ui(e,t,n){const r=e.value,i=e.rating,o=Pi(r);return{type:"web-vital",name:t,start:o,end:o,data:{value:r,size:r,rating:i,nodeId:n?di.mirror.getId(n):void 0}}}const Bi="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function $i(e,t){Bi&&(E.kg.info(e),t&&qi(e))}function zi(e,t){Bi&&(E.kg.info(e),t&&(0,Kt.iK)((()=>{qi(e)}),0))}function qi(e){(0,ke.n)({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class Hi extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Vi{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>un)throw new Hi;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?fi(e):null}}class Wi{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){$i("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,i)=>{const o=({data:t})=>{const a=t;if(a.method===e&&a.id===n){if(this._worker.removeEventListener("message",o),!a.success)return Bi&&E.kg.error("[Replay]",a.response),void i(new Error("Error in compression worker"));r(a.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Gi{constructor(e){this._worker=new Wi(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=fi(e.timestamp);(!this._earliestTimestamp||tun?Promise.reject(new Hi):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Bi&&E.kg.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Zi{constructor(e){this._fallback=new Vi,this._compression=new Gi(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void $i("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const i of e)n.push(this._compression.addEvent(i));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(r){Bi&&E.kg.warn("[Replay] Failed to add events when switching buffers.",r)}}}function Xi({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"===typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();return""}();if(!t)return;$i("[Replay] Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Zi(n)}catch(t){$i("[Replay] Failed to create compression worker")}}(t);if(e)return e}return $i("[Replay] Using simple buffer"),new Vi}function Qi(){try{return"sessionStorage"in rn&&!!rn.sessionStorage}catch(e){return!1}}function Yi(e){!function(){if(!Qi())return;try{rn.sessionStorage.removeItem(on)}catch(e){}}(),e.session=void 0}function Ji(e){return void 0!==e&&Math.random()e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(zi(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function uo(e){return!e.type}function lo(e){return"transaction"===e.type}function fo(e){return"feedback"===e.type}function po(e){return(t,n)=>{if(!e.isEnabled()||!uo(t)&&!lo(t))return;const r=n&&n.statusCode;!r||r<200||r>=300||(lo(t)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();if("function"===typeof r&&!r(t))return;(0,Kt.iK)((()=>{e.sendBufferedReplayOrFlush()}))}(e,t))}}function ho(e){return t=>{e.isEnabled()&&uo(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"!==typeof n)return;if(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){hi(e,xi({category:"replay.hydrate-error",data:{url:(0,Gt.l4)()}}))}}(e,t)}}function mo(e){const t=(0,S.s3)();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!go(t))return;const n=function(e){if(!go(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return xi(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"===typeof e)return e.length>cn?(n=!0,`${e.slice(0,cn)}\u2026`):e;if("object"===typeof e)try{const t=(0,Le.Fv)(e,7);return JSON.stringify(t).length>cn?(n=!0,`${JSON.stringify(t,null,2).slice(0,cn)}\u2026`):t}catch(t){}return e}));return xi({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return xi(e)}(t);n&&hi(e,n)}(e,t)))}function go(e){return!!e.category}function yo(e){return Object.assign(((t,n)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!uo(t)&&!lo(t)&&!fo(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(fo(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:br.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return Bi&&E.kg.log("[Replay] Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==an&&!(!t.exception||t.type)&&Ji(e.getOptions().errorSampleRate)}(e,t);return(r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t}),{id:"Replay"})}function vo(e,t){return t.map((({type:t,start:n,end:r,name:i,data:o})=>{const a=e.throttledAddEvent({type:br.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:o}}});return"string"===typeof a?Promise.resolve(null):a}))}function _o(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(vo(e,[n]),!1))))}}function bo(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Bi||!e.getOptions()._experiments.traceInternals)&&Rt(t,(0,S.s3)())}(e,t.name)||e.addUpdate((()=>(vo(e,[t]),!0))))}function So(e){if(!e)return;const t=new TextEncoder;try{if("string"===typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Oo(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(n){}}function wo(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function ko(e){try{if("string"===typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Oo(e)];if(!e)return[void 0]}catch(t){return Bi&&E.kg.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Bi&&E.kg.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function xo(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Eo(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:a,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:(0,x.Jr)({method:o,statusCode:a,request:s,response:c})}}function Co(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function To(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!==typeof e)return{body:e};const t=e.length>sn,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,sn);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(r){}return{body:e}}(n);return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}function Io(e,t){return Object.entries(e).reduce(((n,[r,i])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=i),n}),{})}function Oo(e){return new URLSearchParams(e).toString()}function Ao(e,t){const n=function(e,t=rn.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(rn.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return(0,Oe.U0)(n,t)}async function Ro(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=t,{url:a,method:s,status_code:c=0,request_body_size:u,response_body_size:l}=e.data,d=Ao(a,n.networkDetailAllowUrls)&&!Ao(a,n.networkDetailDenyUrls),f=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?function(e,t){if(1===e.length&&"string"!==typeof e[0])return Po(e[0],t);if(2===e.length)return Po(e[1],t);return{}}(n,t):{};if(!e)return To(i,r,void 0);const o=No(n),[a,s]=ko(o),c=To(i,r,a);if(s)return xo(c,s);return c}(n,t.input,u):Co(u),p=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&void 0!==i)return Co(i);const o=r?Do(r.headers,n):{};if(!r||!t&&void 0!==i)return To(o,i,void 0);const[a,s]=await async function(e){const t=function(e){try{return e.clone()}catch(t){Bi&&E.kg.warn("[Replay] Failed to clone response body",t)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=(0,Kt.iK)((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(n){return Bi&&E.kg.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}(r),c=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{const o=e&&e.length&&void 0===n?So(e):n;return r?To(i,o,t?e:void 0):Co(o)}catch(o){return Bi&&E.kg.warn("[Replay] Failed to serialize response body",o),To(i,n,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});if(s)return xo(c,s);return c}(d,n,t.response,l);return{startTimestamp:i,endTimestamp:o,url:a,method:s,statusCode:c,request:f,response:p}}(e,t,n),i=Eo("resource.fetch",r);bo(n.replay,i)}catch(r){Bi&&E.kg.error("[Replay] Failed to capture fetch breadcrumb",r)}}function No(e=[]){if(2===e.length&&"object"===typeof e[1])return e[1].body}function Do(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Po(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Do(n,t):Array.isArray(n)?{}:Io(n,t):{}}async function Lo(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:a,xhr:s}=t,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!s||!Ao(c,n.networkDetailAllowUrls)||Ao(c,n.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:o,url:c,method:u,statusCode:l,request:Co(d),response:Co(f)}}const p=s[At.xU],h=p?Io(p.request_headers,n.networkRequestHeaders):{},m=Io(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{})}(s),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?ko(a):[void 0],[v,_]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return function(e,t){try{if("string"===typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"===typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return Bi&&E.kg.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Bi&&E.kg.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(n){t.push(n)}return Bi&&E.kg.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(s):[void 0],b=To(h,d,g),S=To(m,f,v);return{startTimestamp:i,endTimestamp:o,url:c,method:u,statusCode:l,request:y?xo(b,y):b,response:_?xo(S,_):S}}(e,t,n),i=Eo("resource.xhr",r);bo(n.replay,i)}catch(r){Bi&&E.kg.error("[Replay] Failed to capture xhr breadcrumb",r)}}function Mo(e,t){const{xhr:n,input:r}=t;if(!n)return;const i=So(r),o=n.getResponseHeader("content-length")?wo(n.getResponseHeader("content-length")):function(e,t){try{return So("json"===t&&e&&"object"===typeof e?JSON.stringify(e):e)}catch(n){return}}(n.response,n.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}function Fo(e){const t=(0,S.s3)();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a};t&&t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(Mo(t,n),Lo(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t){const{input:n,response:r}=t,i=So(n?No(n):void 0),o=r?wo(r.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,n),Ro(t,n,e))}catch(r){Bi&&E.kg.warn("Error when enriching network breadcrumb")}}(s,e,t)))}catch(n){}}function jo(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Uo(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Bi&&E.kg.warn("[Replay] Received replay event after session expired."));const i=r||!t;t=!0,e.clickDetector&&ki(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!ao(e,n,i))return!0;if(!i)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;ao(e,function(e){const t=e.getOptions();return{type:br.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,i),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&($i(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&eo(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function Bo({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){const a=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"===typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=(0,S.s3)(),f=(0,S.nZ)(),p=d&&d.getTransport(),h=d&&d.getDsn();if(!d||!p||!h||!o.sampled)return(0,Zt.WD)({});const m={type:"replay_event",replay_start_timestamp:l/1e3,timestamp:i/1e3,error_ids:c,trace_ids:u,urls:s,replay_id:t,segment_id:n,replay_type:o.sampled},g=await async function({client:e,scope:t,replayId:n,event:r}){const i={event_id:n,integrations:"object"!==typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,i);const o=await(0,Vt.R)(e.getOptions(),r,i,t,e,(0,S.aF)());if(!o)return null;o.platform=o.platform||"javascript";const a=e.getSdkMetadata(),{name:s,version:c}=a&&a.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:c||"0.0.0"},o}({scope:f,client:d,replayId:t,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay",m),$i("An event processor returned `null`, will not send event."),(0,Zt.WD)({});delete g.sdkProcessingMetadata;const y=function(e,t,n,r){return(0,$e.Jd)((0,$e.Cd)(e,(0,$e.HY)(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"===typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,a,h,d.getOptions().tunnel);let v;try{v=await p.send(y)}catch(b){const e=new Error(an);try{e.cause=b}catch(w){}throw e}if("number"===typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new $o(v.statusCode);const _=(0,Xt.WG)({},v);if((0,Xt.Q)(_,"replay"))throw new zo(_);return v}class $o extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class zo extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function qo(e,t={count:0,interval:5e3}){const{recordingData:n,options:r}=e;if(n.length)try{return await Bo(e),!0}catch(i){if(i instanceof $o||i instanceof zo)throw i;if((0,w.v)("Replays",{_retryCount:t.count}),Bi&&r._experiments&&r._experiments.captureExceptions&&(0,w.Tb)(i),t.count>=3){const e=new Error("Unable to send Replay - max retries exceeded");try{e.cause=i}catch(o){}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{(0,Kt.iK)((async()=>{try{await qo(e,t),n(!0)}catch(i){r(i)}}),t.interval)}))}}const Ho="__THROTTLED";function Vo(e,t,n){const r=new Map;let i=!1;return(...o)=>{const a=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{ne+t),0)>=t){const e=i;return i=!0,e?"__SKIPPED":Ho}i=!1;const s=r.get(a)||0;return r.set(a,s+1),e(...o)}}class Wo{constructor({options:e,recordingOptions:t}){Wo.prototype.__init.call(this),Wo.prototype.__init2.call(this),Wo.prototype.__init3.call(this),Wo.prototype.__init4.call(this),Wo.prototype.__init5.call(this),Wo.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,i,o;const a=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return c(),r=e(),r}function c(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function u(){return i&&clearTimeout(i),i=(0,Kt.iK)(s,t),a&&void 0===o&&(o=(0,Kt.iK)(s,a)),r}return u.cancel=c,u.flush=function(){return void 0!==i||void 0!==o?s():r},u}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Vo(((e,t)=>function(e,t,n){return co(e,t)?so(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new bi(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",zi(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");zi("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=oo({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");zi("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=oo({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=di({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Uo(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{$i("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Yi(this)}catch(n){this._handleException(n)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),$i("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),$i("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();$i("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&no(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${rn.location.pathname}${rn.location.hash}${rn.location.search}`,t=`${rn.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===Ho){const e=xi({category:"replay.throttled"});this.addUpdate((()=>!ao(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||(0,J.HN)(),t=e&&(0,J.Gx)(e),n=(t&&(0,J.XU)(t).data||{})[U.Zj];if(t&&n&&["route","custom"].includes(n))return(0,J.XU)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Xi({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){Bi&&E.kg.error("[Replay]",e),Bi&&this._options._experiments&&this._options._experiments.captureExceptions&&(0,w.Tb)(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=oo({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!io(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{rn.document.addEventListener("visibilitychange",this._handleVisibilityChange),rn.addEventListener("blur",this._handleWindowBlur),rn.addEventListener("focus",this._handleWindowFocus),rn.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=(0,S.s3)();(0,tn.O)(Ii(e)),(0,nn.a)(_o(e)),mo(e),Fo(e);const n=yo(e);(0,w.Qy)(n),t&&(t.on("beforeSendEvent",ho(e)),t.on("afterSendEvent",po(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push((0,en._j)(e,n))})),r.push((0,en.$A)(Ni(Li,e)),(0,en.PR)(Ni(Mi,e)),(0,en.to)(Ni(Fi,e)),(0,en.YF)(Ni(ji,e))),()=>{r.forEach((e=>e()))}}(this)}_removeListeners(){try{rn.document.removeEventListener("visibilitychange",this._handleVisibilityChange),rn.removeEventListener("blur",this._handleWindowBlur),rn.removeEventListener("focus",this._handleWindowFocus),rn.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===rn.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=xi({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=xi({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Ai(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;ro(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):$i("[Replay] Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:br.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(Di).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(vo(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&nthis._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await qo({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(t){this._handleException(t),this.stop({reason:"sendReplay"});const e=(0,S.s3)();e&&e.recordDroppedEvent("send_error","replay")}}else Bi&&E.kg.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Bi&&E.kg.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=nthis._options.maxReplayDuration+5e3;if(r||i)return $i(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(r&&this._debouncedFlush());const o=this.eventBuffer;if(o&&0===this.session.segmentId&&!o.hasCheckout&&$i("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(a){Bi&&E.kg.error(a)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&eo(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=xi({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function Go(e,t){return[...e,...t].join(",")}const Zo='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Xo=["content-length","content-type","accept"];let Qo=!1;const Yo=e=>new Jo(e);class Jo{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:s={},maskAllText:c=!0,maskAllInputs:u=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:_=[],mask:b=[],maskAttributes:S=["title","placeholder"],unmask:w=[],block:k=[],unblock:x=[],ignore:E=[],maskFn:C,beforeAddRecordingEvent:T,beforeErrorSampling:I}={}){this.name=Jo.id;const O=function({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:Go(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Go(t,[]),blockSelector:Go(n,[".sentry-block","[data-sentry-block]",'base[href="http://www.bamdascore.com"]']),unblockSelector:Go(r,[]),ignoreSelector:Go(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:w,block:k,unblock:x,ignore:E});if(this._recordingOptions={maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return r?i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o:o}({maskAttributes:S,maskAllText:c,privacyOptions:O,key:e,value:t,el:n}),...O,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(t){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,ln),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:l,maskAllInputs:u,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:Ko(v),networkResponseHeaders:Ko(_),beforeAddRecordingEvent:T,beforeErrorSampling:I,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Zo}`:Zo),this._isInitialized&&Jt())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Qo}set _isInitialized(e){Qo=e}setupOnce(){Jt()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=(0,S.s3)(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...(0,x.Jr)(e)};if(!n)return(0,E.Cf)((()=>{console.warn("SDK client is not available.")})),r;const i=(0,Wt.o)(n.replaysSessionSampleRate),o=(0,Wt.o)(n.replaysOnErrorSampleRate);null==i&&null==o&&(0,E.Cf)((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));null!=i&&(r.sessionSampleRate=i);null!=o&&(r.errorSampleRate=o);return r}(this._initialOptions);this._replay=new Wo({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=(0,S.s3)().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function Ko(e){return[...Xo,...e.map((e=>e.toLowerCase()))]}function ea(){const e=(0,S.s3)();return e&&e.getIntegrationByName("Replay")}var ta;function na(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:na(e.parentNode,t,n,r+1):-1}function ra(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"===typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(i){return!1}}}Jo.__initStatic(),function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(ta||(ta={}));const ia="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let oa={map:{},getId:()=>(console.error(ia),-1),getNode:()=>(console.error(ia),null),removeNodeFromMap(){console.error(ia)},has:()=>(console.error(ia),!1),reset(){console.error(ia)}};function aa(e,t,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){fa((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>aa(e,t,o||{},!0)}function sa(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(r){return()=>{}}}function ca(e,t,n,r,i){if(!e)return!1;const o=function(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}(e);if(!o)return!1;const a=ra(t,n);if(!i){const e=r&&o.matches(r);return a(o)&&!e}const s=na(o,a);let c=-1;return!(s<0)&&(r&&(c=na(o,ra(null,r))),s>-1&&c<0||s("map"===t&&console.error(ia),Reflect.get(e,t,n))})),/[1-9][0-9]{12}/.test(Date.now().toString());const ua={};function la(e){const t=ua[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"===typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(i){}return ua[e]=r.bind(window)}function da(...e){return la("requestAnimationFrame")(...e)}function fa(...e){return la("setTimeout")(...e)}var pa=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(pa||{});let ha;const ma=e=>{if(!ha)return e;return(...t)=>{try{return e(...t)}catch(n){if(ha&&!0===ha(n))return()=>{};throw n}}};for(var ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ya="undefined"===typeof Uint8Array?[]:new Uint8Array(256),va=0;va{if(!e||!ka(e,t)&&"object"!==typeof e)return;const r=function(e,t){let n=_a.get(e);return n||(n=new Map,_a.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let i=r.indexOf(e);return-1===i&&(i=r.length,r.push(e)),i};function Sa(e,t,n){if(e instanceof Array)return e.map((e=>Sa(e,t,n)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),r=n.length,i="";for(t=0;t>2],i+=ga[(3&n[t])<<4|n[t+1]>>4],i+=ga[(15&n[t+1])<<2|n[t+2]>>6],i+=ga[63&n[t+2]];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i}(e);return{rr_type:t,base64:n}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[Sa(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[Sa(e.data,t,n),e.width,e.height]}}if(ka(e,t)||"object"===typeof e){return{rr_type:e.constructor.name,index:ba(e,t,n)}}return e}const wa=(e,t,n)=>e.map((e=>Sa(e,t,n))),ka=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"===typeof t[e]));return Boolean(n.find((n=>e instanceof t[n])))};function xa(e,t,n,r,i){const o=[];try{const a=sa(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(o,...a){if(!ca(this,t,n,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(o);if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(a[0]&&"object"===typeof a[0]){const e=a[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...a])}}));o.push(a)}catch(a){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach((e=>e()))}}function Ea(e,t,n,r,i,o,a,s){const c=[],u=Object.getOwnPropertyNames(e);for(const d of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{if("function"!==typeof e[d])continue;const a=sa(e,d,(function(e){return function(...a){const c=e.apply(this,a);if(ba(c,s,this),"tagName"in this.canvas&&!ca(this.canvas,r,i,o,!0)){const e=wa(a,s,this),r={type:t,property:d,args:e};n(this.canvas,r)}return c}}));c.push(a)}catch(l){const r=aa(e,d,{set(e){n(this.canvas,{type:t,property:d,args:[e],setter:!0})}});c.push(r)}return c}class Ca{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{sampling:t="all",win:n,blockClass:r,blockSelector:i,unblockSelector:o,maxCanvasSize:a,recordCanvas:s,dataURLOptions:c,errorHandler:u}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,u&&(ha=u),e.enableManualSnapshot||ma((()=>{s&&"all"===t&&this.initCanvasMutationObserver(n,r,i,o),s&&"number"===typeof t&&this.initCanvasFPSObserver(t,n,r,i,o,a,{dataURLOptions:c})}))()}initCanvasFPSObserver(e,t,n,r,i,o,a){const s=xa(t,n,r,i,!0),c=this.takeSnapshot(!1,e,t,n,r,i,o,a.dataURLOptions);this.resetObservers=()=>{s(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=xa(e,t,n,r,!1),o=function(e,t,n,r,i){const o=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const c of a)try{if("function"!==typeof t.CanvasRenderingContext2D.prototype[c])continue;const a=sa(t.CanvasRenderingContext2D.prototype,c,(function(o){return function(...a){return ca(this.canvas,n,r,i,!0)||fa((()=>{const n=wa(a,t,this);e(this.canvas,{type:pa["2D"],property:c,args:n})}),0),o.apply(this,a)}}));o.push(a)}catch(s){const n=aa(t.CanvasRenderingContext2D.prototype,c,{set(t){e(this.canvas,{type:pa["2D"],property:c,args:[t],setter:!0})}});o.push(n)}return()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r),a=function(e,t,n,r,i,o){const a=[];return a.push(...Ea(t.WebGLRenderingContext.prototype,pa.WebGL,e,n,r,i,0,t)),"undefined"!==typeof t.WebGL2RenderingContext&&a.push(...Ea(t.WebGL2RenderingContext.prototype,pa.WebGL2,e,n,r,i,0,t)),()=>{a.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.resetObservers=()=>{i(),o(),a()}}snapshot(e){const{options:t}=this,n=this.takeSnapshot(!0,"all"===t.sampling?2:t.sampling||2,t.win,t.blockClass,t.blockSelector,t.unblockSelector,t.maxCanvasSize,t.dataURLOptions,e);this.resetObservers=()=>{cancelAnimationFrame(n)}}takeSnapshot(e,t,n,r,i,o,a,s,c){const u=new Map,l=new Worker(function(){const e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());l.onmessage=e=>{const t=e.data,{id:n}=t;if(u.set(n,!1),!("base64"in t))return;const{base64:r,type:i,width:o,height:a}=t;this.mutationCb({id:n,type:pa["2D"],commands:[{property:"clearRect",args:[0,0,o,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:i}]},0,0,o,a]}]})};const d=1e3/t;let f,p=0;const h=t=>{p&&t-p{if(e)return[e];const t=[];return n.document.querySelectorAll("canvas").forEach((e=>{ca(e,r,i,o,!0)||t.push(e)})),t})(c).forEach((t=>{const n=this.mirror.getId(t);if(!u.get(n)&&t.width&&t.height){if(u.set(n,!0),!e&&["webgl","webgl2"].includes(t.__context)){const e=t.getContext(t.__context);!1===(0,A.x)([e,"optionalAccess",e=>e.getContextAttributes,"call",e=>e(),"optionalAccess",e=>e.preserveDrawingBuffer])&&e.clear(e.COLOR_BUFFER_BIT)}createImageBitmap(t).then((e=>{l.postMessage({id:n,bitmap:e,width:t.width,height:t.height,dataURLOptions:s,maxCanvasSize:a},[e])})).catch((e=>{ma((()=>{throw e}))()}))}}))),f=da(h)};return f=da(h),f}startPendingCanvasMutationFlusher(){da((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,da(e)};da(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),da((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const r=n.map((e=>{const{type:t,...n}=e;return n})),{type:i}=n[0];this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}}const Ta={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},Ia=1280,Oa=(0,xe._I)(((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Ia):Ia,n?Math.min(n,Ia):Ia]};let i;const o=new Promise((e=>i=e));return{name:"ReplayCanvas",getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const r=new Ca({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{"object"===typeof e&&(e.__rrweb__=!0)}catch(t){}}});return i(r),r},...Ta[e||"medium"]||Ta.medium}},async snapshot(e){(await o).snapshot(e)}}})),Aa=R.n,Ra=Aa.document,Na=Aa.navigator,Da=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=(0,S.s3)();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&(0,S.nZ)().setTags(e.tags);const r=Re({source:"api",url:(0,Gt.l4)(),...e},t);return new Promise(((e,t)=>{const i=setTimeout((()=>t("Unable to determine if Feedback was correctly sent.")),5e3);n.on("afterSendEvent",((n,o)=>{if(n.event_id===r)return clearTimeout(i),o&&"number"===typeof o.statusCode&&o.statusCode>=200&&o.statusCode<300&&e(r),o&&"number"===typeof o.statusCode&&0===o.statusCode?t("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker."):t("Unable to send Feedback. Invalid response from server.")}))}))},Pa="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function La(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen&&t.onFormOpen(),e.onFormOpen&&e.onFormOpen()},onFormClose:()=>{t.onFormClose&&t.onFormClose(),e.onFormClose&&e.onFormClose()},onSubmitSuccess:n=>{t.onSubmitSuccess&&t.onSubmitSuccess(n),e.onSubmitSuccess&&e.onSubmitSuccess(n)},onSubmitError:n=>{t.onSubmitError&&t.onSubmitError(n),e.onSubmitError&&e.onSubmitError(n)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted(),e.onFormSubmitted&&e.onFormSubmitted()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Ma(e,t){return Object.entries(t).forEach((([t,n])=>{e.setAttributeNS(null,t,n)})),e}function Fa({triggerLabel:e,shadow:t}){const n=Ra.createElement("button");if(n.type="button",n.className="widget__actor",n.ariaHidden="false",n.ariaLabel=e,n.appendChild(function(){const e=e=>Aa.document.createElementNS("http://www.w3.org/2000/svg",e),t=Ma(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--foreground)"}),n=Ma(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Ma(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const i=e("defs"),o=Ma(e("clipPath"),{id:"clip0_57_80"}),a=Ma(e("rect"),{width:"20",height:"20",fill:"white"});return o.appendChild(a),i.appendChild(o),t.appendChild(i).appendChild(o).appendChild(a),t}()),e){const t=Ra.createElement("span");t.appendChild(Ra.createTextNode(e)),n.appendChild(t)}const r=function(){const e=Ra.createElement("style");return e.textContent='\n.widget__actor {\n position: fixed;\n z-index: var(--z-index);\n margin: var(--page-margin);\n inset: var(--actor-inset);\n\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px;\n\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n line-height: 1.14em;\n text-decoration: none;\n\n background: var(--actor-background, var(--background));\n border-radius: var(--actor-border-radius, 1.7em/50%);\n border: var(--actor-border, var(--border));\n box-shadow: var(--actor-box-shadow, var(--box-shadow));\n color: var(--actor-color, var(--foreground));\n fill: var(--actor-color, var(--foreground));\n cursor: pointer;\n opacity: 1;\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n background: var(--actor-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n width: 1.14em;\n height: 1.14em;\n}\n\n@media (max-width: 600px) {\n .widget__actor span {\n display: none;\n }\n}\n',e}();return{el:n,appendToDom(){t.appendChild(r),t.appendChild(n)},removeFromDom(){t.removeChild(n),t.removeChild(r)},show(){n.ariaHidden="false"},hide(){n.ariaHidden="true"}}}const ja="rgba(88, 74, 192, 1)",Ua={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:ja,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},Ba={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:ja,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function $a(e){return`\n --foreground: ${e.foreground};\n --background: ${e.background};\n --accent-foreground: ${e.accentForeground};\n --accent-background: ${e.accentBackground};\n --success-color: ${e.successColor};\n --error-color: ${e.errorColor};\n --border: ${e.border};\n --box-shadow: ${e.boxShadow};\n --outline: ${e.outline};\n --interactive-filter: ${e.interactiveFilter};\n `}const za=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:r="sentry-feedback",autoInject:i=!0,showBranding:o=!0,isEmailRequired:a=!1,isNameRequired:s=!1,showEmail:c=!0,showName:u=!0,enableScreenshot:l=!0,useSentryUser:d={email:"email",name:"username"},tags:f,colorScheme:p="system",themeLight:h={},themeDark:m={},addScreenshotButtonLabel:g="Add a screenshot",cancelButtonLabel:y="Cancel",confirmButtonLabel:v="Confirm",emailLabel:_="Email",emailPlaceholder:b="your.email@example.org",formTitle:w="Report a Bug",isRequiredLabel:k="(required)",messageLabel:x="Description",messagePlaceholder:C="What's the bug? What did you expect?",nameLabel:T="Name",namePlaceholder:I="Your Name",removeScreenshotButtonLabel:O="Remove screenshot",submitButtonLabel:A="Send Bug Report",successMessageText:R="Thank you for your report!",triggerLabel:N="Report a Bug",onFormOpen:D,onFormClose:P,onSubmitSuccess:L,onSubmitError:M,onFormSubmitted:F}={})=>{const j={id:r,autoInject:i,showBranding:o,isEmailRequired:a,isNameRequired:s,showEmail:c,showName:u,enableScreenshot:l,useSentryUser:d,tags:f,colorScheme:p,themeDark:m,themeLight:h,triggerLabel:N,cancelButtonLabel:y,submitButtonLabel:A,confirmButtonLabel:v,formTitle:w,emailLabel:_,emailPlaceholder:b,messageLabel:x,messagePlaceholder:C,nameLabel:T,namePlaceholder:I,successMessageText:R,isRequiredLabel:k,addScreenshotButtonLabel:g,removeScreenshotButtonLabel:O,onFormClose:P,onFormOpen:D,onSubmitError:M,onSubmitSuccess:L,onFormSubmitted:F};let U=null,B=[];const $=e=>{if(!U){const t=Ra.createElement("div");t.id=String(e.id),Ra.body.appendChild(t),U=t.attachShadow({mode:"open"}),U.appendChild(function({colorScheme:e,themeDark:t,themeLight:n}){const r=Ra.createElement("style");return r.textContent=`\n:host {\n --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n --font-size: 14px;\n --z-index: 100000;\n\n --page-margin: 16px;\n --inset: auto 0 0 auto;\n --actor-inset: var(--inset);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n ${"system"!==e?"color-scheme: only light;":""}\n\n ${$a("dark"===e?{...Ba,...t}:{...Ua,...n})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n :host {\n ${$a({...Ba,...t})}\n }\n}`:""}\n}\n`,r}(e))}return U},z=async(t,n,r)=>{const i=(0,S.s3)(),o=i&&i.getIntegrationByName(t);if(o)return o;const a=(n&&n()||await e(r))();return i&&i.addIntegration(a),a},q=async e=>{const r=e.enableScreenshot&&!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Na.userAgent)&&!!isSecureContext,[i,o]=await Promise.all([z("FeedbackModal",t,"feedbackModalIntegration"),r?z("FeedbackScreenshot",n,"feedbackScreenshotIntegration"):void 0]);if(!i)throw Pa&&E.kg.error("[Feedback] Missing feedback modal integration. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!");return r&&!o&&Pa&&E.kg.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots."),i.createDialog({options:e,screenshotIntegration:r?o:void 0,sendFeedback:Da,shadow:$(e)})},H=(e,t={})=>{const n=La(j,t),r="string"===typeof e?Ra.querySelector(e):"function"===typeof e.addEventListener?e:null;if(!r)throw Pa&&E.kg.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let i=null;const o=async()=>{i||(i=await q({...n,onFormClose:()=>{i&&i.close(),n.onFormClose&&n.onFormClose()},onFormSubmitted:()=>{i&&i.removeFromDom(),n.onFormSubmitted&&n.onFormSubmitted()}})),i.appendToDom(),i.open()};r.addEventListener("click",o);const a=()=>{B=B.filter((e=>e!==a)),i&&i.removeFromDom(),i=null,r.removeEventListener("click",o)};return B.push(a),a},V=(e={})=>{const t=La(j,e),n=$(t),r=Fa({triggerLabel:t.triggerLabel,shadow:n});return H(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){Jt()&&j.autoInject&&("loading"===Ra.readyState?Ra.addEventListener("DOMContentLoaded",(()=>V().appendToDom)):V().appendToDom())},attachTo:H,createWidget(e={}){const t=V(La(j,e));return t.appendToDom(),t},createForm:async(e={})=>q(La(j,e)),remove(){U&&(U.parentElement&&U.parentElement.remove(),U=null),B.forEach((e=>e())),B=[]}}};function qa(){const e=(0,S.s3)();return e&&e.getIntegrationByName("Feedback")}var Ha,Va,Wa,Ga,Za,Xa,Qa,Ya={},Ja=[],Ka=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,es=Array.isArray;function ts(e,t){for(var n in t)e[n]=t[n];return e}function ns(e){var t=e.parentNode;t&&t.removeChild(e)}function rs(e,t,n){var r,i,o,a={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Ha.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return is(e,a,r,i,null)}function is(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++Wa:i,__i:-1,__u:0};return null==i&&null!=Va.vnode&&Va.vnode(o),o}function os(e){return e.children}function as(e,t){this.props=e,this.context=t}function ss(e,t){if(null==t)return e.__?ss(e.__,e.__i+1):null;for(var n;tn?(Ss(r,t,i),i.length=r.length=0,t=void 0,Ga.sort(Qa)):t&&Va.__c&&Va.__c(t,Ja));t&&Ss(r,t,i),ds.__r=0}function fs(e,t,n,r,i,o,a,s,c,u,l){var d,f,p,h,m,g=r&&r.__k||Ja,y=t.length;for(n.__d=c,ps(n,t,g),c=n.__d,d=0;d0?is(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,s=ms(i,n,a=r+d,l),i.__i=s,o=null,-1!==s&&(l--,(o=n[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==a&&(s===a+1?d++:s>a?l>c-a?d+=s-a:d--:d=s(null!=c&&0==(131072&c.__u)?1:0))for(;a>=0||s=0){if((c=t[a])&&0==(131072&c.__u)&&i==c.key&&o===c.type)return a;a--}if(s=n.__.length&&n.__.push({__V:Ns}),n.__[e]}function $s(e){return As=1,function(e,t,n){var r=Bs(Cs++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Js(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Ts,!Ts.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!o||o.call(this,e,t,n))};Ts.u=!0;var o=Ts.shouldComponentUpdate,a=Ts.componentWillUpdate;Ts.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}a&&a.call(this,e,t,n)},Ts.shouldComponentUpdate=i}return r.__N||r.__}(Js,e)}function zs(e,t){var n=Bs(Cs++,3);!Ds.__s&&Ys(n.__H,t)&&(n.__=e,n.i=t,Ts.__H.__h.push(n))}function qs(e){return As=5,Hs((function(){return{current:e}}),[])}function Hs(e,t){var n=Bs(Cs++,7);return Ys(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Vs(e,t){return As=8,Hs((function(){return e}),t)}function Ws(){for(var e;e=Rs.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Xs),e.__H.__h.forEach(Qs),e.__H.__h=[]}catch(t){e.__H.__h=[],Ds.__e(t,e.__v)}}Ds.__b=function(e){Ts=null,Ps&&Ps(e)},Ds.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Us&&Us(e,t)},Ds.__r=function(e){Ls&&Ls(e),Cs=0;var t=(Ts=e.__c).__H;t&&(Is===Ts?(t.__h=[],Ts.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Ns,e.__N=e.i=void 0}))):(t.__h.forEach(Xs),t.__h.forEach(Qs),t.__h=[],Cs=0)),Is=Ts},Ds.diffed=function(e){Ms&&Ms(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Rs.push(t)&&Os===Ds.requestAnimationFrame||((Os=Ds.requestAnimationFrame)||Zs)(Ws)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Ns&&(e.__=e.__V),e.i=void 0,e.__V=Ns}))),Is=Ts=null},Ds.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Xs),e.__h=e.__h.filter((function(e){return!e.__||Qs(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Ds.__e(n,e.__v)}})),Fs&&Fs(e,t)},Ds.unmount=function(e){js&&js(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Xs(e)}catch(e){t=e}})),n.__H=void 0,t&&Ds.__e(t,n.__v))};var Gs="function"==typeof requestAnimationFrame;function Zs(e){var t,n=function(){clearTimeout(r),Gs&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Gs&&(t=requestAnimationFrame(n))}function Xs(e){var t=Ts,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Ts=t}function Qs(e){var t=Ts;e.__c=e.__(),Ts=t}function Ys(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Js(e,t){return"function"==typeof t?t(e):t}function Ks(){const e=e=>Ra.createElementNS("http://www.w3.org/2000/svg",e),t=Ma(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Ma(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}const ec="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/DialogHeader.tsx";function tc({options:e}){const t=Hs((()=>({__html:Ks().outerHTML})),[]);return rs("h2",{class:"dialog__header",__self:this,__source:{fileName:ec,lineNumber:16}},e.formTitle,e.showBranding?rs("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t,__self:this,__source:{fileName:ec,lineNumber:19}}):null)}const nc="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Form.tsx";function rc(e,t){const n=e.get(t);return"string"===typeof n?n.trim():""}function ic({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:o,onSubmitError:a,showEmail:s,showName:c,screenshotInput:u}){const{tags:l,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:f,cancelButtonLabel:p,emailLabel:h,emailPlaceholder:m,isEmailRequired:g,isNameRequired:y,messageLabel:v,messagePlaceholder:_,nameLabel:b,namePlaceholder:S,submitButtonLabel:w,isRequiredLabel:k}=e,[x,C]=$s(null),[T,I]=$s(!1),O=u&&u.input,[A,R]=$s(null),N=Vs((e=>{R(e),I(!1)}),[]),D=Vs((e=>{const t=function(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}(e,{emailLabel:h,isEmailRequired:g,isNameRequired:y,messageLabel:v,nameLabel:b});return t.length>0?C(`Please enter in the following required fields: ${t.join(", ")}`):C(null),0===t.length}),[h,g,y,v,b]),P=Vs((async e=>{try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;const t=new FormData(e.target),n=await(u&&T?u.value():void 0),r={name:rc(t,"name"),email:rc(t,"email"),message:rc(t,"message"),attachments:n?[n]:void 0};if(!D(r))return;try{await i({name:r.name,email:r.email,message:r.message,source:"widget",tags:l},{attachments:r.attachments}),o(r)}catch(x){Pa&&E.kg.error(x),C(x),a(x)}}catch(t){}}),[u&&T,o,a]);return rs("form",{class:"form",onSubmit:P,__self:this,__source:{fileName:nc,lineNumber:144}},O&&T?rs(O,{onError:N,__self:this,__source:{fileName:nc,lineNumber:146}}):null,rs("div",{class:"form__right","data-sentry-feedback":!0,__self:this,__source:{fileName:nc,lineNumber:149}},rs("div",{class:"form__top",__self:this,__source:{fileName:nc,lineNumber:150}},x?rs("div",{class:"form__error-container",__self:this,__source:{fileName:nc,lineNumber:151}},x):null,c?rs("label",{for:"name",class:"form__label",__self:this,__source:{fileName:nc,lineNumber:154}},rs(oc,{label:b,isRequiredLabel:k,isRequired:y,__self:this,__source:{fileName:nc,lineNumber:155}}),rs("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:S,required:y,type:"text",__self:this,__source:{fileName:nc,lineNumber:156}})):rs("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden",__self:this,__source:{fileName:nc,lineNumber:167}}),s?rs("label",{for:"email",class:"form__label",__self:this,__source:{fileName:nc,lineNumber:171}},rs(oc,{label:h,isRequiredLabel:k,isRequired:g,__self:this,__source:{fileName:nc,lineNumber:172}}),rs("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:g,type:"email",__self:this,__source:{fileName:nc,lineNumber:173}})):rs("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden",__self:this,__source:{fileName:nc,lineNumber:184}}),rs("label",{for:"message",class:"form__label",__self:this,__source:{fileName:nc,lineNumber:187}},rs(oc,{label:v,isRequiredLabel:k,isRequired:!0,__self:this,__source:{fileName:nc,lineNumber:188}}),rs("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:_,required:!0,rows:5,__self:this,__source:{fileName:nc,lineNumber:189}})),O?rs("label",{for:"screenshot",class:"form__label",__self:this,__source:{fileName:nc,lineNumber:201}},rs("button",{class:"btn btn--default",type:"button",onClick:()=>{R(null),I((e=>!e))},__self:this,__source:{fileName:nc,lineNumber:202}},T?f:d),A?rs("div",{class:"form__error-container",__self:this,__source:{fileName:nc,lineNumber:212}},A.message):null):null),rs("div",{class:"btn-group",__self:this,__source:{fileName:nc,lineNumber:216}},rs("button",{class:"btn btn--primary",type:"submit",__self:this,__source:{fileName:nc,lineNumber:217}},w),rs("button",{class:"btn btn--default",type:"button",onClick:r,__self:this,__source:{fileName:nc,lineNumber:220}},p))))}function oc({label:e,isRequired:t,isRequiredLabel:n}){return rs("span",{class:"form__label__text",__self:this,__source:{fileName:nc,lineNumber:239}},e,t&&rs("span",{class:"form__label__text--required",__self:this,__source:{fileName:nc,lineNumber:241}},n))}function ac(){const e=e=>Aa.document.createElementNS("http://www.w3.org/2000/svg",e),t=Ma(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=Ma(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Ma(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=Ma(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(i,r);const o=e("defs"),a=Ma(e("clipPath"),{id:"clip0_57_156"}),s=Ma(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return a.appendChild(s),o.appendChild(a),t.appendChild(o).appendChild(a).appendChild(s),t}const sc="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Dialog.tsx";function cc({open:e,onFormSubmitted:t,...n}){const r=n.options,i=Hs((()=>({__html:ac().outerHTML})),[]),[o,a]=$s(null),s=Vs((()=>{o&&(clearTimeout(o),a(null)),t()}),[o]),c=Vs((e=>{n.onSubmitSuccess(e),a(setTimeout((()=>{t(),a(null)}),5e3))}),[t]);return rs(os,{__self:this,__source:{fileName:sc,lineNumber:47}},o?rs("div",{class:"success__position",onClick:s,__self:this,__source:{fileName:sc,lineNumber:49}},rs("div",{class:"success__content",__self:this,__source:{fileName:sc,lineNumber:50}},r.successMessageText,rs("span",{class:"success__icon",dangerouslySetInnerHTML:i,__self:this,__source:{fileName:sc,lineNumber:52}}))):rs("dialog",{class:"dialog",onClick:r.onFormClose,open:e,__self:this,__source:{fileName:sc,lineNumber:56}},rs("div",{class:"dialog__position",__self:this,__source:{fileName:sc,lineNumber:57}},rs("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()},__self:this,__source:{fileName:sc,lineNumber:58}},rs(tc,{options:r,__self:this,__source:{fileName:sc,lineNumber:65}}),rs(ic,{...n,onSubmitSuccess:c,__self:this,__source:{fileName:sc,lineNumber:66}})))))}const uc=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const i=r,o=e.useSentryUser,a=function(){const e=(0,S.nZ)().getUser(),t=(0,S.aF)().getUser(),n=(0,S.lW)().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),s=Ra.createElement("div"),c=function(){const e=Ra.createElement("style");return e.textContent="\n:host {\n --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n position: fixed;\n z-index: var(--z-index);\n margin: 0;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n height: 100vh;\n width: 100vw;\n\n color: var(--dialog-color, var(--foreground));\n fill: var(--dialog-color, var(--foreground));\n line-height: 1.75em;\n\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n inset: 0;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n position: fixed;\n z-index: var(--z-index);\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n display: flex;\n max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n .dialog__position {\n inset: var(--page-margin);\n padding: 0;\n }\n}\n\n.dialog__position:has(.editor) {\n inset: var(--page-margin);\n padding: 0;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: var(--dialog-padding, 24px);\n max-width: 100%;\n width: 100%;\n max-height: 100%;\n overflow: auto;\n\n background: var(--dialog-background, var(--background));\n border-radius: var(--dialog-border-radius, 20px);\n border: var(--dialog-border, var(--border));\n box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n transform: translate(0, 0) scale(1);\n transition: transform 0.2s ease-in-out;\n}\n\n\n.dialog__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-weight: var(--dialog-header-weight, 600);\n margin: 0;\n}\n\n.brand-link {\n display: inline-flex;\n}\n.brand-link:focus-visible {\n outline: var(--outline);\n}\n\n\n.form {\n display: flex;\n overflow: auto;\n flex-direction: row;\n gap: 16px;\n flex: 1 0;\n}\n\n.form__right {\n flex: 0 0 var(--form-width, 272px);\n width: var(--form-width, 272px);\n display: flex;\n overflow: auto;\n flex-direction: column;\n justify-content: space-between;\n gap: 20px;\n}\n\n@media (max-width: 600px) {\n .form__right {\n width: auto;\n }\n}\n\n.form__top {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.form__error-container {\n color: var(--error-foreground);\n fill: var(--error-foreground);\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n font-family: inherit;\n line-height: inherit;\n background: transparent;\n box-sizing: border-box;\n border: var(--input-border, var(--border));\n border-radius: var(--input-border-radius, 6px);\n color: var(--input-color, inherit);\n fill: var(--input-color, inherit);\n font-size: var(--input-font-size, inherit);\n font-weight: var(--input-font-weight, 500);\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n opacity: 0.65;\n color: var(--input-placeholder-color, inherit);\n filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.error {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n\n.btn-group {\n display: grid;\n gap: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--button-font-size, inherit);\n font-weight: var(--button-font-weight, 600);\n padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n color: var(--button-primary-color, var(--accent-foreground));\n fill: var(--button-primary-color, var(--accent-foreground));\n background: var(--button-primary-background, var(--accent-background));\n border: var(--button-primary-border, var(--border));\n border-radius: var(--button-primary-border-radius, 6px);\n font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n color: var(--button-primary-hover-color, var(--accent-foreground));\n fill: var(--button-primary-hover-color, var(--accent-foreground));\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-background, var(--background));\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n position: fixed;\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n z-index: var(--z-index);\n}\n.success__content {\n background: var(--success-background, var(--background));\n border: var(--success-border, var(--border));\n border-radius: var(--success-border-radius, 1.7em/50%);\n box-shadow: var(--success-box-shadow, var(--box-shadow));\n font-weight: var(--success-font-weight, 600);\n color: var(--success-color);\n fill: var(--success-color);\n padding: 12px 24px;\n line-height: 1.75em;\n\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success__icon {\n display: flex;\n}\n\n",e}();let u="";const l={get el(){return s},appendToDom(){i.contains(c)||i.contains(s)||(i.appendChild(c),i.appendChild(s))},removeFromDom(){i.removeChild(s),i.removeChild(c),Ra.body.style.overflow=u},open(){f(!0),e.onFormOpen&&e.onFormOpen(),u=Ra.body.style.overflow,Ra.body.style.overflow="hidden"},close(){f(!1),Ra.body.style.overflow=u}},d=t&&t.createInput(rs,l,e),f=t=>{!function(e,t,n){var r,i,o,a;Va.__&&Va.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,o=[],a=[],bs(t,e=(!r&&n||t).__k=rs(os,null,[e]),i||Ya,Ya,void 0!==t.ownerSVGElement,!r&&n?[n]:i?null:t.firstChild?Ha.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,a),e.__d=void 0,Ss(o,e,a)}(rs(cc,{options:e,screenshotInput:d,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:o&&a&&a[o.name]||"",defaultEmail:o&&a&&a[o.email]||"",onFormClose:()=>{f(!1),e.onFormClose&&e.onFormClose()},onSubmit:n,onSubmitSuccess:t=>{f(!1),e.onSubmitSuccess&&e.onSubmitSuccess(t)},onSubmitError:t=>{e.onSubmitError&&e.onSubmitError(t)},onFormSubmitted:()=>{e.onFormSubmitted&&e.onFormSubmitted()},open:t,__self:void 0,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/integration.tsx",lineNumber:73}}),s)};return l}});function lc(){const e=Ra.createElement("style");return e.textContent="\n.editor {\n padding: 10px;\n padding-top: 65px;\n padding-bottom: 65px;\n flex-grow: 1;\n\n background-color: #1A141F;\n background-image: repeating-linear-gradient(\n -145deg,\n transparent,\n transparent 8px,\n #1A141F 8px,\n #1A141F 11px\n ),\n repeating-linear-gradient(\n -45deg,\n transparent,\n transparent 15px,\n #302735 15px,\n #302735 16px\n );\n}\n\n.editor__canvas-container {\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.editor__canvas-container canvas {\n object-fit: contain;\n position: relative;\n}\n\n.editor__crop-btn-group {\n padding: 8px;\n gap: 8px;\n border-radius: var(--menu-border-radius, 6px);\n background: var(--button-primary-background, var(--background));\n width: 175px;\n position: absolute;\n}\n\n.editor__crop-corner {\n width: 30px;\n height: 30px;\n position: absolute;\n background: none;\n border: 3px solid #ffffff;\n}\n\n.editor__crop-corner--top-left {\n cursor: nwse-resize;\n border-right: none;\n border-bottom: none;\n}\n.editor__crop-corner--top-right {\n cursor: nesw-resize;\n border-left: none;\n border-bottom: none;\n}\n.editor__crop-corner--bottom-left {\n cursor: nesw-resize;\n border-right: none;\n border-top: none;\n}\n.editor__crop-corner--bottom-right {\n cursor: nwse-resize;\n border-left: none;\n border-top: none;\n}\n",e}const dc="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx",fc=33,pc=Aa.devicePixelRatio,hc=e=>({x:Math.min(e.startX,e.endX),y:Math.min(e.startY,e.endY),width:Math.abs(e.startX-e.endX),height:Math.abs(e.startY-e.endY)}),mc=e=>{const t=e.clientHeight,n=e.clientWidth,r=e.width/e.height;let i=t*r,o=t;i>n&&(i=n,o=n/r);const a=(n-i)/2,s=(t-o)/2;return{startX:a,startY:s,endX:i+a,endY:o+s}};function gc({imageBuffer:e,dialog:t,options:n}){return function({onError:r}){const i=Hs((()=>({__html:lc().innerText})),[]),o=qs(null),a=qs(null),s=qs(null),[c,u]=$s({startX:0,startY:0,endX:0,endY:0}),[l,d]=$s(!1);function f(){const t=s.current,n=hc(mc(e));if(t){t.width=n.width*pc,t.height=n.height*pc,t.style.width=`${n.width}px`,t.style.height=`${n.height}px`;const e=t.getContext("2d");e&&e.scale(pc,pc)}const r=a.current;r&&(r.style.width=`${n.width}px`,r.style.height=`${n.height}px`),u({startX:0,startY:0,endX:n.width,endY:n.height})}function p(e,t){d(!1);const n=h(t),r=()=>{Ra.removeEventListener("mousemove",n),Ra.removeEventListener("mouseup",r),d(!0)};Ra.addEventListener("mouseup",r),Ra.addEventListener("mousemove",n)}zs((()=>{Aa.addEventListener("resize",f,!1)}),[]),zs((()=>{const t=s.current;if(!t)return;const n=t.getContext("2d");if(!n)return;const r=hc(mc(e)),i=hc(c);n.clearRect(0,0,r.width,r.height),n.fillStyle="rgba(0, 0, 0, 0.5)",n.fillRect(0,0,r.width,r.height),n.clearRect(i.x,i.y,i.width,i.height),n.strokeStyle="#ffffff",n.lineWidth=3,n.strokeRect(i.x+1,i.y+1,i.width-2,i.height-2),n.strokeStyle="#000000",n.lineWidth=1,n.strokeRect(i.x+3,i.y+3,i.width-6,i.height-6)}),[c]);const h=Vs((e=>function(t){if(!s.current)return;const n=s.current,r=n.getBoundingClientRect(),i=t.clientX-r.x,o=t.clientY-r.y;switch(e){case"top-left":u((e=>({...e,startX:Math.min(Math.max(0,i),e.endX-fc),startY:Math.min(Math.max(0,o),e.endY-fc)})));break;case"top-right":u((e=>({...e,endX:Math.max(Math.min(i,n.width/pc),e.startX+fc),startY:Math.min(Math.max(0,o),e.endY-fc)})));break;case"bottom-left":u((e=>({...e,startX:Math.min(Math.max(0,i),e.endX-fc),endY:Math.max(Math.min(o,n.height/pc),e.startY+fc)})));break;case"bottom-right":u((e=>({...e,endX:Math.max(Math.min(i,n.width/pc),e.startX+fc),endY:Math.max(Math.min(o,n.height/pc),e.startY+fc)})))}}),[]);return(({onBeforeScreenshot:e,onScreenshot:t,onAfterScreenshot:n,onError:r})=>{zs((()=>{(async()=>{e();const r=await Na.mediaDevices.getDisplayMedia({video:{width:Aa.innerWidth*Aa.devicePixelRatio,height:Aa.innerHeight*Aa.devicePixelRatio},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),i=Ra.createElement("video");await new Promise(((e,n)=>{i.srcObject=r,i.onloadedmetadata=()=>{t(i),r.getTracks().forEach((e=>e.stop())),e()},i.play().catch(n)})),n()})().catch(r)}),[])})({onBeforeScreenshot:Vs((()=>{t.el.style.display="none"}),[]),onScreenshot:Vs((t=>{const n=e.getContext("2d");if(!n)throw new Error("Could not get canvas context");e.width=t.videoWidth,e.height=t.videoHeight,e.style.width="100%",e.style.height="100%",n.drawImage(t,0,0)}),[e]),onAfterScreenshot:Vs((()=>{t.el.style.display="block";const n=o.current;n&&n.appendChild(e),f()}),[]),onError:Vs((e=>{t.el.style.display="block",r(e)}),[])}),rs("div",{class:"editor",__self:this,__source:{fileName:dc,lineNumber:251}},rs("style",{dangerouslySetInnerHTML:i,__self:this,__source:{fileName:dc,lineNumber:252}}),rs("div",{class:"editor__canvas-container",ref:o,__self:this,__source:{fileName:dc,lineNumber:253}},rs("div",{class:"editor__crop-container",style:{position:"absolute",zIndex:1},ref:a,__self:this,__source:{fileName:dc,lineNumber:254}},rs("canvas",{style:{position:"absolute"},ref:s,__self:this,__source:{fileName:dc,lineNumber:255}}),rs(yc,{left:c.startX-3,top:c.startY-3,onGrabButton:p,corner:"top-left",__self:this,__source:{fileName:dc,lineNumber:256}}),rs(yc,{left:c.endX-30+3,top:c.startY-3,onGrabButton:p,corner:"top-right",__self:this,__source:{fileName:dc,lineNumber:262}}),rs(yc,{left:c.startX-3,top:c.endY-30+3,onGrabButton:p,corner:"bottom-left",__self:this,__source:{fileName:dc,lineNumber:268}}),rs(yc,{left:c.endX-30+3,top:c.endY-30+3,onGrabButton:p,corner:"bottom-right",__self:this,__source:{fileName:dc,lineNumber:274}}),rs("div",{style:{left:Math.max(0,c.endX-191),top:Math.max(0,c.endY+8),display:l?"flex":"none"},class:"editor__crop-btn-group",__self:this,__source:{fileName:dc,lineNumber:280}},rs("button",{onClick:e=>{e.preventDefault(),s.current&&u({startX:0,startY:0,endX:s.current.width/pc,endY:s.current.height/pc}),d(!1)},class:"btn btn--default",__self:this,__source:{fileName:dc,lineNumber:288}},n.cancelButtonLabel),rs("button",{onClick:t=>{t.preventDefault(),function(){const t=Ra.createElement("canvas"),n=hc(mc(e)),r=hc(c);t.width=r.width*pc,t.height=r.height*pc;const i=t.getContext("2d");i&&e&&i.drawImage(e,r.x/n.width*e.width,r.y/n.height*e.height,r.width/n.width*e.width,r.height/n.height*e.height,0,0,t.width,t.height);const o=e.getContext("2d");o&&(o.clearRect(0,0,e.width,e.height),e.width=t.width,e.height=t.height,e.style.width=`${r.width}px`,e.style.height=`${r.height}px`,o.drawImage(t,0,0),f())}(),d(!1)},class:"btn btn--primary",__self:this,__source:{fileName:dc,lineNumber:305}},n.confirmButtonLabel)))))}}function yc({top:e,left:t,corner:n,onGrabButton:r}){return rs("button",{class:`editor__crop-corner editor__crop-corner--${n} `,style:{top:e,left:t},onMouseDown:e=>{e.preventDefault(),r(e,n)},onClick:e=>{e.preventDefault()},__self:this,__source:{fileName:dc,lineNumber:335}})}const vc=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:(e,t,n)=>{const r=Ra.createElement("canvas");return{input:gc({h:e,imageBuffer:r,dialog:t,options:n}),value:async()=>{const e=await new Promise((e=>{r.toBlob(e,"image/png")}));if(e){return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}}),_c=za({lazyLoadIntegration:Et}),bc=za({lazyLoadIntegration:Et,getModalIntegration:()=>uc,getScreenshotIntegration:()=>vc});function Sc(e,t){const n=(0,R.Y)("globalMetricsAggregators",(()=>new WeakMap)),r=n.get(e);if(r)return r;const i=new t(e);return e.on("flush",(()=>i.flush())),e.on("close",(()=>i.close())),n.set(e,i),i}function wc(e,t,n,r,i={}){const o=i.client||(0,S.s3)();if(!o)return;const a=(0,J.HN)(),s=a?(0,J.Gx)(a):void 0,c=s&&(0,J.XU)(s).description,{unit:u,tags:l,timestamp:d}=i,{release:f,environment:p}=o.getOptions(),h={};f&&(h.release=f),p&&(h.environment=p),c&&(h.transaction=c),Me.X&&E.kg.log(`Adding value of ${r} to ${t} metric ${n}`);Sc(o,e).add(t,n,r,u,{...h,...l},d)}function kc(e,t,n,r){wc(e,"d",t,Ec(n),r)}const xc={increment:function(e,t,n=1,r){wc(e,"c",t,Ec(n),r)},distribution:kc,set:function(e,t,n,r){wc(e,"s",t,n,r)},gauge:function(e,t,n,r){wc(e,"g",t,Ec(n),r)},timing:function(e,t,n,r="second",i){if("function"===typeof n){const r=(0,et.ph)();return(0,j.V0)({op:"metrics.timing",name:t,startTime:r,onlyIfParent:!0},(o=>(0,ae.i)((()=>n()),(()=>{}),(()=>{const n=(0,et.ph)();kc(e,t,n-r,{...i,unit:"second"}),o.end(n)}))))}kc(e,t,n,{...i,unit:r})},getMetricsAggregatorForClient:Sc};function Ec(e){return"string"===typeof e?parseInt(e):e}function Cc(e){return e.replace(/[^\w\-./]+/gi,"")}const Tc=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Ic(e){return[...e].reduce(((e,t)=>e+function(e){for(const[t,n]of Tc)if(e===t)return n;return e}(t)),"")}function Oc(e,t){E.kg.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=function(e,t,n,r){const i={sent_at:(new Date).toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version});r&&t&&(i.dsn=(0,ze.RA)(t));const o=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return(0,$e.Jd)(i,[o])}(t,e.getDsn(),e.getSdkMetadata(),e.getOptions().tunnel);e.sendEnvelope(n)}const Ac={c:class{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}},g:class{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,ethis._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}},d:class{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}},s:class{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map((e=>"string"===typeof e?function(e){let t=0;for(let n=0;n>>0}(e):e)).join(":")}}};class Rc{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval((()=>this.flush()),5e3)}add(e,t,n,r="none",i={},o=(0,et.ph)()){const a=Math.floor(o),s=t.replace(/[^\w\-.]+/gi,"_");const c=function(e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[Cc(n)]=Ic(String(e[n])));return t}(i),u=function(e){return e.replace(/[^\w]+/gi,"_")}(r),l=function(e,t,n,r){const i=Object.entries((0,x.Jr)(r)).sort(((e,t)=>e[0].localeCompare(t[0])));return`${e}${t}${n}${i}`}(e,s,u,c);let d=this._buckets.get(l);const f=d&&"s"===e?d.metric.weight:0;d?(d.metric.add(n),d.timestamp{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const i=n.createStore(n);let o,a=5e3;function s(e){o&&clearTimeout(o),o=setTimeout((async()=>{o=void 0;const e=await i.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=(new Date).toISOString(),u(e,!0).catch((e=>{t("Failed to retry sending",e)})))}),e),"number"!==typeof o&&o.unref&&o.unref()}function c(){o||(s(a),a=Math.min(2*a,36e5))}async function u(e,o=!1){if(!o&&(0,$e.R)(e,["replay_event","replay_recording"]))return await i.push(e),s(100),{};try{const t=await r.send(e);let n=100;if(t)if(t.headers&&t.headers["retry-after"])n=(0,Xt.JY)(t.headers["retry-after"]);else if(t.headers&&t.headers["x-sentry-rate-limits"])n=6e4;else if((t.statusCode||0)>=400)return t;return s(n),a=5e3,t}catch(u){if(await function(e,t,r){return!(0,$e.R)(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,t,r))}(e,u,a))return o?await i.unshift(e):await i.push(e),c(),t("Error sending. Event queued.",u),{};throw u}}return n.flushAtStartup&&c(),{send:u,flush:e=>r.flush(e)}}}function Mc(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function Fc(e){return Mc(e.getAllKeys())}function jc(e){let t;function n(){return void 0==t&&(t=function(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Mc(n);return e=>r.then((n=>e(n.transaction(t,"readwrite").objectStore(t))))}(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{const r=await(0,$e.V$)(t);await function(e,t,n){return e((e=>Fc(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),Mc(e.transaction)}))))}(n(),r,e.maxQueueSize||30)}catch(zs){}},unshift:async t=>{try{const r=await(0,$e.V$)(t);await function(e,t,n){return e((e=>Fc(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),Mc(e.transaction)}))))}(n(),r,e.maxQueueSize||30)}catch(zs){}},shift:async()=>{try{const e=await function(e){return e((e=>Fc(e).then((t=>{const n=t[0];if(null!=n)return Mc(e.get(n)).then((t=>(e.delete(n),Mc(e.transaction).then((()=>t)))))}))))}(n());if(e)return(0,$e.f4)(e)}catch(zs){}}}}function Uc(e=pt.f){return function(e){return t=>e({...t,createStore:jc})}(Lc(e))}var Bc=n(72189);const $c=1e6,zc=String(0),qc="main";let Hc="",Vc="",Wc="",Gc=dt.m9.navigator&&dt.m9.navigator.userAgent||"",Zc="";const Xc=dt.m9.navigator&&dt.m9.navigator.language||dt.m9.navigator&&dt.m9.navigator.languages&&dt.m9.navigator.languages[0]||"";const Qc=dt.m9.navigator&&dt.m9.navigator.userAgentData;var Yc;function Jc(e){return function(e){return!("thread_metadata"in e)}(e)?function(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[zc]:{name:qc}}},i=e.samples[0];if(!i)return r;const o=i.timestamp,a="number"===typeof performance.timeOrigin?performance.timeOrigin:et.Z1||0,s=a-(et.Z1||a);return e.samples.forEach(((i,a)=>{if(void 0===i.stackId)return void 0===t&&(t=n,r.stacks[t]=[],n++),void(r.samples[a]={elapsed_since_start_ns:((i.timestamp+s-o)*$c).toFixed(0),stack_id:t,thread_id:zc});let c=e.stacks[i.stackId];const u=[];for(;c;){u.push(c.frameId);const t=e.frames[c.frameId];t&&void 0===r.frames[c.frameId]&&(r.frames[c.frameId]={function:t.name,abs_path:"number"===typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),c=void 0===c.parentId?void 0:e.stacks[c.parentId]}const l={elapsed_since_start_ns:((i.timestamp+s-o)*$c).toFixed(0),stack_id:n,thread_id:zc};r.stacks[n]=u,r.samples[a]=l,n++})),r}(e):e}function Kc(e,t,n,r){if("transaction"!==r.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(void 0===n||null===n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const i=function(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return"string"===typeof t&&32!==t.length&&Pt.X&&E.kg.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!==typeof t?"":t}(r),o=Jc(n),a=t||("number"===typeof r.start_timestamp?1e3*r.start_timestamp:1e3*(0,et.ph)()),s="number"===typeof r.timestamp?1e3*r.timestamp:1e3*(0,et.ph)();return{event_id:e,timestamp:new Date(a).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Bc.J,runtime:{name:"javascript",version:dt.m9.navigator.userAgent},os:{name:Hc,version:Vc,build_number:Gc},device:{locale:Xc,model:Zc,manufacturer:Gc,architecture:Wc,is_emulator:!1},debug_meta:{images:nu(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||(0,de.DM)(),trace_id:i,active_thread_id:zc,relative_start_ns:"0",relative_end_ns:(1e6*(s-a)).toFixed(0)}]}}function eu(e){return"pageload"===(0,J.XU)(e).op}"object"===typeof(Yc=Qc)&&null!==Yc&&"getHighEntropyValues"in Yc&&Qc.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((e=>{if(Hc=e.platform||"",Wc=e.architecture||"",Zc=e.model||"",Vc=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];Gc=`${t.brand} ${t.version}`}})).catch((e=>{}));const tu=new WeakMap;function nu(e){const t=R.n._sentryDebugIds;if(!t)return[];const n=(0,S.s3)(),r=n&&n.getOptions(),i=r&&r.stackParser;if(!i)return[];let o;const a=tu.get(i);a?o=a:(o=new Map,tu.set(i,o));const s=Object.keys(t).reduce(((e,n)=>{let r;const a=o.get(n);a?r=a:(r=i(n),o.set(n,r));for(let i=r.length-1;i>=0;i--){const o=r[i],a=o&&o.filename;if(o&&a){e[a]=t[n];break}}return e}),{}),c=[];for(const u of e)u&&s[u]&&c.push({type:"sourcemap",code_file:u,debug_id:s[u]});return c}let ru=!1;function iu(e){if(ru)return Pt.X&&E.kg.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return Pt.X&&E.kg.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const t=(0,S.s3)(),n=t&&t.getOptions();if(!n)return Pt.X&&E.kg.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;if(!("number"!==typeof(i=r)&&"boolean"!==typeof i||"number"===typeof i&&isNaN(i)?(Pt.X&&E.kg.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),0):!0===i||!1===i||!(i<0||i>1)||(Pt.X&&E.kg.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${i}.`),0)))return Pt.X&&E.kg.warn("[Profiling] Discarding profile because of invalid sample rate."),!1;var i;if(!r)return Pt.X&&E.kg.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1;return!!(!0===r||Math.random(){o&&(dt.m9.clearTimeout(o),o=void 0),Pt.X&&E.kg.log(`[Profiling] stopped profiling of span: ${(0,J.XU)(e).description}`),t?function(e,t){if(au.set(e,t),au.size>30){const e=au.keys().next().value;au.delete(e)}}(r,t):Pt.X&&E.kg.log(`[Profiling] profiler returned null profile for: ${(0,J.XU)(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")})).catch((e=>{Pt.X&&E.kg.log("[Profiling] error while stopping profiler:",e)}))}(0,S.nZ)().setContext("profile",{profile_id:r,start_timestamp:t});let o=dt.m9.setTimeout((()=>{Pt.X&&E.kg.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,J.XU)(e).description),i()}),3e4);const a=e.end.bind(e);e.end=function(){return e?(i().then((()=>{a()}),(()=>{a()})),e):a()}}const uu=(0,xe._I)((()=>({name:"BrowserProfiling",setup(e){const t=(0,J.HN)(),n=t&&(0,J.Gx)(t);n&&eu(n)&&iu(n)&&cu(n),e.on("spanStart",(e=>{e===(0,J.Gx)(e)&&iu(e)&&cu(e)})),e.on("beforeEnvelope",(e=>{if(!au.size)return;const t=function(e){const t=[];return(0,$e.gv)(e,((e,n)=>{if("transaction"===n)for(let r=1;r=17}(_.version)&&(0,B.VZ)(e)&&t){const n=new Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,function(e,t){const n=new WeakSet;!function e(t,r){if(!n.has(t))return t.cause?(n.add(t),e(t.cause,r)):void(t.cause=r)}(e,t)}(e,n)}return(0,w.Tb)(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}function du(e){return(t,n)=>{const r=lu(t,n);e&&e(t,n,r)}}var fu=n(8679);const pu="ui.react.render",hu="ui.react.mount";class mu extends _.Component{static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(e){super(e);const{name:t,disabled:n=!1}=this.props;n||(this._mountSpan=(0,j.qp)({name:`<${t}>`,onlyIfParent:!0,op:hu,attributes:{[U.S3]:"auto.ui.react.profiler","ui.component_name":t}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){const t=Object.keys(e).filter((t=>e[t]!==this.props.updateProps[t]));if(t.length>0){const e=(0,et.ph)();this._updateSpan=(0,j._d)(this._mountSpan,(()=>(0,j.qp)({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[U.S3]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":t}})))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const e=(0,et.ph)(),{name:t,includeRender:n=!0}=this.props;if(this._mountSpan&&n){const n=(0,J.XU)(this._mountSpan).timestamp;(0,j._d)(this._mountSpan,(()=>{const r=(0,j.qp)({onlyIfParent:!0,name:`<${t}>`,op:pu,startTime:n,attributes:{[U.S3]:"auto.ui.react.profiler","ui.component_name":t}});r&&r.end(e)}))}}render(){return this.props.children}}function gu(e,t){const n=t&&t.name||e.displayName||e.name||"unknown",r=r=>(0,d.jsx)(mu,{...t,name:n,updateProps:r,children:(0,d.jsx)(e,{...r})});return r.displayName=`profiler(${n})`,fu(r,e),r}function yu(e,t={disabled:!1,hasRenderSpan:!0}){const[n]=_.useState((()=>{if(!t||!t.disabled)return(0,j.qp)({name:`<${e}>`,onlyIfParent:!0,op:hu,attributes:{[U.S3]:"auto.ui.react.profiler","ui.component_name":e}})}));_.useEffect((()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){const t=(0,J.XU)(n).timestamp,r=(0,et.ph)(),i=(0,j.qp)({name:`<${e}>`,onlyIfParent:!0,op:pu,startTime:t,attributes:{[U.S3]:"auto.ui.react.profiler","ui.component_name":e}});i&&i.end(r)}})),[])}mu.__initStatic();const vu="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,_u={componentStack:null,error:null,eventId:null};class bu extends _.Component{constructor(e){super(e),bu.prototype.__init.call(this),this.state=_u,this._openFallbackReportDialog=!0;const t=(0,S.s3)();t&&e.showDialog&&(this._openFallbackReportDialog=!1,t.on("afterSendEvent",(t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&(0,yt.jp)({...e.dialogOptions,eventId:this._lastEventId})})))}componentDidCatch(e,t){const{componentStack:n}=t,r=null==n?void 0:n,{beforeCapture:i,onError:o,showDialog:a,dialogOptions:s}=this.props;(0,S.$e)((c=>{i&&i(c,e,r);const u=lu(e,t,{mechanism:{handled:!!this.props.fallback}});o&&o(e,r,u),a&&(this._lastEventId=u,this._openFallbackReportDialog&&(0,yt.jp)({...s,eventId:u})),this.setState({error:e,componentStack:n,eventId:u})}))}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&r(e,t,n)}__init(){this.resetErrorBoundary=()=>{const{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(_u)}}render(){const{fallback:e,children:t}=this.props,n=this.state;if(n.error){let t;return t="function"===typeof e?_.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):e,_.isValidElement(t)?t:(e&&vu&&E.kg.warn("fallback did not produce a valid ReactElement"),null)}return"function"===typeof t?t():t}}function Su(e,t){const n=e.displayName||e.name||"unknown",r=n=>(0,d.jsx)(bu,{...t,children:(0,d.jsx)(e,{...n})});return r.displayName=`errorBoundary(${n})`,fu(r,e),r}const wu={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function ku(e){const t={...wu,...e};return e=>(n,r)=>{t.attachReduxState&&(0,S.lW)().addEventProcessor(((e,t)=>{try{void 0===e.type&&"redux"===e.contexts.state.state.type&&(t.attachments=[...t.attachments||[],{filename:"redux_state.json",data:JSON.stringify(e.contexts.state.state.value)}])}catch(zs){}return e}));return e(((e,r)=>{const i=n(e,r),o=(0,S.nZ)(),a=t.actionTransformer(r);"undefined"!==typeof a&&null!==a&&(0,ke.n)({category:"redux.action",data:a,type:"info"});const s=t.stateTransformer(i);if("undefined"!==typeof s&&null!==s){const e=(0,S.s3)(),t=e&&e.getOptions(),n=t&&t.normalizeDepth||3,r={state:{type:"redux",value:s}};(0,x.xp)(r,"__sentry_override_normalization_depth__",3+n),o.setContext("state",r)}else o.setContext("state",null);const{configureScopeWithState:c}=t;return"function"===typeof c&&c(o,i),i}),r)}}function xu(e){const t=(0,Pc.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:i,instrumentPageLoad:o=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),o&&dt.m9&&dt.m9.location&&Eu(r,dt.m9.location,i,((t,n="url")=>{(0,Pc.Wo)(e,{name:t,attributes:{[U.$J]:"pageload",[U.S3]:"auto.pageload.react.reactrouter_v3",[U.Zj]:n}})})),a&&n.listen&&n.listen((t=>{"PUSH"!==t.action&&"POP"!==t.action||Eu(r,t,i,((t,n="url")=>{(0,Pc.og)(e,{name:t,attributes:{[U.$J]:"navigation",[U.S3]:"auto.navigation.react.reactrouter_v3",[U.Zj]:n}})}))}))}}}function Eu(e,t,n,r){let i=t.pathname;n({location:t,routes:e},((e,t,n)=>{if(e||!n)return r(i);const o=function(e){if(!Array.isArray(e)||0===e.length)return"";const t=e.filter((e=>!!e.path));let n=-1;for(let r=t.length-1;r>=0;r--){const e=t[r];if(e.path&&e.path.startsWith("/")){n=r;break}}return t.slice(n).filter((({path:e})=>!!e)).map((({path:e})=>e)).join("")}(n.routes||[]);return 0===o.length||"/*"===o?r(i):(i=o,r(i,"route"))}))}function Cu(e,t={}){const n=e,r=(0,Pc.E8)({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:i=!0,instrumentNavigation:o=!0}=t;return{...r,afterAllSetup(e){r.afterAllSetup(e);const t=dt.m9.location;if(i&&t){const r=n.matchRoutes(t.pathname,t.search,{preload:!1,throwOnError:!1}),i=r[r.length-1];(0,Pc.Wo)(e,{name:i?i.routeId:t.pathname,attributes:{[U.$J]:"pageload",[U.S3]:"auto.pageload.react.tanstack_router",[U.Zj]:i?"route":"url",...Tu(i)}})}o&&n.subscribe("onBeforeNavigate",(t=>{if(t.toLocation.state===t.fromLocation.state)return;const r=n.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),i=r[r.length-1],o=dt.m9.location,a=(0,Pc.og)(e,{name:i?i.routeId:o.pathname,attributes:{[U.$J]:"navigation",[U.S3]:"auto.navigation.react.tanstack_router",[U.Zj]:i?"route":"url"}}),s=n.subscribe("onResolved",(e=>{if(s(),a){const t=n.matchRoutes(e.toLocation.pathname,e.toLocation.search,{preload:!1,throwOnError:!1}),r=t[t.length-1];r&&(a.updateName(r.routeId),a.setAttribute(U.Zj,"route"),a.setAttributes(Tu(r)))}}))}))}}}function Tu(e){if(!e)return{};const t={};return Object.entries(e.params).forEach((([e,n])=>{t[`url.path.params.${e}`]=n})),t}function Iu(e){const t=(0,Pc.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:i,instrumentPageLoad:o=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),Au(e,o,a,n,"reactrouter_v4",r,i)}}}function Ou(e){const t=(0,Pc.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:i,instrumentPageLoad:o=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),Au(e,o,a,n,"reactrouter_v5",r,i)}}}function Au(e,t,n,r,i,o=[],a){function s(e){if(0===o.length||!a)return[e,"url"];const t=Ru(o,e,a);for(const n of t)if(n.match.isExact)return[n.match.path,"route"];return[e,"url"]}if(t){const t=r&&r.location?r.location.pathname:dt.m9&&dt.m9.location?dt.m9.location.pathname:void 0;if(t){const[n,r]=s(t);(0,Pc.Wo)(e,{name:n,attributes:{[U.$J]:"pageload",[U.S3]:`auto.pageload.react.${i}`,[U.Zj]:r}})}}n&&r.listen&&r.listen(((t,n)=>{if(n&&("PUSH"===n||"POP"===n)){const[n,r]=s(t.pathname);(0,Pc.og)(e,{name:n,attributes:{[U.$J]:"navigation",[U.S3]:`auto.navigation.react.${i}`,[U.Zj]:r}})}}))}function Ru(e,t,n,r=[]){return e.some((e=>{const i=e.path?n(t,e):r.length?r[r.length-1].match:function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}}(t);return i&&(r.push({route:e,match:i}),e.routes&&Ru(e.routes,t,n,r)),!!i})),r}function Nu(e){const t=e.displayName||e.name,n=t=>{if(t&&t.computedMatch&&t.computedMatch.isExact){const e=t.computedMatch.path,n=function(){const e=(0,J.HN)(),t=e&&(0,J.Gx)(e);if(!t)return;const n=(0,J.XU)(t).op;return"navigation"===n||"pageload"===n?t:void 0}();(0,S.nZ)().setTransactionName(e),n&&(n.updateName(e),n.setAttribute(U.Zj,"route"))}return(0,d.jsx)(e,{...t})};return n.displayName=`sentryRoute(${t})`,fu(n,e),n}let Du,Pu,Lu,Mu,Fu,ju=!1;const Uu=new WeakSet;function Bu(e){const t=(0,Pc.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:r,useNavigationType:i,createRoutesFromChildren:o,matchRoutes:a,stripBasename:s,instrumentPageLoad:c=!0,instrumentNavigation:u=!0}=e;return{...t,setup(){Du=n,Pu=r,Lu=i,Fu=a,Mu=o,ju=s||!1},afterAllSetup(e){t.afterAllSetup(e);const n=dt.m9&&dt.m9.location&&dt.m9.location.pathname;c&&n&&(0,Pc.Wo)(e,{name:n,attributes:{[U.Zj]:"url",[U.$J]:"pageload",[U.S3]:"auto.pageload.react.reactrouter_v6"}}),u&&Uu.add(e)}}}function $u(e,t){if(!t||"/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return e;const n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?e:e.slice(n)||"/"}function zu(e,t,n,r=""){if(!e||0===e.length)return[ju?$u(t.pathname,r):t.pathname,"url"];let i="";if(n)for(const o of n){const e=o.route;if(e){if(e.index)return[ju?$u(o.pathname,r):o.pathname,"route"];const n=e.path;if(n){const e="/"===n[0]||"/"===i[i.length-1]?n:`/${n}`;if(i+=e,r+o.pathname===t.pathname)return(0,zt.$A)(i)!==(0,zt.$A)(o.pathname)&&"/*"!==i.slice(-2)?[(ju?"":r)+e,"route"]:[(ju?"":r)+i,"route"]}}}return[ju?$u(t.pathname,r):t.pathname,"url"]}function qu(e,t,n,r,i){const o=Array.isArray(r)?r:Fu(n,t,i);if(o){const[r,a]=zu(n,t,o,i);(0,S.nZ)().setTransactionName(r),e&&(e.updateName(r),e.setAttribute(U.Zj,a))}}function Hu(e,t,n,r,i){const o=Array.isArray(r)?r:Fu(t,e,i),a=(0,S.s3)();if(a&&Uu.has(a)&&("PUSH"===n||"POP"===n)&&o){const[n,r]=zu(t,e,o,i);(0,Pc.og)(a,{name:n,attributes:{[U.Zj]:r,[U.$J]:"navigation",[U.S3]:"auto.navigation.react.reactrouter_v6"}})}}function Vu(e){if(!Du||!Pu||!Lu||!Mu||!Fu)return vu&&E.kg.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n useEffect: ${Du}. useLocation: ${Pu}. useNavigationType: ${Lu}.\n createRoutesFromChildren: ${Mu}. matchRoutes: ${Fu}.`),e;let t=!0;const n=n=>{const r=Pu(),i=Lu();return Du((()=>{const e=Mu(n.children);t?(qu(Zu(),r,e),t=!1):Hu(r,e,i)}),[r,i]),(0,d.jsx)(e,{...n})};return fu(n,e),n}function Wu(e){if(!Du||!Pu||!Lu||!Fu)return vu&&E.kg.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;let t=!0;const n=n=>{const{routes:r,locationArg:i}=n,o=e(r,i),a=Pu(),s=Lu(),c="string"===typeof i||i&&i.pathname?i:a;return Du((()=>{const e="string"===typeof c?{pathname:c}:c;t?(qu(Zu(),e,r),t=!1):Hu(e,r,s)}),[s,c]),o};return(e,t)=>(0,d.jsx)(n,{routes:e,locationArg:t})}function Gu(e){return Du&&Pu&&Lu&&Fu?function(t,n){const r=e(t,n),i=n&&n.basename,o=Zu();return"POP"===r.state.historyAction&&o&&qu(o,r.state.location,t,void 0,i),r.subscribe((e=>{const n=e.location;"PUSH"!==e.historyAction&&"POP"!==e.historyAction||Hu(n,t,e.historyAction,void 0,i)})),r}:(vu&&E.kg.warn("reactRouterV6Instrumentation was unable to wrap the `createRouter` function because of one or more missing parameters."),e)}function Zu(){const e=(0,J.HN)(),t=e?(0,J.Gx)(e):void 0;if(!t)return;const n=(0,J.XU)(t).op;return"navigation"===n||"pageload"===n?t:void 0}var Xu=n(3093),Qu=n(8151),Yu=n(47853),Ju=function(e){var t,n,i=e.children,o=(0,Yu.B)();return(0,d.jsx)(Xu.AthleticMessagingContextProvider,{env:Qu.cZ?"prd":"stg",pageViewID:(null===(t=window.nyt_et)||void 0===t||null===(n=t.get_pageview_id)||void 0===n?void 0:n.call(t))||"",performanceMeasureCallback:function(){},appVersion:"1.0.0",appType:"nyt-athletic-web",samizdatToken:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkNJrlDDL4JcMfgHrr+ORmCztouGV01VACBICgYLegyE7/qDTwrF1eoOLxypLicNCXseeoFuhTJTLpPYRR82thBjx8EI060gCUMH5Li8stSd4RYt21TrmN3++jOgzeUKEWBs/P4h2Py00/aoQN6N2CYySDkl4be1SHKsFIxZ+8P9mx9qVAgkQhpHVnErKBx9s/oGf7DYUJyLb5TP6aXjRTx+nlft/74ShFZF28z+L5l9GFWIhYHGhREkUEmCbB32uWACLAa6j0IYPqH+53BJ52QSOVJLezzYeLvUA4YjtWviCMIBqyKVE95x+cFbuCML9a9cOkb/jKXTv2yUNwcpPQwIDAQAB",sentry:r,abra:o,overrideMessageSelectionInput:function(){var e={};return(null===window||void 0===window?void 0:window.clientSideNavigationReferer)&&(e.referrer=window.clientSideNavigationReferer),e},children:i})},Ku=n(40479),el=n(9445),tl=n(48964),nl=n(85317),rl=function(e){var t=e.client,n=e.children,r=(0,nl.K)();return _.createElement(r.Consumer,null,(function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),__DEV__?(0,tl.kG)(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):(0,tl.kG)(e.client,29),_.createElement(r.Provider,{value:e},n)}))},il=n(29008),ol=n(72217),al=n(7297),sl=n(7059);function cl(){var e=(0,al.Z)(["\n query getLeaguesFooter($order_by: String) {\n leagues(order_by: $order_by) {\n id\n title\n url\n }\n }\n"]);return cl=function(){return e},e}var ul=(0,sl.Ps)(cl());var ll=n(62286),dl=n(39563),fl=function(e){return e&&e.includes("nytios")?"nytios":e&&e.includes("nyt_android")?"nyt_android":e&&e.includes("theathletic-ios")?"theathletic-ios":e&&e.includes("theathletic-android")?"theathletic-android":null};function pl(e){if(!e)return null;var t=null;return e.indexOf("www.google.com")>-1?t="googlesearch":e.indexOf("com.google.android.googlequicksearchbox")>-1?t="googlequicksearchbox":e.indexOf("www.googleapis.com")>-1?t="googleapis":e.indexOf("news.google.com")>-1?t="googlenews":e.indexOf("t.co")>-1?t="twitterorganic":e.indexOf("www.google.ca")>-1?t="googlesearchcanada":e.indexOf("www.google.co.uk")>-1?t="googlesearchuk":e.indexOf("reddit.com")>-1?t="reddit":e.indexOf("instagram.com")>-1?t="instagramorganic":e.indexOf("facebook.com")>-1?t="facebookorganic":e.indexOf("campaign.theathletic.com")>-1?t="unbounce":(e.indexOf("www.nytimes.com")>-1&&-1==e.indexOf("www.nytimes.com/athletic")||e.indexOf("www.stg.nytimes.com")>-1&&-1==e.indexOf("www.stg.nytimes.com/athletic"))&&(t="nyt"),t}function hl(e,t){var n,r=new URLSearchParams(window.location.search),i=(0,ll.parseCookies)(),a=i.ath_anonymous_user_id;a||(a=(new Date).getTime()+""+Math.floor(999999*Math.random())+1,(0,dl.Z)("ath_anonymous_user_id",a));var s,c,u,l,d,f=fl(null===navigator||void 0===navigator?void 0:navigator.userAgent),p=pl(null===document||void 0===document?void 0:document.referrer),h=r.get("source"),m=i.source,g=i.nyt_source,y=null!==(l=null!==(u=null!==(c=null!==(s=null!==f&&void 0!==f?f:h)&&void 0!==s?s:g)&&void 0!==c?c:p)&&void 0!==u?u:m)&&void 0!==l?l:null;null==(n=null!==(d=r.get("entry_point"))&&void 0!==d?d:null)&&y!=p&&(n=p);var v=i.ref_page;r.get("ref_page")&&(v=r.get("ref_page"));var _={};if(r.get("amp_reader_id")){var b,S,w=null!==(S=null===(b=r.get("amp_reader_id").split("?"))||void 0===b?void 0:b[0])&&void 0!==S?S:r.get("amp_reader_id");_.amp_reader_id=w}var k,x,E=function(e){if(null!=window){var t,n,r,i,o,a=window.page_type;switch("news"===a&&window.object_id&&(a="article"),a){case"account_management":t="account";break;case"account_saved_stories":t="account",n="saved_stories";break;case"article":t="content",n="article",i=window.object_id,r="article_id";break;case"game_game_tab":t="game",n="game_tab",i=window.object_id,r="game_id";break;case"game_discuss_tab":t="game",n="discuss_tab",i=window.object_id,r="game_id";break;case"game_plays_tab":t="game",n="plays_tab",i=window.object_id,r="game_id";break;case"game_stats_tab":t="game",n="stats_tab",i=window.object_id,r="game_id";break;case"home":"author_id"==window.object_type?(t="feed",n="author",i=window.object_id,r="author_id"):"city_id"==window.object_type&&(t="feed",n="city",i=window.object_id,r="city_id");break;case"homepage":var s;t="feed",n="home",i=null!==(s=null===e||void 0===e?void 0:e.user_id)&&void 0!==s?s:"",r="user_id";break;case"leagues":t="feed",n="league",i=window.object_id,r="league_id";break;case"league_bracket":t="league",n="bracket",i=window.object_id,r="league_id";break;case"league_odds":t="league",n="odds",i=window.object_id,r="league_id";break;case"league_picks":t="league",n="picks",i=window.object_id,r="league_id";break;case"league_scores_and_schedules":t="league",n="schedule",i=window.object_id,r="league_id";break;case"league_standings":t="league",n="standings",i=window.object_id,r="league_id";break;case"league_teams":t="league",n="teams",i=window.object_id,r="league_id";break;case"live_room_mainstage":t="live_room",n="live_room_mainstage",i=window.object_id,r="room_id";break;case"live-blogs":case"game_live_blog_tab":case"match-live-blogs":t="content",n="live_blog",i=window.object_id,r="blog_id";break;case"news":t="feed",n="news";break;case"podcasts":t="podcasts",n="podcasts";break;case"podcast_channel":t="podcasts",n="league_podcasts",i=window.object_id,r="league_id";break;case"podcast_page":t="podcasts",n="podcast_page",i=window.object_id,r="podcast_id";break;case"tag":t="feed",n="topic",i=window.object_id,r="term_id";break;case"teams":t="feed",n="team",i=window.object_id,r="team_id";break;case"team_roster":t="team",n="roster",i=window.object_id,r="team_id";break;case"team_scores_and_schedules":t="team",n="schedule",i=window.object_id,r="team_id";break;case"team_stats":t="team",n="stats",i=window.object_id,r="team_id"}return{asset:{section:t,type:n},ta:{object_id:i,object_type:r,user_id:null!==(o=null===e||void 0===e?void 0:e.user_id)&&void 0!==o?o:""}}}}(t);return(0,o.Z)({ad_id:null!==(k=i.last_ad_id_clicked)&&void 0!==k?k:"",campaign:null!==(x=i.campaign)&&void 0!==x?x:"",entryPoint:n,etInitialized:!1,gameSessionId:window.localStorage.getItem("game_session_id"),locale:e,metaBlob:_,previousView:v,sessionId:a,source:y},E)}function ml(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(e){var t=pl(e);t&&(0,dl.Z)("source",t,{maxAge:3600})}}var gl=n(93293),yl=n(46442),vl=n(86506),_l=n(15393);function bl(){var e=(0,al.Z)(["\n query GetArticlePrimaryLeagueDetails($id: ID!) {\n articlePrimaryLeagueDetails(id: $id) {\n id\n url\n }\n }\n"]);return bl=function(){return e},e}var Sl=(0,sl.Ps)(bl());function wl(){var e=(0,al.Z)(["\n query GetGamePrimaryLeague($id: ID!) {\n gamePrimaryLeague(id: $id) {\n id: legacy_id\n slug\n }\n }\n"]);return wl=function(){return e},e}var kl=(0,sl.Ps)(wl());function xl(){var e=(0,al.Z)(["\n query TopicPrimaryLeague($slug: String!) {\n topic: slugToTopic(slug: $slug) {\n league {\n id\n url\n }\n }\n }\n"]);return xl=function(){return e},e}var El=(0,sl.Ps)(xl());function Cl(){var e=(0,al.Z)(["\n query GetLiveBlogPrimaryLeague($id: ID!) {\n liveBlogPrimaryLeague(id: $id) {\n id\n url\n }\n }\n"]);return Cl=function(){return e},e}var Tl=(0,sl.Ps)(Cl()),Il=function(){var e=(0,i.Z)(l().mark((function e(t,n,r){var i,o,a,s,c,u,d,f,p,h,m,g,y,v,_,b,S,w,k,x;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null===n||void 0===n?void 0:n.asPath.includes("/odds/"))||(null===n||void 0===n?void 0:n.asPath.includes("/picks/"))||(null===n||void 0===n?void 0:n.route.startsWith("/player/"))||(null===n||void 0===n?void 0:n.route.startsWith("/team/")))){e.next=7;break}a=(null===n||void 0===n?void 0:n.asPath.split("/").length)>1?null===n||void 0===n?void 0:n.asPath.split("/")[1]:r,e.next=52;break;case 7:if(!(null===n||void 0===n?void 0:n.asPath.endsWith("/teams/"))){e.next=11;break}a=null===n||void 0===n||null===(c=n.query)||void 0===c?void 0:c.league,e.next=52;break;case 11:if(!(null===n||void 0===n?void 0:n.route.includes("/live-blogs/"))){e.next=21;break}return d=null===n||void 0===n||null===(u=n.query)||void 0===u?void 0:u.slug[1],e.next=16,t.query({query:Tl,variables:{id:d},errorPolicy:"ignore"});case 16:f=e.sent.data,s=null===f||void 0===f?void 0:f.liveBlogPrimaryLeague,a=(null===s||void 0===s?void 0:s.url)||r,e.next=52;break;case 21:if(!(null===n||void 0===n?void 0:n.route.includes("/article/"))){e.next=31;break}return h=null===n||void 0===n||null===(p=n.query)||void 0===p?void 0:p.id[0],e.next=26,t.query({query:Sl,variables:{id:h},errorPolicy:"ignore"});case 26:m=e.sent.data,s=null===m||void 0===m?void 0:m.articlePrimaryLeagueDetails,a="soccer"===(null===s||void 0===s?void 0:s.url)&&r?"football-".concat(r):(null===s||void 0===s?void 0:s.url)||r,e.next=52;break;case 31:if(!(null===n||void 0===n?void 0:n.route.includes("/tag/"))){e.next=41;break}return v=null===n||void 0===n||null===(g=n.query)||void 0===g?void 0:g.tag,e.next=36,t.query({query:El,variables:{slug:v},errorPolicy:"ignore"});case 36:_=e.sent.data,s=null===_||void 0===_||null===(y=_.topic)||void 0===y?void 0:y.league,a=(null===s||void 0===s?void 0:s.url)||r,e.next=52;break;case 41:if(!(null===n||void 0===n?void 0:n.route.startsWith("/game/"))||!(null===n||void 0===n||null===(i=n.query)||void 0===i||null===(o=i.slug)||void 0===o?void 0:o[1])){e.next=51;break}return S=null===n||void 0===n||null===(b=n.query)||void 0===b?void 0:b.slug[1],e.next=46,t.query({query:kl,variables:{id:S},errorPolicy:"ignore"});case 46:w=e.sent.data,s=null===w||void 0===w?void 0:w.gamePrimaryLeague,a=(null===s||void 0===s?void 0:s.slug)||r,e.next=52;break;case 51:"football"===(a=(null===n||void 0===n||null===(k=n.query)||void 0===k?void 0:k.league)||(null===n||void 0===n||null===(x=n.query)||void 0===x?void 0:x.channel)||r)&&(a="".concat(a,"-").concat(r)),"national"===a&&(a=r);case 52:return"football"===a&&(a="".concat(a,"-").concat(r)),e.abrupt("return",{navSlug:a,primaryLeague:s});case 54:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),Ol=Il;function Al(){var e=(0,al.Z)(["\n query GetWebNavV2($id: String!, $mobile: Boolean!) {\n getWebNavV2(id: $id) {\n id\n nav_type\n home_link_url\n home_link_text\n home_link_icon_url\n league_id\n items {\n id\n title\n url\n location\n icon_url\n subnav_items {\n id\n title\n url\n icon_url\n location\n }\n teams_list @skip(if: $mobile) {\n has_divisions\n team_data {\n id\n url\n title\n icon_url\n }\n }\n }\n }\n }\n"]);return Al=function(){return e},e}var Rl=(0,sl.Ps)(Al()),Nl=function(e,t,n,r){var i="mobile"===r;return[e.query({query:Rl,variables:{id:t,mobile:i},errorPolicy:"ignore"}),"us"!==t&&"uk"!==t?e.query({query:Rl,variables:{id:n,mobile:i},errorPolicy:"ignore"}):Promise.resolve({data:null})]},Dl=n(4285),Pl=n(67421),Ll=n(79697),Ml=n(32140),Fl=n.n(Ml),jl=n(26946),Ul=n.n(jl),Bl=n(40052),$l=n(15646),zl=n(52393),ql=n(14924),Hl=n(27484),Vl=n.n(Hl),Wl=n(63352);function Gl(e){return e?(null===e||void 0===e?void 0:e.isNyt)?"NYT Bundle":(null===e||void 0===e?void 0:e.isSubscriber)?"TA Sub":(null===e||void 0===e?void 0:e.registrationDate)?"Registered":"Anonymous":null}var Zl=n(11163),Xl=function(e,t){var r=(0,_.useRef)(),i=(0,_.useCallback)(e,[e]),o=(0,_.useCallback)(t,[t]);return(0,_.useEffect)((function(){return r.current=new Worker(n.tu(new URL(n.p+n.u(9722),n.b))),r.current.onmessage=function(e){var t;i&&(i(e),(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.error)&&o&&o(e))},function(){r.current.terminate()}}),[]),{run:(0,_.useCallback)((function(e){r.current.postMessage(e)}),[]),done:(0,_.useCallback)((function(){r.current.terminate()}),[])}},Ql=n(42238),Yl=n(96552),Jl=function(){var e=(0,Yl.z)().logWebVitals,t=(0,_.useContext)(h.f).analyticsState,n=(0,Zl.useRouter)();return(0,_.useEffect)((function(){var t,r=(new Ql.UAParser).getResult(),i="1"!==(null===(t=n.query)||void 0===t?void 0:t.embed)&&!(0,yl.Z)(r.ua),o=function(t){e(t.detail)};return i&&document.addEventListener("report-web-vitals",o),function(){document.removeEventListener("report-web-vitals",o)}}),[t]),(0,d.jsx)(d.Fragment,{})},Kl=(n(22670),n(13872));n(83029),n(38034),n(56706);function ed(){var e="undefined"===typeof performance?null:performance;return e&&e.now?td(e.now()):null}function td(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return+(Math.round("".concat(e,"e+").concat(t))+"e-".concat(t))}function nd(){return"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}var rd=function(e,t,n){var r,i,o,a,s,c=new RegExp("^".concat(n,"="),"i");return null!==(s=null===(a=null===(o=null===(i=null===(r=String(e[t]))||void 0===r?void 0:r.split(","))||void 0===i?void 0:i.find((function(e){return e.match(c)})))||void 0===o?void 0:o.split("="))||void 0===a?void 0:a.pop())&&void 0!==s?s:null},id=n(75882),od=n(34155),ad={},sd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!1,r=!1,i=(0,o.Z)({id:nd()},t.initial),a=function(){if(!n&&r){if(i.duration=ed(),t.beforeSend){var a=t.beforeSend(i);a&&(i=(0,o.Z)({},i,a))}if(n=!0,t.onSend)t.onSend(e,i);else{if("undefined"===typeof navigator)return;if(navigator.sendBeacon)return navigator.sendBeacon(e,JSON.stringify(i));var s=new XMLHttpRequest;s.open("POST",e,!1),s.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),s.send(JSON.stringify(i))}}},s=t.mapMetric||function(e){var t=-1!==["CLS","FCP","FID","INP","LCP","TTFB"].indexOf(e.name);return(0,ql.Z)({},e.name,t?td(e.value,"CLS"===e.name?4:0):e.value)},c=function(e){r||(r=!0),i=(0,o.Z)({},i,s(e,i))};return setTimeout((function(){if(-1!==(PerformanceObserver&&PerformanceObserver&&PerformanceObserver.supportedEntryTypes||[]).indexOf("layout-shift")){var e=function(){"hidden"===document.visibilityState&&(a(),removeEventListener("visibilitychange",e,!0))};addEventListener("visibilitychange",e,!0)}else addEventListener("pagehide",a,{capture:!0,once:!0})})),c}(null,{onSend:function(e,t){var n=new CustomEvent("report-web-vitals",{detail:t});document.dispatchEvent(n)}});function cd(e){"web-vital"===e.label&&sd(e)}function ud(e){return e&&"object"===typeof e&&"data"in e}function ld(e){var t,n,r=e.Component,c=e.pageProps,u=e.initialLanguage,b=e.initialI18nStore,S=e.apolloState,w=e.authState,k=e.apolloClient,x=(0,_.useState)(null!==k&&void 0!==k?k:(0,il.i)(S,w)),E=x[0],C=x[1],T=(0,Zl.useRouter)(),I=(0,_.useState)(null),O=I[0],A=I[1],R=(0,_.useState)({countryCode:null===c||void 0===c?void 0:c.countryCode}),N=R[0],D=R[1],P=(0,_.useState)(w),L=P[0],M=P[1],F=(null===c||void 0===c?void 0:c.isPageAdsEnabled)||!1,j=null===(t=null===c||void 0===c?void 0:c.shouldFetchAuthState)||void 0===t||t,U=(0,s.Z)((0,zl.Z)(),2),B=U[0],$=U[1],z=(0,Kl.J)(null===N||void 0===N?void 0:N.countryCode).authenticate,q=function(){var e=(0,_.useRef)(!1),t=(0,Wl.t)();return{isIterateEnabled:(null===window||void 0===window?void 0:window.Iterate)&&Qu.cZ,setIterateUserProperties:function(n){var r;if(!e.current){var i={};if((null===n||void 0===n?void 0:n.user_id)&&(null===n||void 0===n?void 0:n.user)){var o,a,s=n.user,c=n.following,u=s.contentEdition,l=s.email,d=s.firstName,f=s.id,p=s.lastName,h=s.registrationDate;i={content_region:null!==u&&void 0!==u?u:"us",email:l,external_id:"".concat(f),first_name:d,last_name:p,league_followings:(null===c||void 0===c||null===(o=c.leagues)||void 0===o?void 0:o.length)||0,team_followings:(null===c||void 0===c||null===(a=c.teams)||void 0===a?void 0:a.length)||0,user_id:"".concat(f),user_registration_date:h?Vl()(h).format("YYYY-MM-DD HH:mm:ss ZZ"):null,user_type:Gl(s),variants:JSON.stringify(t.map((function(e){return(0,ql.Z)({},e.id,e.variant)}))),loggedIn:!0},e.current=!0}else i={loggedIn:!1};null===window||void 0===window||null===(r=window.Iterate)||void 0===r||r.call(window,"identify",i)}}}}(),H=q.isIterateEnabled,V=q.setIterateUserProperties,W=(0,_.useRef)(!1),G=(0,id.Z)();(0,_.useEffect)((function(){H&&V(w)}),[H,V,w]),(0,_.useEffect)((function(){var e,t;j?(null===w||void 0===w||null===(e=w.user)||void 0===e?void 0:e.id)||(null===L||void 0===L||null===(t=L.user)||void 0===t?void 0:t.id)||z().then((function(e){return M(e)})):M({user:{},awaitingAuth:!1})}),[]),(0,_.useEffect)((function(){C((0,il.i)(S,L))}),[null===L||void 0===L?void 0:L.awaitingAuth]);var Z=(0,_.useState)(null!==(n=null===c||void 0===c?void 0:c.inNewsreaderApp)&&void 0!==n&&n),X=Z[0],Q=Z[1];(0,_.useEffect)((function(){Q((0,yl.Z)(null===navigator||void 0===navigator?void 0:navigator.userAgent))}),[]),(0,_.useEffect)((function(){ol.fy.init({clientToken:"pub5595fb696afe3ba9a882f6682e7e3384",site:"datadoghq.com",forwardErrorsToLogs:!0,sessionSampleRate:100,service:"react-app",env:"prd-nyt",version:"0.0.0"})}),[]),(0,_.useEffect)((function(){window.localStorage.getItem("game_session_id")&&!["game_discuss_tab","game_game_tab","game_live_blog_tab","game_plays_tab","game_stats_tab"].includes(null===window||void 0===window?void 0:window.page_type)&&window.localStorage.removeItem("game_session_id")}),[]);var Y=Xl((function(e){var t,n,r,i,o,a=e.data,s=(t=null===a||void 0===a?void 0:a.showCookieBannerOnLocation,n=null===a||void 0===a?void 0:a.useCCPA,r=null===a||void 0===a?void 0:a.stateCode,i=null===a||void 0===a?void 0:a.countryCode,o=null===a||void 0===a?void 0:a.geoConfig,{showCookieBannerOnLocation:t,useCCPA:n,stateCode:r,countryCode:i,geoConfig:o});D(s)}));return(0,_.useEffect)((function(){var e;return Y.run({handler:"GeoStateWorker",input:{country_code:null===c||void 0===c?void 0:c.countryCode,bust_cache:!!(null===T||void 0===T||null===(e=T.query)||void 0===e?void 0:e["geo-cache-bust"])}}),function(){Y.done()}}),[]),(0,_.useEffect)((function(){if(N&&!1===(null===L||void 0===L?void 0:L.awaitingAuth)&&void 0===(null===O||void 0===O?void 0:O.etInitialized)){var e=hl(Dl.ZP.language,L);A(e)}}),[N,L,null===L||void 0===L?void 0:L.awaitingAuth]),(0,Pl.NS)(b,u),(0,_.useEffect)((function(){return window.addEventListener("popstate",(function(){window.clientSideNavigationReferer=void 0})),function(){window.removeEventListener("popstate",(function(){}))}}),[]),(0,_.useEffect)((function(){var e=function(e){try{var t=window.btoa(e);fetch((0,$l.Z)("/alog/?u=".concat(t)))}catch(n){console.log(n)}window.clientSideNavigationReferer=window.location.href};return T.events.on("routeChangeStart",e),function(){T.events.off("routeChangeStart",e)}}),[]),(0,_.useEffect)((function(){var e=function(e){try{pSUPERFLY.virtualPage({sections:(Array.isArray(window.sections)?window.sections.concat(window.page_type).join(","):window.page_type)||"",authors:Array.isArray(window.authors)?window.authors.join(","):"",path:e})}catch(t){}};return T.events.on("routeChangeComplete",e),function(){T.events.off("routeChangeComplete",e)}}),[]),(0,_.useEffect)((function(){var e,t=null!==(e=null===B||void 0===B?void 0:B.ath_content_edition)&&void 0!==e?e:vl.Z.getContentEditionCode(N.countryCode),n=function(){var e=(0,i.Z)(l().mark((function e(){var n,r,i,o,a,u,d;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ol(E,T,t);case 2:return n=e.sent.navSlug,e.t0=s.Z,e.next=6,Promise.all(Nl(E,n,t,null===c||void 0===c?void 0:c.breakpointState));case 6:e.t1=e.sent,r=(0,e.t0)(e.t1,2),i=r[0],o=i.data,a=r[1],u=a.data,d=new CustomEvent("refresh-nav-items",{detail:{navV2Data:o,navHamburgerData:u}}),document.dispatchEvent(d);case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return T.events.on("routeChangeComplete",n),function(){T.events.off("routeChangeComplete",n)}}),[T.events]),(0,_.useEffect)((function(){var e=new URLSearchParams(window.location.search);!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("ad_id"in e){var n=Math.round(Number(new Date)/1e3);(0,dl.Z)("last_ad_id_clicked",e.ad_id),(0,dl.Z)("last_ad_id_clicktime",String(n))}"ath_orig_referrer_domain"in e&&(0,dl.Z)("ath_orig_referrer_domain",e.ath_orig_referrer_domain,{maxAge:2592e3}),"campaign"in e&&(0,dl.Z)("campaign",e.campaign),(0,dl.Z)("checkout_entry_point",e.checkout_entry_point?e.checkout_entry_point:"direct"),"nl"in e&&(0,dl.Z)("nyt_source",e.nl,{maxAge:3600}),"smid"in e&&(0,dl.Z)("nyt_source",e.smid,{maxAge:3600}),"pc"in e&&(0,dl.Z)("pc",e.pc),"ref"in e&&(0,dl.Z)("ref",e.ref),"ref_page"in e&&(0,dl.Z)("ref_page",e.ref_page),"shared_by"in e&&(0,dl.Z)("ath_referrer_user_id",e.shared_by),"source"in e?(0,dl.Z)("source",e.source,{maxAge:3600}):t&&ml(t),"sticky_pc"in e&&"sticky_discount"in e&&"sticky_trial"in e&&((0,dl.Z)("sticky_pc",e.sticky_pc),(0,dl.Z)("sticky_discount",e.sticky_discount,{maxAge:2592e3}),(0,dl.Z)("sticky_trial",e.sticky_trial),(0,dl.Z)("sticky_promo","true"))}(Object.fromEntries(e.entries()),document.referrer)}),[]),(0,_.useEffect)((function(){var e,t;!W.current&&(null===(e=window.nyt_et)||void 0===e||null===(t=e.get_pageview_id)||void 0===t?void 0:t.call(e))&&(window.isAthleticClientReady=!0,W.current=!0)})),(0,_.useEffect)((function(){var e=(0,ll.parseCookies)();w&&!w.is_logged_in&&e&&!e.ath_content_edition&&N&&$("ath_content_edition",vl.Z.getContentEditionCode(N.countryCode),{maxAge:86400})}),[N,w]),(0,_.useEffect)((function(){"true"===T.query.logout&&(window.location.href=G)}),[T.query.logout]),(0,d.jsx)(m.H,{value:{authState:L},children:(0,d.jsx)(rl,{client:E,children:(0,d.jsx)(y.b,{value:N,children:(0,d.jsx)(f.M,{children:(0,d.jsx)(Ku.Z,{value:(0,a.Z)((0,o.Z)({},c),{inNewsreaderApp:X}),children:(0,d.jsx)(h.n,{value:O,children:(0,d.jsx)(Pl.a3,{i18n:Dl.ZP,children:(0,d.jsx)(Bl.Ay,{initialTheme:null===c||void 0===c?void 0:c.theme,children:(0,d.jsx)(g.q,{value:null===c||void 0===c?void 0:c.breakpointState,children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(v.o,{children:(0,d.jsx)(el.$5,{children:(0,d.jsx)(Ju,{children:(0,d.jsx)(p.i,{isPageAdsEnabled:F,children:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r,(0,o.Z)({},c)),(0,d.jsx)(Jl,{})]})})})})})})})})})})})})})})})}ld.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(t){var n,r,i,u,f,p,h,m,g,y,v,_,b,S,w,k,x,E,C,T,I,O,A,R,N,D,P,L,M,F,j,U,B,$,z,q,H,V,W,G,Z,X;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.Component,r=t.ctx,i=t.AppTree,u=t.router,f={},!n.getInitialProps){e.next=6;break}return e.next=5,n.getInitialProps(r);case 5:f=e.sent;case 6:if(p=r.req,h=r.res,!p||!h){e.next=14;break}if((m=p.url.replace(/\/\/+/g,"/"))===p.url){e.next=14;break}return h.writeHead(301,{Location:m}),h.end(),e.abrupt("return",{});case 14:if(b={},_=(0,ll.parseCookies)(r),!(0,gl.yF)()){e.next=104;break}return k=(null===u||void 0===u||null===(S=u.query)||void 0===S?void 0:S.country_code)||(0,gl.R1)(null===p||void 0===p?void 0:p.headers)||od.env.DEFAULT_LOCATION||"US",x=(0,_l.Z)(null===r||void 0===r?void 0:r.req),E=!1,"true"===rd(null===p||void 0===p?void 0:p.headers,"x-nyt-app-map","webview")&&(E=!0),C=!0,"false"===(null===p||void 0===p?void 0:p.headers["x-ta-user-logged-in"])&&(C=!1),f=(0,a.Z)((0,o.Z)({},f),{countryCode:k,breakpointState:x,inNewsreaderApp:E,shouldFetchAuthState:C}),T=(0,il.i)(g,y,r),I=(null===_||void 0===_?void 0:_.ath_content_edition)||vl.Z.getContentEditionCode(null===k||void 0===k?void 0:k.toString()),e.next=30,Ol(T,u,I);case 30:if(O=e.sent,A=O.navSlug,R=O.primaryLeague,f=(0,a.Z)((0,o.Z)({},f),{navSlug:A,primaryLeagueId:null===R||void 0===R?void 0:R.id}),r.res&&!r.res.writableEnded&&(D=null===(N=r.res.getHeaders())||void 0===N?void 0:N["surrogate-key"],r.res.setHeader("Surrogate-Key","".concat(D?D+" ":"","ta:nav:").concat(A))),P=p.url.includes("embed=1"),e.t0=s.Z,!P){e.next=47;break}return e.t2={},e.t3={},e.t4={},e.next=43,Promise.resolve().then((function(){var e=new Error("Cannot find module '../modules/auth'");throw e.code="MODULE_NOT_FOUND",e}));case 43:e.t5=e.sent.getCurrentUser,e.t1=[e.t2,e.t3,e.t4,e.t5],e.next=58;break;case 47:return e.t6=Promise,e.t7=[T.query({query:ul,variables:{order_by:"title"},errorPolicy:"ignore"})],e.t8=(0,c.Z)(Nl(T,A,I,x)),e.next=52,Promise.resolve().then((function(){var e=new Error("Cannot find module '../modules/auth'");throw e.code="MODULE_NOT_FOUND",e}));case 52:return e.t9=e.sent.getCurrentUser,e.t10=[e.t9],e.t11=e.t7.concat.call(e.t7,e.t8,e.t10),e.next=57,e.t6.all.call(e.t6,e.t11);case 57:e.t1=e.sent;case 58:if(e.t12=e.t1,L=(0,e.t0)(e.t12,4),M=L[0],F=L[1],j=L[2],U=L[3],B=ud(M)?M.data:null,$=ud(F)?F.data:null,z=ud(j)?j.data:null,f=(0,a.Z)((0,o.Z)({},f),{leagues:B,navHamburgerData:z,navV2Data:$}),q=!1,"1"===p.headers["x-ath-cache-hint-logged-in"]&&(q=!0),y={},!["/article","/league/","/game/[[...slug]]","/game/plays/","/game/stats/","/live-blogs","/tag/","/team/"].some((function(e){return r.pathname.includes(e)}))){e.next=75;break}y={awaitingAuth:!0,user:{}},e.next=88;break;case 75:if(!r.pathname.includes("_error")){e.next=79;break}y={awaitingAuth:!1,user:{}},e.next=88;break;case 79:if(null===(H=f.authState)||void 0===H){e.next=84;break}e.t13=H,e.next=87;break;case 84:return e.next=86,U(r);case 86:e.t13=e.sent;case 87:y=e.t13;case 88:return y.maybeLoggedIn=q,_=(0,ll.parseCookies)(r),V=null===(w=r.req)||void 0===w?void 0:w.headers["accept-language"],W=new(Fl().Locales)(V,Dl.AY),G=new(Fl().Locales)(Dl.E7,Dl.AY),v=W.best(G).code,e.next=96,Dl.ZP.changeLanguage(v);case 96:return b[v]=Ul()[v]||{},Z=(0,il.i)(ad,y,r),e.next=100,Promise.resolve().then((function(){var e=new Error("Cannot find module '@apollo/client/react/ssr'");throw e.code="MODULE_NOT_FOUND",e}));case 100:return X=e.sent.getDataFromTree,e.next=103,X((0,d.jsx)(i,{pageProps:f,apolloClient:Z,authState:y,initialLanguage:v,initialI18nStore:b}));case 103:P||(g=Z.cache.extract(),Object.keys(g).filter((function(e){return!(!e.startsWith("League:")&&!e.startsWith("Nav:"))})).forEach((function(e){ad[e]=g[e]})));case 104:return e.abrupt("return",{initialI18nStore:b,initialLanguage:v,apolloState:g,authState:(0,Ll.Z)(y)?null:y,pageProps:f});case 105:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();var dd=ld},57492:function(e,t,n){"use strict";var r=n(7297),i=n(7059);function o(){var e=(0,r.Z)(["\n fragment Following on UserFollowing {\n id\n teams {\n short_display_name\n league_id\n league_shortname\n league_title\n id\n name\n url\n nav_order\n icon_contrast_color\n league {\n url\n }\n teamv2 {\n alias\n sport\n }\n }\n leagues {\n id\n name\n shortname\n sport_type\n title\n url\n nav_order\n }\n authors {\n name\n id\n url\n image_url\n nav_order\n }\n }\n"]);return o=function(){return e},e}t.Z=(0,i.Ps)(o())},64399:function(e,t){"use strict";t.Z={values:{xs:599,sm:600,smmd:770,md:1e3,lg:1248,xl:1920}}},26059:function(e,t){"use strict";t.Z={borderRadius:4}},55669:function(e,t){"use strict";t.Z={appBar:1100}},29258:function(e,t){"use strict";t.Z={constants:{grey:{100:"#000000",200:"#121212",300:"#323232",400:"#52524F",500:"#969693",600:"#C4C4C0",700:"#F0F0EE",800:"#FFFFFF"},link:{100:"#386C92",800:"#94B4DA"},red:{100:"#B72424",800:"#FD5757"},yellow:{100:"#C04300",800:"#F89A1E"},green:{100:"#026A2E",800:"#4EAB75"},blue:{100:"#225FA7",800:"#6DA4E4"},purple:{100:"#6D30BB",800:"#987FF7"}},gradient:{100:"#F0F0EE",200:"#FFFFFF"},adBackground:"#F7F7F4",nytDivider:"#E0E0E0"}},46006:function(e,t,n){"use strict";n.d(t,{Z:function(){return h},K:function(){return p}});var r=n(45050),i=n(64399),o=n(26059),a=n(55669),s={error:{dark:"#CB3939",main:"#F24A4A"},primary:{main:"#F24A4A",light:"#EAB4B0"},secondary:{main:"#012F6C"},action:{disabledBackground:"rgba(0, 0, 0, 0.1)"},background:{default:"#FFFFFF",paper:"#F7F7F4"},grey:{100:"#FFFFFF",110:"#FAFAFA",200:"#F7F7F4",250:"#fbfbfb",300:"#F0F0EE",320:"#F2F2F2",325:"#E2E2E2",333:"#333333",345:"#DADADA",350:"#DBDBD9",400:"#C4C4C0",450:"#969693",470:"#7d7d7d",490:"#706b66",500:"#52524F",600:"#323232",620:"#2B2B2B",630:"#262627",650:"#1A1A1A",700:"#121212",780:"#181818",800:"#000000"},link:{100:"#386c92"},maroon:"#943848",red:"#CB3939",chalkRed:"#B72424",orange:"#E95F33",yellow:"#F89A1E",lightYellow:"#FEF0DD",brightGreen:"#4EAB75",green:"#3C5634",turqoise:"#105E5E",royal:"#497AB8",navy:"#1C3C64",blue:"#225FA7",purple:"#403C5C",text:{primary:"#121212",secondary:"#5C5656"},gradient:{100:"#F0F0EE",200:"#FFFFFF"},adBackground:"#F7F7F4"},c={htmlFontSize:16,fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:12,fontWeightBold:700,article:{fontFamily:"nyt-imperial, georgia, 'times new roman', times, Serif",fontSize:"20px",fontWeight:"normal",lineHeight:1.5},brand1:{fontFamily:"RegularSlab",fontSize:"2.625rem",fontWeight:400,letterSpacing:"-0.005em",lineHeight:"94%"},brand2:{fontFamily:"RegularSlab",fontSize:"1.6875rem",fontWeight:400,letterSpacing:"-0.005em",lineHeight:"94%"},brand3:{fontFamily:"RegularSlab",fontSize:"1.125rem",fontWeight:400,letterSpacing:"0.01em",lineHeight:"100%"},brandInline4:{fontFamily:"RegularSlabInline",fontSize:"1rem",fontWeight:400,letterSpacing:"0.01em",lineHeight:"100%"},h1:{fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontSize:"2.625rem",fontWeight:400,letterSpacing:"0",lineHeight:"110%"},h2:{fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontSize:"2.25rem",fontWeight:400,letterSpacing:"0",lineHeight:"115%"},h3:{fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontSize:"1.875rem",fontWeight:400,letterSpacing:"0",lineHeight:"120%"},h4:{fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontSize:"1.5rem",fontWeight:400,letterSpacing:"0",lineHeight:"120%"},h5:{fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontSize:"1.25rem",fontWeight:400,letterSpacing:"0.01px",lineHeight:"120%"},headlineXXS:{fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontSize:"1.125rem",fontWeight:400,letterSpacing:"0.01px",lineHeight:"120%"},h6:{fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontSize:"0.9375rem",fontWeight:400,lineHeight:"140%"},body1:{fontFamily:"nyt-imperial, georgia,'times new roman',times, serif",fontSize:"1.25rem",fontWeight:300,lineHeight:"122%"},contentBodyRegular:{fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontSize:"1rem",fontWeight:300,lineHeight:"125%"},body2:{fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontSize:"0.875rem",fontWeight:300,lineHeight:"130%"},body3:{fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontSize:"0.875rem",fontWeight:300,lineHeight:"150%"},bodyMediumXXL:{display:"block",fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontWeight:400,fontSize:"25px",lineHeight:"32px"},bodyMedium0:{display:"block",fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontWeight:400,fontSize:"21px",lineHeight:"28px"},bodyMedium1:{display:"block",fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontSize:"1.125rem",fontWeight:500,lineHeight:"122%"},bodyMedium2:{display:"block",fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontSize:"1.125rem",fontWeight:500,lineHeight:"125%"},bodyMedium3:{display:"block",fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontSize:"1rem",fontWeight:500,lineHeight:"130%"},bodyMedium4:{display:"block",fontFamily:"nyt-cheltenham, georgia,'times new roman',times, serif",fontSize:"0.875rem",fontWeight:500,lineHeight:"150%"},navigation:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"1.125rem",fontWeight:500,lineHeight:"100%"},utilityBold2:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"0.875rem",fontWeight:600,letterSpacing:"0.015em",lineHeight:"100%"},utilityBold3:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"0.750rem",fontWeight:600,letterSpacing:"0.015em",lineHeight:"100%"},utilityMedium1:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"1rem",fontWeight:500,letterSpacing:"0.015em",lineHeight:"120%"},utilityMedium2:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"0.875rem",fontWeight:500,letterSpacing:"0.01em",lineHeight:"100%"},utilityRegular1:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"1rem",fontWeight:400,letterSpacing:"0.015em",lineHeight:"120%"},utilityRegular2:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"0.75rem",fontWeight:400,letterSpacing:"0.015em",lineHeight:"100%"},utilitySansRegularExtraLarge:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"1rem",fontWeight:400,lineHeight:"130%"},utilitySansRegularLarge:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"0.875rem",fontWeight:400,letterSpacing:"0",lineHeight:"130%"},utilitySansRegularSmall:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"0.75rem",fontWeight:400,letterSpacing:"0",lineHeight:"130%"},utilitySansRegularExtraSmall:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"0.625rem",fontWeight:400,letterSpacing:"0",lineHeight:"130%"},utilitySansMediumExtraLarge:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"1rem",fontWeight:600,lineHeight:"130%"},utilitySansMediumLarge:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"0.875rem",fontWeight:600,letterSpacing:"0",lineHeight:"130%"},utilitySansMediumSmall:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"0.75rem",fontWeight:600,letterSpacing:"0",lineHeight:"100%"},utilitySansMediumExtraSmall:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"0.625rem",fontWeight:500,letterSpacing:"0",lineHeight:"100%"},tag:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"0.875rem",fontWeight:500,letterSpacing:"8%",lineHeight:"130%",textTransform:"uppercase"},pageHeaderBold:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"1.750rem",fontWeight:600,letterSpacing:"0.015em",lineHeight:"100%"},headlineSansRegularExtraLarge:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"3rem",letterSpacing:"0",lineHeight:"100%"},headlineSansSemiboldMedium:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"2.25rem",fontWeight:600,letterSpacing:"0",lineHeight:"100%"},headlineSansBoldExtraSmall:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"0.75rem",fontWeight:700,letterSpacing:"0",lineHeight:"100%"},headlineSansBoldSmall:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"1.75rem",fontWeight:700,letterSpacing:"0",lineHeight:"120%"},headlineSansSemiboldSmall:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"1.75rem",fontWeight:600,letterSpacing:"0",lineHeight:"120%"},headlineSansSemiboldExtraSmall:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"1.125rem",fontWeight:600,letterSpacing:"0",lineHeight:"120%"},headlineSansMediumExtraSmall:{fontFamily:"nyt-franklin, helvetica, arial, sans-serif",fontSize:"1.125rem",fontWeight:500,lineHeight:"130%"},excerpt:{fontFamily:"nyt-imperial, georgia, 'times new roman', times, Serif",fontSize:"0.875rem",fontWeight:300,lineHeight:"130%"},headlineRegularSlabExtraSmall:{fontFamily:"RegularSlab, sans-serif",fontSize:"1.125rem",fontWeight:700,lineHeight:"100%"},cheltSerif:{fontFamily:"nyt-cheltenham, georgia,'times new roman',times, Serif",fontStyle:"normal",fontWeight:500,fontSize:"16px",lineHeight:"18px"},tiemposSerif:{fontFamily:"Tiempos, Serif",fontStyle:"normal",fontWeight:500,fontSize:"14px",lineHeight:"18px"}},u=n(17741),l=n.n(u),d=n(51423),f=n.n(d),p={name:"legacy",breakpoints:i.Z,shape:o.Z,zIndex:a.Z,palette:s,typography:c,scss:{palette:l(),typography:f()},themeMapping:{100:s.grey[100],200:s.grey[200],300:s.grey[300],400:s.grey[400],470:s.grey[470],500:s.grey[500],600:s.grey[600],700:s.grey[700],800:s.grey[800],link:s.link[100],error:s.error.main,red:s.red,yellow:s.yellow,green:s.green,blue:s.blue,purple:s.purple,gradient:{100:s.gradient[100],200:s.gradient[200]},ads:{background:s.adBackground,divider:s.grey[300],label:s.grey[600]},typography:{article:c.article,root:c.cheltSerif,brand1:c.brand1,brand2:c.brand2,brand3:c.brand3,brandInline:c.brandInline4,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4,h5:c.h5,headlineXXS:c.headlineXXS,contentBodyRegular:c.contentBodyRegular,body1:c.body1,body2:c.body2,body3:c.body3,bodyMediumXXL:c.bodyMediumXXL,bodyMedium0:c.bodyMedium0,bodyMedium1:c.bodyMedium1,bodyMedium2:c.bodyMedium2,bodyMedium3:c.bodyMedium3,bodyMedium4:c.bodyMedium4,utilityXLRegular:c.utilitySansRegularExtraLarge,utilityLRegular:c.utilitySansRegularLarge,utilitySRegular:c.utilitySansRegularSmall,utilityXSRegular:c.utilitySansRegularExtraSmall,utilityXLMedium:c.utilitySansMediumExtraLarge,utilityLMedium:c.utilitySansMediumLarge,utilitySMedium:c.utilitySansMediumSmall,utilityXSMedium:c.utilitySansMediumExtraSmall,tag:c.tag,calibreHeadlineXLRegular:c.headlineSansRegularExtraLarge,headlineMSemibold:c.headlineSansSemiboldMedium,headlineSSemibold:c.headlineSansSemiboldSmall,headlineXSSemibold:c.headlineSansSemiboldExtraSmall}}},h=(0,r.ZP)(p)},45050:function(e,t,n){"use strict";n.d(t,{ZP:function(){return h},RC:function(){return f},Il:function(){return p}});var r,i=n(26042),o=n(69396),a=n(828),s=function(e,t){return"number"===typeof e?e:"string"===typeof e?t.breakpoints.values[e]:void 0},c=function(e){return(0,o.Z)((0,i.Z)({},e.breakpoints),{up:function(t){var n=s(t,e);return"@media (min-width: ".concat(n,"px)")},down:function(t){var n=s(t,e);return"@media (max-width: ".concat(n,"px)")},only:function(t){var n=s(t,e),r=function(e,t){var n=t.breakpoints.values,r=Object.keys(n),i=r.indexOf(e)+1;return n[r[i]]}(t,e);return"@media (min-width:".concat(n,"px) and (max-width:").concat(r,"px)")},between:function(t,n){var r=s(t,e),i=s(n,e);return"@media (min-width:".concat(r,"px) and (max-width:").concat(i,"px)")}})},u=function(e){var t=e.spacing;"number"===typeof t&&(r=t);var n=r||8;return function(e){return e?n*e:n}},l=n(46006),d={},f=function(){return d},p=function(e){var t=f(),n=Object.entries(t).reduce((function(e,t){var n=(0,a.Z)(t,2),r=(n[0],n[1]);return e.typography=(0,i.Z)({},r.typography,e.typography),"legacy"!==r.name&&(e.palette[r.name]=(0,i.Z)({},r.palette,e.palette)),e}),{typography:{},palette:{}});return n.typography=(0,i.Z)({},n.typography,e.typography),(0,o.Z)((0,i.Z)({},e),{typography:n.typography,palette:(0,i.Z)({},l.Z.palette,n.palette),isLegacy:"legacy"===e.name})},h=function(e){var t=e.name,n=e.scss,r=e.themeMapping,a=e.typography,s=(0,o.Z)((0,i.Z)({},e,r),{typography:(0,i.Z)({},a,r.typography),spacing:u(e),breakpoints:c(e),scss:n});return d[t]=s,s}},86506:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(51438);function i(e,t){var n=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}(e,t,"get");return function(e,t){return t.get?t.get.call(e):t.value}(e,n)}function o(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var a=new WeakMap,s=new WeakMap,c=new WeakMap,u=new WeakMap,l=function(){function e(){(0,r.Z)(this,e),o(this,a,{writable:!0,value:{AU:{currency_code:"AUD"},CA:{currency_code:"CAD"},EU:{currency_code:"EUR"},GB:{currency_code:"GBP"},MY:{currency_code:"MYR"},US:{currency_code:"USD"}}}),o(this,s,{writable:!0,value:{AD:1,AL:1,AT:1,BA:1,BE:1,BG:1,CH:1,CY:1,CZ:1,DE:1,DK:1,EE:1,ES:1,FI:1,FR:1,GR:1,HR:1,HU:1,IE:1,IS:1,IT:1,LV:1,LI:1,LT:1,LU:1,MC:1,ME:1,MK:1,MT:1,NL:1,NO:1,PL:1,PT:1,RO:1,RS:1,SE:1,SI:1,SK:1,SM:1,VA:1}}),o(this,c,{writable:!0,value:{BR:1,HK:1,HU:1,ID:1,IN:1,JP:1,KE:1,MX:1,PH:1,PL:1,RU:1,SA:1,TR:1,TW:1,UG:1}}),o(this,u,{writable:!0,value:{KR:1,NG:1,NZ:1,PR:1,SG:1,TH:1,ZA:1}}),this.countries12HourClock={AU:1,BD:1,CA:1,CO:1,EG:1,SV:1,HN:1,ID:1,IE:1,JO:1,MY:1,MX:1,NZ:1,NI:1,PK:1,PH:1,SA:1,US:1}}var t=e.prototype;return t.getContentEditionCode=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"US",t=this.normalizeCountryCode(e);return"US"===t||"CA"===t?"us":"uk"},t.normalizeCountryCode=function(){var e,t,n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"US",l=null===o||void 0===o?void 0:o.toUpperCase();return 1===(null===(e=i(this,s))||void 0===e?void 0:e[l])&&(l="EU"),"object"===typeof(null===(t=i(this,a))||void 0===t?void 0:t[l])?l:"USVI"===l||"PR"===l?"US":1===(null===(n=i(this,c))||void 0===n?void 0:n[l])?"ROW1":1===(null===(r=i(this,u))||void 0===r?void 0:r[l])?"ROW2":"ROW3"},e}(),d=new l},75882:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(15646);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=encodeURIComponent((0,r.Z)(e)),n="https://myaccount.nytimes.com/auth/logout",i="redirect_uri";return"".concat(n,"?").concat(i,"=").concat(t)}},39376:function(e,t,n){"use strict";var r=n(15646);t.Z=function(e){return(0,r.Z)("/app/themes/athletic/assets/img/"+e,"http://www.bamdascore.com")}},15393:function(e,t,n){"use strict";var r=n(42238);t.Z=function(e){var t,n=function(e){var t,n;return e.headers["x-nyt-device-map"]?t=String(e.headers["x-nyt-device-map"]).split(",").find((function(e){return e.includes("type")})).split("=").pop():e.headers["x-nyt-device-type"]?t=e.headers["x-nyt-device-type"]:e.headers.device_type&&(t=e.headers.device_type),t&&(n="smartphone"===t?"mobile":t),n}(e);if(n)return n;e.headers["cf-device-type"]?t=e.headers["cf-device-type"]:"mobile"!==(t=new r.UAParser(e.headers["user-agent"]).getDevice().type)&&"tablet"!==t&&(t="desktop");return t}},93293:function(e,t,n){"use strict";n.d(t,{Au:function(){return j},Cc:function(){return D},Do:function(){return g},E0:function(){return x},Eh:function(){return G},FA:function(){return U},Gd:function(){return P},Gm:function(){return H},H9:function(){return b},Mg:function(){return _},PZ:function(){return J},Q3:function(){return m},Qd:function(){return h},Qg:function(){return M},R1:function(){return X},Ru:function(){return Q},TY:function(){return R},VW:function(){return O},W9:function(){return W},XZ:function(){return B},Y0:function(){return v},YO:function(){return C},_6:function(){return I},aJ:function(){return E},cK:function(){return Y},e6:function(){return y},fC:function(){return T},fn:function(){return Z},hw:function(){return F},ki:function(){return $},lV:function(){return V},m_:function(){return L},nY:function(){return q},pk:function(){return w},qn:function(){return A},xA:function(){return z},yF:function(){return S},yV:function(){return k}});var r=n(14924),i=n(26042),o=n(28824),a=n(11163),s=n.n(a),c=n(90512),u=n(27484),l=n.n(u),d=n(29387),f=n.n(d),p=n(15646);l().extend(f());var h=function(e){var t;if("Qanda"!==(null===e||void 0===e?void 0:e.__typename)&&"qanda"!==(null===e||void 0===e?void 0:e.type))return(null===e||void 0===e||null===(t=e.images)||void 0===t?void 0:t[0])?e.images[0].thumbnail_cdn_uri?e.images[0].thumbnail_cdn_uri:e.images[0].image_uri:"Discussion"===(null===e||void 0===e?void 0:e.__typename)||"discussion"===(null===e||void 0===e?void 0:e.type)?(0,p.Z)("/static/img/discussion.svg"):(null===e||void 0===e?void 0:e.image_uri)?null===e||void 0===e?void 0:e.image_uri:(null===e||void 0===e?void 0:e.image_url)?null===e||void 0===e?void 0:e.image_url:o.jH;var n=(new Date).getTime();return e.ended_atn?(0,p.Z)("/static/img/qa-live.svg"):e.started_at>n?(0,p.Z)("/static/img/qa-upcoming.svg"):void 0},m=function(){var e;return S()?null:(null===navigator||void 0===navigator||null===(e=navigator.languages)||void 0===e?void 0:e.length)?navigator.languages[0]:navigator.language},g=function(e){if(document.cookie.split(";").some((function(t){return t.trim().startsWith("".concat(e,"="))})))return document.cookie.split("; ").find((function(t){return t.startsWith(e)})).split("=")[1]},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null==e||0===(null===e||void 0===e?void 0:e.length))return null;var r,i=e[0].uri;if(t&&n)i=null===(r=e.find((function(e){return e.height>=t&&e.width>=n})))||void 0===r?void 0:r.uri;else if(t){var o;i=null===(o=e.find((function(e){return e.height>=t})))||void 0===o?void 0:o.uri}else if(n){var a;i=null===(a=e.find((function(e){return e.width>=n})))||void 0===a?void 0:a.uri}return i||(i=e.at(-1).uri),i},v=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={cancelled:"preGame",delayed:"preGame",if_necessary:"preGame",postponed:"preGame",scheduled:"preGame",in_progress:"inGame",suspended:"inGame",final:"postGame"};return"delayed"===e&&n?"inGame":null!==(t=r[e])&&void 0!==t?t:"preGame"},_={preGame:"pregame_box_score",inGame:"ingame_box_score",postGame:"postgame_box_score"},b=function(e,t,n,r){return t>e?"home":e>t?"away":Number.isInteger(r)&&Number.isInteger(n)?r>n?"home":"away":"draw"},S=function(){return!1},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Boolean(e.uk),n=e.timestamp,r=e.format||{},o=S(),a=o?{timeZone:l().tz.guess()}:{},s=n?new Date(n):new Date;return"hour"in r||"minute"in r?s.toLocaleTimeString([],(0,i.Z)({},a,r)):s.toLocaleDateString(o&&t?"en-gb":[],(0,i.Z)({},a,r))},k=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[-\!\/\\\w]*))?)/g,x=function(e){var t,n,r=null===e||void 0===e||null===(t=e.metadata)||void 0===t||null===(n=t.about)||void 0===n?void 0:n.endDate;return r&&new Date>new Date(r)},E=function(e){switch(null===e||void 0===e?void 0:e.__typename){case"LiveBlog":return"live_blog";case"News":return"headline";case"PodcastEpisode":return"podcast_episode";default:return"article"}},C=function(e){switch(null===e||void 0===e?void 0:e.type){case"liveBlog":return"live_blog";case"news":return"headline";case"podcast_episode":return"podcast_episode";case"collectable":return"collectible";case"puzzle":return"puzzle";default:return"article"}},T=function(e){var t=null===e||void 0===e?void 0:e.trim().lastIndexOf(" ",e.lastIndexOf(" ")-1);return t>0?e.substring(0,t)+' '+e.substring(t+1)+"":e},I=function(e,t){return 1===t?e:e+"s"},O=function(e){if(null==e)return null;var t=e%10,n=e%100;return"".concat(e,1===t&&11!==n?"st":2===t&&12!==n?"nd":3===t&&13!==n?"rd":"th")},A=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.id,o=e.home_team,a=e.away_team,s=e.sport,c=e.league;if(!i||!(null===c||void 0===c?void 0:c.slug)||!s||!(null===o||void 0===o||null===(t=o.team)||void 0===t?void 0:t.name)||!(null===a||void 0===a||null===(n=a.team)||void 0===n?void 0:n.name))return null;var u=[o,a].sort((function(e,t){return e.team.name===t.team.name?0:e.team.name>t.team.name?1:-1})),l=encodeURIComponent("".concat(u[0].team.name.toLowerCase().replace(/ /g,"-"),"-vs-").concat(u[1].team.name.toLowerCase().replace(/ /g,"-"))),d="game";return r&&(d="game/".concat(r)),(0,p.Z)("/".concat("soccer"===s?"football/":"".concat(null===c||void 0===c?void 0:c.slug,"/")).concat(d,"/").concat(l,"/").concat(i,"/"))},R=function(e,t){if(e)return"soccer"===t&&"football"!==e?(0,p.Z)("/football/".concat(e,"/")):(0,p.Z)("/".concat(N(e)||e,"/"))},N=function(e){return(null===e||void 0===e?void 0:e.startsWith("fantasy-"))&&"football|basketball|hockey|baseball".split("|").includes(e.replace("fantasy-",""))?"fantasy/".concat(e.replace("fantasy-","")):""},D=function(e,t,n){return n||("premier-league|mls|champions-league|ligamx|international-football|la-liga|npsl|usl|nwsl|bundesliga|serie-a|ligue1|efl-championship|scottish-premiership|fantasy-premier-league|womens-football|europa-league|world-cup|womens-euros|fa-cup|efl-league-one|efl-league-two|efl-league-cup|european-championship|copa-del-rey|womens-world-cup-soccer|copa-america".split("|").includes(t)?n="soccer":"nfl|nhl|nba|mlb|college-football|college-basketball|cfl|lnh|wnba|golf|motorsports|mma|boxing|sports-business|womens-college-basketball|opinion|culture|sports-betting|friendlies|olympics|football|gaming|womens-hockey|formula-1|tennis|nascar|college-sports|sports-memorabilia-and-collectibles|top-sports-news".split("|").includes(t)&&(n="non_soccer")),"soccer"===n&&(t="football"),e?n&&t?(0,p.Z)("/".concat(t,"/team/").concat(e,"/")):(0,p.Z)("/team/".concat(e,"/")):null},P=function(e){return e?e.startsWith("http://")||e.startsWith("https://")?e:(0,p.Z)(e):""},L=function(e,t){if(e)return"soccer"===t?(0,p.Z)("/football/".concat(e,"/schedule/")):(0,p.Z)("/".concat(e,"/schedule/"))},M=function(e){var t={goalkeeper:"GK",defender:"D",wing_back:"D",defensive_midfielder:"M",attacking_midfielder:"M",midfielder:"M",attacker:"A",striker:"A",substitute:"SUB",athlete:"ATH",cornerback:"CB",cornerback_wide_receiver:"CB|WR",defensive_back:"DB",defensive_end:"DE",defensive_lineman:"DL",defensive_tackle:"DT",fullback:"FB",free_safety:"FS",kicker:"K",kicker_punter:"K|P",inside_linebacker:"ILB",linebacker:"LB",long_snapper:"LS",middle_linebacker:"MLB",nose_tackle:"NT",offensive_guard:"OG",offensive_lineman:"OL",outside_linebacker:"OLB",offensive_tackle:"T",punter:"P",quarterback:"QB",running_back:"RB",safety:"S",strong_safety:"SS",tight_end:"TE",wide_receiver:"WR",center_forward:"C-F",forward_center:"F-C",forward_guard:"F-G",guard:"G",guard_forward:"G-F",point_guard:"PG",power_forward:"PF",shooting_guard:"SG",small_forward:"SF",goalie:"G",defense:"D",left_wing:"LW",right_wing:"RW",catcher:"C",center_field:"CF",designated_hitter:"DH",first_base:"1B",left_field:"LF",pinch_hitter:"PH",pinch_runner:"PR",pitcher:"P",relief_pitcher:"RP",right_field:"RF",second_base:"2B",shortstop:"SS",starting_pitcher:"SP",third_base:"3B",center:"C",forward:"F",unknown:"--"};return(null===t||void 0===t?void 0:t[e])||"--"},F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dash",n=Math.floor(e/12),r=e-12*n;return"dash"===t?"".concat(n,"-").concat(r):"".concat(n,"' ").concat(r,'"')},j=function(e){if(!e)return null;var t=e.string_value&&"-"!==e.string_value?e.string_value:"--",n={FractionGameStat:e.numerator_value&&e.denominator_value?e.numerator_value:0,DecimalGameStat:e.decimal_value?e.decimal_value:0,IntegerGameStat:e.int_value?e.int_value:0,PercentageGameStat:e.decimal_value?e.decimal_value:0,StringGameStat:e.string_value,TimeGameStat:3600*e.hours_value+60*e.minutes_value+e.seconds_value};return{headerLabel:e.stat_header_label,label:e.stat_label,type:e.stat_type,category:e.stat_category,displayValue:t,value:n[e.__typename],lessIsBest:e.less_is_best}},U=function(e){var t=e.status,n=e.location,r=e.ctx,i=e.cacheControl;if(S()){var o={Location:n};i&&(o["Cache-Control"]=i),r.res.writeHead(t,o),r.res.end()}else s().push(n)},B=function(e,t){S()?(t.res.statusCode=e,t.res.end()):s().push("/notfound")},$=function(e){return e.match_time_display&&-1!==e.match_time_display.indexOf("OT")?"OT":e.match_time_display&&-1!==e.match_time_display.indexOf("SO")?"SO":void 0},z=function(e,t,n){return e&&t&&n?(0,p.Z)("/".concat("soccer"===n?"football":e,"/player/").concat(t,"/")):null},q=function(e){return["mlb","mls","nba","ncaafb","ncaamb","ncaawb","nfl","nhl","wnba","nws"].includes(e)},H=function(e){var t=e.leagueCode,n=e.leagueSlug;return t?["ncaafb","ncaamb","ncaawb"].includes(t):!!n&&["college-football","college-basketball","womens-college-basketball"].includes(n)},V=function(e){if(void 0==e)return"";e=(e=e.replace(/^\s+|\s+$/g,"")).toLowerCase();for(var t="\xc1\xc4\xc2\xc0\xc3\xc5\u010c\xc7\u0106\u010e\xc9\u011a\xcb\xc8\xca\u1ebc\u0114\u0206\xcd\xcc\xce\xcf\u0147\xd1\xd3\xd6\xd2\xd4\xd5\xd8\u0158\u0154\u0160\u0164\xda\u016e\xdc\xd9\xdb\xdd\u0178\u017d\xe1\xe4\xe2\xe0\xe3\xe5\u010d\xe7\u0107\u010f\xe9\u011b\xeb\xe8\xea\u1ebd\u0115\u0207\xed\xec\xee\xef\u0142\u0148\xf1\xf3\xf6\xf2\xf4\xf5\xf8\xf0\u0159\u0155\u0161\u0165\xfa\u016f\xfc\xf9\xfb\xfd\xff\u017e\xfe\xde\u0110\u0111\xdf\xc6a\xb7/_,:;",n=0,r=t.length;n0&&void 0!==arguments[0]?arguments[0]:{};if(!e)return null;var t=e["x-nyt-geoip-map"];if(t){var n,r,i=null===(r=null===(n=t.split(",").find((function(e){return e.includes("country")})))||void 0===n?void 0:n.split("="))||void 0===r?void 0:r.pop();return i}return(t=e["x-nyt-country"])?t:e["cf-ipcountry"]},Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="/rss/";switch(e){case"news":n+="news/";break;case"podcasts":n+="podcasts/";break;case"ink":n+="ink/";break;case"author":n+="author/".concat(t,"/");break;case"podcast":n+="podcast/".concat(t,"/");break;case"tag":n+="tag/".concat(t,"/");break;case"soccer":case"soccer-player":n+="football/".concat(t,"/");break;case"team":case"player":case"league":case"city":n+="".concat(t,"/");break;default:n=null}return(0,p.Z)(n)},Y=function(e){return e.cookies["NYT-S"]||e.cookies["Nyt-S"]||e.cookies["nyt-s"]},J=function(e){var t=e.getBoundingClientRect(),n=t.top,r=t.left,i=t.bottom,o=t.right,a=window.innerHeight,s=window.innerWidth;return(n>0&&n0&&i0&&r0&&o2&&void 0!==arguments[2]?arguments[2]:{};n.maxAge||(n.maxAge=31536e3);var s,c=(0,o.parseCookies)(),u=a[e],l=null!==(s=c["cookie-policy-optout"])&&void 0!==s?s:"";if("essential"===u||!l.includes(u)){var d=(0,i.Z)((0,r.Z)({maxAge:2592e3},n),{path:"/"});t?(0,o.setCookie)(null,e,t,d):(0,o.destroyCookie)(null,e,d)}}},15646:function(e,t,n){"use strict";var r=n(34155);t.Z=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!(null===e||void 0===e?void 0:e.length)||"string"!==typeof e||/\s+/.test(e)||/^applenews:\//.test(e))return e;n||(n=e.match(/^(https|http):\/\/(.*)?hub\.theathletic\.com\.*/)?"https://hub.theathletic.com":e.match(/^(https|http):\/\/(.*\.)?(theathletic\.com\.*|nytimes\.com\.*\/athletic)\/(wp|get-current-user)/g)||e.match(/^\/(apple|fb|google|nyt)-callback\/?$/)&&((null===r||void 0===r||null===(t=r.env)||void 0===t?void 0:"http://www.bamdascore.com")||"").match(/localhost/)?"http://www.bamdascore.com":"https://www.nytimes.com/athletic");return n?(n=n.replace(/\/$/,""),(e=e.endsWith("/")||e.includes("?")||e.includes("#")||/\.(css|jpeg|jpg|js|json|png|scss|svg|woff2)$/.test(e)?e:e+"/")&&!/^(http|https)?:\/\//.test(e)?n+(e.startsWith("/")?e:"/"+e):e.startsWith(n)?e:e.replace(/^(https|http):\/\/(.*\.)?(theathletic\.com\.*|nytimes\.com\.*\/athletic)/g,n)):e}},150:function(e){e.exports={"grey-100":"palette_grey-100__xn9HB","grey-200":"palette_grey-200__g359z","grey-300":"palette_grey-300__jCyAa","grey-400":"palette_grey-400__EEGSg","grey-500":"palette_grey-500__SM1lW","grey-600":"palette_grey-600__qvbgw","grey-700":"palette_grey-700__xVwsG","grey-800":"palette_grey-800__rBV_O","link-100":"palette_link-100__NYTLc","link-800":"palette_link-800__VHs2r","red-100":"palette_red-100__MBht8","red-800":"palette_red-800__871u_","yellow-100":"palette_yellow-100__56tEp","yellow-800":"palette_yellow-800__teWKQ","green-100":"palette_green-100__Rp3tX","green-800":"palette_green-800__5FY3i","blue-100":"palette_blue-100__X2P0G","blue-800":"palette_blue-800__WoOo2","purple-100":"palette_purple-100__gZVbO","purple-800":"palette_purple-800__Khb4K","gradient-100":"palette_gradient-100__qZAxR","gradient-200":"palette_gradient-200__W_M7c",adbackground:"palette_adbackground__qlWaH",fadeIn:"palette_fadeIn__bGPAJ",fadeOut:"palette_fadeOut__Ya3yp"}},83417:function(e){e.exports={"grey-100":"palette_grey-100__rJ2Vg","grey-200":"palette_grey-200__sEDtv","grey-300":"palette_grey-300__S_3H_","grey-400":"palette_grey-400__vczcw","grey-500":"palette_grey-500__szNPH","grey-600":"palette_grey-600__M2oXV","grey-700":"palette_grey-700__yvCfc","grey-800":"palette_grey-800__jIngz","link-100":"palette_link-100__f59Zy","link-800":"palette_link-800__0TTup","red-100":"palette_red-100__uXcyb","red-800":"palette_red-800__7ddLt","yellow-100":"palette_yellow-100__YfbgO","yellow-800":"palette_yellow-800__o72Ov","green-100":"palette_green-100__C298p","green-800":"palette_green-800__Uw4y3","blue-100":"palette_blue-100__s65_B","blue-800":"palette_blue-800__Vea91","purple-100":"palette_purple-100___iZhh","purple-800":"palette_purple-800__KX3Eo","gradient-100":"palette_gradient-100__vv4Db","gradient-200":"palette_gradient-200__0B40K",adbackground:"palette_adbackground__F36Qz",fadeIn:"palette_fadeIn__1vzPv",fadeOut:"palette_fadeOut__jTP2a"}},17741:function(e){e.exports={"font-error-dark":"palette_font-error-dark__RViU8","font-error-main":"palette_font-error-main__2Kon5","font-primary-main":"palette_font-primary-main__ElM6d","font-primary-light":"palette_font-primary-light___odcc","font-secondary-main":"palette_font-secondary-main__ur03T","font-grey-100":"palette_font-grey-100__zeUTh","font-grey-110":"palette_font-grey-110__JmLrC","font-grey-200":"palette_font-grey-200__D6MSg","font-grey-250":"palette_font-grey-250__ASNEk","font-grey-300":"palette_font-grey-300__b0lK4","font-grey-320":"palette_font-grey-320__T1DPU","font-grey-325":"palette_font-grey-325__HjRym","font-grey-333":"palette_font-grey-333__o2RaB","font-grey-345":"palette_font-grey-345__2Fqkq","font-grey-350":"palette_font-grey-350__0Nixe","font-grey-400":"palette_font-grey-400__O7o4J","font-grey-450":"palette_font-grey-450__SxSIv","font-grey-490":"palette_font-grey-490__lg79U","font-grey-500":"palette_font-grey-500__sIUAU","font-grey-600":"palette_font-grey-600__APQSf","font-grey-620":"palette_font-grey-620__blo_Q","font-grey-630":"palette_font-grey-630__oelcx","font-grey-650":"palette_font-grey-650__KgpKp","font-grey-700":"palette_font-grey-700__XxCwB","font-grey-780":"palette_font-grey-780__Mzsi7","font-grey-800":"palette_font-grey-800__fOSbJ","font-link-100":"palette_font-link-100__pE3t5","font-maroon":"palette_font-maroon__KrL0L","font-red":"palette_font-red__pe6_O","font-chalkRed":"palette_font-chalkRed___b2uw","font-orange":"palette_font-orange__6TE5F","font-yellow":"palette_font-yellow__juDPW","font-lightYellow":"palette_font-lightYellow__YYqDc","font-brightGreen":"palette_font-brightGreen__zFqcl","font-green":"palette_font-green__QosEL","font-turqoise":"palette_font-turqoise__u5sF_","font-royal":"palette_font-royal__ikAQO","font-navy":"palette_font-navy__M5mxf","font-blue":"palette_font-blue__ankPJ","font-purple":"palette_font-purple__YL4kT","font-text-primary":"palette_font-text-primary__02oCv","background-error-dark":"palette_background-error-dark___pYNt","background-error-main":"palette_background-error-main__72T7U","background-primary-main":"palette_background-primary-main__XKZ6X","background-primary-light":"palette_background-primary-light__HZ0R1","background-secondary-main":"palette_background-secondary-main___7j7V","background-action-disabledBackground":"palette_background-action-disabledBackground__iKjqG","background-background-default":"palette_background-background-default__tjSqm","background-background-paper":"palette_background-background-paper__2alkr","background-grey-100":"palette_background-grey-100__yqObE","background-grey-110":"palette_background-grey-110__Fwoqp","background-grey-200":"palette_background-grey-200__9q7uC","background-grey-250":"palette_background-grey-250__JrBgd","background-grey-300":"palette_background-grey-300__jhZIq","background-grey-320":"palette_background-grey-320__TJtDJ","background-grey-325":"palette_background-grey-325__n9LXi","background-grey-333":"palette_background-grey-333__DB23v","background-grey-345":"palette_background-grey-345__ljWfj","background-grey-350":"palette_background-grey-350__mFPe4","background-grey-400":"palette_background-grey-400__1_O3k","background-grey-450":"palette_background-grey-450__DLtrd","background-grey-490":"palette_background-grey-490__pOK25","background-grey-500":"palette_background-grey-500__0KJu2","background-grey-600":"palette_background-grey-600__SMDY4","background-grey-620":"palette_background-grey-620__Be4ld","background-grey-630":"palette_background-grey-630__gs7Sc","background-grey-650":"palette_background-grey-650__51qaS","background-grey-700":"palette_background-grey-700__hY9Ns","background-grey-780":"palette_background-grey-780__UcGEj","background-grey-800":"palette_background-grey-800___ZXQo","background-link-100":"palette_background-link-100__51u3Z","background-maroon":"palette_background-maroon__IOusi","background-red":"palette_background-red__IszI6","background-chalkRed":"palette_background-chalkRed__9bDbK","background-orange":"palette_background-orange__2RUZv","background-yellow":"palette_background-yellow__04JQL","background-lightYellow":"palette_background-lightYellow__980_o","background-brightGreen":"palette_background-brightGreen__ErT8q","background-green":"palette_background-green__Q_XAT","background-turqoise":"palette_background-turqoise___HpFY","background-royal":"palette_background-royal__A2Z3v","background-navy":"palette_background-navy__ZiXwh","background-blue":"palette_background-blue___XGEC","background-purple":"palette_background-purple__TN38i","background-text-primary":"palette_background-text-primary__EMWgE","background-gradient-100":"palette_background-gradient-100__kjdV9","background-gradient-200":"palette_background-gradient-200__24LhE","background-adBackground":"palette_background-adBackground__atcc7",fadeIn:"palette_fadeIn___GckX",fadeOut:"palette_fadeOut__oDeYy"}},51423:function(e){e.exports={article:"typography_article__CqzRR",brand1:"typography_brand1__OgrJB",brand2:"typography_brand2__TpJcb",brand3:"typography_brand3__PMexi",brandInline4:"typography_brandInline4__Q9Ibq",h1:"typography_h1__q9gac",h2:"typography_h2__D6Z5c",h3:"typography_h3__gqd_h",h4:"typography_h4__PQVM2",h5:"typography_h5__g0rPl",headlineXXS:"typography_headlineXXS__ibr7K",h6:"typography_h6__amon3",body1:"typography_body1__ltrlZ",contentBodyRegular:"typography_contentBodyRegular__orXl3",body2:"typography_body2__mRZkE",body3:"typography_body3__aduF_",bodyMediumXXL:"typography_bodyMediumXXL__ZI8sa",bodyMedium0:"typography_bodyMedium0__nJx_p",bodyMedium1:"typography_bodyMedium1__kbkrh",bodyMedium2:"typography_bodyMedium2__UZIdg",bodyMedium3:"typography_bodyMedium3__gfQBy",bodyMedium4:"typography_bodyMedium4__K6Zsb",navigation:"typography_navigation__XbBe6",utilityBold2:"typography_utilityBold2__8V6zu",utilityBold3:"typography_utilityBold3__aJa6d",utilityMedium1:"typography_utilityMedium1__PRWKE",utilityMedium2:"typography_utilityMedium2__UopVt",utilityRegular1:"typography_utilityRegular1__Zqib2",utilityRegular2:"typography_utilityRegular2__QKOxY",utilitySansRegularExtraLarge:"typography_utilitySansRegularExtraLarge__RGrfj",utilitySansRegularLarge:"typography_utilitySansRegularLarge__YZ6k2",utilitySansRegularSmall:"typography_utilitySansRegularSmall__Aa2CZ",utilitySansRegularExtraSmall:"typography_utilitySansRegularExtraSmall__W9LP_",utilitySansMediumExtraLarge:"typography_utilitySansMediumExtraLarge__X_LiQ",utilitySansMediumLarge:"typography_utilitySansMediumLarge__YCsO6",utilitySansMediumSmall:"typography_utilitySansMediumSmall__umbri",utilitySansMediumExtraSmall:"typography_utilitySansMediumExtraSmall__pBM1a",tag:"typography_tag__lX_1C",pageHeaderBold:"typography_pageHeaderBold__EFvrF",headlineSansRegularExtraLarge:"typography_headlineSansRegularExtraLarge__MzIVP",headlineSansSemiboldMedium:"typography_headlineSansSemiboldMedium__p1vnK",headlineSansSemiboldSmall:"typography_headlineSansSemiboldSmall__fiIvZ",headlineSansSemiboldExtraSmall:"typography_headlineSansSemiboldExtraSmall__MMh5H",headlineSansMediumExtraSmall:"typography_headlineSansMediumExtraSmall__A0syY",headlineRegularSlabExtraSmall:"typography_headlineRegularSlabExtraSmall__Ylysj",cheltSerif:"typography_cheltSerif__EONIe",tiemposSerif:"typography_tiemposSerif__rwJTM"}},42794:function(e){e.exports={"slab-l-bold":"ChalkTypography_slab-l-bold__CuR20","slab-m-bold":"ChalkTypography_slab-m-bold__L9dRJ","slab-s-bold":"ChalkTypography_slab-s-bold__Pgz4v","cheltenham-headline-xxl-medium":"ChalkTypography_cheltenham-headline-xxl-medium__RDkdM","cheltenham-headline-xxl-regular":"ChalkTypography_cheltenham-headline-xxl-regular__q_GDm","cheltenham-headline-xl-medium":"ChalkTypography_cheltenham-headline-xl-medium__bZ_v_","cheltenham-headline-xl-regular":"ChalkTypography_cheltenham-headline-xl-regular__O54Qe","cheltenham-headline-l-medium":"ChalkTypography_cheltenham-headline-l-medium__A1Z_X","cheltenham-headline-l-regular":"ChalkTypography_cheltenham-headline-l-regular__QVbIk","cheltenham-headline-m-regular":"ChalkTypography_cheltenham-headline-m-regular__vBvFz","cheltenham-headline-s-regular":"ChalkTypography_cheltenham-headline-s-regular__Nba3m","cheltenham-headline-xs-regular":"ChalkTypography_cheltenham-headline-xs-regular__k_1QJ","cheltenham-headline-xxs-regular":"ChalkTypography_cheltenham-headline-xxs-regular__x2B4q","franklin-headline-xl-regular":"ChalkTypography_franklin-headline-xl-regular__GGCCC","franklin-headline-l-semibold":"ChalkTypography_franklin-headline-l-semibold__vUgvG","franklin-headline-m-semibold":"ChalkTypography_franklin-headline-m-semibold__B6R8F","franklin-headline-s-semibold":"ChalkTypography_franklin-headline-s-semibold__YdpQS","franklin-headline-s-medium":"ChalkTypography_franklin-headline-s-medium__z_vTe","tiempos-headline-xxl-medium":"ChalkTypography_tiempos-headline-xxl-medium__OV2f2","tiempos-headline-xxl-regular":"ChalkTypography_tiempos-headline-xxl-regular__riC12","tiempos-headline-xl-medium":"ChalkTypography_tiempos-headline-xl-medium__dADss","tiempos-headline-xl-regular":"ChalkTypography_tiempos-headline-xl-regular__vKux5","tiempos-headline-l-medium":"ChalkTypography_tiempos-headline-l-medium__BFda3","tiempos-headline-l-regular":"ChalkTypography_tiempos-headline-l-regular__jiJud","tiempos-headline-m-regular":"ChalkTypography_tiempos-headline-m-regular__XDIfS","tiempos-headline-s-regular":"ChalkTypography_tiempos-headline-s-regular__1ruxa","tiempos-headline-xs-regular":"ChalkTypography_tiempos-headline-xs-regular__wEmO2","tiempos-headline-xxs-regular":"ChalkTypography_tiempos-headline-xxs-regular__rX50_","calibre-headline-xl-regular":"ChalkTypography_calibre-headline-xl-regular__XN5eM","calibre-headline-l-semibold":"ChalkTypography_calibre-headline-l-semibold__g2Soh","calibre-headline-m-semibold":"ChalkTypography_calibre-headline-m-semibold__h0rRh","calibre-headline-s-semibold":"ChalkTypography_calibre-headline-s-semibold__BfYu_","calibre-headline-s-medium":"ChalkTypography_calibre-headline-s-medium__XmiMK","utility-xl-medium":"ChalkTypography_utility-xl-medium__jP6HW","utility-xl-regular":"ChalkTypography_utility-xl-regular__ug4kS","utility-l-medium":"ChalkTypography_utility-l-medium__eH9aK","utility-l-regular":"ChalkTypography_utility-l-regular__JZkxt","utility-s-medium":"ChalkTypography_utility-s-medium__636DT","utility-s-regular":"ChalkTypography_utility-s-regular__NNtRF","utility-xs-medium":"ChalkTypography_utility-xs-medium__nnCiM","utility-xs-regular":"ChalkTypography_utility-xs-regular__uLe70","tag-l-medium":"ChalkTypography_tag-l-medium__xREqY"}},56706:function(){},83029:function(){},38034:function(){},22670:function(){},9008:function(e,t,n){e.exports=n(5443)},11163:function(e,t,n){e.exports=n(90387)},62286:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nthis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),f=new c.g7,p=Object.prototype.hasOwnProperty,h=void 0===(l=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:l;function m(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var g=[];function y(e,t){if(!e)throw new Error(t||"assertion failure")}function v(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var _=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!w(this))return b(this),this.value[0]},e.prototype.recompute=function(e){return y(!this.recomputing,"already recomputing"),b(this),w(this)?function(e,t){O(e),f.withValue(e,S,[e,t]),function(e,t){if("function"===typeof e.subscribe)try{m(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,w(e))return;x(e)}(e);return v(e.value)}(this,e):v(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,k(this),m(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),O(this),E(this,(function(t,n){t.setDirty(),A(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=g.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(h(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),g.push(this.deps),this.deps=null)},e.count=0,e}();function b(e){var t=f.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),w(e)?C(t,e):T(t,e),t}function S(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function w(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function k(e){E(e,C)}function x(e){E(e,T)}function E(e,t){var n=e.parents.size;if(n)for(var r=h(e.parents),i=0;i0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),I(e,t),w(e)||x(e)}function I(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(g.length<100&&g.push(n),e.dirtyChildren=null))}function O(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){A(e,n)})),e.forgetDeps(),y(null===e.dirtyChildren)}function A(e,t){t.parents.delete(e),e.childValues.delete(t),I(e,t)}var R={setDirty:!0,dispose:!0,forget:!0};function N(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=f.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"===typeof n&&(m(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&p.call(R,n)?n:"setDirty";h(r).forEach((function(e){return e[i]()})),t.delete(e),m(r)}},r}function D(){var e=new s("function"===typeof WeakMap);return function(){return e.lookupArray(arguments)}}D();var P=new Set;function L(e,t){void 0===t&&(t=Object.create(null));var n=new d(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||D(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new _(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),P.add(n),f.hasValue()||(P.forEach((function(e){return e.clean()})),P.clear()),s};function a(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function c(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=c,o.forget=function(){return c(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}},40620:function(e,t,n){"use strict";n.r(t),n.d(t,{Global:function(){return K},ThemeContext:function(){return B},ThemeProvider:function(){return W},cache:function(){return le},css:function(){return ce},cx:function(){return re},flush:function(){return te},getRegisteredStyles:function(){return oe},hydrate:function(){return ne},injectGlobal:function(){return ae},keyframes:function(){return se},merge:function(){return ie},sheet:function(){return ue},styled:function(){return ee},themeFn:function(){return Q},useTheme:function(){return Z},withTheme:function(){return G}});var r=n(48285),i=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};var o=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},a=n(40351),s=n(67866),c=n(67294),u=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l=(0,s.Z)((function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),d=n(8679),f=n.n(d),p=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t=function(e){var t=document.createElement("style");return t.setAttribute("data-lights",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);this.container.insertBefore(t,0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling),this.tags.push(t)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t96?z:q},V=i((function(e){return i((function(t){return function(e,t){return"function"==typeof t?t(e):j({},e,t)}(e,t)}))})),W=function(e){return c.createElement(B.Consumer,null,(function(t){return e.theme!==t&&(t=V(t)(e.theme)),c.createElement(B.Provider,{value:t},e.children)}))};function G(e){var t=e.displayName||e.name||"Component",n=c.forwardRef((function(t,n){return c.createElement(B.Consumer,null,(function(r){return c.createElement(e,j({theme:r,ref:n},t))}))}));return n.displayName="WithTheme("+t+")",f()(n,e)}function Z(){return c.useContext(B)}function X(e,t,n){var r,i=t.theme&&t.theme[e];return"function"==typeof(r="function"==typeof i?i(n):n[i]?n[i]:n.none)?r(t):r}function Q(e,t){return function(n){return X(e,n,t)}}W.displayName="ThemeProvider",Q.variants=function(e,t,n){return function(r){var i=r[t]&&n[r[t]];return i&&X(e,r,i)}};var Y,J=function(e,t){if(void 0!==e.__SECRET_LIGHTS__)return e.__SECRET_LIGHTS__;var n=function(e){void 0===e&&(e={});var t,n,i=e.key||"css";void 0!==e.prefix&&(n={prefix:e.prefix});var o,a,s=new r.Z(n),c={};if(_){o=e.container||document.head;var u="data-lights-"+i,l=document.querySelectorAll("style["+u+"]");Array.prototype.forEach.call(l,(function(e){(e.getAttribute(u)||"").split(" ").forEach((function(e){c[e]=!0})),e.parentNode!==o&&o.appendChild(e)}))}if(_)s.use(e.stylisPlugins)(y),a=function(e,n,r,i,o){if(h.current=r,void 0===t.inserted[n.name]){var a=s(e,n.styles);i&&(t.inserted[n.name]=a.replace(b,""),""===e&&o&&(t.global[n.name]=!0))}};else{s.use(v);var d=S;(e.stylisPlugins||void 0!==e.prefix)&&(s.use(e.stylisPlugins),d=w(e.stylisPlugins||S)(e.prefix)),a=function(e,n,r,i,o){if(void 0===t.inserted[n.name]){var a=function(e,t){var n=t.name;return void 0===d[n]&&(d[n]=s(e,t.styles)),d[n]}(e,n);if(!i)return a;t.inserted[n.name]=a,""===e&&o&&(t.global[n.name]=!0)}}}return t={key:i,sheet:new p({key:i,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:c,registered:{},global:{},insert:a}}(void 0);n.sheet.speedy=function(e){this.isSpeedy=e},n.compat=!0;var i=function(){var e=R([].slice.call(arguments),n.registered),t=n.key+"-"+e.name;return P(n,e),t},o={css:i,cx:function(){return M(n.registered,i,F([].slice.call(arguments)))},injectGlobal:function(){var e=R([].slice.call(arguments),n.registered);L(n,e,!0)},keyframes:function(){var e=R([].slice.call(arguments),n.registered),t="animation-"+e.name;return L(n,{name:e.name,styles:"@keyframes "+t+"{"+e.styles+"}"}),t},hydrate:function(e){e.forEach((function(e){n.inserted[e]=!0}))},flush:function(){n.registered={},n.inserted={},n.global={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:D,merge:M.bind(null,n.registered,i)};return e.__SECRET_LIGHTS__=o,o}("undefined"!=typeof n.g?n.g:{}),K=function(e){var t=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,U(t,n);var i=r.prototype;return i.componentDidMount=function(){this.sheet=new p({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-lights-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},i.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},i.insertStyles=function(){void 0!==this.props.serialized.next&&P(this.props.cache,this.props.serialized.next),this.sheet.tags.length&&(this.sheet.before=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling,this.sheet.flush()),this.props.cache.insert("",this.props.serialized,this.sheet,!1)},i.componentWillUnmount=function(){this.sheet.flush()},i.render=function(){if(!$){for(var e,t=this.props.serialized,n=t.name,r=t.styles,i=t.next;void 0!==i;)n+=" "+i.name,r+=i.styles,i=i.next;this.props.cache.insert("",{name:n,styles:r},this.sheet,!0);var o=((e={})["data-global-"+this.props.cache.key]=n,e);return c.createElement("style",o)}return null},r}(c.Component);return t.displayName="InnerGlobal",function(n){var r=n.styles;if("function"==typeof r)return c.createElement(B.Consumer,null,(function(n){var i=R([r(n)],e.cache.registered);return c.createElement(t,{serialized:i,cache:e.cache})}));var i=R([r],e.cache.registered);return c.createElement(t,{serialized:i,cache:e.cache})}}(J),ee=(Y=J,function e(t,n){var r,i,o;void 0!==n&&(r=n.label,o=n.target,i=t.__lights_forwardProp&&n.shouldForwardProp?function(e){return t.__lights_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var a=t.__lights_real===t,s=a&&t.__lights_base||t;"function"!=typeof i&&a&&(i=t.__lights_forwardProp);var u=i||H(s),l=!u("as");return function(){var d=[].slice.call(arguments),f=a&&void 0!==t.__lights_styles?t.__lights_styles.slice(0):[];if(void 0!==r&&f.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,h=1;h1)for(var n=1;n=e.length)&&a.push(e.substring(t,e.length))}return a}},96774:function(e){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var I=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&T(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=R&&(R=t+1),O.set(e,t),A.set(t,e)},L="style["+k+'][data-styled-version="5.3.6"]',M=new RegExp("^"+k+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),F=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(k))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(k,"active"),r.setAttribute("data-styled-version","5.3.6");var a=U();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},$=function(){function e(e){var t=this.element=B(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(u+=e+",")})),r+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),G=/(a)(d)/gi,Z=function(e){return String.fromCharCode(e+(e>25?39:97))};function X(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Z(t%52)+n;return(Z(t%52)+n).replace(G,"$1-$2")}var Q=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Y=function(e){return Q(5381,e)};function J(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=Q(this.baseHash,n.hash),l="",d=0;d>>0);if(!t.hasNameForId(r,m)){var g=n(l,"."+m,void 0,r);t.insertRules(r,m,g)}i.push(m)}}return i.join(" ")},e}(),te=/^\s*\/\/.*$/gm,ne=[":","[",".","#"];function re(e){var t,n,r,i,o=void 0===e?_:e,a=o.options,c=void 0===a?_:a,u=o.plugins,l=void 0===u?v:u,d=new s.Z(c),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,r,o){return 0===r&&-1!==ne.indexOf(o[n.length])||o.match(i)?e:"."+t};function m(e,o,a,s){void 0===s&&(s="&");var c=e.replace(te,""),u=o&&a?a+" "+o+" { "+c+" }":c;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),d(a||!o?"":o,u)}return d.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,h))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=l.length?l.reduce((function(e,t){return t.name||T(15),Q(e,t.name)}),5381).toString():"",m}var ie=i.createContext(),oe=(ie.Consumer,i.createContext()),ae=(oe.Consumer,new W),se=re();function ce(){return(0,i.useContext)(ie)||ae}function ue(){return(0,i.useContext)(oe)||se}function le(e){var t=(0,i.useState)(e.stylisPlugins),n=t[0],r=t[1],o=ce(),s=(0,i.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,i.useMemo)((function(){return re({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,i.useEffect)((function(){a()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.createElement(ie.Provider,{value:s},i.createElement(oe.Provider,{value:c},e.children))}var de=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=se);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return T(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=se),this.name+e.hash},e}(),fe=/([A-Z])/,pe=/([A-Z])/g,he=/^ms-/,me=function(e){return"-"+e.toLowerCase()};function ge(e){return fe.test(e)?e.replace(pe,me).replace(he,"-ms-"):e}var ye=function(e){return null==e||!1===e||""===e};function ve(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function xe(e){return e.replace(we,"-").replace(ke,"")}var Ee=function(e){return X(Y(e)>>>0)};function Ce(e){return"string"==typeof e&&!0}var Te=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ie=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Oe(e,t,n){var r=e[n];Te(t)&&Te(r)?Ae(r,t):e[n]=t}function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Ce(e)?e:xe(S(e)));return Pe(e,m({},i,{attrs:g,componentId:o}),n)},Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Ae({},e.defaultProps,t):t}}),k.toString=function(){return"."+k.styledComponentId},o&&p()(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),k}var Le=function(e){return function e(t,n,i){if(void 0===i&&(i=_),!(0,r.isValidElementType)(n))return T(1,String(n));var o=function(){return t(n,i,be.apply(void 0,arguments))};return o.withConfig=function(r){return e(t,n,m({},i,{},r))},o.attrs=function(r){return e(t,n,m({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},o}(Pe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Le[e]=Le(e)}));var Me=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=J(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(ve(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Fe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r"+t+""},this.getStyleTags=function(){return e.sealed?T(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return T(2);var n=((t={})[k]="",t["data-styled-version"]="5.3.6",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=U();return r&&(n.nonce=r),[i.createElement("style",m({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?T(2):i.createElement(le,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return T(3)}}();var Ue=function(){return(0,i.useContext)(Re)},Be=Le},5313:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var s=t.shift();s&&s.applyMiddleware.apply(i,[e,o])}else n(e)};o()}(a([],t.middlewares,!0),t)}))},e.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!==typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)})),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise((function(t,n){if("function"===typeof e)try{return t(e.call(null))}catch(r){return n(r)}t(e)}))}},e.prototype.executeOperation=function(e,t){var n=this;null===this.client&&this.connect();var r=this.generateOperationId();return this.operations[r]={options:e,handler:t},this.applyMiddlewares(e).then((function(e){n.checkOperationOptions(e,t),n.operations[r]&&(n.operations[r]={options:e,handler:t},n.sendMessage(r,v.default.GQL_START,e))})).catch((function(e){n.unsubscribe(r),t(n.formatErrors(e))})),r},e.prototype.getObserver=function(e,t,n){return"function"===typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return n&&n()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new u({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(e.operations).length&&e.close()}),this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var n=e.query,r=e.variables,i=e.operationName;if(!n)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!(0,d.default)(n)&&!(0,h.getOperationAST)(n,i)||i&&!(0,d.default)(i)||r&&!(0,f.default)(r))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,n){return{id:e,type:t,payload:n&&n.query?r(r({},n),{query:"string"===typeof n.query?n.query:(0,p.print)(n.query)}):n}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,n){this.sendMessageRaw(this.buildMessage(e,t,n))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(n){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(t){e.unsentMessagesQueue.push(e.buildMessage(t,v.default.GQL_START,e.operations[t].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){e.connect()}),t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach((function(t){e.sendMessageRaw(t)})),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments,!1))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(t,void 0,void 0,(function(){var e,t;return o(this,(function(n){switch(n.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=n.sent(),this.sendMessage(void 0,v.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=n.sent(),this.sendMessage(void 0,v.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){var n=e.data;t.processReceivedData(n)}},e.prototype.processReceivedData=function(e){var t,n;try{n=(t=JSON.parse(e)).id}catch(s){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[v.default.GQL_DATA,v.default.GQL_COMPLETE,v.default.GQL_ERROR].indexOf(t.type)||this.operations[n])switch(t.type){case v.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case v.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case v.default.GQL_COMPLETE:var i=this.operations[n].handler;delete this.operations[n],i.call(this,null,null);break;case v.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(t.payload),null),delete this.operations[n];break;case v.default.GQL_DATA:var o=t.payload.errors?r(r({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[n].handler(null,o);break;case v.default.GQL_CONNECTION_KEEP_ALIVE:var a="undefined"===typeof this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,v.default.GQL_STOP,void 0))},e}();t.SubscriptionClient=_},62639:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WS_TIMEOUT=t.MIN_WS_TIMEOUT=void 0;t.MIN_WS_TIMEOUT=1e3;t.WS_TIMEOUT=3e4},74957:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){throw new Error("Static Class")}return e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_CONNECTION_TERMINATE="connection_terminate",e.GQL_START="start",e.GQL_DATA="data",e.GQL_ERROR="error",e.GQL_COMPLETE="complete",e.GQL_STOP="stop",e.SUBSCRIPTION_START="subscription_start",e.SUBSCRIPTION_DATA="subscription_data",e.SUBSCRIPTION_SUCCESS="subscription_success",e.SUBSCRIPTION_FAIL="subscription_fail",e.SUBSCRIPTION_END="subscription_end",e.INIT="init",e.INIT_SUCCESS="init_success",e.INIT_FAIL="init_fail",e.KEEP_ALIVE="keepalive",e}();t.default=n},22892:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GRAPHQL_SUBSCRIPTIONS=t.GRAPHQL_WS=void 0;t.GRAPHQL_WS="graphql-ws";t.GRAPHQL_SUBSCRIPTIONS="graphql-subscriptions"},95905:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!==e&&"object"===typeof e}},89277:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"===typeof e}},90796:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):o:this[s[0]]=l?s[1].call(this,l,s[2]):o:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):o):this[s]=l||o;d+=2}},H=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r350?z(e,350):e,this},this.setUA(n),this};G.VERSION="1.0.33",G.BROWSER=U([d,h,"major"]),G.CPU=U([m]),G.DEVICE=U([l,p,f,g,y,_,v,b,S]),G.ENGINE=G.OS=U([d,h]),typeof t!==s?(e.exports&&(t=e.exports=G),t.UAParser=G):n.amdO?(r=function(){return G}.call(t,n,t,e))===o||(e.exports=r):typeof i!==s&&(i.UAParser=G);var Z=typeof i!==s&&(i.jQuery||i.Zepto);if(Z&&!Z.ua){var X=new G;Z.ua=X.getResult(),Z.ua.get=function(){return X.getUA()},Z.ua.set=function(e){X.setUA(e);var t=X.getResult();for(var n in t)Z.ua[n]=t[n]}}}("object"===typeof window?window:this)},57632:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i;const o=new Uint8Array(16);function a(){if(!i&&(i="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!i))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(o)}const s=[];for(let l=0;l<256;++l)s.push((l+256).toString(16).slice(1));function c(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}var u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const i=(e=e||{}).random||(e.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=i[e];return t}return c(i)}},71739:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},11294:function(e,t,n){"use strict";n.d(t,{R:function(){return a}});var r=n(54708),i=n(94092),o=n(23361),a=function(){function e(){this.getFragmentDoc=(0,i.re)(o.Yk)}return e.prototype.batch=function(e){var t,n=this,r="string"===typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(n)}),r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,r.pi)((0,r.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,r.pi)((0,r.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,i=(0,r._T)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,i=e.fragment,o=e.fragmentName,a=(0,r._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var i=n.readQuery(e),o=t(i);return void 0===o||null===o?i:(n.writeQuery((0,r.pi)((0,r.pi)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var i=n.readFragment(e),o=t(i);return void 0===o||null===o?i:(n.writeFragment((0,r.pi)((0,r.pi)({},e),{data:o})),o)}})},e}()},75727:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var r=n(54708),i=function(e){function t(n,r,i,o){var a,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=((a={})[s.path[c]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,r.ZT)(t,e),t}(Error)},49641:function(e,t,n){"use strict";n.d(t,{$O:function(){return v},E_:function(){return _},Is:function(){return k},RC:function(){return b},RI:function(){return d},ig:function(){return w},j:function(){return S},jS:function(){return m},jp:function(){return y},lg:function(){return g},uG:function(){return p}});var r=n(53712),i=n(51761),o=n(13154),a=n(21436),s=n(19065),c=n(182),u=n(23361),l=n(36765),d=Object.prototype.hasOwnProperty;function f(e){return null===e||void 0===e}function p(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"===typeof n&&(t&&(t.keyObject=f(r)?f(i)?void 0:{_id:i}:{id:r}),f(r)&&!f(i)&&(r=i),!f(r)))return"".concat(n,":").concat("number"===typeof r||"string"===typeof r?r:JSON.stringify(r))}var h={dataIdFromObject:p,addTypename:!0,resultCaching:!0,canonizeResults:!1};function m(e){return(0,r.o)(h,e)}function g(e){var t=e.canonizeResults;return void 0===t?h.canonizeResults:t}function y(e,t){return(0,i.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var v=/^[_a-z][_0-9a-z]*/i;function _(e){var t=e.match(v);return t?t[0]:e}function b(e,t,n){return!!(0,o.s)(t)&&((0,a.k)(t)?t.every((function(t){return b(e,t,n)})):e.selections.every((function(e){if((0,i.My)(e)&&(0,s.LZ)(e,n)){var r=(0,i.u2)(e);return d.call(t,r)&&(!e.selectionSet||b(e.selectionSet,t[r],n))}return!0})))}function S(e){return(0,o.s)(e)&&!(0,i.Yk)(e)&&!(0,a.k)(e)}function w(){return new c.w0}function k(e,t){var n=(0,u.F)((0,l.kU)(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}},55598:function(e,t,n){"use strict";n.d(t,{h:function(){return pe}});var r=n(54708),i=n(48964),o=n(94092),a=n(82152),s=n(11294),c=n(75727),u=n(51761),l=n(76487),d=n(97359),f=n(30320),p=n(53712),h=n(36765),m=n(182),g=n(19065),y=n(23361),v=n(10542),_=n(13154),b=n(75028),S=n(49641),w=Object.create(null),k=function(){return w},x=Object.create(null),E=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,v.J)((0,u.Yk)(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,u.Yk)(e)?n.has(e.__ref):"object"===typeof e},this.toReference=function(e,t){if("string"===typeof e)return(0,u.kQ)(e);if((0,u.Yk)(e))return e;var r=n.policies.identify(e)[0];if(r){var i=(0,u.kQ)(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,r.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),S.RI.call(this.data,e)){var n=this.data[e];if(n&&S.RI.call(n,t))return n[t]}return"__typename"===t&&S.RI.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof O?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),S.RI.call(this.data,e)?this.data[e]:this instanceof O?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;(0,u.Yk)(e)&&(e=e.__ref),(0,u.Yk)(t)&&(t=t.__ref);var o="string"===typeof e?this.lookup(n=e):e,a="string"===typeof t?this.lookup(n=t):t;if(a){__DEV__?(0,i.kG)("string"===typeof n,"store.merge expects a string ID"):(0,i.kG)("string"===typeof n,1);var s=new m.w0(R).merge(o,a);if(this.data[n]=s,s!==o&&(delete this.refs[n],this.group.caching)){var c=Object.create(null);o||(c.__exists=1),Object.keys(a).forEach((function(e){if(!o||o[e]!==s[e]){c[e]=1;var t=(0,S.E_)(e);t===e||r.policies.hasKeyArgs(s.__typename,t)||(c[t]=1),void 0!==s[e]||r instanceof O||delete s[e]}})),!c.__typename||o&&o.__typename||this.policies.rootTypenamesById[n]!==s.__typename||delete c.__typename,Object.keys(c).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,i=this.lookup(e);if(i){var o=Object.create(null),a=!1,s=!0,c={DELETE:w,INVALIDATE:x,isReference:u.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"===typeof t?{fieldName:t,from:r||(0,u.kQ)(e)}:t,{store:n})}};if(Object.keys(i).forEach((function(u){var l=(0,S.E_)(u),d=i[u];if(void 0!==d){var f="function"===typeof t?t:t[u]||t[l];if(f){var p=f===k?w:f((0,v.J)(d),(0,r.pi)((0,r.pi)({},c),{fieldName:l,storeFieldName:u,storage:n.getStorage(e,u)}));p===x?n.group.dirty(e,u):(p===w&&(p=void 0),p!==d&&(o[u]=p,a=!0,d=p))}void 0!==d&&(s=!1)}})),a)return this.merge(e,o),s&&(this instanceof O?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=k,r):k)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(S.RI.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof O&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){S.RI.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&S.RI.call(e,n)||t.delete(n)})),e){var n=e.__META,i=(0,r._T)(e,["__META"]);Object.keys(i).forEach((function(e){t.merge(e,i[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof O?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){S.RI.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof O;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!S.RI.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){(0,u.Yk)(e)&&(t[e.__ref]=!0),(0,_.s)(e)&&Object.keys(e).forEach((function(t){var n=e[t];(0,_.s)(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),C=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,o.dP)():null,this.keyMaker=new b.B(f.mr)},e.prototype.depend=function(e,t){if(this.d){this.d(T(e,t));var n=(0,S.E_)(t);n!==t&&this.d(T(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(T(e,t),"__exists"===t?"forget":"setDirty")},e}();function T(e,t){return t+"#"+e}function I(e,t){N(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new C(i))||this;return a.stump=new A(a),a.storageTrie=new b.B(f.mr),o&&a.replace(o),a}return(0,r.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(E||(E={}));var O=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return(0,r.ZT)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){(0,a.D)(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,r.pi)((0,r.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return S.RI.call(this.data,t)?(0,r.pi)((0,r.pi)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(E),A=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new C(t.group.caching,t.group))||this}return(0,r.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(O);function R(e,t,n){var r=e[n],i=t[n];return(0,a.D)(r,i)?r:i}function N(e){return!!(e instanceof E&&e.group.caching)}var D=n(21436),P=n(80900);function L(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var M=function(){function e(e){var t=this;this.knownResults=new(f.mr?WeakMap:Map),this.config=(0,p.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,S.lg)(e)}),this.canon=e.canon||new P.h,this.executeSelectionSet=(0,o.re)((function(e){var n,i=e.context.canonizeResults,o=L(e);o[3]=!i;var a=(n=t.executeSelectionSet).peek.apply(n,o);return a?i?(0,r.pi)((0,r.pi)({},a),{result:t.canon.admit(a.result)}):a:(I(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:L,makeCacheKey:function(e,t,n,r){if(N(n.store))return n.store.makeCacheKey(e,(0,u.Yk)(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=(0,o.re)((function(e){return I(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(N(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new P.h},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,i=e.rootId,o=void 0===i?"ROOT_QUERY":i,a=e.variables,s=e.returnPartialData,l=void 0===s||s,d=e.canonizeResults,f=void 0===d?this.config.canonizeResults:d,p=this.config.cache.policies;a=(0,r.pi)((0,r.pi)({},(0,h.O4)((0,h.iW)(n))),a);var m,g=(0,u.kQ)(o),y=this.executeSelectionSet({selectionSet:(0,h.p$)(n).selectionSet,objectOrReference:g,enclosingRef:g,context:(0,r.pi)({store:t,query:n,policies:p,variables:a,varString:(0,P.B)(a),canonizeResults:f},(0,S.Is)(n,this.config.fragments))});if(y.missing&&(m=[new c.y(F(y.missing),y.missing,n,a)],!l))throw m[0];return{result:y.result,complete:!m,missing:m}},e.prototype.isFresh=function(e,t,n,r){if(N(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,o=e.enclosingRef,a=e.context;if((0,u.Yk)(r)&&!a.policies.rootTypenamesById[r.__ref]&&!a.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var s,c=a.variables,f=a.policies,p=a.store.getFieldValue(r,"__typename"),h=[],_=new m.w0;function b(e,t){var n;return e.missing&&(s=_.merge(s,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"===typeof p&&!f.rootIdsByTypename[p]&&h.push({__typename:p});var S=new Set(n.selections);S.forEach((function(e){var n,m;if((0,g.LZ)(e,c))if((0,u.My)(e)){var v=f.readField({fieldName:e.name.value,field:e,variables:a.variables,from:r},a),w=(0,u.u2)(e);void 0===v?l.Gw.added(e)||(s=_.merge(s,((n={})[w]="Can't find field '".concat(e.name.value,"' on ").concat((0,u.Yk)(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):(0,D.k)(v)?v=b(t.executeSubSelectedArray({field:e,array:v,enclosingRef:o,context:a}),w):e.selectionSet?null!=v&&(v=b(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:v,enclosingRef:(0,u.Yk)(v)?v:o,context:a}),w)):a.canonizeResults&&(v=t.canon.pass(v)),void 0!==v&&h.push(((m={})[w]=v,m))}else{var k=(0,y.hi)(e,a.lookupFragment);if(!k&&e.kind===d.h.FRAGMENT_SPREAD)throw __DEV__?new i.ej("No fragment named ".concat(e.name.value)):new i.ej(5);k&&f.fragmentMatches(k,p)&&k.selectionSet.selections.forEach(S.add,S)}}));var w={result:(0,m.bw)(h),missing:s},k=a.canonizeResults?this.canon.admit(w):(0,v.J)(w);return k.result&&this.knownResults.set(k.result,n),k},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,o=e.array,a=e.enclosingRef,s=e.context,c=new m.w0;function l(e,n){var r;return e.missing&&(t=c.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map((function(e,t){return null===e?null:(0,D.k)(e)?l(n.executeSubSelectedArray({field:r,array:e,enclosingRef:a,context:s}),t):r.selectionSet?l(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:(0,u.Yk)(e)?e:a,context:s}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){(0,_.s)(n)&&(__DEV__?(0,i.kG)(!(0,u.Yk)(n),"Missing selection set for object of type ".concat((0,S.jp)(e,n)," returned for query field ").concat(t.name.value)):(0,i.kG)(!(0,u.Yk)(n),6),Object.values(n).forEach(r.add,r))}))}}(s.store,r,e),e)})),{result:s.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function F(e){try{JSON.stringify(e,(function(e,t){if("string"===typeof t)throw t;return t}))}catch(t){return t}}var j=n(79487),U=n(60897);var B=n(66438),$=Object.create(null);function z(e){var t=JSON.stringify(e);return $[t]||($[t]=Object.create(null))}function q(e){var t=z(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},o=n.keyObject=V(e,(function(e){var o=Z(n.storeObject,e,r);return void 0===o&&t!==n.storeObject&&S.RI.call(t,e[0])&&(o=Z(t,e,G)),__DEV__?(0,i.kG)(void 0!==o,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):(0,i.kG)(void 0!==o,2),o}));return"".concat(n.typename,":").concat(JSON.stringify(o))})}function H(e){var t=z(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=V(e,(function(e){var n=e[0],o=n.charAt(0);if("@"!==o)if("$"!==o){if(t)return Z(t,e)}else{var a=n.slice(1);if(i&&S.RI.call(i,a)){var s=e.slice(0);return s[0]=a,Z(i,s)}}else if(r&&(0,D.O)(r.directives)){var c=n.slice(1),l=r.directives.find((function(e){return e.name.value===c})),d=l&&(0,u.NC)(l,i);return d&&Z(d,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function V(e,t){var n=new m.w0;return W(e).reduce((function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e}),Object.create(null))}function W(e){var t=z(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,i){(0,D.k)(t)?(W(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),(0,D.k)(e[i+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function G(e,t){return e[t]}function Z(e,t,n){return n=n||G,X(t.reduce((function e(t,r){return(0,D.k)(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function X(e){return(0,_.s)(e)?(0,D.k)(e)?e.map(X):V(Object.keys(e).sort(),(function(t){return Z(e,t)})):e}function Q(e){return void 0!==e.args?e.args:e.field?(0,u.NC)(e.field,e.variables):null}u.PT.setStringify(P.B);var Y=function(){},J=function(e,t){return t.fieldName},K=function(e,t,n){return(0,n.mergeObjects)(e,t)},ee=function(e,t){return t},te=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,r.pi)({dataIdFromObject:S.uG},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,i=this,o=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a,s=t&&t.storeObject||e,c=(0,r.pi)((0,r.pi)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=re(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var d=l((0,r.pi)((0,r.pi)({},e),s),c);if(!(0,D.k)(d)){a=d;break}l=q(d)}return a=a?String(a):void 0,c.keyObject?[a,c.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var i=e[n],o=i.queryType,a=i.mutationType,s=i.subscriptionType,c=(0,r._T)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),s&&t.setRootTypename("Subscription",n),S.RI.call(t.toBeAdded,n)?t.toBeAdded[n].push(c):t.toBeAdded[n]=[c]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"===typeof t?t:!0===t?K:!1===t?ee:e.merge}a(r,t.merge),r.keyFn=!1===i?Y:(0,D.k)(i)?q(i):"function"===typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"===typeof i)r.read=i;else{var s=i.keyArgs,c=i.read,u=i.merge;r.keyFn=!1===s?J:(0,D.k)(s)?H(s):"function"===typeof s?s:r.keyFn,"function"===typeof c&&(r.read=c),a(r,u)}r.read&&r.merge&&(r.keyFn=r.keyFn||J)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?(0,i.kG)(!r||r===e,"Cannot change root ".concat(e," __typename more than once")):(0,i.kG)(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(S.$O);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!S.RI.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);i&&i.size&&i.forEach((function(e){var i=t.getTypePolicy(e),o=i.fields,a=(0,r._T)(i,["fields"]);Object.assign(n,a),Object.assign(n.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),c=[s],u=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&c.indexOf(t)<0&&c.push(t)},l=!(!n||!this.fuzzySubtypes.size),d=!1,f=0;f1?s:t}:(o=(0,r.pi)({},a),S.RI.call(o,"from")||(o.from=t)),__DEV__&&void 0===o.from&&__DEV__&&i.kG.warn("Undefined 'from' passed to readField with arguments ".concat(function(e){var t=(0,U.X)("stringifyForDisplay");return JSON.stringify(e,(function(e,n){return void 0===n?t:n})).split(JSON.stringify(t)).join("")}(Array.from(e)))),void 0===o.variables&&(o.variables=n),o}function ie(e){return function(t,n){if((0,D.k)(t)||(0,D.k)(n))throw __DEV__?new i.ej("Cannot automatically merge arrays"):new i.ej(4);if((0,_.s)(t)&&(0,_.s)(n)){var o=e.getFieldValue(t,"__typename"),a=e.getFieldValue(n,"__typename");if(o&&a&&o!==a)return n;if((0,u.Yk)(t)&&(0,S.j)(n))return e.merge(t.__ref,n),t;if((0,S.j)(t)&&(0,u.Yk)(n))return e.merge(t,n.__ref),n;if((0,S.j)(t)&&(0,S.j)(n))return(0,r.pi)((0,r.pi)({},t),n)}return n}}function oe(e,t,n){var i="".concat(t).concat(n),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===n?e:(0,r.pi)((0,r.pi)({},e),{clientOnly:t,deferred:n})),o}var ae=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,o=t.query,s=t.result,c=t.dataId,l=t.variables,d=t.overwrite,f=(0,h.$H)(o),p=(0,S.ig)();l=(0,r.pi)((0,r.pi)({},(0,h.O4)(f)),l);var m=(0,r.pi)((0,r.pi)({store:e,written:Object.create(null),merge:function(e,t){return p.merge(e,t)},variables:l,varString:(0,P.B)(l)},(0,S.Is)(o,this.fragments)),{overwrite:!!d,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),g=this.processSelectionSet({result:s||Object.create(null),dataId:c,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:m});if(!(0,u.Yk)(g))throw __DEV__?new i.ej("Could not identify object ".concat(JSON.stringify(s))):new i.ej(7);return m.incomingById.forEach((function(t,r){var o=t.storeObject,s=t.mergeTree,c=t.fieldNodeSet,l=(0,u.kQ)(r);if(s&&s.map.size){var d=n.applyMerges(s,l,o,m);if((0,u.Yk)(d))return;o=d}if(__DEV__&&!m.overwrite){var f=Object.create(null);c.forEach((function(e){e.selectionSet&&(f[e.name.value]=!0)}));Object.keys(o).forEach((function(e){(function(e){return!0===f[(0,S.E_)(e)]})(e)&&!function(e){var t=s&&s.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var o=function(e){var t=r.getFieldValue(e,n);return"object"===typeof t&&t},s=o(e);if(!s)return;var c=o(t);if(!c)return;if((0,u.Yk)(s))return;if((0,a.D)(s,c))return;if(Object.keys(s).every((function(e){return void 0!==r.getFieldValue(c,e)})))return;var l=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),d=(0,S.E_)(n),f="".concat(l,".").concat(d);if(fe.has(f))return;fe.add(f);var p=[];(0,D.k)(s)||(0,D.k)(c)||[s,c].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!==typeof t||p.includes(t)||p.push(t)}));__DEV__&&i.kG.warn("Cache data may be lost when replacing the ".concat(d," field of a ").concat(l," object.\n\nThis could cause additional (usually avoidable) network requests to fetch data that were otherwise cached.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(f," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(s).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(c).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}(l,o,e,m.store)}))}e.merge(r,o)})),e.retain(g.__ref),g},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,o=e.result,a=e.selectionSet,s=e.context,c=e.mergeTree,d=this.cache.policies,f=Object.create(null),p=n&&d.rootTypenamesById[n]||(0,u.qw)(o,a,s.fragmentMap)||n&&s.store.get(n,"__typename");"string"===typeof p&&(f.__typename=p);var h=function(){var e=re(arguments,f,s.variables);if((0,u.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var n=d.readField((0,r.pi)((0,r.pi)({},e),{from:t.storeObject}),s);if(void 0!==n)return n}}return d.readField(e,s)},m=new Set;this.flattenFields(a,o,s,p).forEach((function(e,n){var r,a=(0,u.u2)(n),s=o[a];if(m.add(n),void 0!==s){var g=d.getStoreFieldName({typename:p,fieldName:n.name.value,field:n,variables:e.variables}),y=ce(c,g),v=t.processFieldValue(s,n,n.selectionSet?oe(e,!1,!1):e,y),_=void 0;n.selectionSet&&((0,u.Yk)(v)||(0,S.j)(v))&&(_=h("__typename",v));var b=d.getMergeFunction(p,n.name.value,_);b?y.info={field:n,typename:p,merge:b}:de(c,g),f=e.merge(f,((r={})[g]=v,r))}else!__DEV__||e.clientOnly||e.deferred||l.Gw.added(n)||d.getReadFunction(p,n.name.value)||__DEV__&&i.kG.error("Missing field '".concat((0,u.u2)(n),"' while writing result ").concat(JSON.stringify(o,null,2)).substring(0,1e3))}));try{var g=d.identify(o,{typename:p,selectionSet:a,fragmentMap:s.fragmentMap,storeObject:f,readField:h}),y=g[0],v=g[1];n=n||y,v&&(f=s.merge(f,v))}catch(k){if(!n)throw k}if("string"===typeof n){var _=(0,u.kQ)(n),b=s.written[n]||(s.written[n]=[]);if(b.indexOf(a)>=0)return _;if(b.push(a),this.reader&&this.reader.isFresh(o,_,a,s))return _;var w=s.incomingById.get(n);return w?(w.storeObject=s.merge(w.storeObject,f),w.mergeTree=ue(w.mergeTree,c),m.forEach((function(e){return w.fieldNodeSet.add(e)}))):s.incomingById.set(n,{storeObject:f,mergeTree:le(c)?void 0:c,fieldNodeSet:m}),_}return f},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?(0,D.k)(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,ce(r,o));return de(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?(0,j.X)(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=(0,u.qw)(t,e,n.fragmentMap));var o=new Map,a=this.cache.policies,s=new b.B(!1);return function e(c,l){var f=s.lookup(c,l.clientOnly,l.deferred);f.visited||(f.visited=!0,c.selections.forEach((function(s){if((0,g.LZ)(s,n.variables)){var c=l.clientOnly,f=l.deferred;if(c&&f||!(0,D.O)(s.directives)||s.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(c=!0),"defer"===t){var r=(0,u.NC)(e,n.variables);r&&!1===r.if||(f=!0)}})),(0,u.My)(s)){var p=o.get(s);p&&(c=c&&p.clientOnly,f=f&&p.deferred),o.set(s,oe(n,c,f))}else{var h=(0,y.hi)(s,n.lookupFragment);if(!h&&s.kind===d.h.FRAGMENT_SPREAD)throw __DEV__?new i.ej("No fragment named ".concat(s.name.value)):new i.ej(8);h&&a.fragmentMatches(h,r,t,n.variables)&&e(h.selectionSet,oe(n,c,f))}}})))}(e,n),o},e.prototype.applyMerges=function(e,t,n,o,a){var s,c=this;if(e.map.size&&!(0,u.Yk)(n)){var l,d=(0,D.k)(n)||!(0,u.Yk)(t)&&!(0,S.j)(t)?void 0:t,f=n;d&&!a&&(a=[(0,u.Yk)(d)?d.__ref:d]);var p=function(e,t){return(0,D.k)(e)?"number"===typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=p(d,t),r=p(f,t);if(void 0!==r){a&&a.push(t);var s=c.applyMerges(e,n,r,o,a);s!==r&&(l=l||new Map).set(t,s),a&&(0,i.kG)(a.pop()===t)}})),l&&(n=(0,D.k)(f)?f.slice(0):(0,r.pi)({},f),l.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,o,a&&(s=o.store).getStorage.apply(s,a)):n},e}(),se=[];function ce(e,t){var n=e.map;return n.has(t)||n.set(t,se.pop()||{map:new Map}),n.get(t)}function ue(e,t){if(e===t||!t||le(t))return e;if(!e||le(e))return t;var n=e.info&&t.info?(0,r.pi)((0,r.pi)({},e.info),t.info):e.info||t.info,i=e.map.size&&t.map.size,o={info:n,map:i?new Map:e.map.size?e.map:t.map};if(i){var a=new Set(t.map.keys());e.map.forEach((function(e,n){o.map.set(n,ue(e,t.map.get(n))),a.delete(n)})),a.forEach((function(n){o.map.set(n,ue(t.map.get(n),e.map.get(n)))}))}return o}function le(e){return!e||!(e.info||e.map.size)}function de(e,t){var n=e.map,r=n.get(t);r&&le(r)&&(se.push(r),n.delete(t))}var fe=new Set;var pe=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=B.QS,n.txCount=0,n.config=(0,S.jS)(t),n.addTypename=!!n.config.addTypename,n.policies=new te({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,r.ZT)(t,e),t.prototype.init=function(){var e=this.data=new E.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new ae(this,this.storeReader=new M({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,S.lg)(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=(0,o.re)((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(N(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,(0,P.B)({optimistic:r,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,r.pi)((0,r.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(i){if(i instanceof c.y)return null;throw i}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(S.RI.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,r.pi)((0,r.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,B._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,B.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){P.B.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,u.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(t){__DEV__&&i.kG.warn(t)}},t.prototype.evict=function(e){if(!e.id){if(S.RI.call(e,"id"))return!1;e=(0,r.pi)((0,r.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),P.B.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),(0,B.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,i=e.update,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,c=e.onWatchUpdated,u=function(e){var r=n,o=r.data,a=r.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=i(n)}finally{--n.txCount,n.data=o,n.optimisticData=a}},l=new Set;return c&&!this.txCount&&this.broadcastWatches((0,r.pi)((0,r.pi)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"===typeof a?this.optimisticData=this.optimisticData.addLayer(a,u):!1===a?u(this.data):u(),"string"===typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&l.size?(this.broadcastWatches((0,r.pi)((0,r.pi)({},e),{onWatchUpdated:function(e,t){var n=c.call(this,e,t);return!1!==n&&l.delete(e),n}})),l.size&&l.forEach((function(e){return n.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,l.Gw)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.transformForLink=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"===typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&(0,a.D)(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(s.R)},80900:function(e,t,n){"use strict";n.d(t,{B:function(){return d},h:function(){return l}});var r=n(54708),i=(n(48964),n(75028)),o=n(13154),a=n(30320),s=n(21436);var c,u,l=function(){function e(){this.known=new(a.sy?WeakSet:Set),this.pool=new i.B(a.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,o.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,o.s)(e)){var t=function(e){return(0,o.s)(e)?(0,s.k)(e)?e.slice(0):(0,r.pi)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,o.s)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(c=this.pool.lookupArray(r)).array||(this.known.add(c.array=r),__DEV__&&Object.freeze(r)),c.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),a=[i],s=this.sortedKeys(e);a.push(s.json);var c,u=a.length;if(s.sorted.forEach((function(n){a.push(t.admit(e[n]))})),!(c=this.pool.lookupArray(a)).object){var l=c.object=Object.create(i);this.known.add(l),s.sorted.forEach((function(e,t){l[e]=a[u+t]})),__DEV__&&Object.freeze(l)}return c.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),d=Object.assign((function(e){if((0,o.s)(e)){void 0===c&&f();var t=c.admit(e),n=u.get(t);return void 0===n&&u.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:f});function f(){c=new l,u=new(a.mr?WeakMap:Map)}},66438:function(e,t,n){"use strict";n.d(t,{QS:function(){return u},_v:function(){return c},ab:function(){return i},li:function(){return s}});var r=n(94092),i=new(n(38751).g7),o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,r.dP)()}),t}function s(e){a(e).vars.forEach((function(t){return t.forgetCache(e)}))}function c(e){a(e).vars.forEach((function(t){return t.attachCache(e)}))}function u(e){var t=new Set,n=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach((function(e){a(e).dep.dirty(r),l(e)}));var c=Array.from(n);n.clear(),c.forEach((function(t){return t(e)}))}}else{var u=i.getValue();u&&(o(u),a(u).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var o=r.attachCache=function(e){return t.add(e),a(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function l(e){e.broadcastWatches&&e.broadcastWatches()}},65075:function(e,t,n){"use strict";n.d(t,{f:function(){return W}});var r=n(54708),i=n(48964),o=n(48702),a=n(47037),s=n(72198),c=n(82152),u=n(37280),l=n(80900),d=n(30320),f=n(48216);function p(e,t,n){return new f.y((function(r){var i=r.next,o=r.error,a=r.complete,s=0,c=!1,u={then:function(e){return new Promise((function(t){return t(e())}))}};function l(e,t){return e?function(t){++s;var n=function(){return e(t)};u=u.then(n,n).then((function(e){--s,i&&i.call(r,e),c&&d.complete()}),(function(e){throw--s,e})).catch((function(e){o&&o.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var d={next:l(t,i),error:l(n,o),complete:function(){c=!0,s||a&&a.call(r)}},f=e.subscribe(d);return function(){return f.unsubscribe()}}))}var h=n(21436);function m(e){var t=g(e);return(0,h.O)(t)}function g(e){var t=(0,h.O)(e.errors)?e.errors.slice(0):[];return(0,u.GG)(e)&&(0,h.O)(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}var y=n(36765),v=n(76487),_=n(19065),b=n(51761),S=n(13154),w=n(60897),k=n(18263),x=n(86403);function E(e){return e&&"function"===typeof e.then}var C=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),(0,k.p)(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),(0,k.p)(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,r=e.sources;if(null!==t){var i=(void 0===r?[]:r).shift();i?E(i)?i.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=i.subscribe(n.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),(0,k.p)(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"===typeof t&&(t=[new f.y(t)]),E(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return(0,r.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach((function(n){return n(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(n,r){t||(t=!0,e(n,r))}))},t}(f.y);(0,x.D)(C);var T=n(30990),I=n(44780),O=n(1644),A=n(77304),R=n(97359);function N(e){return e.kind===R.h.FIELD||e.kind===R.h.FRAGMENT_SPREAD||e.kind===R.h.INLINE_FRAGMENT}var D=n(182),P=n(23361),L=n(66438),M=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=(0,D.Ee)(t.resolvers,e)})):this.resolvers=(0,D.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,i,o,this.fragmentMatcher,s).then((function(e){return(0,r.pi)((0,r.pi)({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,_.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,v.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,r.pi)((0,r.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return(0,r.pi)((0,r.pi)({},t),e.exportedVariables)}))]:[2,(0,r.pi)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,A.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return A.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,v.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,i,o,a){return void 0===n&&(n={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,r.mG)(this,void 0,void 0,(function(){var s,c,u,l,d,f,p,h,m,g;return(0,r.Jh)(this,(function(v){return s=(0,y.p$)(e),c=(0,y.kU)(e),u=(0,P.F)(c),l=this.collectSelectionsToResolve(s,u),d=s.operation,f=d?d.charAt(0).toUpperCase()+d.slice(1):"Query",h=(p=this).cache,m=p.client,g={fragmentMap:u,context:(0,r.pi)((0,r.pi)({},n),{cache:h,client:m}),variables:i,fragmentMatcher:o,defaultOperationType:f,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},!1,[2,this.resolveSelectionSet(s.selectionSet,false,t,g).then((function(e){return{result:e,exportedVariables:g.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n,o){return(0,r.mG)(this,void 0,void 0,(function(){var a,s,c,u,l,d=this;return(0,r.Jh)(this,(function(f){return a=o.fragmentMap,s=o.context,c=o.variables,u=[n],l=function(e){return(0,r.mG)(d,void 0,void 0,(function(){var l,d;return(0,r.Jh)(this,(function(r){return(t||o.selectionsToResolve.has(e))&&(0,_.LZ)(e,c)?(0,b.My)(e)?[2,this.resolveField(e,t,n,o).then((function(t){var n;"undefined"!==typeof t&&u.push(((n={})[(0,b.u2)(e)]=t,n))}))]:((0,b.Ao)(e)?l=e:(l=a[e.name.value],__DEV__?(0,i.kG)(l,"No fragment named ".concat(e.name.value)):(0,i.kG)(l,11)),l&&l.typeCondition&&(d=l.typeCondition.name.value,o.fragmentMatcher(n,d,s))?[2,this.resolveSelectionSet(l.selectionSet,t,n,o).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return(0,D.bw)(u)}))]}))}))},e.prototype.resolveField=function(e,t,n,i){return(0,r.mG)(this,void 0,void 0,(function(){var o,a,s,c,u,l,d,f,p,h=this;return(0,r.Jh)(this,(function(r){return n?(o=i.variables,a=e.name.value,s=(0,b.u2)(e),c=a!==s,u=n[s]||n[a],l=Promise.resolve(u),i.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(d=n.__typename||i.defaultOperationType,(f=this.resolvers&&this.resolvers[d])&&(p=f[c?a:s])&&(l=Promise.resolve(L.ab.withValue(this.cache,p,[n,(0,b.NC)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then((function(n){var r,o;if(void 0===n&&(n=u),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=n)}))})),!e.selectionSet)return n;if(null==n)return n;var a=null!==(o=null===(r=e.directives)||void 0===r?void 0:r.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(n)?h.resolveSubSelectedArray(e,t||a,n,i):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||a,n,i):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map((function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(o){if(!r.has(o)){var a=new Set;r.set(o,a),(0,A.Vn)(o,{Directive:function(e,t,r,i,o){"client"===e.name.value&&o.forEach((function(e){n(e)&&N(e)&&a.add(e)}))},FragmentSpread:function(r,o,s,c,u){var l=t[r.name.value];__DEV__?(0,i.kG)(l,"No fragment named ".concat(r.name.value)):(0,i.kG)(l,12);var d=e(l);d.size>0&&(u.forEach((function(e){n(e)&&N(e)&&a.add(e)})),a.add(r),d.forEach((function(e){a.add(e)})))}})}return r.get(o)}(e)},e}(),F=new(d.mr?WeakMap:Map);function j(e,t){var n=e[t];"function"===typeof n&&(e[t]=function(){return F.set(e,(F.get(e)+1)%1e15),n.apply(this,arguments)})}function U(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var B=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;F.has(n)||(F.set(n,0),j(n,"evict"),j(n,"modify"),j(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||O.I.loading;return this.variables&&this.networkStatus!==O.I.loading&&!(0,c.D)(this.variables,e.variables)&&(t=O.I.setVariables),(0,c.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){U(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&(0,c.D)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,c.D)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():(0,I.vj)(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;U(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,O.O)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var i=(0,r.pi)((0,r.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,c.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===F.get(this.cache)&&(0,c.D)(t,n.variables)&&(0,c.D)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,o=new D.w0,a=(0,h.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,h.O)(e.incremental)){var s=(0,u.mT)(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&($(e,n.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,n.variables))o.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:F.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var a=i.getDiffOptions(n.variables),s=o.diff(a);i.stopped||i.updateWatch(n.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=O.I.ready},e.prototype.markError=function(e){return this.networkStatus=O.I.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function $(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!m(e);return!r&&n&&e.data&&(r=!0),r}var z=Object.prototype.hasOwnProperty,q=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.queryDeduplication,o=void 0!==i&&i,a=e.onBroadcast,s=e.ssrMode,c=void 0!==s&&s,u=e.clientAwareness,l=void 0===u?{}:u,f=e.localState,p=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(d.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=o,this.clientAwareness=l,this.localState=f||new M({cache:t}),this.ssrMode=c,this.assumeImmutableResults=!!p,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new i.ej("QueryManager stopped while query was in flight"):new i.ej(14))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,n,o=e.mutation,a=e.variables,s=e.optimisticResponse,c=e.updateQueries,u=e.refetchQueries,l=void 0===u?[]:u,d=e.awaitRefetchQueries,f=void 0!==d&&d,h=e.update,y=e.onQueryUpdated,v=e.fetchPolicy,_=void 0===v?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":v,b=e.errorPolicy,S=void 0===b?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||"none":b,w=e.keepRootFields,k=e.context;return(0,r.mG)(this,void 0,void 0,(function(){var e,t,n,u,d,v;return(0,r.Jh)(this,(function(b){switch(b.label){case 0:return __DEV__?(0,i.kG)(o,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,i.kG)(o,15),__DEV__?(0,i.kG)("network-only"===_||"no-cache"===_,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,i.kG)("network-only"===_||"no-cache"===_,16),e=this.generateMutationId(),t=this.transform(o),n=t.document,u=t.hasClientExports,o=this.cache.transformForLink(n),a=this.getVariables(o,a),u?[4,this.localState.addExportedVariables(o,a,k)]:[3,2];case 1:a=b.sent(),b.label=2;case 2:return d=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:e,document:o,variables:a,fetchPolicy:_,errorPolicy:S,context:k,updateQueries:c,update:h,keepRootFields:w}),this.broadcastQueries(),v=this,[2,new Promise((function(t,n){return p(v.getObservableFromLink(o,(0,r.pi)((0,r.pi)({},k),{optimisticResponse:s}),a,!1),(function(t){if(m(t)&&"none"===S)throw new T.cA({graphQLErrors:g(t)});d&&(d.loading=!1,d.error=null);var n=(0,r.pi)({},t);return"function"===typeof l&&(l=l(n)),"ignore"===S&&m(n)&&delete n.errors,v.markMutationResult({mutationId:e,result:n,document:o,variables:a,fetchPolicy:_,errorPolicy:S,context:k,update:h,updateQueries:c,awaitRefetchQueries:f,refetchQueries:l,removeOptimistic:s?e:void 0,onQueryUpdated:y,keepRootFields:w})})).subscribe({next:function(e){v.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){d&&(d.loading=!1,d.error=t),s&&v.cache.removeOptimistic(e),v.broadcastQueries(),n(t instanceof T.cA?t:new T.cA({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&$(i,e.errorPolicy)){if((0,u.GG)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,u.GG)(i)&&(0,h.O)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),c=void 0;s.result&&(c=(0,u.mT)(s.result,i)),"undefined"!==typeof c&&(i.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach((function(e,r){var a=e.observableQuery,s=a&&a.queryName;if(s&&z.call(l,s)){var c=l[s],u=n.queries.get(r),d=u.document,f=u.variables,p=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),h=p.result;if(p.complete&&h){var m=c(h,{mutationResult:i,queryName:d&&(0,y.rY)(d)||void 0,queryVariables:f});m&&o.push({result:m,dataId:"ROOT_QUERY",query:d,variables:f})}}}))}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var d=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach((function(e){return t.write(e)}));var s=e.update,c=!(0,u.M0)(i)||(0,u.GG)(i)&&!i.hasNext;if(s){if(!a){var l=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(i=(0,r.pi)((0,r.pi)({},i),{data:l.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}c&&s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return d.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(d).then((function(){return i}))}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var n=this,o="function"===typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult((0,r.pi)((0,r.pi)({},t),{result:{data:o}}),e)}catch(a){__DEV__&&i.kG.error(a)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),i=(0,v.Fo)(n),o=this.localState.clientQuery(n),a=i&&this.localState.serverQuery(i),s={document:n,hasClientExports:(0,_.mj)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:(0,y.O4)((0,y.$H)(n)),asQuery:(0,r.pi)((0,r.pi)({},n),{definitions:n.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,r.pi)((0,r.pi)({},e),{operation:"query"}):e}))})},c=function(e){e&&!t.has(e)&&t.set(e,s)};c(e),c(n),c(o),c(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,r.pi)((0,r.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){"undefined"===typeof(e=(0,r.pi)((0,r.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new B(this),n=new I.ue({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:n.query,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?(0,i.kG)(e.query,"query option is required. You must specify your GraphQL document in the query option."):(0,i.kG)(e.query,17),__DEV__?(0,i.kG)("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):(0,i.kG)("Document"===e.query.kind,18),__DEV__?(0,i.kG)(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,i.kG)(!e.returnPartialData,19),__DEV__?(0,i.kG)(!e.pollInterval,"pollInterval option only supported on watchQuery."):(0,i.kG)(!e.pollInterval,20),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new i.ej("Store reset while query was in flight (not completed in link chain)"):new i.ej(21)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=O.I.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach((function(e){"string"===typeof e?o.set(e,!1):(0,b.JW)(e)?o.set(t.transform(e).document,!1):(0,S.s)(e)&&e.query&&a.add(e)})),this.queries.forEach((function(t,r){var i=t.observableQuery,a=t.document;if(i){if("all"===e)return void n.set(r,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(n.set(r,i),s&&o.set(s,!0),a&&o.set(a,!0))}})),a.size&&a.forEach((function(e){var o=(0,w.X)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new I.ue({queryManager:t,queryInfo:a,options:(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(s.queryId===o),a.setObservableQuery(s),n.set(o,s)})),__DEV__&&o.size&&o.forEach((function(e,t){e||__DEV__&&i.kG.warn("Unknown query ".concat("string"===typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var c=function(e){return t.getObservableFromLink(n,s,e).map((function(o){"no-cache"!==r&&($(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=m(o),s=(0,T.ls)(o);if(a||s){var c={};throw a&&(c.graphQLErrors=o.errors),s&&(c.protocolErrors=o.extensions[T.YG]),new T.cA(c)}return o}))};if(this.transform(n).hasClientExports){var u=this.localState.addExportedVariables(n,o,s).then(c);return new f.y((function(e){var t=null;return u.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,i){var o,s,c=this;void 0===i&&(i=null!==(o=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var u=this.transform(e).serverQuery;if(u){var d=this.inFlightLinkObservables,h=this.link,m={query:u,variables:n,operationName:(0,y.rY)(u)||void 0,context:this.prepareContext((0,r.pi)((0,r.pi)({},t),{forceFetch:!i}))};if(t=m.context,i){var g=d.get(u)||new Map;d.set(u,g);var v=(0,l.B)(n);if(!(s=g.get(v))){var _=new C([(0,a.h)(h,m)]);g.set(v,s=_),_.beforeNext((function(){g.delete(v)&&g.size<1&&d.delete(u)}))}}else s=new C([(0,a.h)(h,m)])}else s=new C([f.y.of({data:{}})]),t=this.prepareContext(t);var b=this.transform(e).clientQuery;return b&&(s=p(s,(function(e){return c.localState.runResolvers({document:b,remoteResult:e,context:t,variables:n})}))),s},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(this.transform(e.document).document);return p(this.getObservableFromLink(i,n.context,n.variables),(function(o){var a=g(o),s=a.length>0;if(r>=e.lastRequestId){if(s&&"none"===n.errorPolicy)throw e.markError(new T.cA({graphQLErrors:a}));e.markResult(o,i,n,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:O.I.ready};return s&&"ignore"!==n.errorPolicy&&(c.errors=a,c.networkStatus=O.I.error),c}),(function(t){var n=(0,T.MS)(t)?t:new T.cA({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast},e.prototype.fetchConcastWithInfo=function(e,t,n){var r=this;void 0===n&&(n=O.I.loading);var i,o,a=this.transform(t.query).document,s=this.getVariables(a,t.variables),c=this.getQuery(e),u=this.defaultOptions.watchQuery,l=t.fetchPolicy,d=void 0===l?u&&u.fetchPolicy||"cache-first":l,f=t.errorPolicy,p=void 0===f?u&&u.errorPolicy||"none":f,h=t.returnPartialData,m=void 0!==h&&h,g=t.notifyOnNetworkStatusChange,y=void 0!==g&&g,v=t.context,_=void 0===v?{}:v,b=Object.assign({},t,{query:a,variables:s,fetchPolicy:d,errorPolicy:p,returnPartialData:m,notifyOnNetworkStatusChange:y,context:_}),S=function(e){b.variables=e;var i=r.fetchQueryByPolicy(c,b,n);return"standby"!==b.fetchPolicy&&i.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),i},w=function(){return r.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){w(),setTimeout((function(){return i.cancel(e)}))})),this.transform(b.query).hasClientExports)i=new C(this.localState.addExportedVariables(b.query,b.variables,b.context).then(S).then((function(e){return e.sources}))),o=!0;else{var k=S(b.variables);o=k.fromLink,i=new C(k.sources)}return i.promise.then(w,w),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,w.X)("refetchQueries"):void 0:a,c=e.onQueryUpdated,u=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){u.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof B&&e.watcher.observableQuery;if(r){if(c){u.delete(r.queryId);var i=c(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),i}null!==c&&u.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),u.size&&u.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=c(i,a,o)}c&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,l=t.errorPolicy,d=t.returnPartialData,p=t.context,h=t.notifyOnNetworkStatusChange,m=e.networkStatus;e.init({document:this.transform(o).document,variables:a,networkStatus:n});var g=function(){return e.getDiff(a)},y=function(t,n){void 0===n&&(n=e.networkStatus||O.I.loading);var s=t.result;!__DEV__||d||(0,c.D)(s,{})||(0,I.DC)(t.missing);var u=function(e){return f.y.of((0,r.pi)({data:e,loading:(0,O.O)(n),networkStatus:n},t.complete?null:{partial:!0}))};return s&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:p,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return u(e.data||void 0)})):"none"===l&&n===O.I.refetch&&Array.isArray(t.missing)?u(void 0):u(s)},v="no-cache"===s?0:n===O.I.refetch&&"merge"!==u?1:2,_=function(){return i.getResultsFromLink(e,v,{variables:a,context:p,fetchPolicy:s,errorPolicy:l})},b=h&&"number"===typeof m&&m!==n&&(0,O.O)(n);switch(s){default:case"cache-first":return(S=g()).complete?{fromLink:!1,sources:[y(S,e.markReady())]}:d||b?{fromLink:!0,sources:[y(S),_()]}:{fromLink:!0,sources:[_()]};case"cache-and-network":var S;return(S=g()).complete||d||b?{fromLink:!0,sources:[y(S),_()]}:{fromLink:!0,sources:[_()]};case"cache-only":return{fromLink:!1,sources:[y(g(),e.markReady())]};case"network-only":return b?{fromLink:!0,sources:[y(g()),_()]}:{fromLink:!0,sources:[_()]};case"no-cache":return b?{fromLink:!0,sources:[y(e.getDiff()),_()]}:{fromLink:!0,sources:[_()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new B(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,r.pi)((0,r.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),H=n(14012),V=!1,W=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,a=e.headers,c=e.cache,u=e.ssrMode,l=void 0!==u&&u,d=e.ssrForceFetchDelay,f=void 0===d?0:d,p=e.connectToDevTools,h=void 0===p?"object"===typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:p,m=e.queryDeduplication,g=void 0===m||m,y=e.defaultOptions,v=e.assumeImmutableResults,_=void 0!==v&&v,b=e.resolvers,S=e.typeDefs,w=e.fragmentMatcher,k=e.name,x=e.version,E=e.link;if(E||(E=n?new s.u({uri:n,credentials:r,headers:a}):o.i.empty()),!c)throw __DEV__?new i.ej("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new i.ej(9);if(this.link=E,this.cache=c,this.disableNetworkFetches=l||f>0,this.queryDeduplication=g,this.defaultOptions=y||Object.create(null),this.typeDefs=S,f&&setTimeout((function(){return t.disableNetworkFetches=!1}),f),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),h&&"object"===typeof window&&(window.__APOLLO_CLIENT__=this),!V&&h&&__DEV__&&(V=!0,"undefined"!==typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var C=window.navigator,T=C&&C.userAgent,I=void 0;"string"===typeof T&&(T.indexOf("Chrome/")>-1?I="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":T.indexOf("Firefox/")>-1&&(I="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),I&&__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: "+I)}this.version="3.7.17",this.localState=new M({cache:c,client:this,resolvers:b,fragmentMatcher:w}),this.queryManager=new q({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:g,ssrMode:l,clientAwareness:{name:k,version:x},localState:this.localState,assumeImmutableResults:_,onBroadcast:h?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,H.J)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,H.J)(this.defaultOptions.query,e)),__DEV__?(0,i.kG)("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,i.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,H.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,a.h)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var o=Promise.all(r);return o.queries=n,o.results=r,o.catch((function(e){__DEV__&&i.kG.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))})),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},44780:function(e,t,n){"use strict";n.d(t,{DC:function(){return _},ue:function(){return g},vj:function(){return y}});var r=n(54708),i=n(48964),o=n(82152),a=n(1644),s=n(36765),c=n(79487),u=n(21436),l=n(53712),d=n(18263),f=n(48216),p=n(86403),h=Object.assign,m=Object.hasOwnProperty,g=function(e){function t(t){var n=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,(function(e){try{var n=e._subscription._observer;n&&!n.error&&(n.error=v)}catch(t){}var r=!a.observers.size;a.observers.add(e);var i=a.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(i.result),r&&a.reobserve().catch((function(){})),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}}))||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=n,a.waitForOwnResult=b(o.fetchPolicy),a.isTornDown=!1;var c=n.defaultOptions.watchQuery,u=(void 0===c?{}:c).fetchPolicy,l=void 0===u?"cache-first":u,d=o.fetchPolicy,f=void 0===d?l:d,p=o.initialFetchPolicy,h=void 0===p?"standby"===f?l:f:p;a.options=(0,r.pi)((0,r.pi)({},o),{initialFetchPolicy:h,fetchPolicy:f}),a.queryId=i.queryId||n.generateQueryId();var m=(0,s.$H)(a.query);return a.queryName=m&&m.name&&m.name.value,a}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||a.I.ready,i=(0,r.pi)((0,r.pi)({},t),{loading:(0,a.O)(n),networkStatus:n}),s=this.options.fetchPolicy,c=void 0===s?"cache-first":s;if(b(c)||this.queryManager.transform(this.options.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(i.data=u.result),(0,o.D)(i.data,{})&&(i.data=void 0),u.complete?(delete i.partial,!u.complete||i.networkStatus!==a.I.loading||"cache-first"!==c&&"cache-only"!==c||(i.networkStatus=a.I.ready,i.loading=!1)):i.partial=!0,!__DEV__||u.complete||this.options.partialRefetch||i.loading||i.data||i.error||_(u.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||!(0,o.D)(this.last.result,e)||t&&!(0,o.D)(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||(0,o.D)(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},c=this.options.fetchPolicy;if(n.fetchPolicy="cache-and-network"===c?c:"no-cache"===c?"no-cache":"network-only",__DEV__&&e&&m.call(e,"variables")){var u=(0,s.iW)(this.query),l=u.variableDefinitions;l&&l.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&i.kG.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=u.name)||void 0===t?void 0:t.value)||JSON.stringify(u),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!(0,o.D)(this.options.variables,e)&&(n.variables=this.options.variables=(0,r.pi)((0,r.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,a.I.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,r.pi)((0,r.pi)({},e.query?e:(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},this.options),{query:this.query}),e),{variables:(0,r.pi)((0,r.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId(),o=this.queryInfo,s=o.networkStatus;o.networkStatus=a.I.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var c=new Set;return this.queryManager.fetchQuery(i,n,a.I.fetchMore).then((function(r){return t.queryManager.removeQuery(i),o.networkStatus===a.I.fetchMore&&(o.networkStatus=s),t.queryManager.cache.batch({update:function(i){var o=e.updateQuery;o?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return o(e,{fetchMoreResult:r.data,variables:n.variables})})):i.writeQuery({query:n.query,variables:n.variables,data:r.data})},onWatchUpdated:function(e){c.add(e.query)}}),r})).finally((function(){c.has(t.query)||y(t)}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&i.kG.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return(0,o.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},a.I.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"===typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?(0,i.kG)(n,"Attempted to start a polling query without a polling interval."):(0,i.kG)(n,13),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&((0,a.O)(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},a.I.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,r.pi)((0,r.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?e:(0,c.X)(e),variables:t}),(0,u.O)(e.errors)||delete this.last.error,this.last},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var i=t===a.I.refetch||t===a.I.fetchMore||t===a.I.poll,s=this.options.variables,c=this.options.fetchPolicy,u=(0,l.o)(this.options,e||{}),d=i?u:h(this.options,u);i||(this.updatePolling(),e&&e.variables&&!(0,o.D)(e.variables,s)&&"standby"!==d.fetchPolicy&&d.fetchPolicy===c&&(this.applyNextFetchPolicy("variables-changed",d),void 0===t&&(t=a.I.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=b(d.fetchPolicy));var f=function(){n.concast===g&&(n.waitForOwnResult=!1)},p=d.variables&&(0,r.pi)({},d.variables),m=this.fetch(d,t),g=m.concast,y=m.fromLink,v={next:function(e){f(),n.reportResult(e,p)},error:function(e){f(),n.reportError(e,p)}};return!i&&y&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=g,this.observer=v),g.addObserver(v),g},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError();(n||this.isDifferentFromLastResult(e,t))&&((n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(0,d.p)(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=(0,r.pi)((0,r.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:a.I.error,loading:!1});this.updateLastResult(n,t),(0,d.p)(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(f.y);function y(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=r,"function"===typeof r?r.apply(this,arguments):n}}):e.reobserve()}function v(e){__DEV__&&i.kG.error("Unhandled error",e.message,e.stack)}function _(e){__DEV__&&e&&__DEV__&&i.kG.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}function b(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,p.D)(g)},8137:function(e,t,n){"use strict";n.r(t),n.d(t,{ApolloCache:function(){return l.R},ApolloClient:function(){return o.f},ApolloError:function(){return u.cA},ApolloLink:function(){return m.i},Cache:function(){return r},HttpLink:function(){return I.u},InMemoryCache:function(){return d.h},MissingFieldError:function(){return f.y},NetworkStatus:function(){return c.I},Observable:function(){return R.y},ObservableQuery:function(){return s.ue},checkFetcher:function(){return x.U},concat:function(){return _},createHttpLink:function(){return T.L},createSignalIfSupported:function(){return E.$},defaultDataIdFromObject:function(){return p.uG},defaultPrinter:function(){return k.sb},disableExperimentalFragmentVariables:function(){return F.J9},disableFragmentWarnings:function(){return F._t},empty:function(){return g},enableExperimentalFragmentVariables:function(){return F.wO},execute:function(){return b.h},fallbackHttpConfig:function(){return k.SC},from:function(){return y},fromError:function(){return D.Q},fromPromise:function(){return N},gql:function(){return F.Ps},isApolloError:function(){return u.MS},isReference:function(){return L.Yk},makeReference:function(){return L.kQ},makeVar:function(){return h.QS},mergeOptions:function(){return a.J},parseAndCheckHttpResponse:function(){return S.dO},resetCaches:function(){return F.HW},rewriteURIForGET:function(){return O.H},selectHttpOptionsAndBody:function(){return k.E4},selectHttpOptionsAndBodyInternal:function(){return k.ve},selectURI:function(){return C.r},serializeFetchParameter:function(){return w.g},setLogVerbosity:function(){return M.U6},split:function(){return v.V},throwServerError:function(){return P.P},toPromise:function(){return A}});var r,i=n(48964),o=n(65075),a=n(14012),s=n(44780),c=n(1644),u=n(30990);r||(r={});var l=n(11294),d=n(55598),f=n(75727),p=n(49641),h=n(66438),m=n(48702),g=m.i.empty,y=m.i.from,v=n(35367),_=m.i.concat,b=n(47037),S=n(93227),w=n(15049),k=n(3453),x=n(23178),E=n(77388),C=n(11037),T=n(34747),I=n(72198),O=n(88663);function A(e){var t=!1;return new Promise((function(n,r){e.subscribe({next:function(e){t?__DEV__&&i.kG.warn("Promise Wrapper does not support multiple results from Observable"):(t=!0,n(e))},error:r})}))}var R=n(48216);function N(e){return new R.y((function(t){e.then((function(e){t.next(e),t.complete()})).catch(t.error.bind(t))}))}var D=n(16261),P=n(12782),L=n(51761),M=n(78231),F=n(7059);(0,M.U6)(i.Rk?"log":"silent")},1644:function(e,t,n){"use strict";var r;function i(e){return!!e&&e<7}n.d(t,{I:function(){return r},O:function(){return i}}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(r||(r={}))},30990:function(e,t,n){"use strict";n.d(t,{MS:function(){return s},YG:function(){return o},cA:function(){return c},ls:function(){return a}});var r=n(54708),i=(n(48964),n(13154)),o=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function s(e){return e.hasOwnProperty("graphQLErrors")}var c=function(e){function t(n){var o=n.graphQLErrors,a=n.protocolErrors,s=n.clientErrors,c=n.networkError,u=n.errorMessage,l=n.extraInfo,d=e.call(this,u)||this;return d.name="ApolloError",d.graphQLErrors=o||[],d.protocolErrors=a||[],d.clientErrors=s||[],d.networkError=c||null,d.message=u||function(e){var t=(0,r.ev)((0,r.ev)((0,r.ev)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map((function(e){return(0,i.s)(e)&&e.message||"Error message not found."})).join("\n")}(d),d.extraInfo=l,d.__proto__=t.prototype,d}return(0,r.ZT)(t,e),t}(Error)},48702:function(e,t,n){"use strict";n.d(t,{i:function(){return d}});var r=n(54708),i=n(48964),o=n(48216);var a=n(36765);function s(e,t){return t?t(e):o.y.of()}function c(e){return"function"===typeof e?new d(e):e}function u(e){return e.request.length<=1}var l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return(0,r.ZT)(t,e),t}(Error),d=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return o.y.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(c).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=c(n),a=c(r||new e(s));return u(i)&&u(a)?new e((function(e){return t(e)?i.request(e)||o.y.of():a.request(e)||o.y.of()})):new e((function(e,n){return t(e)?i.request(e,n)||o.y.of():a.request(e,n)||o.y.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=(0,r.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"===typeof e?(0,r.pi)((0,r.pi)({},n),e(n)):(0,r.pi)((0,r.pi)({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,r.pi)({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!==typeof t.query?(0,a.rY)(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n-1;){if(I=void 0,L=[_.slice(0,T),_.slice(T+v.length)],_=L[1],O=(I=L[0]).indexOf("\r\n\r\n"),A=p(I.slice(0,O)),(R=A["content-type"])&&-1===R.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(N=I.slice(O))try{D=h(e,N),Object.keys(D).length>1||"data"in D||"incremental"in D||"errors"in D||"payload"in D?(0,l.yU)(D)?(P={},"payload"in D&&(P=(0,r.pi)({},D.payload)),"errors"in D&&(P=(0,r.pi)((0,r.pi)({},P),{extensions:(0,r.pi)((0,r.pi)({},"extensions"in P?P.extensions:null),(M={},M[u.YG]=D.errors,M))})),null===(i=t.next)||void 0===i||i.call(t,P)):null===(o=t.next)||void 0===o||o.call(t,D):1===Object.keys(D).length&&"hasNext"in D&&!D.hasNext&&(null===(a=t.complete)||void 0===a||a.call(t))}catch(j){m(j,t)}T=_.indexOf(v)}return[3,1];case 3:return null===(c=t.complete)||void 0===c||c.call(t),[2]}}))}))}function p(e){var t={};return e.split("\n").forEach((function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}})),t}function h(e,t){if(e.status>=300){(0,c.P)(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function m(e,t){var n,r;"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&(null===(n=t.next)||void 0===n||n.call(t,e.result)),null===(r=t.error)||void 0===r||r.call(t,e))}function g(e,t,n){y(t)(e).then((function(e){var t,r;null===(t=n.next)||void 0===t||t.call(n,e),null===(r=n.complete)||void 0===r||r.call(n)})).catch((function(e){return m(e,n)}))}function y(e){return function(t){return t.text().then((function(e){return h(t,e)})).then((function(n){return t.status>=300&&(0,c.P)(t,n,"Response not successful: Received status code ".concat(t.status)),Array.isArray(n)||d.call(n,"data")||d.call(n,"errors")||(0,c.P)(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName,"'.")),n}))}}},88663:function(e,t,n){"use strict";n.d(t,{H:function(){return i}});var r=n(15049);function i(e,t){var n=[],i=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){var o=void 0;try{o=(0,r.g)(t.variables,"Variables map")}catch(d){return{parseError:d}}i("variables",o)}if(t.extensions){var a=void 0;try{a=(0,r.g)(t.extensions,"Extensions map")}catch(d){return{parseError:d}}i("extensions",a)}var s="",c=e,u=e.indexOf("#");-1!==u&&(s=e.substr(u),c=e.substr(0,u));var l=-1===c.indexOf("?")?"?":"&";return{newURI:c+l+n.join("&")+s}}},3453:function(e,t,n){"use strict";n.d(t,{E4:function(){return s},SC:function(){return o},sb:function(){return a},ve:function(){return c}});var r=n(54708),i=n(16918),o={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},a=function(e,t){return t(e)};function s(e,t){for(var n=[],i=2;i0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1], or pass an ApolloClient instance in via options.'):(0,r.kG)(!!n,32),n}},50319:function(e,t,n){"use strict";n.d(t,{D:function(){return l}});var r=n(54708),i=n(67294),o=n(14012),a=n(82152),s=n(14692),c=n(30990),u=n(66252);function l(e,t){var n=(0,u.x)(null===t||void 0===t?void 0:t.client);(0,s.Vp)(e,s.n_.Mutation);var l=(0,i.useState)({called:!1,loading:!1,client:n}),d=l[0],f=l[1],p=(0,i.useRef)({result:d,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});Object.assign(p.current,{client:n,options:t,mutation:e});var h=(0,i.useCallback)((function(e){void 0===e&&(e={});var t=p.current,n=t.options,i=t.mutation,s=(0,r.pi)((0,r.pi)({},n),{mutation:i}),u=e.client||p.current.client;p.current.result.loading||s.ignoreResults||!p.current.isMounted||f(p.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:u});var l=++p.current.mutationId,d=(0,o.J)(s,e);return u.mutate(d).then((function(t){var n,r=t.data,i=t.errors,o=i&&i.length>0?new c.cA({graphQLErrors:i}):void 0;if(l===p.current.mutationId&&!d.ignoreResults){var s={called:!0,loading:!1,data:r,error:o,client:u};p.current.isMounted&&!(0,a.D)(p.current.result,s)&&f(p.current.result=s)}var h=e.onCompleted||(null===(n=p.current.options)||void 0===n?void 0:n.onCompleted);return null===h||void 0===h||h(t.data,d),t})).catch((function(t){var n;if(l===p.current.mutationId&&p.current.isMounted){var r={loading:!1,error:t,data:void 0,called:!0,client:u};(0,a.D)(p.current.result,r)||f(p.current.result=r)}var i=e.onError||(null===(n=p.current.options)||void 0===n?void 0:n.onError);if(i)return i(t,d),{data:void 0,errors:t};throw t}))}),[]),m=(0,i.useCallback)((function(){p.current.isMounted&&f({called:!1,loading:!1,client:n})}),[]);return(0,i.useEffect)((function(){return p.current.isMounted=!0,function(){p.current.isMounted=!1}}),[]),[h,(0,r.pi)({reset:m},d)]}},14692:function(e,t,n){"use strict";n.d(t,{Vp:function(){return s},n_:function(){return r}});var r,i=n(48964);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(r||(r={}));var o=new Map;function a(e){var t;switch(e){case r.Query:t="Query";break;case r.Mutation:t="Mutation";break;case r.Subscription:t="Subscription"}return t}function s(e,t){var n=function(e){var t,n,a=o.get(e);if(a)return a;__DEV__?(0,i.kG)(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):(0,i.kG)(!!e&&!!e.kind,33);for(var s=[],c=[],u=[],l=[],d=0,f=e.definitions;d0}},30320:function(e,t,n){"use strict";n.d(t,{DN:function(){return s},JC:function(){return l},aS:function(){return a},mr:function(){return i},sy:function(){return o}});var r=n(48964),i="function"===typeof WeakMap&&"ReactNative"!==(0,r.wY)((function(){return navigator.product})),o="function"===typeof WeakSet,a="function"===typeof Symbol&&"function"===typeof Symbol.for,s=a&&Symbol.asyncIterator,c="function"===typeof(0,r.wY)((function(){return window.document.createElement})),u=(0,r.wY)((function(){return navigator.userAgent.indexOf("jsdom")>=0}))||!1,l=c&&!u},79487:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=Object.prototype.toString;function i(e){return o(e)}function o(e,t){switch(r.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=o(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var i=Object.create(Object.getPrototypeOf(e));return t.set(e,i),Object.keys(e).forEach((function(n){i[n]=o(e[n],t)})),i;default:return e}}},53712:function(e,t,n){"use strict";function r(){for(var e=[],t=0;t=0;--o){var a=i[o],s=!isNaN(+a)?[]:{};s[a]=t,t=s}n=r.merge(n,t)})),n}},60897:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=new Map;function i(e){var t=r.get(e)||1;return r.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},10542:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});n(48964);var r=n(13154);function i(e){var t=new Set([e]);return t.forEach((function(e){(0,r.s)(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(n){(0,r.s)(e[n])&&t.add(e[n])}))})),e}function o(e){return __DEV__&&i(e),e}},182:function(e,t,n){"use strict";n.d(t,{Ee:function(){return a},bw:function(){return s},w0:function(){return u}});var r=n(54708),i=n(13154),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t1)for(var r=new u,i=1;i0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),"".concat(n.connection.key,"(").concat(p(i),")")}return n.connection.key}var o=e;if(t){var a=p(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach((function(e){-1===d.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(p(n[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=p;return p=e,t}}),p=function(e){return JSON.stringify(e,h)};function h(e,t){return(0,i.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function m(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return u(n,r,i,t)})),n}return null}function g(e){return e.alias?e.alias.value:e.name.value}function y(e,t,n){for(var r,i=0,a=t.selections;i=0;--d)t.definitions[d].kind===o.h.OPERATION_DEFINITION&&++u;var f=h(e),g=e.some((function(e){return e.remove})),y=function(e){return g&&e&&e.some(f)},v=new Map,_=!1,b={enter:function(e){if(y(e.directives))return _=!0,null}},S=(0,a.Vn)(t,{Field:b,InlineFragment:b,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,i){var o=c(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,i){if(y(e.directives))return _=!0,null;var o=c(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){v.set(JSON.stringify(r),e)},leave:function(e,t,n,r){return e===v.get(JSON.stringify(r))?e:u>0&&e.selectionSet.selections.every((function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value}))?(s(e.name.value).removed=!0,_=!0,null):void 0}},Directive:{leave:function(e){if(f(e))return _=!0,null}}});if(!_)return t;var w=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){w(s(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},k=new Set;S.definitions.forEach((function(e){e.kind===o.h.OPERATION_DEFINITION?w(n(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){k.add(e)})):e.kind!==o.h.FRAGMENT_DEFINITION||0!==u||s(e.name.value).removed||k.add(e.name.value)})),k.forEach((function(e){w(s(e)).fragmentSpreads.forEach((function(e){k.add(e)}))}));var x={enter:function(e){if(t=e.name.value,!k.has(t)||s(t).removed)return null;var t}};return p((0,a.Vn)(S,{FragmentSpread:x,FragmentDefinition:x,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=w(n(e.name&&e.name.value)).transitiveVars;if(t.size{const n=a.m[t]&&a.m[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,i.hl)(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){const r=f(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(o){}return t.call(this,n,r,i)}})),(0,i.hl)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(i){}return e.call(this,t,n,r)}})))}))}function f(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(t){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;(0,i.xp)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,i.xp)(r,"_sentryId",(0,o.DM)());const l="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==c)return!1;try{if(!e.target||e.target._sentryId!==u)return!1}catch(t){}return!0}(n)){e({event:n,name:l,global:t}),c=n.type,u=r?r._sentryId:void 0}clearTimeout(s),s=a.m.setTimeout((()=>{u=void 0,c=void 0}),1e3)}}},32319:function(e,t,n){"use strict";n.d(t,{a:function(){return c}});const r=n(84756).n;var i=n(11213),o=n(27575),a=n(67515);let s;function c(e){const t="history";(0,i.Hj)(t,e),(0,i.D2)(t,u)}function u(){if(!function(){const e=r.chrome,t=e&&e.app&&e.app.runtime,n="history"in r&&!!r.history.pushState&&!!r.history.replaceState;return!t&&n}())return;const e=a.m.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=s,t=String(n);s=t;const r={from:e,to:t};(0,i.rK)("history",r)}return e.apply(this,t)}}a.m.onpopstate=function(...t){const n=a.m.location.href,r=s;s=n;const o={from:r,to:n};if((0,i.rK)("history",o),e)try{return e.apply(this,t)}catch(c){}},(0,o.hl)(a.m.history,"pushState",t),(0,o.hl)(a.m.history,"replaceState",t)}},6341:function(e,t,n){"use strict";n.d(t,{UK:function(){return u},xU:function(){return c}});var r=n(11213),i=n(27575),o=n(30554),a=n(90759),s=n(67515);const c="__sentry_xhr_v3__";function u(e){(0,r.Hj)("xhr",e),(0,r.D2)("xhr",l)}function l(){if(!s.m.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;(0,i.hl)(e,"open",(function(e){return function(...t){const n=1e3*(0,o.ph)(),s=(0,a.HD)(t[0])?t[0].toUpperCase():void 0,u=function(e){if((0,a.HD)(e))return e;try{return e.toString()}catch(t){}return}(t[1]);if(!s||!u)return e.apply(this,t);this[c]={method:s,url:u,request_headers:{}},"POST"===s&&u.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const l=()=>{const e=this[c];if(e&&4===this.readyState){try{e.status_code=this.status}catch(t){}const i={endTimestamp:1e3*(0,o.ph)(),startTimestamp:n,xhr:this};(0,r.rK)("xhr",i)}};return"onreadystatechange"in this&&"function"===typeof this.onreadystatechange?(0,i.hl)(this,"onreadystatechange",(function(e){return function(...t){return l(),e.apply(this,t)}})):this.addEventListener("readystatechange",l),(0,i.hl)(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,i=this[c];return i&&(0,a.HD)(n)&&(0,a.HD)(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),(0,i.hl)(e,"send",(function(e){return function(...t){const n=this[c];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);const i={startTimestamp:1e3*(0,o.ph)(),xhr:this};return(0,r.rK)("xhr",i),e.apply(this,t)}}))}},34374:function(e,t,n){"use strict";n.d(t,{PR:function(){return q},to:function(){return V},YF:function(){return G},$A:function(){return H},_j:function(){return Z},_4:function(){return W},cN:function(){return ie}});var r=n(42562),i=n(20290),o=n(65387);const a=(e,t,n,r)=>{let i,o;return a=>{t.value>=0&&(a||r)&&(o=t.value-(i||0),(o||void 0===i)&&(i=t.value,t.delta=o,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}};var s=n(67515);var c=n(34880);const u=()=>{const e=(0,c.W)();return e&&e.activationStart||0},l=(e,t)=>{const n=(0,c.W)();let r="navigate";n&&(s.m.document&&s.m.document.prerendering||u()>0?r="prerender":s.m.document&&s.m.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return{name:e,value:"undefined"===typeof t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},d=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(r){}},f=e=>{const t=t=>{("pagehide"===t.type||s.m.document&&"hidden"===s.m.document.visibilityState)&&e(t)};s.m.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},p=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};var h=n(59057);const m=e=>{s.m.document&&s.m.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},g=[1800,3e3],y=[.1,.25],v=(e,t={})=>{((e,t={})=>{m((()=>{const n=(0,h.Y)(),r=l("FCP");let i;const o=d("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime{const n=l("CLS",0);let r,i=0,o=[];const s=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=o[0],n=o[o.length-1];i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e])}})),i>n.value&&(n.value=i,n.entries=o,r())},c=d("layout-shift",s);c&&(r=a(e,n,y,t.reportAllChanges),f((()=>{s(c.takeRecords()),r(!0)})),setTimeout(r,0))})))},_=[100,300];let b=0,S=1/0,w=0;const k=e=>{e.forEach((e=>{e.interactionId&&(S=Math.min(S,e.interactionId),w=Math.max(w,e.interactionId),b=w?(w-S)/7+1:0)}))};let x;const E=()=>{"interactionCount"in performance||x||(x=d("event",k,{type:"event",buffered:!0,durationThreshold:0}))},C=[200,500],T=()=>(x?b:performance.interactionCount||0)-0,I=[],O={},A=e=>{const t=I[I.length-1],n=O[e.interactionId];if(n||I.length<10||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};O[t.id]=t,I.push(t)}I.sort(((e,t)=>t.latency-e.latency)),I.splice(10).forEach((e=>{delete O[e.id]}))}},R=(e,t={})=>{m((()=>{E();const n=l("INP");let r;const i=e=>{e.forEach((e=>{if(e.interactionId&&A(e),"first-input"===e.entryType){!I.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&A(e)}}));const t=(()=>{const e=Math.min(I.length-1,Math.floor(T()/50));return I[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},o=d("event",i,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=a(e,n,C,t.reportAllChanges),o&&("PerformanceEventTiming"in s.m&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),f((()=>{i(o.takeRecords()),n.value<0&&T()>0&&(n.value=0,n.entries=[]),r(!0)})))}))},N=[2500,4e3],D={},P=[800,1800],L=e=>{s.m.document&&s.m.document.prerendering?m((()=>L(e))):s.m.document&&"complete"!==s.m.document.readyState?addEventListener("load",(()=>L(e)),!0):setTimeout(e,0)},M={},F={};let j,U,B,$,z;function q(e,t=!1){return te("cls",e,Q,j,t)}function H(e,t=!1){return te("lcp",e,J,B,t)}function V(e){return te("fid",e,Y,U)}function W(e){return te("ttfb",e,K,$)}function G(e){return te("inp",e,ee,z)}function Z(e,t){return ne(e,t),F[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);d(e,(t=>{X(e,{entries:t})}),t)}(e),F[e]=!0),re(e,t)}function X(e,t){const n=M[e];if(n&&n.length)for(const s of n)try{s(t)}catch(a){o.X&&r.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,i.$P)(s)}\nError:`,a)}}function Q(){return v((e=>{X("cls",{metric:e}),j=e}),{reportAllChanges:!0})}function Y(){return((e,t={})=>{m((()=>{const n=(0,h.Y)(),r=l("FID");let i;const o=e=>{e.startTime{e.forEach(o)},c=d("first-input",s);i=a(e,r,_,t.reportAllChanges),c&&f(p((()=>{s(c.takeRecords()),c.disconnect()})))}))})((e=>{X("fid",{metric:e}),U=e}))}function J(){return((e,t={})=>{m((()=>{const n=(0,h.Y)(),r=l("LCP");let i;const o=e=>{const t=e[e.length-1];t&&t.startTime{D[r.id]||(o(c.takeRecords()),c.disconnect(),D[r.id]=!0,i(!0))}));["keydown","click"].forEach((e=>{s.m.document&&addEventListener(e,(()=>setTimeout(n,0)),!0)})),f(n)}}))})((e=>{X("lcp",{metric:e}),B=e}),{reportAllChanges:!0})}function K(){return((e,t={})=>{const n=l("TTFB"),r=a(e,n,P,t.reportAllChanges);L((()=>{const e=(0,c.W)();if(e){const t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-u(),0),n.entries=[e],r(!0)}}))})((e=>{X("ttfb",{metric:e}),$=e}))}function ee(){return R((e=>{X("inp",{metric:e}),z=e}))}function te(e,t,n,r,i=!1){let o;return ne(e,t),F[e]||(o=n(),F[e]=!0),r&&t({metric:r}),re(e,t,i?o:void 0)}function ne(e,t){M[e]=M[e]||[],M[e].push(t)}function re(e,t,n){return()=>{n&&n();const r=M[e];if(!r)return;const i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function ie(e){return"duration"in e}},34880:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(67515);const i=()=>r.m.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},59057:function(e,t,n){"use strict";n.d(t,{Y:function(){return a}});var r=n(67515);let i=-1;const o=e=>{"hidden"===r.m.document.visibilityState&&i>-1&&(i="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",o,!0),removeEventListener("prerenderingchange",o,!0))},a=()=>(r.m.document&&i<0&&(i="hidden"!==r.m.document.visibilityState||r.m.document.prerendering?1/0:0,addEventListener("visibilitychange",o,!0),addEventListener("prerenderingchange",o,!0)),{get firstHiddenTime(){return i}})},67515:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});const r=n(84756).n},85817:function(e,t,n){"use strict";n.d(t,{U:function(){return a},h:function(){return s}});var r=n(27575),i=n(43854);function o(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function a(e,t,n){return t||`${function(e){return`${o(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,r._j)({sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,n)}`}function s(e,t){const n=(0,i.vK)(e);if(!n)return"";const r=`${o(n)}embed/error-page/`;let a=`dsn=${(0,i.RA)(n)}`;for(const i in t)if("dsn"!==i&&"onClose"!==i)if("user"===i){const e=t.user;if(!e)continue;e.name&&(a+=`&name=${encodeURIComponent(e.name)}`),e.email&&(a+=`&email=${encodeURIComponent(e.email)}`)}else a+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${r}?${a}`}},84739:function(e,t,n){"use strict";n.d(t,{G:function(){return f}});var r=n(49101),i=n(90759),o=n(84756),a=n(10017);class s{constructor(e,t){let n,r;n=e||new a.s,r=t||new a.s,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(r){throw this._popScope(),r}return(0,i.J8)(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}_popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}}function c(){const e=(0,r.c)(),t=(0,r.q)(e);return t.stack=t.stack||new s((0,o.Y)("defaultCurrentScope",(()=>new a.s)),(0,o.Y)("defaultIsolationScope",(()=>new a.s)))}function u(e){return c().withScope(e)}function l(e,t){const n=c();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function d(e){return c().withScope((()=>e(c().getIsolationScope())))}function f(e){const t=(0,r.q)(e);return t.acs?t.acs:{withIsolationScope:d,withScope:u,withSetScope:l,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}},56860:function(e,t,n){"use strict";n.d(t,{n:function(){return s}});var r=n(30554),i=n(42562),o=n(24806);const a=100;function s(e,t){const n=(0,o.s3)(),s=(0,o.aF)();if(!n)return;const{beforeBreadcrumb:c=null,maxBreadcrumbs:u=a}=n.getOptions();if(u<=0)return;const l={timestamp:(0,r.yW)(),...e},d=c?(0,i.Cf)((()=>c(l,t))):l;null!==d&&(n.emit&&n.emit("beforeAddBreadcrumb",d,t),s.addBreadcrumb(d,u))}},49101:function(e,t,n){"use strict";n.d(t,{c:function(){return o},q:function(){return a}});var r=n(84756),i=n(40539);function o(){return a(r.n),r.n}function a(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||i.J,t[i.J]=t[i.J]||{}}},72189:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});const r="production"},24806:function(e,t,n){"use strict";n.d(t,{$e:function(){return l},aF:function(){return c},lW:function(){return u},nZ:function(){return s},s3:function(){return f},wi:function(){return d}});var r=n(84756),i=n(84739),o=n(49101),a=n(10017);function s(){const e=(0,o.c)();return(0,i.G)(e).getCurrentScope()}function c(){const e=(0,o.c)();return(0,i.G)(e).getIsolationScope()}function u(){return(0,r.Y)("globalScope",(()=>new a.s))}function l(...e){const t=(0,o.c)(),n=(0,i.G)(t);if(2===e.length){const[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}function d(...e){const t=(0,o.c)(),n=(0,i.G)(t);if(2===e.length){const[t,r]=e;return t?n.withSetIsolationScope(t,r):n.withIsolationScope(r)}return n.withIsolationScope(e[0])}function f(){return s().getClient()}},62066:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});const r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},54077:function(e,t,n){"use strict";n.d(t,{Mq:function(){return c},Q3:function(){return s},uE:function(){return u}});var r=n(97259),i=n(43854),o=n(8840),a=n(50304);function s(e,t,n,o){const a=(0,r.HY)(n),s={sent_at:(new Date).toISOString(),...a&&{sdk:a},...!!o&&t&&{dsn:(0,i.RA)(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,r.Jd)(s,[c])}function c(e,t,n,i){const o=(0,r.HY)(n),a=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const s=(0,r.Cd)(e,o,i,t);delete e.sdkProcessingMetadata;const c=[{type:a},e];return(0,r.Jd)(s,[c])}function u(e,t){const n=(0,o.jC)(e[0]),s=t&&t.getDsn(),c=t&&t.getOptions().tunnel,u={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!c&&s&&{dsn:(0,i.RA)(s)}},l=t&&t.getOptions().beforeSendSpan,d=l?e=>l((0,a.XU)(e)):e=>(0,a.XU)(e),f=[];for(const i of e){const e=d(i);e&&f.push((0,r.KQ)(e))}return(0,r.Jd)(u,f)}},11027:function(e,t,n){"use strict";n.d(t,{Qy:function(){return E},TM:function(){return T},Tb:function(){return d},YA:function(){return v},av:function(){return _},c:function(){return S},cg:function(){return O},dk:function(){return x},eN:function(){return p},eW:function(){return b},mG:function(){return y},rJ:function(){return m},sU:function(){return g},uT:function(){return f},v:function(){return h},xv:function(){return k},yj:function(){return C},yl:function(){return w}});var r=n(42562),i=n(9227),o=n(84756),a=n(72189),s=n(24806),c=n(62066),u=n(72271),l=n(77042);function d(e,t){return(0,s.nZ)().captureException(e,(0,l.U0)(t))}function f(e,t){const n="string"===typeof t?t:void 0,r="string"!==typeof t?{captureContext:t}:void 0;return(0,s.nZ)().captureMessage(e,n,r)}function p(e,t){return(0,s.nZ)().captureEvent(e,t)}function h(e,t){(0,s.aF)().setContext(e,t)}function m(e){(0,s.aF)().setExtras(e)}function g(e,t){(0,s.aF)().setExtra(e,t)}function y(e){(0,s.aF)().setTags(e)}function v(e,t){(0,s.aF)().setTag(e,t)}function _(e){(0,s.aF)().setUser(e)}function b(){return(0,s.aF)().lastEventId()}function S(e,t){const n=(0,s.nZ)(),o=(0,s.s3)();if(o){if(o.captureCheckIn)return o.captureCheckIn(e,t,n);c.X&&r.kg.warn("Cannot capture check-in. Client does not support sending check-ins.")}else c.X&&r.kg.warn("Cannot capture check-in. No client defined.");return(0,i.DM)()}async function w(e){const t=(0,s.s3)();return t?t.flush(e):(c.X&&r.kg.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function k(e){const t=(0,s.s3)();return t?t.close(e):(c.X&&r.kg.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function x(){return!!(0,s.s3)()}function E(e){(0,s.aF)().addEventProcessor(e)}function C(e){const t=(0,s.s3)(),n=(0,s.aF)(),r=(0,s.nZ)(),{release:i,environment:c=a.J}=t&&t.getOptions()||{},{userAgent:l}=o.n.navigator||{},d=(0,u.Hv)({release:i,environment:c,user:r.getUser()||n.getUser(),...l&&{userAgent:l},...e}),f=n.getSession();return f&&"ok"===f.status&&(0,u.CT)(f,{status:"exited"}),T(),n.setSession(d),r.setSession(d),d}function T(){const e=(0,s.aF)(),t=(0,s.nZ)(),n=t.getSession()||e.getSession();n&&(0,u.RJ)(n),I(),e.setSession(),t.setSession()}function I(){const e=(0,s.aF)(),t=(0,s.nZ)(),n=(0,s.s3)(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function O(e=!1){e?T():I()}},84629:function(e,t,n){"use strict";n.d(t,{M5:function(){return f},_I:function(){return p},m7:function(){return d},m8:function(){return c},q4:function(){return u},uf:function(){return l}});var r=n(9227),i=n(42562),o=n(24806),a=n(62066);const s=[];function c(e){const t=e.defaultIntegrations||[],n=e.integrations;let i;t.forEach((e=>{e.isDefaultInstance=!0})),i=Array.isArray(n)?[...t,...n]:"function"===typeof n?(0,r.lE)(n(t)):t;const o=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.values(t)}(i),a=o.findIndex((e=>"Debug"===e.name));if(a>-1){const[e]=o.splice(a,1);o.push(e)}return o}function u(e,t){const n={};return t.forEach((t=>{t&&d(e,t,n)})),n}function l(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function d(e,t,n){if(n[t.name])a.X&&i.kg.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===s.indexOf(t.name)&&"function"===typeof t.setupOnce&&(t.setupOnce(),s.push(t.name)),t.setup&&"function"===typeof t.setup&&t.setup(e),"function"===typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if("function"===typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}a.X&&i.kg.log(`Integration installed: ${t.name}`)}}function f(e){const t=(0,o.s3)();t?t.addIntegration(e):a.X&&i.kg.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function p(e){return e}},534:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=n(42562),i=n(20290),o=n(84629),a=n(62066);const s=(0,o._I)((()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!u(e,t))return!1;if(!c(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=l(t),r=l(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!u(e,t))return!1;if(!c(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return a.X&&r.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return e=t}}}));function c(e,t){let n=(0,i.Fr)(e),r=(0,i.Fr)(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,r=r,r.length!==n.length)return!1;for(let i=0;i({name:"FunctionToString",setupOnce(){a=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,r.HK)(this),n=s.has((0,i.s3)())&&void 0!==t?t:this;return a.apply(n,e)}}catch(e){}},setup(e){s.set(e,!0)}})))},33241:function(e,t,n){"use strict";n.d(t,{S:function(){return u}});var r=n(42562),i=n(9227),o=n(27202),a=n(62066),s=n(84629);const c=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],u=(0,s._I)(((e={})=>({name:"InboundFilters",processEvent(t,n,s){const u=s.getOptions(),d=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:c],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,u);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}(e))return a.X&&r.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,i.jH)(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(r){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));return t}(e).some((e=>(0,o.U0)(e,t)))}(e,t.ignoreErrors))return a.X&&r.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,i.jH)(e)}`),!0;if(function(e){if(e.type)return!1;if(!e.exception||!e.exception.values||0===e.exception.values.length)return!1;return!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(e))return a.X&&r.kg.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,i.jH)(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&(0,o.U0)(n,t)}(e,t.ignoreTransactions))return a.X&&r.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,i.jH)(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=l(e);return!!n&&(0,o.U0)(n,t)}(e,t.denyUrls))return a.X&&r.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,i.jH)(e)}.\nUrl: ${l(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=l(e);return!n||(0,o.U0)(n,t)}(e,t.allowUrls))return a.X&&r.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,i.jH)(e)}.\nUrl: ${l(e)}`),!0;return!1}(t,d)?null:t}})));function l(e){try{let n;try{n=e.exception.values[0].stacktrace.frames}catch(t){}return n?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(n){return a.X&&r.kg.error(`Cannot extract url for event ${(0,i.jH)(e)}`),null}}},36204:function(e,t,n){"use strict";function r(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const t=e[r];"."===t?e.splice(r,1):".."===t?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}n.d(t,{v:function(){return l}});const i=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function o(e){const t=e.length>1024?`${e.slice(-1024)}`:e,n=i.exec(t);return n?n.slice(1):[]}function a(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=r(t.split("/").filter((e=>!!e)),!n).join("/"),(n?"/":"")+t||"."}function s(e){let t=0;for(;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}var c=n(84756),u=n(84629);const l=(0,u._I)(((e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in c.n&&void 0!==c.n.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),c=/^\//.test(r.filename);if(e){if(t){const e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||c){const e=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,c=t?function(e,t){e=a(e).slice(1),t=a(t).slice(1);const n=s(e.split("/")),r=s(t.split("/")),i=Math.min(n.length,r.length);let o=i;for(let a=0;a{return{...e,...e.stacktrace&&{stacktrace:(t=e.stacktrace,{...t,frames:t&&t.frames&&t.frames.map((e=>i(e)))})}};var t}))}}}catch(t){return e}}(t)),t}}}))},13628:function(e,t,n){"use strict";n.d(t,{V:function(){return o},y:function(){return i}});var r=n(27575);function i(e){const t=e._sentryMetrics;if(!t)return;const n={};for(const[,[i,o]]of t){(n[i]||(n[i]=[])).push((0,r.Jr)(o))}return n}function o(e,t,n,r,i,o,a){const s=e._sentryMetrics||(e._sentryMetrics=new Map),c=`${t}:${n}@${i}`,u=s.get(a);if(u){const[,e]=u;s.set(a,[c,{min:Math.min(e.min,r),max:Math.max(e.max,r),count:e.count+=1,sum:e.sum+=r,tags:e.tags}])}else s.set(a,[c,{min:r,max:r,count:1,sum:r,tags:o}])}},10017:function(e,t,n){"use strict";n.d(t,{s:function(){return d}});var r=n(89181),i=n(90759),o=n(30554),a=n(9227),s=n(42562),c=n(72271),u=n(95383);class l{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=(0,r.Q)()}clone(){const e=new l;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,u.D)(e,(0,u.Y)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,c.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"===typeof e?e(this):e,[n,r]=t instanceof d?[t.getScopeData(),t.getRequestSession()]:(0,i.PO)(t)?[e,e.requestSession]:[],{tags:o,extra:a,user:s,contexts:c,level:u,fingerprint:l=[],propagationContext:f}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...a},this._contexts={...this._contexts,...c},s&&Object.keys(s).length&&(this._user=s),u&&(this._level=u),l.length&&(this._fingerprint=l),f&&(this._propagationContext=f),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,(0,u.D)(this,void 0),this._attachments=[],this._propagationContext=(0,r.Q)(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"===typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,o.yW)(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,u.Y)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:(0,a.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:(0,a.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,a.DM)();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(s.kg.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const d=l},84890:function(e,t,n){"use strict";n.d(t,{K:function(){return s},M:function(){return a}});var r=n(42562),i=n(24806),o=n(62066);function a(e,t){!0===t.debug&&(o.X?r.kg.enable():(0,r.Cf)((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));(0,i.nZ)().update(t.initialScope);const n=new e(t);s(n),n.init()}function s(e){(0,i.nZ)().setClient(e)}},12911:function(e,t,n){"use strict";n.d(t,{$J:function(){return o},E1:function(){return c},JQ:function(){return d},S3:function(){return a},TE:function(){return i},Wb:function(){return u},Zj:function(){return r},ju:function(){return s},p6:function(){return l}});const r="sentry.source",i="sentry.sample_rate",o="sentry.op",a="sentry.origin",s="sentry.idle_span_finish_reason",c="sentry.measurement_unit",u="sentry.measurement_value",l="sentry.profile_id",d="sentry.exclusive_time"},72271:function(e,t,n){"use strict";n.d(t,{CT:function(){return s},Hv:function(){return a},RJ:function(){return c}});var r=n(30554),i=n(9227),o=n(27575);function a(e){const t=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,o.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"===typeof e.did||"string"===typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&s(n,e),n}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,r.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"===typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"===typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function c(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},8840:function(e,t,n){"use strict";n.d(t,{Lh:function(){return l},_l:function(){return d},jC:function(){return f},uc:function(){return p}});var r=n(27575),i=n(6911),o=n(72189),a=n(24806),s=n(12911),c=n(50304);const u="_frozenDsc";function l(e,t){const n=e;(0,r.xp)(n,u,t)}function d(e,t){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},a=(0,r.Jr)({environment:n.environment||o.J,release:n.release,public_key:i,trace_id:e});return t.emit("createDsc",a),a}function f(e){const t=(0,a.s3)();if(!t)return{};const n=d((0,c.XU)(e).trace_id||"",t),r=(0,c.Gx)(e),o=r._frozenDsc;if(o)return o;const u=r.spanContext().traceState,l=u&&u.get("sentry.dsc"),f=l&&(0,i.EN)(l);if(f)return f;const p=(0,c.XU)(r),h=p.data||{},m=h[s.TE];null!=m&&(n.sample_rate=`${m}`);const g=h[s.Zj],y=p.description;return"url"!==g&&y&&(n.transaction=y),n.sampled=String((0,c.Tt)(r)),t.emit("createDsc",n,r),n}function p(e){const t=f(e);return(0,i.IQ)(t)}},2944:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var r=n(34995),i=n(421),o=n(42562),a=n(62066),s=n(50304),c=n(80924);let u=!1;function l(){u||(u=!0,(0,r.V)(d),(0,i.h)(d))}function d(){const e=(0,s.HN)(),t=e&&(0,s.Gx)(e);if(t){const e="internal_error";a.X&&o.kg.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:c.jt,message:e})}}d.tag="sentry_tracingErrorCallback"},6837:function(e,t,n){"use strict";n.d(t,{l:function(){return a},o:function(){return o}});var r=n(12911),i=n(50304);function o(e,t,n){const o=(0,i.HN)(),a=o&&(0,i.Gx)(o);a&&a.addEvent(e,{[r.Wb]:t,[r.E1]:n})}function a(e){if(!e||0===e.length)return;const t={};return e.forEach((e=>{const n=e.attributes||{},i=n[r.E1],o=n[r.Wb];"string"===typeof i&&"number"===typeof o&&(t[e.name]={value:o,unit:i})})),t}},27619:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(9227),i=n(50304);class o{constructor(e={}){this._traceId=e.traceId||(0,r.DM)(),this._spanId=e.spanId||(0,r.DM)().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:i.ve}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}}},80924:function(e,t,n){"use strict";n.d(t,{OP:function(){return i},Q0:function(){return s},ix:function(){return a},jt:function(){return o},pq:function(){return r}});const r=0,i=1,o=2;function a(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"};default:return{code:o,message:"internal_error"}}return{code:o,message:"unknown_error"}}function s(e,t){e.setAttribute("http.response.status_code",t);const n=a(t);"unknown_error"!==n.message&&e.setStatus(n)}},20386:function(e,t,n){"use strict";n.d(t,{yn:function(){return L},qp:function(){return P},Iw:function(){return F},GK:function(){return N},V0:function(){return D},_d:function(){return M}});var r=n(57976),i=n(89181),o=n(42562),a=n(49101),s=n(24806),c=n(84739),u=n(62066),l=n(12911),d=n(39850),f=n(1932),p=n(95383),h=n(50304),m=n(8840);var g=n(25360);var y=n(27619),v=n(9227),_=n(30554),b=n(27575),S=n(54077),w=n(13628),k=n(6837);const x="_sentryScope",E="_sentryIsolationScope";function C(e){return{scope:e._sentryScope,isolationScope:e._sentryIsolationScope}}class T{constructor(e={}){this._traceId=e.traceId||(0,v.DM)(),this._spanId=e.spanId||(0,v.DM)().substring(16),this._startTime=e.startTimestamp||(0,_.ph)(),this._attributes={},this.setAttributes({[l.S3]:"manual",[l.$J]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?h.i0:h.ve}}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}updateStartTime(e){this._startTime=(0,h.$k)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=(0,h.$k)(e),function(e){if(!u.X)return;const{description:t="< unknown name >",op:n="< unknown op >"}=(0,h.XU)(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${(0,h.Gx)(e)===e?"root ":""}span "${t}" with ID ${r}`;o.kg.log(i)}(this),this._onSpanEnded())}getSpanJSON(){return(0,b.Jr)({data:this._attributes,description:this._name,op:this._attributes[l.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,h._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[l.S3],_metrics_summary:(0,w.y)(this),profile_id:this._attributes[l.p6],exclusive_time:this._attributes[l.JQ],measurements:(0,k.l)(this._events),is_segment:this._isStandaloneSpan&&(0,h.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,h.Gx)(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){u.X&&o.kg.log("[Tracing] Adding an event to span:",e);const r=I(t)?t:n||(0,_.ph)(),i=I(t)?{}:t||{},a={name:e,time:(0,h.$k)(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=(0,s.s3)();e&&e.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===(0,h.Gx)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=(0,s.s3)();if(!t)return;const n=e[1];if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");const r=t.getTransport();r&&r.send(e).then(null,(e=>{u.X&&o.kg.error("Error while sending span:",e)}))}((0,S.uE)([this],e)):(u.X&&o.kg.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();if(t){(C(this).scope||(0,s.nZ)()).captureEvent(t)}}_convertSpanToTransaction(){if(!O((0,h.XU)(this)))return;this._name||(u.X&&o.kg.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:e,isolationScope:t}=C(this),n=(e||(0,s.nZ)()).getClient()||(0,s.s3)();if(!0!==this._sampled)return u.X&&o.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const r=(0,h.Dp)(this).filter((e=>e!==this&&!function(e){return e instanceof T&&e.isStandaloneSpan()}(e))).map((e=>(0,h.XU)(e))).filter(O),i=this._attributes[l.Zj],a={contexts:{trace:(0,h.HR)(this)},spans:r.length>1e3?r.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...(0,b.Jr)({dynamicSamplingContext:(0,m.jC)(this)})},_metrics_summary:(0,w.y)(this),...i&&{transaction_info:{source:i}}},c=(0,k.l)(this._events);return c&&Object.keys(c).length&&(u.X&&o.kg.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),a.measurements=c),a}}function I(e){return e&&"number"===typeof e||e instanceof Date||Array.isArray(e)}function O(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}var A=n(80924);const R="__SENTRY_SUPPRESS_TRACING__";function N(e,t){const n=B();if(n.startSpan)return n.startSpan(e,t);const r=U(e),{forceTransaction:i,parentSpan:o}=e;return(0,s.$e)(e.scope,(()=>q(o)((()=>{const n=(0,s.nZ)(),o=z(n),a=e.onlyIfParent&&!o?new y.b:j({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return(0,p.D)(n,a),(0,d.i)((()=>t(a)),(()=>{const{status:e}=(0,h.XU)(a);!a.isRecording()||e&&"ok"!==e||a.setStatus({code:A.jt,message:"internal_error"})}),(()=>a.end()))}))))}function D(e,t){const n=B();if(n.startSpanManual)return n.startSpanManual(e,t);const r=U(e),{forceTransaction:i,parentSpan:o}=e;return(0,s.$e)(e.scope,(()=>q(o)((()=>{const n=(0,s.nZ)(),o=z(n),a=e.onlyIfParent&&!o?new y.b:j({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});function c(){a.end()}return(0,p.D)(n,a),(0,d.i)((()=>t(a,c)),(()=>{const{status:e}=(0,h.XU)(a);!a.isRecording()||e&&"ok"!==e||a.setStatus({code:A.jt,message:"internal_error"})}))}))))}function P(e){const t=B();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=U(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>(0,s.$e)(e.scope,t):i?e=>M(i,e):e=>e())((()=>{const t=(0,s.nZ)(),i=z(t);return e.onlyIfParent&&!i?new y.b:j({parentSpan:i,spanArguments:n,forceTransaction:r,scope:t})}))}const L=({sentryTrace:e,baggage:t},n)=>(0,s.$e)((i=>{const o=(0,r.pT)(e,t);return i.setPropagationContext(o),n()}));function M(e,t){const n=B();return n.withActiveSpan?n.withActiveSpan(e,t):(0,s.$e)((n=>((0,p.D)(n,e||void 0),t(n))))}function F(e){return(0,s.$e)((t=>(t.setPropagationContext((0,i.Q)()),u.X&&o.kg.info(`Starting a new trace with id ${t.getPropagationContext().traceId}`),M(null,e))))}function j({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!(0,f.z)())return new y.b;const i=(0,s.aF)();let a;if(e&&!n)a=function(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[R]&&(0,h.Tt)(e),a=o?new T({...n,parentSpanId:r,traceId:i,sampled:o}):new y.b({traceId:i});(0,h.j5)(e,a);const c=(0,s.s3)();c&&(c.emit("spanStart",a),n.endTimestamp&&c.emit("spanEnd",a));return a}(e,r,t),(0,h.j5)(e,a);else if(e){const n=(0,m.jC)(e),{traceId:i,spanId:o}=e.spanContext(),s=(0,h.Tt)(e);a=$({traceId:i,parentSpanId:o,...t},r,s),(0,m.Lh)(a,n)}else{const{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};a=$({traceId:e,parentSpanId:o,...t},r,s),n&&(0,m.Lh)(a,n)}return function(e){if(!u.X)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,h.XU)(e),{spanId:i}=e.spanContext(),a=(0,h.Tt)(e),s=(0,h.Gx)(e),c=s===e,l=`[Tracing] Starting ${a?"sampled":"unsampled"} ${c?"root ":""}span`,d=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&d.push(`parent ID: ${r}`),!c){const{op:e,description:t}=(0,h.XU)(s);d.push(`root ID: ${s.spanContext().spanId}`),e&&d.push(`root op: ${e}`),t&&d.push(`root description: ${t}`)}o.kg.log(`${l}\n ${d.join("\n ")}`)}(a),function(e,t,n){e&&((0,b.xp)(e,E,n),(0,b.xp)(e,x,t))}(a,r,i),a}function U(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=(0,h.$k)(e.startTime),delete n.startTime,n}return t}function B(){const e=(0,a.c)();return(0,c.G)(e)}function $(e,t,n){const r=(0,s.s3)(),i=r&&r.getOptions()||{},{name:a="",attributes:c}=e,[d,p]=t.getScopeData().sdkProcessingMetadata[R]?[!1]:function(e,t){if(!(0,f.z)(e))return[!1];let n;n="function"===typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:"undefined"!==typeof e.tracesSampleRate?e.tracesSampleRate:1;const r=(0,g.o)(n);return void 0===r?(u.X&&o.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()M(e,t):e=>e()}},15943:function(e,t,n){"use strict";n.d(t,{q:function(){return l}});var r=n(35602),i=n(9425);function o(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(o){if(!(void 0===e||t.lengthn(a))).then(null,(()=>n(a).then(null,(()=>{})))),a},drain:function(e){return new i.cW(((n,r)=>{let o=t.length;if(!o)return n(!0);const a=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,i.WD)(e).then((()=>{--o||(clearTimeout(a),n(!0))}),r)}))}))}}}var a=n(97259),s=n(37699),c=n(42562),u=n(62066);function l(e,t,n=o(e.bufferSize||64)){let l={};return{send:function(o){const f=[];if((0,a.gv)(o,((t,n)=>{const r=(0,a.mL)(n);if((0,s.Q)(l,r)){const i=d(t,n);e.recordDroppedEvent("ratelimit_backoff",r,i)}else f.push(t)})),0===f.length)return(0,i.WD)({});const p=(0,a.Jd)(o[0],f),h=t=>{(0,a.gv)(p,((n,r)=>{const i=d(n,r);e.recordDroppedEvent(t,(0,a.mL)(r),i)}))};return n.add((()=>t({body:(0,a.V$)(p)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&u.X&&c.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),l=(0,s.WG)(l,e),e)),(e=>{throw h("network_error"),e})))).then((e=>e),(e=>{if(e instanceof r.b)return u.X&&c.kg.error("Skipped sending event because buffer is full."),h("queue_overflow"),(0,i.WD)({});throw e}))},flush:e=>n.drain(e)}}function d(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}},39850:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(90759);function i(e,t,n=(()=>{})){let i;try{i=e()}catch(o){throw t(o),n(),o}return function(e,t,n){if((0,r.J8)(e))return e.then((e=>(n(),e)),(e=>{throw t(e),n(),e}));return n(),e}(i,t,n)}},1932:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(24806);function i(e){if("boolean"===typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||function(){const e=(0,r.s3)();return e&&e.getOptions()}();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)}},25360:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(42562),i=n(62066);function o(e){if("boolean"===typeof e)return Number(e);const t="string"===typeof e?parseFloat(e):e;if(!("number"!==typeof t||isNaN(t)||t<0||t>1))return t;i.X&&r.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}},77042:function(e,t,n){"use strict";n.d(t,{U0:function(){return x},R:function(){return w}});var r=n(9227),i=n(30554),o=n(27202),a=n(84756),s=n(81895),c=n(72189),u=n(24806),l=n(9425),d=n(42562),f=n(90759),p=n(62066);function h(e,t,n,r=0){return new l.cW(((i,o)=>{const a=e[r];if(null===t||"function"!==typeof a)i(t);else{const s=a({...t},n);p.X&&a.id&&null===s&&d.kg.log(`Event processor "${a.id}" dropped event`),(0,f.J8)(s)?s.then((t=>h(e,t,n,r+1).then(i))).then(null,o):h(e,s,n,r+1).then(i).then(null,o)}}))}var m=n(10017),g=n(27575),y=n(8840),v=n(50304);function _(e,t){const{fingerprint:n,span:i,breadcrumbs:o,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,c=(0,g.Jr)(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=(0,g.Jr)(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const l=(0,g.Jr)(i);l&&Object.keys(l).length&&(e.user={...l,...e.user});const d=(0,g.Jr)(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts});a&&(e.level=a);s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),i&&function(e,t){e.contexts={trace:(0,v.wy)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,y.jC)(t),...e.sdkProcessingMetadata};const n=(0,v.Gx)(t),r=(0,v.XU)(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,i),function(e,t){e.fingerprint=e.fingerprint?(0,r.lE)(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function b(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:f,transactionName:p,span:h}=t;S(e,"extra",n),S(e,"tags",r),S(e,"user",i),S(e,"contexts",o),S(e,"sdkProcessingMetadata",s),a&&(e.level=a),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function S(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function w(e,t,n,l,d,f){const{normalizeDepth:p=3,normalizeMaxBreadth:g=1e3}=e,y={...t,event_id:t.event_id||n.event_id||(0,r.DM)(),timestamp:t.timestamp||(0,i.yW)()},v=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:c.J);void 0===e.release&&void 0!==r&&(e.release=r);void 0===e.dist&&void 0!==i&&(e.dist=i);e.message&&(e.message=(0,o.$G)(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,o.$G)(s.value,a));const u=e.request;u&&u.url&&(u.url=(0,o.$G)(u.url,a))}(y,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(y,v),void 0===t.type&&function(e,t){const n=a.n._sentryDebugIds;if(!n)return;let r;const i=k.get(t);i?r=i:(r=new Map,k.set(t,r));const o=Object.entries(n).reduce(((e,[n,i])=>{let o;const a=r.get(n);a?o=a:(o=t(n),r.set(n,o));for(let t=o.length-1;t>=0;t--){const n=o[t];if(n.filename){e[n.filename]=i;break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=o[e.filename])}))}))}catch(s){}}(y,e.stackParser);const S=function(e,t){if(!t)return e;const n=e?e.clone():new m.s;return n.update(t),n}(l,n.captureContext);n.mechanism&&(0,r.EG)(y,n.mechanism);const w=d?d.getEventProcessors():[],x=(0,u.lW)().getScopeData();if(f){b(x,f.getScopeData())}if(S){b(x,S.getScopeData())}const E=[...n.attachments||[],...x.attachments];E.length&&(n.attachments=E),_(y,x);return h([...w,...x.eventProcessors],y,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(r){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}(e),"number"===typeof p&&p>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:(0,s.Fv)(e.data,t,n)}})))},...e.user&&{user:(0,s.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,s.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,s.Fv)(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,s.Fv)(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:(0,s.Fv)(e.data,t,n)}}))));return r}(e,p,g):e)))}const k=new WeakMap;function x(e){if(e)return function(e){return e instanceof m.s||"function"===typeof e}(e)||function(e){return Object.keys(e).some((e=>E.includes(e)))}(e)?{captureContext:e}:e}const E=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},43770:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(40539);function i(e,t,n=[t],i="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${i}:@sentry/${e}`,version:r.J}))),version:r.J}),e._metadata=o}},95383:function(e,t,n){"use strict";n.d(t,{D:function(){return o},Y:function(){return a}});var r=n(27575);const i="_sentrySpan";function o(e,t){t?(0,r.xp)(e,i,t):delete e._sentrySpan}function a(e){return e._sentrySpan}},50304:function(e,t,n){"use strict";n.d(t,{$k:function(){return v},Dp:function(){return T},Gx:function(){return I},HN:function(){return O},HR:function(){return m},Hb:function(){return y},Tt:function(){return S},XU:function(){return b},_4:function(){return w},ed:function(){return C},i0:function(){return h},j5:function(){return E},ve:function(){return p},wy:function(){return g},yc:function(){return A}});var r=n(27575),i=n(57976),o=n(30554),a=n(84739),s=n(49101),c=n(24806),u=n(13628),l=n(12911),d=n(80924),f=n(95383);const p=0,h=1;function m(e){const{spanId:t,traceId:n}=e.spanContext(),{data:i,op:o,parent_span_id:a,status:s,origin:c}=b(e);return(0,r.Jr)({parent_span_id:a,span_id:t,trace_id:n,data:i,op:o,status:s,origin:c})}function g(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:i}=b(e);return(0,r.Jr)({parent_span_id:i,span_id:t,trace_id:n})}function y(e){const{traceId:t,spanId:n}=e.spanContext(),r=S(e);return(0,i.$p)(t,n,r)}function v(e){return"number"===typeof e?_(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?_(e.getTime()):(0,o.ph)()}function _(e){return e>9999999999?e/1e3:e}function b(e){if(function(e){return"function"===typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}(e)){const{attributes:i,startTime:o,name:a,endTime:s,parentSpanId:c,status:d}=e;return(0,r.Jr)({span_id:t,trace_id:n,data:i,description:a,parent_span_id:c,start_timestamp:v(o),timestamp:v(s)||void 0,status:w(d),op:i[l.$J],origin:i[l.S3],_metrics_summary:(0,u.y)(e)})}return{span_id:t,trace_id:n}}catch(t){return{}}}function S(e){const{traceFlags:t}=e.spanContext();return t===h}function w(e){if(e&&e.code!==d.pq)return e.code===d.OP?"ok":e.message||"unknown_error"}const k="_sentryChildSpans",x="_sentryRootSpan";function E(e,t){const n=e._sentryRootSpan||e;(0,r.xp)(t,x,n),e._sentryChildSpans?e._sentryChildSpans.add(t):(0,r.xp)(e,k,new Set([t]))}function C(e,t){e._sentryChildSpans&&e._sentryChildSpans.delete(t)}function T(e){const t=new Set;return function e(n){if(!t.has(n)&&S(n)){t.add(n);const r=n._sentryChildSpans?Array.from(n._sentryChildSpans):[];for(const t of r)e(t)}}(e),Array.from(t)}function I(e){return e._sentryRootSpan||e}function O(){const e=(0,s.c)(),t=(0,a.G)(e);return t.getActiveSpan?t.getActiveSpan():(0,f.Y)((0,c.nZ)())}function A(e,t,n,r,i,o){const a=O();a&&(0,u.V)(a,e,t,n,r,i,o)}},80890:function(e,t,n){"use strict";n.d(t,{E:function(){return _}});var r=n(54279),i=n(41776),o=n(12911),a=n(30554),s=n(62696);function c(e){(0,s.U)((t=>{if(void 0!==t.endTimestamp)return;if("GET"!==t.fetchData.method)return;const n=function(e){if(!e[0]||"object"!==typeof e[0]||void 0===e[0].searchParams)return null;if(!e[1]||"object"!==typeof e[1]||!("headers"in e[1]))return null;try{const t=e[0],n=e[1].headers;return"1"!==n.RSC||"1"===n["Next-Router-Prefetch"]?null:{targetPathname:t.pathname}}catch(t){return null}}(t.args);if(null===n)return;const i=n.targetPathname;(0,r.og)(e,{name:i,attributes:{[o.$J]:"navigation",[o.S3]:"auto.navigation.nextjs.app_router_instrumentation",[o.Zj]:"url"}})}))}var u=n(82414),l=n(42562),d=n(90210),f=n(11163),p=n(87364);const h=f.events?f:f.default,m=i.m9;function g(e){const{route:t,params:n,sentryTrace:i,baggage:s}=function(){let e;const t=m.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(a){p.X&&l.kg.warn("Could not extract __NEXT_DATA__")}if(!e)return{};const n={},{page:r,query:i,props:o}=e;return n.route=r,n.params=i,o&&o.pageProps&&(n.sentryTrace=o.pageProps._sentryTraceData,n.baggage=o.pageProps._sentryBaggage),n}(),c=t||m.location.pathname;(0,r.Wo)(e,{name:c,startTime:a.Z1?a.Z1/1e3:void 0,attributes:{[o.$J]:"pageload",[o.S3]:"auto.pageload.nextjs.pages_router_instrumentation",[o.Zj]:t?"route":"url",...n&&e.getOptions().sendDefaultPii&&{...n}}},{sentryTrace:i,baggage:s})}function y(e){h.events.on("routeChangeStart",(t=>{const n=(0,d.rt)(t),i=function(e){const t=(m.__BUILD_MANIFEST||{}).sortedPages;if(!t)return;return t.find((t=>{const n=function(e){const t=e.split("/");let n="";(0,u.x)([t,"access",e=>e[t.length-1],"optionalAccess",e=>e.match,"call",e=>e(/^\[\[\.\.\..+\]\]$/)])&&(t.pop(),n="(?:/(.+?))?");const r=t.map((e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)"))).join("/");return new RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)}))}(n);let a,s;i?(a=i,s="route"):(a=n,s="url"),(0,r.og)(e,{name:a,attributes:{[o.$J]:"navigation",[o.S3]:"auto.navigation.nextjs.pages_router_instrumentation",[o.Zj]:s}})}))}function v(e){!i.m9.document.getElementById("__NEXT_DATA__")?function(e){(0,r.Wo)(e,{name:i.m9.location.pathname,startTime:a.Z1?a.Z1/1e3:void 0,attributes:{[o.$J]:"pageload",[o.S3]:"auto.pageload.nextjs.app_router_instrumentation",[o.Zj]:"url"}})}(e):g(e)}function _(e={}){const t=(0,r.E8)({...e,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:n=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(e){o&&function(e){i.m9.document.getElementById("__NEXT_DATA__")?y(e):c(e)}(e),t.afterAllSetup(e),n&&v(e)}}}},66479:function(e,t,n){"use strict";n.d(t,{S1:function(){return S},wO:function(){return k}});var r=n(43770),i=n(11027),o=n(1932),a=n(35284),s=n(67294);var c=n(84756),u=n(34155);function l(e){const t=e?u.env.NEXT_PUBLIC_VERCEL_ENV:u.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}var d=n(80890),f=n(82414),p=n(84629),h=n(36204);const m=(0,p._I)((({assetPrefixPath:e})=>({...(0,h.v)({iteratee:t=>{try{const{origin:n}=new URL(t.filename);t.filename=(0,f.x)([t,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(n,"app://"),"access",e=>e.replace,"call",t=>t(e,"")])}catch(n){}return t.filename&&t.filename.startsWith("app:///_next")&&(t.filename=decodeURI(t.filename)),t.filename&&t.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(t.in_app=!1),t}}),name:"NextjsClientStackFrameNormalization"})));var g=n(43854),y=n(42562),v=n(87364);const _=c.n;const b=c.n;function S(e){const t={environment:l(!0)||"production",defaultIntegrations:w(e),...e};!function(e){const t=_.__sentryRewritesTunnelPath__;if(t&&e.dsn){const n=(0,g.U4)(e.dsn);if(!n)return;const r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){const i=r[1],o=r[2];let a=`${t}?o=${i}&p=${n.projectId}`;o&&(a+=`&r=${o}`),e.tunnel=a,v.X&&y.kg.info(`Tunneling events to "${a}"`)}else v.X&&y.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(t),(0,r.V)(t,"nextjs",["nextjs","react"]),function(e){const t={...e};(0,r.V)(t,"react"),(0,i.v)("react",{version:s.version}),(0,a.S1)(t)}(t),(0,i.YA)("runtime","browser");const n=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;n.id="NextClient404Filter",(0,i.Qy)(n)}function w(e){const t=(0,a.nV)(e);("undefined"===typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,o.z)(e)&&t.push((0,d.E)());const n=b.__rewriteFramesAssetPrefixPath__||"";return t.push(m({assetPrefixPath:n})),t}function k(e){return e}},87364:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});const r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},24608:function(e,t,n){"use strict";n.d(t,{R:function(){return R}});var r=n(43854),i=n(42562),o=n(9227),a=n(90759),s=n(9425),c=n(97259),u=n(27575),l=n(35602),d=n(85817),f=n(24806),p=n(62066),h=n(54077),m=n(84629),g=n(72271),y=n(8840),v=n(25360),_=n(77042);const b="Not capturing exception because it's already been captured.";function S(e){return void 0===e.type}function w(e){return"transaction"===e.type}var k=n(43770),x=n(30554);function E(e,t,n){const r=[{type:"client_report"},{timestamp:n||(0,x.yW)(),discarded_events:e}];return(0,c.Jd)(t?{dsn:t}:{},[r])}var C=n(72565),T=n(80149),I=n(56465),O=n(41776),A=n(16728);class R extends class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,r.vK)(e.dsn):p.X&&i.kg.warn("No DSN provided, client will not send events."),this._dsn){const t=(0,d.U)(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){const r=(0,o.DM)();if((0,o.YO)(e))return p.X&&i.kg.log(b),r;const a={event_id:r,...t};return this._process(this.eventFromException(e,a).then((e=>this._captureEvent(e,a,n)))),a.event_id}captureMessage(e,t,n,r){const i={event_id:(0,o.DM)(),...n},s=(0,a.Le)(e)?e:String(e),c=(0,a.pt)(e)?this.eventFromMessage(s,t,i):this.eventFromException(e,i);return this._process(c.then((e=>this._captureEvent(e,i,r)))),i.event_id}captureEvent(e,t,n){const r=(0,o.DM)();if(t&&t.originalException&&(0,o.YO)(t.originalException))return p.X&&i.kg.log(b),r;const a={event_id:r,...t},s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,a,s||n)),a.event_id}captureSession(e){"string"!==typeof e.release?p.X&&i.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,g.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):(0,s.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];(0,m.m7)(this,e,this._integrations),t||(0,m.uf)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=(0,h.Mq)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const i of t.attachments||[])n=(0,c.BO)(n,(0,c.zQ)(i));const r=this.sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=(0,h.Q3)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;p.X&&i.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=(this._outcomes[n]||0)+1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){const n=this._hooks[e];n&&n.forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(p.X&&i.kg.error("Error while sending event:",e),e))):(p.X&&i.kg.error("Transport disabled"),(0,s.WD)({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,m.q4)(this,e),(0,m.uf)(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1;const i=t.exception&&t.exception.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const o="ok"===e.status;(o&&0===e.errors||o&&n)&&((0,g.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new s.cW((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=(0,f.aF)()){const i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,_.R)(i,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:n,spanId:r,parentSpanId:i,dsc:o}=t;e.contexts={trace:(0,u.Jr)({trace_id:n,span_id:r,parent_span_id:i}),...e.contexts};const a=o||(0,y._l)(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(p.X){const t=e;"log"===t.logLevel?i.kg.log(t.message):i.kg.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,o=w(e),c=S(e),u=e.type||"error",d=`before send for type \`${u}\``,f="undefined"===typeof i?void 0:(0,v.o)(i);if(c&&"number"===typeof f&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error",e),(0,s.$2)(new l.b(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const p="replay_event"===u?"replay":u,h=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,h).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",p,e),new l.b("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n){const{beforeSend:r,beforeSendTransaction:i,beforeSendSpan:o}=e;if(S(t)&&r)return r(t,n);if(w(t)){if(t.spans&&o){const e=[];for(const n of t.spans){const t=o(n);t&&e.push(t)}t.spans=e}if(i)return i(t,n)}return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,a.J8)(e))return e.then((e=>{if(!(0,a.PO)(e)&&null!==e)throw new l.b(n);return e}),(e=>{throw new l.b(`${t} rejected with ${e}`)}));if(!(0,a.PO)(e)&&null!==e)throw new l.b(n);return e}(i,d)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",p,e),new l.b(`${d} returned \`null\`, will not send event.`,"log");const i=n&&n.getSession();!o&&i&&this._updateSessionFromEvent(i,r);const a=r.transaction_info;if(o&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof l.b)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new l.b(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}}))}}{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e},n=O.m9.SENTRY_SDK_SOURCE||(0,C.S)();(0,k.V)(t,"browser",["browser"],n),super(t),t.sendClientReports&&O.m9.document&&O.m9.document.addEventListener("visibilitychange",(()=>{"hidden"===O.m9.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return(0,I.dr)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return(0,I.aB)(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(T.X&&i.kg.warn("SDK not enabled, will not capture user feedback."));const t=(0,A.r)(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(T.X&&i.kg.log("No outcomes to send"));if(!this._dsn)return void(T.X&&i.kg.log("No dsn provided, will not send outcomes"));T.X&&i.kg.log("Sending outcomes:",e);const t=E(e,this._options.tunnel&&(0,r.RA)(this._dsn));this.sendEnvelope(t)}}},80149:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});const r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},56465:function(e,t,n){"use strict";n.d(t,{GJ:function(){return u},ME:function(){return y},aB:function(){return g},dr:function(){return m}});var r=n(24806),i=n(81895),o=n(90759),a=n(9227),s=n(9425),c=n(27575);function u(e,t){const n=f(e,t),r={type:t&&t.name,value:h(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function l(e,t,n,a){const s=(0,r.s3)(),c=s&&s.getOptions().normalizeDepth,l=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}return}(t),d={__serialized__:(0,i.Qy)(t,c)};if(l)return{exception:{values:[u(e,l)]},extra:d};const p={exception:{values:[{type:(0,o.cO)(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:_(t,{isUnhandledRejection:a})}]},extra:d};if(n){const t=f(e,n);t.length&&(p.exception.values[0].stacktrace={frames:t})}return p}function d(e,t){return{exception:{values:[u(e,t)]}}}function f(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e&&p.test(e.message))return 1;return 0}(t),i=function(e){if("number"===typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(n,r,i)}catch(o){}return[]}const p=/Minified React error #\d+;/i;function h(e){const t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}function m(e,t,n,r){const i=y(e,t,n&&n.syntheticException||void 0,r);return(0,a.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,s.WD)(i)}function g(e,t,n="info",r,i){const o=v(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),(0,s.WD)(o)}function y(e,t,n,r,i){let s;if((0,o.VW)(t)&&t.error){return d(e,t.error)}if((0,o.TX)(t)||(0,o.fm)(t)){const i=t;if("stack"in t)s=d(e,t);else{const t=i.name||((0,o.TX)(i)?"DOMError":"DOMException"),c=i.message?`${t}: ${i.message}`:t;s=v(e,c,n,r),(0,a.Db)(s,c)}return"code"in i&&(s.tags={...s.tags,"DOMException.code":`${i.code}`}),s}if((0,o.VZ)(t))return d(e,t);if((0,o.PO)(t)||(0,o.cO)(t)){return s=l(e,t,n,i),(0,a.EG)(s,{synthetic:!0}),s}return s=v(e,t,n,r),(0,a.Db)(s,`${t}`,void 0),(0,a.EG)(s,{synthetic:!0}),s}function v(e,t,n,r){const i={};if(r&&n){const r=f(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if((0,o.Le)(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function _(e,{isUnhandledRejection:t}){const n=(0,c.zf)(e),r=t?"promise rejection":"exception";if((0,o.VW)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,o.cO)(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}(e)}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}},41776:function(e,t,n){"use strict";n.d(t,{Wz:function(){return l},m9:function(){return c},re:function(){return f}});var r=n(24806),i=n(11027),o=n(84756),a=n(27575),s=n(9227);const c=o.n;let u=0;function l(){return u>0}function d(){u++,setTimeout((()=>{u--}))}function f(e,t={},n){if("function"!==typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if((0,a.HK)(e))return e}catch(c){return e}const o=function(){const o=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);const r=o.map((e=>f(e,t)));return e.apply(this,r)}catch(a){throw d(),(0,r.$e)((e=>{e.addEventProcessor((e=>(t.mechanism&&((0,s.Db)(e,void 0,void 0),(0,s.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:o},e))),(0,i.Tb)(a)})),a}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}catch(u){}(0,a.$Q)(o,e),(0,a.xp)(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:()=>e.name})}catch(u){}return o}},45023:function(e,t,n){"use strict";n.d(t,{f:function(){return b}});var r=n(94485),i=n(6341),o=n(32319),a=n(84629),s=n(24806),c=n(56860),u=n(47141),l=n(62696),d=n(9227),f=n(42562),p=n(72929),h=n(56295),m=n(27202),g=n(90210),y=n(80149),v=n(41776);const _=1024,b=(0,a._I)(((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&(0,u.e)(function(e){return function(t){if((0,s.s3)()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(0,h.V)(t.level),message:(0,m.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,m.nK)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}(0,c.n)(n,{input:t.args,level:t.level})}}(e)),t.dom&&(0,r.O)(function(e,t){return function(n){if((0,s.s3)()!==e)return;let r,i,o="object"===typeof t?t.serializeAttribute:void 0,a="object"===typeof t&&"number"===typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>_&&(y.X&&f.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=_),"string"===typeof o&&(o=[o]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=(0,p.Rt)(t,{keyAttrs:o,maxStringLength:a}),i=(0,p.iY)(t)}catch(l){r=""}if(0===r.length)return;const u={category:`ui.${n.name}`,message:r};i&&(u.data={"ui.component_name":i}),(0,c.n)(u,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&(0,i.UK)(function(e){return function(t){if((0,s.s3)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[i.xU];if(!n||!r||!o)return;const{method:a,url:u,status_code:l,body:d}=o,f={method:a,url:u,status_code:l},p={xhr:t.xhr,input:d,startTimestamp:n,endTimestamp:r};(0,c.n)({category:"xhr",data:f,type:"http"},p)}}(e)),t.fetch&&(0,l.U)(function(e){return function(t){if((0,s.s3)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const e=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};(0,c.n)({category:"fetch",data:e,level:"error",type:"http"},i)}else{const e=t.response,i={...t.fetchData,status_code:e&&e.status},o={input:t.args,response:e,startTimestamp:n,endTimestamp:r};(0,c.n)({category:"fetch",data:i,type:"http"},o)}}}(e)),t.history&&(0,o.a)(function(e){return function(t){if((0,s.s3)()!==e)return;let n=t.from,r=t.to;const i=(0,g.en)(v.m9.location.href);let o=n?(0,g.en)(n):void 0;const a=(0,g.en)(r);o&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,c.n)({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){(0,s.s3)()===e&&(0,c.n)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,d.jH)(t)},{event:t})}}(e))}}}))},66106:function(e,t,n){"use strict";n.d(t,{t:function(){return c}});var r=n(84629),i=n(27575),o=n(20290),a=n(41776);const s=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],c=(0,r._I)(((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,i.hl)(a.m9,"setTimeout",u),t.setInterval&&(0,i.hl)(a.m9,"setInterval",u),t.requestAnimationFrame&&(0,i.hl)(a.m9,"requestAnimationFrame",l),t.XMLHttpRequest&&"XMLHttpRequest"in a.m9&&(0,i.hl)(XMLHttpRequest.prototype,"send",d);const e=t.eventTarget;if(e){(Array.isArray(e)?e:s).forEach(f)}}}}));function u(e){return function(...t){const n=t[0];return t[0]=(0,a.re)(n,{mechanism:{data:{function:(0,o.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function l(e){return function(t){return e.apply(this,[(0,a.re)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,o.$P)(e)},handled:!1,type:"instrument"}})])}}function d(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"===typeof n[e]&&(0,i.hl)(n,e,(function(t){const n={mechanism:{data:{function:e,handler:(0,o.$P)(t)},handled:!1,type:"instrument"}},r=(0,i.HK)(t);return r&&(n.mechanism.data.handler=(0,o.$P)(r)),(0,a.re)(t,n)}))})),e.apply(this,t)}}function f(e){const t=a.m9,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,i.hl)(n,"addEventListener",(function(t){return function(n,r,i){try{"function"===typeof r.handleEvent&&(r.handleEvent=(0,a.re)(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,o.$P)(r),target:e},handled:!1,type:"instrument"}}))}catch(s){}return t.apply(this,[n,(0,a.re)(r,{mechanism:{data:{function:"addEventListener",handler:(0,o.$P)(r),target:e},handled:!1,type:"instrument"}}),i])}})),(0,i.hl)(n,"removeEventListener",(function(e){return function(t,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(o){}return e.call(this,t,i,r)}})))}},11159:function(e,t,n){"use strict";n.d(t,{k:function(){return m}});var r=n(84629),i=n(24806),o=n(11027),a=n(34995),s=n(421),c=n(90759),u=n(72929),l=n(20290),d=n(42562),f=n(80149),p=n(56465),h=n(41776);const m=(0,r._I)(((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){(0,a.V)((t=>{const{stackParser:n,attachStacktrace:r}=y();if((0,i.s3)()!==e||(0,h.Wz)())return;const{msg:a,url:s,line:d,column:f,error:m}=t,g=function(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},d=s.frames=s.frames||[],f=isNaN(parseInt(r,10))?void 0:r,p=isNaN(parseInt(n,10))?void 0:n,h=(0,c.HD)(t)&&t.length>0?t:(0,u.l4)();0===d.length&&d.push({colno:f,filename:h,function:l.Fi,in_app:!0,lineno:p});return e}((0,p.ME)(n,m||a,void 0,r,!1),s,d,f);g.level="error",(0,o.eN)(g,{originalException:m,mechanism:{handled:!1,type:"onerror"}})}))}(e),g("onerror")),t.onunhandledrejection&&(!function(e){(0,s.h)((t=>{const{stackParser:n,attachStacktrace:r}=y();if((0,i.s3)()!==e||(0,h.Wz)())return;const a=function(e){if((0,c.pt)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}(t),s=(0,c.pt)(a)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(a)}`}]}}:(0,p.ME)(n,a,void 0,r,!0);s.level="error",(0,o.eN)(s,{originalException:a,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),g("onunhandledrejection"))}}}));function g(e){f.X&&d.kg.log(`Global Handler attached: ${e}`)}function y(){const e=(0,i.s3)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}},83553:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var r=n(84629),i=n(41776);const o=(0,r._I)((()=>({name:"HttpContext",preprocessEvent(e){if(!i.m9.navigator&&!i.m9.location&&!i.m9.document)return;const t=e.request&&e.request.url||i.m9.location&&i.m9.location.href,{referrer:n}=i.m9.document||{},{userAgent:r}=i.m9.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:o};e.request=a}})))},6415:function(e,t,n){"use strict";n.d(t,{O:function(){return d}});var r=n(84629),i=n(90759),o=n(27202);function a(e,t,n=250,r,a,c,u){if(!c.exception||!c.exception.values||!u||!(0,i.V9)(u.originalException,Error))return;const l=c.exception.values.length>0?c.exception.values[c.exception.values.length-1]:void 0;var d,f;l&&(c.exception.values=(d=s(e,t,a,u.originalException,r,c.exception.values,l,0),f=n,d.map((e=>(e.value&&(e.value=(0,o.$G)(e.value,f)),e)))))}function s(e,t,n,r,o,a,l,d){if(a.length>=n+1)return a;let f=[...a];if((0,i.V9)(r[o],Error)){c(l,d);const i=e(t,r[o]),a=f.length;u(i,o,a,d),f=s(e,t,n,r[o],o,[i,...f],i,a)}return Array.isArray(r.errors)&&r.errors.forEach(((r,a)=>{if((0,i.V9)(r,Error)){c(l,d);const i=e(t,r),p=f.length;u(i,`errors[${a}]`,p,d),f=s(e,t,n,r,o,[i,...f],i,p)}})),f}function c(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function u(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}var l=n(56465);const d=(0,r._I)(((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){const o=i.getOptions();a(l.GJ,o.stackParser,o.maxValueLength,n,t,e,r)}}}))},35284:function(e,t,n){"use strict";n.d(t,{Eg:function(){return I},Jd:function(){return A},S1:function(){return C},jp:function(){return T},lA:function(){return O},nV:function(){return E}});var r=n(33241),i=n(7169),o=n(534),a=n(84629),s=n(84890),c=n(24806),u=n(11027),l=n(85817),d=n(42562),f=n(36027),p=n(20290),h=n(32319),m=n(24608),g=n(80149),y=n(41776),v=n(45023),_=n(66106),b=n(11159),S=n(83553),w=n(6415),k=n(74012),x=n(35825);function E(e){return[(0,r.S)(),(0,i.C)(),(0,_.t)(),(0,v.f)(),(0,b.k)(),(0,w.O)(),(0,o.R)(),(0,S.s)()]}function C(e={}){const t=function(e={}){return{defaultIntegrations:E(),release:"string"===typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:y.m9.SENTRY_RELEASE&&y.m9.SENTRY_RELEASE.id?y.m9.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0,...e}}(e);if(function(){const e=y.m9,t=e[e.chrome?"chrome":"browser"],n=t&&t.runtime&&t.runtime.id,r=y.m9.location&&y.m9.location.href||"",i=!!n&&y.m9===y.m9.top&&["chrome-extension:","moz-extension:","ms-browser-extension:"].some((e=>r.startsWith(`${e}//`)));return!!n&&!i}())return void(0,d.Cf)((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));g.X&&((0,f.Ak)()||d.kg.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:(0,p.Sq)(t.stackParser||k.Dt),integrations:(0,a.m8)(t),transport:t.transport||x.f};(0,s.M)(m.R,n),t.autoSessionTracking&&function(){if("undefined"===typeof y.m9.document)return void(g.X&&d.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));(0,u.yj)({ignoreDuration:!0}),(0,u.cg)(),(0,h.a)((({from:e,to:t})=>{void 0!==e&&e!==t&&((0,u.yj)({ignoreDuration:!0}),(0,u.cg)())}))}()}function T(e={}){if(!y.m9.document)return void(g.X&&d.kg.error("Global document not defined in showReportDialog call"));const t=(0,c.nZ)(),n=t.getClient(),r=n&&n.getDsn();if(!r)return void(g.X&&d.kg.error("DSN not configured for showReportDialog call"));if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const t=(0,u.eW)();t&&(e.eventId=t)}const i=y.m9.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=(0,l.h)(r,e),e.onLoad&&(i.onload=e.onLoad);const{onClose:o}=e;if(o){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{o()}finally{y.m9.removeEventListener("message",e)}};y.m9.addEventListener("message",e)}const a=y.m9.document.head||y.m9.document.body;a?a.appendChild(i):g.X&&d.kg.error("Not injecting report dialog. No injection point found in HTML")}function I(){}function O(e){e()}function A(e){const t=(0,c.s3)();t&&t.captureUserFeedback(e)}},74012:function(e,t,n){"use strict";n.d(t,{$3:function(){return c},$Q:function(){return d},Dt:function(){return _},HH:function(){return y},NP:function(){return m},R2:function(){return p},d8:function(){return v}});var r=n(20290);function i(e,t,n,i){const o={filename:e,function:""===t?r.Fi:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==i&&(o.colno=i),o}const o=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,a=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,c=[30,e=>{const t=o.exec(e);if(t){const[,e,n,o]=t;return i(e,r.Fi,+n,+o)}const n=a.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=s.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=b(n[1]||r.Fi,n[2]);return i(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],u=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,d=[50,e=>{const t=u.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=l.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||r.Fi;return[n,e]=b(n,e),i(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],f=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,p=[40,e=>{const t=f.exec(e);return t?i(t[2],t[1]||r.Fi,+t[3],t[4]?+t[4]:void 0):void 0}],h=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,m=[10,e=>{const t=h.exec(e);return t?i(t[2],t[3]||r.Fi,+t[1]):void 0}],g=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,y=[20,e=>{const t=g.exec(e);return t?i(t[5],t[3]||t[4]||r.Fi,+t[1],+t[2]):void 0}],v=[c,d],_=(0,r.pE)(...v),b=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:r.Fi,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}},54279:function(e,t,n){"use strict";n.d(t,{E8:function(){return Q},og:function(){return J},Wo:function(){return Y}});var r=n(50304),i=n(20386),o=n(12911),a=n(6837),s=n(30554),c=n(72929),u=n(42562),l=n(90210),d=n(65387),f=n(67515),p=n(34374);function h(e){return"number"===typeof e&&isFinite(e)}function m(e,t,n,{...o}){const a=(0,r.XU)(e).start_timestamp;return a&&a>t&&"function"===typeof e.updateStartTime&&e.updateStartTime(t),(0,i._d)(e,(()=>{const e=(0,i.qp)({startTime:t,...o});return e&&e.end(n),e}))}function g(){return f.m&&f.m.addEventListener&&f.m.performance}function y(e){return e/1e3}var v=n(34880),_=n(59057);let b,S,w=0,k={};function x(){const e=g();if(e&&s.Z1){e.mark&&f.m.performance.mark("sentry-tracing-init");const t=(0,p.to)((({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=y(s.Z1),r=y(t.startTime);d.X&&u.kg.log("[Measurements] Adding FID"),k.fid={value:e.value,unit:"millisecond"},k["mark.fid"]={value:n+r,unit:"second"}})),n=(0,p.PR)((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(d.X&&u.kg.log("[Measurements] Adding CLS"),k.cls={value:e.value,unit:""},S=t)}),!0),r=(0,p.$A)((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(d.X&&u.kg.log("[Measurements] Adding LCP"),k.lcp={value:e.value,unit:"millisecond"},b=t)}),!0),i=(0,p._4)((({metric:e})=>{e.entries[e.entries.length-1]&&(d.X&&u.kg.log("[Measurements] Adding TTFB"),k.ttfb={value:e.value,unit:"millisecond"})}));return()=>{t(),n(),r(),i()}}return()=>{}}function E(e){const t=g();if(!t||!f.m.performance.getEntries||!s.Z1)return;d.X&&u.kg.log("[Tracing] Adding & adjusting spans using Performance API");const n=y(s.Z1),i=t.getEntries(),{op:p,start_timestamp:x}=(0,r.XU)(e);if(i.slice(w).forEach((t=>{const r=y(t.startTime),i=y(t.duration);if(!("navigation"===p&&x&&n+r{C(e,t,r,n)})),C(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),C(e,t,"fetch",n,"cache","domainLookupStart"),C(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(m(e,n+y(t.requestStart),n+y(t.responseEnd),{op:"browser",name:"request",attributes:{[o.S3]:"auto.ui.browser.metrics"}}),m(e,n+y(t.responseStart),n+y(t.responseEnd),{op:"browser",name:"response",attributes:{[o.S3]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,t,n);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i){const a=i+n;m(e,a,a+r,{name:t.name,op:t.entryType,attributes:{[o.S3]:"auto.resource.browser.metrics"}})}(e,t,r,i,n);const a=(0,_.Y)(),s=t.startTime{const t=k[e];if(!t||!x||n>=x)return;const r=t.value,i=n+y(r),o=Math.abs(1e3*(i-x)),a=o-r;d.X&&u.kg.log(`[Measurements] Normalized ${e} from ${r} to ${o} (${a})`),t.value=o}));const t=k["mark.fid"];t&&k.fid&&(m(e,t.value,t.value+y(k.fid.value),{name:"first input delay",op:"ui.action",attributes:{[o.S3]:"auto.ui.browser.metrics"}}),delete k["mark.fid"]),"fcp"in k||delete k.cls,Object.entries(k).forEach((([e,t])=>{(0,a.o)(e,t.value,t.unit)})),function(e){b&&(d.X&&u.kg.log("[Measurements] Adding LCP Data"),b.element&&e.setAttribute("lcp.element",(0,c.Rt)(b.element)),b.id&&e.setAttribute("lcp.id",b.id),b.url&&e.setAttribute("lcp.url",b.url.trim().slice(0,200)),e.setAttribute("lcp.size",b.size));S&&S.sources&&(d.X&&u.kg.log("[Measurements] Adding CLS Data"),S.sources.forEach(((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,c.Rt)(t.node)))))}(e)}b=void 0,S=void 0,k={}}function C(e,t,n,r,i,a){const s=a?t[a]:t[`${n}End`],c=t[`${n}Start`];c&&s&&m(e,r+y(c),r+y(s),{op:"browser",name:i||n,attributes:{[o.S3]:"auto.ui.browser.metrics"}})}function T(e,t,n,r){const i=t[n];null!=i&&i<2147483647&&(e[r]=i)}var I=n(24806),O=n(27575);const A=[],R=new Map;function N(){if(g()&&s.Z1){const e=(0,p.YF)((({metric:e})=>{const t=(0,I.s3)();if(!t||void 0==e.value)return;const n=e.entries.find((t=>t.duration===e.value&&D[t.name]));if(!n)return;const{interactionId:a}=n,u=D[n.name],l=t.getOptions(),d=y(s.Z1+n.startTime),f=y(e.value),p=(0,I.nZ)(),h=(0,r.HN)(),m=h?(0,r.Gx)(h):void 0,g=(null!=a?R.get(a):void 0)||(m?(0,r.XU)(m).description:p.getScopeData().transactionName),v=p.getUser(),_=t.getIntegrationByName("Replay"),b=_&&_.getReplayId(),S=void 0!==v?v.email||v.id||v.ip_address:void 0;let w;try{w=p.getScopeData().contexts.profile.profile_id}catch(C){}const k=(0,c.Rt)(n.target),x=(0,O.Jr)({release:l.release,environment:l.environment,transaction:g,[o.JQ]:e.value,[o.S3]:"auto.http.browser.inp",user:S||void 0,profile_id:w||void 0,replay_id:b||void 0}),E=(0,i.qp)({name:k,op:`ui.interaction.${u}`,attributes:x,startTime:d,experimental:{standalone:!0}});E.addEvent("inp",{[o.E1]:"millisecond",[o.Wb]:e.value}),E.end(d+f)}));return()=>{e()}}return()=>{}}const D={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};var P=n(32319),L=n(62066),M=n(1932),F=n(95383),j=n(27619),U=n(80924);const B={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function $(e,t={}){const n=new Map;let a,c=!1,l="externalFinish",d=!t.disableAutoFinish;const{idleTimeout:f=B.idleTimeout,finalTimeout:p=B.finalTimeout,childSpanTimeout:h=B.childSpanTimeout,beforeSpanEnd:m}=t,g=(0,I.s3)();if(!g||!(0,M.z)())return new j.b;const y=(0,I.nZ)(),v=(0,r.HN)(),_=function(e){const t=(0,i.qp)(e);return(0,F.D)((0,I.nZ)(),t),L.X&&u.kg.log("[Tracing] Started span is an idle span"),t}(e);function b(){a&&(clearTimeout(a),a=void 0)}function S(e){b(),a=setTimeout((()=>{!c&&0===n.size&&d&&(l="idleTimeout",_.end(e))}),f)}function w(e){a=setTimeout((()=>{!c&&d&&(l="heartbeatFailed",_.end(e))}),h)}function k(e){c=!0,n.clear(),(0,F.D)(y,v);const t=(0,r.XU)(_),{start_timestamp:i}=t;if(!i)return;(t.data||{})[o.ju]||_.setAttribute(o.ju,l),u.kg.log(`[Tracing] Idle span "${t.op}" finished`);const a=(0,r.Dp)(_).filter((e=>e!==_));let s=0;a.forEach((t=>{t.isRecording()&&(t.setStatus({code:U.jt,message:"cancelled"}),t.end(e),L.X&&u.kg.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=(0,r.XU)(t),{timestamp:i=0,start_timestamp:o=0}=n,a=o<=e,c=i-o<=(p+f)/1e3;if(L.X){const e=JSON.stringify(t,void 0,2);a?c||u.kg.log("[Tracing] Discarding span since it finished after idle span final timeout",e):u.kg.log("[Tracing] Discarding span since it happened after idle span was finished",e)}c&&a||((0,r.ed)(_,t),s++)})),s>0&&_.setAttribute("sentry.idle_span_discarded_spans",s)}return _.end=new Proxy(_.end,{apply(e,t,n){m&&m(_);const[i,...o]=n,a=i||(0,s.ph)(),c=(0,r.$k)(a),u=(0,r.Dp)(_).filter((e=>e!==_));if(!u.length)return k(c),Reflect.apply(e,t,[c,...o]);const l=u.map((e=>(0,r.XU)(e).timestamp)).filter((e=>!!e)),d=l.length?Math.max(...l):void 0,f=(0,r.XU)(_).start_timestamp,h=Math.min(f?f+p/1e3:1/0,Math.max(f||-1/0,Math.min(c,d||1/0)));return k(h),Reflect.apply(e,t,[h,...o])}}),g.on("spanStart",(e=>{if(c||e===_||(0,r.XU)(e).timestamp)return;var t;(0,r.Dp)(_).includes(e)&&(t=e.spanContext().spanId,b(),n.set(t,!0),w((0,s.ph)()+h/1e3))})),g.on("spanEnd",(e=>{var t;c||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&S((0,s.ph)()+f/1e3))})),g.on("idleSpanEnableAutoFinish",(e=>{e===_&&(d=!0,S(),n.size&&w())})),t.disableAutoFinish||S(),setTimeout((()=>{c||(_.setStatus({code:U.jt,message:"deadline_exceeded"}),l="finalTimeout",_.end())}),p),_}var z=n(2944),q=n(8840),H=n(57976),V=n(89181),W=n(80149),G=n(41776);var Z=n(82600);const X={...B,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!0,_experiments:{},...Z.k3},Q=(e={})=>{(0,z.a)();const{enableInp:t,enableLongTask:n,_experiments:{enableInteractions:a},beforeStartSpan:l,idleTimeout:d,finalTimeout:f,childSpanTimeout:h,markBackgroundSpan:m,traceFetch:g,traceXHR:v,shouldCreateSpanForRequest:_,enableHTTPTimings:b,instrumentPageLoad:S,instrumentNavigation:w}={...X,...e},k=x();t&&N(),n&&(0,p._j)("longtask",(({entries:e})=>{for(const t of e){if(!(0,r.HN)())return;const e=y(s.Z1+t.startTime),n=y(t.duration),a=(0,i.qp)({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[o.S3]:"auto.ui.browser.metrics"}});a&&a.end(e+n)}})),a&&(0,p._j)("event",(({entries:e})=>{for(const t of e){if(!(0,r.HN)())return;if("click"===t.name){const e=y(s.Z1+t.startTime),n=y(t.duration),r={name:(0,c.Rt)(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[o.S3]:"auto.ui.browser.metrics"}},a=(0,c.iY)(t.target);a&&(r.attributes["ui.component_name"]=a);const u=(0,i.qp)(r);u&&u.end(e+n)}}}));const C={name:void 0,source:void 0};function T(e,t){const n="pageload"===t.op,r=l?l(t):t,i=r.attributes||{};t.name!==r.name&&(i[o.Zj]="custom",r.attributes=i),C.name=r.name,C.source=i[o.Zj];const a=$(r,{idleTimeout:d,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:n,beforeSpanEnd:e=>{k(),E(e)}});function s(){["interactive","complete"].includes(G.m9.document.readyState)&&e.emit("idleSpanEnableAutoFinish",a)}return n&&G.m9.document&&(G.m9.document.addEventListener("readystatechange",(()=>{s()})),s()),a}return{name:"BrowserTracing",afterAllSetup(e){let n,i=G.m9.location&&G.m9.location.href;e.on("startNavigationSpan",(t=>{(0,I.s3)()===e&&(n&&(W.X&&u.kg.log(`[Tracing] Finishing current root span with op: ${(0,r.XU)(n).op}`),n.end()),n=T(e,{op:"navigation",...t}))})),e.on("startPageLoadSpan",((t,i={})=>{if((0,I.s3)()!==e)return;n&&(W.X&&u.kg.log(`[Tracing] Finishing current root span with op: ${(0,r.XU)(n).op}`),n.end());const o=i.sentryTrace||K("sentry-trace"),a=i.baggage||K("baggage"),s=(0,H.pT)(o,a);(0,I.nZ)().setPropagationContext(s),n=T(e,{op:"pageload",...t})})),e.on("spanEnd",(e=>{const t=(0,r.XU)(e).op;if(e!==(0,r.Gx)(e)||"navigation"!==t&&"pageload"!==t)return;const n=(0,I.nZ)(),i=n.getPropagationContext();n.setPropagationContext({...i,sampled:void 0!==i.sampled?i.sampled:(0,r.Tt)(e),dsc:i.dsc||(0,q.jC)(e)})})),G.m9.location&&(S&&Y(e,{name:G.m9.location.pathname,startTime:s.Z1?s.Z1/1e3:void 0,attributes:{[o.Zj]:"url",[o.S3]:"auto.pageload.browser"}}),w&&(0,P.a)((({to:t,from:n})=>{void 0===n&&i&&-1!==i.indexOf(t)?i=void 0:n!==t&&(i=void 0,J(e,{name:G.m9.location.pathname,attributes:{[o.Zj]:"url",[o.S3]:"auto.navigation.browser"}}))}))),m&&(G.m9&&G.m9.document?G.m9.document.addEventListener("visibilitychange",(()=>{const e=(0,r.HN)();if(!e)return;const t=(0,r.Gx)(e);if(G.m9.document.hidden&&t){const e="cancelled",{op:n,status:i}=(0,r.XU)(t);W.X&&u.kg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),i||t.setStatus({code:U.jt,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})):W.X&&u.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),a&&function(e,t,n,i){let a;const s=()=>{const s="ui.action.click",c=(0,r.HN)(),l=c&&(0,r.Gx)(c);if(l){const e=(0,r.XU)(l).op;if(["navigation","pageload"].includes(e))return void(W.X&&u.kg.warn(`[Tracing] Did not create ${s} span because a pageload or navigation span is in progress.`))}a&&(a.setAttribute(o.ju,"interactionInterrupted"),a.end(),a=void 0),i.name?a=$({name:i.name,op:s,attributes:{[o.Zj]:i.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n}):W.X&&u.kg.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`)};G.m9.document&&addEventListener("click",s,{once:!1,capture:!0})}(d,f,h,C),t&&function(e){const t=({entries:t})=>{t.forEach((t=>{if(!(0,p.cN)(t)||!e.name)return;const n=t.interactionId;if(null!=n&&!R.has(n)){if(A.length>10){const e=A.shift();R.delete(e)}A.push(n),R.set(n,e.name)}}))};(0,p._j)("event",t),(0,p._j)("first-input",t)}(C),(0,Z.L7)({traceFetch:g,traceXHR:v,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:_,enableHTTPTimings:b})}}};function Y(e,t,n){e.emit("startPageLoadSpan",t,n),(0,I.nZ)().setTransactionName(t.name);const i=(0,r.HN)();return"pageload"===(i&&(0,r.XU)(i).op)?i:void 0}function J(e,t){(0,I.aF)().setPropagationContext((0,V.Q)()),(0,I.nZ)().setPropagationContext((0,V.Q)()),e.emit("startNavigationSpan",t),(0,I.nZ)().setTransactionName(t.name);const n=(0,r.HN)();return"navigation"===(n&&(0,r.XU)(n).op)?n:void 0}function K(e){const t=(0,c.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}},82600:function(e,t,n){"use strict";n.d(t,{k3:function(){return w},L7:function(){return k}});var r=n(6341),i=n(34374),o=n(90210),a=n(57976),s=n(6911),c=n(90759),u=n(24806),l=n(12911),d=n(1932),f=n(50304),p=n(27619),h=n(80924),m=n(20386),g=n(8840);function y(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;const y=(0,d.z)()&&t(e.fetchData.url);if(e.endTimestamp&&y){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(!function(e,t){if(t.response){(0,h.Q0)(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:h.jt,message:"internal_error"});e.end()}(n,e),delete r[t]))}const v=(0,u.nZ)(),_=(0,u.s3)(),{method:b,url:S}=e.fetchData,w=function(e){try{return new URL(e).href}catch(t){return}}(S),k=w?(0,o.en)(w).host:void 0,x=!!(0,f.HN)(),E=y&&x?(0,m.qp)({name:`${b} ${S}`,attributes:{url:S,type:"fetch","http.method":b,"http.url":w,"server.address":k,[l.S3]:i,[l.$J]:"http.client"}}):new p.b;if(e.fetchData.__span=E.spanContext().spanId,r[E.spanContext().spanId]=E,n(e.fetchData.url)&&_){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,i){const o=(0,u.aF)(),{traceId:l,spanId:d,sampled:p,dsc:h}={...o.getPropagationContext(),...n.getPropagationContext()},m=i?(0,f.Hb)(i):(0,a.$p)(l,d,p),y=(0,s.IQ)(h||(i?(0,g.jC)(i):(0,g._l)(l,t))),v=r.headers||("undefined"!==typeof Request&&(0,c.V9)(e,Request)?e.headers:void 0);if(v){if("undefined"!==typeof Headers&&(0,c.V9)(v,Headers)){const e=new Headers(v);return e.append("sentry-trace",m),y&&e.append(s.bU,y),e}if(Array.isArray(v)){const e=[...v,["sentry-trace",m]];return y&&e.push([s.bU,y]),e}{const e="baggage"in v?v.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),y&&t.push(y),{...v,"sentry-trace":m,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":m,baggage:y}}(t,_,v,n,(0,d.z)()&&x?E:void 0)}return E}var v=n(62696),_=n(30554),b=n(27202),S=n(41776);const w={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function k(e){const{traceFetch:t,traceXHR:n,shouldCreateSpanForRequest:i,enableHTTPTimings:c,tracePropagationTargets:_}={traceFetch:w.traceFetch,traceXHR:w.traceXHR,...e},k="function"===typeof i?i:e=>!0,E=e=>function(e,t){const n=S.m9.location&&S.m9.location.href;if(n){let i,o;try{i=new URL(e,n),o=new URL(n).origin}catch(r){return!1}const a=i.origin===o;return t?(0,b.U0)(i.toString(),t)||a&&(0,b.U0)(i.pathname,t):a}{const n=!!e.match(/^\/(?!\/)/);return t?(0,b.U0)(e,t):n}}(e,_),T={};t&&(0,v.U)((e=>{const t=y(e,k,E,T);if(t){const n=C(e.fetchData.url),r=n?(0,o.en)(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}c&&t&&x(t)})),n&&(0,r.UK)((e=>{const t=function(e,t,n,i){const c=e.xhr,y=c&&c[r.xU];if(!c||c.__sentry_own_request__||!y)return;const v=(0,d.z)()&&t(y.url);if(e.endTimestamp&&v){const e=c.__sentry_xhr_span_id__;if(!e)return;const t=i[e];return void(t&&void 0!==y.status_code&&((0,h.Q0)(t,y.status_code),t.end(),delete i[e]))}const _=C(y.url),b=_?(0,o.en)(_).host:void 0,S=!!(0,f.HN)(),w=v&&S?(0,m.qp)({name:`${y.method} ${y.url}`,attributes:{type:"xhr","http.method":y.method,"http.url":_,url:y.url,"server.address":b,[l.S3]:"auto.http.browser",[l.$J]:"http.client"}}):new p.b;c.__sentry_xhr_span_id__=w.spanContext().spanId,i[c.__sentry_xhr_span_id__]=w;const k=(0,u.s3)();c.setRequestHeader&&n(y.url)&&k&&function(e,t,n){const r=(0,u.nZ)(),i=(0,u.aF)(),{traceId:o,spanId:c,sampled:l,dsc:p}={...i.getPropagationContext(),...r.getPropagationContext()},h=n&&(0,d.z)()?(0,f.Hb)(n):(0,a.$p)(o,c,l),m=(0,s.IQ)(p||(n?(0,g.jC)(n):(0,g._l)(o,t)));!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(s.bU,n)}catch(r){}}(e,h,m)}(c,k,(0,d.z)()&&S?w:void 0);return w}(e,k,E,T);c&&t&&x(t)}))}function x(e){const{url:t}=(0,f.XU)(e).data||{};if(!t||"string"!==typeof t)return;const n=(0,i._j)("resource",(({entries:r})=>{r.forEach((r=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"===typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(r)&&r.name.endsWith(t)){(function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}r===e&&(t=r);return{name:t,version:n}}(e.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",t]),!_.Z1)return r;return[...r,["http.request.redirect_start",E(e.redirectStart)],["http.request.fetch_start",E(e.fetchStart)],["http.request.domain_lookup_start",E(e.domainLookupStart)],["http.request.domain_lookup_end",E(e.domainLookupEnd)],["http.request.connect_start",E(e.connectStart)],["http.request.secure_connection_start",E(e.secureConnectionStart)],["http.request.connection_end",E(e.connectEnd)],["http.request.request_start",E(e.requestStart)],["http.request.response_start",E(e.responseStart)],["http.request.response_end",E(e.responseEnd)]]})(r).forEach((t=>e.setAttribute(...t))),setTimeout(n)}}))}))}function E(e=0){return((_.Z1||performance.timeOrigin)+e)/1e3}function C(e){try{return new URL(e,S.m9.location.origin).href}catch(t){return}}},35825:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(81020),i=n(15943),o=n(9425);function a(e,t=(0,r.L2)("fetch")){let n=0,a=0;return(0,i.q)(e,(function(i){const s=i.body.length;n+=s,a++;const c={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&a<15,...e.fetchOptions};if(!t)return(0,r._6)("fetch"),(0,o.$2)("No fetch implementation available");try{return t(e.url,c).then((e=>(n-=s,a--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(u){return(0,r._6)("fetch"),n-=s,a--,(0,o.$2)(u)}}))}},16728:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(43854),i=n(97259);function o(e,{metadata:t,tunnel:n,dsn:o}){const a={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!o&&{dsn:(0,r.RA)(o)}},s=function(e){return[{type:"user_report"},e]}(e);return(0,i.Jd)(a,[s])}},6911:function(e,t,n){"use strict";n.d(t,{EN:function(){return u},IQ:function(){return l},bU:function(){return a}});var r=n(61289),i=n(90759),o=n(42562);const a="baggage",s="sentry-",c=/^sentry-/;function u(e){const t=function(e){if(!e||!(0,i.HD)(e)&&!Array.isArray(e))return;if(Array.isArray(e))return e.reduce(((e,t)=>{const n=d(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{});return d(e)}(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(c)){e[t.slice(s.length)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function l(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,n],i)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===i?a:`${e},${a}`;return s.length>8192?(r.X&&o.kg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`sentry-${t}`]=n),e)),{}))}function d(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}},72929:function(e,t,n){"use strict";n.d(t,{Rt:function(){return o},iY:function(){return u},l4:function(){return s},qT:function(){return c}});var r=n(90759);const i=n(84756).n;function o(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let o=0,s=0;const c=" > ",u=c.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++1&&s+i.length*u+l.length>=f));)i.push(l),s+=l.length,n=n.parentNode;return i.reverse().join(c)}catch(n){return""}}function a(e,t){const n=e,o=[];if(!n||!n.tagName)return"";if(i.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}o.push(n.tagName.toLowerCase());const a=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(a&&a.length)a.forEach((e=>{o.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&o.push(`#${n.id}`);const e=n.className;if(e&&(0,r.HD)(e)){const t=e.split(/\s+/);for(const e of t)o.push(`.${e}`)}}const s=["aria-label","type","name","title","alt"];for(const r of s){const e=n.getAttribute(r);e&&o.push(`[${r}="${e}"]`)}return o.join("")}function s(){try{return i.document.location.href}catch(e){return""}}function c(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}function u(e){if(!i.HTMLElement)return null;let t=e;for(let n=0;n<5;n++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},82414:function(e,t,n){"use strict";function r(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}n.d(t,{x:function(){return r}})},61289:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});const r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},43854:function(e,t,n){"use strict";n.d(t,{RA:function(){return a},U4:function(){return s},vK:function(){return u}});var r=n(61289),i=n(42562);const o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function s(e){const t=o.exec(e);if(!t)return void(0,i.Cf)((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,a="",s="",u="",l=""]=t.slice(1);let d="",f=l;const p=f.split("/");if(p.length>1&&(d=p.slice(0,-1).join("/"),f=p.pop()),f){const e=f.match(/^\d+/);e&&(f=e[0])}return c({host:s,pass:a,path:d,projectId:f,port:u,protocol:n,publicKey:r})}function c(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){const t="string"===typeof e?s(e):c(e);if(t&&function(e){if(!r.X)return!0;const{port:t,projectId:n,protocol:o}=e;return!["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(i.kg.error(`Invalid Sentry Dsn: ${t} missing`),!0)))&&(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(o)?!t||!isNaN(parseInt(t,10))||(i.kg.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.kg.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),!1):(i.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}},72565:function(e,t,n){"use strict";function r(){return"undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{S:function(){return i},n:function(){return r}})},97259:function(e,t,n){"use strict";n.d(t,{BO:function(){return c},Cd:function(){return _},HY:function(){return v},Jd:function(){return s},KQ:function(){return h},R:function(){return l},V$:function(){return f},f4:function(){return p},gv:function(){return u},mL:function(){return y},zQ:function(){return m}});var r=n(43854),i=n(81895),o=n(27575),a=n(84756);function s(e,t=[]){return[e,t]}function c(e,t){const[n,r]=e;return[n,[...r,t]]}function u(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function l(e,t){return u(e,((e,n)=>t.includes(n)))}function d(e){return a.n.__SENTRY__&&a.n.__SENTRY__.encodePolyfill?a.n.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function f(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"===typeof r?r="string"===typeof e?r+e:[d(r),e]:r.push("string"===typeof e?d(e):e)}for(const s of n){const[e,t]=s;if(o(`\n${JSON.stringify(e)}\n`),"string"===typeof t||t instanceof Uint8Array)o(t);else{let e;try{e=JSON.stringify(t)}catch(a){e=JSON.stringify((0,i.Fv)(t))}o(e)}}return"string"===typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}(r)}function p(e){let t="string"===typeof e?d(e):e;function n(e){const n=t.subarray(0,e);return t=t.subarray(e+1),n}function r(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse((r=n(e),a.n.__SENTRY__&&a.n.__SENTRY__.decodePolyfill?a.n.__SENTRY__.decodePolyfill(r):(new TextDecoder).decode(r)));var r}const i=r(),o=[];for(;t.length;){const e=r(),t="number"===typeof e.length?e.length:void 0;o.push([e,t?n(t):r()])}return[i,o]}function h(e){return[{type:"span"},e]}function m(e){const t="string"===typeof e.data?d(e.data):e.data;return[(0,o.Jr)({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const g={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function y(e){return g[e]}function v(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function _(e,t,n,i){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:(0,r.RA)(i)},...a&&{trace:(0,o.Jr)({...a})}}}},35602:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});class r extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}},47141:function(e,t,n){"use strict";n.d(t,{e:function(){return s}});var r=n(42562),i=n(27575),o=n(84756),a=n(11213);function s(e){const t="console";(0,a.Hj)(t,e),(0,a.D2)(t,c)}function c(){"console"in o.n&&r.RU.forEach((function(e){e in o.n.console&&(0,i.hl)(o.n.console,e,(function(t){return r.LD[e]=t,function(...t){const n={args:t,level:e};(0,a.rK)("console",n);const i=r.LD[e];i&&i.apply(o.n.console,t)}}))}))}},62696:function(e,t,n){"use strict";n.d(t,{U:function(){return u}});var r=n(90759),i=n(27575),o=n(36027),a=n(30554),s=n(84756),c=n(11213);function u(e){const t="fetch";(0,c.Hj)(t,e),(0,c.D2)(t,l)}function l(){(0,o.t$)()&&(0,i.hl)(s.n,"fetch",(function(e){return function(...t){const{method:n,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:f(t),method:d(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:f(t),method:d(t,"method")?String(t.method).toUpperCase():"GET"}}(t),u={args:t,fetchData:{method:n,url:o},startTimestamp:1e3*(0,a.ph)()};(0,c.rK)("fetch",{...u});const l=(new Error).stack;return e.apply(s.n,t).then((e=>{const t={...u,endTimestamp:1e3*(0,a.ph)(),response:e};return(0,c.rK)("fetch",t),e}),(e=>{const t={...u,endTimestamp:1e3*(0,a.ph)(),error:e};throw(0,c.rK)("fetch",t),(0,r.VZ)(e)&&void 0===e.stack&&(e.stack=l,(0,i.xp)(e,"framesToPop",1)),e}))}}))}function d(e,t){return!!e&&"object"===typeof e&&!!e[t]}function f(e){return"string"===typeof e?e:e?d(e,"url")?e.url:e.toString?e.toString():"":""}},34995:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var r=n(84756),i=n(11213);let o=null;function a(e){const t="error";(0,i.Hj)(t,e),(0,i.D2)(t,s)}function s(){o=r.n.onerror,r.n.onerror=function(e,t,n,r,a){const s={column:r,error:a,line:n,msg:e,url:t};return(0,i.rK)("error",s),!(!o||o.__SENTRY_LOADER__)&&o.apply(this,arguments)},r.n.onerror.__SENTRY_INSTRUMENTED__=!0}},421:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(84756),i=n(11213);let o=null;function a(e){const t="unhandledrejection";(0,i.Hj)(t,e),(0,i.D2)(t,s)}function s(){o=r.n.onunhandledrejection,r.n.onunhandledrejection=function(e){const t=e;return(0,i.rK)("unhandledrejection",t),!(o&&!o.__SENTRY_LOADER__)||o.apply(this,arguments)},r.n.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},11213:function(e,t,n){"use strict";n.d(t,{D2:function(){return u},Hj:function(){return c},rK:function(){return l}});var r=n(61289),i=n(42562),o=n(20290);const a={},s={};function c(e,t){a[e]=a[e]||[],a[e].push(t)}function u(e,t){s[e]||(t(),s[e]=!0)}function l(e,t){const n=e&&a[e];if(n)for(const a of n)try{a(t)}catch(s){r.X&&i.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,o.$P)(a)}\nError:`,s)}}},90759:function(e,t,n){"use strict";n.d(t,{Cy:function(){return y},HD:function(){return u},J8:function(){return g},Kj:function(){return m},Le:function(){return l},PO:function(){return f},TX:function(){return s},V9:function(){return v},VW:function(){return a},VZ:function(){return i},cO:function(){return p},fm:function(){return c},kK:function(){return h},pt:function(){return d},y1:function(){return _}});const r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return v(e,Error)}}function o(e,t){return r.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function c(e){return o(e,"DOMException")}function u(e){return o(e,"String")}function l(e){return"object"===typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||l(e)||"object"!==typeof e&&"function"!==typeof e}function f(e){return o(e,"Object")}function p(e){return"undefined"!==typeof Event&&v(e,Event)}function h(e){return"undefined"!==typeof Element&&v(e,Element)}function m(e){return o(e,"RegExp")}function g(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function y(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch(n){return!1}}function _(e){return!("object"!==typeof e||null===e||!e.__isVue&&!e._isVue)}},42562:function(e,t,n){"use strict";n.d(t,{Cf:function(){return s},LD:function(){return a},RU:function(){return o},kg:function(){return c}});var r=n(61289),i=n(84756);const o=["debug","info","warn","error","log","assert","trace"],a={};function s(e){if(!("console"in i.n))return e();const t=i.n.console,n={},r=Object.keys(a);r.forEach((e=>{const r=a[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const c=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.X?o.forEach((n=>{t[n]=(...t)=>{e&&s((()=>{i.n.console[n](`Sentry Logger [${n}]:`,...t)}))}})):o.forEach((e=>{t[e]=()=>{}})),t}()},9227:function(e,t,n){"use strict";n.d(t,{DM:function(){return a},Db:function(){return u},EG:function(){return l},YO:function(){return f},go:function(){return d},jH:function(){return c},lE:function(){return p}});var r=n(27575),i=n(27202),o=n(84756);function a(){const e=o.n,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(r){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function c(e){const{message:t,event_id:n}=e;if(t)return t;const r=s(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function u(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function l(e,t){const n=s(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function d(e,t,n=5){if(void 0===t.lineno)return;const r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map((e=>(0,i.JM)(e,0)));const a=Math.min(r-1,o);t.context_line=(0,i.JM)(e[a],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map((e=>(0,i.JM)(e,0)))}function f(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.xp)(e,"__sentry_captured__",!0)}catch(t){}return!1}function p(e){return Array.isArray(e)?e:[e]}},81895:function(e,t,n){"use strict";n.d(t,{Fv:function(){return a},Qy:function(){return s}});var r=n(90759);var i=n(27575),o=n(20290);function a(e,t=100,n=1/0){try{return c("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function s(e,t=3,n=102400){const r=a(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?s(e,t-1,n):r;var i}function c(e,t,n=1/0,a=1/0,s=function(){const e="function"===typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e=a){h[r]="[MaxProperties ~]";break}const e=g[r];h[r]=c(r,e,f-1,a,s),m++}return l(t),h}},27575:function(e,t,n){"use strict";n.d(t,{$Q:function(){return l},HK:function(){return d},Jr:function(){return y},Sh:function(){return p},_j:function(){return f},hl:function(){return c},xp:function(){return u},zf:function(){return g}});var r=n(72929),i=n(61289),o=n(90759),a=n(42562),s=n(27202);function c(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"===typeof i&&l(i,r),e[t]=i}function u(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){i.X&&a.kg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function l(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,u(e,"__sentry_original__",t)}catch(n){}}function d(e){return e.__sentry_original__}function f(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function p(e){if((0,o.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if((0,o.cO)(e)){const t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...m(e)};return"undefined"!==typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function h(e){try{return(0,o.kK)(e)?(0,r.Rt)(e):Object.prototype.toString.call(e)}catch(t){return""}}function m(e){if("object"===typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function g(e,t=40){const n=Object.keys(p(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return(0,s.$G)(r,t);for(let i=n.length;i>0;i--){const e=n.slice(0,i).join(", ");if(!(e.length>t))return i===n.length?e:(0,s.$G)(e,t)}return""}function y(e){return v(e,new Map)}function v(e,t){if(function(e){if(!(0,o.PO)(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(t){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const i of Object.keys(e))"undefined"!==typeof e[i]&&(r[i]=v(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(v(e,t))})),r}return e}},89181:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});var r=n(9227);function i(){return{traceId:(0,r.DM)(),spanId:(0,r.DM)().substring(16)}}},37699:function(e,t,n){"use strict";n.d(t,{JY:function(){return r},Q:function(){return i},WG:function(){return o}});function r(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function i(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function o(e,{statusCode:t,headers:n},i=Date.now()){const o={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(const r of a.trim().split(",")){const[e,t,,,n]=r.split(":",5),a=parseInt(e,10),s=1e3*(isNaN(a)?60:a);if(t)for(const r of t.split(";"))"metric_bucket"===r&&n&&!n.split(";").includes("custom")||(o[r]=i+s);else o.all=i+s}else s?o.all=i+r(s,i):429===t&&(o.all=i+6e4);return o}},56295:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});const r=["fatal","error","warning","log","info","debug"];function i(e){return"warn"===e?"warning":r.includes(e)?e:"log"}},20290:function(e,t,n){"use strict";n.d(t,{$P:function(){return l},Fi:function(){return r},Fr:function(){return d},Sq:function(){return s},pE:function(){return a}});const r="?",i=/\(error: (.*)\)/,o=/captureMessage|captureException/;function a(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0,a=0)=>{const s=[],u=e.split("\n");for(let r=n;r1024)continue;const n=i.test(e)?e.replace(i,"$1"):e;if(!n.match(/\S*Error: /)){for(const e of t){const t=e(n);if(t){s.push(t);break}}if(s.length>=50+a)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(c(t).function||"")&&t.pop();t.reverse(),o.test(c(t).function||"")&&(t.pop(),o.test(c(t).function||"")&&t.pop());return t.slice(0,50).map((e=>({...e,filename:e.filename||c(t).filename,function:e.function||r})))}(s.slice(a))}}function s(e){return Array.isArray(e)?a(...e):e}function c(e){return e[e.length-1]||{}}const u="";function l(e){try{return e&&"function"===typeof e&&e.name||u}catch(t){return u}}function d(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(n){return}}}},27202:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},JM:function(){return o},U0:function(){return s},nK:function(){return a}});var r=n(90759);function i(e,t=0){return"string"!==typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let i=Math.max(t-60,0);i<5&&(i=0);let o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n=`'{snip} ${n}`),ofunction(e,t,n=!1){return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):!!(0,r.HD)(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}},36027:function(e,t,n){"use strict";n.d(t,{Ak:function(){return a},QC:function(){return s},t$:function(){return c},zb:function(){return u}});var r=n(61289),i=n(42562);const o=n(84756).n;function a(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function s(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function c(){if("string"===typeof EdgeRuntime)return!0;if(!a())return!1;if(s(o.fetch))return!0;let e=!1;const t=o.document;if(t&&"function"===typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=s(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){r.X&&i.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function u(){return"ReportingObserver"in o}},9425:function(e,t,n){"use strict";n.d(t,{$2:function(){return a},WD:function(){return o},cW:function(){return s}});var r,i=n(90759);function o(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(r||(r={}));class s{constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new s(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(i){r(i)}else n(t)},e=>{if(t)try{n(t(e))}catch(i){r(i)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===r.PENDING&&((0,i.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},30554:function(e,t,n){"use strict";n.d(t,{Z1:function(){return s},ph:function(){return o},yW:function(){return i}});var r=n(84756);function i(){return Date.now()/1e3}const o=function(){const{performance:e}=r.n;if(!e||!e.now)return i;const t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let a;const s=(()=>{const{performance:e}=r.n;if(!e||!e.now)return void(a="none");const t=36e5,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,s=oe.length>0&&","!==e)).length}n.d(t,{$A:function(){return o},en:function(){return r},rt:function(){return i}})},40539:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});const r="8.11.0"},84756:function(e,t,n){"use strict";n.d(t,{Y:function(){return o},n:function(){return i}});var r=n(40539);const i=globalThis;function o(e,t,n){const o=n||i,a=o.__SENTRY__=o.__SENTRY__||{},s=a[r.J]=a[r.J]||{};return s[e]||(s[e]=t())}},20943:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:function(){return r}})},828:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(13375);var i=n(91566);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||(0,r.Z)(e,t)||(0,i.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},7297:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:function(){return r}})},29815:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(20943);var i=n(13375);var o=n(91566);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,i.Z)(e)||(0,o.Z)(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.")}()}},91566:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(20943);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},75028:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});const r=()=>Object.create(null),{forEach:i,slice:o}=Array.prototype,{hasOwnProperty:a}=Object.prototype;class s{constructor(e=!0,t=r){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return i.call(e,(e=>t=t.getChildTrie(e))),a.call(t,"data")?t.data:t.data=this.makeData(o.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,o=[];for(let a=0;a1&&o.push(`... ${r} more items`);return"["+o.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){const t=e.constructor.name;if("string"===typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map((([e,n])=>e+": "+i(n,t)));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},72380:function(e,t,n){"use strict";n.d(t,{UG:function(){return s},WU:function(){return i},Ye:function(){return r},h8:function(){return o},ku:function(){return c}});class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=new Set(Object.keys(o));function s(e){const t=null===e||void 0===e?void 0:e.kind;return"string"===typeof t&&a.has(t)}var c;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(c||(c={}))},87392:function(e,t,n){"use strict";n.d(t,{LZ:function(){return a},wv:function(){return i}});var r=n(68297);function i(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;s0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function o(e){let t=0;for(;t1&&i.slice(1).every((e=>0===e.length||(0,r.FD)(e.charCodeAt(0)))),s=n.endsWith('\\"""'),c=e.endsWith('"')&&!s,u=e.endsWith("\\"),l=c||u,d=!(null!==t&&void 0!==t&&t.minimize)&&(!o||e.length>70||l||a||s);let f="";const p=o&&(0,r.FD)(e.charCodeAt(0));return(d&&!p||a)&&(f+="\n"),f+=n,(d||l)&&(f+="\n"),'"""'+f+'"""'}},68297:function(e,t,n){"use strict";function r(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}n.d(t,{FD:function(){return r},HQ:function(){return s},LQ:function(){return a},X1:function(){return i}})},97359:function(e,t,n){"use strict";var r;n.d(t,{h:function(){return r}}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(r||(r={}))},16918:function(e,t,n){"use strict";n.r(t),n.d(t,{print:function(){return c}});var r=n(87392);const i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return a[e.charCodeAt(0)]}const a=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var s=n(77304);function c(e){return(0,s.Vn)(e,u)}const u={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>l(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=f("(",l(e.variableDefinitions,", "),")"),n=l([e.operation,l([e.name,t]),l(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+f(" = ",n)+f(" ",l(r," "))},SelectionSet:{leave:({selections:e})=>d(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=f("",e,": ")+t;let a=o+f("(",l(n,", "),")");return a.length>80&&(a=o+f("(\n",p(l(n,"\n")),"\n)")),l([a,l(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+f(" ",l(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>l(["...",f("on ",e),l(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${f("(",l(n,", "),")")} on ${t} ${f("",l(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.LZ)(e):`"${e.replace(i,o)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+l(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+l(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+f("(",l(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>f("",e,"\n")+l(["schema",l(t," "),d(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>f("",e,"\n")+l(["scalar",t,l(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>f("",e,"\n")+l(["type",t,f("implements ",l(n," & ")),l(r," "),d(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>f("",e,"\n")+t+(h(n)?f("(\n",p(l(n,"\n")),"\n)"):f("(",l(n,", "),")"))+": "+r+f(" ",l(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>f("",e,"\n")+l([t+": "+n,f("= ",r),l(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>f("",e,"\n")+l(["interface",t,f("implements ",l(n," & ")),l(r," "),d(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>f("",e,"\n")+l(["union",t,l(n," "),f("= ",l(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>f("",e,"\n")+l(["enum",t,l(n," "),d(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>f("",e,"\n")+l([t,l(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>f("",e,"\n")+l(["input",t,l(n," "),d(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>f("",e,"\n")+"directive @"+t+(h(n)?f("(\n",p(l(n,"\n")),"\n)"):f("(",l(n,", "),")"))+(r?" repeatable":"")+" on "+l(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>l(["extend schema",l(e," "),d(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>l(["extend scalar",e,l(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>l(["extend type",e,f("implements ",l(t," & ")),l(n," "),d(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>l(["extend interface",e,f("implements ",l(t," & ")),l(n," "),d(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>l(["extend union",e,l(t," "),f("= ",l(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>l(["extend enum",e,l(t," "),d(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>l(["extend input",e,l(t," "),d(n)]," ")}};function l(e,t=""){var n;return null!==(n=null===e||void 0===e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function d(e){return f("{\n",p(l(e,"\n")),"\n}")}function f(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function p(e){return f(" ",e.replace(/\n/g,"\n "))}function h(e){var t;return null!==(t=null===e||void 0===e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}},51270:function(e,t,n){"use strict";n.d(t,{H:function(){return a},T:function(){return s}});var r=n(37826),i=n(25821);const o=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"===typeof e&&null!==e){var n;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=(0,i.X)(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class a{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"===typeof e||(0,r.a)(!1,`Body must be a string. Received: ${(0,i.X)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function s(e){return o(e,a)}},77304:function(e,t,n){"use strict";n.d(t,{$_:function(){return s},Vn:function(){return c}});var r=n(37826),i=n(25821),o=n(72380),a=n(97359);const s=Object.freeze({});function c(e,t,n=o.h8){const c=new Map;for(const r of Object.values(a.h))c.set(r,u(t,r));let l,d,f,p=Array.isArray(e),h=[e],m=-1,g=[],y=e;const v=[],_=[];do{m++;const e=m===h.length,a=e&&0!==g.length;if(e){if(d=0===_.length?void 0:v[v.length-1],y=f,f=_.pop(),a)if(p){y=y.slice();let e=0;for(const[t,n]of g){const r=t-e;null===n?(y.splice(r,1),e++):y[r]=n}}else{y=Object.defineProperties({},Object.getOwnPropertyDescriptors(y));for(const[e,t]of g)y[e]=t}m=l.index,h=l.keys,g=l.edits,p=l.inArray,l=l.prev}else if(f){if(d=p?m:h[m],y=f[d],null===y||void 0===y)continue;v.push(d)}let u;if(!Array.isArray(y)){var b,S;(0,o.UG)(y)||(0,r.a)(!1,`Invalid AST Node: ${(0,i.X)(y)}.`);const n=e?null===(b=c.get(y.kind))||void 0===b?void 0:b.leave:null===(S=c.get(y.kind))||void 0===S?void 0:S.enter;if(u=null===n||void 0===n?void 0:n.call(t,y,d,f,v,_),u===s)break;if(!1===u){if(!e){v.pop();continue}}else if(void 0!==u&&(g.push([d,u]),!e)){if(!(0,o.UG)(u)){v.pop();continue}y=u}}var w;if(void 0===u&&a&&g.push([d,y]),e)v.pop();else l={inArray:p,index:m,keys:h,edits:g,prev:l},p=Array.isArray(y),h=p?y:null!==(w=n[y.kind])&&void 0!==w?w:[],m=-1,g=[],f&&_.push(f),f=y}while(void 0!==l);return 0!==g.length?g[g.length-1][1]:e}function u(e,t){const n=e[t];return"object"===typeof n?n:"function"===typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}},52100:function(e,t,n){"use strict";n.r(t),n.d(t,{getOperationAST:function(){return i}});var r=n(97359);function i(e,t){let n=null;for(const o of e.definitions){var i;if(o.kind===r.h.OPERATION_DEFINITION)if(null==t){if(n)return null;n=o}else if((null===(i=o.name)||void 0===i?void 0:i.value)===t)return o}return n}},36609:function(e,t,n){"use strict";n.d(t,{ZP:function(){return $},t:function(){return z}});const r={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class i{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||r,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)})),this}off(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((e=>e!==t)):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{e(...n)}))}if(this.observers["*"]){[].concat(this.observers["*"]).forEach((t=>{t.apply(t,[e,...n])}))}}}function s(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function c(e){return null==e?"":""+e}function u(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"===typeof e}const o="string"!==typeof t?[].concat(t):t.split(".");for(;o.length>1;){if(i())return{};const t=r(o.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function l(e,t,n){const{obj:r,k:i}=u(e,t,Object);r[i]=n}function d(e,t){const{obj:n,k:r}=u(e,t);if(n)return n[r]}function f(e,t,n){const r=d(e,n);return void 0!==r?r:d(t,n)}function p(e,t,n){for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"===typeof e[r]||e[r]instanceof String||"string"===typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):p(e[r],t[r],n):e[r]=t[r]);return e}function h(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var m={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function g(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,(e=>m[e])):e}const y=[" ",",","?","!",";"];function v(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;oo+e;)e++,a=r.slice(o,o+e).join(n),s=i[a];if(void 0===s)return;if(null===s)return null;if(t.endsWith(a)){if("string"===typeof s)return s;if(a&&"string"===typeof s[a])return s[a]}const c=r.slice(o+e).join(n);return c?v(s,c,n):void 0}i=i[r[o]]}return i}function _(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class b extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[e,t];n&&"string"!==typeof n&&(a=a.concat(n)),n&&"string"===typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."));const s=d(this.data,a);return s||!o||"string"!==typeof n?s:v(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),l(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)"string"!==typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=d(this.data,a)||{};r?p(s,n,i):s={...s,...n},l(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var S={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))})),t}};const w={};class k extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach((e=>{t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=o.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===e||null===e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";const r=y.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const i=new RegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o}(e,n,r);if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"===typeof i&&(i=[i]),{key:e,namespaces:i}}translate(e,t,n){if("object"!==typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===typeof t&&(t={...t}),t||(t={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],c=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(u){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:s}:`${s}${e}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:s}:o}const l=this.resolve(e,t);let d=l&&l.res;const f=l&&l.usedKey||o,p=l&&l.exactUsedKey||o,h=Object.prototype.toString.apply(d),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&d&&("string"!==typeof d&&"boolean"!==typeof d&&"number"!==typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!==typeof m||"[object Array]"!==h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(l.res=e,l):e}if(i){const e="[object Array]"===h,n=e?[]:{},r=e?p:f;for(const o in d)if(Object.prototype.hasOwnProperty.call(d,o)){const e=`${r}${i}${o}`;n[o]=this.translate(e,{...t,joinArrays:!1,ns:a}),n[o]===e&&(n[o]=d[o])}d=n}}else if(g&&"string"===typeof m&&"[object Array]"===h)d=d.join(m),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const u=void 0!==t.count&&"string"!==typeof t.count,f=k.hasDefaultValue(t),p=u?this.pluralResolver.getSuffix(c,t.count,t):"",h=t.ordinal&&u?this.pluralResolver.getSuffix(c,t.count,{ordinal:!1}):"",m=t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=m),this.isValidLookup(d)||(a=!0,d=o);const g=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,y=f&&m!==d&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",c,s,o,y?m:d),i){const e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t{const i=f&&r!==d?r:g;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,y,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach((e=>{this.pluralResolver.getSuffixes(e,t).forEach((n=>{r([e],o+n,t[`defaultValue${n}`]||m)}))})):r(e,o,m))}d=this.extendTranslation(d,e,t,l,n),a&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${o}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(l.res=d,l):d}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a="string"===typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let c=n.replace&&"string"!==typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),c=s.key;n=c;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const l=void 0!==a.count&&"string"!==typeof a.count,d=l&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&("string"===typeof a.context||"number"===typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach((e=>{this.isValidLookup(t)||(o=e,!w[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(w[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((n=>{if(this.isValidLookup(t))return;i=n;const o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,n,e,a);else{let e;l&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(o.push(c+e),a.ordinal&&0===e.indexOf(r)&&o.push(c+e.replace(r,this.options.pluralSeparator)),d&&o.push(c+t)),f){const n=`${c}${this.options.contextSeparator}${a.context}`;o.push(n),l&&(o.push(n+e),a.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),d&&o.push(n+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}function x(e){return e.charAt(0).toUpperCase()+e.slice(1)}class E{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=o.create("languageUtils")}getScriptPartFromCode(e){if(!(e=_(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=_(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"===typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=x(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=x(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=x(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),"string"===typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"===typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"===typeof e&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))})),r}}let C=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],T={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const I=["v1","v2","v3"],O=["v4"],A={zero:0,one:1,two:2,few:3,many:4,other:5};class R{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=o.create("pluralResolver"),this.options.compatibilityJSON&&!O.includes(this.options.compatibilityJSON)||"undefined"!==typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return C.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:T[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(_(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>A[e]-A[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"===typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!I.includes(this.options.compatibilityJSON)}}function N(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=f(e,t,n);return!o&&i&&"string"===typeof n&&(o=v(e,n,r),void 0===o&&(o=v(t,n,r))),o}class D{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=void 0!==t.escape?t.escape:g,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?h(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?h(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?h(t.nestingPrefix):t.nestingPrefixEscaped||h("$t("),this.nestingSuffix=t.nestingSuffix?h(t.nestingSuffix):t.nestingSuffixEscaped||h(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,"g");const t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,"g");const n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(n,"g")}interpolate(e,t,n,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}const l=e=>{if(e.indexOf(this.formatSeparator)<0){const i=N(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(N(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>u(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?u(this.escape(e)):u(e)}].forEach((t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=l(n),void 0===o)if("function"===typeof d){const t=d(e,i,r);o="string"===typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(f){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else"string"===typeof o||this.useRawValueToEscape||(o=c(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),f?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(a&&a.length%2===0&&!s||s.length%2!==0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(c){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,c),`${e}${n}${o}`}return delete i.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let s=[];i={...o},i=i.replace&&"string"!==typeof i.replace?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),s=e,u=!0}if(r=t(a.call(this,n[1].trim(),i),i),r&&n[0]===e&&"string"!==typeof r)return r;"string"!==typeof r&&(r=c(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),u&&(r=s.reduce(((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function P(e){const t={};return function(n,r,i){const o=r+JSON.stringify(i);let a=t[o];return a||(a=e(_(r),i),t[o]=a),a(n)}}class L{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o.create("formatter"),this.options=e,this.formats={number:P(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:P(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:P(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:P(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:P(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=P(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:i,formatOptions:o}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((e=>{if(!e)return;const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=i),"false"===i&&(n[t.trim()]=!1),"true"===i&&(n[t.trim()]=!0),isNaN(i)||(n[t.trim()]=parseInt(i,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[i]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(a){this.logger.warn(a)}return t}return this.logger.warn(`there was no format function for ${i}`),e}),e)}}class M extends a{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=o.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;const a={};this.queue.forEach((n=>{!function(e,t,n,r){const{obj:i,k:o}=u(e,t,Object);i[o]=i[o]||[],r&&(i[o]=i[o].concat(n)),r||i[o].push(n)}(n.loaded,[i],o),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r{this.read.call(this,e,t,n,r+1,2*i,o)}),i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"===typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(c){a(c)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,((n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)}))}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(void 0!==n&&null!==n&&""!==n){if(this.backend&&this.backend.create){const c={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let i;i=5===u.length?u(e,t,n,r,c):u(e,t,n,r),i&&"function"===typeof i.then?i.then((e=>a(null,e))).catch(a):a(null,i)}catch(s){a(s)}else u(e,t,n,r,a,c)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function F(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"===typeof e[1]&&(t=e[1]),"string"===typeof e[1]&&(t.defaultValue=e[1]),"string"===typeof e[2]&&(t.tDescription=e[2]),"object"===typeof e[2]||"object"===typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function j(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function U(){}class B extends a{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=j(e),this.services={},this.logger=o,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"===typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"===typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"===typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=F();function i(e){return e?"function"===typeof e?new e:e:null}if(this.options={...r,...this.options,...j(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?o.init(i(this.modules.logger),this.options):o.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!==typeof Intl&&(t=L);const n=new E(this.options);this.store=new b(this.options.resources,this.options);const a=this.services;a.logger=o,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new R(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(a.formatter=i(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new D(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new M(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=U),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const a=s(),c=()=>{const e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U;const n="string"===typeof e?e:this.language;if("function"===typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return t();const e=[],r=t=>{if(!t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{e.indexOf(t)<0&&e.push(t)}))};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e)))}this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=s();return e||(e=this.languages),t||(t=this.options.ns),n||(n=U),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&S.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=s();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"===typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{o(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let o;if("object"!==typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),c=2;c`${o.keyPrefix}${u}${e}`)):o.keyPrefix?`${o.keyPrefix}${u}${e}`:e,r.t(l,o)};return"string"===typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=s();return this.options.ns?("string"===typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=s();"string"===typeof e&&(e=[e]);const r=this.options.preload||[],i=e.filter((e=>r.indexOf(e)<0));return i.length?(this.options.preload=r.concat(i),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new E(F());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new B(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new B(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));return["store","services","language"].forEach((e=>{i[e]=this[e]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new b(this.store.data,r),i.services.resourceStore=i.store),i.translator=new k(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r-1&&e%1==0&&e<=9007199254740991}},77226:function(e,t){"use strict";t.Z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},18533:function(e,t){"use strict";t.Z=function(e){return null!=e&&"object"==typeof e}},18843:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(93589),i=n(1656),o=n(18533),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=function(e){return(0,o.Z)(e)&&(0,i.Z)(e.length)&&!!a[(0,r.Z)(e)]},c=n(21162),u=n(98351),l=u.Z&&u.Z.isTypedArray,d=l?(0,c.Z)(l):s},67421:function(e,t,n){"use strict";n.d(t,{a3:function(){return x},Db:function(){return _},NS:function(){return E},$G:function(){return k}});var r=n(67294);n(71739);Object.create(null);function i(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}};function c(e,t,n){e.loadNamespaces(t,s(e,n))}function u(e,t,n,r){"string"===typeof n&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,s(e,r))}function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;const a=(e,n)=>{const r=t.services.backendConnector.state[`${e}|${n}`];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e))))}function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return a("i18n.languages were undefined or empty",t.languages),!0;const r=void 0!==t.options.ignoreJSONStructure;return r?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):l(e,t,n)}const f=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,p={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"\u2026","…":"\u2026","/":"/","/":"/"},h=e=>p[e];let m,g={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(f,h)};function y(){return g}function v(){return m}const _={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};g={...g,...e}}(e.options.react),function(e){m=e}(e)}},b=(0,r.createContext)();class S{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const w=(e,t)=>{const n=(0,r.useRef)();return(0,r.useEffect)((()=>{n.current=t?n.current:e}),[e,t]),n.current};function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:n}=t,{i18n:i,defaultNS:o}=(0,r.useContext)(b)||{},s=n||i||v();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new S),!s){a("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>"string"===typeof t?t:t&&"object"===typeof t&&"string"===typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}s.options.react&&void 0!==s.options.react.wait&&a("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...y(),...s.options.react,...t},{useSuspense:f,keyPrefix:p}=l;let h=e||o||s.options&&s.options.defaultNS;h="string"===typeof h?[h]:h||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(h);const m=(s.isInitialized||s.initializedStoreOnce)&&h.every((e=>d(e,s,l)));function g(){return s.getFixedT(t.lng||null,"fallback"===l.nsMode?h:h[0],p)}const[_,k]=(0,r.useState)(g);let x=h.join();t.lng&&(x=`${t.lng}${x}`);const E=w(x),C=(0,r.useRef)(!0);(0,r.useEffect)((()=>{const{bindI18n:e,bindI18nStore:n}=l;function r(){C.current&&k(g)}return C.current=!0,m||f||(t.lng?u(s,t.lng,h,(()=>{C.current&&k(g)})):c(s,h,(()=>{C.current&&k(g)}))),m&&E&&E!==x&&C.current&&k(g),e&&s&&s.on(e,r),n&&s&&s.store.on(n,r),()=>{C.current=!1,e&&s&&e.split(" ").forEach((e=>s.off(e,r))),n&&s&&n.split(" ").forEach((e=>s.store.off(e,r)))}}),[s,x]);const T=(0,r.useRef)(!0);(0,r.useEffect)((()=>{C.current&&!T.current&&k(g),T.current=!1}),[s,p]);const I=[_,s,m];if(I.t=_,I.i18n=s,I.ready=m,m)return I;if(!m&&!f)return I;throw new Promise((e=>{t.lng?u(s,t.lng,h,(()=>e())):c(s,h,(()=>e()))}))}function x(e){let{i18n:t,defaultNS:n,children:i}=e;const o=(0,r.useMemo)((()=>({i18n:t,defaultNS:n})),[t,n]);return(0,r.createElement)(b.Provider,{value:o},i)}function E(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{i18n:i}=n,{i18n:o}=(0,r.useContext)(b)||{},a=i||o||v();a.options&&a.options.isClone||(e&&!a.initializedStoreOnce&&(a.services.resourceStore.data=e,a.options.ns=Object.values(e).reduce(((e,t)=>(Object.keys(t).forEach((t=>{e.indexOf(t)<0&&e.push(t)})),e)),a.options.ns),a.initializedStoreOnce=!0,a.isInitialized=!0),t&&!a.initializedLanguageOnce&&(a.changeLanguage(t),a.initializedLanguageOnce=!0))}},78231:function(e,t,n){"use strict";n.d(t,{ej:function(){return c},kG:function(){return u},U6:function(){return p}});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 i(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)}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError;var o="Invariant Violation",a=Object.setPrototypeOf,s=void 0===a?function(e,t){return e.__proto__=t,e}:a,c=function(e){function t(n){void 0===n&&(n=o);var r=e.call(this,"number"===typeof n?o+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=o,s(r,t.prototype),r}return i(t,e),t}(Error);function u(e,t){if(!e)throw new c(t)}var l=["debug","log","warn","error","silent"],d=l.indexOf("log");function f(e){return function(){if(l.indexOf(e)>=d){var t=console[e]||console.log;return t.apply(console,arguments)}}}function p(e){var t=l[d];return d=Math.max(0,l.indexOf(e)),t}!function(e){e.debug=f("debug"),e.log=f("log"),e.warn=f("warn"),e.error=f("error")}(u||(u={}))},48216:function(e,t,n){"use strict";function r(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)return;if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(s){return n.error(s)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[d]=function(){return this},e.from=function(t){var n="function"===typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var i=p(t,d);if(i){var o=i.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return m(o)&&o.constructor===n?o:new n((function(e){return o.subscribe(e)}))}if(c("iterator")&&(i=p(t,l)))return new n((function(e){y((function(){if(!e.closed){for(var n,o=r(i.call(t));!(n=o()).done;){var a=n.value;if(e.next(a),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){y((function(){if(!e.closed){for(var n=0;n