1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c3030948-336f-471b-b563-e08dfa826df1",e._sentryDebugIdIdentifier="sentry-dbid-c3030948-336f-471b-b563-e08dfa826df1")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(15059)}])},27611:function(e,t,n){"use strict";var r=n(85893),i=n(25675),o=n.n(i),s=n(28197),a=n.n(s);t.Z=e=>{let{title:t,description:n,...i}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:a().errorContainer,children:(0,r.jsxs)("div",{className:a().errorMsgWrap,children:[(0,r.jsx)("div",{className:a().error_img,children:(0,r.jsx)(o(),{src:"https://img.chutcha.kr/files/webview/common/icon/empty_list_img_02.png",alt:"ì¤ë¥",fill:!0,style:{objectFit:"contain",objectPosition:"center"},quality:100})}),(0,r.jsx)("p",{children:t}),n&&(0,r.jsx)("span",{children:n})]})})})}},23208:function(e,t,n){"use strict";n.d(t,{L:function(){return rC},J:function(){return rO}});var r,i,o,s,a,u,l,c,d,h,f,p,m,g,v,y,_,b,w,S,E,k=n(97582);(r=f||(f={}))[r.None=0]="None",r[r.Error=1]="Error",r[r.Warn=2]="Warn",r[r.Verbose=3]="Verbose",r[r.Debug=4]="Debug";var T=function(e){return function(){var t=(0,k.pi)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},x=function(e,t){var n,r;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=(0,k.XA)(t.split(".")),o=i.next();!o.done;o=i.next()){var s=o.value;if(!(s in e))return;e=e[s]}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e},I=function(e,t){return function(){var n,r,i={};try{for(var o=(0,k.XA)(t),s=o.next();!s.done;s=o.next()){var a=s.value;i[a]=x(e,a)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}},C=function(e,t,n,r,i){return void 0===i&&(i=null),function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=n(),u=a.logger,l=a.logLevel;if(l&&l<f.Debug||!l||!u)return e.apply(i,o);var c={type:"invoke public method",name:t,args:o,stacktrace:(Error().stack||"").split("\n").slice(3).map(function(e){return e.trim()}),time:{start:new Date().toISOString()},states:{}};r&&c.states&&(c.states.before=r());var d=e.apply(i,o);return d&&d.promise?d.promise.then(function(){r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),u.debug(JSON.stringify(c,null,2))}):(r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),u.debug(JSON.stringify(c,null,2))),d}},O=function(e){return{promise:e||Promise.resolve()}};(i=p||(p={})).Unknown="unknown",i.Skipped="skipped",i.Success="success",i.RateLimit="rate_limit",i.PayloadTooLarge="payload_too_large",i.Invalid="invalid",i.Failed="failed",i.Timeout="Timeout",i.SystemError="SystemError";var A="".concat("AMP","_unsent"),R="https://api2.amplitude.com/2/httpapi",M=function(e,t){var n=Math.max(t,1);return e.reduce(function(e,t,r){var i=Math.floor(r/n);return e[i]||(e[i]=[]),e[i].push(t),e},[])},D=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=p.Unknown),{event:e,code:t,message:n}},P="Amplitude Logger ",L=function(){function e(){this.logLevel=f.None}return e.prototype.disable=function(){this.logLevel=f.None},e.prototype.enable=function(e){void 0===e&&(e=f.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<f.Verbose||console.log("".concat(P,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<f.Warn||console.warn("".concat(P,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<f.Error||console.error("".concat(P,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<f.Debug||console.log("".concat(P,"[Debug]: ").concat(e.join(" ")))},e}(),N=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:"$default_instance",logLevel:f.Warn,loggerProvider:new L,offline:!1,optOut:!1,serverUrl:R,serverZone:"US",useBatch:!1}},j=function(){function e(e){this._optOut=!1;var t,n,r,i,o=N();this.apiKey=e.apiKey,this.flushIntervalMillis=null!==(t=e.flushIntervalMillis)&&void 0!==t?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.instanceName=e.instanceName||o.instanceName,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!==(n=e.logLevel)&&void 0!==n?n:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:o.offline,this.optOut=null!==(r=e.optOut)&&void 0!==r?r:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!==(i=e.useBatch)&&void 0!==i?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var s=U(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=s.serverZone,this.serverUrl=s.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e}
1,enumerable:!1,configurable:!0}),e}(),U=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=N().serverZone),void 0===n&&(n=N().useBatch),e)return{serverUrl:e,serverZone:void 0};var r,i=["US","EU"].includes(t)?t:N().serverZone;return{serverZone:i,serverUrl:(r=n,"EU"===i?r?"https://api.eu.amplitude.com/batch":"https://api.eu.amplitude.com/2/httpapi":r?"https://api2.amplitude.com/batch":R)}},F=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}(),$=function(e){return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,$)};function q(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var B=function(){function e(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduled=null,this.queue=[]}return e.prototype.setup=function(e){var t;return(0,k.mG)(this,void 0,void 0,function(){var n,r=this;return(0,k.Jh)(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(A,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return(n=i.sent())&&n.length>0&&Promise.all(n.map(function(e){return r.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=$()),new Promise(function(n){t.addToQueue({event:e,attempts:0,callback:function(e){return n(e)},timeout:0})})},e.prototype.getTryableList=function(e){var t=this;return e.filter(function(e){return e.attempts<t.config.flushMaxRetries?(e.attempts+=1,!0):(t.fulfillRequest([e],500,"Event rejected due to exceeded retry count"),!1)})},e.prototype.scheduleTryable=function(e,t){var n=this;void 0===t&&(t=!1),e.forEach(function(e){if(t&&(n.queue=n.queue.concat(e)),0===e.timeout){n.schedule(n.config.flushIntervalMillis);return}setTimeout(function(){e.timeout=0,n.schedule(0)},e.timeout)})},e.prototype.addToQueue=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.getTryableList(e);this.scheduleTryable(n,!0),this.saveEvents()},e.prototype.schedule=function(e){var t=this;this.scheduled||this.config.offline||(this.scheduled=setTimeout(function(){t.flush(!0).then(function(){t.queue.length>0&&t.schedule(e)})},e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,k.mG)(this,void 0,void 0,function(){var t,n,r=this;return(0,k.Jh)(this,function(i){switch(i.label){case 0:if(this.config.offline)return this.config.loggerProvider.debug("Skipping flush while offline."),[2];return t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),[4,Promise.all(M(t,this.config.flushQueueSize).map(function(t){return r.send(t,e)}))];case 1:return i.sent(),this.scheduleTryable(n),[2]}})})},e.prototype.send=function(e,t){return void 0===t&&(t=!0),(0,k.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,k.Jh)(this,function(s){switch(s.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];n={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,(0,k._T)(t,["extra"])}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new F,s.label=1;case 1:return s.trys.push([1,3,,4]),r=U(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(r,n)];case 2:if(null===(i=s.sent()))return this.fulfillRequest(e,0,"Unexpected error occurred"),[2];if(!t)return"body"in i?this.fulfillRequest(e,i.statusCode,"".concat(i.status,": ").concat(q(i))):this.fulfillRequest(e,i.statusCode,i.status),[2];return this.handleResponse(i,e),[3,4];case 3:var a;return o=(a=s.sent())instanceof Error?a.message:String(a),this.config.loggerProvider.error(o),this.handleResponse({status:p.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var n=e.status;switch(n){case p.Success:this.handleSuccessResponse(e,t);break;case p.Invalid:this.handleInvalidResponse(e,t);break;case p.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case p.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(n,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var n=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key")){this.fulfillRequest(t,e.statusCode,e.body.error);return}var r=new Set((0,k.ev)((0,k.ev)((0,k.ev)((0,k.ev)([],(0,k.CR)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,k.CR)(Object.values(e.body.eventsWithMissingFields)),!1),(0,k.CR)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,k.CR)(e.body.silencedEvents),!1).flat()),i=t.filter(function(t,i){if(r.has(i)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return!0});i.length>0&&this.config.loggerProvider.warn(q(e));var o=this.getTryableList(i);this.scheduleTryable(o)},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1===t.length){this.fulfillRequest(t,e.statusCode,e.body.error);return}this.config.loggerProvider.warn(q(e)),this.config.flushQueueSize/=2;var n=this.getTryableList(t);this.scheduleTryable(n)},e.prototype.handleRateLimitResponse=function(e,t){var n=this,r=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,s=new Set(r),a=new Set(i),u=new Set(o),l=t.filter(function(t,r){if(t.event.user_id&&s.has(t.event.user_id)||t.event.device_id&&a.has(t.event.device_id)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return u.has(r)&&(t.timeout=n.throttleTimeout),!0});l.length>0&&this.config.loggerProvider.warn(q(e));var c=this.getTryableList(l);this.scheduleTryable(c)},e.prototype.handleOtherResponse=function(e){var t=this,n=e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e}),r=this.getTryableList(n);this.scheduleTryable(r)},e.prototype.fulfillRequest=function(e,t,n){this.removeEvents(e),e.forEach(function(e){return e.callback(D(e.event,t,n))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map(function(e){return e.event});this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter(function(t){return!e.s
1ome(function(e){return e.event.insert_id===t.event.insert_id})}),this.saveEvents()},e}();(o=m||(m={})).SET="$set",o.SET_ONCE="$setOnce",o.ADD="$add",o.APPEND="$append",o.PREPEND="$prepend",o.REMOVE="$remove",o.PREINSERT="$preInsert",o.POSTINSERT="$postInsert",o.UNSET="$unset",o.CLEAR_ALL="$clearAll",(s=g||(g={})).REVENUE_PRODUCT_ID="$productId",s.REVENUE_QUANTITY="$quantity",s.REVENUE_PRICE="$price",s.REVENUE_TYPE="$revenueType",s.REVENUE="$revenue",(a=v||(v={})).IDENTIFY="$identify",a.GROUP_IDENTIFY="$groupidentify",a.REVENUE="revenue_amount";var J=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var n=e[t];if(!G(t,n))return!1}return!0},G=function(e,t){var n,r;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=(0,k.XA)(t),s=o.next();!s.done;s=o.next()){var a=s.value;if(Array.isArray(a))return!1;if("object"==typeof a)i=i&&J(a);else if(!["number","string"].includes(typeof a))return!1;if(!i)return!1}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}else if(null==t)return!1;else if("object"==typeof t)return J(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},H=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,k.pi)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(m.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(m.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(m.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(m.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(m.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(m.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(m.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(m.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(m.UNSET,e,"-"),this},e.prototype.clearAll=function(){return this._properties={},this._properties[m.CLEAR_ALL]="-",this},e.prototype._safeSet=function(e,t,n){if(this._validate(e,t,n)){var r=this._properties[e];return void 0===r&&(r={},this._properties[e]=r),r[t]=n,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,n){return!(void 0!==this._properties[m.CLEAR_ALL]||this._propertySet.has(t))&&(e===m.ADD?"number"==typeof n:e===m.UNSET||e===m.REMOVE||G(t,n))},e}(),z=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setEventProperties=function(e){return J(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,k.pi)({},this.properties):{};return e[g.REVENUE_PRODUCT_ID]=this.productId,e[g.REVENUE_QUANTITY]=this.quantity,e[g.REVENUE_PRICE]=this.price,e[g.REVENUE_TYPE]=this.revenueType,e[g.REVENUE]=this.revenue,e},e}(),W=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){var n,r;return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(i){switch(i.label){case 0:if(this.plugins.some(function(t){return t.name===e.name}))return t.loggerProvider.warn("Plugin with name ".concat(e.name," already exists, skipping registration")),[2];return void 0===e.name&&(e.name=$(),t.loggerProvider.warn("Plugin name is undefined. \n Generating a random UUID for plugin name: ".concat(e.name,". \n Set a name for the plugin to prevent it from being added multiple times."))),e.type=null!==(n=e.type)&&void 0!==n?n:"enrichment",[4,null===(r=e.setup)||void 0===r?void 0:r.call(e,t,this.client)];case 1:return i.sent(),this.plugins.push(e),[2]}})})},e.prototype.deregister=function(e){var t;return(0,k.mG)(this,void 0,void 0,function(){var n,r;return(0,k.Jh)(this,function(i){switch(i.label){case 0:return n=this.plugins.findIndex(function(t){return t.name===e}),r=this.plugins[n],this.plugins.splice(n,1),[4,null===(t=r.teardown)||void 0===t?void 0:t.call(r)];case 1:return i.sent(),[2]}})})},e.prototype.reset=function(e){this.applying=!1,this.plugins.map(function(e){var t;return null===(t=e.teardown)||void 0===t?void 0:t.call(e)}),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(n){t.queue.push([e,n]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return(0,k.mG)(this,void 0,void 0,function(){var t,n,r,i,o,s,a,u,l,c,d,h,f,p;return(0,k.Jh)(this,function(m){switch(m.label){case 0:if(!e)return[2];t=(0,k.CR)(e,1)[0],n=(0,k.CR)(e,2)[1],r=this.plugins.filter(function(e){return"before"===e.type}),m.label=1;case 1:m.trys.push([1,6,7,8]),o=(i=(0,k.XA)(r)).next(),m.label=2;case 2:if(o.done)return[3,5];if(!(s=o.value).execute)return[3,4];return[4,s.execute((0,k.pi)({},t))];case 3:if(null===(a=m.sent()))return n({event:t,code:0,message:""}),[2];t=a,m.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return d={error:m.sent()},[3,8];case 7:try{o&&!o.done&&(h=i.return)&&h.call(i)}finally{if(d)throw d.error}
1return[7];case 8:u=this.plugins.filter(function(e){return"enrichment"===e.type||void 0===e.type}),m.label=9;case 9:m.trys.push([9,14,15,16]),c=(l=(0,k.XA)(u)).next(),m.label=10;case 10:if(c.done)return[3,13];if(!(s=c.value).execute)return[3,12];return[4,s.execute((0,k.pi)({},t))];case 11:if(null===(a=m.sent()))return n({event:t,code:0,message:""}),[2];t=a,m.label=12;case 12:return c=l.next(),[3,10];case 13:return[3,16];case 14:return f={error:m.sent()},[3,16];case 15:try{c&&!c.done&&(p=l.return)&&p.call(l)}finally{if(f)throw f.error}return[7];case 16:return Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){var n=(0,k.pi)({},t);return e.execute(n).catch(function(e){return D(n,0,String(e))})})).then(function(e){var r=(0,k.CR)(e,1)[0]||D(t,100,"Event not tracked, no destination plugins on the instance");n(r)}),[2]}})})},e.prototype.flush=function(){return(0,k.mG)(this,void 0,void 0,function(){var e,t=this;return(0,k.Jh)(this,function(n){switch(n.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return t.apply(e)}))];case 1:return n.sent(),[4,Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){return e.flush&&e.flush()}))];case 2:return n.sent(),[2]}})})},e}(),X=function(e,t){return(0,k.pi)((0,k.pi)({},t),{event_type:v.IDENTIFY,user_properties:e.getUserProperties()})},K=function(e,t,n,r){var i;return(0,k.pi)((0,k.pi)({},r),{event_type:v.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:((i={})[e]=t,i)})},V=function(e,t,n){var r,i=new H;return i.set(e,t),(0,k.pi)((0,k.pi)({},n),{event_type:v.IDENTIFY,user_properties:i.getUserProperties(),groups:((r={})[e]=t,r)})},Q=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new W(this),this.name=e}return e.prototype._init=function(e){return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(e){return(0,k.mG)(this,void 0,void 0,function(){var t,n,r,i,o,s;return(0,k.Jh)(this,function(a){switch(a.label){case 0:t=this[e],this[e]=[],a.label=1;case 1:a.trys.push([1,8,9,10]),r=(n=(0,k.XA)(t)).next(),a.label=2;case 2:if(r.done)return[3,7];if(!((i=(0,r.value)())&&"promise"in i))return[3,4];return[4,i.promise];case 3:return a.sent(),[3,6];case 4:return[4,i];case 5:a.sent(),a.label=6;case 6:return r=n.next(),[3,2];case 7:return[3,10];case 8:return o={error:a.sent()},[3,10];case 9:try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(o)throw o.error}return[7];case 10:if(!this[e].length)return[3,12];return[4,this.runQueuedFunctions(e)];case 11:a.sent(),a.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,n){var r=(0,k.pi)((0,k.pi)((0,k.pi)({},"string"==typeof e?{event_type:e}:e),n),t&&{event_properties:t});return O(this.dispatch(r))},e.prototype.identify=function(e,t){var n=X(e,t);return O(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=K(e,t,n,r);return O(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=V(e,t,n);return O(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=(0,k.pi)((0,k.pi)({},t),{event_type:v.REVENUE,event_properties:e.getEventProperties()});return O(this.dispatch(n))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),O())},e.prototype._addPlugin=function(e){return O(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),O())},e.prototype._removePlugin=function(e){return O(this.timeline.deregister(e))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(D(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,k.mG)(this,void 0,void 0,function(){var t=this;return(0,k.Jh)(this,function(n){return this.isReady?[2,this.process(e)]:[2,new Promise(function(n){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,n))})]})})},e.prototype.process=function(e){return(0,k.mG)(this,void 0,void 0,function(){var t,n;return(0,k.Jh)(this,function(r){switch(r.label){case 0:if(r.trys.push([0,2,,3]),this.config.optOut)return[2,D(e,0,"Event skipped due to optOut config")];return[4,this.timeline.push(e)];case 1:return 200===(t=r.sent()).code?this.config.loggerProvider.log(t.message):100===t.code?this.config.loggerProvider.warn(t.message):this.config.loggerProvider.error(t.message),[2,t];case 2:return n=String(r.sent()),this.config.loggerProvider.error(n),[2,t=D(e,0,n)];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!e));return}this._setOptOut(e)},e.prototype._setOptOut=function(e){this.config.optOut=!!e},e.prototype.flush=function(){return O(this.timeline.flush())},e}(),Z=function(e,t){return"boolean"==typeof e?e:(null==e?void 0:e[t])!==!1},Y=function(e){return Z(e,"attribution")},ee=function(e){return Z(e,"pageViews")},et=function(e){return Z(e,"sessions")},en=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},er=function(e){if(en(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},ei=function(e){var t,n=function(){return!1},r=void 0,i=e.pageCounter;return ee(e.defaultTracking)&&(n=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:r,eventType:t,pageCounter:i}},eo="dclid",es="fbclid",ea="gbraid",eu="gclid",el="ko_click_id",ec="li_fat_id",ed="msclkid",eh="rtd_cid",ef="ttclid",ep="twclid",em="wbraid",eg={utm_campaign:void 0,utm_c
1ontent:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},ev=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},ey=function(e,t,n,r){void 0===r&&(r=!0),e.referrer;var i=e.referring_domain,o=(0,k._T)(e,["referrer","referring_domain"]),s=t||{},a=(s.referrer,s.referring_domain),u=(0,k._T)(s,["referrer","referring_domain"]);if(e_(n.excludeReferrers,e.referring_domain)||!r&&Object.values(e).every(function(e){return!e})&&t)return!1;var l=JSON.stringify(o)!==JSON.stringify(u),c=ev(i||"")!==ev(a||"");return!t||l||c},e_=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},eb=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},ew=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},eS=function(){var e,t=ew();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var n=t.split("=",2),r=eE(n[0]),i=eE(n[1]);return i&&(e[r]=i),e},{}):{}},eE=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},ek=function(){function e(){}return e.prototype.parse=function(){return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(e){return[2,(0,k.pi)((0,k.pi)((0,k.pi)((0,k.pi)({},eg),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=eS();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!==(t=null===(e=n.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(e){}return n},e.prototype.getClickIds=function(){var e,t=eS();return(e={})[eo]=t[eo],e[es]=t[es],e[ea]=t[ea],e[eu]=t[eu],e[el]=t[el],e[ec]=t[ec],e[ed]=t[ed],e[eh]=t[eh],e[ef]=t[ef],e[ep]=t[ep],e[em]=t[em],e},e}(),eT=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e},ex=function(){function e(e,t){var n,r,i;this.shouldTrackNewCampaign=!1,this.options=(0,k.pi)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:eb(null===(n=t.cookieOptions)||void 0===n?void 0:n.domain)},e),this.storage=t.cookieStorage,this.storageKey=(r=t.apiKey,void 0===i&&(i=10),["AMP","MKTG",r.substring(0,i)].filter(Boolean).join("_")),this.currentCampaign=eg,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return(0,k.mG)(this,void 0,void 0,function(){var e,t;return(0,k.Jh)(this,function(n){switch(n.label){case 0:return[4,this.fetchCampaign()];case 1:if(t=k.CR.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||eT(this.sessionTimeout,this.lastEventTime),!ey(this.currentCampaign,this.previousCampaign,this.options,e))return[3,3];return this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(e){switch(e.label){case 0:return[4,Promise.all([new ek().parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t,n,r=(t=this.currentCampaign,n=this.options,X(Object.entries((0,k.pi)((0,k.pi)({},eg),t)).reduce(function(e,t){var r,i=(0,k.CR)(t,2),o=i[0],s=i[1];return(e.setOnce("initial_".concat(o),null!==(r=null!=s?s:n.initialEmptyValue)&&void 0!==r?r:"EMPTY"),s)?e.set(o,s):e.unset(o)},new H)));return e&&(r.event_id=e),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),eI=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:eC(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),eC=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},eO=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),eA=function(){return(eA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},eR=function(e,t){var n=typeof e;if(n!==typeof t)return!1;for(var r=0,i=["string","number","boolean","undefined"];r<i.length;r++)if(i[r]===n)return e===t;if(null==e&&null==t)return!0;
1if(null==e||null==t||e.length!==t.length)return!1;var o=Array.isArray(e),s=Array.isArray(t);if(o!==s)return!1;if(o&&s){for(var a=0;a<e.length;a++)if(!eR(e[a],t[a]))return!1}else{if(!eR(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var u=!0;return Object.keys(e).forEach(function(n){eR(e[n],t[n])||(u=!1)}),u}return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var eM=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=eA({},this.identity.userProperties),n=eA(eA({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},setOptOut:function(e){return n.optOut=e,this},updateUserProperties:function(e){for(var t=n.userProperties||{},r=0,i=Object.entries(e);r<i.length;r++){var o=i[r],s=o[0],a=o[1];switch(s){case"$set":for(var u=0,l=Object.entries(a);u<l.length;u++){var c=l[u],d=c[0],h=c[1];t[d]=h}break;case"$unset":for(var f=0,p=Object.keys(a);f<p.length;f++){var d=p[f];delete t[d]}break;case"$clearAll":t={}}}return n.userProperties=t,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return eA({},this.identity)},e.prototype.setIdentity=function(e){var t=eA({},this.identity);this.identity=eA({},e),eR(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),eD="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:self,eP=function(){function e(){this.identityStore=new eM,this.eventBridge=new eO,this.applicationContextProvider=new eI}return e.getInstance=function(t){return eD.analyticsConnectorInstances||(eD.analyticsConnectorInstances={}),eD.analyticsConnectorInstances[t]||(eD.analyticsConnectorInstances[t]=new e),eD.analyticsConnectorInstances[t]},e}(),eL=function(e){return void 0===e&&(e="$default_instance"),eP.getInstance(e)},eN=function(e,t){eL(t).identityStore.editIdentity().setUserId(e).commit()},ej=function(e,t){eL(t).identityStore.editIdentity().setDeviceId(e).commit()},eU=function(){function e(){this.name="identity",this.type="before",this.identityStore=eL().identityStore}return e.prototype.execute=function(e){return(0,k.mG)(this,void 0,void 0,function(){var t;return(0,k.Jh)(this,function(n){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(t){return e.instanceName&&(this.identityStore=eL(e.instanceName).identityStore),[2]})})},e}(),eF=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,o=r.args,s=r.resolve,a=e&&e[i];if("function"==typeof a){var u=a.apply(e,o);"function"==typeof s&&s(null==u?void 0:u.promise)}}return e},e$=function(e){return e&&void 0!==e._q},eq=function(){if("undefined"==typeof navigator)return"";var e,t,n,r,i=navigator.userLanguage;return null!==(r=null!==(n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:navigator.language)&&void 0!==n?n:i)&&void 0!==r?r:""},eB=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="amplitude-ts/".concat("2.11.9"),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){var t,n;return(0,k.mG)(this,void 0,void 0,function(){var r,i,o;return(0,k.Jh)(this,function(s){return r=new Date().getTime(),i=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1,o=null!==(n=e.event_id)&&void 0!==n?n:i+1,this.config.lastEventId=o,e.time||(this.config.lastEventTime=r),[2,(0,k.pi)((0,k.pi)((0,k.pi)((0,k.pi)((0,k.pi)((0,k.pi)((0,k.pi)((0,k.pi)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:r},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:eq()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:$(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:o,library:this.library,user_agent:this.userAgent})]})})},e}(),eJ=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return(0,k.mG)(this,void 0,void 0,function(){var t;return(0,k.Jh)(this,function(n){switch(n.label){case 0:return[4,this.get(e)];case 1:return[2,(t=n.sent())?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(n){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),eG=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),["AMP",t,e.substring(0,n)].filter(
1Boolean).join("_")},eH=function(){function e(e){this.options=(0,k.pi)({},e)}return e.prototype.isEnabled=function(){return(0,k.mG)(this,void 0,void 0,function(){var t,n;return(0,k.Jh)(this,function(r){switch(r.label){case 0:if(!ew())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),n="AMP_TEST",r.label=1;case 1:return r.trys.push([1,4,5,7]),[4,t.set(n,e.testValue)];case 2:return r.sent(),[4,t.get(n)];case 3:return[2,r.sent()===e.testValue];case 4:return r.sent(),[2,!1];case 5:return[4,t.remove(n)];case 6:return r.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){var t;return(0,k.mG)(this,void 0,void 0,function(){var n,r;return(0,k.Jh)(this,function(i){switch(i.label){case 0:return[4,this.getRaw(e)];case 1:if(!(n=i.sent()))return[2,void 0];try{if(r=null!==(t=ez(n))&&void 0!==t?t:eW(n),void 0===r)return console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0];return[2,JSON.parse(r)]}catch(t){return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(e){var t,n;return(0,k.mG)(this,void 0,void 0,function(){var r,i;return(0,k.Jh)(this,function(o){return(i=(null!==(n=null===(t=null==(r=ew())?void 0:r.document)||void 0===t?void 0:t.cookie.split("; "))&&void 0!==n?n:[]).find(function(t){return 0===t.indexOf(e+"=")}))?[2,i.substring(e.length+1)]:[2,void 0]})})},e.prototype.set=function(e,t){var n;return(0,k.mG)(this,void 0,void 0,function(){var r,i,o,s,a,u,l;return(0,k.Jh)(this,function(c){try{r=null!==(n=this.options.expirationDays)&&void 0!==n?n:0,i=null!==t?r:-1,o=void 0,i&&((s=new Date).setTime(s.getTime()+864e5*i),o=s),a="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(a+="; expires=".concat(o.toUTCString())),a+="; path=/",this.options.domain&&(a+="; domain=".concat(this.options.domain)),this.options.secure&&(a+="; Secure"),this.options.sameSite&&(a+="; SameSite=".concat(this.options.sameSite)),(u=ew())&&(u.document.cookie=a)}catch(t){l=t instanceof Error?t.message:String(t),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(l))}return[2]})})},e.prototype.remove=function(e){return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(e){return[2]})})},e}(),ez=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},eW=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},eX=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,n,r,i,o,s,a,u,l,c,d,h,f,m,g,v,y,_,b,w,S,E,k=e.code||0,T=this.buildStatus(k);switch(T){case p.Success:return{status:T,statusCode:k,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(n=e.payload_size_bytes)&&void 0!==n?n:0,serverUploadTime:null!==(r=e.server_upload_time)&&void 0!==r?r:0}};case p.Invalid:return{status:T,statusCode:k,body:{error:null!==(i=e.error)&&void 0!==i?i:"",missingField:null!==(o=e.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(s=e.events_with_invalid_fields)&&void 0!==s?s:{},eventsWithMissingFields:null!==(a=e.events_with_missing_fields)&&void 0!==a?a:{},eventsWithInvalidIdLengths:null!==(u=e.events_with_invalid_id_lengths)&&void 0!==u?u:{},epsThreshold:null!==(l=e.eps_threshold)&&void 0!==l?l:0,exceededDailyQuotaDevices:null!==(c=e.exceeded_daily_quota_devices)&&void 0!==c?c:{},silencedDevices:null!==(d=e.silenced_devices)&&void 0!==d?d:[],silencedEvents:null!==(h=e.silenced_events)&&void 0!==h?h:[],throttledDevices:null!==(f=e.throttled_devices)&&void 0!==f?f:{},throttledEvents:null!==(m=e.throttled_events)&&void 0!==m?m:[]}};case p.PayloadTooLarge:return{status:T,statusCode:k,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case p.RateLimit:return{status:T,statusCode:k,body:{error:null!==(v=e.error)&&void 0!==v?v:"",epsThreshold:null!==(y=e.eps_threshold)&&void 0!==y?y:0,throttledDevices:null!==(_=e.throttled_devices)&&void 0!==_?_:{},throttledUsers:null!==(b=e.throttled_users)&&void 0!==b?b:{},exceededDailyQuotaDevices:null!==(w=e.exceeded_daily_quota_devices)&&void 0!==w?w:{},exceededDailyQuotaUsers:null!==(S=e.exceeded_daily_quota_users)&&void 0!==S?S:{},throttledEvents:null!==(E=e.throttled_events)&&void 0!==E?E:[]}};case p.Timeout:default:return{status:T,statusCode:k}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?p.Success:429===e?p.RateLimit:413===e?p.PayloadTooLarge:408===e?p.Timeout:e>
1=400&&e<500?p.Invalid:e>=500?p.Failed:p.Unknown},e}(),eK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,k.ZT)(t,e),t.prototype.send=function(e,t){return(0,k.mG)(this,void 0,void 0,function(){var n,r;return(0,k.Jh)(this,function(i){switch(i.label){case 0:if("undefined"==typeof fetch)throw Error("FetchTransport is not supported");return[4,fetch(e,{headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"})];case 1:return[4,(n=i.sent()).text()];case 2:r=i.sent();try{return[2,this.buildResponse(JSON.parse(r))]}catch(e){return[2,this.buildResponse({code:n.status})]}return[2]}})})},t}(eX),eV=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,k.mG)(this,void 0,void 0,function(){var t,n,r;return(0,k.Jh)(this,function(i){switch(i.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),n=new e(this.storage),r="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,n.set(r,t)];case 2:return i.sent(),[4,n.get(r)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return(0,k.mG)(this,void 0,void 0,function(){var t;return(0,k.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:if(!(t=n.sent()))return[2,void 0];return[2,JSON.parse(t)];case 2:return n.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){var t;return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(n){return[2,(null===(t=this.storage)||void 0===t?void 0:t.getItem(e))||void 0]})})},e.prototype.set=function(e,t){var n;return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(r){try{null===(n=this.storage)||void 0===n||n.setItem(e,JSON.stringify(t))}catch(e){}return[2]})})},e.prototype.remove=function(e){var t;return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(n){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){var e;return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(e){}return[2]})})},e}(),eQ=function(e){function t(t){var n,r=this;return(r=e.call(this,null===(n=ew())||void 0===n?void 0:n.localStorage)||this).loggerProvider=null==t?void 0:t.loggerProvider,r}return(0,k.ZT)(t,e),t.prototype.set=function(t,n){var r;return(0,k.mG)(this,void 0,void 0,function(){var i;return(0,k.Jh)(this,function(o){switch(o.label){case 0:if(!(Array.isArray(n)&&n.length>1e3))return[3,2];return i=n.length-1e3,[4,e.prototype.set.call(this,t,n.slice(0,1e3))];case 1:return o.sent(),null===(r=this.loggerProvider)||void 0===r||r.error("Failed to save ".concat(i," events because the queue length exceeded ").concat(1e3,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,n)];case 3:o.sent(),o.label=4;case 4:return[2]}})})},t}(eV),eZ=function(e){function t(){var t;return e.call(this,null===(t=ew())||void 0===t?void 0:t.sessionStorage)||this}return(0,k.ZT)(t,e),t}(eV),eY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return(0,k.ZT)(t,e),t.prototype.send=function(e,t){return(0,k.mG)(this,void 0,void 0,function(){var n=this;return(0,k.Jh)(this,function(r){return[2,new Promise(function(r,i){"undefined"==typeof XMLHttpRequest&&i(Error("XHRTransport is not supported."));var o=new XMLHttpRequest;o.open("POST",e,!0),o.onreadystatechange=function(){if(o.readyState===n.state.done){var e=o.responseText;try{r(n.buildResponse(JSON.parse(e)))}catch(e){r(n.buildResponse({code:o.status}))}}},o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Accept","*/*"),o.send(JSON.stringify(t))})]})})},t}(eX),e0=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,k.ZT)(t,e),t.prototype.send=function(e,t){return(0,k.mG)(this,void 0,void 0,function(){var n=this;return(0,k.Jh)(this,function(r){return[2,new Promise(function(r,i){var o=ew();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var s=JSON.stringify(t);if(o.navigator.sendBeacon(e,JSON.stringify(t)))return r(n.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:s.length,server_upload_time:Date.now()}));return r(n.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(eX),e1=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},e2=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},e3="[Amplitude]",e4="".concat(e3," Form Started"),e5="".concat(e3," Form Submitted"),e8="".concat(e3," File Downloaded"),e6="session_start",e9="session_end",e7="".concat(e3," File Extension"),te="".concat(e3," File Name"),tt="".concat(e3," Link ID"),tn="".concat(e3," Link Text"),tr="".concat(e3," Link URL"),ti="".concat(e3," Form ID"),to="".concat(e3," Form Name"),ts="".concat(e3," Form Destination"),ta="cookie",tu=function(e){function t(t,n,r,i,o,s,a,u,l,c,d,h,p,m,g,v,y,_,b,w,S,E,k,T,x,I,C,O,A,R,M,D,P,N){void 0===r&&(r=new eJ),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===u&&(u=1e3),void 0===l&&(l=5),void 0===c&&(c=30),void 0===d&&(d=ta),void 0===v&&(v=new L),void 0===y&&(y=f.Warn),void 0===b&&(b=!1),void 0===w&&(w=!1),void 0===k&&(k=""),void 0===T&&(T="US"),void 0===I&&(I=18e5),void 0===C&&(C=new eQ({loggerProvider:v})),void 0===O&&(O={ipAddress:!0,language:!0,platform:!0}),void 0===A&&(A="fetch"),void 0===R&&(R=!1),void 0===M&&(M=!1);var j=e.call(this,{apiKey:t,storageProvider:C,transportProvider:tc(A)})||this;return j.apiKey=t,j.appVersion=n,j.cookieOptions=i,j.defaultTracking=o,j.autocapture=s,j.flushIntervalMillis=u,j.flushMaxRetries=l,j.flushQueueSize=c,j.identityStorage=d,j.ingestionMetadata=h,j.instanceName=p,j.loggerProvider=v,j.logLevel=y,j.minIdLength=_,j.offline=b,j.partnerId=S,j.plan=E,j.serverUrl=k,j.serverZone=T,j.sessionTimeout=I,j.storageProvider=C,j.trackingOptions=O,j.transport=A,j.useBatch=R,j.fetchRemoteConfig=M,j._optOut=!1,j._cookieStorage=r,j.deviceId=a,j.lastEventId=m,j.lastEventTime=g,j.optOut=w,j.sessionId=x,j.pageCounter=P,j.userId=D,j.debugLogsEnabled=N,j.loggerProvider.enable(N?f.Debug:j.logLevel),j}return(0,k.ZT)(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(eG(this.apiKey),e)},t}(j),tl=function(e,t){switch(void 0===e&&(e=ta),void 0===t&&(t={}),e){case"localStorage":return new eQ;case"sessionStorage":return new eZ;case"none":return new eJ;default:return new eH((0,k.pi)((0,k.pi)({},t),{expirationDays:t.expiration}))}},tc=function(e){return"xhr"===e?new eY:"beacon"===e?new e0:new eK},td=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},th=function(){var e,t=td();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var n=t.split("=",2),r=tf(n[0]),i=tf(n[1]);return i&&(e[r]=i),e},{}):{}},tf=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},tp="dclid",tm="fbclid",tg="gbraid",tv="gclid",ty="ko_click_id",t_="li_fat_id",tb="msclkid",tw="rtd_cid",tS="ttclid",tE="twclid",tk="wbraid",tT={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},tx=function(){function e(){}return e.prototype.parse=function(){return(0,k.mG)(this,void 0,void 0,function(){return(0,k.Jh)(this,function(e){return[2,(0,k.pi)((0,k.pi)((0,k.pi)((0,k.pi)({},tT),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=th();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!==(t=null===(e=n.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(e){}return n},e.prototype.getClickIds=function(){var e,t=th();return(e={})[tp]=t[tp],e[tm]=t[tm],e[tg]=t[tg],e[tv]=t[tv],e[ty]=t[ty],e[t_]=t[t_],e[tb]=t[tb],e[tw]=t[tw],e[tS]=t[tS],e[tE]=t[tE],e[tk]=t[tk],e},e}(),tI=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},tC=function(e){void 0===e&&(e={});var t,n,r,i=td(),o=void 0,s=e.trackOn,a=e.trackHistoryChanges,u=e.eventType,l=void 0===u?"[Amplitude] Page Viewed":u,c=function(e){var t=e;try{t=decodeURI(e)}catch(e){null==o||o.error("Malformed URI sequence: ",e)}return t},d=function(){return(0,k.mG)(void 0,void 0,void 0,function(){var e,t,n;return(0,k.Jh)(this,function(r){switch(r.label){case 0:return e=c("undefined"!=typeof location&&location.href||""),n={event_type:l},t=[{}],[4,tO()];case 1:return[2,(n.event_properties=k.pi.apply(void 0,[k.pi.apply(void 0,t.concat([r.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":e,"[Amplitude] Page Path":"undefined"!=typeof location&&c(location.pathname)||"","[Amplitude] Page Title":"undefined"!=typeof document&&document.title||"","[Amplitude] Page URL":e.split("?")[0]}]),n)]}})})},h=function(){return void 0===s||"function"==typeof s&&s()},f="undefined"!=typeof location?location.href:null,p=function(){return(0,k.mG)(void 0,void 0,void 0,function(){var e,n,r,i;return(0,k.Jh)(this,function(s){switch(s.label){case 0:if(n=tR(a,e=location.href,f||"")&&h(),f=e,!n)return[3,4];if(null==o||o.log("Tracking page view event"),null!=t)return[3,1];return[3,3];case 1:return i=(r=t).track,[4,d()];case 2:i.apply(r,[s.sent()]),s.label=3;case 3:s.label=4;case 4:return[2]}})})},m=function(){p()};return{name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,s){return(0,k.mG)(void 0,void 0,void 0,function(){var a,u;return(0,k.Jh)(this,function(l){switch(l.label){case 0:if(t=s,r=e,(o=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),i&&(i.addEventListener("popstate",m),n=i.history.pushState,i.history.pushState=new Proxy(i.history.pushState,{apply:function(e,t,n){var r=(0,k.CR)(n,3),i=r[0],o=r[1],s=r[2];e.apply(t,[i,o,s]),p()}})),!h())return[3,2];return o.log("Tracking page view event"),u=(a=t).track,[4,d()];case 1:u.apply(a,[l.sent()]),l.label=2;case 2:return[2]}})})},execute:function(e){return(0,k.mG)(void 0,void 0,void 0,function(){var t;return(0,k.Jh)(this,function(n){switch(n.label){case 0:if(!("attribution"===s&&tA(e)))return[3,2];
1return null==o||o.log("Enriching campaign event to page view event with campaign parameters"),[4,d()];case 1:t=n.sent(),e.event_type=t.event_type,e.event_properties=(0,k.pi)((0,k.pi)({},e.event_properties),t.event_properties),n.label=2;case 2:return r&&e.event_type===l&&(r.pageCounter=r.pageCounter?r.pageCounter+1:1,e.event_properties=(0,k.pi)((0,k.pi)({},e.event_properties),{"[Amplitude] Page Counter":r.pageCounter})),[2,e]}})})},teardown:function(){return(0,k.mG)(void 0,void 0,void 0,function(){return(0,k.Jh)(this,function(e){return i&&(i.removeEventListener("popstate",m),n&&(i.history.pushState=n)),[2]})})}}},tO=function(){return(0,k.mG)(void 0,void 0,void 0,function(){var e;return(0,k.Jh)(this,function(t){switch(t.label){case 0:return e=tI,[4,new tx().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},tA=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[m.SET]||{},r=t[m.UNSET]||{},i=(0,k.ev)((0,k.ev)([],(0,k.CR)(Object.keys(n)),!1),(0,k.CR)(Object.keys(r)),!1);return Object.keys(tT).every(function(e){return i.includes(e)})}return!1},tR=function(e,t,n){if("pathOnly"===e){if(""==n)return!0;var r=new URL(t),i=new URL(n);return r.origin+r.pathname!==i.origin+i.pathname}return t!==n},tM=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(t,r){return(0,k.mG)(void 0,void 0,void 0,function(){var i;return(0,k.Jh)(this,function(o){return null===(i=ew())||void 0===i||i.addEventListener("load",function(){if(!r){t.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if("undefined"!=typeof document){var i=function(e){var t=!1;n(e,"change",function(){var n;t||r.track(e4,((n={})[ti]=tD(e.id),n[to]=tD(e.name),n[ts]=e.action,n)),t=!0}),n(e,"submit",function(){var n,i;t||r.track(e4,((n={})[ti]=tD(e.id),n[to]=tD(e.name),n[ts]=e.action,n)),r.track(e5,((i={})[ti]=tD(e.id),i[to]=tD(e.name),i[ts]=e.action,i)),t=!1})};Array.from(document.getElementsByTagName("form")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"FORM"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}}),[2]})})},execute:function(e){return(0,k.mG)(void 0,void 0,void 0,function(){return(0,k.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,k.mG)(void 0,void 0,void 0,function(){return(0,k.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},tD=function(e){if("string"==typeof e)return e},tP=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(t,r){return(0,k.mG)(void 0,void 0,void 0,function(){var i;return(0,k.Jh)(this,function(o){return null===(i=ew())||void 0===i||i.addEventListener("load",function(){if(!r){t.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if("undefined"!=typeof document){var i=function(e){try{t=new URL(e.href,window.location.href)}catch(e){return}var t,i=o.exec(t.href),s=null==i?void 0:i[1];s&&n(e,"click",function(){var n;s&&r.track(e8,((n={})[e7]=s,n[te]=t.pathname,n[tt]=e.id,n[tn]=e.text,n[tr]=e.href,n))})},o=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName("a")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEac
1h(function(e){"A"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}}),[2]})})},execute:function(e){return(0,k.mG)(void 0,void 0,void 0,function(){return(0,k.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,k.mG)(void 0,void 0,void 0,function(){return(0,k.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},tL=!1,tN=function(e){tL||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),tL=!0)},tj=function(){var e=ew(),t=[],n=function(n,r){e&&(e.addEventListener(n,r),t.push({type:n,handler:r}))},r=function(){t.forEach(function(t){var n=t.type,r=t.handler;e&&e.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(e,t){return(0,k.mG)(void 0,void 0,void 0,function(){return(0,k.Jh)(this,function(r){return"undefined"==typeof navigator?(e.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),e.offline=!1):(e.offline=!navigator.onLine,n("online",function(){e.loggerProvider.debug("Network connectivity changed to online."),e.offline=!1,setTimeout(function(){t.flush()},e.flushIntervalMillis)}),n("offline",function(){e.loggerProvider.debug("Network connectivity changed to offline."),e.offline=!0})),[2]})})},teardown:function(){return(0,k.mG)(void 0,void 0,void 0,function(){return(0,k.Jh)(this,function(e){return r(),[2]})})}}};(u=y||(y={})).Unknown="unknown",u.Skipped="skipped",u.Success="success",u.RateLimit="rate_limit",u.PayloadTooLarge="payload_too_large",u.Invalid="invalid",u.Failed="failed",u.Timeout="Timeout",u.SystemError="SystemError";var tU=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,n,r,i,o,s,a,u,l,c,d,h,f,p,m,g,v,_,b,w,S,E,k=e.code||0,T=this.buildStatus(k);switch(T){case y.Success:return{status:T,statusCode:k,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(n=e.payload_size_bytes)&&void 0!==n?n:0,serverUploadTime:null!==(r=e.server_upload_time)&&void 0!==r?r:0}};case y.Invalid:return{status:T,statusCode:k,body:{error:null!==(i=e.error)&&void 0!==i?i:"",missingField:null!==(o=e.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(s=e.events_with_invalid_fields)&&void 0!==s?s:{},eventsWithMissingFields:null!==(a=e.events_with_missing_fields)&&void 0!==a?a:{},eventsWithInvalidIdLengths:null!==(u=e.events_with_invalid_id_lengths)&&void 0!==u?u:{},epsThreshold:null!==(l=e.eps_threshold)&&void 0!==l?l:0,exceededDailyQuotaDevices:null!==(c=e.exceeded_daily_quota_devices)&&void 0!==c?c:{},silencedDevices:null!==(d=e.silenced_devices)&&void 0!==d?d:[],silencedEvents:null!==(h=e.silenced_events)&&void 0!==h?h:[],throttledDevices:null!==(f=e.throttled_devices)&&void 0!==f?f:{},throttledEvents:null!==(p=e.throttled_events)&&void 0!==p?p:[]}};case y.PayloadTooLarge:return{status:T,statusCode:k,body:{error:null!==(m=e.error)&&void 0!==m?m:""}};case y.RateLimit:return{status:T,statusCode:k,body:{error:null!==(g=e.error)&&void 0!==g?g:"",epsThreshold:null!==(v=e.eps_threshold)&&void 0!==v?v:0,throttledDevices:null!==(_=e.throttled_devices)&&void 0!==_?_:{},throttledUsers:null!==(b=e.throttled_users)&&void 0!==b?b:{},exceededDailyQuotaDevices:null!==(w=e.exceeded_daily_quota_devices)&&void 0!==w?w:{},exceededDailyQuotaUsers:null!==(S=e.exceeded_daily_quota_users)&&void 0!==S?S:{},throttledEvents:null!==(E=e.throttled_events)&&void 0!==E?E:[]}};case y.Timeout:default:return{status:T,statusCode:k}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?y.Success:429===e?y.RateLimit:413===e?y.PayloadTooLarge:408===e?y.Timeout:e>
1=400&&e<500?y.Invalid:e>=500?y.Failed:y.Unknown},e}();(l=_||(_={})).Unknown="unknown",l.Skipped="skipped",l.Success="success",l.RateLimit="rate_limit",l.PayloadTooLarge="payload_too_large",l.Invalid="invalid",l.Failed="failed",l.Timeout="Timeout",l.SystemError="SystemError",(c=b||(b={})).US="US",c.EU="EU";var tF="Remote config fetch rejected due to timeout after 5 seconds",t$="Unexpected error occurred",tq=function(){function e(e){var t=e.localConfig,n=e.configKeys,r=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,n){return(0,k.mG)(r,void 0,void 0,function(){var r,i,o;return(0,k.Jh)(this,function(s){switch(s.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=s.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-r,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-r,[2,void 0]}})})},this.fetchWithTimeout=function(e){return(0,k.mG)(r,void 0,void 0,function(){var t,n,r;return(0,k.Jh)(this,function(i){switch(i.label){case 0:return t=new AbortController,n=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return r=i.sent(),clearTimeout(n),[2,r]}})})},this.fetchRemoteConfig=function(e,t){return(0,k.mG)(r,void 0,void 0,function(){var n,r,i,o,s,a,u,l,c,d,h;return(0,k.Jh)(this,function(f){switch(f.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:tF})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),f.label=1;case 1:f.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=(0,k.XA)(this.configKeys)).next();!i.done;i=r.next())o=i.value,n.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(c)throw c.error}}return t&&n.set("session_id",String(t)),s={headers:{Accept:"*/*"},method:"GET"},a="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(a,(0,k.pi)((0,k.pi)({},s),{signal:e}))];case 2:if(null===(u=f.sent()))return[2,this.completeRequest({err:t$})];switch(new tU().buildStatus(u.status)){case _.Success:return this.attempts=0,[2,this.parseAndStoreConfig(u)];case _.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}return[3,4];case 3:if(l=f.sent(),e.aborted)return[2,this.completeRequest({err:tF})];return[2,this.completeRequest({err:null!==(h=l.message)&&void 0!==h?h:t$})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,k.mG)(r,void 0,void 0,function(){var n=this;return(0,k.Jh)(this,function(r){switch(r.label){case 0:return[4,new Promise(function(e){return setTimeout(e,n.attempts*n.retryTimeout)})];case 1:return r.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return(0,k.mG)(r,void 0,void 0,function(){var t;return(0,k.Jh)(this,function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.serverZone===b.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===b.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,n=e.success;if(t)throw Error(t);n&&this.localConfig.loggerProvider.log(n)},e}(),tB=function(e){var t=e.localConfig,n=e.configKeys;return(0,k.mG)(void 0,void 0,void 0,function(){return(0,k.Jh)(this,function(e){return[2,new tq({localConfig:t,configKeys:n})]})})},tJ=function(){function e(e){this.config=e,this.config.loggerProvider.debug("Local configuration before merging with remote config",JSON.stringify(this.config,null,2))}return e.prototype.initialize=function(){return(0,k.mG)(this,void 0,void 0,function(){var e;return(0,k.Jh)(this,function(t){switch(t.label){case 0:return e=this,[4,tB({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return e.remoteConfigFetch=t.sent(),[2]}})})},e.prototype.generateJoinedConfig=function(){var e,t,n,r;return(0,k.mG)(this,void 0,void 0,function(){var i,o,s;return(0,k.Jh)(this,function(a){switch(a.label){case 0:if(a.trys.push([0,3,,4]),!(o=this.remoteConfigFetch))return[3,2];return[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)];case 1:o=a.sent(),a.label=2;case 2:return i=o,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(i,null,2)),i&&"autocapture"in i&&("boolean"==typeof i.autocapture&&(this.config.autocapture=i.autocapture),"object"==typeof i.autocapture&&(void 0===this.config.autocapture&&(this.config.autocapture=i.autocapture),"boolean"==typeof this.config.autocapture&&(this.config.autocapture=(0,k.pi)({attribution:this.config.autocapture,fileDownloads:this.config.autocapture,formInteractions:this.config.autocapture,pageViews:this.config.autocapture,sessions:this.config.autocapture,elementInteractions:this.config.autocapture},i.autocapture)),"object"==typeof this.config.autocapture&&(this.config.autocapture=(0,k.pi)((0,k.pi)({},this.config.autocapture),i.autocapture))),this.config.defaultTracking=this.config.autocapture),this.config.loggerProvider.debug("Joined configuration: ",JSON.stringify(this.config,null,2)),null!==(e=(r=this.config).requestMetadata)&&void 0!==e||(r.requestMetadata=new F),(null===(t=this.remoteConfigFetch)||void 0===t?void 0:t.metrics.fetchTimeAPISuccess)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_success",this.remoteConfigFetch.metrics.fetchTimeAPISuccess),(null===(n=this.remoteConfigFetch)||void 0===n?void 0:n.metrics.fetchTimeAPIFail)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_fail",this.remoteConfigFetch.metrics.fetchTimeAPIFail),[3,4];case 3:return s=a.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",s),[3,4];case 4:return[2,this.config]}})})},e}(),tG=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],tH=["div","span","h1","h2","h3","h4","h5","h6"],tz="[Amplitude] Element Clicked",tW="[Amplitude] Element Tag",tX="[Amplitude] Element Text",tK="[Amplitude] Element Selector",tV="[Amplitude] Page URL",tQ="https://app.amplitude.com",tZ={US:tQ,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},tY="amp-visual-tagging-selector-highlight",t0=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function t1(e){return"function"==typeof e}function t2(e){return t1(null==e?void 0:e.then)}function t3(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var t4=t3(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function t5(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var t8=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,n,r,i,o=this._parentage;if(o){if(this._parentage=null,Array.isArray(o))try{for(var s=(0,k.XA)(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this)}var u=this.initialTeardown;
1if(t1(u))try{u()}catch(e){i=e instanceof t4?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var c=(0,k.XA)(l),d=c.next();!d.done;d=c.next()){var h=d.value;try{t9(h)}catch(e){i=null!=i?i:[],e instanceof t4?i=(0,k.ev)((0,k.ev)([],(0,k.CR)(i)),(0,k.CR)(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new t4(i)}},t.prototype.add=function(e){var n;if(e&&e!==this){if(this.closed)t9(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&t5(t,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&t5(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}();function t6(e){return e instanceof t8||e&&"closed"in e&&t1(e.remove)&&t1(e.add)&&t1(e.unsubscribe)}function t9(e){t1(e)?e():e.unsubscribe()}t8.EMPTY;var t7={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ne={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ne.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,(0,k.ev)([e,t],(0,k.CR)(n))):setTimeout.apply(void 0,(0,k.ev)([e,t],(0,k.CR)(n)))},clearTimeout:function(e){var t=ne.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function nt(e){ne.setTimeout(function(){var t=t7.onUnhandledError;if(t)t(e);else throw e})}function nn(){}var nr=ni("C",void 0,void 0);function ni(e,t,n){return{kind:e,value:t,error:n}}var no=null,ns=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,t6(t)&&t.add(n)):n.destination=nf,n}return(0,k.ZT)(t,e),t.create=function(e,t,n){return new nc(e,t,n)},t.prototype.next=function(e){this.isStopped?nh(ni("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?nh(ni("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?nh(nr,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(t8),na=Function.prototype.bind;function nu(e,t){return na.call(e,t)}var nl=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){nd(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){nd(e)}else nd(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){nd(e)}},e}(),nc=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;return t1(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&t7.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&nu(t.next,o),error:t.error&&nu(t.error,o),complete:t.complete&&nu(t.complete,o)}):i=t,s.destination=new nl(i),s}return(0,k.ZT)(t,e),t}(ns);function nd(e){t7.useDeprecatedSynchronousErrorHandling?t7.useDeprecatedSynchronousErrorHandling&&no&&(no.errorThrown=!0,no.error=e):nt(e)}function nh(e,t){var n=t7.onStoppedNotification;n&&ne.setTimeout(function(){return n(e,t)})}var nf={closed:!0,next:nn,error:function(e){throw e},complete:nn},np="function"==typeof Symbol&&Symbol.observable||"@@observable";function nm(e){return e}var ng=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof ns||r&&t1(r.next)&&t1(r.error)&&t1(r.complete)&&t6(r)?e:new nc(e,t,n);return function(e){if(t7.useDeprecatedSynchronousErrorHandling){var t=!no;if(t&&(no={errorThrown:!1,error:null}),e(),t){var n=no,r=n.errorThrown,i=n.error;if(no=null,r)throw i}}else e()}(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=nv(t))(function(t,r){var i=new nc({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[np]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?nm:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=nv(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function nv(e){var t;return null!==(t=null!=e?e:t7.Promise)&&void 0!==t?t:Promise}function ny(e){return Symbol.asyncIterator&&t1(null==e?void 0:e[Symbol.asyncIterator])}function n_(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invali
1d object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var nb="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function nw(e){return t1(null==e?void 0:e[nb])}function nS(e){return(0,k.FC)(this,arguments,function(){var t,n,r;return(0,k.Jh)(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,k.qq)(t.read())];case 3:if(r=(n=i.sent()).value,!n.done)return[3,5];return[4,(0,k.qq)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,k.qq)(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function nE(e){return t1(null==e?void 0:e.getReader)}function nk(e){if(e instanceof ng)return e;if(null!=e){if(t1(e[np]))return new ng(function(t){var n=e[np]();if(t1(n.subscribe))return n.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(t0(e))return new ng(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()});if(t2(e))return new ng(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,nt)});if(ny(e))return nT(e);if(nw(e))return new ng(function(t){var n,r;try{for(var i=(0,k.XA)(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()});if(nE(e))return nT(nS(e))}throw n_(e)}function nT(e){return new ng(function(t){(function(e,t){var n,r,i,o;return(0,k.mG)(this,void 0,void 0,function(){var s;return(0,k.Jh)(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=(0,k.KL)(e),a.label=1;case 1:return[4,n.next()];case 2:if((r=a.sent()).done)return[3,4];if(s=r.value,t.next(s),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:a.sent()},[3,11];case 6:if(a.trys.push([6,,9,10]),!(r&&!r.done&&(o=n.return)))return[3,8];return[4,o.call(n)];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function nx(e){return function(t){if(t1(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function nI(e,t,n,r,i){return new nC(e,t,n,r,i)}var nC=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,k.ZT)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),n||null===(t=this.onFinalize)||void 0===t||t.call(this)}},t}(ns);function nO(e,t){return nx(function(n,r){var i=0;n.subscribe(nI(r,function(n){r.next(e.call(t,n,i++))}))})}function nA(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function nR(e,t,n){return(void 0===n&&(n=1/0),t1(t))?nR(function(n,r){return nO(function(e,i){return t(n,e,r,i)})(nk(e(n,r)))},n):("number"==typeof t&&(n=t),nx(function(t,r){var i,o,s,a,u,l,c,d,h;return i=n,s=[],a=0,u=0,l=!1,c=function(){!l||s.length||a||r.complete()},d=function(e){return a<i?h(e):s.push(e)},h=function(t){a++;var n=!1;nk(e(t,u++)).subscribe(nI(r,function(e){o?d(e):r.next(e)},function(){n=!0},void 0,function(){if(n)try{for(a--;s.length&&a<i;)!function(){var e=s.shift();h(e)}();c()}catch(e){r.error(e)}}))},t.subscribe(nI(r,d,function(){l=!0,c()})),function(){}}))}var nM=Array.isArray,nD=["addListener","removeListener"],nP=["addEventListener","removeEventListener"],nL=["on","off"];function nN(e,t,n,r){if(t1(n)&&(r=n,n=void 0),r)return nN(e,t,n).pipe((i=r,nO(function(e){return nM(e)?i.apply(void 0,(0,k.ev)([],(0,k.CR)(e))):i(e)})));var i,o=(0,k.CR)(t1(e.addEventListener)&&t1(e.removeEventListener)?nP.map(function(r){return function(i){return e[r](t,i,n)}}):t1(e.addListener)&&t1(e.removeListener)?nD.map(nj(e,t)):t1(e.on)&&t1(e.off)?nL.map(nj(e,t)):[],2),s=o[0],a=o[1];if(!s&&t0(e))return nR(function(e){return nN(e,t,n)})(nk(e));if(!s)throw TypeError("Invalid event target");return new ng(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return s(t),function(){return a(t)}})}function nj(e,t){return function(n){return function(r){return e[n](t,r)}}}function nU(e,t,n){for(var r=null,i=[],o=e,s=0;o&&"break"!==function(){var e,a,u,l,c=nz((e=o.getAttribute("id"))&&w.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null)||nz.apply(void 0,(0,k.ev)([],(0,k.CR)(Array.from(o.attributes).filter(function(e){return w.attr(e.name,e.value)}).map(function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}})),!1))||nz.apply(void 0,(0,k.ev)([],(0,k.CR)(Array.from(o.classList).filter(w.className).map(function(e){return{name:"."+CSS.escape(e),penalty:1}})),!1))||nz((a=o.tagName.toLowerCase(),w.tagName(a)?{name:a,penalty:2}:null))||[nJ()],d=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if("all"==t)d&&(c=c.concat(c.filter(nH).map(function(e){return nG(e,d)})));else if("two"==t)c=c.slice(0,1),d&&(c=c.concat(c.filter(nH).map(function(e){return nG(e,d)})));else if("one"==t){var h=(0,k.CR)(c=c.slice(0,1),1)[0];d&&nH(h)&&(c=[nG(h,d)])}else"none"==t&&(c=[nJ()],d&&(c=[nG(c[0],d)]));try{for(var f=(u=void 0,(0,k.XA)(c)),p=f.next();!p.done;p=f.next()){var h=p.value;h.level=s}}catch(e){u={error:e}}finally{try{p&&!p.done&&(l=f.return)&&l.call(f)}finally{if(u)throw u.error}}if(i.push(c),i.length>=w.seedMinLength&&(r=nF(i,n)))return"break";o=o.parentElement,s++}(););return(r||(r=nF(i,n)),!r&&n)?n():r}function nF(e,t){if(e.reduce(function(e,t){return e*t.length},1)>w.threshold)return t?t():null;var n,r,i=nX(function e(t,n){var r,i,o,s,a;return void 0===n&&(n=[]),(0,k.Jh)(this,function(u){switch(u.label){case 0:if(!(t.length>0))return[3,9];u.label=1;case 1:u.trys.push([1,6,7,8]),i=(r=(0,k.XA)(t[0])).next(),u.label=2;case 2:if(i.done)return[3,5];return o=i.value,[5,(0,k.XA)(e(t.slice(1,t.length),n.concat(o)))];case 3:u.sent(),u.label=4;case 4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return s={error:u.sent()},[3,8];case 7:try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}
1return[7];case 8:return[3,11];case 9:return[4,n];case 10:u.sent(),u.label=11;case 11:return[2]}})}(e));try{for(var o=(0,k.XA)(i),s=o.next();!s.done;s=o.next()){var a=s.value;if(nB(a))return a}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function n$(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function nq(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function nB(e){var t=n$(e);switch(S.querySelectorAll(t).length){case 0:throw Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function nJ(){return{name:"*",penalty:3}}function nG(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function nH(e){return"html"!==e.name&&!e.name.startsWith("#")}function nz(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(nW);return n.length>0?n:null}function nW(e){return null!=e}function nX(e){return(0,k.ev)([],(0,k.CR)(e),!1).sort(function(e,t){return nq(e)-nq(t)})}var nK=["input","select","textarea"],nV=function(e,t){return function(n,r){var i,o,s,a=e.pageUrlAllowlist,u=e.shouldTrackEventResolver,l=null===(o=null===(i=null==r?void 0:r.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===o?void 0:o.call(i);if(!l)return!1;if(u)return u(n,r);if(!n1(window.location.href,a))return!1;var c=String(null==r?void 0:r.getAttribute("type"))||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}if(t&&!t.some(function(e){var t;return!!(null===(t=null==r?void 0:r.matches)||void 0===t?void 0:t.call(r,e))}))return!1;switch(l){case"input":case"select":case"textarea":return"change"===n||"click"===n;default:var d=null===(s=null==window?void 0:window.getComputedStyle)||void 0===s?void 0:s.call(window,r);if(d&&"pointer"===d.getPropertyValue("cursor")&&"click"===n)return!0;return"click"===n}}},nQ=function(e){return!(null==e||"string"==typeof e&&(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))},nZ=function(e){var t,n,r,i=null===(n=null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase)||void 0===n?void 0:n.call(t),o=e instanceof HTMLElement&&(null===(r=e.getAttribute("contenteditable"))||void 0===r?void 0:r.toLowerCase())==="true";return!nK.includes(i)&&!o},nY=function(e){var t="";return nZ(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach(function(e){var n="";e&&3===e.nodeType?e.textContent&&(n=e.textContent):n=nY(e),t+=n.split(/(\s+)/).filter(nQ).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}),t},n0=function(e,t){var n,r,i="";try{return i=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n,r={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4};S=(n=(w=(0,k.pi)((0,k.pi)({},r),t)).root).nodeType===Node.DOCUMENT_NODE?n:n===r.root?n.ownerDocument:n;var i=nU(e,"all",function(){return nU(e,"two",function(){return nU(e,"one",function(){return nU(e,"none")})})});if(i){var o=nX(function e(t,n,r){var i,o,s;return void 0===r&&(r={counter:0,visited:new Map}),(0,k.Jh)(this,function(a){switch(a.label){case 0:if(!(t.length>2&&t.length>w.optimizedMinLength))return[3,5];i=1,a.label=1;case 1:var u;if(!(i<t.length-1))return[3,5];if(r.counter>w.maxNumberOfTries||(r.counter+=1,(o=(0,k.ev)([],(0,k.CR)(t),!1)).splice(i,1),s=n$(o),r.visited.has(s)))return[2];if(!(nB(o)&&(u=o,S.querySelector(n$(u))===n)))return[3,4];return[4,o];case 2:return a.sent(),r.visited.set(s,!0),[5,(0,k.XA)(e(o,n,r))];case 3:a.sent(),a.label=4;case 4:return i++,[3,1];case 5:return[2]}})}(i,e));return o.length>0&&(i=o[0]),n$(i)}throw Error("Selector was not found.")}(e,{className:function(e){return e!==tY},maxNumberOfTries:1e3})}catch(e){t&&t.warn("Failed to get selector with finder, use fallback strategy instead: ".concat(e.toString()))}var o=null===(r=null===(n=null==e?void 0:e.tagName)||void 0===n?void 0:n.toLowerCase)||void 0===r?void 0:r.call(n);o&&(i=o);var s=e.getAttribute("id"),a=e.getAttribute("class");if(s)i="#".concat(s);else if(a){var u=a.split(" ").filter(function(e){return e!==tY}).join(".");u&&(i="".concat(i,".").concat(u))}return i},n1=function(e,t){return!t||!t.length||t.some(function(t){return"string"==typeof t?e===t:e.match(t)})},n2=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null==r||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&0===r.trim().length||(t[n]=r),t},{})},n3=function(e){var t,n=e.parentElement;if(!n)return"";try{t=n.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(e){t=null}if(t){var r=t.textContent||"";return nQ(r)?r:""}return n3(n)},n4=function(e,t){return e?t.some(function(t){var n;return null===(n=null==e?void 0:e.matches)||void 0===n?void 0:n.call(e,t)})?e:n4(null==e?void 0:e.parentElement,t):null},n5=function(e,t){if(!e)return{};var n,r,i,o=null===(i=null===(r=null==e?void 0:e.tagName)||void 0===r?void 0:r.toLowerCase)||void 0===i?void 0:i.call(r),s=n0(e,t);return n2(((n={})[tW]=o,n[tX]=nY(e),n[tK]=s,n[tV]=window.location.href.split("?")[0],n))},n8=function(e){return null!==e.event.target&&!!e.closestTrackedAncestor},n6=function(){function e(e){var t=(void 0===e?{}:e).origin,n=this;this.endpoint=tQ,this.requestCallbacks={},this.onSelect=function(e){n.notify({action:"element-selected",data:e})},this.onTrack=function(e,t){"selector-mode-changed"===e?n.notify({action:"track-selector-mode-changed",data:t}):"selector-moved"===e&&n.notify({action:"track-selector-moved",data:t})},this.endpoint=void 0===t?tQ:t}return e.prototype.notify=function(e){var t,n,r,i;null===(n=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===n||n.call(t,"Message sent: ",JSON.stringify(e)),null===(i=null===(r=window.opener)||void 0===r?void 0:r.postMessage)||void 0===i||i.call(r,e,this.endpoint)},e.prototype.sendRequest=function(e,t,n){var r=this;void 0===n&&(n={timeout:15e3});var i="".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),o={id:i,action:e,args:t};return new Promise(function(t,s){r.requestCallbacks[i]={resolve:t,reject:s},r.notify(o),(null==n?void 0:n.timeout)>0&&setTimeout(function(){s(Error("".concat(e," timed out (id: ").concat(i,")"))),delete r.requestCallbacks[i]},n.timeout)})},e.prototype.handleResponse=function(e){var t;if(!this.requestCallbacks[e.id]){null===(t=this.logger)||void 0===t||t.warn("No callback found for request id: ".concat(e.id));return}this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]},e.prototype.setup=function(e){var t=this,n=void 0===e?{}:e,r=n.logger,i=n.endpoint,o=n.isElementSelectable,s=n.cssSelectorAllowlist,a=n.actionClickAllowlist;this.logger=r,i&&this.endpoint===tQ&&(this.endpoint=i);var u=null;window.addEventListener("message",function(e){if(null===(r=null===(n=t.logger)||void 0===n?void 0:n.debug)||void 0===r||r.call(n,"Message received: ",JSON.stringify(e)),t.endpoint===e.origin){var n,r,i,l,c,d=null==e?void 0:e.data,h=null==d?void 0:d.action;if(h){if("id"in d)null===(l=null===(i=t.logger)||void 0===i?void 0:i.debug)||void 0===l||l.call(i,"Received Response to previous request: ",JSON.stringify(e)),t.handleResponse(d);else if("ping"===h)t.notify({action:"pong"});else if("initialize-visual-tagging-selector"===h){var f,p=null==d?void 0:d.data;(f="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",new Promise(function(e,t){var n;try{var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=f,r.addEventListener("load",function(){e({status:!0})},{once:!0}),r.addEventListener("error",function(){t({status:!1,message:"Failed to load the script ".concat(f)})}),null===(n=document.head)||void 0===n||n.appendChild(r)}catch(e){t(e)}})).then(function(){var e;u=null===(e=null==window?void 0:window.amplitudeVisualTaggingSelector)||void 0===e?void 0:e.call(window,{getEventTagProps:n5,isElementSelectable:function(e){return!o||o((null==p?void 0:p.actionType)||"click",e)},onTrack:t.onTrack,onSelect:t.onSelect,visualHighlightClass:tY,messenger:t,cssSelectorAllowlist:s,actionClickAllowlist:a}),t.notify({action:"selector-loaded"})}).catch(function(){var e;
1null===(e=t.logger)||void 0===e||e.warn("Failed to initialize visual tagging selector")})}else"close-visual-tagging-selector"===h&&(null===(c=null==u?void 0:u.close)||void 0===c||c.call(u))}}}),this.notify({action:"page-loaded"})},e}(),n9=["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot"],n7=["type"],re=["svg","path","g"],rt=["password","hidden"];function rn(e,t){return nx(function(n,r){var i=0;n.subscribe(nI(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}var rr=function(e){function t(t,n){return e.call(this)||this}return(0,k.ZT)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(t8),ri={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ri.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,k.ev)([e,t],(0,k.CR)(n))):setInterval.apply(void 0,(0,k.ev)([e,t],(0,k.CR)(n)))},clearInterval:function(e){var t=ri.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},ro=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return(0,k.ZT)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n,r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),ri.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&ri.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,t5(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(rr),rs={now:function(){return(rs.delegate||Date).now()},delegate:void 0},ra=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=rs.now,e}(),ru=new(function(e){function t(t,n){void 0===n&&(n=ra.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return(0,k.ZT)(t,e),t.prototype.flush=function(e){var t,n=this.actions;if(this._active){n.push(e);return}this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}},t}(ra))(ro);function rl(e){return void 0===e&&(e=1/0),nR(nm,e)}var rc=new ng(function(e){return e.complete()});function rd(e){return e&&t1(e.schedule)}function rh(e){return e[e.length-1]}function rf(e){return rd(rh(e))?e.pop():void 0}function rp(e,t){return void 0===t&&(t=0),nx(function(n,r){n.subscribe(nI(r,function(n){return nA(r,e,function(){return r.next(n)},t)},function(){return nA(r,e,function(){return r.complete()},t)},function(n){return nA(r,e,function(){return r.error(n)},t)}))})}function rm(e,t){return void 0===t&&(t=0),nx(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function rg(e,t){if(!e)throw Error("Iterable cannot be null");return new ng(function(n){nA(n,t,function(){var r=e[Symbol.asyncIterator]();nA(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function rv(e,t){return t?function(e,t){if(null!=e){if(t1(e[np]))return nk(e).pipe(rm(t),rp(t));if(t0(e))return new ng(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})});if(t2(e))return nk(e).pipe(rm(t),rp(t));if(ny(e))return rg(e,t);if(nw(e))return new ng(function(n){var r;return nA(n,t,function(){r=e[nb](),nA(n,t,function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return t1(null==r?void 0:r.return)&&r.return()}});if(nE(e))return rg(nS(e),t)}throw n_(e)}(e,t):nk(e)}function ry(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=rf(t),i=(e=1/0,"number"==typeof rh(t)?t.pop():e);return t.length?1===t.length?nk(t[0]):rl(i)(rv(t,r)):rc}function r_(e){return e<=0?function(){return rc}:nx(function(t,n){var r=0;t.subscribe(nI(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function rb(e){return e instanceof Date&&!isNaN(e)}var rw=t3(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function rS(e){throw new rw(e)}(d=E||(E={})).ClickObservable="clickObservable",d.ChangeObservable="changeObservable",d.NavigateObservable="navigateObservable",d.MutationObservable="mutationObservable";var rE=function(e){void 0===e&&(e={});var t,n,r,i=e.dataAttributePrefix,o=void 0===i?"data-amp-track-":i,s=e.visualTaggingOptions,a=void 0===s?{enabled:!0,messenger:new n6}:s;e.cssSelectorAllowlist=null!==(t=e.cssSelectorAllowlist)&&void 0!==t?t:tG,e.actionClickAllowlist=null!==(n=e.actionClickAllowlist)&&void 0!==n?n:tH,e.debounceTime=null!==(r=e.debounceTime)&&void 0!==r?r:0;var u="@amplitude/plugin-autocapture-browser",l=[],c=void 0,d=function(){var e,t,n=nN(document,"click",{capture:!0}).pipe(nO(function(e){return f(e,"click")})),r=nN(document,"change",{capture:!0}).pipe(nO(function(e){return f(e,"change")}));window.navigation&&(t=nN(window.navigation,"navigate").pipe(nO(function(e){return f(e,"navigate")})));var i=new ng(function(e){var t=new MutationObserver(function(t){e.next(t)});return t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}}).pipe(nO(function(e){return f(e,"mutation")}));return(e={})[E.ClickObservable]=n,e[E.ChangeObservable]=r,e[E.NavigateObservable]=t,e[E.MutationObservable]=i,e},h=function(e,t){var n,r,i,s,a=null===(s=null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===s?void 0:s.call(i),u="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},l=t.getAttribute("aria-label"),d=t.getAttributeNames().reduce(function(e,n){if(n.startsWith(o)){var r=n.replace(o,""),i=t.getAttribute(n);r&&(e[r]=i||"")}return e},{}),h=n3(t),f=n0(t,c),p=((r={})["[Amplitude] Element ID"]=t.getAttribute("id")||"",r["[Amplitude] Element Class"]=t.getAttribute("class"),r["[Amplitude] Element Hierarchy"]=(n=t)?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(null===i)n+=4;else{var o=function e(t,n){void 0===n&&(n=!1);try{if(null==t){if(n)return"None";return null}if("string"==typeof t){if(n){if((t=t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")).includes('"'))return"'".concat(t,"'");if(t.includes("'"))return'"'.concat(t.replace(/'/g,"\\'"),'"');return"'".concat(t,"'")}return t}if("boolean"==typeof t)return t?"True":"False";if(Array.isArray(t)){var r=t.map(function(t){return e(t,!0)});return"[".concat(r.join(", "),"]")}else if("object"==typeof t){var i=Object.entries(t).filter(function(e){var t=(0,k.CR)(e,1)[0];return null!=t}).map(function(t){var n=(0,k.CR)(t,2),r=n[0],i=n[1];return"".concat(String(e(r,!0)),": ").concat(String(e(i,!0)))}),o="{".concat(i.join(", "),"}");return o.includes("\\'")&&(o=o.replace(/'/g,"'").replace(/'/g,"\\'")),o}return t.toString()}catch(e){return null}}(i);n+=o?Array.from(o).length:4}if(n>1024)return e.slice(0,r)}return e}((function(e){var t=[];if(!e)return t;
1t.push(e);for(var n=e.parentElement;n&&"HTML"!==n.tagName;)t.push(n),n=n.parentElement;return t})(n).map(function(e){return function(e){if(null===e)return null;var t,n,r,i,o,s,a=String(e.tagName).toLowerCase(),u={tag:a},l=Array.from(null!==(i=null===(r=e.parentElement)||void 0===r?void 0:r.children)&&void 0!==i?i:[]);l.length&&(u.index=l.indexOf(e),u.indexOfType=l.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var c=null===(s=null===(o=e.previousElementSibling)||void 0===o?void 0:o.tagName)||void 0===s?void 0:s.toLowerCase();c&&(u.prevSib=String(c));var d=e.getAttribute("id");d&&(u.id=String(d));var h=Array.from(e.classList);h.length&&(u.classes=h);var f={},p=Array.from(e.attributes).filter(function(e){return!n9.includes(e.name)}),m=!nZ(e);if(!rt.includes(String(e.getAttribute("type")))&&!re.includes(a))try{for(var g=(0,k.XA)(p),v=g.next();!v.done;v=g.next()){var y=v.value;(!m||n7.includes(y.name))&&(f[y.name]=String(y.value).substring(0,128))}}catch(e){t={error:e}}finally{try{v&&!v.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}return Object.keys(f).length&&(u.attrs=f),u}(e)}),0):[],r[tW]=a,r[tX]=nY(t),r["[Amplitude] Element Position Left"]=null==u.left?null:Math.round(u.left),r["[Amplitude] Element Position Top"]=null==u.top?null:Math.round(u.top),r["[Amplitude] Element Aria Label"]=l,r["[Amplitude] Element Attributes"]=d,r[tK]=f,r["[Amplitude] Element Parent Label"]=h,r[tV]=window.location.href.split("?")[0],r["[Amplitude] Page Title"]="undefined"!=typeof document&&document.title||"",r["[Amplitude] Viewport Height"]=window.innerHeight,r["[Amplitude] Viewport Width"]=window.innerWidth,r);return"a"===a&&"click"===e&&t instanceof HTMLAnchorElement&&(p["[Amplitude] Element Href"]=t.href),n2(p)},f=function(t,n){var r={event:t,timestamp:Date.now(),type:n};if(("click"===r.type||"change"===r.type)&&null!==r.event.target){var i=n4(r.event.target,e.cssSelectorAllowlist);i&&(r.closestTrackedAncestor=i,r.targetElementProperties=h(r.type,i))}return r};return{name:u,type:"enrichment",setup:function(t,n){return(0,k.mG)(void 0,void 0,void 0,function(){var r,i,o,s,f,p,m,g,v,y;return(0,k.Jh)(this,function(_){var b,w,S,E,T,x,I,C,O,A,R,M,D,P,L,N,j,U,F,$,q,B,J,G,H,z,W,X,K,V,Q,Z,Y,ee;return c=t.loggerProvider,"undefined"==typeof document||(r=nV(e,e.cssSelectorAllowlist),i=nV(e,e.actionClickAllowlist),w=(b={allObservables:o=d(),options:e,amplitude:n,shouldTrackEvent:r}).amplitude,S=b.allObservables,E=b.options,T=b.shouldTrackEvent,O=ry((x=S.clickObservable).pipe(nx(function(e,t){var n,r=!1;e.subscribe(nI(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),rn(function(e){var t=(0,k.CR)(e,2),n=t[0],r=t[1],i=n.event.target!==r.event.target,o=20>=Math.abs(r.event.screenX-n.event.screenX)&&20>=Math.abs(r.event.screenY-n.event.screenY);return i&&!o})),x.pipe((I=E.debounceTime,void 0===C&&(C=ru),nx(function(e,t){var n=null,r=null,i=null,o=function(){if(n){n.unsubscribe(),n=null;var e=r;r=null,t.next(e)}};function s(){var e=i+I,r=C.now();if(r<e){n=this.schedule(void 0,e-r),t.add(n);return}o()}e.subscribe(nI(t,function(e){r=e,i=C.now(),n||(n=C.schedule(s,I),t.add(n))},function(){o(),t.complete()},void 0,function(){r=n=null}))})),nO(function(){return"timeout"}))),s=x.pipe((void 0===A&&(A=ru),R=0,M=A,void 0===R&&(R=0),void 0===D&&(D=ru),P=-1,null!=M&&(rd(M)?D=M:P=M),L=new ng(function(e){var t=rb(R)?+R-D.now():R;t<0&&(t=0);var n=0;return D.schedule(function(){e.closed||(e.next(n++),0<=P?this.schedule(void 0,P):e.complete())},t)}),function e(t,n){return n?function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rl(1)(rv(e,rf(e)))}(n.pipe(r_(1),nx(function(e,t){e.subscribe(nI(t,nn))})),r.pipe(e(t)))}:nR(function(e,n){return nk(t(e,n)).pipe(r_(1),nO(function(){return e}))})}(function(){return L})),rn(n8),rn(function(e){return T("click",e.closestTrackedAncestor)}),nx(function(e,t){var n=[];return e.subscribe(nI(t,function(e){return n.push(e)},function(){t.next(n),t.complete()})),nk(O).subscribe(nI(t,function(){var e=n;n=[],t.next(e)},nn)),function(){n=null}})).subscribe(function(e){var t,n,r=(e.length,tz);try{for(var i=(0,k.XA)(e),o=i.next();!o.done;o=i.next()){var s=o.value;null==w||w.track(r,s.targetElementProperties,{time:s.timestamp})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),l.push(s),j=(N={allObservables:o,getEventProperties:h,amplitude:n,shouldTrackEvent:r}).amplitude,U=N.allObservables,F=N.getEventProperties,$=N.shouldTrackEvent,f=U.changeObservable.pipe(rn(n8),rn(function(e){return $("change",e.closestTrackedAncestor)})).subscribe(function(e){null==j||j.track("[Amplitude] Element Changed",F("change",e.closestTrackedAncestor))}),l.push(f),B=(q={allObservables:o,options:e,getEventProperties:h,amplitude:n,shouldTrackEvent:r,shouldTrackActionClick:i}).amplitude,J=q.allObservables,G=q.options,H=q.getEventProperties,z=q.shouldTrackEvent,W=q.shouldTrackActionClick,X=J.clickObservable,K=J.mutationObservable,V=J.navigateObservable,Q=X.pipe(rn(function(e){return!z("click",e.closestTrackedAncestor)}),nO(function(e){var t=n4(e.event.target,G.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=H(e.type,e.closestTrackedAncestor)),e}),rn(n8),rn(function(e){return W("click",e.closestTrackedAncestor)})),Z=[K],V&&Z.push(V),Y=ry.apply(void 0,(0,k.ev)([],(0,k.CR)(Z),!1)),p=Q.pipe((ee=function(e){return Y.pipe(r_(1),function(e,t){var n=rb(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,i=n.each,o=n.with,s=void 0===o?rS:o,a=n.scheduler,u=void 0===a?ru:a,l=n.meta,c=void 0===l?null:l;if(null==r&&null==i)throw TypeError("No timeout provided.");return nx(function(e,t){var n,o,a=null,l=0,d=function(e){o=nA(t,u,function(){try{n.unsubscribe(),nk(s({meta:c,lastValue:a,seen:l})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(nI(t,function(e){null==o||o.unsubscribe(),l++,t.next(a=e),i>0&&d(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),a=null})),l||d(null!=r?"number"==typeof r?r:+r-u.now():i)})}({first:500,with:function(){return rc}}),nO(function(){return e}))},nx(function(e,t){var n=null,r=0,i=!1,o=function(){return i&&!n&&t.complete()};e.subscribe(nI(t,function(e){null==n||n.unsubscribe(),nk(ee(e,r++)).subscribe(n=nI(t,function(e){return t.next(e)},function(){n=null,o()}))},function(){i=!0,o()}))}))).subscribe(function(e){null==B||B.track(tz,H("click",e.closestTrackedAncestor),{time:e.timestamp})}),l.push(p),null===(v=null==t?void 0:t.loggerProvider)||void 0===v||v.log("".concat(u," has been successfully added.")),window.opener&&a.enabled&&(m=e.cssSelectorAllowlist,g=e.actionClickAllowlist,null===(y=a.messenger)||void 0===y||y.setup((0,k.pi)((0,k.pi)({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:tZ[t.serverZone]}),{isElementSelectable:nV(e,(0,k.ev)((0,k.ev)([],(0,k.CR)(m),!1),(0,k.CR)(g),!1)),cssSelectorAllowlist:m,actionClickAllowlist:g})))),[2]})})},execute:function(e){return(0,k.mG)(void 0,void 0,void 0,function(){return(0,k.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,k.mG)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,k.Jh)(this,function(i){try{for(t=(e=(0,k.XA)(l)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}return[2]})})}}},rk={init:C((h=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,k.ZT)(t,e),t.prototype.init=function(e,t,n){var r,i;return void 0===e&&(e=""),arguments.length>
12?(r=t,i=n):"string"==typeof t?(r=t,i=void 0):(r=null==t?void 0:t.userId,i=t),O(this._init((0,k.pi)((0,k.pi)({},i),{userId:r,apiKey:e})))},t.prototype._init=function(t){var n,r,i;return(0,k.mG)(this,void 0,void 0,function(){var o,s,a,u,l,c=this;return(0,k.Jh)(this,function(d){var h,f,p,m,g;switch(d.label){case 0:if(this.initializing)return[2];return this.initializing=!0,[4,(h=t.apiKey,f=t,p=this,void 0===f&&(f={}),(0,k.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o,s,a,u,l,c,d,m,g,v,y,_,b,w,S,E,T,x,I,C,O,A,R,M,D,P,L,N,j,U,F,q,B,J,G,H,z,W;return(0,k.Jh)(this,function(X){var K,V,Q;switch(X.label){case 0:if(e=f.identityStorage||ta,w={},!(e!==ta))return[3,1];return n="",[3,5];case 1:if(!(null!==(E=null===(S=f.cookieOptions)||void 0===S?void 0:S.domain)&&void 0!==E))return[3,2];return r=E,[3,4];case 2:return[4,(0,k.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o;return(0,k.Jh)(this,function(s){switch(s.label){case 0:return[4,new eH().isEnabled()];case 1:if(!s.sent()||"undefined"==typeof location||!location.hostname)return[2,""];for(e=(null!=K?K:location.hostname).split("."),t=[],n="AMP_TLDTEST",r=e.length-2;r>=0;--r)t.push(e.slice(r).join("."));r=0,s.label=2;case 2:if(!(r<t.length))return[3,7];return[4,(o=new eH({domain:"."+(i=t[r])})).set(n,1)];case 3:return s.sent(),[4,o.get(n)];case 4:if(!s.sent())return[3,6];return[4,o.remove(n)];case 5:return s.sent(),[2,"."+i];case 6:return r++,[3,2];case 7:return[2,""]}})})];case 3:r=X.sent(),X.label=4;case 4:n=r,X.label=5;case 5:return t=k.pi.apply(void 0,[(w.domain=n,w.expiration=365,w.sameSite="Lax",w.secure=!1,w.upgrade=!0,w),f.cookieOptions]),[4,(V=i=tl(f.identityStorage,t),void 0===(Q=null===(x=null===(T=f.cookieOptions)||void 0===T?void 0:T.upgrade)||void 0===x||x)&&(Q=!0),(0,k.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o,s,a,u;return(0,k.Jh)(this,function(l){switch(l.label){case 0:return e="".concat("amp","_").concat(h.substring(0,6)),[4,V.getRaw(e)];case 1:if(!(t=l.sent()))return[2,{optOut:!1}];if(!Q)return[3,3];return[4,V.remove(e)];case 2:l.sent(),l.label=3;case 3:return r=(n=(0,k.CR)(t.split("."),6))[0],i=n[1],o=n[2],s=n[3],a=n[4],u=n[5],[2,{deviceId:r,userId:e2(i),sessionId:e1(s),lastEventId:e1(u),lastEventTime:e1(a),optOut:!!o}]}})}))];case 6:return o=X.sent(),[4,i.get(eG(h))];case 7:return s=X.sent(),a=eS(),u=null!==(R=null!==(A=null!==(O=null!==(C=null!==(I=f.deviceId)&&void 0!==I?I:a.ampDeviceId)&&void 0!==C?C:a.deviceId)&&void 0!==O?O:null==s?void 0:s.deviceId)&&void 0!==A?A:o.deviceId)&&void 0!==R?R:$(),l=null!==(M=null==s?void 0:s.lastEventId)&&void 0!==M?M:o.lastEventId,c=null!==(D=null==s?void 0:s.lastEventTime)&&void 0!==D?D:o.lastEventTime,d=null!==(L=null!==(P=f.optOut)&&void 0!==P?P:null==s?void 0:s.optOut)&&void 0!==L?L:o.optOut,m=null!==(N=null==s?void 0:s.sessionId)&&void 0!==N?N:o.sessionId,g=null!==(U=null!==(j=f.userId)&&void 0!==j?j:null==s?void 0:s.userId)&&void 0!==U?U:o.userId,p.previousSessionDeviceId=null!==(F=null==s?void 0:s.deviceId)&&void 0!==F?F:o.deviceId,p.previousSessionUserId=null!==(q=null==s?void 0:s.userId)&&void 0!==q?q:o.userId,v={ipAddress:null===(J=null===(B=f.trackingOptions)||void 0===B?void 0:B.ipAddress)||void 0===J||J,language:null===(H=null===(G=f.trackingOptions)||void 0===G?void 0:G.language)||void 0===H||H,platform:null===(W=null===(z=f.trackingOptions)||void 0===z?void 0:z.platform)||void 0===W||W},y=null==s?void 0:s.pageCounter,_=null==s?void 0:s.debugLogsEnabled,void 0!==f.autocapture&&(f.defaultTracking=f.autocapture),[4,(b=new tu(h,f.appVersion,i,t,f.defaultTracking,f.autocapture,u,f.flushIntervalMillis,f.flushMaxRetries,f.flushQueueSize,e,f.ingestionMetadata,f.instanceName,l,c,f.loggerProvider,f.logLevel,f.minIdLength,f.offline,d,f.partnerId,f.plan,f.serverUrl,f.serverZone,m,f.sessionTimeout,f.storageProvider,v,f.transport,f.useBatch,f.fetchRemoteConfig,g,y,_)).storageProvider.isEnabled()];case 8:return X.sent()||(b.loggerProvider.warn("Storage provider ".concat(b.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),b.storageProvider=new eJ),[2,b]}})}))];case 1:if(o=d.sent(),!t.fetchRemoteConfig)return[3,4];return[4,(m=o,(0,k.mG)(void 0,void 0,void 0,function(){var e;return(0,k.Jh)(this,function(t){switch(t.label){case 0:return[4,(e=new tJ(m)).initialize()];case 1:return t.sent(),[2,e]}})}))];case 2:return[4,d.sent().generateJoinedConfig()];case 3:o=d.sent(),d.label=4;case 4:return[4,e.prototype._init.call(this,o)];case 5:if(d.sent(),this.logBrowserOptions(o),!Y(this.config.defaultTracking))return[3,7];return s=Y((g=this.config).defaultTracking)&&g.defaultTracking&&"object"==typeof g.defaultTracking&&g.defaultTracking.attribution&&"object"==typeof g.defaultTracking.attribution?(0,k.pi)({},g.defaultTracking.attribution):{},this.webAttribution=new ex(s,this.config),[4,this.webAttribution.init()];case 6:d.sent(),d.label=7;case 7:if(u=Number.isNaN(Number((a=eS()).ampSessionId))?void 0:Number(a.ampSessionId),this.setSessionId(null!==(i=null!==(r=null!==(n=t.sessionId)&&void 0!==n?n:u)&&void 0!==r?r:this.config.sessionId)&&void 0!==i?i:Date.now()),(l=eL(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),!(null!==this.config.offline))return[3,9];return[4,this.add(tj()).promise];case 8:d.sent(),d.label=9;case 9:return[4,this.add(new B).promise];case 10:return d.sent(),[4,this.add(new eB).promise];case 11:return d.sent(),[4,this.add(new eU).promise];case 12:if(d.sent(),tN(this.config),!Z(this.config.defaultTracking,"fileDownloads"))return[3,14];return this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(tP()).promise];case 13:d.sent(),d.label=14;case 14:if(!Z(this.config.defaultTracking,"formInteractions"))return[3,16
1];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(tM()).promise];case 15:d.sent(),d.label=16;case 16:if(!ee(this.config.defaultTracking))return[3,18];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(tC(ei(this.config))).promise];case 17:d.sent(),d.label=18;case 18:if(!en(this.config.autocapture))return[3,20];return this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(rE(er(this.config))).promise];case 19:d.sent(),d.label=20;case 20:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 21:return d.sent(),l.eventBridge.setEventReceiver(function(e){c.track(e.eventType,e.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){if(!this.config){this.q.push(this.setUserId.bind(this,e));return}this.config.loggerProvider.debug("function setUserId: ",e),(e!==this.config.userId||void 0===e)&&(this.config.userId=e,eN(e,this.config.instanceName))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){if(!this.config){this.q.push(this.setDeviceId.bind(this,e));return}this.config.loggerProvider.debug("function setDeviceId: ",e),this.config.deviceId=e,ej(e,this.config.instanceName)},t.prototype.reset=function(){this.setDeviceId($()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,n=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),O(Promise.resolve());if(e===this.config.sessionId)return O(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var r=this.getSessionId(),i=this.config.lastEventTime,o=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,et(this.config.defaultTracking)&&(r&&i&&n.push(this.track(e9,void 0,{device_id:this.previousSessionDeviceId,event_id:++o,session_id:r,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var s=this.trackCampaignEventIfNeeded(++o,n);return et(this.config.defaultTracking)&&n.push(this.track(e6,void 0,{event_id:s?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,O(Promise.all(n))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(e){if(!this.config){this.q.push(this.setTransport.bind(this,e));return}this.config.transportProvider=tc(e)},t.prototype.identify=function(t,n){if(e$(t)){var r=t._q;t._q=[],t=eF(new H,r)}return(null==n?void 0:n.user_id)&&this.setUserId(n.user_id),(null==n?void 0:n.device_id)&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,t,n)},t.prototype.groupIdentify=function(t,n,r,i){if(e$(r)){var o=r._q;r._q=[],r=eF(new H,o)}return e.prototype.groupIdentify.call(this,t,n,r,i)},t.prototype.revenue=function(t,n){if(e$(t)){var r=t._q;t._q=[],t=eF(new z,r)}return e.prototype.revenue.call(this,t,n)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var n=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(n).promise):this.track(n),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return(0,k.mG)(this,void 0,void 0,function(){var n,r,i;return(0,k.Jh)(this,function(o){return n=Date.now(),r=eT(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===e6||t.event_type===e9||t.session_id&&t.session_id!==this.getSessionId()||(r||i?(this.setSessionId(n),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):r||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]})})},t.prototype.logBrowserOptions=function(e){try{var t=(0,k.pi)((0,k.pi)({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},t}(Q))).init.bind(h),"init",T(h),I(h,["config"])),add:C(h.add.bind(h),"add",T(h),I(h,["config.apiKey","timeline.plugins"])),remove:C(h.remove.bind(h),"remove",T(h),I(h,["config.apiKey","timeline.plugins"])),track:C(h.track.bind(h),"track",T(h),I(h,["config.apiKey","timeline.queue.length"])),logEvent:C(h.logEvent.bind(h),"logEvent",T(h),I(h,["config.apiKey","timeline.queue.length"])),identify:C(h.identify.bind(h),"identify",T(h),I(h,["config.apiKey","timeline.queue.length"])),groupIdentify:C(h.groupIdentify.bind(h),"groupIdentify",T(h),I(h,["config.apiKey","timeline.queue.length"])),setGroup:C(h.setGroup.bind(h),"setGroup",T(h),I(h,["config.apiKey","timeline.queue.length"])),revenue:C(h.revenue.bind(h),"revenue",T(h),I(h,["config.apiKey","timeline.queue.length"])),flush:C(h.flush.bind(h),"flush",T(h),I(h,["config.apiKey","timeline.queue.length"])),getUserId:C(h.getUserId.bind(h),"getUserId",T(h),I(h,["config","config.userId"])),setUserId:C(h.setUserId.bind(h),"setUserId",T(h),I(h,["config","config.userId"])),getDeviceId:C(h.getDeviceId.bind(h),"getDeviceId",T(h),I(h,["config","config.deviceId"])),setDeviceId:C(h.setDeviceId.bind(h),"setDeviceId",T(h),I(h,["config","config.deviceId"])),reset:C(h.reset.bind(h),"reset",T(h),I(h,["config","config.userId","config.deviceId"])),getSessionId:C(h.getSessionId.bind(h),"getSessionId",T(h),I(h,["config"])),setSessionId:C(h.setSessionId.bind(h),"setSessionId",T(h),I(h,["config"])),extendSession:C(h.extendSession.bind(h),"extendSession",T(h),I(h,["config"])),setOptOut:C(h.setOptOut.bind(h),"setOptOut",T(h),I(h,["config"])),setTransport:C(h.setTransport.bind(h),"setTransport",T(h),I(h,["config"]))};rk.add,rk.extendSession,rk.flush,rk.getDeviceId,rk.getSessionId,rk.getUserId,rk.groupIdentify,rk.identify;var rT=rk.init,rx=(rk.logEvent,rk.remove,rk.reset,rk.revenue,rk.setDeviceId,rk.setGroup,rk.setOptOut,rk.setSessionId,rk.setTransport,rk.setUserId,rk.track),rI=n(43221);let rC=()=>{rT(rI.gp,{defaultTracking:!0,autocapture:{attribution:!1}})},rO=(e,t)=>{rx(e,t)}},43221:function(e,t,n){"use strict";n.d(t,{$T:function(){return i},A9:function(){return l},CW:function(){return c},D7:function(){return L},DO:function(){return G},Dd:function(){return W},EK:function(){return I},EP:function(){return D},Eh:function(){return P},HJ:function(){return p},IR:function(){return m},Jm:function(){return a},M:function(){return R},M0:function(){return T},N5:function(){return J},O8:function(){return N},P$:function(){return U},PG:function(){return F},QO:function(){return h},RY:function(){return M},T$:function(){return B},To:function(){return _},U9:function(){return j},Vc:function(){return y},W0:function(){return O},Wr:function(){return g},XG:function(){return d},Z9:function(){return $},_q:function(){return k},dp:function(){return E},e4:function(){return H},eM:function(){return s},fh:function(){return f},gp:function(){return C},gr:function(){return q},hu:function(){return w},l5:function(){return K},n2:function(){return A},nx:function(){return u},o4:function(){return x},on:function(){return v},pM:function(){return z},qS:function(){return S},uB:function(){return X},x8:function(){return r},xg:function(){return o},z_:function(){return b}});let r="/v001",i=r,o="/web001",s="https://cpapi.chutcha.net",a="/v1",u="https://img.chutcha.kr",l="https://imgc.chutcha.kr",c="https://img
1s.chutcha.kr",d="https://imgsc.chutcha.kr",h="https://web.chutcha.net",f="https://sell.chutcha.net",p="https://signal.chutcha.net",m="https://static.chutcha.net",g="G-KPXN4E1RT5",v="G-WTXM4MCQPG",y="production",_="https://www.chutcha.net",b="https://wapigw.chutcha.net/community/v1",w="https://imgscommunity.chutcha.kr",S="https://dealer.chutcha.net",E="/cc_webview/ew",k="/cc_webview/loan",T="/cc_webview/asInfo",x="2",I="5",C="26de748894564906fa1c31bbf726074d",O="ë¤í¸ìí¬ ì¤ë¥ê° ë°ìíìµëë¤.\nì ì í ë¤ì ìëí´ ì£¼ì¸ì.",A="600ë§",R="첫차 : ".concat(A,"ì´ ì íí ì¤ê³ ì°¨ì±"),M="ì¤ê³ ì°¨ì ì²ìì ë°ê¾¸ë¤! ì¤ê³ ì°¨ 구매ì í매를 íê³³ìì í´ê²°í´ì. ì¤ê³ ì°¨ ê²ì, ë´ì°¨í기, ì¤ê³ ì°¨ íì매물 ì¡°í ë± ìì í ì¤ê³ ì°¨ ê±°ë를 ê²½íí´ë³´ì¸ì.",D="ì¤ê³ ì°¨, ì¤ê³ ì°¨ ìì¸, ì¤ê³ ì°¨ ê°ê²©, ì¤ê³ ì°¨ 매매, ì¤ê³ ì°¨ íì매물, ì¤ê³ ì°¨ ì¬ê³ ì´ë ¥ì¡°í, ì¤ê³ ìëì°¨, ìì
ì¤ê³ ì°¨, 500ë§ìë ì¤ê³ ì°¨, ì í¸ë± ê²ì, ì¤ê³ ì°¨ ì´ë ¥ì¡°í, ë´ì°¨í기, ì¸ì¦ëë¬",P="".concat(u,"/files/website/chutcha_web/common/og_chutcha.jpg"),L="ì¤ê³ ì°¨ë 첫차",N="https://www.chutcha.net",j="7269f9e265aa15efd28b19e05cd6df1a",U="íì´ì§ë¥¼\nì°¾ì ì ììµëë¤",F="ì못ë ìì²ì
ëë¤. (400)\nì ì í ë¤ì íë² ìëí´ ì£¼ì¸ì.",$="ì ì ê¶íì´ ìë íì´ì§ì
ëë¤. (401)\nì ì í ë¤ì íë² ìëí´ ì£¼ì¸ì.",q="ì ìì´ ê±°ë¶ëììµëë¤. (403)\nì ì í ë¤ì íë² ìëí´ ì£¼ì¸ì.",B="íì´ì§ 주ì íì¸ í\në¤ì íë² ìëí´ ì£¼ì¸ì.",J="ìì²ì´ ê±°ë¶ëììµëë¤. (405)\nì ì í ë¤ì íë² ìëí´ ì£¼ì¸ì.",G="ìì² ìê°ì´ ì´ê³¼ëììµëë¤. (408)\nì ì í ë¤ì íë² ìëí´ ì£¼ì¸ì.",H="ìì²ì ì²ë¦¬í ì ììµëë¤. (429)\nì ì í ë¤ì íë² ìëí´ ì£¼ì¸ì.",z="ì°ê²°ì´ ì ì\në¶ìì í´ì",W="ì ì í ë¤ì íë² ìëí´ ì£¼ì¸ì.\në¶í¸ì ëë ¤ ì£ì¡í´ì.",X="íì¬ ìë¹ì¤ ì ê² ì¤ì´ìì",K="ì ì í ë¤ì íë² ìëí´ ì£¼ì¸ì.\në¶í¸ì ëë ¤ ì£ì¡í´ì."},66021:function(e,t,n){"use strict";let r,i,o,s,a,u;var l,c,d,h,f,p,m,g,v=n(45447),y=n(28643),_=n(57608),b=(n(37895),n(73076));function w(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var S=n(39424),E=n(5808),k=n(81585),T=n(31218),x=n(79769),I=n(29531),C=n(83408),O=n(27179),A=n(1869),R=n(26181),M=n(41001),D=n(41982),P=n(89163),L=n(39432),N=n(80128),j=n(83745),U=n(84281),F=n(34155);function $(){return"undefined"!=typeof window&&(!(!(0,U.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==F?F:0))||void 0!==I.GLOBAL_OBJ.process&&"renderer"===I.GLOBAL_OBJ.process.type)}var q=n(39877),B=n(82417),J=n(67127),G=n(25460),H=n(36708);let z=I.GLOBAL_OBJ,W="sentryReplaySession",X="Unable to send Replay";function K(e,t){return null!=e?e:t()}function V(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}function Q(e){let t=V([e,"optionalAccess",e=>e.host]);return V([t,"optionalAccess",e=>e.shadowRoot])===e}function Z(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Y(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,ee).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(e){return null}}function ee(e){let t;if("styleSheet"in e)try{t=Y(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}(l=m||(m={}))[l.Document=0]="Document",l[l.DocumentType=1]="DocumentType",l[l.Element=2]="Element",l[l.Text=3]="Text",l[l.CDATA=4]="CDATA",l[l.Comment=5]="Comment";
1class et{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){return e?K(V([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),()=>-1):-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);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){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function en({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function er({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function ei(e){return e.toLowerCase()}function eo(e){return e.toUpperCase()}let es="__rrweb_original__";function ea(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ei(t):null}function eu(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}function el(e,t){let n;try{n=new URL(e,K(t,()=>window.location.href))}catch(e){return null}return K(V([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),()=>null)}let ec={};function ed(e){let t=ec[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return ec[e]=r.bind(window)}function eh(...e){return ed("setTimeout")(...e)}function ef(...e){return ed("clearTimeout")(...e)}let ep=1,em=RegExp("[^a-z0-9-_:]");function eg(){return ep++}let ev=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ey=/^(?:[a-z+]+:)?\/\//i,e_=/^www\..*/i,eb=/^(data:)([^,]*),(.*)/i;function ew(e,t){return(e||"").replace(ev,(e,n,r,i,o,s)=>{let a=r||o||s,u=n||i||"";if(!a)return e;if(ey.test(a)||e_.test(a)||eb.test(a))return`url(${u}${a}${u})`;if("/"===a[0])return`url(${u}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${u})`;let l=t.split("/"),c=a.split("/");for(let e of(l.pop(),c))"."!==e&&(".."===e?l.pop():l.push(e));return`url(${u}${l.join("/")}${u})`})}let eS=/^[^ \t\n\r\u000c]+/,eE=/^[, \t\n\r\u000c]+/;function ek(e,t){if(!t||""===t.trim())return t;let n=e.createElement("a");return n.href=t,n.href}function eT(){let e=document.createElement("a");return e.href="",e.href}function ex(e,t,n,r,i,o){return r?"src"!==n&&("href"!==n||"use"===t&&"#"===r[0])&&("xlink:href"!==n||"#"===r[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;let i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(eE),!(n>=t.length);){let o=r(eS);if(","===o.slice(-1))o=ek(e,o.substring(0,o.length-1)),i.push(o);else{let r="";o=ek(e,o);let s=!1;for(;;){let e=t.charAt(n);if(""===e){i.push((o+r).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){n+=1,i.push((o+r).trim());break}"("===e&&(s=!0)}r+=e,n+=1}}}return i.join(", ")}(e,r):"style"===n?ew(r,eT()):"object"===t&&"data"===n?ek(e,r):"function"==typeof o?o(n,r,i):r:ek(e,r):r}function eI(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function eC(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:eC(e.parentNode,t,n,r+1)}function eO(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch(e){return!1}}}function eA(e,t,n,r,i,o){try{let s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){let e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,u=-1;if(o){if((u=eC(s,eO(r,i)))<0)return!0;a=eC(s,eO(t,n),u>=0?u:1/0)}else{if((a=eC(s,eO(t,n)))<0)return!1;u=eC(s,eO(r,i),a>=0?a:1/0)}return a>=0?!(u>=0)||a<=u:!(u>=0)&&!!o}catch(e){}return!!o}function eR(e){return null==e?"":e.toLowerCase()}function eM(e,t){let n;let{doc:o,mirror:s,blockClass:a,blockSelector:u,unblockSelector:l,maskAllText:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,skipChild:g=!1,inlineStylesheet:v=!0,maskInputOptions:y={},maskAttributeFn:_,maskTextFn:b,maskInputFn:w,slimDOMOptions:S,dataURLOptions:E={}
1,inlineImages:k=!1,recordCanvas:T=!1,onSerialize:x,onIframeLoad:I,iframeLoadTimeout:C=5e3,onStylesheetLoad:O,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:M=!1}=t,{preserveWhiteSpace:D=!0}=t,P=function(e,t){let{doc:n,mirror:o,blockClass:s,blockSelector:a,unblockSelector:u,maskAllText:l,maskAttributeFn:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:g,maskInputOptions:v={},maskTextFn:y,maskInputFn:_,dataURLOptions:b={},inlineImages:w,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:k=!1}=t,T=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,o);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:m.Document,childNodes:[],compatMode:e.compatMode};return{type:m.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:m.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:T};case e.ELEMENT_NODE:return function(e,t){let n;let{doc:o,blockClass:s,blockSelector:a,unblockSelector:u,inlineStylesheet:l,maskInputOptions:c={},maskAttributeFn:d,maskInputFn:h,dataURLOptions:f={},inlineImages:p,recordCanvas:g,keepIframeSrcFn:v,newlyAddedElement:y=!1,rootId:_,maskAllText:b,maskTextClass:w,unmaskTextClass:S,maskTextSelector:E,unmaskTextSelector:k}=t,T=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--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,s,a,u),x=function(e){if(e instanceof HTMLFormElement)return"form";let t=ei(e.tagName);return em.test(t)?"div":t}(e),I={},C=e.attributes.length;for(let t=0;t<C;t++){let n=e.attributes[t];n.name&&!eI(x,n.name,n.value)&&(I[n.name]=ex(o,x,ei(n.name),n.value,e,d))}if("link"===x&&l){let t=Array.from(o.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=Y(t)),n&&(delete I.rel,delete I.href,I._cssText=ew(n,t.href))}if("style"===x&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=Y(e.sheet);t&&(I._cssText=ew(t,eT()))}if("input"===x||"textarea"===x||"select"===x||"option"===x){let t=ea(e),n=eu(e,eo(x),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=eA(e,w,E,S,k,en({type:t,tagName:eo(x),maskInputOptions:c}));I.value=er({isMasked:r,element:e,value:n,maskInputFn:h})}r&&(I.checked=r)}if("option"===x&&(e.selected&&!c.select?I.selected=!0:delete I.selected),"canvas"===x&&g){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData;if(new Uint32Array((es in i?i[es]:i).call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(I.rr_dataURL=e.toDataURL(f.type,f.quality));else if(!("__context"in e)){let t=e.toDataURL(f.type,f.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(f.type,f.quality)&&(I.rr_dataURL=t)}}if("img"===x&&p){r||(i=(r=o.createElement("canvas")).getContext("2d"));let t=e.crossOrigin;e.crossOrigin="anonymous";let n=()=>{e.removeEventListener("load",n);try{r.width=e.naturalWidth,r.height=e.naturalHeight,i.drawImage(e,0,0),I.rr_dataURL=r.toDataURL(f.type,f.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}t?I.crossOrigin=t:e.removeAttribute("crossorigin")};e.complete&&0!==e.naturalWidth?n():e.addEventListener("load",n)}if(("audio"===x||"video"===x)&&(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),!y&&(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),T){let{width:t,height:n}=e.getBoundingClientRect();I={class:I.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==x||v(I.src)||(T||e.contentDocument||(I.rr_src=I.src),delete I.src);try{customElements.get(x)&&(n=!0)}catch(e){}return{type:m.Element,tagName:x,attributes:I,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:T,rootId:_,isCustom:n}}(e,{doc:n,blockClass:s,blockSelector:a,unblockSelector:u,inlineStylesheet:g,maskAttributeFn:c,maskInputOptions:v,maskInputFn:_,dataURLOptions:b,inlineImages:w,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:k,rootId:T,maskAllText:l,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:u,maskInputFn:l,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,h=e.textContent,f="STYLE"===d||void 0,p="SCRIPT"===d||void 0,g="TEXTAREA"===d||void 0;if(f&&h){try{e.nextSibling||e.previousSibling||V([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(h=Y(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}h=ew(h,eT())}p&&(h="SCRIPT_PLACEHOLDER");let v=eA(e,r,o,i,s,n);return f||p||g||!h||!v||(h=a?a(h,e.parentElement):h.replace(/[\S]/g,"*")),g&&h&&(u.textarea||v)&&(h=l?l(h,e.parentNode):h.replace(/[\S]/g,"*")),"OPTION"===d&&h&&(h=er({isMasked:eA(e,r,o,i,s,en({type:null,tagName:d,maskInputOptions:u})),element:e,value:h,maskInputFn:l})),{type:m.Text,textContent:h||"",isStyle:f,rootId:c}}(e,{maskAllText:l,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,maskTextFn:y,maskInputOptions:v,maskInputFn:_,rootId:T});case e.CDATA_SECTION_NODE:return{type:m.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:m.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}(e,{doc:o,mirror:s,blockClass:a,blockSelector:u,maskAllText:c,unblockSelector:l,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:v,maskInputOptions:y,maskAttributeFn:_,maskTextFn:b,maskInputFn:w,dataURLOptions:E,inlineImages:k,recordCanvas:T,keepIframeSrcFn:R,newlyAddedElement:M});if(!P)return console.warn(e,"not serialized"),null;n=s.hasNode(e)?s.getId(e):!function(e,t){if(t.comment&&e.type===m.Comment)return!0;
1if(e.type===m.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===el(e.attributes.href))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eR(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eR(e.attributes.name)||"icon"===eR(e.attributes.rel)||"apple-touch-icon"===eR(e.attributes.rel)||"shortcut icon"===eR(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&eR(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(eR(e.attributes.property).match(/^(og|twitter|fb):/)||eR(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eR(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===eR(e.attributes.name)||"googlebot"===eR(e.attributes.name)||"bingbot"===eR(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eR(e.attributes.name)||"generator"===eR(e.attributes.name)||"framework"===eR(e.attributes.name)||"publisher"===eR(e.attributes.name)||"progid"===eR(e.attributes.name)||eR(e.attributes.property).match(/^article:/)||eR(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eR(e.attributes.name)||"yandex-verification"===eR(e.attributes.name)||"csrf-token"===eR(e.attributes.name)||"p:domain_verify"===eR(e.attributes.name)||"verify-v1"===eR(e.attributes.name)||"verification"===eR(e.attributes.name)||"shopify-checkout-api-token"===eR(e.attributes.name)))return!0}}return!1}(P,S)&&(D||P.type!==m.Text||P.isStyle||P.textContent.replace(/^\s+|\s+$/gm,"").length)?eg():-2;let L=Object.assign(P,{id:n});if(s.add(e,L),-2===n)return null;x&&x(e);let N=!g;if(L.type===m.Element){N=N&&!L.needBlock,delete L.needBlock;let t=e.shadowRoot;t&&Z(t)&&(L.isShadowHost=!0)}if((L.type===m.Document||L.type===m.Element)&&N){S.headWhitespace&&L.type===m.Element&&"head"===L.tagName&&(D=!1);let t={doc:o,mirror:s,blockClass:a,blockSelector:u,maskAllText:c,unblockSelector:l,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,skipChild:g,inlineStylesheet:v,maskInputOptions:y,maskAttributeFn:_,maskTextFn:b,maskInputFn:w,slimDOMOptions:S,dataURLOptions:E,inlineImages:k,recordCanvas:T,preserveWhiteSpace:D,onSerialize:x,onIframeLoad:I,iframeLoadTimeout:C,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:R};for(let n of Array.from(e.childNodes)){let e=eM(n,t);e&&L.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=eM(n,t);r&&(Z(e.shadowRoot)&&(r.isShadow=!0),L.childNodes.push(r))}}return e.parentNode&&Q(e.parentNode)&&Z(e.parentNode)&&(L.isShadow=!0),L.type===m.Element&&"iframe"===L.tagName&&function(e,t,n){let r;let i=e.contentWindow;if(!i)return;let o=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){let r=eh(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{ef(r),o=!0,t()});return}let s="about:blank";if(i.location.href!==s||e.src===s||""===e.src)return eh(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&I){let n=eM(t,{doc:t,mirror:s,blockClass:a,blockSelector:u,unblockSelector:l,maskAllText:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:v,maskInputOptions:y,maskAttributeFn:_,maskTextFn:b,maskInputFn:w,slimDOMOptions:S,dataURLOptions:E,inlineImages:k,recordCanvas:T,preserveWhiteSpace:D,onSerialize:x,onIframeLoad:I,iframeLoadTimeout:C,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:R});n&&I(e,n)}},C),L.type===m.Element&&"link"===L.tagName&&"string"==typeof L.attributes.rel&&("stylesheet"===L.attributes.rel||"preload"===L.attributes.rel&&"string"==typeof L.attributes.href&&"css"===el(L.attributes.href))&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(e){return}if(r)return;let o=eh(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{ef(o),i=!0,t()})}(e,()=>{if(O){let t=eM(e,{doc:o,mirror:s,blockClass:a,blockSelector:u,unblockSelector:l,maskAllText:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:v,maskInputOptions:y,maskAttributeFn:_,maskTextFn:b,maskInputFn:w,slimDOMOptions:S,dataURLOptions:E,inlineImages:k,recordCanvas:T,preserveWhiteSpace:D,onSerialize:x,onIframeLoad:I,iframeLoadTimeout:C,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:R});t&&O(e,t)}},A),L}function eD(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}function eP(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let eL="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.",eN={map:{},getId:()=>(console.error(eL),-1),getNode:()=>(console.error(eL),null),removeNodeFromMap(){console.error(eL)},has:()=>(console.error(eL),!1),reset(){console.error(eL)}};function ej(e,t,n={}){let r=null,i=0;return function(...o){let s=Date.now();i||!1!==n.leading||(i=s);let a=t-(s-i),u=this;a<=0||a>t?(r&&(function(...e){e0("clearTimeout")(...e)}
1(r),r=null),i=s,e.apply(u,o)):r||!1===n.trailing||(r=e1(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(u,o)},a))}}function eU(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(eN=new Proxy(eN,{get:(e,t,n)=>("map"===t&&console.error(eL),Reflect.get(e,t,n))}));let eF=Date.now;function e$(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:eD([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||eD([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||eD([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:eD([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||eD([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||eD([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function eq(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function eB(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function eJ(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function eG(e,t,n,r,i){if(!e)return!1;let o=eJ(e);if(!o)return!1;let s=eO(t,n);if(!i){let e=r&&o.matches(r);return s(o)&&!e}let a=eC(o,s),u=-1;return!(a<0)&&(r&&(u=eC(o,eO(null,r))),a>-1&&u<0||a<u)}function eH(e,t){return -2===t.getId(e)}function ez(e){return!!e.changedTouches}function eW(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function eX(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function eK(e){return!!eD([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(eF=()=>new Date().getTime());class eV{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return(0,y.h)(this.styleIDMap.get(e),()=>-1)}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function eQ(e){let t=null;return eD([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 eZ(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=eQ(n);)n=t;return n}(e);return t.contains(n)}(e))}let eY={};function e0(e){let t=eY[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return eY[e]=r.bind(window)}function e1(...e){return e0("setTimeout")(...e)}var e2=((c=e2||{})[c.DomContentLoaded=0]="DomContentLoaded",c[c.Load=1]="Load",c[c.FullSnapshot=2]="FullSnapshot",c[c.IncrementalSnapshot=3]="IncrementalSnapshot",c[c.Meta=4]="Meta",c[c.Custom=5]="Custom",c[c.Plugin=6]="Plugin",c),e3=((d=e3||{})[d.Mutation=0]="Mutation",d[d.MouseMove=1]="MouseMove",d[d.MouseInteraction=2]="MouseInteraction",d[d.Scroll=3]="Scroll",d[d.ViewportResize=4]="ViewportResize",d[d.Input=5]="Input",d[d.TouchMove=6]="TouchMove",d[d.MediaInteraction=7]="MediaInteraction",d[d.StyleSheetRule=8]="StyleSheetRule",d[d.CanvasMutation=9]="CanvasMutation",d[d.Font=10]="Font",d[d.Log=11]="Log",d[d.Drag=12]="Drag",d[d.StyleDeclaration=13]="StyleDeclaration",d[d.Selection=14]="Selection",d[d.AdoptedStyleSheet=15]="AdoptedStyleSheet",d[d.CustomElement=16]="CustomElement",d),e4=((h=e4||{})[h.MouseUp=0]="MouseUp",h[h.MouseDown=1]="MouseDown",h[h.Click=2]="Click",h[h.ContextMenu=3]="ContextMenu",h[h.DblClick=4]="DblClick",h[h.Focus=5]="Focus",h[h.Blur=6]="Blur",h[h.TouchStart=7]="TouchStart",h[h.TouchMove_Departed=8]="TouchMove_Departed",h[h.TouchEnd=9]="TouchEnd",h[h.TouchCancel=10]="TouchCancel",h),e5=((f=e5||{})[f.Mouse=0]="Mouse",f[f.Pen=1]="Pen",f[f.Touch=2]="Touch",f);class e8{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=function(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
1(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let e6=(e,t)=>`${e}@${t}`;class e9{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new e8,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!eZ(i))return;let o=Q(i.parentNode)?this.mirror.getId(eQ(i)):this.mirror.getId(i.parentNode),s=r(i);if(-1===o||-1===s)return n.addNode(i);let a=eM(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=>{eW(e,this.mirror)&&this.iframeManager.addIframe(e),eX(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),eK(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:o,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!te(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)tt(this.droppedSet,e)||te(this.removes,e,this.mirror)?tt(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let o=null;for(;n.length;){let e=null;if(o){let 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;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),i(e.value)}let s={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.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(s))},this.processMutation=e=>{if(!eH(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;eG(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:eA(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,eJ(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){let n=ea(t),i=t.tagName;r=eu(t,i,n);let o=en({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=er({isMasked:eA(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(eG(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);
1if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!eI(t.tagName,n)&&(i.attributes[n]=ex(this.doc,ei(t.tagName),ei(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement("span");for(let r of(e.oldValue&&n.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(r),o=t.style.getPropertyPriority(r);e!==n.style.getPropertyValue(r)||o!==n.style.getPropertyPriority(r)?""===o?i.styleDiff[r]=e:i.styleDiff[r]=[e,o]:i._unchangedStyles[r]=[e,o]}for(let e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(eG(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=Q(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);eG(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||eH(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(e7(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(Q(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[e6(n,r)]?e7(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(Q(e.target)&&Z(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(eH(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[e6(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!eG(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),eK(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 e7(e,t){e.delete(t),t.childNodes.forEach(t=>e7(e,t))}function te(e,t,n){return 0!==e.length&&function e(t,n,r){let{parentNode:i}=n;if(!i)return!1;let o=r.getId(i);return!!t.some(e=>e.id===o)||e(t,i,r)}(e,t,n)}function tt(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let tn=e=>o?(...t)=>{try{return e(...t)}catch(e){if(o&&!0===o(e))return()=>{};throw e}}:e;function tr(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}let ti=[];function to(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function ts(e,t){let n=new e9;ti.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=tr([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);i&&window[i]&&(r=window[i]);let o=new r(tn(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 ta({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){return eP("scroll",tn(ej(tn(s=>{let a=to(s);if(!a||eG(a,r,i,o,!0))return;let u=n.getId(a);if(a===t&&t.defaultView){let n=e$(t.defaultView);e({id:u,x:n.left,y:n.top})}else e({id:u,x:a.scrollLeft,y:a.scrollTop})}),s.scroll||100)),t)}let tu=["INPUT","TEXTAREA","SELECT"],tl=new WeakMap;function tc(e){var t;return t=[],tp("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||tp("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||tp("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||tp("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}function td(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function th({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);let i="#document"===n.nodeName?tr([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):tr([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=tr([i,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(tr([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 tr([o,"access",e=>
1e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){let n=tr([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(e){}return n}}),tn(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function tf(e,t={}){let n;let r=e.doc.defaultView;if(!r)return()=>{};e.recordDOM&&(n=ts(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){let i;if(!1===t.mousemove)return()=>{};let o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],u=ej(tn(t=>{let n=Date.now()-i;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],i=null}),s),l=tn(ej(tn(e=>{let t=to(e),{clientX:n,clientY:o}=ez(e)?e.changedTouches[0]:e;i||(i=eF()),a.push({x:n,y:o,id:r.getId(t),timeOffset:eF()-i}),u("undefined"!=typeof DragEvent&&e instanceof DragEvent?e3.Drag:e instanceof MouseEvent?e3.MouseMove:e3.TouchMove)}),o,{trailing:!1})),c=[eP("mousemove",l,n),eP("touchmove",l,n),eP("drag",l,n)];return tn(()=>{c.forEach(e=>e())})}(e),o=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){if(!1===s.mouseInteraction)return()=>{};let a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,u=[],l=null,c=t=>s=>{let a=to(s);if(eG(a,r,i,o,!0))return;let u=null,c=t;if("pointerType"in s){switch(s.pointerType){case"mouse":u=e5.Mouse;break;case"touch":u=e5.Touch;break;case"pen":u=e5.Pen}u===e5.Touch?e4[t]===e4.MouseDown?c="TouchStart":e4[t]===e4.MouseUp&&(c="TouchEnd"):e5.Pen}else ez(s)&&(u=e5.Touch);null!==u?(l=u,(c.startsWith("Touch")&&u===e5.Touch||c.startsWith("Mouse")&&u===e5.Mouse)&&(u=null)):e4[t]===e4.Click&&(u=l,l=null);let d=ez(s)?s.changedTouches[0]:s;if(!d)return;let h=n.getId(a),{clientX:f,clientY:p}=d;tn(e)({type:e4[c],id:h,x:f,y:p,...null!==u&&{pointerType:u}})};return Object.keys(e4).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(e=>{let n=ei(e),r=c(e);if(window.PointerEvent)switch(e4[e]){case e4.MouseDown:case e4.MouseUp:n=n.replace("mouse","pointer");break;case e4.TouchStart:case e4.TouchEnd:return}u.push(eP(n,r,t))}),tn(()=>{u.forEach(e=>e())})}(e),s=ta(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return eP("resize",tn(ej(tn(()=>{let t=eq(),i=eB();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}(e,{win:r}),u=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:s,ignoreSelector:a,maskInputOptions:u,maskInputFn:l,sampling:c,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:m}){function g(e){let n=to(e),c=e.isTrusted,g=n&&eo(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||0>tu.indexOf(g)||eG(n,r,i,o,!0))return;let y=n;
1if(y.classList.contains(s)||a&&y.matches(a))return;let _=ea(n),b=eu(y,g,_),w=!1,S=en({maskInputOptions:u,tagName:g,type:_}),E=eA(n,h,p,f,m,S);("radio"===_||"checkbox"===_)&&(w=n.checked),b=er({isMasked:E,element:n,value:b,maskInputFn:l}),v(n,d?{text:b,isChecked:w,userTriggered:c}:{text:b,isChecked:w});let k=n.name;"radio"===_&&k&&w&&t.querySelectorAll(`input[type="radio"][name="${k}"]`).forEach(e=>{if(e!==n){let t=er({isMasked:E,element:e,value:eu(e,g,_),maskInputFn:l});v(e,d?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}})}function v(t,r){let i=tl.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){tl.set(t,r);let i=n.getId(t);tn(e)({...r,id:i})}}let y=("last"===c.input?["change"]:["input","change"]).map(e=>eP(e,tn(g),t)),_=t.defaultView;if(!_)return()=>{y.forEach(e=>e())};let b=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),w=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&y.push(...w.map(e=>(function e(t,n,r,i,o=window){let s=o.Object.getOwnPropertyDescriptor(t,n);return o.Object.defineProperty(t,n,i?r:{set(e){e1(()=>{r.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>e(t,n,s||{},!0)})(e[0],e[1],{set(){tn(g)({target:this,isTrusted:!1})}},!1,_))),tn(()=>{y.forEach(e=>e())})}(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:s}){let a=tn(s=>ej(tn(o=>{let a=to(o);if(!a||eG(a,t,n,r,!0))return;let{currentTime:u,volume:l,muted:c,playbackRate:d}=a;e({type:s,id:i.getId(a),currentTime:u,volume:l,muted:c,playbackRate:d})}),o.media||500)),u=[eP("play",a(0),s),eP("pause",a(1),s),eP("seeked",a(2),s),eP("volumechange",a(3),s),eP("ratechange",a(4),s)];return tn(()=>{u.forEach(e=>e())})}(e),c=()=>{},d=()=>{},h=()=>{},f=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){let i,o;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:tn((r,i,o)=>{let[s,a]=o,{id:u,styleId:l}=td(i,t,n.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,adds:[{rule:s,index:a}]}),r.apply(i,o)})});let a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:tn((r,i,o)=>{let[s]=o,{id:a,styleId:u}=td(i,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,removes:[{index:s}]}),r.apply(i,o)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:tn((r,i,o)=>{let[s]=o,{id:a,styleId:u}=td(i,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,replace:s}),r.apply(i,o)})})),r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:tn((r,i,o)=>{let[s]=o,{id:a,styleId:u}=td(i,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,replaceSync:s}),r.apply(i,o)})}));let u={};tm("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(tm("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),tm("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),tm("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));let l={};return Object.entries(u).forEach(([r,i])=>{l[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[r].insertRule,{apply:tn((r,i,o)=>{let[s,a]=o,{id:u,styleId:l}=td(i.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,adds:[{rule:s,index:[...tc(i),a||0]}]}),r.apply(i,o)})}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:tn((r,i,o)=>{let[s]=o,{id:a,styleId:u}=td(i.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,removes:[{index:[...tc(i),s]}]}),r.apply(i,o)})})}),tn(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=a,i&&(r.CSSStyleSheet.prototype.replace=i),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(u).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}(e,{win:r}),d=th(e,e.doc),h=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:tn((i,s,a)=>{let[u,l,c]=a;if(n.has(u))return o.apply(s,[u,l,c]);let{id:d,styleId:h}=td(tr([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||h&&-1!==h)&&e({id:d,styleId:h,set:{property:u,value:l,priority:c},index:tc(s.parentRule)}),i.apply(s,a)})});let s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:tn((i,o,a)=>{let[u]=a;if(n.has(u))return s.apply(o,[u]);let{id:l,styleId:c}=td(tr([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,remove:{property:u},index:tc(o.parentRule)}),i.apply(o,a)})}),tn(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:r}),e.collectFonts&&(f=function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){let 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};let s=eU(t.fonts,"add",function(t){return function(n){return e1(tn(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=o}),r.push(s),tn(()=>
1{r.forEach(e=>e())})}(e)));let p=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:s}=e,a=!0,u=tn(()=>{let e=t.getSelection();if(!e||a&&tr([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;let u=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:s,startOffset:a,endContainer:l,endOffset:c}=e.getRangeAt(t);eG(s,r,i,o,!0)||eG(l,r,i,o,!0)||u.push({start:n.getId(s),startOffset:a,end:n.getId(l),endOffset:c})}s({ranges:u})});return u(),eP("selectionchange",u)}(e),m=function({doc:e,customElementCb:t}){let n=e.defaultView;return n&&n.customElements?eU(n.customElements,"define",function(e){return function(n,r,i){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,r,t.options));return tn(()=>{ti.forEach(e=>e.reset()),tr([n,"optionalAccess",e=>e.disconnect,"call",e=>e()]),i(),o(),s(),a(),u(),l(),c(),d(),h(),f(),p(),m(),g.forEach(e=>e())})}function tp(e){return void 0!==window[e]}function tm(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class tg{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
1getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:r.get(t)||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function tv(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}class ty{constructor(){this.crossOriginIframeMirror=new tg(eg),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class t_{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new tg(eg),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new tg(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}),tv([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){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case e2.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:e2.IncrementalSnapshot,data:{source:e3.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case e2.Meta:case e2.Load:case e2.DomContentLoaded:break;case e2.Plugin:return t;case e2.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case e2.IncrementalSnapshot:switch(t.data.source){case e3.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case e3.Drag:case e3.TouchMove:case e3.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case e3.ViewportResize:return!1;case e3.MediaInteraction:case e3.MouseInteraction:case e3.Scroll:case e3.CanvasMutation:case e3.Input:return this.replaceIds(t.data,e,["id"]),t;case e3.StyleSheetRule:case e3.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case e3.Font:return t;case e3.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case e3.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),tv([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(let i of r)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
1h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===m.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class tb{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class tw{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(!Z(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=ts({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(ta({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),e1(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(th({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){let n=this;this.restoreHandlers.push(eU(e.prototype,"attachShadow",function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&eZ(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class tS{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class tE{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new eV,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:ee(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 tk{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){e0("requestAnimationFrame")(...e)}(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,t){let 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}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=(0,_.x)([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let tT=new et;function tx(e={}){let t;let{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:u="rr-block",blockSelector:l=null,unblockSelector:c=null,ignoreClass:d="rr-ignore",ignoreSelector:h=null,maskAllText:f=!1,maskTextClass:p="rr-mask",unmaskTextClass:m=null,maskTextSelector:g=null,unmaskTextSelector:v=null,inlineStylesheet:y=!0,maskAllInputs:b,maskInputOptions:w,slimDOMOptions:S,maskAttributeFn:E,maskInputFn:k,maskTextFn:T,maxCanvasSize:x=null,packFn:I,sampling:C={},dataURLOptions:O={},mousemoveWait:A,recordDOM:R=!0,recordCanvas:M=!1,recordCrossOriginIframes:D=!1,recordAfter:P="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:L=!1,collectFonts:N=!1,inlineImages:j=!1,plugins:U,keepIframeSrcFn:F=()=>!1,ignoreCSSAttributes:$=new Set([]),errorHandler:q,onMutation:B,getCanvasManager:J}=e;o=q;let G=!D||window.parent===window,H=!1;if(!G)try{window.parent.document&&(H=!1)}catch(e){H=!0}if(G&&!n)throw Error("emit function is required");void 0!==A&&void 0===C.mousemove&&(C.mousemove=A),tT.reset();let z=!0===b?{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!==w?w:{},W=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S}:S||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let X=0,K=e=>{for(let t of U||[])t.eventProcessor&&(e=t.eventProcessor(e));return I&&!H&&(e=I(e)),e};s=(e,o)=>{if(e.timestamp=eF(),(0,_.x)([ti,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&e.type!==e2.FullSnapshot&&!(e.type===e2.IncrementalSnapshot&&e.data.source===e3.Mutation)&&ti.forEac
1h(e=>e.unfreeze()),G)(0,_.x)([n,"optionalCall",t=>t(K(e),o)]);else if(H){let t={type:"rrweb",event:K(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===e2.FullSnapshot)t=e,X=0;else if(e.type===e2.IncrementalSnapshot){if(e.data.source===e3.Mutation&&e.data.isAttachIframe)return;X++;let n=i&&X>=i,o=r&&t&&e.timestamp-t.timestamp>r;(n||o)&&eo(!0)}};let V=e=>{s({type:e2.IncrementalSnapshot,data:{source:e3.Mutation,...e}})},Q=e=>s({type:e2.IncrementalSnapshot,data:{source:e3.Scroll,...e}}),Z=e=>s({type:e2.IncrementalSnapshot,data:{source:e3.CanvasMutation,...e}}),Y=new tE({mutationCb:V,adoptedStyleSheetCb:e=>s({type:e2.IncrementalSnapshot,data:{source:e3.AdoptedStyleSheet,...e}})}),ee="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new ty:new t_({mirror:tT,mutationCb:V,stylesheetManager:Y,recordCrossOriginIframes:D,wrappedEmit:s});for(let e of U||[])e.getMirror&&e.getMirror({nodeMirror:tT,crossOriginIframeMirror:ee.crossOriginIframeMirror,crossOriginIframeStyleMirror:ee.crossOriginIframeStyleMirror});let en=new tk,er=function(e,t){try{return e?e(t):new tS}catch(e){return console.warn("Unable to initialize CanvasManager"),new tS}}(J,{mirror:tT,win:window,mutationCb:e=>s({type:e2.IncrementalSnapshot,data:{source:e3.CanvasMutation,...e}}),recordCanvas:M,blockClass:u,blockSelector:l,unblockSelector:c,maxCanvasSize:x,sampling:C.canvas,dataURLOptions:O,errorHandler:q}),ei="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new tb:new tw({mutationCb:V,scrollCb:Q,bypassOptions:{onMutation:B,blockClass:u,blockSelector:l,unblockSelector:c,maskAllText:f,maskTextClass:p,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:v,inlineStylesheet:y,maskInputOptions:z,dataURLOptions:O,maskAttributeFn:E,maskTextFn:T,maskInputFn:k,recordCanvas:M,inlineImages:j,sampling:C,slimDOMOptions:W,iframeManager:ee,stylesheetManager:Y,canvasManager:er,keepIframeSrcFn:F,processedNodeManager:en},mirror:tT}),eo=(e=!1)=>{if(!R)return;s({type:e2.Meta,data:{href:window.location.href,width:eB(),height:eq()}},e),Y.reset(),ei.init(),ti.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new et,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:u=null,maskTextSelector:l=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:f=!1,maskAllInputs:p=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOM:y=!1,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:k,stylesheetLoadTimeout:T,keepIframeSrcFn:x=()=>!1}=t||{};return eM(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:s,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===p?{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===p?{}:p,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:_,inlineImages:h,recordCanvas:f,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:k,stylesheetLoadTimeout:T,keepIframeSrcFn:x,newlyAddedElement:!1})}(document,{mirror:tT,blockClass:u,blockSelector:l,unblockSelector:c,maskAllText:f,maskTextClass:p,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:v,inlineStylesheet:y,maskAllInputs:z,maskAttributeFn:E,maskInputFn:k,maskTextFn:T,slimDOM:W,dataURLOptions:O,recordCanvas:M,inlineImages:j,onSerialize:e=>{eW(e,tT)&&ee.addIframe(e),eX(e,tT)&&Y.trackLinkElement(e),eK(e)&&ei.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{ee.attachIframe(e,t),e.contentWindow&&er.addWindow(e.contentWindow),ei.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},keepIframeSrcFn:F});if(!t)return console.warn("Failed to snapshot the document");s({type:e2.FullSnapshot,data:{node:t,initialOffset:e$(window)}}
1),ti.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,tT.getId(document))};a=eo;try{let e=[],t=e=>tn(tf)({onMutation:B,mutationCb:V,mousemoveCb:(e,t)=>s({type:e2.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>s({type:e2.IncrementalSnapshot,data:{source:e3.MouseInteraction,...e}}),scrollCb:Q,viewportResizeCb:e=>s({type:e2.IncrementalSnapshot,data:{source:e3.ViewportResize,...e}}),inputCb:e=>s({type:e2.IncrementalSnapshot,data:{source:e3.Input,...e}}),mediaInteractionCb:e=>s({type:e2.IncrementalSnapshot,data:{source:e3.MediaInteraction,...e}}),styleSheetRuleCb:e=>s({type:e2.IncrementalSnapshot,data:{source:e3.StyleSheetRule,...e}}),styleDeclarationCb:e=>s({type:e2.IncrementalSnapshot,data:{source:e3.StyleDeclaration,...e}}),canvasMutationCb:Z,fontCb:e=>s({type:e2.IncrementalSnapshot,data:{source:e3.Font,...e}}),selectionCb:e=>{s({type:e2.IncrementalSnapshot,data:{source:e3.Selection,...e}})},customElementCb:e=>{s({type:e2.IncrementalSnapshot,data:{source:e3.CustomElement,...e}})},blockClass:u,ignoreClass:d,ignoreSelector:h,maskAllText:f,maskTextClass:p,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:v,maskInputOptions:z,inlineStylesheet:y,sampling:C,recordDOM:R,recordCanvas:M,inlineImages:j,userTriggeredOnInput:L,collectFonts:N,doc:e,maskAttributeFn:E,maskInputFn:k,maskTextFn:T,keepIframeSrcFn:F,blockSelector:l,unblockSelector:c,slimDOMOptions:W,dataURLOptions:O,mirror:tT,iframeManager:ee,stylesheetManager:Y,shadowDomManager:ei,processedNodeManager:en,canvasManager:er,ignoreCSSAttributes:$,plugins:(0,_.x)([U,"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=>s({type:e2.Plugin,data:{plugin:e.name,payload:t}})}))])||[]},{});ee.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{eo(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(eP("DOMContentLoaded",()=>{s({type:e2.DomContentLoaded,data:{}}),"DOMContentLoaded"===P&&n()})),e.push(eP("load",()=>{s({type:e2.Load,data:{}}),"load"===P&&n()},window))),()=>{e.forEach(e=>e()),en.destroy(),a=void 0,o=void 0}}catch(e){console.warn(e)}}function tI(e){return e>9999999999?e:1e3*e}function tC(e){return e>9999999999?e/1e3:e}function tO(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:e2.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,C.Fv)(t,10,1e3)}}),"console"===t.category)))}function tA(e){return e.closest("button,a")||e}function tR(e){let t=tM(e);return t&&t instanceof Element?tA(t):t}function tM(e){return"object"==typeof e&&e&&"target"in e?e.target:e}tx.mirror=tT,tx.takeFullSnapshot=function(e){if(!a)throw Error("please take full snapshot after start recording");a(e)};class tD{constructor(e,t,n=tO){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(){var e;let t=(e=()=>{this._lastMutation=tL()},u||(u=[],(0,O.hl)(z,"open",function(e){return function(...t){if(u)try{u.forEach(e=>e())}catch(e){}return e.apply(z,t)}})),u.push(e),()=>{let t=u?u.indexOf(e):-1;t>-1&&u.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n;if(n=this._ignoreSelector,!tP.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||n&&t.matches(n)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let r={timestamp:tC(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===r.node&&1>
1Math.abs(e.timestamp-r.timestamp))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=tC(e)}registerScroll(e=Date.now()){this._lastScroll=tC(e)}registerClick(e){let t=tA(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=tL();for(let n of(this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:o}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:z.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,s);return}if(i>1){let e={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:z.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,q.iK)(()=>this._checkClicks(),1e3)}}let tP=["A","BUTTON","INPUT"];function tL(){return Date.now()/1e3}function tN(e){return{timestamp:Date.now()/1e3,type:"default",...e}}(p=g||(g={}))[p.Document=0]="Document",p[p.DocumentType=1]="DocumentType",p[p.Element=2]="Element",p[p.Text=3]="Text",p[p.CDATA=4]="CDATA",p[p.Comment=5]="Comment";let tj=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),tU=e=>t=>{if(!e.isEnabled())return;let n=function(e){let{target:t,message:n}=function(e){let t;let n="click"===e.name,r=null;try{r=n?tR(e.event):tM(e.event),t=(0,A.Rt)(r,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:r,message:t}}(e);return tN({category:`ui.${e.name}`,...tF(t,n)})}(t);if(!n)return;let r="click"===t.name,i=r?t.event:void 0;r&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,tR(t.event)),tO(e,n)};function tF(e,t){let n=tx.mirror.getId(e),r=n&&tx.mirror.getNode(n),i=r&&tx.mirror.getMeta(r),o=i&&i.type===g.Element?i:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>e.type===g.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(tj.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(o.attributes)}}:{}}}let t$={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:s,encodedBodySize:a,responseStatus:u,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:tJ(o),end:tJ(i),name:r,data:{size:l,statusCode:u,decodedBodySize:s,encodedBodySize:a}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:i}=e,o=tJ(i);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,domInteractive:l,loadEventStart:c,loadEventEnd:d,redirectCount:h,startTime:f,transferSize:p,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:tJ(f),end:tJ(o),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:s,duration:i,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,loadEventStart:c,loadEventEnd:d,domComplete:o,redirectCount:h}}}};function tq(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function tB(e){let t=t$[e.entryType];return t?t(e):null}function tJ(e){return((R.Z1||z.performance.timeOrigin)+e)/1e3}function tG(e){let t=e.entries[e.entries.length-1];return tX(e,"largest-contentful-paint",t?t.element:void 0)}function tH(e){let t=e.entries[0];return tX(e,"cumulative-layout-shift",t&&t.sources&&t.sources[0]?t.sources[0].node:void 0)}function tz(e){let t=e.entries[e.entries.length-1];return tX(e,"first-input-delay",t?t.target:void 0)}function tW(e){let t=e.entries[e.entries.length-1];return tX(e,"interaction-to-next-paint",t?t.target:void 0)}
1function tX(e,t,n){let r=e.value,i=e.rating,o=tJ(r);return{type:"web-vital",name:t,start:o,end:o,data:{value:r,size:r,rating:i,nodeId:n?tx.mirror.getId(n):void 0}}}class tK extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class tV{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){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new tK;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?tI(e):null}}class tQ{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let o=({data:t})=>{if(t.method===e&&t.id===n){if(this._worker.removeEventListener("message",o),!t.success){i(Error("Error in compression worker"));return}r(t.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class tZ{constructor(e){this._worker=new tQ(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){let t=tI(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new tK):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class tY{constructor(e){this._fallback=new tV,this._compression=new tZ(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}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){}}}function t0(){try{return"sessionStorage"in z&&!!z.sessionStorage}catch(e){return!1}}function t1(e){return void 0!==e&&Math.random()<e}function t2(e){let t=Date.now(),n=e.id||(0,D.DM)(),r=e.started||t,i=e.lastActivity||t;return{id:n,started:r,lastActivity:i,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function t3(e){if(t0())try{z.sessionStorage.setItem(W,JSON.stringify(e))}catch(e){}}function t4({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=t2({sampled:t1(e)?"session":!!t&&"buffer",previousSessionId:r});return n&&t3(i),i}function t5(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function t8(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return t5(e.started,t,r)||t5(e.lastActivity,n,r)}function t6(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!t8(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function t9({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},i){let o=i.stickySession&&function(e){if(!t0())return null;try{let e=z.sessionStorage.getItem(W);if(!e)return null;let t=JSON.parse(e);return t2(t)}catch(e){return null}}(0);return o?t6(o,{sessionIdleExpire:t,maxReplayDuration:n})?t4(i,{previousSessionId:o.id}):o:t4(i,{previousSessionId:r})}function t7(e,t,n){return!!nt(e,t)&&(ne(e,t,n),!0)}async function ne(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);let r=e.getOptions(),i=function(e,t){try{if("function"==typeof t&&e.type===e2.Custom)return t(e)}catch(e){return null}return e}(t,r.beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(n){await e.stop({reason:n&&n instanceof tK?"addEventSizeExceeded":"addEvent"});let t=(0,b.s3)();t&&t.recordDroppedEvent("internal_sdk_error","replay")}}
1function nt(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=tI(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(e.getOptions()._experiments.traceInternals,!1))}function nn(e){return"transaction"===e.type}function nr(e){return"feedback"===e.type}function ni(e){return!!e.category}function no(e,t){return t.map(({type:t,start:n,end:r,name:i,data:o})=>{let s=e.throttledAddEvent({type:e2.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof s?Promise.resolve(null):s})}function ns(e,t){e.isEnabled()&&null!==t&&!function(e,t){let n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return!!n&&e.includes(n.host)||!!r&&w(e)===w(r)}(t.name,(0,b.s3)())&&e.addUpdate(()=>(no(e,[t]),!0))}function na(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=nm(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function nu(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function nl(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[nm(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function nc(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function nd(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:s,request:a,response:u}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:(0,O.Jr)({method:o,statusCode:s,request:a,response:u})}}function nh(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function nf(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,n=function(e){let t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){let t=e.slice(0,15e4);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}â¦`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}function np(e,t){return Object.entries(e).reduce((n,[r,i])=>{let o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=i),n},{})}function nm(e){return new URLSearchParams(e).toString()}function ng(e,t){let n=function(e,t=z.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(z.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return(0,P.U0)(n,t)}async function nv(e,t,n){try{let r=await ny(e,t,n),i=nd("resource.fetch",r);ns(n.replay,i)}catch(e){}}async function ny(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=t,{url:s,method:a,status_code:u=0,request_body_size:l,response_body_size:c}=e.data,d=ng(s,n.networkDetailAllowUrls)&&!ng(s,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:o,url:s,method:a,statusCode:u,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?1===n.length&&"string"!=typeof n[0]?nE(n[0],t):2===n.length?nE(n[1],t):{}:{};if(!e)return nf(i,r,void 0);let[o,s]=nl(nw(n)),a=nf(i,r,o);return s?nc(a,s):a}(n,t.input,l):nh(l),response:await n_(d,n,t.response,c)}}async function n_(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&void 0!==i)return nh(i);let o=r?nS(r.headers,n):{};if(!r||!t&&void 0!==i)return nf(o,i,void 0);let[s,a]=await nb(r),u=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let o=e&&e.length&&void 0===n?na(e):n;if(!r)return nh(o);if(t)return nf(i,o,e);return nf(i,o,void 0)}catch(e){return nf(i,n,void 0)}}(s,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});return a?nc(u,a):u}async function nb(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];
1try{return[await new Promise((e,n)=>{let r=(0,q.iK)(()=>n(Error("Timeout while trying to read response body")),500);nk(t).then(t=>e(t),e=>n(e)).finally(()=>clearTimeout(r))})]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}}function nw(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function nS(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function nE(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?nS(n,t):Array.isArray(n)?{}:np(n,t):{}}async function nk(e){return await e.text()}async function nT(e,t,n){try{let r=function(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:s,xhr:a}=t,{url:u,method:l,status_code:c=0,request_body_size:d,response_body_size:h}=e.data;if(!u)return null;if(!a||!ng(u,n.networkDetailAllowUrls)||ng(u,n.networkDetailDenyUrls)){let e=nh(d);return{startTimestamp:i,endTimestamp:o,url:u,method:l,statusCode:c,request:e,response:nh(h)}}let f=a[J.xU],p=f?np(f.request_headers,n.networkRequestHeaders):{},m=np(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}(a),n.networkResponseHeaders),[g,v]=n.networkCaptureBodies?nl(s):[void 0],[y,_]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return[void 0]}(a):[void 0],b=nf(p,d,g),w=nf(m,h,y);return{startTimestamp:i,endTimestamp:o,url:u,method:l,statusCode:c,request:v?nc(b,v):b,response:_?nc(w,_):w}}(e,t,n),i=nd("resource.xhr",r);ns(n.replay,i)}catch(e){}}async function nx(e){try{return Promise.all(no(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(z.performance.memory)]))}catch(e){return[]}}async function nI({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,i);let o=await (0,E.R)(e.getOptions(),r,i,t,e,(0,b.aF)());if(!o)return null;o.platform=o.platform||"javascript";let s=e.getSdkMetadata(),{name:a,version:u}=s&&s.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:u||"0.0.0"},o}async function nC({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){var s;let a;let u=function({recordingData:e,headers:t}){let n;let r=`${JSON.stringify(t)} 2`;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);(n=new Uint8Array(t.length+e.length)).set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:l,errorIds:c,traceIds:d,initialTimestamp:h}=r,f=(0,b.s3)(),p=(0,b.nZ)(),m=f&&f.getTransport(),g=f&&f.getDsn();if(!f||!m||!g||!o.sampled)return(0,N.WD)({});let v={type:"replay_event",replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:c,trace_ids:d,urls:l,replay_id:t,segment_id:n,replay_type:o.sampled},y=await nI({scope:p,client:f,replayId:t,event:v});if(!y)return f.recordDroppedEvent("event_processor","replay",v),(0,N.WD)({});delete y.sdkProcessingMetadata;let _=(s=f.getOptions().tunnel,(0,L.Jd)((0,L.Cd)(y,(0,L.HY)(y),s,g),[[{type:"replay_event"},y],[{type:"replay_recording",length:"string"==typeof u?new TextEncoder().encode(u).length:u.length},u]]));try{a=await m.send(_)}catch(t){let e=Error(X);try{e.cause=t}catch(e){}throw e}if("number"==typeof a.statusCode&&(a.statusCode<200||a.statusCode>=300))throw new nO(a.statusCode);let w=(0,j.WG)({},a);if((0,j.Q)(w,"replay"))throw new nA(w);return a}class nO extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class nA extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function nR(e,t={count:0,interval:5e3}){let{recordingData:n,options:r}=e;if(n.length)try{return await nC(e),!0}catch(n){if(n instanceof nO||n instanceof nA)throw n;if((0,S.v)("Replays",{_retryCount:t.count}),t.count>=3){let e=Error(`${X} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise((n,r)=>{(0,q.iK)(async()=>{try{await nR(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let nM="__THROTTLED";class nD{constructor({options:e,recordingOptions:t}){nD.prototype.__init.call(this),nD.prototype.__init2.call(this),nD.prototype.__init3.call(this),nD.prototype.__init4.call(this),nD.prototype.__init5.call(this),nD.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;let s=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return u(),r=e()}function u(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function l(){return i&&clearTimeout(i),i=(0,q.iK)(a,t),s&&void 0===o&&(o=(0,q.iK)(a,s)
2),r}return l.cancel=u,l.flush=function(){return void 0!==i||void 0!==o?a():r},l}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){let r=new Map,i=e=>{let t=e-5;r.forEach((e,n)=>{n<t&&r.delete(n)})},o=()=>[...r.values()].reduce((e,t)=>e+t,0),s=!1;return(...t)=>{let n=Math.floor(Date.now()/1e3);if(i(n),o()>=300){let e=s;return s=!0,e?"__SKIPPED":nM}s=!1;let a=r.get(n)||0;return r.set(n,a+1),e(...t)}}((e,t)=>nt(this,e)?ne(this,e,t):Promise.resolve(null),0,0);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new tD(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){this._handleException(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this.recordingMode,this._options._experiments.traceInternals,this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._options._experiments.traceInternals,this._updateUserActivity();let e=t9({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)return;this._options._experiments.traceInternals;let e=t9({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{var e;let t;let n=this._canvas;this._stopRecording=tx({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession())return;let i=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(3!==t.type)return;let{source:n}=t.data;if(n===e3.Mutation&&e.registerMutation(t.timestamp),n===e3.Scroll&&e.registerScroll(t.timestamp),t.data.source===e3.MouseInteraction){let{type:n,id:r}=t.data,i=tx.mirror.getNode(r);i instanceof HTMLElement&&n===e4.Click&&e.registerClick(i)}}catch(e){}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!t7(e,n,i))return!0;if(!i)return!1;if(i&&e.session&&0===e.session.segmentId&&t7(e,function(e){let t=e.getOptions();return{type:e2.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.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){let t=e.eventBuffer.getEarliestTimestamp();t&&(e.getOptions()._experiments.traceInternals,e.session.started=t,e.getOptions().stickySession&&t3(e.session))}return"session"===e.recordingMode&&e.flush(),!0})}),onMutation:this._onMutationHandler,...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{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,function(){if(t0())try{z.sessionStorage.removeItem(W)}catch(e){}}(),this.session=void 0}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),this._options._experiments.traceInternals)}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),this._options._experiments.traceInternals)}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();this._options._experiments.traceInternals,await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}
2checkAndHandleExpiredSession(){if(this._lastActivity&&t5(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${z.location.pathname}${z.location.hash}${z.location.search}`,t=`${z.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===nM){let e=tN({category:"replay.throttled"});this.addUpdate(()=>!t7(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||(0,k.HN)(),t=e&&(0,k.Gx)(e),n=(t&&(0,k.XU)(t).data||{})[T.Zj];if(t&&n&&["route","custom"].includes(n))return(0,k.XU)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){let e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),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<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>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))}
vendor: 4,591 bytes, line 2
2,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;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(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<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=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<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!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+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){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<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(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<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>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;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
2++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(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;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=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<n.length;++i)e[i]=n.charCodeAt(i);return e}if(J)return J.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.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<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;let n=new Worker(t);return new tY(n)}catch(e){}}(t);if(e)return e}return new tV}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=t9({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;let e=this.session;return!t6(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{z.document.addEventListener("visibilitychange",this._handleVisibilityChange),z.addEventListener("blur",this._handleWindowBlur),z.addEventListener("focus",this._handleWindowFocus),z.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){let t=(0,b.s3)();(0,G.O)(tU(e)),(0,H.a)(t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(no(e,[n]),!1)))}),function(e){let t=(0,b.s3)();t&&t.on("beforeAddBreadcrumb",t=>(function(e,t){if(!e.isEnabled()||!ni(t))return;let n=!ni(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return tN(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}â¦`):e;if("object"==typeof e)try{let t=(0,C.Fv)(e,7);if(JSON.stringify(t).length>5e3)return n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}â¦`;return t}catch(e){}return e});return tN({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):tN(t);n&&tO(e,n)})(e,t))}(e),function(e){let t=(0,b.s3)();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,i;"xhr"===t.category&&(r=n)&&r.xhr&&(function(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=na(r),o=n.getResponseHeader("content-length")?nu(n.getResponseHeader("content-length")):function(e,t){try{let n="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return na(n)}catch(e){return}}(n.response,n.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,n),nT(t,n,e)),"fetch"===t.category&&(i=n)&&i.response&&(function(e,t){let{input
2:n,response:r}=t,i=na(n?nw(n):void 0),o=r?nu(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),nv(t,n,e))}catch(e){}})(a,e,t))}catch(e){}}(e);let n=Object.assign((t,n)=>e.isEnabled()?"replay_event"===t.type?(delete t.breadcrumbs,t):(!t.type||nn(t)||nr(t))&&e.checkAndHandleExpiredSession()?nr(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:e2.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t):!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&n.originalException&&n.originalException.__rrweb__&&!e.getOptions()._experiments.captureExceptions?null:(("buffer"===e.recordingMode&&t.message!==X&&t.exception&&!t.type&&t1(e.getOptions().errorSampleRate)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):t:t,{id:"Replay"});(0,S.Qy)(n),t&&(t.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;"string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&tO(e,tN({category:"replay.hydrate-error",data:{url:(0,A.l4)()}}))}(e,t)}),t.on("afterSendEvent",(t,n)=>{if(!e.isEnabled()||t.type&&!nn(t))return;let r=n&&n.statusCode;if(r&&!(r<200)&&!(r>=300)){if(nn(t)){(function(e,t){let 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);return}(function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&(0,q.iK)(()=>{e.sendBufferedReplayOrFlush()})})(e,t)}}),t.on("createDsc",t=>{let 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)=>{let 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)}let r=[];return["navigation","paint","resource"].forEach(e=>{r.push((0,B._j)(e,n))}),r.push((0,B.$A)(tq(tG,e)),(0,B.PR)(tq(tH,e)),(0,B.to)(tq(tz,e)),(0,B.YF)(tq(tW,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{z.document.removeEventListener("visibilitychange",this._handleVisibilityChange),z.removeEventListener("blur",this._handleWindowBlur),z.removeEventListener("focus",this._handleWindowFocus),z.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===z.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=tN({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=tN({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:o,key:s,target:a}=e;if(!a||"INPUT"===(t=a).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!s)return null;let u=n||i||o,l=1===s.length;if(!u&&l)return null;let c=(0,A.Rt)(a,{maxStringLength:200})||"<unknown>",d=tF(a,c);return tN({category:"ui.keyDown",message:c,data:{...d.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:o,key:s}})}(t);n&&tO(e,n)}(this,e)}}
2_doChangeToBackgroundTasks(e){!this.session||t8(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:e2.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(tB).filter(Boolean).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(no(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}
2_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents)&&(await nx(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await nR({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"});let e=(0,b.s3)();e&&e.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){this._options._experiments.traceInternals,r&&this._debouncedFlush();return}let o=this.eventBuffer;if(o&&0===this.session.segmentId&&!o.hasCheckout&&this._options._experiments.traceInternals,!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(e){}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&t3(this.session)}__init6(){this._onMutationHandler=e=>{let t=e.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,i=n&&t>n;if(t>r||i){let e=tN({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function nP(e,t){return[...e,...t].join(",")}let nL='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',nN=["content-length","content-type","accept"],nj=!1;class nU{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:s,_experiments:a={},maskAllText:u=!0,maskAllInputs:l=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:h=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:p=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:v=!0,networkRequestHeaders:y=[],networkResponseHeaders:_=[],mask:b=[],maskAttributes:w=["title","placeholder"],unmask:S=[],block:E=[],unblock:k=[],ignore:T=[],maskFn:x,beforeAddRecordingEvent:I,beforeErrorSampling:C}={}){this.name=nU.id;let O=function({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:nP(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:nP(t,[]),blockSelector:nP(n,[".sentry-block","[data-sentry-block]",'base[href="/"]']),unblockSelector:nP(r,[]),ignoreSelector:nP(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:S,block:E,unblock:k,ignore:T});if(this._recordingOptions={maskAllInputs:l,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:x,maskInputFn:x,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})({maskAttributes:w,maskAllText:u,privacyOptions:O,key:e,value:t,el:n}),...O,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,3
26e5),stickySession:i,useCompression:o,workerUrl:s,blockAllMedia:c,maskAllInputs:l,maskAllText:u,mutationBreadcrumbLimit:d,mutationLimit:h,slowClickTimeout:f,slowClickIgnoreSelectors:p,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:v,networkRequestHeaders:nF(y),networkResponseHeaders:nF(_),beforeAddRecordingEvent:I,beforeErrorSampling:C,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${nL}`:nL),this._isInitialized&&$())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return nj}set _isInitialized(e){nj=e}afterAllSetup(e){$()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...(0,O.Jr)(e)},i=(0,x.o)(n.replaysSessionSampleRate),o=(0,x.o)(n.replaysOnErrorSampleRate);return null==i&&null==o&&(0,M.Cf)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(r.sessionSampleRate=i),null!=o&&(r.errorSampleRate=o),r}(this._initialOptions,e);this._replay=new nD({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}function nF(e){return[...nN,...e.map(e=>e.toLowerCase())]}nU.__initStatic();var n$=window;n$.__sentryRewritesTunnelPath__=void 0,n$.SENTRY_RELEASE={id:"jXyM6U5XR87s1rvzsXr6L"},n$.__sentryBasePath=void 0,n$.__rewriteFramesAssetPrefixPath__="",v.S1({dsn:"https://f659f8b84eee79773e21a88b3062a7a4@o4507536766074880.ingest.us.sentry.io/4507548130672640",environment:"production",debug:!1,replaysOnErrorSampleRate:1,replaysSessionSampleRate:.1,integrations:[new nU({maskAllText:!0,blockAllMedia:!0})],tracesSampler:e=>e.name.includes("_error")?1:.05})},26541:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return _}});let r=n(38754),i=n(61757),o=n(85893),s=i._(n(67294)),a=r._(n(73935)),u=r._(n(7828)),l=n(17367),c=n(27903),d=n(54938);n(1997);let h=n(9953),f=r._(n(56663)),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,160,256,320,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function m(e,t,n,r,i,o,s){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function g(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,s.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:u,decoding:l,className:c,style:d,fetchPriority:h,placeholder:f,loading:p,unoptimized:v,fill:y,onLoadRef:_,onLoadingCompleteRef:b,setBlurComplete:w,setShowAltText:S,sizesInput:E,onLoad:k,onError:T,...x}=e;return(0,o.jsx)("img",{...x,...g(h),loading:p,width:u,height:a,decoding:l,"data-nimg":y?"fill":"1",className:c,style:d,sizes:i,srcSet:r,src:n,ref:(0,s.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(T&&(e.src=e.src),e.complete&&m(e,f,_,b,w,v,E))},[n,f,_,b,w,T,v,E,t]),onLoad:e=>{m(e.currentTarget,f,_,b,w,v,E)},onError:e=>{S(!0),"empty"!==f&&w(!0),T&&T(e)}})});function y(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):(0,o.jsx)(u.default,{children:(0,o.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let _=(0,s.forwardRef)((e,t)=>{let n=(0,s.useContext)(h.RouterContext),r=(0,s.useContext)(d.ImageConfigContext),i=(0,s.useMemo)(()=>{let e=p||r||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>
2e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:a,onLoadingComplete:u}=e,m=(0,s.useRef)(a);(0,s.useEffect)(()=>{m.current=a},[a]);let g=(0,s.useRef)(u);(0,s.useEffect)(()=>{g.current=u},[u]);let[_,b]=(0,s.useState)(!1),[w,S]=(0,s.useState)(!1),{props:E,meta:k}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:_,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...E,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:S,sizesInput:e.sizes,ref:t}),k.priority?(0,o.jsx)(y,{isAppRouter:!n,imgAttributes:E}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17367:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return a}}),n(1997);let r=n(69919),i=n(27903);function o(e){return void 0!==e.default}function s(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function a(e,t){var n;let a,u,l,{src:c,sizes:d,unoptimized:h=!1,priority:f=!1,loading:p,className:m,quality:g,width:v,height:y,fill:_=!1,style:b,overrideSrc:w,onLoad:S,onLoadingComplete:E,placeholder:k="empty",blurDataURL:T,fetchPriority:x,layout:I,objectFit:C,objectPosition:O,lazyBoundary:A,lazyRoot:R,...M}=e,{imgConf:D,showAltText:P,blurComplete:L,defaultLoader:N}=t,j=D||i.imageConfigDefault;if("allSizes"in j)a=j;else{let e=[...j.deviceSizes,...j.imageSizes].sort((e,t)=>e-t),t=j.deviceSizes.sort((e,t)=>e-t);a={...j,allSizes:e,deviceSizes:t}}if(void 0===N)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let U=M.loader||N;delete M.loader,delete M.srcSet;let F="__next_img_default"in U;if(F){if("custom"===a.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=U;U=t=>{let{config:n,...r}=t;return e(r)}}if(I){"fill"===I&&(_=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[I];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[I];t&&!d&&(d=t)}let $="",q=s(v),B=s(y);if("object"==typeof(n=c)&&(o(n)||void 0!==n.src)){let e=o(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(u=e.blurWidth,l=e.blurHeight,T=T||e.blurDataURL,$=e.src,!_){if(q||B){if(q&&!B){let t=q/e.width;B=Math.round(e.height*t)}else if(!q&&B){let t=B/e.height;q=Math.round(e.width*t)}}else q=e.width,B=e.height}}let J=!f&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:$)||c.startsWith("data:")||c.startsWith("blob:"))&&(h=!0,J=!1),a.unoptimized&&(h=!0),F&&c.endsWith(".svg")&&!a.dangerouslyAllowSVG&&(h=!0),f&&(x="high");let G=s(g),H=Object.assign(_?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:O}:{},P?{}:{color:"transparent"},b),z=L||"empty"===k?null:"blur"===k?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:q,heightInt:B,blurWidth:u,blurHeight:l,blurDataURL:T||"",objectFit:H.objectFit})+'")':'url("'+k+'")',W=z?{backgroundSize:H.objectFit||"cover",backgroundPosition:H.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:z}:{},X=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:s,loader:a}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:u,kind:l}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,s),c=u.length-1;return{sizes:s||"w"!==l?s:"100vw",srcSet:u.map((e,r)=>a({config:t,src:n,quality:o,width:e})+" "+("w"===l?e:r+1)+l).join(", "),src:a({config:t,src:n,quality:o,width:u[c]})}}({config:a,src:c,unoptimized:h,width:q,quality:G,sizes:d,loader:U});return{props:{...M,loading:J?"lazy":p,fetchPriority:x,width:q,height:B,decoding:"async",className:m,style:{...H,...W},sizes:X.sizes,srcSet:X.srcSet,src:w||X.src},meta:{unoptimized:h,priority:f,placeholder:k,fill:_}}}},69919:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:s}=e,a=r?40*r:t,u=i?40*i:n,l=a&&u?"viewBox='0 0 "+a+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+l+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3Cfe
2ColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(l?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},35666:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return u},getImageProps:function(){return a}});let r=n(38754),i=n(17367),o=n(26541),s=r._(n(56663));function a(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,160,256,320,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let u=o.Image},56663:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},15059:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return C}});var r=n(85893);n(19311),n(22608),n(36634);var i=n(32161);let o=console;var s=n(30081),a=n(72379);class u{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:i.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class l extends u{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||o,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){let n=(0,i.oE)(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>
2t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r,o,s;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let u=(0,i.G9)(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(u)return this.abortSignalConsumed=!0,u.signal}})};c(l);let d={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};c(d),null==(n=this.options.behavior)||n.onFetch(d),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=d.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(s=d.fetchOptions)?void 0:s.meta});let h=e=>{if((0,a.DV)(e)&&e.silent||this.dispatch({type:"error",error:e}),!(0,a.DV)(e)){var t,n,r,i;null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,a.Mz)({fn:d.fetchFn,abort:null==u?void 0:u.abort.bind(u),onSuccess:e=>{var t,n,r,i;if(void 0===e){h(Error(this.queryHash+" data is undefined"));return}this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:(0,a.Kw)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=e.error;if((0,a.DV)(i)&&i.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),s.V.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}var c=n(33989);class d extends c.l{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;let o=t.queryKey,s=null!=(r=t.queryHash)?r:(0,i.Rm)(o,t),a=this.get(s);return a||(a=new l({cache:this,logger:e.getLogger(),queryKey:o,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){s.V.batch(()=>
2{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[n]=(0,i.I6)(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>(0,i._x)(n,e))}findAll(e,t){let[n]=(0,i.I6)(e,t);return Object.keys(n).length>0?this.queries.filter(e=>(0,i._x)(n,e)):this.queries}notify(e){s.V.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){s.V.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){s.V.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class h extends u{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||o,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,n,r,i,o,s,u,l,c,d,h,f,p,m,g,v,y,_,b;let w="loading"===this.state.status;try{if(!w){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(l=(c=this.mutationCache.config).onMutate)?void 0:l.call(c,this.state.variables,this));let e=await (null==(d=(h=this.options).onMutate)?void 0:d.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let f=await (()=>{var e;return this.retryer=(0,a.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,f,this.state.variables,this.state.context,this)),await (null==(n=(r=this.options).onSuccess)?void 0:n.call(r,f,this.state.variables,this.state.context)),await (null==(i=(o=this.mutationCache.config).onSettled)?void 0:i.call(o,f,null,this.state.variables,this.state.context,this)),await (null==(s=(u=this.options).onSettled)?void 0:s.call(u,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{throw await (null==(f=(p=this.mutationCache.config).onError)?void 0:f.call(p,e,this.state.variables,this.state.context,this)),await (null==(m=(g=this.options).onError)?void 0:m.call(g,e,this.state.variables,this.state.context)),await (null==(v=(y=this.mutationCache.config).onSettled)?void 0:v.call(y,void 0,e,this.state.variables,this.state.context,this)),await (null==(_=(b=this.options).onSettled)?void 0:_.call(b,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,a.Kw)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPau
2sed:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),s.V.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}class f extends c.l{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){let r=new h({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){s.V.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>(0,i.X7)(e,t))}findAll(e){return this.mutations.filter(t=>(0,i.X7)(e,t))}notify(e){s.V.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>
2e.state.isPaused);return s.V.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(i.ZT)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}var p=n(15761),m=n(96474),g=n(9499);class v{constructor(e={}){this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new f,this.logger=e.logger||o,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=p.j.subscribe(()=>{p.j.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=m.N.subscribe(()=>{m.N.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[n]=(0,i.I6)(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){let r=(0,i._v)(e,t,n),o=this.getQueryData(r.queryKey);return o?Promise.resolve(o):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.queryCache.find(e),o=null==r?void 0:r.state.data,s=(0,i.SE)(t,o);if(void 0===s)return;let a=(0,i._v)(e),u=this.defaultQueryOptions(a);return this.queryCache.build(this,u).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return s.V.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){let[n]=(0,i.I6)(e,t),r=this.queryCache;s.V.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){let[r,o]=(0,i.I6)(e,t,n),a=this.queryCache,u={type:"active",...r};return s.V.batch(()=>(a.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(u,o)))}cancelQueries(e,t,n){let[r,o={}]=(0,i.I6)(e,t,n);return void 0===o.revert&&(o.revert=!0),Promise.all(s.V.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(o)))).then(i.ZT).catch(i.ZT)}invalidateQueries(e,t,n){let[r,o]=(0,i.I6)(e,t,n);return s.V.batch(()=>{var e,t;if(this.queryCache.findAll(r).forEach(e=>{e.invalidate()}),"none"===r.refetchType)return Promise.resolve();let n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,o)})}refetchQueries(e,t,n){let[r,o]=(0,i.I6)(e,t,n),a=Promise.all(s.V.batch(()=>this.queryCache.findAll(r).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}))).then(i.ZT);return null!=o&&o.throwOnError||(a=a.catch(i.ZT)),a}fetchQuery(e,t,n){let r=(0,i._v)(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);let s=this.queryCache.build(this,o);return s.isStaleByTime(o.staleTime)?s.fetch(o):Promise.resolve(s.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(i.ZT).catch(i.ZT)}fetchInfiniteQuery(e,t,n){let r=(0,i._v)(e,t,n);return r.behavior=(0,g.Gm)(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.ZT).catch(i.ZT)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let n=this.queryDefaults.find(t=>(0,i.yF)(e)===(0,i.yF)(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>(0,i.to)(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let n=this.mutationDefaults.find(t=>(0,i.yF)(e)===(0,i.yF)(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>(0,i.to)(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=(0,i.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}var y=n(85945),_=n(67294);let b=({children:e,options:t,state:n})=>((function(e,t={}){let n=(0,y.NL)({context:t.context}),r=_.useRef(t);r.current=t,_.useMemo(()=>{e&&function(e,t,n){if("object"!=typeof t||null===t)return;let r=e.getMutationCache(),i=e.getQueryCache(),o=t.mutations||[],s=t.queries||[];o.forEach(t=>{var i;r.build(e,{...null==n?void 0:null==(i=n.defaultOptions)?void 0:i.mutations,mutationKey:t.mutationKey},t.state)}
2),s.forEach(({queryKey:t,state:r,queryHash:o})=>{var s;let a=i.get(o);if(a){if(a.state.dataUpdatedAt<r.dataUpdatedAt){let{fetchStatus:e,...t}=r;a.setState(t)}return}i.build(e,{...null==n?void 0:null==(s=n.defaultOptions)?void 0:s.queries,queryKey:t,queryHash:o},{...r,fetchStatus:"idle"})})}(n,e,r.current)},[n,e])})(n,t),e),w=function(){return null};var S=n(48583),E=n(9008),k=n.n(E),T=n(43221),x=n(18104),I=n(23208),C=function(e){let{Component:t,pageProps:n}=e,[i]=_.useState(()=>new v);return(0,_.useEffect)(()=>{I.L()},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(k(),{children:[(0,r.jsx)("title",{children:T.M}),(0,r.jsx)("meta",{charSet:"utf-8"}),(0,r.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge, chrome=1"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=utf-8"}),!1,(0,r.jsx)("meta",{name:"naver-site-verification",content:"5940983ea89aecbd31d8a47a0949336ba6d17d1e"}),(0,r.jsx)("meta",{name:"description",content:T.RY},"description"),(0,r.jsx)("meta",{name:"keywords",content:T.EP},"keywords"),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, viewport-fit=cover"},"viewport"),(0,r.jsx)("link",{rel:"preconnect",href:T.nx,crossOrigin:"anonymous"}),(0,r.jsx)("meta",{property:"al:ios:url",content:"https://itunes.apple.com/kr/app/%EC%A4%91%EA%B3%A0%EC%B0%A8%EB%8A%94-%EC%B2%AB%EC%B0%A8-%EC%A4%91%EA%B3%A0%EC%B0%A8%EA%B5%AC%EC%9E%85-%EC%A4%91%EA%B3%A0%EC%B0%A8%EC%8B%9C%EC%84%B8-%EB%94%9C%EB%9F%AC%EC%A0%95%EB%B3%B4%EA%B9%8C%EC%A7%80/id982096152?mt=8"},"alIosUrl"),(0,r.jsx)("meta",{property:"al:ios:app_store_id",content:"982096152"},"alIosAppstoreId"),(0,r.jsx)("meta",{property:"al:ios:app_name",content:"ì¤ê³ ì°¨ë 첫차"},"alIosAppName"),(0,r.jsx)("meta",{property:"al:android:url",content:"https://play.google.com/store/apps/details?id=com.mrpic.chutcha&hl=ko"},"alAndroidUrl"),(0,r.jsx)("meta",{property:"al:android:app_name",content:"ì¤ê³ ì°¨ë 첫차"},"alAndroidAppName"),(0,r.jsx)("meta",{property:"al:android:package",content:"com.mrpic.chutcha"},"alAndroidPackage"),(0,r.jsx)("meta",{property:"al:web:url",content:"https://www.chutcha.net"},"alWebUrl"),(0,r.jsx)("meta",{property:"og:site_name",content:"ì¤ê³ ì°¨ë 첫차"},"ogSiteName"),(0,r.jsx)("meta",{property:"og:title",content:T.M},"ogTitle"),(0,r.jsx)("meta",{property:"og:type",content:"website"},"ogType"),(0,r.jsx)("meta",{property:"og:description",content:T.RY},"ogDescription"),(0,r.jsx)("meta",{property:"og:url",content:"https://www.chutcha.net"},"ogUrl"),(0,r.jsx)("meta",{property:"og:locale",content:"ko_KR"},"ogLocale"),(0,r.jsx)("meta",{property:"og:image",content:T.Eh},"ogImage"),(0,r.jsx)("link",{rel:"shortcut icon",href:"https://img.chutcha.kr/files/website/common/icon/chutcha.ico"},"shortcutIcon"),(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"WebSite",name:"ì¤ê³ ì°¨ë 첫차",alternateName:"첫차",url:"https://www.chutcha.net/"})}}),(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Organization",url:"https://www.chutcha.net",logo:"https://img.chutcha.kr/files/website/common/logo/img-logo-round_blue.png"})}}),(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"SoftwareApplication",name:"ì¤ê³ ì°¨ë 첫차",operatingSystem:"iOS",applicationCategory:"https://schema.org/LifestyleApplication",author:{"@type":"Organization",name:"미ì¤í°í½"},installUrl:"https://apps.apple.com/kr/app/%EC%A4%91%EA%B3%A0%EC%B0%A8%EB%8A%94-%EC%B2%AB%EC%B0%A8-%EB%94%9C%EB%9F%AC%EC%9A%A9-%EC%A4%91%EA%B3%A0%EC%B0%A8-%EB%A7%A4%EC%9E%85-%ED%8C%90%EB%A7%A4-%EB%94%9C%EB%9F%AC%EC%A0%84%EC%9A%A9/id1535904093",offers:{"@type":"Offer",price:"0",priceCurrency:"KRW"}})}}),(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"SoftwareApplication",name:"ì¤ê³ ì°¨ë 첫차",operatingSystem:"ANDROID",applicationCategory:"https://schema.org/LifestyleApplication",author:{"@type":"Organization",name:"미ì¤í°í½"},installUrl:"https://play.google.com/store/apps/details?id=com.mrpic.chutcha",offers:{"@type":"Offer",price:"0",priceCurrency:"KRW"}})}})]}),(0,r.jsx)(S.zt,{children:(0,r.jsxs)(y.aH,{client:i,children:[(0,r.jsx)(b,{state:n.dehydratedState,children:(0,r.jsx)(x.default,{children:(0,r.jsx)(t,{...n})})}),(0,r.jsx)(w,{initialIsOpen:!1})]})})]})}},18104:function(e,t,n){"use strict";n.r(t);var r=n(85893),i=n(67294),o=n(43221),s=n(27611);class a extends i.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.log("errorInfo ::: \n",{error:e,errorInfo:t})}render(){return this.state.hasError?(0,r.jsx)("div",{children:(0,r.jsx)(s.Z,{title:o.uB,description:o.l5})}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}t.default=a},28197:function(e){e.exports={errorContainer:"error_errorContainer__cgNQg",errorMsgWrap:"error_errorMsgWrap__u4VFg",error_img:"error_error_img__qQxuj","skeleton-gradient":"error_skeleton-gradient__5rHT6"}},19311:function(){},36634:function(){},22608:function(){},9008:function(e,t,n){e.exports=n(7828)},25675:function(e,t,n){e.exports=n(35666)},11163:function(e,t,n){e.exports=n(9090)},34155:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:s}
2catch(e){n=s}}();var u=[],l=!1,c=-1;function d(){l&&r&&(l=!1,r.length?u=r.concat(u):c=-1,u.length&&h())}function h(){if(!l){var e=a(d);l=!0;for(var t=u.length;t;){for(r=u,u=[];++c<t;)r&&r[c].run();c=-1,t=u.length}r=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new f(e,t)),1!==u.length||l||a(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},12016:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},39877:function(e,t,n){"use strict";n.d(t,{L2:function(){return u},_6:function(){return l},iK:function(){return c}});var r=n(36731),i=n(41001),o=n(12016),s=n(23039);let a={};function u(e){let t=a[e];if(t)return t;let n=s.m[e];if((0,r.QC)(n))return a[e]=n.bind(s.m);let u=s.m.document;if(u&&"function"==typeof u.createElement)try{let t=u.createElement("iframe");t.hidden=!0,u.head.appendChild(t);let r=t.contentWindow;r&&r[e]&&(n=r[e]),u.head.removeChild(t)}catch(t){o.X&&i.kg.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?a[e]=n.bind(s.m):n}function l(e){a[e]=void 0}function c(...e){return u("setTimeout")(...e)}},25460:function(e,t,n){"use strict";let r,i,o;n.d(t,{O:function(){return c}});var s=n(68562),a=n(27179),u=n(41982),l=n(23039);function c(e){(0,s.Hj)("dom",e),(0,s.D2)("dom",d)}function d(){if(!l.m.document)return;let e=s.rK.bind(null,"dom"),t=h(e,!0);l.m.document.addEventListener("click",t,!1),l.m.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=l.m[t]&&l.m[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,a.hl)(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){let r=h(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch(e){}return t.call(this,n,r,i)}}),(0,a.hl)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function h(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let s=function(e){try{return e.target}catch(e){return null}}(n);if("keypress"===n.type&&(!s||!s.tagName||"INPUT"!==s.tagName&&"TEXTAREA"!==s.tagName&&!s.isContentEditable))return;(0,a.xp)(n,"_sentryCaptured",!0),s&&!s._sentryId&&(0,a.xp)(s,"_sentryId",(0,u.DM)());let c="keypress"===n.type?"input":n.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==o)return!1}catch(e){}return!0}(n)&&(e({event:n,name:c,global:t}),i=n.type,o=s?s._sentryId:void 0),clearTimeout(r),r=l.m.setTimeout(()=>{o=void 0,i=void 0},1e3)}}},36708:function(e,t,n){"use strict";let r;n.d(t,{a:function(){return u}});var i=n(68562);let o=n(29531).GLOBAL_OBJ;var s=n(27179),a=n(23039);function u(e){let t="history";(0,i.Hj)(t,e),(0,i.D2)(t,l)}function l(){if(!function(){let e=o.chrome,t=e&&e.app&&e.app.runtime,n="history"in o&&!!o.history.pushState&&!!o.history.replaceState;return!t&&n}())return;let e=a.m.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=r,t=String(n);r=t,(0,i.rK)("history",{from:e,to:t})}return e.apply(this,t)}}a.m.onpopstate=function(...t){let n=a.m.location.href,o=r;if(r=n,(0,i.rK)("history",{from:o,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,s.hl)(a.m.history,"pushState",t),(0,s.hl)(a.m.history,"replaceState",t)}},67127:function(e,t,n){"use strict";n.d(t,{UK:function(){return l},xU:function(){return u}});var r=n(68562),i=n(27179),o=n(26181),s=n(16824),a=n(23039);let u="__sentry_xhr_v3__";function l(e){(0,r.Hj)("xhr",e),(0,r.D2)("xhr",c)}function c(){if(!a.m.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;(0,i.hl)(e,"open",function(e){return function(...t){let n=1e3*(0,o.ph)(),a=(0,s.HD)(t[0])?t[0].toUpperCase():void 0,l=function(e){if((0,s.HD)(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!a||!l)return e.apply(this,t);this[u]={method:a,url:l,request_headers:{}}
2,"POST"===a&&l.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let c=()=>{let e=this[u];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}let t={endTimestamp:1e3*(0,o.ph)(),startTimestamp:n,xhr:this};(0,r.rK)("xhr",t)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,i.hl)(this,"onreadystatechange",function(e){return function(...t){return c(),e.apply(this,t)}}):this.addEventListener("readystatechange",c),(0,i.hl)(this,"setRequestHeader",function(e){return function(...t){let[n,r]=t,i=this[u];return i&&(0,s.HD)(n)&&(0,s.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){let n=this[u];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);let i={startTimestamp:1e3*(0,o.ph)(),xhr:this};return(0,r.rK)("xhr",i),e.apply(this,t)}})}},82417:function(e,t,n){"use strict";let r,i,o,s,a,u;n.d(t,{PR:function(){return Q},to:function(){return Y},YF:function(){return et},$A:function(){return Z},_j:function(){return en},_4:function(){return ee},cN:function(){return eh}});var l=n(41001),c=n(42283),d=n(12016);let h=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",f=(e,t,n,r)=>{let i,o;return s=>{t.value>=0&&(s||r)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=h(t.value,n),e(t))}};var p=n(23039);let m=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`;var g=n(74181);let v=()=>{let e=(0,g.W)();return e&&e.activationStart||0},y=(e,t)=>{let n=(0,g.W)(),r="navigate";return n&&(p.m.document&&p.m.document.prerendering||v()>0?r="prerender":p.m.document&&p.m.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:m(),navigationType:r}},_=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},b=e=>{let t=t=>{("pagehide"===t.type||p.m.document&&"hidden"===p.m.document.visibilityState)&&e(t)};p.m.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},w=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};var S=n(49250);let E=e=>{p.m.document&&p.m.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},k=[1800,3e3],T=(e,t={})=>{E(()=>{let n;let r=(0,S.Y)(),i=y("FCP"),o=_("paint",e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-v(),0),i.entries.push(e),n(!0)))})});o&&(n=f(e,i,k,t.reportAllChanges))})},x=[.1,.25],I=(e,t={})=>{T(w(()=>{let n;let r=y("CLS",0),i=0,o=[],s=e=>{e.forEach(e=>{if(!e.hadRecentInput){let 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>r.value&&(r.value=i,r.entries=o,n())},a=_("layout-shift",s);a&&(n=f(e,r,x,t.reportAllChanges),b(()=>{s(a.takeRecords()),n(!0)}),setTimeout(n,0))}))},C=[100,300],O=(e,t={})=>{E(()=>{let n;let r=(0,S.Y)(),i=y("FID"),o=e=>{e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},s=e=>{e.forEach(o)},a=_("first-input",s);n=f(e,i,C,t.reportAllChanges),a&&b(w(()=>{s(a.takeRecords()),a.disconnect()}))})},A=0,R=1/0,M=0,D=e=>{e.forEach(e=>{e.interactionId&&(R=Math.min(R,e.interactionId),A=(M=Math.max(M,e.interactionId))?(M-R)/7+1:0)})},P=()=>r?A:performance.interactionCount||0,L=()=>{"interactionCount"in performance||r||(r=_("event",D,{type:"event",buffered:!0,durationThreshold:0}))},N=[200,500],j=()=>P()-0,U=[],F={},$=e=>{let t=U[U.length-1],n=F[e.interactionId];if(n||U.length<10||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};F[t.id]=t,U.push(t)}U.sort((e,t)=>t.latency-e.latency),U.splice(10).forEach(e=>{delete F[e.id]})}},q=()=>{let e=Math.min(U.length-1,Math.floor(j()/50));return U[e]},B=(e,t={})=>{E(()=>{let n;L();let r=y("INP"),i=e=>
2{e.forEach(e=>{e.interactionId&&$(e),"first-input"!==e.entryType||U.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime))||$(e)});let t=q();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())},o=_("event",i,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});n=f(e,r,N,t.reportAllChanges),o&&("PerformanceEventTiming"in p.m&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),b(()=>{i(o.takeRecords()),r.value<0&&j()>0&&(r.value=0,r.entries=[]),n(!0)}))})},J=[2500,4e3],G={},H=(e,t={})=>{E(()=>{let n;let r=(0,S.Y)(),i=y("LCP"),o=e=>{let t=e[e.length-1];t&&t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-v(),0),i.entries=[t],n())},s=_("largest-contentful-paint",o);if(s){n=f(e,i,J,t.reportAllChanges);let r=w(()=>{G[i.id]||(o(s.takeRecords()),s.disconnect(),G[i.id]=!0,n(!0))});["keydown","click"].forEach(e=>{p.m.document&&addEventListener(e,()=>setTimeout(r,0),!0)}),b(r)}})},z=[800,1800],W=e=>{p.m.document&&p.m.document.prerendering?E(()=>W(e)):p.m.document&&"complete"!==p.m.document.readyState?addEventListener("load",()=>W(e),!0):setTimeout(e,0)},X=(e,t={})=>{let n=y("TTFB"),r=f(e,n,z,t.reportAllChanges);W(()=>{let e=(0,g.W)();if(e){let t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-v(),0),n.entries=[e],r(!0)}})},K={},V={};function Q(e,t=!1){return el("cls",e,ei,i,t)}function Z(e,t=!1){return el("lcp",e,es,s,t)}function Y(e){return el("fid",e,eo,o)}function ee(e){return el("ttfb",e,ea,a)}function et(e){return el("inp",e,eu,u)}function en(e,t){return ec(e,t),V[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),_(e,t=>{er(e,{entries:t})},t)}(e),V[e]=!0),ed(e,t)}function er(e,t){let n=K[e];if(n&&n.length)for(let r of n)try{r(t)}catch(t){d.X&&l.kg.error(`Error while triggering instrumentation handler. 3Type: ${e} 4Name: ${(0,c.$P)(r)} 5Error:`,t)}}function ei(){return I(e=>{er("cls",{metric:e}),i=e},{reportAllChanges:!0})}function eo(){return O(e=>{er("fid",{metric:e}),o=e})}function es(){return H(e=>{er("lcp",{metric:e}),s=e},{reportAllChanges:!0})}function ea(){return X(e=>{er("ttfb",{metric:e}),a=e})}function eu(){return B(e=>{er("inp",{metric:e}),u=e})}function el(e,t,n,r,i=!1){let o;return ec(e,t),V[e]||(o=n(),V[e]=!0),r&&t({metric:r}),ed(e,t,i?o:void 0)}function ec(e,t){K[e]=K[e]||[],K[e].push(t)}function ed(e,t,n){return()=>{n&&n();let r=K[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function eh(e){return"duration"in e}},74181:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(23039);let i=()=>r.m.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},49250:function(e,t,n){"use strict";n.d(t,{Y:function(){return u}});var r=n(23039);let i=-1,o=()=>{i="hidden"!==r.m.document.visibilityState||r.m.document.prerendering?1/0:0},s=e=>{"hidden"===r.m.document.visibilityState&&i>-1&&(i="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",s,!0),removeEventListener("prerenderingchange",s,!0))},a=()=>{addEventListener("visibilitychange",s,!0),addEventListener("prerenderingchange",s,!0)},u=()=>(r.m.document&&i<0&&(o(),a()),{get firstHiddenTime(){return i}})},23039:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});let r=n(29531).GLOBAL_OBJ},60811:function(e,t,n){"use strict";n.d(t,{G:function(){return h}});var r=n(13533),i=n(16824),o=n(29531),s=n(43927);class a{constructor(e,t){let n,r;n=e||new s.s,r=t||new s.s,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t;let n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return(0,i.J8)(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function u(){let e=(0,r.c)(),t=(0,r.q)(e);return t.stack=t.stack||new a((0,o.Y)("defaultCurrentScope",()=>new s.s),(0,o.Y)("defaultIsolationScope",()=>new s.s))}function l(e){return u().withScope(e)}function c(e,t){let n=u();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function d(e){return u().withScope(()=>e(u().getIsolationScope()))}function h(e){let t=(0,r.q)(e);return t.acs?t.acs:{withIsolationScope:d,withScope:l,withSetScope:c,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>u().getScope(),getIsolationScope:()=>u().getIsolationScope()}}},37895:function(e,t,n){"use strict";n.d(t,{n:function(){return s}});var r=n(26181),i=n(41001),o=n(73076);function s(e,t){let n=(0,o.s3)(),s=(0,o.aF)();if(!n)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:u=100}=n.getOptions();if(u<=0)return;let l={timestamp:(0,r.yW)(),...e},c=a?(0,i.Cf)(()=>a(l,t)):l;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),s.addBreadcrumb(c,u))}},13533:function(e,t,n){"use strict";n.d(t,{c:function(){return o},q:function(){return s}});var r=n(29531),i=n(42990);function o(){return s(r.GLOBAL_OBJ),r.GLOBAL_OBJ}function s(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||i.J,t[i.J]=t[i.J]||{}}},73243:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="production"},73076:function(e,t,n){"use strict";n.d(t,{$e:function(){return c},aF:function(){return u},lW:function(){return l},nZ:function(){return a},s3:function(){return d}});var r=n(29531),i=n(60811),o=n(13533),s=n(43927);function a(){let e=(0,o.c)();return(0,i.G)(e).getCurrentScope()}function u(){let e=(0,o.c)();return(0,i.G)(e).getIsolationScope()}function l(){return(0,r.Y)("globalScope",()=>new s.s)}function c(...e){let t=(0,o.c)(),n=(0,i.G)(t);if(2===e.length){let[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}function d(){return a().getClient()}},94223:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},39424:function(e,t,n){"use strict";n.d(t,{Qy:function(){return m},Tb:function(){return c},YA:function(){return f},cg:function(){return _},eN:function(){return d},v:function(){return h},yj:function(){return g},yl:function(){return p}});var r=n(41001),i=n(29531),o=n(73243),s=n(73076),a=n(94223),u=n(10042),l=n(5808);function c(e,t){return(0,s.nZ)().captureException(e,(0,l.U0)(t))}function d(e,t){return(0,s.nZ)().captureEvent(e,t)}function h(e,t){(0,s.aF)().setContext(e,t)}function f(e,t){(0,s.aF)().setTag(e,t)}async function p(e){let t=(0,s.s3)();return t?t.flush(e):(a.X&&r.kg.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function m(e){(0,s.aF)().addEventProcessor(e)}function g(e){let t=(0,s.s3)(),n=(0,s.aF)(),r=(0,s.nZ)(),{release:a,environment:l=o.J}=t&&t.getOptions()||{},{userAgent:c}=i.GLOBAL_OBJ.navigator||{},d=(0,u.Hv)({release:a,environment:l,user:r.getUser()||n.getUser(),...c&&{userAgent:c},...e}),h=n.getSession();return h&&"ok"===h.status&&(0,u.CT)(h,{status:"exited"}),v(),n.setSession(d),r.setSession(d),d}function v(){let e=(0,s.aF)(),t=(0,s.nZ)(),n=t.getSession()||e.getSession();n&&(0,u.RJ)(n),y(),e.setSession(),t.setSession()}function y(){let e=(0,s.aF)(),t=(0,s.nZ)(),n=(0,s.s3)(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function _(e=!1){if(e){v();return}y()}},72751:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var r=n(27179);function i(e){let t=e._sentryMetrics;if(!t)return;let n={};for(let[,[e,i]]of t)(n[e]||(n[e]=[])).push((0,r.Jr)(i));return n}},43927:function(e,t,n){"use strict";n.d(t,{s:function(){return d}});var r=n(19548),i=n(16824),o=n(26181),s=n(41982),a=n(41001),u=n(10042),l=n(89366);class c{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(){let e=new c;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,l.D)(e,(0,l.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,u.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;let 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:s,user:a,contexts:u,level:l,fingerprint:c=[],propagationContext:h}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...u},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),c.length&&(this._fingerprint=c),h&&(this._propagationContext=h),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,l.D)(this,void 0),this._attachments=[],this._propagationContext=(0,r.Q)(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let 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,l.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){let n=t&&t.event_id?t.event_id:(0,s.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:(0,s.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:(0,s.DM)();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):a.kg.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
5h(e=>{e(this)}),this._notifyingListeners=!1)}}let d=c},31218:function(e,t,n){"use strict";n.d(t,{$J:function(){return o},E1:function(){return u},JQ:function(){return d},S3:function(){return s},TE:function(){return i},Wb:function(){return l},Zj:function(){return r},ju:function(){return a},p6:function(){return c}});let r="sentry.source",i="sentry.sample_rate",o="sentry.op",s="sentry.origin",a="sentry.idle_span_finish_reason",u="sentry.measurement_unit",l="sentry.measurement_value",c="sentry.profile_id",d="sentry.exclusive_time"},10042:function(e,t,n){"use strict";n.d(t,{CT:function(){return a},Hv:function(){return s},RJ:function(){return u}});var r=n(26181),i=n(41982),o=n(27179);function s(e){let t=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,o.Jr)({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&a(n,e),n}function a(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{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function u(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),a(e,n)}},72123:function(e,t,n){"use strict";n.d(t,{Lh:function(){return c},_l:function(){return d},jC:function(){return h}});var r=n(27179),i=n(60859),o=n(73243),s=n(73076),a=n(31218),u=n(81585);let l="_frozenDsc";function c(e,t){(0,r.xp)(e,l,t)}function d(e,t){let n=t.getOptions(),{publicKey:i}=t.getDsn()||{},s=(0,r.Jr)({environment:n.environment||o.J,release:n.release,public_key:i,trace_id:e});return t.emit("createDsc",s),s}function h(e){let t=(0,s.s3)();if(!t)return{};let n=d((0,u.XU)(e).trace_id||"",t),r=(0,u.Gx)(e),o=r[l];if(o)return o;let c=r.spanContext().traceState,h=c&&c.get("sentry.dsc"),f=h&&(0,i.EN)(h);if(f)return f;let p=(0,u.XU)(r),m=p.data||{},g=m[a.TE];null!=g&&(n.sample_rate=`${g}`);let v=m[a.Zj],y=p.description;return"url"!==v&&y&&(n.transaction=y),n.sampled=String((0,u.Tt)(r)),t.emit("createDsc",n,r),n}},69737:function(e,t,n){"use strict";n.d(t,{OP:function(){return i},Q0:function(){return s},jt:function(){return o},pq:function(){return r}});let r=0,i=1,o=2;function s(e,t){e.setAttribute("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code: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"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}},79769:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(41001),i=n(94223);function o(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if("number"!=typeof t||isNaN(t)||t<0||t>
51){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)}.`);return}return t}},5808:function(e,t,n){"use strict";n.d(t,{U0:function(){return S},R:function(){return b}});var r=n(41982),i=n(26181),o=n(89163),s=n(29531),a=n(83408),u=n(73243),l=n(73076),c=n(80128),d=n(41001),h=n(16824),f=n(94223),p=n(43927),m=n(27179),g=n(72123),v=n(81585);function y(e,t){let{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:l,eventProcessors:c,attachments:d,propagationContext:h,transactionName:f,span:p}=t;_(e,"extra",n),_(e,"tags",r),_(e,"user",i),_(e,"contexts",o),_(e,"sdkProcessingMetadata",a),s&&(e.level=s),f&&(e.transactionName=f),p&&(e.span=p),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...h}}function _(e,t,n){if(n&&Object.keys(n).length)for(let r in e[t]={...e[t]},n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}function b(e,t,n,_,b,S){let{normalizeDepth:E=3,normalizeMaxBreadth:k=1e3}=e,T={...t,event_id:t.event_id||n.event_id||(0,r.DM)(),timestamp:t.timestamp||(0,i.yW)()},x=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:u.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,s));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=(0,o.$G)(a.value,s));let l=e.request;l&&l.url&&(l.url=(0,o.$G)(l.url,s))})(T,e),x.length>0&&(T.sdk=T.sdk||{},T.sdk.integrations=[...T.sdk.integrations||[],...x]),b&&b.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let n;let r=s.GLOBAL_OBJ._sentryDebugIds;if(!r)return;let i=w.get(t);i?n=i:(n=new Map,w.set(t,n));let o=Object.entries(r).reduce((e,[r,i])=>{let o;let s=n.get(r);s?o=s:(o=t(r),n.set(r,o));for(let t=o.length-1;t>=0;t--){let 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(e){}}(T,e.stackParser);let I=function(e,t){if(!t)return e;let n=e?e.clone():new p.s;return n.update(t),n}(_,n.captureContext);n.mechanism&&(0,r.EG)(T,n.mechanism);let C=b?b.getEventProcessors():[],O=(0,l.lW)().getScopeData();S&&y(O,S.getScopeData()),I&&y(O,I.getScopeData());let A=[...n.attachments||[],...O.attachments];return A.length&&(n.attachments=A),function(e,t){let{fingerprint:n,span:i,breadcrumbs:o,sdkProcessingMetadata:s}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=t,u=(0,m.Jr)(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});let l=(0,m.Jr)(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});let c=(0,m.Jr)(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});let d=(0,m.Jr)(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),a&&"transaction"!==e.type&&(e.transaction=a)})(e,t),i&&function(e,t){e.contexts={trace:(0,v.wy)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,g.jC)(t),...e.sdkProcessingMetadata};let n=(0,v.Gx)(t),r=(0,v.XU)(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,i),e.fingerprint=e.fingerprint?(0,r.lE)(e.fingerprint):[],n&&(e.fingerprint=e.fingerprint.concat(n)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...s}}(T,O),(function e(t,n,r,i=0){return new c.cW((o,s)=>{let a=t[i];if(null===n||"function"!=typeof a)o(n);else{let u=a({...n},r);f.X&&a.id&&null===u&&d.kg.log(`Event processor "${a.id}" dropped event`),(0,h.J8)(u)?u.then(n=>e(t,n,r,i+1).then(o)).then(null,s):e(t,u,r,i+1).then(o).then(null,s)}})})([...C,...O.eventProcessors],T,n).then(e=>(e&&function(e){let t={};
5try{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(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof E&&E>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,a.Fv)(e.data,t,n)}}))},...e.user&&{user:(0,a.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,a.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,a.Fv)(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,a.Fv)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,a.Fv)(e.data,t,n)}}))),r}(e,E,k):e)}let w=new WeakMap;function S(e){return e?e instanceof p.s||"function"==typeof e||Object.keys(e).some(e=>E.includes(e))?{captureContext:e}:e:void 0}let E=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},89366:function(e,t,n){"use strict";n.d(t,{D:function(){return o},Y:function(){return s}});var r=n(27179);let i="_sentrySpan";function o(e,t){t?(0,r.xp)(e,i,t):delete e[i]}function s(e){return e[i]}},81585:function(e,t,n){"use strict";n.d(t,{$k:function(){return y},Dp:function(){return I},Gx:function(){return C},HN:function(){return O},HR:function(){return m},Hb:function(){return v},Tt:function(){return w},XU:function(){return b},_4:function(){return S},ed:function(){return x},i0:function(){return p},j5:function(){return T},ve:function(){return f},wy:function(){return g}});var r=n(27179),i=n(85712),o=n(26181),s=n(60811),a=n(13533),u=n(73076),l=n(72751),c=n(31218),d=n(69737),h=n(89366);let f=0,p=1;function m(e){let{spanId:t,traceId:n}=e.spanContext(),{data:i,op:o,parent_span_id:s,status:a,origin:u}=b(e);return(0,r.Jr)({parent_span_id:s,span_id:t,trace_id:n,data:i,op:o,status:a,origin:u})}function g(e){let{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 v(e){let{traceId:t,spanId:n}=e.spanContext(),r=w(e);return(0,i.$p)(t,n,r)}function y(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"==typeof e.getSpanJSON)return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:i,startTime:o,name:s,endTime:a,parentSpanId:u,status:d}=e;return(0,r.Jr)({span_id:t,trace_id:n,data:i,description:s,parent_span_id:u,start_timestamp:y(o),timestamp:y(a)||void 0,status:S(d),op:i[c.$J],origin:i[c.S3],_metrics_summary:(0,l.y)(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function w(e){let{traceFlags:t}=e.spanContext();return t===p}function S(e){return e&&e.code!==d.pq?e.code===d.OP?"ok":e.message||"unknown_error":void 0}let E="_sentryChildSpans",k="_sentryRootSpan";function T(e,t){let n=e[k]||e;(0,r.xp)(t,k,n),e[E]?e[E].add(t):(0,r.xp)(e,E,new Set([t]))}function x(e,t){e[E]&&e[E].delete(t)}function I(e){let t=new Set;return function e(n){if(!t.has(n)&&w(n))for(let r of(t.add(n),n[E]?Array.from(n[E]):[]))e(r)}(e),Array.from(t)}function C(e){return e[k]||e}function O(){let e=(0,a.c)(),t=(0,s.G)(e);return t.getActiveSpan?t.getActiveSpan():(0,h.Y)((0,u.nZ)())}},45447:function(e,t,n){"use strict";let r,i,o;n.d(t,{S1:function(){return tQ}});var s=n(42990);function a(e,t,n=[t],r="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:s.J})),version:s.J}),e._metadata=i}var u=n(39424),l=n(73076);function c(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||function(){let e=(0,l.s3)();return e&&e.getOptions()}();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)}var d=n(41001),h=n(41982),f=n(89163),p=n(94223);let m=[];function g(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function v(e,t,n){if(n[t.name]){p.X&&d.kg.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,-1===m.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),m.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}p.X&&d.kg.log(`Integration installed: ${t.name}`)}let y=[/^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"],_=(e={})=>({name:"InboundFilters",processEvent:(t,n,r)=>{var i,o;return((i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:y],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r.getOptions())).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(t)?(p.X&&d.kg.warn(`Event dropped due to being internal Sentry Error. 6Event: ${(0,h.jH)(t)}`),0):(o=i.ignoreErrors,!t.type&&o&&o.length&&(function(e){let t;let n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),n})(t).some(e=>(0,f.U0)(e,o)))?(p.X&&d.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 7Event: ${(0,h.jH)(t)}`),0):t.type||!t.exception||!t.exception.values||0===t.exception.values.length||t.message||t.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)?!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&(0,f.U0)(n,t)}(t,i.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=b(e);return!!n&&(0,f.U0)(n,t)}(t,i.denyUrls)?function(e,t){if(!t||!t.length)return!0;let n=b(e);return!n||(0,f.U0)(n,t)}(t,i.allowUrls)||(p.X&&d.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option. 8Event: ${(0,h.jH)(t)}. 9Url: ${b(t)}`),0):(p.X&&d.kg.warn(`Event dropped due to being matched by \`denyUrls\` option. 10Event: ${(0,h.jH)(t)}. 11Url: ${b(t)}`),0):(p.X&&d.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 12Event: ${(0,h.jH)(t)}`),0):(p.X&&d.kg.warn(`Event dropped due to not having an error message, error type or stacktrace. 13Event: ${(0,h.jH)(t)}`),0))?t:null}});function b(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return p.X&&d.kg.error(`Cannot extract url for event ${(0,h.jH)(e)}`),null}}var w=n(27179);let S=new WeakMap,E=()=>({name:"FunctionToString",setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,w.HK)(this),n=S.has((0,l.s3)())&&void 0!==t?t:this;return r.apply(n,e)}}catch(e){}},setup(e){S.set(e,!0)}});var k=n(42283);let T=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n;if((n=e)&&(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&I(e,t)&&x(e,t))}(t,n)||function(e,t){let n=C(t),r=C(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&I(e,t)&&x(e,t))}(t,n)))return p.X&&d.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function x(e,t){let n=(0,k.Fr)(e),r=(0,k.Fr)(t);
13if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function I(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function C(e){return e.exception&&e.exception.values&&e.exception.values[0]}var O=n(36731),A=n(36708),R=n(73326),M=n(16824),D=n(80128),P=n(39432);class L 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}}var N=n(26181),j=n(72123),U=n(81585),F=n(10042),$=n(79769),q=n(5808);let B="Not capturing exception because it's already been captured.";class J{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&&d.kg.warn("No DSN provided, client will not send events."),this._dsn){var t,n,r;let i=(t=this._dsn,n=e.tunnel,r=e._metadata?e._metadata.sdk:void 0,n||`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${(0,w._j)({sentry_key:t.publicKey,sentry_version:"7",...r&&{sentry_client:`${r.name}/${r.version}`}})}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:i})}}captureException(e,t,n){let r=(0,h.DM)();if((0,h.YO)(e))return p.X&&d.kg.log(B),r;let i={event_id:r,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n))),i.event_id}captureMessage(e,t,n,r){let i={event_id:(0,h.DM)(),...n},o=(0,M.Le)(e)?e:String(e),s=(0,M.pt)(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(s.then(e=>this._captureEvent(e,i,r))),i.event_id}captureEvent(e,t,n){let r=(0,h.DM)();if(t&&t.originalException&&(0,h.YO)(t.originalException))return p.X&&d.kg.log(B),r;let i={event_id:r,...t},o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,o||n)),i.event_id}captureSession(e){"string"!=typeof e.release?p.X&&d.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,F.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;
13return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):(0,D.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){let t=this._integrations[e.name];v(this,e,this._integrations),t||g(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){var i;let o=(0,P.HY)(n),s=e.type&&"replay_event"!==e.type?e.type:"event";(i=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||i.name,e.sdk.version=e.sdk.version||i.version,e.sdk.integrations=[...e.sdk.integrations||[],...i.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...i.packages||[]]);let a=(0,P.Cd)(e,o,r,t);delete e.sdkProcessingMetadata;let u=[{type:s},e];return(0,P.Jd)(a,[u])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=(0,P.BO)(n,(0,P.zQ)(e));let r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=function(e,t,n,r){let i=(0,P.HY)(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:(0,R.RA)(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,P.Jd)(o,[s])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let n=`${e}:${t}`;p.X&&d.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=(this._outcomes[n]||0)+1}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(p.X&&d.kg.error("Error while sending event:",e),e)):(p.X&&d.kg.error("Transport disabled"),(0,D.WD)({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let n={};return t.forEach(t=>{t&&v(e,t,n)}),n}(this,e),g(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&n)&&((0,F.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new D.cW(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=(0,l.aF)()){let 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,q.R)(i,e,t,n,this,r).then(e=>{if(null===e)return e;let t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:n,spanId:r,parentSpanId:i,dsc:o}=t;e.contexts={trace:(0,w.Jr)({trace_id:n,span_id:r,parent_span_id:i}),...e.contexts};let s=o||(0,j._l)(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{p.X&&("log"===e.logLevel?d.kg.log(e.message):d.kg.warn(e))})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,o=H(e),s=G(e),a=e.type||"error",u=`before send for type \`${a}\``,l=void 0===i?void 0:(0,$.o)(i);if(s&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error",e),(0,D.$2)(new L(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let c="replay_event"===a?"replay":a,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new L("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?n:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,M.J8)(e))return e.then(e=>{if(!(0,M.PO)(e)&&null!==e)throw new L(n);return e},e=>{throw new L(`${t} rejected with ${e}`)});if(!(0,M.PO)(e)&&null!==e)throw new L(n);return e}(function(e,t,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=t;if(G(n)&&i)return i(n,r);if(H(n)){if(n.spans&&s){let t=[];for(let r of n.spans){let n=s(r);n?t.push(n):e.recordDroppedEvent("before_send","span")}n.spans=t}if(o)return o(n,r)}return n}(this,r,n,t),u)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",c,e),H(e)){let t=1+(e.spans||[]).length;this._outcomes.span=(this._outcomes.span||0)+t}throw new L(`${u} returned \`null\`, will not send event.`,"log")}let i=n&&n.getSession();!o&&i&&this._updateSessionFromEvent(i,r);let s=r.transaction_info;return o&&s&&r.transaction!==e.transaction&&(r.transaction_info={...s,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof L)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new L(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 14Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){p.X&&d.kg.log("Flushing outcomes...");let e=this._clearOutcomes();if(0===e.length){p.X&&d.kg.log("No outcomes to send");return}if(!this._dsn){p.X&&d.kg.log("No dsn provided, will not send outcomes");return}p.X&&d.kg.log("Sending outcomes:",e);let t=function(e,t,n){let r=[{type:"client_report"},{timestamp:(0,N.yW)(),discarded_events:e}];return(0,P.Jd)(t?{dsn:t}:{},[r])}(e,this._options.tunnel&&(0,R.RA)(this._dsn));this.sendEnvelope(t)}}function G(e){return void 0===e.type}function H(e){return"transaction"===e.type}var z=n(84281),W=n(83408);function X(e,t){let n=V(e,t),r={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function K(e,t){return{exception:{values:[X(e,t)]}}}function V(e,t){let n=t.stacktrace||t.stack||"",r=t&&Q.test(t.message)?1:0,i="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(n,r,i)}catch(e){}return[]}let Q=/Minified React error #\d+;/i;function Z(e,t,n,r,i){let o;if((0,M.VW)(t)&&t.error)return K(e,t.error);if((0,M.TX)(t)||(0,M.fm)(t)){if("stack"in t)o=K(e,t);else{let i=t.name||((0,M.TX)(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;o=Y(e,s,n,r),(0,h.Db)(o,s)}
14return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return(0,M.VZ)(t)?K(e,t):((0,M.PO)(t)||(0,M.cO)(t)?o=function(e,t,n,r){let i=(0,l.s3)(),o=i&&i.getOptions().normalizeDepth,s=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:(0,W.Qy)(t,o)};if(s)return{exception:{values:[X(e,s)]},extra:a};let u={exception:{values:[{type:(0,M.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,w.zf)(e),r=t?"promise rejection":"exception";if((0,M.VW)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,M.cO)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:a};if(n){let t=V(e,n);t.length&&(u.exception.values[0].stacktrace={frames:t})}return u}(e,t,n,i):(o=Y(e,t,n,r),(0,h.Db)(o,`${t}`,void 0)),(0,h.EG)(o,{synthetic:!0}),o)}function Y(e,t,n,r){let i={};if(r&&n){let r=V(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if((0,M.Le)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}var ee=n(29531);let et=ee.GLOBAL_OBJ,en=0;function er(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if((0,w.HK)(e))return e}catch(t){return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(e=>er(e,t));return e.apply(this,i)}catch(e){throw en++,setTimeout(()=>{en--}),(0,l.$e)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,h.Db)(e,void 0,void 0),(0,h.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,u.Tb)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}(0,w.$Q)(r,e),(0,w.xp)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}class ei extends J{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e};a(t,"browser",["browser"],et.SENTRY_SDK_SOURCE||(0,z.S)()),super(t),t.sendClientReports&&et.document&&et.document.addEventListener("visibilitychange",()=>{"hidden"===et.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){let i=Z(e,t,n&&n.syntheticException||void 0,r);return(0,h.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,D.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let o=Y(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),(0,D.WD)(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return;let t=function(e,{metadata:t,tunnel:n,dsn:r}){let i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:(0,R.RA)(r)}};return(0,P.Jd)(i,[[{type:"user_report"},e]])}(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)}}var eo=n(25460),es=n(67127),ea=n(37895),eu=n(68562);function el(){"console"in ee.GLOBAL_OBJ&&d.RU.forEach(function(e){e in ee.GLOBAL_OBJ.console&&(0,w.hl)(ee.GLOBAL_OBJ.console,e,function(t){return d.LD[e]=t,function(...t){(0,eu.rK)("console",{args:t,level:e});let n=d.LD[e];n&&n.apply(ee.GLOBAL_OBJ.console,t)}})})}function ec(e){let t="fetch";(0,eu.Hj)(t,e),(0,eu.D2)(t,ed)}function ed(){(0,O.t$)()&&(0,w.hl)(ee.GLOBAL_OBJ,"fetch",function(e){return function(...t){let{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:ef(t),method:eh(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:ef(t),method:eh(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:1e3*(0,N.ph)()};(0,eu.rK)("fetch",{...i});let o=Error().stack;return e.apply(ee.GLOBAL_OBJ,t).then(e=>{let t={...i,endTimestamp:1e3*(0,N.ph)(),response:e};return(0,eu.rK)("fetch",t),e},e=>{let t={...i,endTimestamp:1e3*(0,N.ph)(),error:e};throw(0,eu.rK)("fetch",t),(0,M.VZ)(e)&&void 0===e.stack&&(e.stack=o,(0,w.xp)(e,"framesToPop",1)),e})}})}function eh(e,t){return!!e&&"object"==typeof e&&!!e[t]}function ef(e){return"string"==typeof e?e:e?eh(e,"url")?e.url:e.toString?e.toString():"":""}var ep=n(1869);let em=["fatal","error","warning","log","info","debug"];function eg(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}let ev=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){let t="console";(0,eu.Hj)(t,e),(0,eu.D2)(t,el)}(function(t){var n;if((0,l.s3)()!==e)return;let r={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(n=t.level)?"warning":em.includes(n)?n:"log",message:(0,f.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${(0,f.nK)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}(0,ea.n)(r,{input:t.args,level:t.level})}),t.dom&&(0,eo.O)((n=t.dom,function(t){let r,i;if((0,l.s3)()!==e)return;let o="object"==typeof n?n.serializeAttribute:void 0,s="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;s&&s>1024&&(s=1024),"string"==typeof o&&(o=[o]);try{let e=t.event,n=e&&e.target?e.target:e;r=(0,ep.Rt)(n,{keyAttrs:o,maxStringLength:s}),i=(0,ep.iY)(n)}catch(e){r="<unknown>"}if(0===r.length)return;let a={category:`ui.${t.name}`,message:r};
14i&&(a.data={"ui.component_name":i}),(0,ea.n)(a,{event:t.event,name:t.name,global:t.global})})),t.xhr&&(0,es.UK)(function(t){if((0,l.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[es.xU];if(!n||!r||!i)return;let{method:o,url:s,status_code:a,body:u}=i,c={xhr:t.xhr,input:u,startTimestamp:n,endTimestamp:r};(0,ea.n)({category:"xhr",data:{method:o,url:s,status_code:a},type:"http"},c)}),t.fetch&&ec(function(t){if((0,l.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(!(!r||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error){let e=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};(0,ea.n)({category:"fetch",data:e,level:"error",type:"http"},i)}else{let e=t.response,i={...t.fetchData,status_code:e&&e.status},o={input:t.args,response:e,startTimestamp:n,endTimestamp:r};(0,ea.n)({category:"fetch",data:i,type:"http"},o)}}}),t.history&&(0,A.a)(function(t){if((0,l.s3)()!==e)return;let n=t.from,r=t.to,i=eg(et.location.href),o=n?eg(n):void 0,s=eg(r);o&&o.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,ea.n)({category:"navigation",data:{from:n,to:r}})}),t.sentry&&e.on("beforeSendEvent",function(t){(0,l.s3)()===e&&(0,ea.n)({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,h.jH)(t)},{event:t})})}}},ey=["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"],e_=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,w.hl)(et,"setTimeout",eb),t.setInterval&&(0,w.hl)(et,"setInterval",eb),t.requestAnimationFrame&&(0,w.hl)(et,"requestAnimationFrame",ew),t.XMLHttpRequest&&"XMLHttpRequest"in et&&(0,w.hl)(XMLHttpRequest.prototype,"send",eS);let e=t.eventTarget;e&&(Array.isArray(e)?e:ey).forEach(eE)}}};function eb(e){return function(...t){let n=t[0];return t[0]=er(n,{mechanism:{data:{function:(0,k.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function ew(e){return function(t){return e.apply(this,[er(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,k.$P)(e)},handled:!1,type:"instrument"}})])}}function eS(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,w.hl)(n,e,function(t){let n={mechanism:{data:{function:e,handler:(0,k.$P)(t)},handled:!1,type:"instrument"}},r=(0,w.HK)(t);return r&&(n.mechanism.data.handler=(0,k.$P)(r)),er(t,n)})}),e.apply(this,t)}}function eE(e){let t=et[e]&&et[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&((0,w.hl)(t,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=er(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,k.$P)(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,er(r,{mechanism:{data:{function:"addEventListener",handler:(0,k.$P)(r),target:e},handled:!1,type:"instrument"}}),i])}}),(0,w.hl)(t,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}let ek=null;function eT(e){let t="error";(0,eu.Hj)(t,e),(0,eu.D2)(t,ex)}function ex(){ek=ee.GLOBAL_OBJ.onerror,ee.GLOBAL_OBJ.onerror=function(e,t,n,r,i){return(0,eu.rK)("error",{column:r,error:i,line:n,msg:e,url:t}),!!ek&&!ek.__SENTRY_LOADER__&&ek.apply(this,arguments)},ee.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let eI=null;function eC(e){let t="unhandledrejection";(0,eu.Hj)(t,e),(0,eu.D2)(t,eO)}function eO(){eI=ee.GLOBAL_OBJ.onunhandledrejection,ee.GLOBAL_OBJ.onunhandledrejection=function(e){return(0,eu.rK)("unhandledrejection",e),!eI||!!eI.__SENTRY_LOADER__||eI.apply(this,arguments)},ee.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let eA=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&eT(t=>{let{stackParser:n,attachStacktrace:r}=eR();if((0,l.s3)()!==e||en>0)return;let{msg:i,url:o,line:s,column:a,error:c}=t,d=function(e,t,n,r){let i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},u=a.frames=a.frames||[],l=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,d=(0,M.HD)(t)&&t.length>0?t:(0,ep.l4)();return 0===u.length&&u.push({colno:l,filename:d,function:k.Fi,in_app:!0,lineno:c}),e}(Z(n,c||i,void 0,r,!1),o,s,a);d.level="error",(0,u.eN)(d,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}),t.onunhandledrejection&&eC(t=>{let{stackParser:n,attachStacktrace:r}=eR();if((0,l.s3)()!==e||en>0)return;let i=function(e){if((0,M.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(e){}return e}(t),o=(0,M.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Z(n,i,void 0,r,!0);o.level="error",(0,u.eN)(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}}};function eR(){let e=(0,l.s3)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let eM=()=>({name:"HttpContext",preprocessEvent(e){if(!et.navigator&&!et.location&&!et.document)return;let t=e.request&&e.request.url||et.location&&et.location.href,{referrer:n}=et.document||{},{userAgent:r}=et.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}});function eD(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0}
14,exception_id:t}}function eP(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let eL=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){let o=i.getOptions();!function(e,t,n=250,r,i,o,s){if(!o.exception||!o.exception.values||!s||!(0,M.V9)(s.originalException,Error))return;let a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=(function e(t,n,r,i,o,s,a,u){if(s.length>=r+1)return s;let l=[...s];if((0,M.V9)(i[o],Error)){eD(a,u);let s=t(n,i[o]),c=l.length;eP(s,o,c,u),l=e(t,n,r,i[o],o,[s,...l],s,c)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if((0,M.V9)(i,Error)){eD(a,u);let c=t(n,i),d=l.length;eP(c,`errors[${s}]`,d,u),l=e(t,n,r,i,o,[c,...l],c,d)}}),l})(e,t,i,s.originalException,r,o.exception.values,a,0).map(e=>(e.value&&(e.value=(0,f.$G)(e.value,n)),e)))}(X,o.stackParser,o.maxValueLength,n,t,e,r)}}};function eN(e,t,n,r){let i={filename:e,function:"<anonymous>
14"===t?k.Fi:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let ej=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,eU=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,eF=/\((\S*)(?::(\d+))(?::(\d+))\)/,e$=[30,e=>{let t=ej.exec(e);if(t){let[,e,n,r]=t;return eN(e,k.Fi,+n,+r)}let n=eU.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=eF.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=eH(n[1]||k.Fi,n[2]);return eN(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],eq=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,eB=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,eJ=[50,e=>{let t=eq.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=eB.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]||k.Fi;return[n,e]=eH(n,e),eN(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],eG=(0,k.pE)(e$,eJ),eH=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:k.Fi,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var ez=n(39877),eW=n(83745);function eX(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function eK(e,t=(0,ez.L2)("fetch")){let n=0,r=0;return function(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,D.$2)(new L("Not adding Promise because buffer limit was reached."));let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new D.cW((n,r)=>{let i=t.length;if(!i)return n(!0);let o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{(0,D.WD)(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||64)){let r={};return{send:function(i){let o=[];if((0,P.gv)(i,(t,n)=>{let i=(0,P.mL)(n);if((0,eW.Q)(r,i)){let r=eX(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)}),0===o.length)return(0,D.WD)({});let s=(0,P.Jd)(i[0],o),a=t=>{(0,P.gv)(s,(n,r)=>{let i=eX(n,r);e.recordDroppedEvent(t,(0,P.mL)(r),i)})};return n.add(()=>t({body:(0,P.V$)(s)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&p.X&&d.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=(0,eW.WG)(r,e),e),e=>{throw a("network_error"),e})).then(e=>e,e=>{if(e instanceof L)return p.X&&d.kg.error("Skipped sending event because buffer is full."),a("queue_overflow"),(0,D.WD)({});throw e})},flush:e=>n.drain(e)}}(e,function(i){let o=i.body.length;n+=o,r++;let s={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return(0,ez._6)("fetch"),(0,D.$2)("No fetch implementation available");try{return t(e.url,s).then(e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return(0,ez._6)("fetch"),n-=o,r--,(0,D.$2)(e)}})}function eV(e){return[_(),E(),e_(),ev(),eA(),eL(),T(),eM()]}var eQ=n(67294),eZ=n(34155),eY=n(13533),e0=n(60811),e1=n(31218),e2=n(89366);class e3{constructor(e={}){this._traceId=e.traceId||(0,h.DM)(),this._spanId=e.spanId||(0,h.DM)().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:U.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}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}var e4=n(72751);function e5(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[e1.E1],i=n[e1.Wb];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}let e8="_sentryScope",e6="_sentryIsolationScope";function e9(e){return{scope:e[e8],isolationScope:e[e6]}}class e7{constructor(e={}){this._traceId=e.traceId||(0,h.DM)(),this._spanId=e.spanId||(0,h.DM)().substring(16),this._startTime=e.startTimestamp||(0,N.ph)(),this._attributes={},this.setAttributes({[e1.S3]:"manual",[e1.$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()}
14addLink(e){return this}addLinks(e){return this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?U.i0:U.ve}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,U.$k)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=(0,U.$k)(e),function(e){if(!p.X)return;let{description:t="< unknown name >",op:n="< unknown op >"}=(0,U.XU)(e),{spanId:r}=e.spanContext(),i=(0,U.Gx)(e)===e,o=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;d.kg.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return(0,w.Jr)({data:this._attributes,description:this._name,op:this._attributes[e1.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,U._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[e1.S3],_metrics_summary:(0,e4.y)(this),profile_id:this._attributes[e1.p6],exclusive_time:this._attributes[e1.JQ],measurements:e5(this._events),is_segment:this._isStandaloneSpan&&(0,U.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,U.Gx)(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){p.X&&d.kg.log("[Tracing] Adding an event to span:",e);let r=te(t)?t:n||(0,N.ph)(),i=te(t)?{}:t||{},o={name:e,time:(0,U.$k)(r),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,l.s3)();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===(0,U.Gx)(this)))return;if(this._isStandaloneSpan){this._sampled?function(e){let t=(0,l.s3)();if(!t)return;let n=e[1];if(!n||0===n.length){t.recordDroppedEvent("before_send","span");return}let r=t.getTransport();r&&r.send(e).then(null,e=>{p.X&&d.kg.error("Error while sending span:",e)})}(function(e,t){let n=(0,j.jC)(e[0]),r=t&&t.getDsn(),i=t&&t.getOptions().tunnel,o={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:(0,R.RA)(r)}},s=t&&t.getOptions().beforeSendSpan,a=s?e=>s((0,U.XU)(e)):e=>(0,U.XU)(e),u=[];for(let t of e){let e=a(t);e&&u.push((0,P.KQ)(e))}return(0,P.Jd)(o,u)}([this],e)):(p.X&&d.kg.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}let t=this._convertSpanToTransaction();t&&(e9(this).scope||(0,l.nZ)()).captureEvent(t)}_convertSpanToTransaction(){if(!tt((0,U.XU)(this)))return;this._name||(p.X&&d.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=e9(this),n=(e||(0,l.nZ)()).getClient()||(0,l.s3)();if(!0!==this._sampled){p.X&&d.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}let r=(0,U.Dp)(this).filter(e=>e!==this&&!(e instanceof e7&&e.isStandaloneSpan())).map(e=>(0,U.XU)(e)).filter(tt),i=this._attributes[e1.Zj],o={contexts:{trace:(0,U.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,w.Jr)({dynamicSamplingContext:(0,j.jC)(this)})},_metrics_summary:(0,e4.y)(this),...i&&{transaction_info:{source:i}}},s=e5(this._events);return s&&Object.keys(s).length&&(p.X&&d.kg.log("[Measurements] Adding measurements to transaction event",JSON.stringify(s,void 0,2)),o.measurements=s),o}}function te(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function tt(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}let tn="__SENTRY_SUPPRESS_TRACING__";function tr(e){let t=to();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=function(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=(0,U.$k)(e.startTime),delete n.startTime,n}return t}(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>(0,l.$e)(e.scope,t):void 0!==i?e=>ti(i,e):e=>e())(()=>{let t=(0,l.nZ)(),i=function(e){let t=(0,e2.Y)(e);if(!t)return;let n=(0,l.s3)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,U.Gx)(t):t}(t);return e.onlyIfParent&&!i?new e3:function({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){var i;let o;if(!c())return new e3;let s=(0,l.aF)();if(e&&!n)o=function(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[tn]&&(0,U.Tt)(e),s=o?new e7({...n,parentSpanId:r,traceId:i,sampled:o}):new e3({traceId:i});(0,U.j5)(e,s);let a=(0,l.s3)();return a&&(a.emit("spanStart",s),n.endTimestamp&&a.emit("spanEnd",s)),s}(e,r,t),(0,U.j5)(e,o);else if(e){let n=(0,j.jC)(e),{traceId:i,spanId:s}=e.spanContext(),a=(0,U.Tt)(e);o=ts({traceId:i,parentSpanId:s,...t},r,a),(0,j.Lh)(o,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:a}={...s.getPropagationContext(),...r.getPropagationContext()};o=ts({traceId:e,parentSpanId:i,...t},r,a),n&&(0,j.Lh)(o,n)}return function(e){if(!p.X)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,U.XU)(e),{spanId:i}=e.spanContext(),o=(0,U.Tt)(e),s=(0,U.Gx)(e),a=s===e,u=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];
14if(r&&l.push(`parent ID: ${r}`),!a){let{op:e,description:t}=(0,U.XU)(s);l.push(`root ID: ${s.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}d.kg.log(`${u} 15 ${l.join("\n ")}`)}(o),(i=o)&&((0,w.xp)(i,e6,s),(0,w.xp)(i,e8,r)),o}({parentSpan:i,spanArguments:n,forceTransaction:r,scope:t})})}function ti(e,t){let n=to();return n.withActiveSpan?n.withActiveSpan(e,t):(0,l.$e)(n=>((0,e2.D)(n,e||void 0),t(n)))}function to(){let e=(0,eY.c)();return(0,e0.G)(e)}function ts(e,t,n){let r=(0,l.s3)(),i=r&&r.getOptions()||{},{name:o="",attributes:s}=e,[a,u]=t.getScopeData().sdkProcessingMetadata[tn]?[!1]:function(e,t){let n;if(!c(e))return[!1];n="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;let r=(0,$.o)(n);return void 0===r?(p.X&&d.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(p.X&&d.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(p.X&&d.kg.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,r])}(i,{name:o,parentSampled:n,attributes:s,transactionContext:{name:o,parentSampled:n}}),h=new e7({...e,attributes:{[e1.Zj]:"custom",...e.attributes},sampled:a});return void 0!==u&&h.setAttribute(e1.TE,u),r&&r.emit("spanStart",h),h}var ta=n(12016),tu=n(23039),tl=n(82417);function tc(e){return"number"==typeof e&&isFinite(e)}function td(e,t,n,{...r}){let i=(0,U.XU)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),ti(e,()=>{let e=tr({startTime:t,...r});return e&&e.end(n),e})}function th(){return tu.m&&tu.m.addEventListener&&tu.m.performance}function tf(e){return e/1e3}var tp=n(74181),tm=n(49250);let tg=0,tv={};function ty(e,t,n,r,i,o){let s=o?t[o]:t[`${n}End`],a=t[`${n}Start`];a&&s&&td(e,r+tf(a),r+tf(s),{op:"browser",name:i||n,attributes:{[e1.S3]:"auto.ui.browser.metrics"}})}function t_(e,t,n,r){let i=t[n];null!=i&&i<2147483647&&(e[r]=i)}let tb=[],tw=new Map,tS={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 tE=n(69737);let tk={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function tT(e,t={}){let n;let r=new Map,i=!1,o="externalFinish",s=!t.disableAutoFinish,a=[],{idleTimeout:u=tk.idleTimeout,finalTimeout:h=tk.finalTimeout,childSpanTimeout:f=tk.childSpanTimeout,beforeSpanEnd:m}=t,g=(0,l.s3)();if(!g||!c())return new e3;let v=(0,l.nZ)(),y=(0,U.HN)(),_=function(e){let t=tr(e);return(0,e2.D)((0,l.nZ)(),t),p.X&&d.kg.log("[Tracing] Started span is an idle span"),t}(e);function b(){n&&(clearTimeout(n),n=void 0)}function w(e){b(),n=setTimeout(()=>{!i&&0===r.size&&s&&(o="idleTimeout",_.end(e))},u)}function S(e){n=setTimeout(()=>{!i&&s&&(o="heartbeatFailed",_.end(e))},f)}function E(e){i=!0,r.clear(),a.forEach(e=>e()),(0,e2.D)(v,y);let t=(0,U.XU)(_),{start_timestamp:n}=t;if(!n)return;(t.data||{})[e1.ju]||_.setAttribute(e1.ju,o),d.kg.log(`[Tracing] Idle span "${t.op}" finished`);let s=(0,U.Dp)(_).filter(e=>e!==_),l=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:tE.jt,message:"cancelled"}),t.end(e),p.X&&d.kg.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=(0,U.XU)(t),i=r<=e,o=n-r<=(h+u)/1e3;if(p.X){let e=JSON.stringify(t,void 0,2);i?o||d.kg.log("[Tracing] Discarding span since it finished after idle span final timeout",e):d.kg.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!o||!i)&&((0,U.ed)(_,t),l++)}),l>0&&_.setAttribute("sentry.idle_span_discarded_spans",l)}return _.end=new Proxy(_.end,{apply(e,t,n){m&&m(_);let[r,...i]=n,o=r||(0,N.ph)(),s=(0,U.$k)(o),a=(0,U.Dp)(_).filter(e=>e!==_);if(!a.length)return E(s),Reflect.apply(e,t,[s,...i]);let u=a.map(e=>(0,U.XU)(e).timestamp).filter(e=>!!e),l=u.length?Math.max(...u):void 0,c=(0,U.XU)(_).start_timestamp,d=Math.min(c?c+h
15/1e3:1/0,Math.max(c||-1/0,Math.min(s,l||1/0)));return E(d),Reflect.apply(e,t,[d,...i])}}),a.push(g.on("spanStart",e=>{if(!i&&e!==_&&!(0,U.XU)(e).timestamp&&(0,U.Dp)(_).includes(e)){var t;t=e.spanContext().spanId,b(),r.set(t,!0),S((0,N.ph)()+f/1e3)}})),a.push(g.on("spanEnd",e=>{var t;i||(t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&w((0,N.ph)()+u/1e3))})),a.push(g.on("idleSpanEnableAutoFinish",e=>{e===_&&(s=!0,w(),r.size&&S())})),t.disableAutoFinish||w(),setTimeout(()=>{i||(_.setStatus({code:tE.jt,message:"deadline_exceeded"}),o="finalTimeout",_.end())},h),_}let tx=!1;function tI(){let e=(0,U.HN)(),t=e&&(0,U.Gx)(e);if(t){let e="internal_error";p.X&&d.kg.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:tE.jt,message:e})}}tI.tag="sentry_tracingErrorCallback";var tC=n(85712),tO=n(19548),tA=n(60859);let tR={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function tM(e){let{url:t}=(0,U.XU)(e).data||{};if(!t||"string"!=typeof t)return;let n=(0,tl._j)("resource",({entries:r})=>{r.forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&((function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),N.Z1)?[...r,["http.request.redirect_start",tD(e.redirectStart)],["http.request.fetch_start",tD(e.fetchStart)],["http.request.domain_lookup_start",tD(e.domainLookupStart)],["http.request.domain_lookup_end",tD(e.domainLookupEnd)],["http.request.connect_start",tD(e.connectStart)],["http.request.secure_connection_start",tD(e.secureConnectionStart)],["http.request.connection_end",tD(e.connectEnd)],["http.request.request_start",tD(e.requestStart)],["http.request.response_start",tD(e.responseStart)],["http.request.response_end",tD(e.responseEnd)]]:r})(r).forEach(t=>e.setAttribute(...t)),setTimeout(n))})})}function tD(e=0){return((N.Z1||performance.timeOrigin)+e)/1e3}function tP(e){try{return new URL(e,et.location.origin).href}catch(e){return}}let tL={...tk,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!1,enableInp:!0,_experiments:{},...tR},tN=(e={})=>{tx||(tx=!0,eT(tI),eC(tI));let{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:s},beforeStartSpan:a,idleTimeout:u,finalTimeout:h,childSpanTimeout:p,markBackgroundSpan:m,traceFetch:g,traceXHR:v,shouldCreateSpanForRequest:y,enableHTTPTimings:_,instrumentPageLoad:b,instrumentNavigation:S}={...tL,...e},E=function(){let e=th();if(e&&N.Z1){e.mark&&tu.m.performance.mark("sentry-tracing-init");let t=(0,tl.to)(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=tf(N.Z1),r=tf(t.startTime);ta.X&&d.kg.log("[Measurements] Adding FID"),tv.fid={value:e.value,unit:"millisecond"},tv["mark.fid"]={value:n+r,unit:"second"}}),n=(0,tl.PR)(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ta.X&&d.kg.log("[Measurements] Adding CLS"),tv.cls={value:e.value,unit:""},o=t)},!0),r=(0,tl.$A)(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ta.X&&d.kg.log("[Measurements] Adding LCP"),tv.lcp={value:e.value,unit:"millisecond"},i=t)},!0),s=(0,tl._4)(({metric:e})=>{e.entries[e.entries.length-1]&&(ta.X&&d.kg.log("[Measurements] Adding TTFB"),tv.ttfb={value:e.value,unit:"millisecond"})});return()=>{t(),n(),r(),s()}}return()=>void 0}();t&&function(){if(th()&&N.Z1){let e=(0,tl.YF)(({metric:e})=>{let t;let n=(0,l.s3)();if(!n||void 0==e.value)return;let r=e.entries.find(t=>t.duration===e.value&&tS[t.name]);if(!r)return;let{interactionId:i}=r,o=tS[r.name],s=n.getOptions(),a=tf(N.Z1+r.startTime),u=tf(e.value),c=(0,l.nZ)(),d=(0,U.HN)(),h=d?(0,U.Gx)(d):void 0,f=(null!=i?tw.get(i):void 0)||h,p=f?(0,U.XU)(f).description:c.getScopeData().transactionName,m=c.getUser(),g=n.getIntegrationByName("Replay"),v=g&&g.getReplayId(),y=void 0!==m?m.email||m.id||m.ip_address:void 0;
15try{t=c.getScopeData().contexts.profile.profile_id}catch(e){}let _=tr({name:(0,ep.Rt)(r.target),op:`ui.interaction.${o}`,attributes:(0,w.Jr)({release:s.release,environment:s.environment,transaction:p,[e1.JQ]:e.value,[e1.S3]:"auto.http.browser.inp",user:y||void 0,profile_id:t||void 0,replay_id:v||void 0,"user_agent.original":tu.m.navigator&&tu.m.navigator.userAgent}),startTime:a,experimental:{standalone:!0}});_.addEvent("inp",{[e1.E1]:"millisecond",[e1.Wb]:e.value}),_.end(a+u)})}}(),r&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{for(let t of e.getEntries()){if(!(0,U.HN)()||!t.scripts[0])return;let e=tf(N.Z1+t.startTime),n=tf(t.duration),r={[e1.S3]:"auto.ui.browser.metrics"},i=t.scripts[0];if(i){let{invoker:e,invokerType:t,sourceURL:n,sourceFunctionName:o,sourceCharPosition:s}=i;r["browser.script.invoker"]=e,r["browser.script.invoker_type"]=t,n&&(r["code.filepath"]=n),o&&(r["code.function"]=o),-1!==s&&(r["browser.script.source_char_position"]=s)}let o=tr({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:e,attributes:r});o&&o.end(e+n)}}).observe({type:"long-animation-frame",buffered:!0}):n&&(0,tl._j)("longtask",({entries:e})=>{for(let t of e){if(!(0,U.HN)())return;let e=tf(N.Z1+t.startTime),n=tf(t.duration),r=tr({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[e1.S3]:"auto.ui.browser.metrics"}});r&&r.end(e+n)}}),s&&(0,tl._j)("event",({entries:e})=>{for(let t of e){if(!(0,U.HN)())return;if("click"===t.name){let e=tf(N.Z1+t.startTime),n=tf(t.duration),r={name:(0,ep.Rt)(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[e1.S3]:"auto.ui.browser.metrics"}},i=(0,ep.iY)(t.target);i&&(r.attributes["ui.component_name"]=i);let o=tr(r);o&&o.end(e+n)}}});let k={name:void 0,source:void 0};function T(e,t){let n="pageload"===t.op,r=a?a(t):t,s=r.attributes||{};t.name!==r.name&&(s[e1.Zj]="custom",r.attributes=s),k.name=r.name,k.source=s[e1.Zj];let l=tT(r,{idleTimeout:u,finalTimeout:h,childSpanTimeout:p,disableAutoFinish:n,beforeSpanEnd:e=>{E(),function(e){let t=th();if(!t||!tu.m.performance.getEntries||!N.Z1)return;ta.X&&d.kg.log("[Tracing] Adding & adjusting spans using Performance API");let n=tf(N.Z1),r=t.getEntries(),{op:s,start_timestamp:a}=(0,U.XU)(e);if(r.slice(tg).forEach(t=>{let r=tf(t.startTime),i=tf(Math.max(0,t.duration));if("navigation"!==s||!a||!(n+r<a))switch(t.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{ty(e,t,r,n)}),ty(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),ty(e,t,"fetch",n,"cache","domainLookupStart"),ty(e,t,"domainLookup",n,"DNS"),function(e,t,n){let r=n+tf(t.requestStart),i=n+tf(t.responseEnd),o=n+tf(t.responseStart);t.responseEnd&&(td(e,r,i,{op:"browser",name:"request",attributes:{[e1.S3]:"auto.ui.browser.metrics"}}),td(e,o,i,{op:"browser",name:"response",attributes:{[e1.S3]:"auto.ui.browser.metrics"}}))}(e,t,n);break;case"mark":case"paint":case"measure":{(function(e,t,n,r,i){let o=(0,tp.W)(),s=i+Math.max(n,tf(o?o.requestStart:0)),a=i+n,u={[e1.S3]:"auto.resource.browser.metrics"};s!==a&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=s),td(e,s,a+r,{name:t.name,op:t.entryType,attributes:u})})(e,t,r,i,n);let o=(0,tm.Y)(),s=t.startTime<o.firstHiddenTime;"first-paint"===t.name&&s&&(ta.X&&d.kg.log("[Measurements] Adding FP"),tv.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&s&&(ta.X&&d.kg.log("[Measurements] Adding FCP"),tv.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":(function(e,t,n,r,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let s=eg(n),a={[e1.S3]:"auto.resource.browser.metrics"};t_(a,t,"transferSize","http.response_transfer_size"),t_(a,t,"encodedBodySize","http.response_content_length"),t_(a,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(a["url.scheme"]=s.protocol.split(":").pop()),s.host&&(a["server.address"]=s.host),a["url.same_origin"]=n.includes(tu.m.location.origin);let u=o+r;td(e,u,u+i,{name:n.replace(tu.m.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:a})})(e,t,t.name,r,i,n)}}),tg=Math.max(r.length-1,0),function(e){let t=tu.m.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),tc(n.rtt)&&(tv["connection.rtt"]={value:n.rtt,unit:"millisecond"})),tc(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),tc(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===s){(function(e){let t=(0,tp.W)();if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(ta.X&&d.kg.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}
15)(tv),["fcp","fp","lcp"].forEach(e=>{let t=tv[e];if(!t||!a||n>=a)return;let r=t.value,i=Math.abs((n+tf(r)-a)*1e3),o=i-r;ta.X&&d.kg.log(`[Measurements] Normalized ${e} from ${r} to ${i} (${o})`),t.value=i});let t=tv["mark.fid"];t&&tv.fid&&(td(e,t.value,t.value+tf(tv.fid.value),{name:"first input delay",op:"ui.action",attributes:{[e1.S3]:"auto.ui.browser.metrics"}}),delete tv["mark.fid"]),"fcp"in tv||delete tv.cls,Object.entries(tv).forEach(([e,t])=>{!function(e,t,n){let r=(0,U.HN)(),i=r&&(0,U.Gx)(r);i&&i.addEvent(e,{[e1.Wb]:t,[e1.E1]:n})}(e,t.value,t.unit)}),i&&(ta.X&&d.kg.log("[Measurements] Adding LCP Data"),i.element&&e.setAttribute("lcp.element",(0,ep.Rt)(i.element)),i.id&&e.setAttribute("lcp.id",i.id),i.url&&e.setAttribute("lcp.url",i.url.trim().slice(0,200)),e.setAttribute("lcp.size",i.size)),o&&o.sources&&(ta.X&&d.kg.log("[Measurements] Adding CLS Data"),o.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,ep.Rt)(t.node))))}i=void 0,o=void 0,tv={}}(e)}});function c(){["interactive","complete"].includes(et.document.readyState)&&e.emit("idleSpanEnableAutoFinish",l)}return n&&et.document&&(et.document.addEventListener("readystatechange",()=>{c()}),c()),l}return{name:"BrowserTracing",afterAllSetup(e){let n,r;let i=et.location&&et.location.href;e.on("startNavigationSpan",t=>{(0,l.s3)()===e&&(n&&!(0,U.XU)(n).timestamp&&n.end(),n=T(e,{op:"navigation",...t}))}),e.on("startPageLoadSpan",(t,r={})=>{if((0,l.s3)()!==e)return;n&&!(0,U.XU)(n).timestamp&&n.end();let i=r.sentryTrace||tF("sentry-trace"),o=r.baggage||tF("baggage"),s=(0,tC.pT)(i,o);(0,l.nZ)().setPropagationContext(s),n=T(e,{op:"pageload",...t})}),e.on("spanEnd",e=>{let t=(0,U.XU)(e).op;if(e!==(0,U.Gx)(e)||"navigation"!==t&&"pageload"!==t)return;let n=(0,l.nZ)(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:(0,U.Tt)(e),dsc:r.dsc||(0,j.jC)(e)})}),et.location&&(b&&tj(e,{name:et.location.pathname,startTime:N.Z1?N.Z1/1e3:void 0,attributes:{[e1.Zj]:"url",[e1.S3]:"auto.pageload.browser"}}),S&&(0,A.a)(({to:t,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(t)){i=void 0;return}n!==t&&(i=void 0,tU(e,{name:et.location.pathname,attributes:{[e1.Zj]:"url",[e1.S3]:"auto.navigation.browser"}}))})),m&&et&&et.document&&et.document.addEventListener("visibilitychange",()=>{let e=(0,U.HN)();if(!e)return;let t=(0,U.Gx)(e);if(et.document.hidden&&t){let{op:e,status:n}=(0,U.XU)(t);n||t.setStatus({code:tE.jt,message:"cancelled"}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}),s&&et.document&&addEventListener("click",()=>{let e=(0,U.HN)(),t=e&&(0,U.Gx)(e);!(t&&["navigation","pageload"].includes((0,U.XU)(t).op))&&(r&&(r.setAttribute(e1.ju,"interactionInterrupted"),r.end(),r=void 0),k.name&&(r=tT({name:k.name,op:"ui.action.click",attributes:{[e1.Zj]:k.source||"url"}},{idleTimeout:u,finalTimeout:h,childSpanTimeout:p})))},{once:!1,capture:!0}),t&&function(){let e=({entries:e})=>{let t=(0,U.HN)(),n=t&&(0,U.Gx)(t);e.forEach(e=>{if(!(0,tl.cN)(e)||!n)return;let t=e.interactionId;if(!(null==t||tw.has(t))){if(tb.length>10){let e=tb.shift();tw.delete(e)}tb.push(t),tw.set(t,n)}})};(0,tl._j)("event",e),(0,tl._j)("first-input",e)}(),function(e){let{traceFetch:t,traceXHR:n,shouldCreateSpanForRequest:r,enableHTTPTimings:i,tracePropagationTargets:o}={traceFetch:tR.traceFetch,traceXHR:tR.traceXHR,...e},s="function"==typeof r?r:e=>!0,a=e=>(function(e,t){let n=et.location&&et.location.href;if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch(e){return!1}let o=r.origin===i;return t?(0,f.U0)(r.toString(),t)||o&&(0,f.U0)(r.pathname,t):o}{let n=!!e.match(/^\/(?!\/)/);return t?(0,f.U0)(e,t):n}})(e,o),u={};t&&ec(e=>{let t=function(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;let o=c()&&t(e.fetchData.url);if(e.endTimestamp&&o){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(function(e,t){if(t.response){(0,tE.Q0)(e,t.response.status);let n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:tE.jt,message:"internal_error"});e.end()}(n,e),delete r[t]);return}let s=(0,l.nZ)(),a=(0,l.s3)(),{method:u,url:d}=e.fetchData,h=function(e){try{return new URL(e).href}catch(e){return}}(d),f=h?eg(h).host:void 0,p=!!(0,U.HN)(),m=o&&p?tr({name:`${u} ${d}`,attributes:{url:d,type:"fetch","http.method":u,"http.url":h,"server.address":f,[e1.S3]:i,[e1.$J]:"http.client"}}):new e3;if(e.fetchData.__span=m.spanContext().spanId,r[m.spanContext().spanId]=m,n(e.fetchData.url)&&a){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=function(e,t,n,r,i){let{traceId:o,spanId:s,sampled:a,dsc:u}={...(0,l.aF)().getPropagationContext(),...n.getPropagationContext()},c=i?(0,U.Hb)(i):(0,tC.$p)(o,s,a),d=(0,tA.IQ)(u||(i?(0,j.jC)(i):(0,j._l)(o,t))),h=r.headers||("undefined"!=typeof Request&&(0,M.V9)(e,Request)?e.headers:void 0);if(!h)return{"sentry-trace":c,baggage:d};if("undefined"!=typeof Headers&&(0,M.V9)(h,Headers)){let e=new Headers(h);return e.append("sentry-trace",c),d&&e.append(tA.bU,d),e}if(Array.isArray(h)){let e=[...h,["sentry-trace",c]];return d&&e.push([tA.bU,d]),e}{let e="baggage"in h?h.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),d&&t.push(d),{...h,"sentry-trace":c,baggage:t.length>0?t.join(","):void 0}}}(t,a,s,n,c()&&p?m:void 0)}return m}(e,s,a,u);if(t){let n=tP(e.fetchData.url),r=n?eg(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}i&&t&&tM(t)}),n&&(0,es.UK)(e=>{let t=function(e,t,n,r){let i=e.xhr,o=i&&i[es.xU];if(!i||i.__sentry_own_request__||!o)return;let s=c()&&t(o.url);if(e.endTimestamp&&s){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&void 0!==o.status_code&&((0,tE.Q0)(t,o.status_code),t.end(),delete r[e]);return}let a=tP(o.url),u=a?eg(a).host:void 0,d=!!(0,U.HN)(),h=s&&d?tr({name:`${o.method} ${o.url}`,attributes:{type:"xhr","http.method":o.method,"http.url":a,url:o.url,"server.address":u,[e1.S3]:"auto.http.browser",[e1.$J]:"http.client"}}):new e3;i.__sentry_xhr_span_id__=h.spanContext().spanId,r[i.__sentry_xhr_span_id__]=h;let f=(0,l.s3)();return i.setRequestHeader&&n(o.url)&&f&&function(e,t,n){let r=(0,l.nZ)(),{traceId:i,spanId:o,sampled:s,dsc:a}={...(0,l.aF)().getPropagationContext(),...r.getPropagationContext()};(function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(tA.bU,n)}catch(e){}})(e,n&&c()?(0,U.Hb)(n):(0,tC.$p)(i,o,s),(0,tA.IQ)(a||(n?(0,j.jC)(n):(0,j._l)(i,t))))}(i,f,c()&&d?h:void 0),h}(e,s,a,u);i&&t&&tM(t)})}({traceFetch:g,traceXHR:v,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:_})}}};function tj(e,t,n){e.emit("startPageLoadSpan",t,n),(0,l.nZ)().setTransactionName(t.name);let r=(0,U.HN)();return"pageload"===(r&&(0,U.XU)(r).op)?r:void 0}function tU(e,t){(0,l.aF)().setPropagationContext((0,tO.Q)()),(0,l.nZ)().setPropagationContext((0,tO.Q)()),e.emit("startNavigationSpan",t),(0,l.nZ)().setTransactionName(t.name);let n=(0,U.HN)();return"navigation"===(n&&(0,U.XU)(n).op)?n:void 0}function tF(e){let t=(0,ep.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}var t$=n(57608),tq=n(11163),tB=n(36096);let tJ=tq.events?tq:tq.default,tG=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function tH(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function tz(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let tW=(e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in ee.GLOBAL_OBJ&&void 0!==ee.GLOBAL_OBJ.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),o=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||o){let e;let o=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,s=t?function(e,t){e=tH(e).slice(1),t=tH(t).slice(1);let n=tz(e.split("/")),r=tz(t.split("/")),i=Math.min(n.length,r.length),o=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){o=e;break}let s=[];for(let e=o;e<n.length;e++)s.push("..");return(s=s.concat(r.slice(o))).join("/")}(t,o):function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=tG.exec(t);return n?n.slice(1):[]}(o)[2]||"";r.filename=`${n}${s}`}return r}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t&&t.frames&&t.frames.map(e=>i(e))}}}})}}}catch(t){return e}}(t)),t}}},tX=({assetPrefixPath:e})=>({...tW({iteratee:t=>{try{let{origin:n}=new URL(t.filename);t.filename=(0,t$.x)([t,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(n,"app://"),"access",e=>e.replace,"call",t=>t(e,"")])}catch(e){}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"}),tK=ee.GLOBAL_OBJ,tV=ee.GLOBAL_OBJ;function tQ(e){let t={environment:function(e){let t=e?eZ.env.NEXT_PUBLIC_VERCEL_ENV:eZ.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=eV(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&c(e)&&t.push(function(e={}){let t=tN({...e,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){var i;r&&(i=e,et.document.getElementById("__NEXT_DATA__")?tJ.events.on("routeChangeStart",e=>{let t,n;let r=e.split(/[?#]/,1)[0],o=function(e){let t=(et.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";(0,t$.x)([t,"access",e=>e[t.length-1],"optionalAccess",e=>e.match,"call",e=>e(/^\[\[\.\.\..+\]\]$/)])&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(r);o?(t=o,n="route"):(t=r,n="url"),tU(i,{name:t,attributes:{[e1.$J]:"navigation",[e1.S3]:"auto.navigation.nextjs.pages_router_instrumentation",[e1.Zj]:n}})}):ec(e=>{if(void 0!==e.endTimestamp||"GET"!==e.fetchData.method)return;let t=function(e){if(!e[0]||"object"!=typeof e[0]||void 0===e[0].searchParams||!e[1]||"object"!=typeof e[1]||!("headers"in e[1])
15)return null;try{let t=e[0],n=e[1].headers;if("1"!==n.RSC||"1"===n["Next-Router-Prefetch"])return null;return{targetPathname:t.pathname}}catch(e){return null}}(e.args);null!==t&&tU(i,{name:t.targetPathname,attributes:{[e1.$J]:"navigation",[e1.S3]:"auto.navigation.nextjs.app_router_instrumentation",[e1.Zj]:"url"}})})),t.afterAllSetup(e),n&&(et.document.getElementById("__NEXT_DATA__")?function(e){let{route:t,params:n,sentryTrace:r,baggage:i}=function(){let e;let t=et.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){tB.X&&d.kg.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let 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}();tj(e,{name:t||et.location.pathname,startTime:N.Z1?N.Z1/1e3:void 0,attributes:{[e1.$J]:"pageload",[e1.S3]:"auto.pageload.nextjs.pages_router_instrumentation",[e1.Zj]:t?"route":"url",...n&&e.getOptions().sendDefaultPii&&{...n}}},{sentryTrace:r,baggage:i})}(e):tj(e,{name:et.location.pathname,startTime:N.Z1?N.Z1/1e3:void 0,attributes:{[e1.$J]:"pageload",[e1.S3]:"auto.pageload.nextjs.app_router_instrumentation",[e1.Zj]:"url"}}))}}}());let n=tV.__rewriteFramesAssetPrefixPath__||"";return t.push(tX({assetPrefixPath:n})),t}(e),...e};(function(e){let t=tK.__sentryRewritesTunnelPath__;if(t&&e.dsn){let n=(0,R.U4)(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],o=r[2],s=`${t}?o=${i}&p=${n.projectId}`;o&&(s+=`&r=${o}`),e.tunnel=s,tB.X&&d.kg.info(`Tunneling events to "${s}"`)}else tB.X&&d.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}})(t),a(t,"nextjs",["nextjs","react"]);let n=function(e){let t={...e};return a(t,"react"),(0,u.v)("react",{version:eQ.version}),function(e={}){let t=function(e={}){return{defaultIntegrations:eV(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:et.SENTRY_RELEASE&&et.SENTRY_RELEASE.id?et.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0,...e}}(e);if(function(){let e=et.chrome?"chrome":"browser",t=et[e],n=t&&t.runtime&&t.runtime.id,r=et.location&&et.location.href||"",i=!!n&&et===et.top&&["chrome-extension:","moz-extension:","ms-browser-extension:"].some(e=>r.startsWith(`${e}//`)),o=void 0!==et.nw;return!!n&&!i&&!o}()){(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/")});return}let n=function(e,t){!0===t.debug&&(p.X?d.kg.enable():(0,d.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,l.nZ)().update(t.initialScope);let n=new e(t);return(0,l.nZ)().setClient(n),n.init(),n}(ei,{...t,stackParser:(0,k.Sq)(t.stackParser||eG),integrations:function(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r=function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(Array.isArray(n)?[...t,...n]:"function"==typeof n?(0,h.lE)(n(t)):t),i=r.findIndex(e=>"Debug"===e.name);if(i>-1){let[e]=r.splice(i,1);r.push(e)}return r}(t),transport:t.transport||eK});return t.autoSessionTracking&&void 0!==et.document&&((0,u.yj)({ignoreDuration:!0}),(0,u.cg)(),(0,A.a)(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,u.yj)({ignoreDuration:!0}),(0,u.cg)())})),n}(t)}(t);(0,u.YA)("runtime","browser");let r=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;return r.id="NextClient404Filter",(0,u.Qy)(r),n}},36096:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},60859:function(e,t,n){"use strict";n.d(t,{EN:function(){return l},IQ:function(){return c},bU:function(){return s}});var r=n(1525),i=n(16824),o=n(41001);let s="baggage",a="sentry-",u=/^sentry-/;function l(e){let t=e&&((0,i.HD)(e)||Array.isArray(e))?Array.isArray(e)?e.reduce((e,t)=>(Object.entries(d(t)).forEach(([t,n])=>{e[t]=n}),e),{}):d(e):void 0;if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.match(u)&&(e[t.slice(a.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function c(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],i)=>{let s=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===i?s:`${e},${s}`;return a.length>8192?(r.X&&o.kg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${a}${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),{})}},1869:function(e,t,n){"use strict";n.d(t,{Rt:function(){return o},iY:function(){return u},l4:function(){return s},qT:function(){return a}});var r=n(16824);let i=n(29531).GLOBAL_OBJ;function o(e,t={}){if(!e)return"<unknown>";try{let n,o=e,s=[],a=0,u=0,l=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;o&&a++<5&&(n=function(e,t){let n=[];if(!e||!e.tagName)return"";if(i.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}n.push(e.tagName.toLowerCase());let o=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;
15if(o&&o.length)o.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&n.push(`#${e.id}`);let t=e.className;if(t&&(0,r.HD)(t))for(let e of t.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=e.getAttribute(t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(o,l),"html"!==n&&(!(a>1)||!(u+3*s.length+n.length>=c)));)s.push(n),u+=n.length,o=o.parentNode;return s.reverse().join(" > ")}catch(e){return"<unknown>"}}function s(){try{return i.document.location.href}catch(e){return""}}function a(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 e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},28643:function(e,t,n){"use strict";function r(e,t){return null!=e?e:t()}n.d(t,{h:function(){return r}})},57608:function(e,t,n){"use strict";function r(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}n.d(t,{x:function(){return r}})},1525:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},73326:function(e,t,n){"use strict";n.d(t,{RA:function(){return s},U4:function(){return a},vK:function(){return l}});var r=n(1525),i=n(41001);let o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function s(e,t=!1){let{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:u}=e;return`${a}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${s}`}function a(e){let t=o.exec(e);if(!t){(0,i.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,s="",a="",l="",c=""]=t.slice(1),d="",h=c,f=h.split("/");if(f.length>1&&(d=f.slice(0,-1).join("/"),h=f.pop()),h){let e=h.match(/^\d+/);e&&(h=e[0])}return u({host:a,pass:s,path:d,projectId:h,port:l,protocol:n,publicKey:r})}function u(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function l(e){let t="string"==typeof e?a(e):u(e);if(t&&function(e){if(!r.X)return!0;let{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+$/)?"http"===o||"https"===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}},84281: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}})},39432:function(e,t,n){"use strict";n.d(t,{BO:function(){return u},Cd:function(){return v},HY:function(){return g},Jd:function(){return a},KQ:function(){return h},V$:function(){return d},gv:function(){return l},mL:function(){return m},zQ:function(){return f}});var r=n(73326),i=n(83408),o=n(27179),s=n(29531);function a(e,t=[]){return[e,t]}function u(e,t){let[n,r]=e;return[n,[...r,t]]}function l(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function c(e){return s.GLOBAL_OBJ.__SENTRY__&&s.GLOBAL_OBJ.__SENTRY__.encodePolyfill?s.GLOBAL_OBJ.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function d(e){let[t,n]=e,r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[c(r),e]:r.push("string"==typeof e?c(e):e)}for(let e of n){let[t,n]=e;if(o(` 16${JSON.stringify(t)} 17`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,i.Fv)(n))}o(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}function h(e){return[{type:"span"},e]}function f(e){let t="string"==typeof e.data?c(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]}let p={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 m(e){return p[e]}function g(e){if(!e||!e.sdk)return;
17let{name:t,version:n}=e.sdk;return{name:t,version:n}}function v(e,t,n,i){let s=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)},...s&&{trace:(0,o.Jr)({...s})}}}},68562:function(e,t,n){"use strict";n.d(t,{D2:function(){return l},Hj:function(){return u},rK:function(){return c}});var r=n(1525),i=n(41001),o=n(42283);let s={},a={};function u(e,t){s[e]=s[e]||[],s[e].push(t)}function l(e,t){a[e]||(t(),a[e]=!0)}function c(e,t){let n=e&&s[e];if(n)for(let s of n)try{s(t)}catch(t){r.X&&i.kg.error(`Error while triggering instrumentation handler. 18Type: ${e} 19Name: ${(0,o.$P)(s)} 20Error:`,t)}}},16824:function(e,t,n){"use strict";n.d(t,{Cy:function(){return v},HD:function(){return l},J8:function(){return g},Kj:function(){return m},Le:function(){return c},PO:function(){return h},TX:function(){return a},V9:function(){return y},VW:function(){return s},VZ:function(){return i},cO:function(){return f},fm:function(){return u},kK:function(){return p},pt:function(){return d},y1:function(){return _}});let r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function o(e,t){return r.call(e)===`[object ${t}]`}function s(e){return o(e,"ErrorEvent")}function a(e){return o(e,"DOMError")}function u(e){return o(e,"DOMException")}function l(e){return o(e,"String")}function c(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||c(e)||"object"!=typeof e&&"function"!=typeof e}function h(e){return o(e,"Object")}function f(e){return"undefined"!=typeof Event&&y(e,Event)}function p(e){return"undefined"!=typeof Element&&y(e,Element)}function m(e){return o(e,"RegExp")}function g(e){return!!(e&&e.then&&"function"==typeof e.then)}
20function v(e){return h(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function y(e,t){try{return e instanceof t}catch(e){return!1}}function _(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},41001:function(e,t,n){"use strict";n.d(t,{Cf:function(){return a},LD:function(){return s},RU:function(){return o},kg:function(){return u}});var r=n(1525),i=n(29531);let o=["debug","info","warn","error","log","assert","trace"],s={};function a(e){if(!("console"in i.GLOBAL_OBJ))return e();let t=i.GLOBAL_OBJ.console,n={},r=Object.keys(s);r.forEach(e=>{let r=s[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let u=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.X?o.forEach(n=>{t[n]=(...t)=>{e&&a(()=>{i.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...t)})}}):o.forEach(e=>{t[e]=()=>void 0}),t}()},41982:function(e,t,n){"use strict";n.d(t,{DM:function(){return o},Db:function(){return u},EG:function(){return l},YO:function(){return c},jH:function(){return a},lE:function(){return d}});var r=n(27179),i=n(29531);function o(){let e=i.GLOBAL_OBJ,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".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 a(e){let{message:t,event_id:n}=e;if(t)return t;let r=s(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function u(e,t,n){let 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){let n=s(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function c(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function d(e){return Array.isArray(e)?e:[e]}},83408:function(e,t,n){"use strict";n.d(t,{Fv:function(){return s},Qy:function(){return function e(t,n=3,r=102400){let i=s(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}}});var r=n(16824),i=n(27179),o=n(42283);function s(e,t=100,n=Infinity){try{return function e(t,n,s=Infinity,a=Infinity,u=function(){let 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<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){let[l,c]=u;if(null==n||["number","boolean","string"].includes(typeof n)&&!Number.isNaN(n))return n;let d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,r.y1)(t))return"[VueViewModel]";if((0,r.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${(0,o.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let n=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(n))return`[HTMLElement: ${n}]`;return`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(t,n);if(!d.startsWith("[object "))return d;if(n.__sentry_skip_normalization__)return n;let h="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:s;if(0===h)return d.replace("object ","");if(l(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,h-1,a,u)}catch(e){}let f=Array.isArray(n)?[]:{},p=0,m=(0,i.Sh)(n);for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(p>=a){f[t]="[MaxProperties ~]";break}let n=m[t];f[t]=e(t,n,h-1,a,u),p++}return c(n),f}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},27179:function(e,t,n){"use strict";n.d(t,{$Q:function(){return c},HK:function(){return d},Jr:function(){return v},Sh:function(){return f},_j:function(){return h},hl:function(){return u},xp:function(){return l},zf:function(){return g}});var r=n(1869),i=n(1525),o=n(16824),s=n(41001),a=n(89163);function u(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&c(i,r),e[t]=i}function l(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){i.X&&s.kg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function c(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,l(e,"__sentry_original__",t)}catch(e){}}function d(e){return e.__sentry_original__}function h(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function f(e){if((0,o.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if(!(0,o.cO)(e))return e;{let t={type:e.type,target:p(e.target),currentTarget:p(e.currentTarget),...m
20(e)};return"undefined"!=typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(t.detail=e.detail),t}}function p(e){try{return(0,o.kK)(e)?(0,r.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function m(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function g(e,t=40){let n=Object.keys(f(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return(0,a.$G)(r,t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return(0,a.$G)(r,t)}}return""}function v(e){return function e(t,n){if(function(e){if(!(0,o.PO)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.keys(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}},19548:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});var r=n(41982);function i(){return{traceId:(0,r.DM)(),spanId:(0,r.DM)().substring(16)}}},83745:function(e,t,n){"use strict";function r(e,t,n=Date.now()){return(e[t]||e.all||0)>n}function i(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,n,,,o]=e.split(":",5),s=parseInt(t,10),a=(isNaN(s)?60:s)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=r+a):i[e]=r+a;else i.all=r+a}else s?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(i.all=r+6e4);return i}n.d(t,{Q:function(){return r},WG:function(){return i}})},42283:function(e,t,n){"use strict";n.d(t,{$P:function(){return c},Fi:function(){return r},Fr:function(){return d},Sq:function(){return a},pE:function(){return s}});let r="?",i=/\(error: (.*)\)/,o=/captureMessage|captureException/;function s(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,s=0)=>{let a=[],l=e.split("\n");for(let e=n;e<l.length;e++){let n=l[e];if(n.length>1024)continue;let r=i.test(n)?n.replace(i,"$1"):n;if(!r.match(/\S*Error: /)){for(let e of t){let t=e(r);if(t){a.push(t);break}}if(a.length>=50+s)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(u(t).function||"")&&t.pop(),t.reverse(),o.test(u(t).function||"")&&(t.pop(),o.test(u(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||u(t).filename,function:e.function||r}))}(a.slice(s))}}function a(e){return Array.isArray(e)?s(...e):e}function u(e){return e[e.length-1]||{}}let l="<anonymous>";function c(e){try{if(!e||"function"!=typeof e)return l;return e.name||l}catch(e){return l}}function d(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(e){}}}},89163:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},U0:function(){return s},nK:function(){return o}});var r=n(16824);function i(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let i=e[t];try{(0,r.y1)(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):!!(0,r.HD)(t)&&(n?e===t:e.includes(t)))})(e,t,n))}},36731:function(e,t,n){"use strict";n.d(t,{Ak:function(){return s},QC:function(){return a},t$:function(){return u}});var r=n(1525),i=n(41001);let o=n(29531).GLOBAL_OBJ;function s(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function u(){if("string"==typeof EdgeRuntime)return!0;
20if(!s())return!1;if(a(o.fetch))return!0;let e=!1,t=o.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=a(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r.X&&i.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}},80128:function(e,t,n){"use strict";n.d(t,{$2:function(){return a},WD:function(){return s},cW:function(){return u}});var r,i,o=n(16824);function s(e){return new u(t=>{t(e)})}function a(e){return new u((t,n)=>{n(e)})}(r=i||(i={}))[r.PENDING=0]="PENDING",r[r.RESOLVED=1]="RESOLVED",r[r.REJECTED=2]="REJECTED";class u{constructor(e){u.prototype.__init.call(this),u.prototype.__init2.call(this),u.prototype.__init3.call(this),u.prototype.__init4.call(this),this._state=i.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new u((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new u((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(i.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(i.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===i.PENDING){if((0,o.J8)(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===i.RESOLVED&&e[1](this._value),this._state===i.REJECTED&&e[2](this._value),e[0]=!0)})}}}},26181:function(e,t,n){"use strict";n.d(t,{Z1:function(){return s},ph:function(){return o},yW:function(){return i}});var r=n(29531);function i(){return Date.now()/1e3}let o=function(){let{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now)return i;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}(),s=(()=>{let{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now)return;let t=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=e.timing&&e.timing.navigationStart,s="number"==typeof o?Math.abs(o+t-n):36e5;return i<36e5||s<36e5?i<=s?e.timeOrigin:o:n})()},85712:function(e,t,n){"use strict";n.d(t,{$p:function(){return a},pT:function(){return s}});var r=n(60859),i=n(41982);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function s(e,t){let n=function(e){let t;if(!e)return;let n=e.match(o);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),s=(0,r.EN)(t),{traceId:a,parentSpanId:u,parentSampled:l}=n||{};return n?{traceId:a||(0,i.DM)(),parentSpanId:u||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:l,dsc:s||{}}:{traceId:a||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}function a(e=(0,i.DM)(),t=(0,i.DM)().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}},42990:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="8.20.0"},29531:function(e,t,n){"use strict";n.d(t,{GLOBAL_OBJ:function(){return i},Y:function(){return o}});var r=n(42990);let i=globalThis;function o(e,t,n){let o=n||i,s=o.__SENTRY__=o.__SENTRY__||{},a=s[r.J]=s[r.J]||{};return a[e]||(a[e]=t())}},15761:function(e,t,n){"use strict";n.d(t,{j:function(){return s}});var r=n(33989),i=n(32161);class o extends r.l{constructor(){super(),this.setup=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}
20onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let s=new o},9499:function(e,t,n){"use strict";function r(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,s,a,u;let l;let c=null==(t=e.fetchOptions)?void 0:null==(n=t.meta)?void 0:n.refetchPage,d=null==(r=e.fetchOptions)?void 0:null==(s=r.meta)?void 0:s.fetchMore,h=null==d?void 0:d.pageParam,f=(null==d?void 0:d.direction)==="forward",p=(null==d?void 0:d.direction)==="backward",m=(null==(a=e.state.data)?void 0:a.pages)||[],g=(null==(u=e.state.data)?void 0:u.pageParams)||[],v=g,y=!1,_=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?y=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{y=!0}),e.signal}})},b=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),w=(e,t,n,r)=>(v=r?[t,...v]:[...v,t],r?[n,...e]:[...e,n]),S=(t,n,r,i)=>{if(y)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);let o={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};return _(o),Promise.resolve(b(o)).then(e=>w(t,r,e,i))};if(m.length){if(f){let t=void 0!==h,n=t?h:i(e.options,m);l=S(m,t,n)}else if(p){let t=void 0!==h,n=t?h:o(e.options,m);l=S(m,t,n,!0)}else{v=[];let t=void 0===e.options.getNextPageParam;l=!c||!m[0]||c(m[0],0,m)?S([],t,g[0]):Promise.resolve(w([],g[0],m[0]));for(let n=1;n<m.length;n++)l=l.then(r=>{if(!c||!m[n]||c(m[n],n,m)){let o=t?g[n]:i(e.options,r);return S(r,t,o)}return Promise.resolve(w(r,g[n],m[n]))})}}else l=S([]);return l.then(e=>({pages:e,pageParams:v}))}}}}function i(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function o(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function s(e,t){if(e.getNextPageParam&&Array.isArray(t)){let n=i(e,t);return null!=n&&!1!==n}}function a(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){let n=o(e,t);return null!=n&&!1!==n}}n.d(t,{Gm:function(){return r},Qy:function(){return s},ZF:function(){return a}})},30081:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(32161);let i=function(){let e=[],t=0,n=e=>{e()},i=e=>{e()},o=i=>{t?e.push(i):(0,r.A4)(()=>{n(i)})},s=()=>{let t=e;e=[],t.length&&(0,r.A4)(()=>{i(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||s()}return n},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e}}}()},96474:function(e,t,n){"use strict";n.d(t,{N:function(){return a}});var r=n(33989),i=n(32161);let o=["online","offline"];class s extends r.l{constructor(){super(),this.setup=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return o.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{o.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let a=new s},72379:function(e,t,n){"use strict";n.d(t,{DV:function(){return l},Kw:function(){return a},Mz:function(){return c}});var r=n(15761),i=n(96474),o=n(32161);function s(e){return Math.min(1e3*2**e,3e4)}function a(e){return(null!=e?e:"online")!=="online"||i.N.isOnline()}class u{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function l(e){return e instanceof u}function c(e){let t,n,l,c=!1,d=0,h=!1,f=new Promise((e,t)=>{n=e,l=t}),p=()=>!r.j.isFocused()||"always"!==e.networkMode&&!i.N.isOnline(),m=r=>{h||(h=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},g=n=>{h||(h=!0,null==e.onError||e.onError(n),null==t||t(),l(n))},v=()=>new Promise(n=>{t=e=>{let t=h||!p();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,h||null==e.onContinue||e.onContinue()}),y=()=>{let t;if(!h){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{var n,r;if(h)return;let i=null!=(n=e.retry)?n:3,a=null!=(r=e.retryDelay)?r:s,u="function"==typeof a?a(d,t):a,l=!0===i||"number"==typeof i&&d<i||"function"==typeof i&&i(d,t);
20if(c||!l){g(t);return}d++,null==e.onFail||e.onFail(d,t),(0,o.Gh)(u).then(()=>{if(p())return v()}).then(()=>{c?g(t):y()})})}};return a(e.networkMode)?y():v().then(y),{promise:f,cancel:t=>{h||(g(new u(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?f:Promise.resolve(),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1}}}},33989:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});class r{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},32161:function(e,t,n){"use strict";n.d(t,{A4:function(){return S},G9:function(){return E},Gh:function(){return w},I6:function(){return l},Kp:function(){return a},PN:function(){return s},Rm:function(){return h},SE:function(){return o},VS:function(){return g},X7:function(){return d},ZT:function(){return i},_v:function(){return u},_x:function(){return c},oE:function(){return k},sk:function(){return r},to:function(){return p},yF:function(){return f}});let r="undefined"==typeof window||"Deno"in window;function i(){}function o(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function a(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t,n){return b(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function l(e,t,n){return b(e)?[{...t,queryKey:e},n]:[e||{},t]}function c(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(b(s)){if(r){if(t.queryHash!==h(s,t.options))return!1}else{if(!m(t.queryKey,s))return!1}}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(void 0===i||i===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(b(o)){if(!t.options.mutationKey)return!1;if(n){if(f(t.options.mutationKey)!==f(o))return!1}else{if(!m(t.options.mutationKey,o))return!1}}return("boolean"!=typeof r||"loading"===t.state.status===r)&&(!i||!!i(t))}function h(e,t){return((null==t?void 0:t.queryKeyHashFn)||f)(e)}function f(e){return JSON.stringify(e,(e,t)=>y(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){return m(e,t)}function m(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!m(e[n],t[n]))}function g(e,t){if(e&&!t||t&&!e)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function y(e){if(!_(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(_(n)&&n.hasOwnProperty("isPrototypeOf"))}function _(e){return"[object Object]"===Object.prototype.toString.call(e)}function b(e){return Array.isArray(e)}function w(e){return new Promise(t=>{setTimeout(t,e)})}function S(e){w(0).then(e)}function E(){if("function"==typeof AbortController)return new AbortController}function k(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let r=v(t)&&v(n);if(r||y(t)&&y(n)){let i=r?t.length:Object.keys(t).length,o=r?n:Object.keys(n),s=o.length,a=r?[]:{},u=0;for(let i=0;i<s;i++){let s=r?i:o[i];a[s]=e(t[s],n[s]),a[s]===t[s]&&u++}return i===s&&u===i?t:a}return n}(e,t):t}},85945:function(e,t,n){"use strict";n.d(t,{NL:function(){return a},aH:function(){return u}});var r=n(67294);let i=r.createContext(void 0),o=r.createContext(!1);function s(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=i),window.ReactQueryClientContext):i)}let a=({context:e}={})=>{let t=r.useContext(s(e,r.useContext(o)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},u=({client:e,children:t,context:n,contextSharing:i=!1})=>{r.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let a=s(n,i);return r.createElement(o.Provider,{value:!n&&i},r.createElement(a.Provider,{value:e},t))}},48583:function(e,t,n){"use strict";n.d(t,{Dv:function(){return f},KO:function(){return m},b9:function(){return p},zt:function(){return a}});var r=n(67294),i=n(15103);let o=(0,r.createContext)(void 0),s=e=>{let t=(0,r.useContext)(o);return(null==e?void 0:e.store)||t||(0,i.K7)()},a=({children:e,store:t})=>{let n=(0,r.useRef)(void 0);return t||n.current||(n.current=(0,i.MT)()),(0,r.createElement)(o.Provider,{value:t||n.current},e)},u=e=>"function"==typeof(null==e?void 0:e.then),l=e=>{e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})},c=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw l(e),e}),d=new WeakMap,h=e=>{let t=d.get(e);return t||(t=new Promise((n,r)=>{let i=e,o=e=>t=>{i===e&&n(t)},s=e=>t=>{i===e&&r(t)},a=e=>{"onCancel"in e&&"function"==typeof e.onCancel&&e.onCancel(r=>{if(r===e)throw Error("[Bug] p is not updated even after cancelation");u(r)?(d.set(r,t),i=r,r.then(o(r),s(r)),a(r)):n(r)})};e.then(o(e),s(e)),a(e)}),d.set(e,t)),t};function f(e,t){let n=s(t),[[i,o,a],d]=(0,r.useReducer)(t=>{let r=n.get(e);return Object.is(t[0],r)&&t[1]===n&&t[2]===e?t:[r,n,e]},void 0,()=>[n.get(e),n,e]),f=i;(o!==n||a!==e)&&(d(),f=n.get(e));let p=null==t?void 0:t.delay;return((0,r.useEffect)(()=>{let t=n.sub(e,()=>{if("number"==typeof p){let t=n.get(e);u(t)&&l(h(t)),setTimeout(d,p);return}d()});return d(),t},[n,e,p]),(0,r.useDebugValue)(f),u(f))?c(h(f)):f}function p(e,t){let n=s(t);return(0,r.useCallback)((...t)=>{if(!("write"in e))throw Error("not writable atom");return n.set(e,...t)},[n,e])}function m(e,t){return[f(e,t),p(e,t)]}},15103:function(e,t,n){"use strict";let r;n.d(t,{K7:function(){return O},MT:function(){return C},cn:function(){return o}});let i=0;function o(e,t){let n=`atom${++i}`,r={toString(){return this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?r.read=e:(r.init=e,r.read=s,r.write=a),t&&(r.write=t),r}function s(e){return e(this)}function a(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}let u=(e,t)=>
20e.unstable_is?e.unstable_is(t):t===e,l=e=>"init"in e,c=e=>!!e.write,d=new WeakMap,h=e=>{var t;return m(e)&&!(null==(t=d.get(e))?void 0:t[1])},f=(e,t)=>{let n=d.get(e);if(n)n[1]=!0,n[0].forEach(e=>e(t));else throw Error("[Bug] cancelable promise not found")},p=e=>{if(d.has(e))return;let t=[new Set,!1];d.set(e,t);let n=()=>{t[1]=!0};e.then(n,n),e.onCancel=e=>{t[0].add(e)}},m=e=>"function"==typeof(null==e?void 0:e.then),g=e=>"v"in e||"e"in e,v=e=>{if("e"in e)throw e.e;if(!("v"in e))throw Error("[Bug] atom state is not initialized");return e.v},y=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},_=(e,t,n,r,i)=>{var o;if(r===t)throw Error("[Bug] atom cannot depend on itself");n.d.set(r,i.n),h(n.v)&&y(t,n.v,i),null==(o=i.m)||o.t.add(t),e&&E(e,r,t)},b=()=>({D:new Map,H:new Set,M:new Set,L:new Set}),w=(e,t,n)=>{e[t].add(n)},S=(e,t,n)=>{e.D.has(t)||(e.D.set(t,new Set),w(e,"M",()=>{var t;null==(t=n.m)||t.l.forEach(t=>w(e,"M",t))}))},E=(e,t,n)=>{let r=e.D.get(t);r&&r.add(n)},k=(e,t)=>e.D.get(t),T=e=>{let t;let n=!1,r=e=>{try{e()}catch(e){n||(t=e,n=!0)}};for(;e.H.size||e.M.size||e.L.size;)e.D.clear(),e.H.forEach(r),e.H.clear(),e.M.forEach(r),e.M.clear(),e.L.forEach(r),e.L.clear();if(n)throw t},x=(...[e,t,n,r])=>{let i=(t,n,r)=>{let i="v"in n,o=n.v,s=h(n.v)?n.v:null;if(m(r)){for(let i of(p(r),n.d.keys()))y(t,r,e(i));n.v=r}else n.v=r;delete n.e,delete n.x,i&&Object.is(o,n.v)||(++n.n,s&&f(s,r))},o=(n,r)=>{var s;let a,d;let h=e(r);
20if(g(h)&&(h.m&&!h.x||Array.from(h.d).every(([e,t])=>o(n,e).n===t)))return h;h.d.clear();let f=!0;try{let p=t(r,t=>{if(u(r,t)){let n=e(t);if(!g(n)){if(l(t))i(t,n,t.init);else throw Error("no atom init")}return v(n)}let s=o(n,t);try{return v(s)}finally{if(f)_(n,r,h,t,s);else{let e=b();_(e,r,h,t,s),I(e,r,h),T(e)}}},{get signal(){return a||(a=new AbortController),a.signal},get setSelf(){return c(r)||console.warn("setSelf function cannot be used with read-only atom"),!d&&c(r)&&(d=(...e)=>{if(f&&console.warn("setSelf function cannot be called in sync"),!f)return E(r,...e)}),d}});if(i(r,h,p),m(p)){null==(s=p.onCancel)||s.call(p,()=>null==a?void 0:a.abort());let e=()=>{if(h.m){let e=b();I(e,r,h),T(e)}};p.then(e,e)}return h}catch(e){return delete h.v,h.e=e,delete h.x,++h.n,h}finally{f=!1}},s=(t,n,r)=>{var i,o;let s=new Map;for(let t of(null==(i=r.m)?void 0:i.t)||[]){let n=e(t);n.m&&s.set(t,n)}for(let t of r.p)s.set(t,e(t));return null==(o=k(t,n))||o.forEach(t=>{s.set(t,e(t))}),s},a=(e,t,n)=>{let r=[],i=new Set,a=new Set,u=[[t,n]];for(;u.length>0;){let[t,n]=u[u.length-1];if(a.has(t)){u.pop();continue}if(i.has(t)){r.push([t,n,n.n]),a.add(t),n.x=!0,u.pop();continue}for(let[r,o]of(i.add(t),s(e,t,n)))t===r||i.has(r)||u.push([r,o])}w(e,"H",()=>{let n=new Set([t]);for(let t=r.length-1;t>=0;--t){let[i,s,a]=r[t],u=!1;for(let e of s.d.keys())if(e!==i&&n.has(e)){u=!0;break}u&&(o(e,i),I(e,i,s),a!==s.n&&(S(e,i,s),n.add(i))),delete s.x}})},d=(t,r,...s)=>{let c=!0;try{return n(r,e=>v(o(t,e)),(n,...o)=>{let s=e(n);try{if(!u(r,n))return d(t,n,...o);{if(!l(n))throw Error("atom not writable");let e=s.n,r=o[0];i(n,s,r),I(t,n,s),e!==s.n&&(S(t,n,s),a(t,n,s));return}}finally{c||T(t)}},...s)}finally{c=!1}},E=(e,...t)=>{let n=b();try{return d(n,e,...t)}finally{T(n)}},I=(t,n,r)=>{if(r.m&&!h(r.v)){for(let i of r.d.keys())r.m.d.has(i)||(C(t,i,e(i)).t.add(n),r.m.d.add(i));for(let i of r.m.d||[])if(!r.d.has(i)){r.m.d.delete(i);let o=O(t,i,e(i));null==o||o.t.delete(n)}}},C=(t,n,i)=>{if(!i.m){for(let r of(o(t,n),i.d.keys()))C(t,r,e(r)).t.add(n);if(i.m={l:new Set,d:new Set(i.d.keys()),t:new Set},c(n)){let e;let o=i.m,s=(t,r)=>{let i=!0;e=(...e)=>{try{return d(t,n,...e)}finally{i||T(t)}};try{return r()}finally{i=!1}};w(t,"L",()=>{let i=s(t,()=>r(n,(...t)=>e(...t)));i&&(o.u=e=>s(e,i))})}}return i.m},O=(t,n,r)=>{if(r.m&&!r.m.l.size&&!Array.from(r.m.t).some(t=>{var r;return null==(r=e(t).m)?void 0:r.d.has(n)})){let i=r.m.u;for(let o of(i&&w(t,"L",()=>i(t)),delete r.m,r.d.keys())){let r=O(t,o,e(o));null==r||r.t.delete(n)}return}return r.m};return{get:e=>v(o(void 0,e)),set:E,sub:(t,n)=>{let r=b(),i=e(t),o=C(r,t,i).l;return o.add(n),T(r),()=>{o.delete(n);let e=b();O(e,t,i),T(e)}},unstable_derive:i=>x(...i(e,t,n,r))}},I=e=>{let t;let n=new WeakMap,r=new Set,i=0,o=e.unstable_derive((e,o,s,a)=>(t=e,[t=>{let i=n.get(t);return i||(i=new Proxy(e(t),{set:(e,n,i)=>("m"===n&&r.add(t),Reflect.set(e,n,i)),deleteProperty:(e,n)=>("m"===n&&r.delete(t),Reflect.deleteProperty(e,n))}),n.set(t,i)),i},o,(e,t,n,...r)=>i?n(e,...r):s(e,t,n,...r),a])),s=o.set;return Object.assign(o,{dev4_get_internal_weak_map:()=>({get:e=>{let n=t(e);if(0!==n.n)return n}}),dev4_get_mounted_atoms:()=>r,dev4_restore_atoms:e=>{s({read:()=>null,write:(t,n)=>{++i;try{for(let[t,r]of e)l(t)&&n(t,r)}finally{--i}}})}})},C=()=>{let e=new WeakMap;return I(x(t=>{if(!t)throw Error("Atom is undefined or null");let n=e.get(t);return n||(n={d:new Map,p:new Set,n:0},e.set(t,n)),n},(e,...t)=>e.read(...t),(e,...t)=>e.write(...t),(e,...t)=>{var n;return null==(n=e.onMount)?void 0:n.call(e,...t)}))},O=()=>(r||(r=C(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=r),globalThis.__JOTAI_DEFAULT_STORE__!==r&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),r)},97582:function(e,t,n){"use strict";n.d(t,{CR:function(){return c},FC:function(){return f},Jh:function(){return u},KL:function(){return p},XA:function(){return l},ZT:function(){return i},_T:function(){return s},ev:function(){return d},mG:function(){return a},pi:function(){return o},qq:function(){return h}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}
20)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((r=r.apply(e,t||[])).next())})}function u(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function l(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function d(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function h(e){return this instanceof h?(this.v=e,this):new h(e)}function f(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,l)}}),r[Symbol.asyncIterator]=function(){return this},r;function s(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})},t&&(r[e]=t(r[e])))}function a(e,t){try{var n;(n=i[e](t)).value instanceof h?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(e){c(o[0][3],e)}}function u(e){a("next",e)}function l(e){a("throw",e)}function c(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function p(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=l(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}"function"==typeof SuppressedError&&SuppressedError}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(66021),t(6840),t(9090)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.